query_id
string
corpus_id
string
query
string
code
string
label
int64
a5714ed187110fa482b78f7501144317
088479c0910ff29329345cd78e380303
Returns activities the contretiser can use as source for finding suitable matches
class EmailActivityListProvider implements ActivityListProviderInterface, ActivityListDateProviderInterface, ActivityListGroupProviderInterface, CommentProviderInterface public function getTargetEntities($entity) { return $entity->getActivityTargetEntities(); }
0
2fb70fe7f94700748a18491efa6a94ce
019a4a86fd648e80e7888913f5fd67c2
删除指定名称的文件
with sqlite3.connect(open_db_name) as db: cursor = db.cursor() sql = "delete from File where Name=?" cursor.execute(sql,data) db.commit()
1
d564bc60e9fa4c7bb07b70a8915d79f3
19676ebdac67577683112603603dbddb
Gets the back history.
class Criteria implements CriteriaInterface public function getHistory() { return $this->history; }
1
3acdeef68a6b513cd7f952c96f247367
da0704e3ced031f8927bf4d0a4710037
判断替补球员是否已修改
function FormationCacheDataModel:CheckKeyPlayersChanged() if self.playerTeamsModel:CheckKeyPlayersChanged(self.keyPlayersCacheData) then return true end return false end
0
9099717ce71e99b0be95a1cbac3adcf1
9cd8745976f8f97cf6369b6404cad611
- Keras 2 different parameter order
for i, layer in enumerate(self.base_model.layers): print(i, layer.name) for layer in self.model.layers[:249]: layer.trainable = False for layer in self.model.layers[249:]: layer.trainable = True try: parallel_model = multi_gpu_model(self.mo...
0
607e69d06716e849d5b9641a8bcbfb62
e16b11d72a8b526b09f1428ef650fa6a
载入接诊清单
function findJC(name, inpatiSerialNumber, patiSerial, inpatiNumber) { $("#jc_html").panel("open"); setInfo('c', inpatiSerialNumber, patiSerial, name); createCheckTable(); var param = { 'map.inpatiSerialNumber' : inpatiSerialNumber, 'map.patiSerial' : patiSerial, 'map.inpatiNumber' : inpatiNumber } loadData(...
1
6ff027307300a07fd52c7334ff2e667a
3240703ff8e8054fb683f36d597648e8
Obtiene todos los resultados para la instancia de la página
function getAllResults($database){ $results = $database->select("resultado", "*", true); return $results; }
1
24db07c2b5dcd229e4e133bc9c343ef7
3f5b3e3086185b5ef6d3fafb59a562ec
获取当前用户所在企业的下属企业列表(如果没有使用的地方就删除掉)
ResponseResult<List<AuthEnterpriseFlatDTO>> getParentSubEnterpriseFlat(AuthPlatformUserInfo userInfo);
1
339cc993c42d09bb26034b9373a793aa
db9bb271fff631d01ae701693ba5771f
Forces an unindex of this data from the solr server.
@Service public class SolrServiceImpl implements SearchService, IndexingService public void unIndexContent(Context context, String handle) throws IOException, SQLException { unIndexContent(context, handle, false); }
1
3f0f7be05864c9567e2149f212aea896
38deaaf9e6fb6e08de1fdf400fb41cde
VERIFICA SE, DEPENDENDO DA QUANTIA DE PONTOS, GANHOU OU PERDEU
void ganhador(char matriz[8][8]) { int i,j; for(i=0;i<8;i++) for(j=0;j<8;j++) { if(matriz[i][j]==2) dama.cont1++; if(matriz[i][j]==1) dama.cont2++; } if(dama.cont1>dama.cont2) { ...
1
c9b08820cd14f5be0c1e8affdb709a46
6b89dc09dea699f1ef2997475cb8e3a5
反对主贴
if(IS_GET && isset($_SESSION['userid'])){ $is_against = $_GET['is_against']; $answer_id = $_GET['answer_id']; $operat = D('Personoperat'); if($is_against == 1){ $operat->against($_SESSION['userid'],$answer_id); }...
1
0ad4d0d2963d8e3dfd66f6617c4baed4
48e4f000820b17be3efe667a2ff47113
回调,当频道列表改变时,重新获取频道歌曲列表
channeInfoList, topChanneCount = self:getChanneInfoList(excludeChanneList) local oldInnerSize = msgListView:getInnerContainerSize() local oldInnerPos = cc.p(msgListView:getInnerContainerPosition()) msgListView:removeAllItems() for index, item in ipairs(channeInfoList or {}) do ...
0
05547f954e11994c93323a7b2b05d240
5271f7b3d11b1acd57662e280d87072b
Triggered on any filter input change. Uses timeout function to rate limit api call fire
filterVideos() { this.send('clearTiming'); const doneTypingInterval = this.get('doneTypingInterval'); const typingTimer = setTimeout(this.get('filter'), doneTypingInterval); this.set('typingTimer', typingTimer); }
1
d199486c861b40174d85d7e70b371088
1d3505bde697710760f9c2034d07cf2f
Metric type. Valid values are `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`, or `ALBTargetGroupRequestCount`.
public class InstanceGroupManagerPolicyPatch extends GenericModel public static class Builder public Builder metricType(String metricType) { this.metricType = metricType; return this; }
1
d8b7d3c4129f74daeda5eafec6ad8c83
df2d4253161e389b0a220890e8dd6276
Gets the Rrpi Full Ref 12m
namespace EnergyTechAudit.PowerAccounting.DeviceReader.Ecl110.API internal sealed partial class Functions public byte[] GetPnu11181_11186() { return _modbusPackageHelper.GetCommand(_deviceAddress, _commands.GetPnu11181_11186); }
0
48ea6ccabaf78de83aab07b499f2a185
8f406aba526470ba5135ba79db14e4e0
Set the timeout on CONNECT packet
class VsSocket : Runnable fun setConnectTimeout(timeout: Int) { this.connectTimeout = timeout }
1
223abd9a0a5c0c9aff14403959e0fd56
89738fed8cc27df2e9225fc8ec8e6606
Send handshake and bitfield requests to the peers above me
class swarm(): def connect_to_peer(self, peer_index): self.peers_list[peer_index].initiate_handshake() peer_bitfield_pieces = self.peers_list[peer_index].initialize_bitfield() self.swarm_lock.acquire() self.update_bitfield_count(peer_bitfield_pieces) self.swarm_lock.release() ...
1
8b4e1497293553a6aa47a588de3c8d10
adfde4cebccbfe564c8e5e720bfdff4d
Print an array, assumes array dimension is known
void dprint_array(const void* src, size_t len) { dprintf("array[%d] : ", (int)len); const uint8_t* p = src; while (len--) { dprintf("0x%02x ", *p++); } dprintf("\n"); }
1
bf8e673a84f74de16d9e6670fb149177
6b9b4f3cf3efe3a2118ef6595cc11883
Logs the retrieval of upc audit information.
@RequestMapping(method = RequestMethod.GET, value = UpcInfoController.GET_DIMENSIONS_AUDITS) public List<AuditRecord> getDimensionsAuditInfo(@RequestParam(value="prodId") Long prodId, HttpServletRequest request) { this.logGetDimensionsAuditInformation(request.getRemoteAddr(), prodId); List<AuditRecord> dimensions...
1
bcff360a2dbde485786aa6f4b9cabd17
174c9b41c90fe73a6284c86927d611f1
jieba精确分词
text = "我来到北京清华大学" seg_list = jieba.cut(text, cut_all=True) print("[全模式]: ", "/ ".join(seg_list)) seg_list = jieba.cut(text, cut_all=False) print("[精确模式]: ", "/ ".join(seg_list)) seg_list = jieba.cut(text) print("[默认模式]: ", "/ ".join(seg_list)) seg_list = jieba.cut("他来到了网易杭研大厦") prin...
1
97c5ec744af9b8c7f7317686f6568eb9
290f28cfacc777ecaf5cff0a7a3e4208
Get the transaction class associated with this database backend.
$dbClient = $this->mFactory->getDatabaseClient(); if (null == $dbClient) { $dbClient = $this->mPersistence->getDatabaseClient(); } if (null == $dbClient) { list ($caller, $callerModuleName) = App::GetCallerModule(); $dbClient = App::Instance()->getService('db', $caller); } return new DatabaseTransa...
1
dd21fc5c7e6c19f467163540bc470811
2b4391c3c705bd7cf054d1f18a9c7513
Adds a plot widget to a layout that will show the acceleration's x values
public class LoggerActivity extends FilterActivity implements Runnable private void initPlots() { XYPlot plot = (XYPlot) findViewById(R.id.plot_sensor); plot.setTitle("Acceleration"); dynamicPlot = new DynamicLinePlot(plot, this); dynamicPlot.setMaxRange(20); dynamicPlot.setMinRange(-20); addAccelerationPl...
1
a453b0886812c3d8507081471b153803
3e55fe21bceeae298844fff085228509
FUNCTION DESCRIPTION Get first available bookshelf id PARAMETERS void RETURNS S32
unsigned long long get_max_book_id() { std::ifstream fin = get_file_read_handler("./books.txt", 'D'); std::string line, temp; std::getline(fin, line); temp = line; while (!fin.eof()) { temp = line; std::getline(fin, line); } if (temp.empty()) return 0; else { ...
0
86377a49defa1d0dc476d8954127e936
9661e096c0e9d3cbf94e8c10a466dfcf
Function to standardize scores
def standard(array): return (array-np.mean(array))/np.std(array, ddof=1)
1
1818747ab4080269a0e7d915503c558b
2e48be1c6ef2bacaa12012dce2b7e4c2
Формирует битмап по таблице фактов.
def table_to_image(table): t = fits.getdata(table) bp = np.zeros((1024, 1024)) bp[t['PIX1'] + 4, t['PIX2'] + 4] = t['VALUE'] bp = np.transpose(bp).astype('int') return bp
1
42a43a7e3ca51f767c280f097b38fc85
ba9cac30ecfb23f978e2087cbc836141
Check we can learn to output a zero vector
X = [] X.append(np.array( [ 0 , 1 ] )) X.append(np.array( [ 1 , 0 ] )) X.append(np.array( [ 0 ,-1 ] )) X.append(np.array( [-1 , 0 ] )) F = [] F.append(np.array( [ 2] )) F.append(np.array( [-1] )) F.append(np.array( [-2] )) F.append(np.array( [ 1] )) specs = cot.Container( tru...
1
776294d30fb3f4eec709224a3494490d
a75ad121141b69d241e29634db100a1f
inserts a new crawled url into the database
class Crawler(): def insert_url(self, sour_url): query = "insert into br_url(content) values(%s)" self.cur.execute(query, [sour_url]) self.conn.commit()
1
86f92825fcc5d264c417e8a70b51e842
22254f1e155a50d240434d7b01cb852b
just update the source again when a new file is added
void LocalPhotoFrameSource::onFileAdded() { requestSourceUpdate(); }
1
bc1d6d581995bd67422d20b095e02c07
62de4548fc06443659a93f69b813ab0c
将时间戳转化为短日期时间格式,输出如:yyyy-mm-dd
@Slf4j public class DateUtil public static String getShortDate(long timestamp) { DateFormat df = new SimpleDateFormat(DATE_SHORT); return df.format(new Date(timestamp)); }
1
b4cc3215e23bdfd4c0912c2cbedb9ce7
2c7419be4d7a826ef9c239ec534fbb7a
获取用户指定期数内的日工资/契约日工资总计
{ $user = $this->user; $formal = $this->formal; $probation = $this->probation; if ($user['status'] === '离职') { return round(100 / $this->month_daily * ($formal + $probation), 5); } $professional_so = $user['professional_so']; $fixed = Welfare::wher...
1
1a98dd7bae5f26b9a3ca4b57ffd5b8fc
4f09ba34b1287b9a6deb3bc1e50b1440
補打卡申請
{ $update_time = Carbon::now(); $request = Request::capture(); DB::table('job_approve_history') ->where('id', $applicant_id) ->update(['approve_flag' => self::APPROVED , 'approve_memo' => $request['approve_memo'] , 'approve_at' => $upda...
0
558906bf74152da2beffd289aceaae2d
add87d1b00ec43cc2e23e51387fb756f
Send a process chain to the graas backend to be run asynchronously in a ephemeral database
@LnkMethod(async = true) void chainProcessTxn(TxnRequest request, @Callback TxnResponseHandler respHandler);
1
4de2770f7bc46d5af13daae11ec949f5
8ca027c15c4c02f2ca9d346eac450966
Deletes a range of sibling nodes from the current node to the node specified.
const parentNode = maybeParentNode; let child = startNode; while (child !== endNode) { const next = child.nextSibling; parentNode.removeChild(child); context.markDeleted(child); child = next; } }
1
3df14b0225f9f8516cfc22a5f8a5a3c9
4e33b7c4ca6b33e7f35827b6b5c82b8a
null值保证。 将undefined值转换为null值,保证可以正常入栈。
export class Forum undefinedToNull(obj) { obj = JSON.parse(JSON.stringify(obj, function (k, v) { if ( v === undefined ) return null; else return v; } ) ); return obj; }
1
e3547c81ee2a186a729e25b5b659500e
e13ec33f178e7e2656a6ed16bb96625c
Returns the meta object for the containment reference list '{@link br.pucrio.inf.les.genarch.models.configuration.ConfigurationClass#getFields <em>Fields</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EReference getModule_Fields();
0
b32634b6a8da2d6f7df08048def51648
092f2609b2164529114dd3d0c2b42e24
Issue a job command like start or cancel
namespace Machina public class Robot public bool Issue(Action action) { return c.IssueApplyActionRequest(action); }
1
c7ef71e8cb06ba08ada2e9a65ad90d6c
2158cd2eb996b59ae8a4f68648fd788f
Computes a Java class name from a local name. <p> This method faithfully implements the name mangling rule as specified in the JAXB spec. Typically, this method returns "NameLikeThis".
final class ClassImposterizer @Override public String getClassName(final String prefix, final String source, final Object key, final Predicate names) { return "codegen." + super.getClassName(prefix, source, key, names); }
0
5c58497565eae4d26c425d71a2325548
72a81eead588dc4c9eb8755c366aaebb
批量添加到呼叫任务
{ using (UnitoysEntities db = new UnitoysEntities()) { foreach (var entity in entityList) { db.UT_CallTransferNum.Add(entity); } return await db.SaveChangesAsync() > 0; } }
1
a0447250462aeec429f468c10991e93a
140c92db512676d2a133d6005a19c14c
JSON-ify the principal Used when JSON.stringify() is called
VALUE v_str; v_str = rb_str_new2("#<"); rb_str_buf_cat2(v_str, rb_obj_classname(self)); rb_str_buf_cat2(v_str, " "); rb_str_buf_cat2(v_str, "principal="); rb_str_buf_append(v_str, rb_inspect(rb_iv_get(self, "@principal"))); rb_str_buf_cat2(v_str, " "); rb_str_buf_cat2(v_str, "timestamp="); rb_str_buf...
0
8ed32a9531a9718b037141bb1df03703
9d1398d800787a550b460fb773324979
为每个疾病,计算它和所有基因的相似度
public class Graph : MonoBehaviour private float CalcDivercity(Human[] humans) { if (humans.Length == 0) { return 0.0f; } int[,] geneCounts = new int[Global.GENE_LENGTH, 16]; foreach (Human human in humans) { int gene = human.Gene; ...
0
8882c499c2d2edd460e46df974f11e73
a2081bf50e29dd93660a6374681bd9fb
加权汇总排序选股
def sort_indicators(stocklist, context, bar_count=100): if stocklist is None or len(stocklist) == 0: return [] def get_scores(series, ascending): series = series.astype(float) nans = series.apply(np.isnan) non_nan_series = series[~nans] nan_exist = nans.any() uniq...
1
8bb0c9c953ef566a91ce04996d777730
ca004bb964eed238871d43ace546fc1c
Exception raised for parameter parsing errors. Attributes: message -- explanation of the error
class EmailException(Exception): def __init__(self, value): self.parameter = value
0
b2b93f559e4087c20904f2c1a3966863
3d3d78b467dc14f014e05c3e58099c16
This is used to serialize a representation of the object value provided. If there is a <code>Convert</code> annotation present on the provided type then this will use the converter specified to serialize a representation of the object. If however there is no annotation then this will delegate to the internal strategy. ...
<T> SerializedObject<T> serialize(Object object, Class<T> expectedRepresentation);
1
6ba00b5e27467c7854a6a3152bc1dcfc
1a8fc731d1b7151012bd7187557d9610
@brief Subroutine to globally enable or disable the anti aliasing.
void ZPrimitivePlot::zp_setAntialiasingFlag(bool flag) { zv_antialiasingFlag = flag; }
1
75a385fac11886a577a3e5c2dc7cfbb4
f0e9cd6d82170d97bc1273eb03ff1f29
+--------------------------------------------------------------------------------------------- 获取SKU对应的海外仓配对SKU,当没有匹配,则返回自身 +--------------------------------------------------------------------------------------------- +--------------------------------------------------------------------------------------------- +-----...
{ $data = $this->find()->where(['s_sku' => $sku, 'status' => 1])->one(); if($data) { return $data->p_sku; }else{ return $sku; } }
1
0267ae7da67b9067cff79a1256ce5622
561a4889958b5e204e36bf7da96f674b
Retrieve the output ID for a workflow output file using the output name.
class NodeIndexerAPI(BaseAPI): def alias_output_id(self, alias_id): return self.send_message('aliasOutputId', { 'aliasId': alias_id })
0
2f931728545fcb6f8345c3824ffbb759
c035280a852d201dd795dc5f93374d5c
Check if <territoryLiveTm> has a value
public class NewOrderViewModel extends ViewModel implements InsertCallback, LoadCallback, GenerateExcelFileCallback private boolean hasSetTerritory() { return !TextUtils.isEmpty(getSetTerritory()); }
0
dfaac4dde2965f7b2a422cead40678b5
8dd57321206d3eae73509155c5a2d506
Stop all current silos.
namespace Orleans.TestingHost public class AppDomainSiloHost : MarshalByRefObject public void Shutdown() => this.host.StopAsync().GetAwaiter().GetResult();
1
96b343273cbd20255eb66b7efab342b5
691a6d2e296f8d498331e3a9cd2031df
Generate and display the divs that hold the graphs.
x = [i for i in range(-10, 11)] y1 = [3*i for i in x] y2 = [i**2 for i in x] y3 = [10*abs(i) for i in x] graphs = [] graphs.append( go.Scatter(x=x, y=y1, mode='lines', name='Line y1') ) graphs.append( go.Scatter(x=x, y=y2, mode='markers', opacity=0.8, ...
1
3f759a092d5c25629985844bbab66840
e6f3106330578815b758b86ad8844dc0
Tests migration of blocked IPs.
public async Task BlockedIp() { var blockedIp = IPAddress.Parse("192.99.110.138"); var trotterMiddlware = new TrotterWatchMiddleware(httpContext => Task.CompletedTask, new TrotterWatchOptions()); HttpContext context = new DefaultHttpContext { ...
1
950de2639166ed663e9905331cf3dd47
3c1bd558fba1875840a5d29bbb9864ed
Returns nearest integer square root
public class ChunkManager : MonoBehaviour public static int isqrt(int n) { return (int)Mathf.Round(Mathf.Sqrt(n)); }
1
5144e2a29081c89cfb53dc8041df8da3
f4a6a6ef6937bd95ce20e9368045fdca
Retorna la estación si la medición que contiene es válida o retorna un valor nulo si no lo es Esto significa que elimina los datos nulos y los datos atípicos usando el criterio de chauvenet
ArrayList<Double> res = new ArrayList<Double>(); Double valAnt, val, valSig; valAnt = Double.MIN_VALUE; val = Double.MIN_VALUE; valSig = Double.MIN_VALUE; int nDatos = espectro.length; for (int i = 0; i < nDatos; i++) { if (i >= 1) valA...
0
7d0069ea0e53378f8dbe7006dc7a5ebc
5dfe87b6ffb414ce75341f7bb3a5f6bf
Return list of achievements for specified game
fields=None, in_garage=None, tank_id=None, api_realm='xbox', language='en', timeout=10): return WOTXResponse(requests.get( api_url.format(api_realm) + 'tanks/achievements/', params={ 'account_id': account_id, 'applicat...
1
6f2ff5fafe82d5f54cef1dceb28f3f0b
2e74e1f09e1515e5807517253f81f888
Returns the maximum distance that the item can be used.
namespace OpenTracker.Models.Items.Factories public class CappedItemFactory : ICappedItemFactory private static int GetItemMaximum(ItemType type) { switch (type) { case ItemType.Sword: return 5; case ItemType.Shield: ...
0
2186c66b99ad7b2365ba17029a1c4b4d
ed32d4a9596aaa057785b3fe6b8d10ac
分享(文字微博)到QQ
Bundle params = new Bundle(); params.putInt(QzoneShare.SHARE_TO_QZONE_KEY_TYPE, QzoneShare.SHARE_TO_QZONE_TYPE_IMAGE_TEXT); params.putString(QzoneShare.SHARE_TO_QQ_TITLE, title); params.putString(QzoneShare.SHARE_TO_QQ_TARGET_URL, targetUrl); if (!TextUtils.isEmpty(summary)) { ...
0
82fcd3fbc959597828b2c84302b9346e
11ea8cebcef99900c707bf9c81a6b6ae
Fill missing temporal profiles with a default profile
if ('tmin' not in res.columns) or ('tmax' not in res.columns): raise ValueError("`tmin` and `tmax` values must be included in dataset.") res['tmax_prev'] = res.tmax.shift(1) if time_start is not None: res['tmax_prev'] = res['tmax_prev'].fillna(time_start) res['time_since_prev'] = np.roun...
1
fdb3692de5a4bfd4afbe55aad795167c
083e768cfab7c897ccd0f2e587487f88
Applys rotation matrix to the geometry of the structure.
class BaseStruct(list): def rotate(self, rotVector, angle, units='deg'): assert len(rotVector) == 3 rotVector = array(rotVector) rotVector /= norm(rotVector) x, y, z = rotVector if units == 'deg': t = angle * DEG2RAD else: t = angle ct = co...
1
f549a0b75b45853f4fd89425d53c6da9
a1ee941c06bbe8a438f97815e0f43060
This function retrieves the repeater information from the connected device.
{ int retVal = EM_SUCCESS; int wRet, i = 0; uint16 currRecord = 0; uint16 nextRecord = 0; uint8 sdrBuffer[MAX_SDR_BUFF_LEN]; int *pSdrCount = NULL; int *pMaxSdrLen = NULL; struct sensor_info *pSensorInfo = NULL; SDRRecord_T *pSDRRecord = NULL; SDRRecord_T *pHeadRecord = NULL; SDRRecord_T *pTempHead = NULL; ...
0
018b50030e96e818111b6d4d6e1d226c
97be0a78e63c5e01f90760dfb3051882
Generates empty lookup object for a specific room.
function createLookupContainer(){ return ArrayUtil.create(numAlgoKeys, ()=>{return {};}); }
0
bcd375a2445153c260d9c0fa99e22dbd
2584f73ac200637e74424d15e6470bc6
Test case for validate_postal_code_with_rate_data Validate if a zipcode is valid for origin or destination location for a move. # noqa: E501
class TestPostalObjectsApi(unittest.TestCase): def test_objects_object_code_get(self): pass
0
e7dc38d286cfec9ff9578f16198e8e54
ea36496d4bb6e78d60c262afed582fb3
Get the greaterThanOrEquals from this BooleanExp.
return BinaryExpression( type = BinaryExpressionType.GREATER_THAN_OR_EQUAL, left = asExpression(), right = expr.asExpression(), sqlType = BooleanSqlType ) }
1
eaebae162111189d652c0736fb3d008c
b407fef2114faec0022034c02cae0c98
创建一个车间
public class WHFactory public static IWareHouse createWareHouse(){ return new WareHouseService(); }
0
bb5c26b49d1a92d10d81374ea612e201
48ecc08e498deeecbbd4bb5454bd7c1f
Returns a variable buffer amount depending on open space and number of queues
{ int dataFront = get_front_index(); int dataBack = get_back_index(); int midSpaceOpen = dataBack - get_header_len(); int weightedBuffer = midSpaceOpen * ( (float)data[0] / MAX_QUEUES ); int evenBuffer = midSpaceOpen / data[0]; if(weightedBuffer < evenBuffer) { return weightedBuffer;...
1
6599399333e38f106046e9c094e7f14e
a689b11d641b4eda527c84aefcfc7f75
newConfigMapsListerWatcher 用于创建 tmp namespace 下 configmaps 资源的 ListerWatcher 实例
func NewConfigWatcher(log logrus.FieldLogger, configPath string, clusterName string, notifiers []notify.Notifier) *ConfigWatcher { return &ConfigWatcher{log: log, configPath: configPath, clusterName: clusterName, notifiers: notifiers} }
0
049e4e252987c4708dd18e1cb2cb37cc
6a820f7593e5039eb1b924fdf1e98cca
test a get request to the validate answer view where the cache times out
sess = Session(SERVER_URL) sess.silence() res = sess.get('/cache/no-max-age') time.sleep(1) res = sess.get('/cache/no-max-age') assert res.status_code == 200, '200 not returned for no-max-age request.'
1
d6b2393d0d3c18f6717e45a26f8e6c0d
b81df2311fedc807e2f70925c45296b0
モーションのタイムライン描画処理
{ LPDIRECT3DDEVICE9 pDevice = GetDevice(); pDevice->SetStreamSource(0, g_pD3DVtxBuffTimeTrack, 0, sizeof(VERTEX_2D)); pDevice->SetFVF(FVF_VERTEX_2D); for(int nCntTrack = 0; nCntTrack < MAX_TIMETRACK; nCntTrack++) { if(g_aTimeTrack[nCntTrack].bUse == true) { pDevice->SetTexture(0, g_apD3DTextureTimeTrack[g_a...
1
1f636fdddd9a2c72c6624047cc85c6ab
e22e457242356c0acad1045759b056cc
Kategorisasi jumlah transaksi
@JvmSuppressWildcards interface TransactionApi @PUT("/api/v1/transactions/categorize-multiple") suspend fun categorize( @retrofit2.http.Body body: CategorizeTransactionsListRequest ): Response<Unit>
1
a52fb45b02cbb6ea238ca0e832ce9e67
1714308756cc856bd73da3ea2d17b6e4
Resets the text in the generate panel to the default date formats.
public class DataEntryPanel extends JPanel{ public void resetTextBoxes() { enterLetter.setText("Enter letter guess"); enterWord.setText("Enter word guess"); }
0
8a41d449c05b066708a893f4706293fa
9449efa81c122c97cc90db1dd4c70c99
Determine whether one array is a subsequence of another.
class BaseArrayHelper public static function isSubset($needles, $haystack, $strict = false) { if (is_array($needles) || $needles instanceof \Traversable) { foreach ($needles as $needle) { if (!static::isIn($needle, $haystack, $strict)) { return false; ...
0
523b18568948a9dc5733193fed462f47
fed4672b4545d7527e6f1766eda89a92
Returns users table title
class DepartmentUser extends RowAction public function title() { return '<i class="fa fa-users"></i>'; }
0
3cb56143965f014f2dc63eb208949c6e
a0f756e701279768c3be1559d6fa7e37
Sets the route overview polyline
public class Routes implements Serializable{ public OverviewPolyline getOverview_polyline() { return overview_polyline; }
0
75ef5957264967170b90f42e09da7fe1
cb60f8d7f8dc8755f3d7fd2c74b3b91d
Find All Server Environments
function getEnvironments(req, res, next) { const masterAccountName = config.getUserValue('masterAccountName'); let filter = {}; OpsEnvironment.getAll().then(list => Promise.map(list, env => env.toAPIOutput())).then(data => res.json(data)).catch(next); }
1
9da9b43ee58b9001102e8f64b6e92138
4a92274149e565c6c98d9cf03f4f83d6
指定された投稿が良いね済みか判定
class User def stock?(post) stocks.exists?(post_id: post.id) end
0
cc203d8b1fb4a746d9703da0939902ca
fb26f6e64243e72542c96d0a802fbb15
Gets the total number of CPK content files.
class Channel: def fileGetCount(self): count = ct.c_int() dll.kvFileGetCount(self.handle, ct.byref(count)) return count.value
1
864e0ec8216a97465e1161d6f63cb1d3
40903aed19932ec4f3133bcc1c58cbc5
创建buffWord特效
if (isClose) { this.buffDescNode.active = false; return; } else { this.buffDescNode.active = true; } this.buffDesc.string = buffCfg.des; }
0
b65f2664e6f6d492b451b8bc38d5f5a6
2a9d9cd9929f90fb70c6e4ffb1f6d09b
交集数量
public class SparseIntegerVector implements Serializable public final int intersection(final SparseIntegerVector other) { int agg = 0; int i = 0; int j = 0; while (i < this.keys.length && j < other.keys.length) { int k1 = this.keys[i]; int k2 = other.keys[j]; ...
1
687c2244b5dd33f1972d02f1d731b229
ed7110a2ba36bb69dbc59eb59ce0dd22
Serializes a protobuf {@code fixed64} field.
namespace Google.ProtocolBuffers public sealed partial class CodedOutputStream [CLSCompliant(false)] public static int ComputeFixed64Size(int fieldNumber, ulong value) { return ComputeTagSize(fieldNumber) + LittleEndian64Size; }
0
3b5a979a5b7756c91f4c11afe23016bd
960e834f3769affa5c1bedc622d78626
Initiates the asynchronous execution of the ListStateMachineVersions operation.
namespace Amazon.Elasticsearch IAsyncResult BeginListElasticsearchVersions(ListElasticsearchVersionsRequest request, AsyncCallback callback, object state);
0
717ea32899917821e6d50d00a943065a
1f569e5db5d10b86a9d7cb584e76d27e
Get Information (VisualDTO) by name
[Microsoft.AspNetCore.Mvc.RouteAttribute("GetVisualLocationByName")] public virtual SampleSystem.Generated.DTO.LocationVisualDTO GetVisualLocationByName([Microsoft.AspNetCore.Mvc.FromBodyAttribute()] string locationName) { return this.Evaluate(Framework.DomainDriven.DBSessionMode.Rea...
1
2ee547a6bf1e4270de7750666c3cc36b
b6c21f2e3eebc0dbd64d904e114a83b6
A vocabulary factory for making a choice of a portal type.
{ return new Choice<Placeholder, Placeholder, Placeholder, T4, Placeholder, Placeholder, Placeholder, Placeholder>(value); }
0
57c6e055d2fc9123ba0055dfd00aa75a
45b1eb7593c91a53dd1c950b825226e9
selects 2 parents based on fitness ratios
class GA: def select_parents(self): available = range(len(self.individuals)) chosen = np.array([0 for i in range(3)]) for i in range(3): chosen[i] = available[random.randrange(0, len(self.individuals)-i)] available.remove(chosen[i]) candidates = se...
0
41f2fcf7a572d014dfe18cf800ef309c
afee7d2812b46b8f768dcd1ef5a956fe
Xóa một năm học trong list các năm
{ XoaDotImportTheoNamHocHocKy(null, start, pageLength , namHoc, hocKy, dot, ref reVal); }
0
a1d90af45449b550bb1d5c08a887be6f
34d65ac687e857093376951c8ee0bbd1
Second step for the ...makeFromLengths and ...makeFromFrequencies functions. numcodes, lengths and maxbitlen must already be filled in correctly. return value is error.
local void construct(prefix_t *p, unsigned char const *length, unsigned n) { unsigned symbol; unsigned len; unsigned slen; unsigned short offs[MAXBITS+1]; assert(n < MAXSYMS); for (len = 0; len <= MAXBITS; len++) p->count[len] = 0; ...
0
76b8278aab5fc498e70394d744d4bb07
cfcd135c1d2c0bbee1f7c1831f268bce
Remove the first image to prevent a repetition of the header image (if enabled and present)
export class AddKindComponent implements OnInit fileChangeListener() { if(this.uploader.queue.length > 1) this.uploader.queue[0].remove(); this.myImg = true; }
1
8aecef980b0af28bd1e8e3c037e0204c
84c6f8ab9ba7c5d0619783baaaa07fef
教师登录的逻辑方法 接收教师工号和密码两个参数 查询匹配结果,匹配成功将数据放入教师对象中 返回一个教师对象
public TTeacher teaLogin(String teaId, String pwd);
1
514d0657e65fa4bf7abdee9054c45440
143b20ae4a1c6d097c1f93014d1cf195
Delete all favorite recipes.
public class FavsDB public void removeAllFavorites() { db.delete(FAVS_TABLE, null,null); }
1
4e04b4062cdebff611f27d17afe3f427
e6bf4bd0ae30e05b3502d6fac6ff4dce
A simple HTML progress bar for using in IPython notebooks.
position=OutputPosition.BOTTOM) -> Output: processbar_id = 'webio-processbar-%s' % name percentage = init * 100 label = '%.1f%%' % percentage if label is None else label tpl = """<div class="progress" style="margin-top: 4px;"> <div id={{elem_id}} class="progress-bar bg...
1
ef917b51b2b4aa220b98e144836f0ff5
71aebf914257f880e19fbb8999721ded
Display a listing of the Administrativo.
class AdministradorController extends Controller public function index() { $administradoress = Administrador::orderBy('id', 'desc')->paginate(8); return view('administradores.index')->with('administradoress',$administradoress); }
1
188ca469928315e13a1bd12d7b15843a
c7fbeb595a7cab72b495eaba0c06d809
get aboutus details
def aboutus(request): aboutus = AboutUs.objects.all() context = {'aboutus':aboutus} return render(request, 'aboutus.html',context)
1
573f655f2d37bfcdb40f45ad1fe6eee1
8be6d29ad7bacf5430874f14d2204922
Creates a copy of the supported file list
namespace SikuliTestResultImporter public class ResultImporter public void CreateFileCopyList() { DirectoryInfo dir = new DirectoryInfo(originalSikuliFileFolderURL); DirectoryInfo[] directories = dir.GetDirectories(); FileInfo[] files = dir.GetFiles(); XDocume...
1
ed2e13cb141d8c2019dd77f62afe0686
41fdc372f435f09f279782e80c9b9b08
마지막으로 애아전트를 학습용으로 실행할지 replay로 실행할지 선택할수 있게 하는 부분을 만들어 줍니다.
public class PhysicianMode extends AbstractMode @Override public void saveReplay(GameEngine engine, int playerID, CustomProperties prop) { saveSetting(prop); if((owner.replayMode == false) && (engine.ai == null)) { updateRanking(engine.statistics.score, engine.statistics.time); if(rankingRank != -1) { sa...
0
17dcd932e30d6c4311fd45d8c81b398b
8edcdc9f431bc6c36c4a84baa580fe39
Função para resetar a lista de heróis
{ document.getElementById('apresentacao')? document.getElementById('apresentacao').remove():document.getElementById('apresentacao'); var cardList = getCardList(); cardList.innerHTML = ""; $.ajax({url: "https://api.nytimes.com/svc/books/v3/lists/current/hardcover-fiction.json?api-key=bGVCvDfP5bmC942U18tq...
0
2560b2910a6daad48b9ef3218b67d3b9
9ac5987d863254e20a4e689c86c62eea
! \brief Sanity check hardware topology and print some notes to log
static void mpi3mr_sastopochg_evt_debug(struct mpi3mr_ioc *mrioc, struct mpi3_event_data_sas_topology_change_list *event_data) { int i; u16 handle; u8 reason_code, phy_number; char *status_str = NULL; u8 link_rate, prev_link_rate; switch (event_data->exp_status) { case MPI3_EVENT_SAS_TOPO_ES_NOT_RESPONDING: s...
1
d9ffa687b5d014fabee0e82d725dc775
4f7a7fc09440a666ec5031b030ebf300
Terminates script due to input error and prints message with use instructions.
print("Hey, I'm sorry, but due to limited resources you have made too many requests.") print("Try inputting less tickers next time. I encourage you to try again!") exit()
1
dbeac763c71e1aea14733d9e5e7a0344
54d1562768107d36af1b2db3cdde60c7
Выбранные друзья (правая панель) в формате для Handlebars (с учетом фильтра)
function renderFriends(data) { let rawMaterial = ""; data.forEach((item) => { const information = item const {name, avatar, region, id} = information rawMaterial += ` <div class="col-sm-2"> <div class="card mb-4 shadow-sm p-1 mb-5 bg-body rounded" style="width: 10rem;" id="friend-list"> ...
0
95d5d2cdedb23121a06b46cdb3485130
e949a6aaea30a7863ee4d321b3e21eed
Parse NodeCSV or EdgeCSV file and add entries to Database
namespace DecisionTree.Logic public class CCSVReader protected void fillDatabase(StreamReader reader) { string sLine = ""; while (readNextLine(reader, ref sLine) == true) { string[] attrbiuteNames = sLine.Split(CSV_SEPERATOR); CTableEntry e...
1
7545de4f92005c759fb2649467463e73
243fc06269dbcc8889e1e2d9519fe5d3
Return the absolute value of the signed area. The signed area is negative if the polygon is oriented clockwise.
namespace CGALDotNet.Polygons public abstract class Polygon2 : CGALObject, IEnumerable<Point2d> public double FindArea() { return Math.Abs(FindSignedArea()); }
1
57163d26c13b0af1271a6c5ca02787bb
a3377cb434938d20264dd874675b802d
获取关联的发布记录集合。
namespace CiWong.Resource.Preview.Service public class WorkService public List<PublishRecordContract> GetPublishRecord(IEnumerable<int> userIds, IEnumerable<int> moduleIds, long packageId, string cid, int pageSize) { return _publishRecordManager.GetPublishRecord(userIds, moduleIds, packageId, cid, pageSize); }
1
cdc5ed26e043455854fee355a6ae5d1a
2d8fced0fa7533eb52376cc5d12166ff
Builds OPTICS ordered list of clustering structure
retval, labels, stats, centroids = cv2.connectedComponentsWithStats(clustraw) sort_indx=np.argsort(stats[:,cv2.CC_STAT_AREA]) stats = stats[sort_indx[::-1]] centroids = centroids[sort_indx[::-1]] return retval, labels, stats, centroids
0
9f8a3353dd445a812d70e47555a23de0
b84b07f81636de01dc06601248c07e6a
Test missing air composition.
dc = defined_compound_v2000_factory.build() dc.initial_data.pop("molfile_v2000") assert not dc.is_valid() assert ( str(dc.errors.get("non_field_errors")) == "One of ['molfileV2000', 'molfileV3000', 'smiles'] required." )
0