query_id
string
corpus_id
string
query
string
code
string
label
int64
a3db00d90e7e6709dd4e02e6145a94e2
a3162e170923fe7a8d090bf815885c23
Test for a missing field during password reset
{ $contents = $this->post( 'q=password-reset-request' . '&csrf=' . $this->getCsrf(), [ 'csrf' => $this->getCsrf(), ] ); $this->assertStringContains('Reset password request failed', $contents); $contents = $this->post...
0
984ff252a6e92e0486447ae2f0832b86
2c66ae8cf4e356194beb5a5d5c1a09d2
xóa sản phẩm khỏi hóa đơn.
{ $product_id = $request->product_id; $order_id = $request->order_id; $order = $this->model->find($order_id); $item = $order->relationInvoiceOutgoing->where('id', $product_id)->first(); $item->delete(); $order->reFresh(); foreach ($order->relationInvoiceOutgoi...
1
06c110fa99f75237c649d4b677c71634
d83b8919ebe247f2413b7b0583867158
Adds an empty base layer to the top of the layer stack.
namespace Microsoft.Health.Fhir.TemplateManagement.Overlay void ClearBaseLayerFolder();
0
b8622b312dff596cd0b8a9f8e0d398a0
df08c2df48899b4574776cf4e62e91ad
Returns all of the Methods that are used to remove items from inner collections
{ return mRemove == null ? null : Collections.unmodifiableSet(mRemove.keySet()); }
0
4bb100738c086c1fbce3c1a512cf49e5
c9e5d0f271be684c765cce1101b573ca
Test case for scheduleTypesIdPatch .
class BoardTypesApiTest extends \PHPUnit_Framework_TestCase public function testServiceBoardsIdTypesTypeIdPut() { }
0
800d3343b158137bd305d7f28456f5ce
37c6e1d3f500005b83eaaa1db25a5297
服务运营商收取服务费排行 TOP10(柱状图)
@Service public class McServiceChartsService extends BaseService public List<McChartsView> serviceChart1Second(String timeStart, String timeEnd, String serverName,String userName) { return mcServiceChartsMapper.serviceChart1Second(new McChartsView(timeStart, timeEnd, serverName, userName)); }
0
91df19b0dbdefef122169a322ba613e1
f8f2545e35c88d0e3f9e5a91ab7be54b
Convert a LibTorrentDownloadImpl object to a dictionary.
return { "URL": self.__url, "Location": QFileInfo(self.__fileName).filePath(), "Done": self.downloadedSuccessfully(), "PageURL": self.__pageUrl, "Downloaded": self.__downloadedDateTime }
1
8419dd9560a507c1f7d4b6ee469097e1
c0f57fde78f5a7177c420e4d7228532a
Obtain the device status from the database
sess = Session() status_info = Base.classes.dev_status_info res = sess.query(status_info.alias).filter_by(deviceSN=deviceSN).one() sess.close() if res and res != 'NULL': return res[0] else: return False
1
e25ca6df63aa880a361d5697d484edeb
679dfe79b04f45ca2e0382e501d29333
해당 기간 동안에 수신된 알림을 검색합니다.
List<TblNotification> getListBySenderReceiverDate(String receiver, String sender, Date startDate, Date endDate);
1
2a6e59cb75ef3c84e3dbac8208913ec4
fba7195384fa78774023870e685d9f58
Parses a keyword string into an array of numbers User-supplied wildcards are removed and strings are split on commas Only numbers are returned
no_commas = re.sub(r'\d+', '',keyword.strip('(').strip(')')).lower().split(',') no_spaces = [] for j in range(len(no_commas)): temp = no_commas[j].split(" ") for x in range(len(temp)): no_spaces.append(temp[x].strip(" ")) return no_spaces
0
0cc289077ad11b509366abf73e9189dd
08709f98a901e35d716824c0f7871317
================ API ================
def rq = RequestStore.store
0
9e0b4bd2d6ba383bd52ba1e1658b2055
06115b16b65d476241db220bf81da4f1
Generate function to randomize order of blocks.
class RandomBlocks(object): def __init__(self, size=BLOCKSIZE): self._generator = block_generator(size) self.blocksiz = size
0
70204c6397054b7955c6a6472aa7fa64
3c918edaf49dc7083d7792feb3b6e98d
取得客户的下线个数
$option = array( 'fields' => array('count(id) as count'), 'conditions' => array('customer_id' => $customerId) ); $data = $this->find('all', $option); return $data[0]['count']; }
1
f6ccf7f376c2e9d12e3dbd527917cebe
ba910c4e993a45e5217129355941c645
Get ID of the AZ where the instance resides
_logger.debug('%s', where_am_i()) if self._metadata is None: return None return self._metadata['instance']['availabilityDomain']
1
edfb385956733fd1f5e583f660045fff
dd8fc229cf5f082e7c9a0d7c6fdabd8f
执行预编译的sql语句,args参数,返回成功或失败。
@SuppressWarnings("unchecked") public class Dao<T> public void executeCall(String sql, final Object... args) { jdbcTemplate.execute(sql, new PreparedStatementCallback<T>() { @Override public T doInPreparedStatement(PreparedStatement ps) throws SQLException, DataAccessException { if (args != null) { ...
0
8dff1adb97ceb09393f2dfe6ffbac74e
f2926a34397887c4a2e526aac420bf3f
Gibt den zum Zeitpunkt des verkaufens/kaufens anliegenden Preis wieder.
public class Trade public float getPreis() { return preis; }
1
d68ad090be4f2a8688b45cc989a6c3fa
ea53366e10a993f239513e4125222e5f
Parse the version output of ssh -V and return version numbers that can be compared
def parse_version(source): m = re.search(r"(\d+(?:\.\d+)+)", source) if m: return tuple(int(elem) for elem in m.group(1).split(".")) return None
1
2db047ec8d27e6872f65faac22501bf5
f696a55c3b1b811e8ca76e33867d6797
Filters the displayed theme elements
const allColors = document.getElementById("color").children; for (let i = 0; i < allColors.length; i++) { let matchFound = false; innerloop: for (let j = 0; j < themeColors.length; j++) { if (allColors[i].value === themeColors[j].value) { matchFound = true; ...
1
76a1a4c24133b9aa3b3617c133fbe78c
6cab7cbf38d1d29ef70a82a0fcd50197
Удаление сделки
class DealController extends Controller public function actionDelete($id) { $model = $this->findModel($id); $service = new DealDeleteService(); $service->deleteFiles($model); $model->delete(); return $this->redirect(['/crm/deal/index']); }
1
a279e8cf767214e73358fab8d1836cdb
caa4edb62f1e3efbca860d29f8646bf7
Determines if a squirrel will die or not. The state is used in the random number generation and is modified. You can enclose this function call in an if statement if that is useful.
class BaseRuminant(object): def will_die(self): return self.will_die_by_starvation or self.will_die_by_chance
0
a8248ea49c127cca9a12efb73389c078
1475409c7be8485f5c4426fe553f4952
前画面へ遷移する処理を検証する.
class UserAuthTest extends TestCase public function testRegistStepsCanBack() { $this->initialRegisterDatas(); $this->get($this->base_url.'/step/1') ->assertOK(); $this->post($this->base_url.'/step/2', self::getRegistData($this->user, 1)) ->assertOK(); $this->p...
0
34083ae27617aa99eeb5024852a337df
7359560238d760cd4d16b5448cf668a7
Returns null if the client interfaces are contained in the server interfaces, otherwise, returns a message indicating what client interface is missing or out of sync.
public String getMessage(IResource[] resources);
0
206ee9bfb752cf2d89e7a252a3487e76
001a16653870f3053797658237c84e94
查询用户组,分页参数length传值为字符串
class Test_UserGroups(unittest.TestCase): def test_06_UserGroupSearch(self): self.log.info('测试用例:%s' % sys._getframe(0).f_code.co_name) res = usergroup.UserGroupSearch('U1',returnCount=7.8) self.assertEqual(res.json()['error'], 'Bad Request')
1
3c759b4ec09bb57409e1c159f25956f8
c866442671126f51311c4b80f8c29bd6
Find the entry that is greater than or equal to the new transaction, then decrement the iterator.
public final class Cursor public synchronized boolean findGt(byte[] key) throws IOException { find(key, true); return next(mLeaf); }
0
001ee3d947b5024be95baed1c14471f2
276fd75515260f504fd267954d67ac19
Only checks if an auto backup file for shows is available, likely others are then, too.
{ $backupFile = $this->getBackupFilename($this->document); if(!file_exists($backupFile)){ return false; } return true; }
1
bdbf7d848ceaddd1118ae24c1eaf8121
543d67f717088be144028ff4222a2707
Takes an output sequence from the RNN and returns the corresponding SMILES.
class SmilesToSeq(Featurizer): def smiles_from_seq(self, seq): characters = [self.idx_to_char[i] for i in seq] characters = self.remove_pad(characters) smile = "".join([letter for letter in characters]) return smile
1
542141b5b0129c7b225248b606c124d5
2ad80bf7a84fb3fda6cfb328ee7101b9
根据文件唯一标识码启动socket
void start(String address) throws Exception;
0
0c5d232b094f398003b202663a301568
1081927fd23690c734810d59a3e6ff3a
Transform an array of numbers from decimal representation to binary. Reference: Yan, Yujun, et al. "Neural execution engines: Learning to execute subroutines." arXiv preprint arXiv:2006.08084 (2020). https://arxiv.org/pdf/2006.08084.pdf Page 4, Bitwise Embeddings
def dec2bin(bits): data = list() for a in bits: b = bin(a).replace('0b', '') diff = 3 - len(b) while (diff): b = '0' + b diff -= 1 data.append(b) return np.array(data)
1
d34bce805412b137c88fe1e6a87b53e1
16c0055d7a05afcf3fa23cfba5e2ced6
@brief query the limit error flag This function will return the current status of the limit error
{ if (WE_FAIL == ReadReg((uint8_t)TIDS_LIMIT_T_L_REG, 1, lLimit)) return WE_FAIL; return WE_SUCCESS; }
0
aa669a6bd4e30a647882959799208f83
e88e5eb815dae2aa23e28308cdb46b2b
! \internal An inverse of indexToAngle(): Given an angle in radians from the base [0,0] - [1,0] line of the pie, find the section in which this angle resides.
int32_t a2 = FP_MUL3(angle, angle, 4, 4, 8); int32_t a3 = FP_MUL3(angle, a2, 4, 4, 8); return (angle) - FP_MUL1((int32_t)FP_FLOAT(1.f/6.f, 8), a3, 8); }
0
c6e496328dbc9d247bdd0e93d9a1d912
8bfe410c8454c8cc18e457c431c8f4aa
function to create and return a new node of a doubly linked list
struct DLLNode* newnode= (struct DLLNode*)malloc(sizeof(struct DLLNode)); if(!newnode) { printf("memory error"); exit(0); } newnode->next = NULL; newnode->prev = NULL; newnode->data = data; return newnode; }
1
a0b4fc5e985336b82a0e2d13114d6a2b
780ee50c6e0ea063df86e77a4efb5c95
获取GF卫星分辨率
switch (Ascale) { case AFS_2G: aRes = 2.0/32768.0; break; case AFS_4G: aRes = 4.0/32768.0; break; case AFS_8G: aRes = 8.0/32768.0; break; case AFS_16G: aRes = 16.0/32768.0...
0
6efd01ec9648c8d0bc2318c6ff065328
98351c21da2f2ebbe9d29a60159218f3
Returns the Environment.ExitCode set by the application object when it Shutdown
def GetExitCodeProcess(*args, **kwargs): pass
0
f941c3b628accedd6febe894d702e492
1cd8839de6fd926ba60605f7377d0fe1
グリッドビューへ税区分を表示する
{ DataTable dt_work = new DataTable(); dt_work.Columns.Add("区分コード"); dt_work.Columns.Add("区分名"); DataRow dr_work = dt_work.NewRow(); dr_work["区分コード"] = "0"; dr_work["区分名"] = "切捨て"; dt_work.Rows.Add(dr_work); dr_work ...
0
0e547a7638bae445c97b4ff147f8f78e
32059d593a32c755068a551c17c7d923
Dictionaries can be created from dictionary comprehensions
def dictionary_comprehension(): return {number: number ** 2 for number in NUMBERS_TO_SQUARE}
1
512e6bcec71d0ace017ceaea77714a10
00ee22f02793adb4ab5534d1e0889ca3
lgApplyLemonGrid
{ CoverWall_t *CoverData; int flags; if ( !ent && CoreAssert_Handler("c:\\workspace\\iw8\\code_source\\src\\game\\g_coverwall.cpp", 1578, ASSERT_TYPE_ASSERT, "(ent)", (const char *)&queryFormat, "ent") ) __debugbreak(); CoverData = G_CoverWall_GetCoverData(ent); if ( !CoverData && CoreAssert_Handler("c:...
0
dc4f02a140df6e97cb0934f61c04f997
483bce5bb3dd59761f9b0de12aab0c5f
This is called just before saving each item related image. Override this to fix values if needed.
class GalleryItem extends BaseGalleryItem public function postSave($event) { $this->clearCache(); }
0
f035f98623ab50cde9c263a399df9a41
87fa21a12b17bdd9115bee89b252a5ca
Открытие файла конфигураций
class nod32ms //Базовый класс программы public function ReadConfig($filename='nod32ms.conf') { if($this->files->CheckFile($filename)) { $this->CONFIG = $this->parser->ParseKeyVal($filename); } }
1
7609722c861ed3763886ef528c08c3fb
1baf5cb014cb092605b32dc32bb52ca0
Handle a subscription cancellation notification from Braintree.
class Gateway extends BaseGateway private function _handleSubscriptionExpired(array $data) { $stripeSubscription = $data['data']['object']; $subscription = Subscription::find()->reference($stripeSubscription['id'])->one(); if (!$subscription) { Craft::warning('Subscription with t...
0
e6d77dbeef0ffebea12bdecb273e331a
85bfc5346943a16122fa14da944d94b0
MAKE-TABULAR-VIEW
function viewTransformer(doSwitch: SwitchFn, args: Arguments<KubeOptions>, response: KResponse) { if (isTable(response)) { if (isTableRequest(args) && !isWatchRequest(args)) { return asRadioTable(doSwitch, args, response) } else { return response } } else if (isKubeResource(response)) { ...
1
01a68d822dda60e85703cd14faf74004
18fcf2297dd8f84bdf7d5d08f63a5849
Find the direction of the graph. Every edges have to be visited.
int v = vertices(graph); for (auto i = graph.size() - 1; i >= vertices(graph) + 2; i--) { while (v >= 0 && graph[v] == v) v--; if (v < 0) break; if (v == graph[i]) { graph[i] = graph[v]; graph[v] = i; v--; } } }
0
ee44a49f5bf278f183d954ff4092a422
71a858a5053ed03268db9a5d599cb1da
转移多篇论文至子账户
{ exit('Has been executed successfully.'); header("Content-Type:text/html;charset=utf-8"); set_time_limit(0); $exportdbModel = new ExportDbModel(); $page = 1; $perpage = $this->perpage; $limit = ($page-1)*$perpage.','.$perpage; $list = $exportd...
0
49c46f9d558380c0bbf49d56d1cbb0b1
8ff699e934516114a7161b75681eb3f4
Bring the database into line with the badge classes found at runtime
class NASA_EVA_GamificationHooks public static function onLoadExtensionSchemaUpdates( $updater ) { $updater->addExtensionTable( 'gamification_badges', __DIR__ . '/sql/add_objects.sql' ); return true; }
1
9fe0acd103561e7a387178c82b706a70
53384a0dd25a8597add2bdb7f125f10d
根据主键获取配置
public Config getById(Long id);
1
7eb6e5d90a77c0a71411851d9c289982
67c32c8bb604c0426d585dd0d6208d81
Format a line for the CSV output.
class PythonDispatcher: def _format_line(self, key, kernel): return "{:<15} {}\n".format(key, kernel)
0
075deadc66ba5a650e4bd6342421ab80
e0c3a57ed77d336ec15424041184b045
Update a repository ruleset
return this.updateRulesetWithHttpInfo(applicationId, campaignId, rulesetId, body) .then(function(response_and_data) { return response_and_data.data; }); }
1
6b2b93ed1f45717380cc1cbd22a9241b
f61c0110968c86bc5a9e89db6286f0cb
Loads tenant-conf.json (tenant config) to registry from the tenant-conf.json available in the file system. If any REST API scopes are added to the local tenant-conf.json, they will be updated in the registry.
let axios = createCoreApiCall(store) let api = rest.getTenant(axios, tenantId, includeRuntimeInfo) return loaderWrapper(store, api) }
0
f8c69d3d6fe2423e627a07845200705f
b110e2a74d2aff1f180f5a6d2c12b6c9
Measures CO2 in air.
void PastureConverter::sendCO2 (protocol::QueryValueData& queryData) { float co2; getVariable(co2ID, co2, 300.0f, 1000.0f); sendVariable(queryData, co2); }
1
4a4c1b54e15d5768909d7a82ec8789d0
33a481afddd4d7bfc2785d6705ffcdf8
returns total time spent in IO of job object
{ if(jobCount > 0) { return turnaround_time/jobCount; } return 0.0; }
0
0e06847598db9f0e5b1737d2dc40b7f1
962cda30cea90bc4301750b2720aa292
Test does not change 2D vector already in simplex.
tableau = [[0., -1., -1., 0., 0., 0.], [8., 4., -1., 1., 0., 0.], [10., 2., 1., 0., 1., 0.], [2., -5., 2., 0., 0., 1.]] result = solver.simplex(tableau) sol = solver.get_basic_solution(result) self.assertAlmostEqual(result[0][0]...
0
f9e1127817b424fbe7d63e28f0d0ee30
f6c7efbf364125a94eff3fcad46fe5f0
利用训练好的imageNet模型进行微调
weightPara, fineTuneLearningRate, fineTuneIterNum, show=500): W1_encode, b1_encode, W2_encode, b2_encode, W_soft, b_soft = weightPara sess = tf.InteractiveSession() inputSize = W1_encode.shape[0] numClass = W_soft.shape[1] x = tf.placeholder(tf.float32, [None, inputSize]) y_ = tf.pl...
1
d74448c61b0eea7dabae38433bc8e3fe
2aaff750b143bcf6f17df60578e4a1d0
Save the fact that the user dismissed our message, and don't show again.
$dismissed = get_option( 'stackable_notifications_dismissed' ); if ( empty( $dismissed ) ) { $dismissed = array(); } if ( ! in_array( $id, $dismissed ) ) { $dismissed[] = $id; } update_option( 'stackable_notifications_dismissed', $dismissed ); }
1
279fbb95b0d0cf94bcb19c46844d1325
e0cd2b73befbcdde4cd7a7acae2ac047
Pushes a copy of the top value on the stack on to the stack.
namespace GothicOnline.G2.DotNet.Squirrel void SqPopTop(IntPtr vm);
0
40076e04e30ef5940a6fef501b24ee7d
ef21888f622dc788f9aaca8953e27ef7
黄金交叉(diff 上穿 dea)。
sma_5 = prices.rolling(window=5).mean() sma_25 = prices.rolling(window=25).mean() sma_5_over_25 = sma_5 > sma_25 cross = sma_5_over_25 != sma_5_over_25.shift(1) golden_cross = cross & (sma_5_over_25 is True) dead_cross = cross & (sma_5_over_25 is False) golden_cross.drop(golden_cross.head(25...
1
068d625621558f3025e275370762e976
feaa10aa5576e799c878c7477f13604a
Get an ingredient with given id. # noqa: E501
class IngredientsTable: def get_ingredient(self, i_d): for ingredient, ing_id in self.__table.items(): if ing_id == i_d: return ingredient raise KeyError
1
effa3af23f564125e32d814f93bd1507
7ba413aa98d537ed30b2835f1d6ecf0a
Unpickles and loads the user database
class Cork(object): def _refresh(self): self._loadjson(self._users_fname, self._users) self._loadjson(self._roles_fname, self._roles)
0
f1a6c905d245f820ae02602ada4af833
0974f1b3f2302ffe41686fdbc8016aed
削除対象店舗コードを取得します。
public class ReviewBukkenWebStatusUpdateConfirmOutServiceBean public String getShopCd() { return shopCd; }
1
914f9a392ecf4be0b23e62c9a7af78ca
5e7413ee86c9f78b2dbc8f7417a1faeb
Ajax sub modules by main modules.
{ $args = func_get_args(); if (count($args) <= 2) { if ($args[1]) { return $args[1]; } return array(); } array_shift($args); $merged_array = array(); foreach ($args as $sideboxes) { foreach ($sideboxes as $sidebox => $module) { $merged_array[$sidebox] = $module; } } $return_array = array(); for...
0
baf3bcdb2028f90ac9c1205d23a747a6
28226405c9be7eac7eb732d184b48ca8
find the max similarity between the unknown embeddings and all the registered embeddings
actual_indices = get_closest_cosinesimilarity(actual, embedding) prediction_indices = get_closest_cosinesimilarity(prediction, embedding) return tf.reduce_mean(tf.cast(tf.equal(actual_indices, prediction_indices), tf.float32))
0
3c3552d92ea173c3fd530d63cb203ad1
07d130228c09245d7c21fa035d567347
Load star formation history data for the LMC
S_table=create_S11_catalog() hdulist=aio.fits.open(fnM) M_table=hdulist[1].data shared=['objID'] t=join(M_table,S_table,keys=shared) t.remove_column('Sp') t.rename_column('z_1','z') t.remove_column('z_2') t.rename_column('PpS_2','PpS') t.remove_column('PpS_1') t.rem...
0
bf2c200a7710fb5dafe9447345ad619a
14b96e3d5ccff46a14d342a60db6fb41
删除头部按钮
if (position > 1) { if (mRocketToHeadBtn.getVisibility() == View.GONE) { mRocketToHeadBtn.setVisibility(View.VISIBLE); AnimatorUtils.animViewFadeIn(this.mRocketToHeadBtn); } } else if (this.mRocketToHeadBtn.getVisibility() == View.VISIBLE) { ...
0
c546dd477cffc762408f15615a484999
e1a4f359b1392f230775982c7bf9edf7
Gets player name of black side.
public class Controller public Player getBlack() { return black; }
0
2d9950abc36b0bfd62d32a562de796f5
adc9158c14c150f4590c375aace1e3a9
删除指定时间范围内的记录
namespace FileZillaServerBLL public class FileZillaBLL public int Delete(string startDate, string endDate) { return fzDal.Delete(startDate, endDate); }
1
b31acd239eca96a96cf076acfeedc55a
6f4bbc460b818df9d3baa4e0957d7a29
Update calibration values for all velocity PI controllers.
class Elevator void updateCoeffs(PIDFCoefficients coeffs){ this.coeffs = coeffs; left.setVelocityPIDFCoefficients(coeffs.p,coeffs.i,coeffs.d,coeffs.f); right.setVelocityPIDFCoefficients(coeffs.p,coeffs.i,coeffs.d,coeffs.f); left.setPositionPIDFCoefficients(0); right.setPositionPI...
1
d6ef760b46538f9057ad2016f77d4cb6
313ef3eb87122d33c4a091148086266a
Fetch and return the current adb version
class ADB(object): def get_state(self): return self.run_adb_cmd("get-state")
0
a6374f2385b83662a2a5162108d83e0e
9cc64f5a23b5b2ff499b20da39677a51
Returns an experiment with all its models.
sim_length=False, modular_param_space=None, silent=False, debug=False): return generate_experiments_and_data(model_types, n_samples, populations, dimension_sample_size, sim_length=sim_length, modular_param_space=modular_param_space, silent=silent, ...
1
ca3206e991c90216d48c2b7da8a4b74f
f83cb301f81b6dbc3f8bccf6441683ef
将数据库的jobs加入到boss直聘中
for (int i = 0; i < listob.size(); i++) { List<Object> lo = listob.get(i); Job vo = new Job(); vo.setId(String.valueOf(lo.get(0))); vo.setT_id(Integer.valueOf(String.valueOf(lo.get(1)))); vo.setStarttime(String.valueOf(lo.get(2))); vo.set...
0
e0726cf93a0ea0418367b4ec11dd5d55
c91ab99f8acdd327426eda643b17c6f6
Creates a proxy granting ticket storage.
def repository_create_proxy(): pass
0
2b30ea2e622ecd13e6edf59d46141678
296b0a0ff5e540c90bd566b4a2d66018
A method that returns the number of customers that left the restaurant the number of customers that left the restaurant
public class restaurantResUI extends javax.swing.JFrame public int getNumPeople(){ int num = 0; return num; }
0
1c8aea49657c2a791725fea8dc044970
a2303ef7cff4e84e6c00375b3b3cd5de
获取输入框的int类型值,若不是该类型值,则返回-1
public class MortgageCalculator public int convertToInt(EditText v) { try { return Integer.parseInt(v.getText().toString()); } catch (NumberFormatException e) { return -1; } }
1
153d39a9f4ec2e11590489490aca7431
edb039bbffb6c8d3d0d3ae3253198e77
A scrub action has completed.
namespace Microsoft.PlayerFramework.Js.Analytics public sealed class MediaPlayerAdapterBridge : IPlayerMonitor public void OnScrubCompleted(TimeSpan position) { if (ScrubCompleted != null) ScrubCompleted(this, new ScrubCompletedEventArgs(position)); }
1
d35d3e4acb7cde4e984c8cc90e0af12f
6444f2df2ca749f4b4103349d8fda1b5
Calc operation, which uses previous operation stored in lastOperation property result of previous calculation as first operand lastOperand property as second operand
if (operationIsSet()) { secondOperand = operand; } else { firstOperand = operand; } resultIsCached = false; }
0
f3072a499fd8fce97904cb1ca1cd9065
198afeec268523416ecdd94eb9bc88a0
Submits a JWT for verification and profile metadata update. The JWT should have come from a browser-based login flow to the Shibboleth service. If successful, this call will result in the calling user's Terra NihStatus being updated with the new linkage.
void updateShibbolethToken(String jwt);
1
19942126d21af173541deefb6b7a5824
f4081783e48c8d31a25223b27feb8df4
test statistic for 2-sample test does not assume equal variance
df = n-1 chi2 = (n - 1)*sv/popvar pval = stats.distributions.chi2.sf(chi2, df) * 2 npt.assert_(pval > 0.01, 'var fail, t, pval = %f, %f, v, sv=%f, %f' % (chi2, pval, popvar, sv))
0
5daec862d72c5e7345d733bf0d51bf5a
e34acb44743f6ff9ba2775c5f50ce151
Stringify and set "cities" key in localStorage to recentlySearchedCitiesArray
function init() { var storedCitySearches = JSON.parse(localStorage.getItem("weather-city")); if (storedCitySearches !== null) { recentCitySearches = storedCitySearches; } console.log("localstorage initd: ", recentCitySearches); renderPastSearches(); }
0
f3cad8482f63468634920bc6928bc36b
115cdf9138187d604d647adc0763be50
Validates the audience of the incoming token with those specified in configuration.
List<String> audiences = Arrays.asList(clientId); IdTokenVerifier verifier = new IdTokenVerifier.Builder().setAudience(audiences).build(); IdToken idToken = IdToken.parse(new GsonFactory(), tokenString); return verifier.verify(idToken); }
1
6b2fb7e47b84bd86dfdbe031c43b114c
2b77cf995f21aa07564a9a6c67e2309a
deallocate memory for materials
Material::~Material() { return; }
0
c025e68000fefb456bd73ce3165a6e8c
d82c3c4386134a6266324e02b9fc377d
运行PHP代码
{ $result = null; try { $result = $this->getAdapter()->php_eval($code, $vars); } catch (Exception $e) { $this->throwException('eval.error', $code, $e->getMessage()); } return $result; }
1
33dbedf86d6eb732a9c44afbf3e7d09a
71f561f652cbf2ad316745a3fad3b8f2
<p>Gets the handle for author of last post in forum.</p>
public class Forum implements Serializable public int getLastPostId() { return this.lastPostId; }
0
178f52306ba8c27786853b88aff50207
71af3cca8a9be9826bb9ba605b14a800
抓取公共通讯录的全部信息,主要是汕头分公司下的全部部门,以及业务支持中心对应的领导,科室,成员信息
func SyncContactAllBase(wxUser string) map[string]interface{} { var currentWxcontactSeq, currentChatRoomContactSeq int32 var continueFlag int8 continueFlag = 1 var gh, user, chatroom, system []string for continueFlag != 0 { baseList, _ := SyncContact(wxUser, currentWxcontactSeq, currentChatRoomContactSeq) curr...
0
f723c1374bac935229e57c1d064231cb
150af9ce173613c8eaae727c4c03541f
Test case for list_credit_cards
body = BankCard() response = self.client.open( '/accounts/{account_id}/cards'.format(account_id=789), method='POST', headers=headers, data=json.dumps(body), content_type='application/json') self.assert200(response, ...
0
24033b3cd0f9d1dce3a4d80869c6005e
df612ba998a6fcb04451dc8758635c4d
Function transforming exposure time in us to exposure time in s.
if TimeUS<1e-3: TimeUS = int( 1e6*float(TimeUS) ) TimeUS = int(TimeUS) return TimeUS
0
9493193d6f8babf1a9279d317d0e6581
b69105366dd5dd1986d6dd6f078b700a
DstMoneySupervise多条件搜索方法
PageInfo<DstMoneySupervise> findPage(int page, int size);
0
9863f49355f739aeaf0b343b913e8d9c
23b67b72bf4240ce664dbba850c6f3ae
generate verification and referal code after registration
{ if (!($profile_id = SK_HttpUser::profile_id())){ throw new Exception('not_profile',1); } $config = SK_Config::section('profile_registration'); $profile_info = app_Profile::getFieldValues( $profile_id, array( 'language_id', 'username', 'email', 'register_invite_score' ) ); self::addInviteResetTime($profi...
1
c2c0f6dfb4ed2e3dd68b74c6f26769ac
f16dbd5928d5d75a0f9d79a47498f152
Посмотреть список болезней.
response = {} if request.method == "GET": with sqlite3.connect("dentists.db") as conn: conn.row_factory = dict_factory cursor = conn.cursor() cursor.execute("SELECT * FROM illness") ill = cursor.fetchall() response['data'] = ill res...
1
abacdc1a24aaf2026f57e09bafe0caa7
ca3ad1b1d536d67c23a252d3e9f7b02d
Wraps the protobuf. This method is considered an internal implementation detail and not meant to be used by applications.
public final class LayoutElementBuilders public static final class Padding @RestrictTo(Scope.LIBRARY) @NonNull public LayoutElementProto.Padding toProto() { return mImpl; }
1
df97ba369ef9faa6d0e51d5a7b5608d4
990aa17d70f621a67b566606ea7f63ea
Checks whether a particular {@link ObjectRepository} exists in the store.
boolean hasAll(N repository);
0
ebfc9b12803116377cee91249745e93d
9813a26227acebecd891fa92a2151cee
Function to connect to microsoft exchange mail server based on credentials in exchange_credentials.ini file
global url, auth, r if imc_protocol == None: imc_protocol = input("What protocol would you like to use to connect to the IMC server: \n Press 1 for HTTP: \n Press 2 for HTTPS:") if imc_protocol == "1": h_url = 'http://' else: h_url = 'https://' if imc_server == None: ...
0
d19dde394f92fdf6c57ee3b904f2a9a3
635f0721e52f2c09998fbcb07bf7f6c4
최근본 상품 가져오기
@Service public class ProductServiceImpl implements ProductService{ public ArrayList<ProductInfoDto> searchLasted(){ return productDao.selectLasted(); }
1
6b5b1e4afe233001d3e8f80802ca98bc
8610da6002c205da5189b4a738efd938
*this extracts hour from the decimal time
namespace WeatherApp.Domain.Services public class WeatherService private static int GetHourFromEorzeaTime(double et) => (int) Math.Floor(et % HoursPerDay);
1
95d47f1868ee2aaef74f7402d1ac0132
c8d52c2e3c46fefa83baddcc36358398
Loads the checkpoint for the specified consumer
{ DirectoryInfo dir = new(directoryConfiguration.GetIndexCheckpointFolder(indexToken)); if (!File.Exists(dir.FullName + Path.DirectorySeparatorChar + "completed.dat")) return null; string filename = directoryConfiguration.GetIndexCheckpointMetaFileName(indexTo...
1
2c8f002be44ac1cefbcf77ddc645a3ea
4d5a77a9679b8767c4eaca952f82f681
Returns imports annotation figure.
class gen_java8(gen_base): def get_annotation_imports(self, annotation_type): if annotation_type == "jackson2": return ["com.fasterxml.jackson.annotation.JsonInclude","com.fasterxml.jackson.annotation.JsonProperty"] return []
1
d40337cd2ae75c83a3ebe9812190a65c
440d1abc15fe3a48d23053183f00607c
读取Excel多Sheet数据
def read_excel_xlsx(file_path): workbook = openpyxl.load_workbook(file_path) sheet_names = workbook.get_sheet_names() worksheet = workbook[sheet_names[0]] rows = worksheet.max_row columns = worksheet.max_column sheet_val_01 = worksheet.cell(row=4, column=2).value sheet_val_02 = [val.value fo...
0
6c90de75d06bb7613459fe1b23668ec5
a38ff97683abc4a462c8f52c5b0ac7b9
对USR1设备的输入进行控制
{ dev.device1 = 0; dev.device1=atoi(p); Serial.printf("Channel %d, Data %d\n",Channl.ch1,dev.device1); }
0
4399cf8bd22bc397a4a2315bc0cdcce8
655289cf54e107114e93905c312b59a5
初始化世界榜
{ if (v == null) return; m_Result = v.Result; m_WorldBossData.Clear(); for( int i=0; i<v.WorldBossData.Count; i++) m_WorldBossData.Add( new WorldBossObjWraper()); for( int i=0; i<v.WorldBossData.Count; i++) m_WorldBossData[i].FromPB(v.WorldBossData[i]); m_WorldBossRank.Clear(); fo...
1
4870a59f6feefc36d095608e650be299
c896e4ea35eb45d0981af51b0ad4ae14
Enregistrement des coordonnées d'un individu
public void addIndividual(IIndividual ind);
0
a986277b3208e43a73bc8103bce0213a
c70e39d20b234ec81bf96436fad42187
memoriesからmemoryIdと一致するものを取得
function getMemory (machineID) { return fetch(`http://localhost:3001/memory/${machineID}`) }
0
7267042451164b1dee0b1aff9ebc1af6
6ef4520fea1b889f36ee9bc5520cc7b3
splits a command string with semicolons into the commands between the semicolons
{ char **splits = malloc(sizeof(char*)*256); char *split; char *delimiter = ";"; int counter = 0; if(!splits) { fprintf(stderr, "splitbysemicolon allocation error!\n"); exit(-1); } split = strtok(command, delimiter); while(split != NULL) { splits[counter++] = split; split = strtok(NULL, delimiter); }...
1
9483821622effb496fde4e18e830f221
f9bc70a5c1fc0f00b6f347f11efea4d0
Clear the column selection lists.
for col in self.Columns.keys(): try: self.Columns[col]['List'].selection_clear(0, END) except: continue for col in self.Columns.keys(): try: self.Columns[col]['List'].delete(0, END) except: co...
1
443bb3443e1bfe6aa4053e4b2a0b66b9
3e15eefcc540380bbe3b0a7f26afe86e
Flush contents of all open log files.
void DataFlash_File::EraseAll() { uint16_t log_num; stop_logging(); #if !DATAFLASH_FILE_MINIMAL for (log_num=1; log_num<=MAX_LOG_FILES; log_num++) { char *fname = _log_file_name(log_num); if (fname == NULL) { break; } unlink(fname); free(fname); } ...
0