query_id
string
corpus_id
string
query
string
code
string
label
int64
3cb6dc2e9c79fd531ea94a32860524d5
e004144924956fd9403f25161882388f
延时三秒再跳转去订单支付详情界面是为给服务器留时间以确保其及时更新数据
window.setinterval=setInterval(function() { var params={tradeId:tradeId} getAjax(qryBuyDetail,params,function(succData){ if(succData.code==200){ if(succData.data.tradeStatus==202 || succData.data.tradeStatus==203 || succData.data.tradeStatus==4) { ...
1
6ee05d80af8e1766085ff1ade5c71289
1eab1911c001e0b6b3e083f1566d729b
Increment the value of a numeric text field by adding the value inc
def increment_value( selector ) perform_action_on_selector( 'FEX_increment', selector ) end
0
76c39ef360b0df3b812ab8fe2baac7f4
2c1d9b99f3a91fcef285ffff03be3154
Creates a context for connecting to a Sql Server database
public abstract class SqlServerDbContextIntegrationTests<T> : ITestDbContextProvider<T>, IAsyncLifetime where T : DbContext public T CreateDbContext(bool useMasterConnection) { return TestCtxProvider.CreateDbContext(useMasterConnection); }
1
6b4bab9dccf08b02244ac98597d097dd
b0496df3ce4ab9f0043d45301616658f
this method gets the total distance of the tour in kilometers
public double getTotalDistance();
1
6472956f6a9c06be1e7473d31d153e06
610c49850b4ce83e1653c64ac4ece2ac
设置方块斜率
public class Clahe implements IBaseInPlace{ public void setSlope(float slope) { this.slope = slope; }
1
80ded0f56d7d97fba19fc8fbd31c174e
b65c3073494694da1dd4f7336365f8a5
界面,用于输入起始点和终点, 确定即可以出结果
self.root = tkinter.Tk() self.root.title("请输入航班号") self.root.geometry('600x600') self.ip_input = tkinter.Entry(self.root, width=1000) self.display_info = tkinter.Listbox(self.root, width=1000) self.result_button = tkinter.Button(self.root, command=self.find_flight, text="...
0
c09c498919c9cd637c62346d65924e07
e247cd49dae79987fe2bdb830c415926
Returns a list of the next expected sendings of the given mailing. The end date <b>must</b> be specified because otherwise there might be an infinite amount of sending dates. Therefore, omitting the end date will trigger an <i>Inx_Api_NullPointerException</i>. The start date may be omitted, in which case it will be set...
namespace EmmaSharper Task<IEnumerable<ResponseDeliveries>> GetMailingDelieveries(string mailingId, DeliveryType result = DeliveryType.All, uint? start = null, uint? end = null);
1
e55e8c503c87a1558bf6f31d0777b752
b6f6cabcece9b9ddb9f226cf98a15317
Get Nuke asset publish options.
class IcarusApp(QtWidgets.QMainWindow, UI.TemplateUI): def get_nuke_assetPblOpts(self, name=True): self.chkLs = [] if name: self.pblName = self.ui.nk_PblName_lineEdit.text() self.chkLs.append(self.pblName)
1
8ec376a4683c8609567c95afdd9d982f
d7e234fd32f0bf85de82045c49917252
Returns a pointer to the RSI output bit identified by the given number
bool* Kuka_Class::getOutBits(int num) { switch(num) { case 1: return &(rsios.rsiOut.bout1); break; case 2: return &(rsios.rsiOut.bout2); break; case 3: return &(rsios.rsiOut.bout3); break; case 4: return &(rsios.rsiOut.bout4); break; case 5: return &(rsios.rsiOut.bout5); break;...
1
5675866ea3d4f8551067307ff3167212
526d0e26c69a4f3ad2be2e0298a45659
Broadcast the transaction using the "block" mode, waiting for its inclusion in the blockchain.
export class TransactionsApi extends BaseAPI txsPost(txBroadcast, options) { return TransactionsApiFp(this.configuration).txsPost(txBroadcast, options)(this.axios, this.basePath); }
0
4a56e83831de59bc7cd8cdd73e7ca77f
b6cab3dd33336460d703c876519bcf65
Process debt command
entities = Isaac.GetRoomEntities() local player = Isaac.GetPlayer(0) playerPos = player.Position for i, entity in ipairs(entities) do if entity.Type == 5 then if entity:ToPickup().Price > 0 then debt = debt + entity:ToPickup().Price entity:ToPickup()....
1
0f5fd38e015876a15dbd5482120c21dc
385de355b62bfecac23c336c1d840ad8
Set the contourlines active for drawing
fun IconicsDrawable.drawContour(drawContourProducer: () -> Boolean?): IconicsDrawable { drawContourProducer()?.let { drawContour = it } return this }
1
428924764bbefbba816d866d10c6ec08
6e2a1454186bc5b8da44d6b0798339cf
Gets the reference solution of the PAA transformation applied to the numeric dataset (see {@link #getNumericsDataset()} with a parameter of <code>W = 7</code> of the numeric dataset.</p>
if (!this.complexDataSet) { System.out.println("complex data set not entered or calculated - null returned"); } return this.complexData; }
0
426afb0661923510e26157e09e880dee
bfd75236acb452e430822c303ba86f14
Gets the main script unit.
public abstract class ScriptContentAssistInvocationContext extends ContentAssistInvocationContext public IScriptProject getProject() { ISourceModule unit = getSourceModule(); return unit == null ? null : unit.getScriptProject(); }
0
6c75fe39a5d6a6b162192ddc653264b9
64cf68da36d96bf321a6138de7e577f1
read alarm from queue, if there is none simply return an empty alert with ->open = 0
void ptpd_alertFromISR(void) { osalSysLockFromISR(); sys_mbox_trypostI(&ptp_alert_queue, NULL); osalSysUnlockFromISR(); }
0
fab4b409d2aca324a3ef07595604b72b
98f18fd9b763cfdd5f5a6515eec7aacc
method to show the complete doctor record
void patientRec::displayRecord() { cout << " Patient name : " << name << endl; cout << " Patient age : " << age << endl; cout << " Contact number : " << contactNum << endl; cout << " Paient illness : " << illness << endl << endl; }
0
79a5b26bd0d8c6d8dda57140dd9a464f
9558b3bd4de93f692fbbc55328665289
Test the static turn annotations task under specific conditions. Pass in parameters that will change depending on how we're testing the static turn annotations task.
class TestTurnAnnotationsStatic(AbstractOneTurnCrowdsourcingTest): def test_no_in_flight_qa( self, setup_teardown, data_regression: DataRegressionFixture ): self.operator = setup_teardown overrides = [ f'mephisto.blueprint.data_jsonl={TASK_CONFIG_FOLDER}/sampl...
1
fec30ca38b2a635812b16dc650d2cf75
035b8a5c1cf9277210ccb63461fb2121
Load all bdgpExprLink from a whitespace-separated file. Dispose of this with bdgpExprLinkFreeList().
{ struct genePred *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[GENEPREDX_NUM_COLS]; int numCols; while ((numCols = lineFileChopNextTab(lf, row, ArraySize(row))) > 0) { lineFileExpectAtLeast(lf, GENEPRED_NUM_COLS, numCols); el = genePredExtLoad(row, numCols); slAddHead...
0
e58bf488f03f1b04f0e2fca8ef8236ac
5f49f7e3ba03b636ecb67f7d829717f4
Тестирование сериализации/десериализации в бинарный формат
{ byte[] buff = new byte[1024]; byte[] buff2 = new byte[1024]; string expected, actual; T copy = RestWebService.GetNullValue<T>(); using (var ms = new MemoryStream(buff)) using (var bw = new BinaryWriter(ms)) { t...
1
a03ed6b7501e0fb5f847e741cb509fec
d86d39ba96dcb7219eb821c09172633d
Eine von aussen angestossene Refreshanforderung (KontakteImportDialog) realisieren.
try { MessageCourier.getInstance().requestMessagesInConversation(mConversation, this); } catch (NotAuthenticatedException | NotEnoughOTPException | PINNotCreatedException | IOException | OTPFileInputStream.InvalidBufferException | PINCreationFailedException | SQLException e) { e....
0
da193c0f5db565545bbfe057ebe0acad
98c7dfa1a6e1a0e3690639f6243a95b6
Injects markup from $values' content (rows or attributes) inside actually selected nodes. Method doesn't change selected nodes stack. == Example == === Markup === <code> <node1> <node2></node2> </node1> <node1> <node2></node2> </node1> </code> === Data === <code> $values = array('<foo/>', '<bar/>'); </code> === `QueryT...
if (!this._rootNode) { return false; } const xmlList: sax.Tag[] = this.getCopyNodes(); if (xmlList.length === 0) { return false; } return this.doPasteNodes(xmlList); }
0
26158e68df4738f4a6c82c06f2904f67
441d1d0a77696b3531c908175156b384
플레이어의 인벤토리의 아이템을 보여줌.
static @NotNull List<@Nullable ItemStack> getInventoryContents(@NotNull Player player) { final List<@Nullable ItemStack> contents = new ArrayList<>(); final InventoryView inventoryView = player.getOpenInventory(); for (int rawSlot = 0, bound = inventoryView.countSlots(); rawSlot < bound; rawSlot...
1
794ec01a8978d5c6fb3f4280562347ab
bfc42dfaeddf655b3612e08926809f24
Enable touch-panel interrupt. Must be called at spltty().
tty_zap_ta () { int status, kludge; short iosb[4]; ioctl (TT_chan, TCFLSH, 0); }
0
9a2db9ab738779d3953812cc9ff90d42
b0ef9a9dd8a45b109afb72de4bed0baf
長押しによるオブジェクトの消去
public class ManageItem : MonoBehaviour public void v_DestroyObject(int nColNumber, int nChildNumber) { if (mb_IsStopFlag == true) { if(nColNumber == 1) mg_DeletedObject = mg_Col1.transform.GetChild(5 - nChildNumber).gameObject; else if(nColNumber == 2) ...
0
e70fa321f3e1b3d7d5cf6d745a42be1b
51744af34646280f347113c2a0b8ba32
get color scheme of category
switch (type) { case RunType.Run: return CategoryColors.Run; case RunType.Competition: return CategoryColors.Competition; case RunType.LongRun: return CategoryColors.LongRun; case RunType.ShortIntervals: return CategoryColors.ShortIntervals; case RunType.Uncategorized: ...
1
1a54561f10a2451d42619ac3d6752ef4
12d39c99837e26213c923f9027283daf
暂停状态第一次出现时,绘制图形并且生成文本
class Status: def draw_pause(self): self.screen.blit(self.msg_image, self.msg_image_rect) self.prep_gen() self.screen.blit(self.gen_image, self.gen_image_rect)
1
244ab2dcd71b02f6eab04dcff863f4df
6e7d1da52b9f468fc9118ee3f2c226d3
Specifies the size of a waveform so that it can be allocated in onboard memory before loading the associated data. Data can then be loaded in smaller blocks with the Write Binary 16 Waveform functions.
size_t scratchWaveSize ) const { const size_t MaxWaveSize = ((1 << 21) - 256); const size_t minWaveSize = (scratchWaveSize > 0) ? m_scratchWaveSizeGranularity : 0; size_t adjScratchWaveSize = (scratchWaveSize > 0) ? RoundUpToMultiple(scratchWaveSize, m_scratchWaveSizeGran...
1
8edac0580889c4eace01d41f0f063fca
e82aba1d7820a877393bf39396fb793e
将datagrid2中选中一行的数据赋值到下面的textbox中
namespace SAP_BASE public partial class MainWindow : Window private void dataGrid2_SelectionChanged(object sender, SelectionChangedEventArgs e) { DataGrid dg = (DataGrid)sender; DataRowView rowSelected = dg.SelectedItem as DataRowView; if (rowSelected != null) ...
1
e09327bcf9ed397ac204f0dec751a2d3
4824c65757697a490539d41acbaed71e
Calculate Jacobian related regularity metrics.
ls = model.kern.lengthscale[0] L = estimate_L(model, xj, ls, lb, ub) M = np.min(model.Y) gamma = 1 mu_xj, sigmaSQR_xj = model.predict(np.atleast_2d(xj)) sigma_xj = np.sqrt(sigmaSQR_xj) rj = (np.abs(mu_xj - M) + (gamma * sigma_xj)) / L return np.squeeze(rj)
0
1572e21b44abfdf4d95d068233048a8a
e3baf767c59a3e96b03ad3c151e4f18b
Creates a list with one to many relation from one to one relation returns: dictionary where each represents the one, each item has a list where are the many items
def lofl2lofd(listoflists): a_dict = {item[1]: item[0] for item in listoflists} return a_dict
0
23c10fa421a258c0d686994b4bca6e4a
cd8c53a51137cf271296532593339ed1
Function to inflate an already flattened array
unrolled_array = np.array([]) for one_layer in rolled_data: unrolled_array = np.concatenate((unrolled_array, one_layer.flatten('F'))) return unrolled_array
0
9cbe8b5c345926ef77b8dcd39aa7d0bb
65c580e49142bac06a03ef7a490d038d
Set accessor for persistent attribute: guiaAutoInst
public abstract class Recursos_baBean implements javax.ejb.EntityBean public abstract java.lang.Integer getDe_autoinst_a_pgasc();
0
60e4f686f17dd225ea99c4524aa2d55e
6ecb2b5f64853ca1c8aa262ea06fff64
Returns dictionary with formatted evaluation scores
def evaluate(pred_set, test_set, exclude_cold=False): result_dict = {} for key in test_set.keys(): if exclude_cold and key == 0 or key not in pred_set: continue result_dict[key] = {} all_r_precs = [] all_ndcg = [] all_rsc = [] all_recall = [] p...
1
1741b9eb6c31abb7796526b8ec159338
2b6c689d0664e5cdf591f9804251c704
Initialize .kbss sections for the kernel.
void init_kernel_pt() { int i; kseg0_ptbl.header = (PAGE_TBL_MAGICNO << 24) | MAX_KPAGES; for (i = 0; i < MAX_KPAGES; i++) { kseg0_ptbl.entries[i].entry_hi = i << 12; kseg0_ptbl.entries[i].entry_lo = i << 12 | ENTRYLO_DIRTY | ENTRYLO_VALID | ENTRYLO_GLOBAL; } }
0
dceeb99be055f68489f2157b1a67de92
788e35611bdc48d50d113df0594e0be1
Verifica que el campo de la cantidad de preguntas tenga un valor, es decir que no sea nulo, además de verificar que se encuentre en un rango
namespace FOC_DI_Tarea3 public partial class MainForm : Form private void cantidadTextBox_Validating(object sender, CancelEventArgs e) { int cant = 0; if (cantidadTextBox.Text.Equals("")) { e.Cancel = true; this.errorProvider.SetError(canti...
1
529630b5f5a6647711603c846b175160
dc16e98ac48541d7fbbf77f7bc207539
获取可用商品列表
List<Good> selectAvailable();
1
7b4de135dae291e5ab5db7cd1b995d68
69bf1b6f2beaa54749978fb9c6df2fa7
Counts the parameters for the delegate method mapping to a query string parameter.
public class SalesOrderBatchSearchEvaluator extends OrderBatchSearchEvaluator @Override protected int countParameters() { return super.countParameters() + (paymentMethod == null ? 0 : 1); }
1
af8017c3c4c1aa19d36eece6774022c7
97ba385bc43c38039e79daec0fd1e368
Add an input file handler
class IdentifyCLGenerator(EncoderCLGenerator): def addInputFile(self, filename): self._inputFiles.append(filename) return self
1
d22b19a8647f2188d8e96dff97b25e30
2317931d29b0a975c385c69f14bcdd32
Compute Essential matrix using Fundamental matrix and camera intrinsic parameters
class VisualOdometry: # ================================================================================================================== # # Get Random 8 points from different regions in a Image using Zhang's 8x8 Grid # ======================================================================================...
1
1ed354432af0b322d14fa72d990d2b0d
571353b6178bd3f88b35051c3e3c14a0
Returns the index value of the player with the longest road
public class Player public void calculLonguestRoad(){ int longuestRoad=0,temp=0; LinkedList<Road> alreadyCounted = new LinkedList<Road>(); for (Road r : roads){ temp=0; alreadyCounted = new LinkedList<Road>(); if(r.getFriendlyRoadWithoutAlreadyCounted(number-1, alreadyCounted, null).size()...
0
47cf6a31f09c588691ac20048debe552
924b21a916be0329f1e6626ccfeb2a58
Actualizo los proyectos asignados al usuario.
{ $proyF=array(); if(($user = $this->Auth->user())) { $proys = $this->requestAction(array('pm'=>false,'controller'=>'works','action'=>'getProjectsByUserId',$user['id'])); if($proys) { $cont= 0; foreach($proys as $pro) ...
0
4331f554a864feff3326e971ef0f682e
fbda42483449344bed521e6866159d56
根据密匙进行DES加密,使用UTF-8编码
public class DESUtil public static String EncryptUTF8(String keyStr, String srcString) throws Exception { return encryptUTF8(getKey(keyStr), srcString); }
1
7d725c35af5f164fd43f51defc0566f5
5ce2c1f0cebc9d990979a913dd401b3d
Get the model from the workingcopy as a promise
class WriteModel extends Model function getEntry() { return $this->pl->retrieveWorkingEntry(); }
0
854e6271d043c9f300efdf47279196dc
63b253ed563cb91362f525ffbbb26f72
Coordonnée x de la position de départ.
public class PositionDTO implements com.google.gwt.user.client.rpc.IsSerializable, Serializable public int getXStart() { return xStart; }
1
8e2495a00a57e51e4770ca5cb91517ec
46c4e72969a6dd47fda38dea27a6cc76
핸드폰 번호를 입력하면, 하이픈이 입력되도록 하는 함수
def phone_format(n): return format(int(n[:-1]), ",").replace(",", "-") + n[-1]
1
836dd44e91dc5f2d08c2ab1072d743d5
c74b79b18ab75660f8aad1bf77a7d039
Function for loading train data from SQLite database
def load_data(database_filepath): engine = create_engine('sqlite:///{}'.format(database_filepath)) df = pd.read_sql("select * from ETLApp", engine) df.related.replace(2,1,inplace=True) X = df["message"] Y = df.iloc[:,4:] columns = Y.columns return X, Y, columns
1
283901f3564b0d56d4b9eaa3e99a1785
25f0d24f9576d72961238401236e2a11
Función de contador de caracteres
function contar_1(){ var max = 100; var cadena = document.getElementById("Contenido").value; var longitud = cadena.length; if(longitud <= max) { document.getElementById("Contador").value = max-longitud; } else { document.getElementB...
1
2a4cb2b8ce778d08886aefcd294d2840
6d5486940865033efb419266ea13e79c
Initialize all the popups
local function InitializePopupDialogs() StaticPopupDialogs["JAMBAQUEST_ABANDON_ALL_TOONS"] = { text = L["Would you like to Abandon \"%s\" On All Toons?"], button1 = L["Just Me"], button2 = L["All Team"], button3 = NO, timeout = 0, whileDead = 1, hideOnEscape = 1, O...
1
ab3e3af4dad0a787a5a492dbe1bdc8b6
96c49a43b6c8f27a1c67cacc746132fe
Method that changes the path of the breadcrumb.
IEntry setPath(String newpath);
1
4f5b4d0cd5592345bb40ce9c0f9f8f3e
cbf9198483cc9af54ad93436b10feba5
Converts a screen space coordinate and returns a Vector2 in 2D example: returns: vector2(x,y);
namespace Duality.Drawing Vector3 GetSpaceCoord(Vector2 screenPos);
0
eacf0a3c1f2af90f12ba7f38cff82550
373b52112352c0330ca2612e0fe3a334
Matches the content of the context. > Subclasses should overwrite it.
class Template13 extends AbstractParser protected function isMatched($content) { }
1
50df2c978854be5b347c813263dfb475
55e8513d69b31c8a681057a357513c15
Prop controlling visibility has changed => modify state accordingly
class MojsPlayer extends Module _onHideStateChange ( isHidden ) { this._props.isHidden = isHidden; const { onToggleHide } = this._props; if (this._isFunction(onToggleHide)) { onToggleHide(isHidden); } let method = ( isHidden ) ? 'add' : 'remove'; this.el.classList[ method ]( CLASSES[ 'is-h...
1
fc99f8e8cebc464258269cd2cfec6815
681d984cf9521ae59a75d1bb0bb7cc28
泛型方法:在方法中出现了泛型结构,泛型参数与类的泛型参数没有任何联系 泛型方法所属的类是不是泛型类都没有关系 泛型方法,可以声明为静态的。因为泛型参数是在调用时确定的,并非在实例化类时确定
public class GenericMethod public <M> void method01(M m) { System.out.println(m); }
1
32169d3aa888a6f4a7d5fb8d74ed0699
f7ab20ef3506e67da67d618ad538b19f
Nettoie la table des messages lus
public class ManagerMessage public static void setAllMessageLu(int id_source) { List<Message> list = messageJpaController.findMessageEntities(); int nb=0; for (int i = 0; i < list.size(); i++) { Message m = list.get(i); if (m.getIdSource().getId()==id_source){ ...
0
42ee17403c50f0eabd0d0cba7fc6da36
6f427bd12071b94cb212c47ffddb41ea
Профиль клиники.
{ $clinic = $this->generateClinic($app_key); return view('web.appointment.profile', ['clinicName' => $clinic->name, 'appKey' => $app_key, 'appStatus' => $clinic->webAppointmentSetting->status]); }
1
d6fb468396527766d0f79b425f23ec1b
48ea57577d648c449aa82fba7ed525a3
通过人员ID查询是否已申请退休
@Controller @RequestMapping("/business/personagency/retired/declare/") public class RetiredDeclareController extends BaseController @RequestMapping("getRetiredByYlId") @Action(description="查询养老待遇申请信息") public ModelAndView getRetiredById(HttpServletRequest request,HttpServletResponse response) throws Exception{ Long...
1
975f8c9161d8aaf544aea73e11fa4b34
899ee5d4210072d226b77287b85e069f
Delete a file for an overrideReturnAddress. Deletes an existing overrideReturnAddress file using the specified data.
namespace Infoplus.Api public partial class OverrideReturnAddressApi : IOverrideReturnAddressApi public void GetOverrideReturnAddressFiles (int? overrideReturnAddressId) { GetOverrideReturnAddressFilesWithHttpInfo(overrideReturnAddressId); }
0
1dd77b617c03fd0f99b6e152b8154df7
88d067ead2eb24bc8545b70136acfe21
Retourne la liste des prix des produits dans l'ordre croissant
class Price extends Model public static function getList() { if (!isset($order)) { $order = 'asc'; } $list = Price::order('id', $order) -> select(); return $list; }
1
49417013110749ed04919531f081b21d
b24bff79e0e55b3a3ca6e3c5927f8587
# Newton-Rhaphson with parallel computing implementation.
i <- 1 q0 <- FUN(p0) q1 <- FUN(p1) guess <- numeric() iteration <- numeric() e <- numeric() while (i <= n) { r <- p1 - q1 * (p1 - p0)/(q1 - q0) e[i] <- abs(1 - abs(r)/abs(p1)) guess[i] <- r iteration[i] <- i if (abs(r - p1) < tol) { return(cbind(guess, iteration, e)) break...
0
db402a46f6861a3ed88f7fe71543121e
2f1acf61f87844115746a657b8edf7ec
获取农历年描述
namespace Hmj.Common public class Utility public static string GetLunisolarYear(int year) { if (year > 3) { int tgIndex = (year - 4) % 10; int dzIndex = (year - 4) % 12; return string.Concat(tg[tgIndex], dz[dzIndex], "[", sx[dzIndex], "...
1
226d6ac0d71eab4e5213ba7527c5b510
25ade196cb832a2de7fdb942537dea7b
anglular distance in radian between two points on unit sphere
{ Vector3 v1 = UnitSphere.LatLonToGeocentric(p1.Phi, p1.L); Vector3 v2 = UnitSphere.LatLonToGeocentric(p2.Phi, p2.L); return v1.Angle(v2); }
1
afad980247ee2b03f3c76779fd655e09
48d12a991ef50b42844e1b0d46520a50
根据类型获取所有的未评论订单
namespace HKTHMall.Services.Orders public class OrderService : BaseService, IOrderService public ResultModel GetOrderUnComment(long userId) { ResultModel result = new ResultModel(); var sql = @"select distinct o.OrderID from [Order] o left join ...
1
d8d15b7b9a437f3e381a5c52e6118fe7
8f74c02fb2d4bd4dca98424f6e9fa08c
Function returns single/list depending is single post or in loop
class CX_Customizer public function callback_single() { return is_single(); }
0
025e82fb335d872225b2830755965717
5f250a81306f0bafdfcba4cc7faf8619
Returns the legend for the chart, if there is one. Note that a chart can have more than one legend - this method returns the first.
public String getLegendText();
1
6de818d79d1af5d74b37e67c1a089f4b
f748fd9ffc1e573ff1898fb33aa2f788
Get snippet description
class BBC_Service_Bamboo_Models_Promotion extends BBC_Service_Bamboo_Models_Element public function getDescription() { if (isset($this->_synopses['small'])) { return $this->_synopses['small']; } return ""; }
1
4e75e4480af9b7823b3b0d5346676dd6
3f594caa6a328b0bde279e1437d8b6d5
System.Int32 System.Collections.Stack::get_Count()
TEmitter Ldlen() => Emit(OpCodes.Ldlen);
0
afa9220f2646a38894a377cfa025b096
a93d73527e9cfbbf872ace863c08143d
Mutator for the CopyOnAttach setting.
STDMETHODIMP CConvexHullBuilder::put_CopyStoreAttributes(VARIANT_BOOL newVal) { m_attachStoreAttributes = (newVal == VARIANT_TRUE); return S_OK; }
1
8419d4f226f91654f253b9961712a1d6
06aad9feadb7f68d70ef0466bf7f6df3
Display the specified resource. GET /winners/{id}
class WinnerController extends Controller public function show() { $winner = $this->service->getWinner(); return view('winners.show', ['winner' => $winner]); }
0
b63b257da4221c0823c561f3a366c077
bdb2ee70ec8d98dbe91059ba0e0fa92e
获取所有可选的畜禽
@Repository @Transactional public class MeatRepository public List<Part> findAllPart(String livestockName){ Map<String,String> map= new HashMap<>(); map.put("tableName",livestockName+"_part"); return session.selectList("findAllPart", map); }
0
5ffd58a9cedb7b9bd17ac44f5b87f0d7
11df3bf6d75d394c963a89a19aafd481
Returns the directory on EOS where the Dalitz tuples are stored.
try: dir_data = os.getenv('EPITOME_DATA') except: dir_data = None return dir_data
0
16702b2f3acc8329f4105fe4eb8605da
30202aa209bb69ac4f6e4e8cc154f1e0
Getter for <code>WETRN.MRKT_PRC_LVL.PRC_LVL_TYP_CD</code>.
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.7.2" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class MrktPerdSkuPrcRecord extends UpdatableRecordImpl<MrktPerdSkuPrcRecord> implements Record11<BigDecimal, BigDecimal, BigDecimal, Str...
0
ba261f86a7f0641e33deb01aacbba691
fc4699f9b6f52027294b218bada8d88a
confirms there is a cover in current session
class Records extends CActiveRecord public function hasCover() { return $this->isNewRecord || $this->cover; }
0
c5bf1815a64e9c4391d7999ec556856d
6c04bac99822d1c51af61506a3de3c04
<功能详细描述>根据cityid获取分类信息
{ $this->where('city_id', '=', $city_id); if ( ! $has_deleted) { $this->where('soft_deleted', '!=', self::SOFT_DELETED_DELETE); } $tmps = $this->order_by('order', 'desc') ->order_by('id', 'asc') ->find_all(); $rst = array(); foreach ($tmps as $r) { $rst[$r->id] = $r->as_array(); } retur...
1
538ebea2ac1a7e57fa0ff473527749d5
fc71c0aa3be265c6363a82e00ffe00d1
Дает таблицу из хранилища.
{ ObjectTableStorage product = null; string dcbPath = Path.Combine(this.OutputDirectory, tableName + TableExtention); if (File.Exists(dcbPath)) { using (var reader = new ObjectTableReader(dcbPath)) { product = reader.Read(); } } else { product = new ObjectTableSto...
1
9b9afaa88d826f42b81c5b3253fc431e
1b17255f52d66d96c88b38ede299343b
确保文件存在,如果不存在则自动创建
open class ExcludeJarType(private val project: Project) protected fun ensureFileExits(file: File) = if (file.exists()) { file } else { if (file.mkdirs()) { file } else { throw AssertionError("${file.path}创建失败") } }
1
ba03bff24ccb94842785cf7176952a9d
c89f8783410a70d9a80bf465d153ac6a
根据参数获取ContactGroupVo多条记录。 <p>
@SuppressWarnings("unchecked") public class ContactDaoImpl extends HibernateDaoImpl implements ContactDao{ public List<Contact> getContactByPage(PageModel pageModel, Contact contact) { StringBuilder hql = new StringBuilder(); hql.append("select c from Contact c where 1=1"); List<Object> params = new ArrayList<O...
0
ab9e40e3448212359ccd6cd272e6a443
fcfaa2b8ba4d73105ac6973d2be06528
Should compute the max revenue of a large rod with the bottomup optimization.
def bottom_up_cut_rod(price, length): incomelst = [float("-Inf") for _ in range(length + 1)] incomelst[0] = 0 for j in range(1, length + 1): income = float("-Inf") for i in range(j): income = max(income, price[i] + incomelst[j - i - 1]) incomelst[j] = income return in...
1
2be567aa169dff4154fa56d7e559b4ce
5508ed6b6762f6acfa56c34a6b5c4102
Stops and deletes the Docker Compose containers. Automatically called when `:rm` option is enabled.
class DockerCompose(object): def stop(self): down_cmd = self.docker_compose_command() + ['down', '-v'] self._call_command(cmd=down_cmd)
1
383981dfb0490eb1b455440cb18bbb77
2ad8ff601f1d282634a509957415374a
2つの数値を入力させる
class MainWindow(QWidget): def tasizan(self, maxnum): a = random.randint(2, maxnum) b = random.randint(2, maxnum) self.ui.Questionline.setText(f'{a} + {b} は?') self.answer = a+b
0
5a29780888825937abe27bd5b1c326b7
310e8fab26f1254562da25d8079f01ae
INC N
func instr__LD_C_NN(z80 *Z80) { z80.C = z80.memory.ReadByte(z80.PC()) z80.IncPC(1) }
0
b4446920124eb98f0193ec1d83722fd3
f5ff6b71870a155d632525bdf8563389
轉換各種String時間為yyyymmdd
if(strlen($v_month) == "1"){ $v_month = "0".$v_month; } if(strlen($v_day) == "1"){ $v_day = "0".$v_day; } $to_date = $v_year.$v_month.$v_day; return $to_date; }
1
69aa73b4eaa10125dca2bb5e4f1e76c3
b4c8602945b9d0600ce87d2da6d73c48
changes the image of button based on the mines near by
class MyneButtonListener implements ActionListener{ private void initializeButtons(ArrayList<Integer> mines) { int buttonNum = 0; for(int i : mines) { buttonNum = i; MynePanel.getButton(buttonNum).hasMine = true; } for(int i = 0; i < Data.rows * Data.cols; i++) { if(!MynePanel.getButton(i).hasMine) { ...
0
6ef52fe5dc05b4f5e9d3cfe9f1119de5
d1a36ac0329754c3f982fba38778c7c5
获取分片sha1值数组
{ if($fieldName === $this->shardKey){ $i = (int)((int)$value / $this->shardSetp); if(isset($this->shards[$i])===false) throw new \Exception("找不到表{$this->tableName}的分片$i"); return [$this->shards[$i]]; } else{ return $this->shards...
0
5f5fd69078617c0ee885f30c1005c66f
ddce20829af9f5d02317434f4f41d678
Initializes a User instance based on the given hostmask.
class User(d.Data): def __init__(self, data): self.bot = None self.mfa_enabled = None self.verified = None self.email = None self._update(data)
0
cdaac3c969455e2c2353e46a413259ae
d9cce9d22d4857c8625afd181fab8c86
押し出し判定を行うフィルタ
function takeItemSelect(flg) { $('#pictureCheckList').children('ons-list-item').each(function(i) { var id = $(this).attr('id'); if(id > selectName+'-') { if(id.indexOf(selectName+'-') !== 0) { return false; }; var cl = $(this).attr('class'); if(flg==='hide') { ...
0
0980cfb071716b7bf8dbbb01e72d7425
1ea657303029e74f42775c4f087483f2
将输入输出流对象设置到线程本地对象中
IOUtils.inputToOutput(in, out); try { out.close(); } catch (IOException e) { e.printStackTrace(); } }
0
dbc8f7c073973498b9316772a1defaa5
8ed4976c30fe2713d4727424cc748a7d
Parallel version of add_indices. Can not be used with temporary tables and requires that transactions writing the table data be previously committed to avoid lock issues.
def add_concurrent_index(*args) if transaction_open? raise 'add_concurrent_index can not be run inside a transaction, ' \ 'you can disable transactions by calling disable_ddl_transaction! ' \ 'in the body of your migration class' end if Database.postgresql? ...
1
ce168edc42c1e1ab48335aeb954aed97
5d1a368593205a50baf470aff30e1c3b
Рекурсивная функция проверки зависимости импортируемых файлов на зацикливание зависимостей
for _, dep in ipairs(moduledeps[name]) do local depinfo = moduledeps[dep] if depinfo then local depspath_sub if depspath then for idx, name in ipairs(depspath) do if name == dep then local circular_deps = table.slice...
1
17aa9213f90220d4a9624dd1edd957f0
049f145bccbc5284ae0ed4694dc20d3c
Returns whether it is possible to draw a card
return this.hand.stack.length + this.melds.stack.length < this.playerConfig.maxHandLength && this.game.dealt && this.game.deck.playingCards.stack.length > 0 && this.game.state.canDraw; }
1
7841bc5d68fd351ec3ab5773d5c97909
14b77ddbd81ce3d8da5487378f1ab53b
分享后更新积分
Map<String, String> param = new HashMap<>(); param.put("uid", getFromSharePreference(Config.userConfig.uid)); param.put("action", "share"); Wethod.httpPost(this, REQUEST_INTEGRAL, Config.web.request_credit, param, this); }
1
003ea52c5c05b2ba77faf2c21c17687a
948a6603b286edafe3842e6698d52daa
Расширенный алгоритм евклида
namespace Algorithms public static class AlgorithmsForTasks public static int ClassicEuclidAlgorithm(int firstNumber, int secondNumber) { firstNumber = Math.Abs(firstNumber); secondNumber = Math.Abs(secondNumber); while (firstNumber != 0 & secondNumber != 0) {...
0
143f41634c2f9860831439df30caba53
2c1ca80480cd4ff3755c90f54752624f
Récupère le nom du serveur sur lequel tourne ce script
{ if (isset($_SERVER["SERVER_NAME"])) { $serverName = $_SERVER["SERVER_NAME"]; return $serverName; } return "localhost"; }
1
80611e36f74752c018309bbcda90669d
f99583137a2139250929c505ecf8cc25
Метод для фильтрации данных по количеству и смещению
namespace AllTheSame.Common.Interfaces.Generic IQueryable<TEntity> Filter<TKey>(Expression<Func<TEntity, bool>> filter, out int total, int index = 0, int size = 50);
1
50089d8138a6ce77ab0216d83d0b6b13
223885caa8a339841eef05078464dbb8
Message processor is not needed with regards to jms client connector
public class JWTExceptionTranslatorUnitTest extends FunctionalMunitSuite @Override protected boolean haveToMockMuleConnectors() { return false; }
0
c3ee2cc8dfee005d41f84c4bb6ffc93f
944e43987c175a0014af33d9da6aa906
Creer une entité avec les champs passer en paramètre
public class AbstractDao<T> public T create(T entite) { final EntityManager em = getEntityManager(); em.getTransaction().begin(); em.persist(entite); em.flush(); em.getTransaction().commit(); return entite; }
1
413e91dd4cf056c7c1f021548ac8fce4
0e5243fdeecc9da6117c6ed5b53290fc
重送方法佇列中所有擱置命令
void resendCommand(UUID uuid);
0
678f9720ee41aae8a2244c25e77035c8
0717b1695bbf70ca84040cecf0841bce
Emits the status line.
assert not self._finished backup = "\b" * self._width self._file.write(backup + " " * self._width + backup) self._file.write(status) self._width = len(status) self._file.flush() self._rate_limiter.reset()
1
203f093003891cc63064163c09cb72d8
9c697f2b7cf282611279e4aa4123e11d
Sets up a particular family structure by connecting parent to children
class Family(object): def __init__(self, founder, gender): self.names_to_nodes = {} self.root = Member(founder, gender) self.names_to_nodes[founder] = self.root
0
dab7004f51d467ed52712ba168dc78d2
3a46eeef79d84360359c818fcd5292a3
把编号为L和R的两个盒子连接在一起
{ LNode *r, *pa = La->next, *pb = L->next; LA->next = NULL; while (pa && pb) { if (pa->data <= pb->data) { r = pa->next; pa->next = LA->next; LA->next = pa; pa = r; } else { r = pb->next; pb...
0
9ef14f77a3c41bd138d34552f1e67629
ae5def607cc2ca577e2f38b35c40aba5
Scrapes all game ids from astats.
{ foreach (Game g in curConsole.getGameList()) { if (!WebOps.scrapeInfo(g)) { return; } } }
0