query_id
string
corpus_id
string
query
string
code
string
label
int64
90ebae8dc0fb6f8133650b385abb0782
8f696e7f80a18c1e80796b08371d9391
关闭支付通道
function PayChannel({ dispatch, payChannel, loading }) onBlock() { dispatch({ type: 'payChannel/onOff', payload: { enable: State.DISABLED, ids: selectedStarts.map(it => it.id), }, }); dispatch({ type: 'payChannel/updateState', payload: { ...
1
61ef6ff19872274ec31e21f0ca004380
5669f16d1ce28a559cc46fc583d1706c
When implemented restores site collection under given url from backup.
@defaultPath("_api/SPO.Tenant") class _Tenant extends _SPInstance<ITenantInfo> public restoreDeletedSite(siteUrl: string): Promise<ISPOOperation> { return spPost(Tenant(this, "RestoreDeletedSite"), body({ siteUrl, })); }
1
eb897d0c47c0a4fdf90eb4830ea9f85c
a9ffefa6226517b43e13284fc90aad8b
Gets the Objects attached on the Player
Stream<? extends IGameObject> playerObjectsObservable();
1
3055dd1332b8499b94dae7686185d84b
9ce1cfae70bafc83e532d792e27f0db8
Consumes and processes metadata scan requests from a pending requests queue and updates existing metadata objects based on newly scanned metadata.
std::map<int, FileRegions>& fragment_id_to_file_regions_map, const TextFileBufferParser& parser, foreign_storage::IterativeFileScanParameters& file_scan_param) { std::map<int, const ColumnDescriptor*> column_by_id{}; while (true) { auto request_opt ...
1
325dafd3726b8cc80f346d30888a989b
2795c39f2a2ee4e3fc7aaeced9f91316
Verifies that a ray starting behind an absolutely positioned disc causes no contacts to be returned by the intersection detector
r := ray.New( tuple.Point(0.0, 0.0, -5.0), tuple.Vector(0.0, 0.0, 1.0), ) s := sphere.New() s.SetTransform(matrix.Scaling(2.0, 2.0, 2.0)) xs := s.Intersect(r) assert.Equal(t, 2, len(xs)) assert.Equal(t, 3.0, xs[0].T()) assert.Equal(t, 7.0, xs[1].T()) }
0
dec7d71ec1389fd426db0fc06c7c8479
b781cf63b7dd0d7b2fc8e22446305adc
cmd中的命令提示
{ switch(strlen ( $content )) { case 11: return getcmd($content); break; } }
0
5dd67e5daef2c9de6ae7789e355c7b13
6035263f8bfc13c735b99426028478c4
decrease boss level
if (Level > 0) { Level--; timer.setDelay(1300 - 100 * Level); repaint(); } }
1
88e629d4becf40dd1d5d55379b0da360
b3357e78f19a7c0214fb2739252a9a45
根据分片参数值计算数据源名
public class ShardFactory public String getShardTableName(String dataSource, String table, Object entity) { String key = dataSource + "." + table; if (shardConfigMap.containsKey(key)) { ShardConfig shardConfig = shardConfigMap.get(key); Field field = ReflectUtil.findField(entity....
0
dd2dcc9186b32f1aded645b6aa608189
db8eab71a25de2038e827ab83145f319
01背包问题 一维数组求解
def bag_0_1(weight, value, weight_most): num = len(weight) weight.insert(0, 0) value.insert(0, 0) bag = [[0] * (weight_most + 1) for i in range(num + 1)] for i in range(1, num+1): for j in range(1, weight_most+1): if weight[i] <= j: bag[i][j] = max(bag[i-1][...
0
498a62c10852afa907dcfed775a23c24
8dbf22234b741ccdf18410f6aa0b5231
computes the Euclidean Distance of two points in n-dimensional space
class kMeans: def euclideanDist(self, pointA, pointB): return ( (pointB[0] - pointA[0])**2 + (pointB[1] - pointA[1])**2 )**0.5
0
1129cfc0a4010eeeabe10980f208a26e
c010889d919b934f153b7f816e38b52f
Get supported encryption algorithms.
{ return false === $this->hasJWTLoader() ? [] : $this->getJWTLoader()->getSupportedKeyEncryptionAlgorithms(); }
1
31dbbe818a10762bf47fee66a05d21ba
e8ce0890df63681d2a9be890aa8e590f
Check if current balance covers amount to be withdrew
public function canWithdraw(int|string $amount, bool $allowZero = false): bool { $mathService = app(MathServiceInterface::class); $wallet = app(CastServiceInterface::class)->getWallet($this); $balance = $mathService->add($this->getBalanceAttribute(), $wallet->getCreditAttribute()); r...
1
389d0b639f02c28429923423e1a54f61
14ca9dc69327d646c66cfccd5f1c8c8d
Enable PIOD interrupt
void PortOsIntEnable(void) { IEC0bits.T2IE = 1; }
0
5baf6bffabe97a0bf326c6507556b06f
295021b2b3fb61123f6f3104663a5aa9
Converts the rotamer prediction matrix from (n, 388) to (n, 20)
x1 = x[:, 0:1, :, :] x2 = x[:, 1:2, :, :] return x1, x2
0
ff26f0d559071da2fe1dbabcb09e2e02
f41a14f6849ca5893c1ec07e95363fc4
按stuId查找并返回索引
for(int i = 0; i < stu.size(); i++) { if(stu.get(i).username.equals(usr)) { return i; } } return -1; }
0
b382c5c78645621838742cc35b6e8981
b1f164f85d57896bd420ee4a948e4d17
FeedbackService constructor.
class FeedsController extends Controller public function __construct(FeedService $feedService) { $this->feedService = $feedService; }
0
1b8fdb84b79cc408a115e77882f1d0f2
7fd0582b26425fa0fc8612ae76df7110
set interrupt disable flag
void drv_INT_Disable(void) { asm("FCLR I"); }
1
770aff35e6cc15b92c1f0a1d75d965e7
3b730d1207d4108b07163b9a63416a03
Submit a search for a given workspace. The response will contain an id to track the search. User can use the id to poll the search status and get the full search result later if the search takes long time to finish.
void startSearch(ClientSwiftSearchDefinition def, AsyncCallback<Void> async);
1
c601391ea9adfaab6355830ac393b340
c022e4daf0297bc4407b1d837b4ce5b0
optimal labor supply implied by first-order condition
class Labor_Market: #A linear demand curve Nd=a_d−b_d*p #a_d=((1+r)-p_ie+z) #A linear supply curve Ns=a_s+b_s*p #a_s=((1+r)-p_ie) def wage_p2(self): return round((self.lma_d_2 - self.a_s_2)/(self.lmb_d_2 + self.b_s_2 ), 2)
0
27bbbb4ec25ec6c1251efb72f7f0bb88
a5b77494d1c31ceed017a462ae57692e
return new X and Y for training n1 label will be 1 n2 label will be -1 the rests(X and Y) will be deleted
X = [] y = [] for tmp in ll: y.append(tmp[-1]) X.append(tmp[:-1]) return np.array(X), np.array(y)
0
1f8520677c645bc1eb0ff93c06cac0d0
3cdb2d5244b92e619d331fcdd9c4dc90
This routine selects options so that they make sense with respect to the current data in the dendrogram. It should be called during initialization before synchEnabled()
selNodes = globalref.mainControl.activeControl.currentSelectionModel() hasChild = False hasSibling = False for node in selNodes.selectedNodes(): if node.childList: hasChild = True if node.parent and len(node.parent.childList) > 1: h...
1
5ebcec1067906b76b9832fe91c6c5545
a8caeef2efd947f4a9668915163e7260
Determines whether normalization is being applied .
bool Configuration::get_normalize() const { return normalize; }
1
6302601b74c46b46804bf920d71b22c3
7cce4f32a91a72baa7e6f92649dd2252
Utility for creating a `riak.RiakBucket` instance from string params.
if isinstance(bucket_or_name, Bucket): bucket = bucket_or_name if bucket.client is None: bucket._client = self else: bucket = Bucket(self, name=bucket_or_name) return bucket
1
3b9ea765fe85becd982f66524212ea97
a170c6a51699ced161d6b47cebab323e
zajišťuje vykreslení vozíku při simulaci
namespace zpr void CamerasView::updateIsSimulating(bool is_simulating){ if(!is_simulating){ this->initializeVehiclesCounters(); } }
0
e2eac519cfead2226a1823dbeb2ae14a
503b859fb54a43e31136858e613543f1
获取要发送的通道列表
namespace HWL.MQGroupDistribute.mq public class MQManager public static IModel GetSendChannel() { if (mqconn == null) { InitConnection(); } if (sendChannel == null) { sendChannel = mqconn.GetChannel(); } ...
0
017fa27f522aa8a9cd54c13df46243fd
e154c5c77608964d98ecd78558f353de
根据id集合批量删除错题信息
List idList= Arrays.asList(ids.split(",")); PreGradeExample preGradeExample=new PreGradeExample(); preGradeExample.or().andIdIn(idList); int num=preGradeMapper.deleteByExample(preGradeExample); return num!=0; }
1
b9de3d539dc3d2a3e051b5f471b51222
c1ac116c20f56c239921868092f1cc7b
Elimina un campo por nombre en la lista de campos si existe
public void removeField(String name);
1
2412b3b94b192fd6a81d4deadadf0cb8
5fa1ccda6be67d0aea970423e64cda04
从数据获取切片上传信息,来更新当前信息
{ $chunk = $this->shareItem['chunkInfo']['chunk'] = isset($request["chunk"]) ? intval($request["chunk"]) : 0; $this->shareItem['chunkInfo']['chunks'] = isset($request["chunks"]) ? intval($request["chunks"]) : 1; $chunkIndex = isset($this->request['chunkIndex'])?$this->request['chunkIndex']:$...
1
86fff78d4c8c22e078c8a41d65fe6e06
619854cd64b95f701fa61d647449a286
高亮表名
function table($name=''){ switch(strtolower($GLOBALS['config']['db']['dbtype'])){ case'sqlsrv': return $GLOBALS['config']['db']['pre'].$name; break; default: return $GLOBALS['config']['db']['pre'].$name; } }
0
f153aa3b4dde6916034620dcccc67a88
e18d5121e2b0e9a1a82e4a609bb51982
Retorna zero se o elemento for independente de qualquer outro, ou 1, 2, 3, etc conforme distância para o elemento independente mais longinquo.
int No::qualNo(Elemento* e) { int index = 0; if(this->vetElemento[qtdMax-1]->compareTo(e) == -1) return qtdMax + 1; else if(this->vetElemento[0]->compareTo(e) == 1) return 1; else { for(int i=0;i < qtdMax;i++) ...
0
1f140ea94bbb0896675ae2c970d0650f
7002fac8d3d6f3a96e58883d296a71b2
This method is called when airbus_cobot_gui closes. You can free memory and disconnects topics
namespace gazebo ModelJointControler::~ModelJointControler() { this->queue_.clear(); this->queue_.disable(); this->rosnode_->shutdown(); this->callback_queue_thread_.join(); delete this->rosnode_; }
1
6fd617ed0e1c0f2669ea05268c23c0e6
3d0bc392d8f13fe3824992b64ed2ab2e
Builds the 3D label for the respective POI object that displays the object's name.
{ StringBuilder label_builder = new StringBuilder(); for (int i = 0; i < 217; i++) { label_builder.Append("|"); if (labelData.Keys.Contains(i)) { label_builder.Append(labelData[i]); } } return label_builder.ToString(); }
0
99439fc8c9b125fa593f6b550f4f1ed5
c89ecebb3a70983a77482ab9ac1117b0
Extract specified length of bits.
static uint32_t extractBits(uint64_t v, uint32_t begin, uint32_t end) { return begin == 63 ? v >> end : (v & ((1ULL << (begin + 1)) - 1)) >> end; }
1
2ad14f48edf1e69a7447a30a272e2a8b
f30abab43eeb7b3966a3fea799ab1caf
Get entity ID by code
namespace Flamer.Data.Repositories.Projects Task<string> GetId(string code);
1
182b558a28f25f0796e512c2caecd656
5ce8c033c31bf7c4de41ead6257066c8
Update the Accessory Display Settings Returns TRUE / FALSE if the update was (un)successful.
{ return ChangeDisplaySettings(NULL,0) != DISP_CHANGE_SUCCESSFUL ? false : true; }
1
afc893a704f0b048b47981c1ca149e7b
1e420ac6da91bda87649d37038077f16
根据传入的用户id和文章标题,找到相应的文章,并返回 如果出现错误的话,返回null
List<ArticleToShow> getMyArticleByTitle(int user_id,String title);
1
ec853361d1ee55d98cb8891ff05a1f64
de97f0d0ca74415be47fb10575045f09
Realeses the memory allocated to the scheduler.
void sched_free(struct sched *s) { struct tc *c; struct tc *next; cdlist_for_each_entry_safe(c, next, &s->tcs_all, sched_all) { int queued = c->state.queued; int throttled = c->state.throttled; if (queued) { c->state.queued = 0; tc_dec_refcnt(c); } if (throttled) { c->state.throttled = 0; tc_de...
1
9ab73fb0d3dbbf40b51faf59a717a6c1
4309680711742345afd78a42ab8bf8b5
Handles the camera sway based on the input vector
public class PlayerMove : MonoBehaviour public void CameraSwingTilt() { Vector3 localVelocity = transform.InverseTransformDirection(rb.velocity); print(localVelocity); Vector3 eulerAdjust = Vector3.zero; if (grapple.isGrappling) { if (Mathf.Abs(localVelocity.z) >=...
1
7306cf446a76bd65b5375cce8047de6e
6f7eaa3494dcbcb44fff2fd68aafe109
Get a specific ajax handler
{ $key = implode('\\', array($module, $name, $cls)); if (!isset($this->ajaxPool[$key])) { $cls = '\\'.implode('\\', array('App', $module, $name, 'AjaxHandler', $cls)); if (!class_exists($cls)) { Kernel\throw_exception(new Exception( ...
1
ee596deded5c65cb611dfad081cf670b
149ea8541ac02b548aac9fee22d442a5
修改冷弯/热煨表的is_measure字段
changeMeasureActived2D({ commit }, flag) { commit('CHANGE_MEASUR_ACTIVED_2D', flag) }
0
ff6365753a07315d2d0476c0d8e03573
c266bd89387ee84791e77516b5730e15
\brief Skip given number of bytes in usart buffer.
uint32_t counter = 0; while(counter < buffer_length && usart_data->RxWritePointer != usart_data->RxReadPointer) { buffer[counter] = usart_data->RxBuffer[usart_data->RxReadPointer]; counter++; usart_data->RxReadPointer = (usart_data->RxReadPointer + 1) % USART_BUFFER_SIZE; } if(usart_data->RxWritePoin...
0
f017a41290db9fff48febc167af64d25
73cfa41132dd49092c55694f46aa9268
Creates a new C2M_CHECKMD5 request object
class MpesaStructCheckOutHeader extends MpesaWsdlClass public function __construct($_mERCHANT_ID,$_pASSWORD,$_tIMESTAMP) { parent::__construct(array('MERCHANT_ID'=>$_mERCHANT_ID,'PASSWORD'=>$_pASSWORD,'TIMESTAMP'=>$_tIMESTAMP),false); }
0
d3b18cd66aef738cce73c8251037fbf4
cbe0c9840a4ed1ff27525f49b9e9fce8
Returns whether the sequence can be extended by one cell.
boolean isExtendable();
1
8543ea1fb5ca2bd9e88b5eefe67a75b4
f10da79618b749dab3a809b8a632b79f
Get an Entry by target resource name.
namespace Pulumi.GoogleNative.DataCatalog.V1 public static class GetEntry public static Output<GetEntryResult> Invoke(GetEntryInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke<GetEntryResult>("google-native:datacatalog/v1:getEntry", args ?? new GetEntryInvokeAr...
1
a857eeca1b21e4d376da988864ae7cc2
86311a2def518fab185d148d229db041
Called if the stack check fails
class CheckStackUnderflow(Word): def execute(self, interp): pass
0
711b15bb127368135d8c1fd7650e6ec9
4359705b80ae06a9647763c90c18a030
Установка переменной имени текущей страницы
String setCurrentPage(String pageName);
1
26e6d382b541d00ccbc8097e8fd21fe5
ca4f3ba39c5ad306a8a93c5243c7476b
Получить список счетов в кассе
class CashairService public function listCashairs() { return Worker::where('type', UserRole::CASHAIR)->get(); }
0
5c76fbb397fd23ed295eabf5af96674e
b0e836046c3576a1e78cdd370cfda127
<p> Returns a list of sending authorization policies that are attached to the given identity (an email address or a domain). This API returns only a list. If you want the actual policy content, you can use <code>GetIdentityPolicies</code>. </p> <note> <p> This API is for the identity owner only. If you have not verifie...
java.util.concurrent.Future<ListIdentitiesResult> listIdentitiesAsync( ListIdentitiesRequest listIdentitiesRequest);
0
26ec13193e2b8e8a0890b049a8b7a7bb
51dfb4dc67b4aaba4f5c693b33343b10
Sets the final approve status based on child's implementation.
@RooJavaBean @RooToString @RooEntity(inheritanceType = "SINGLE_TABLE") @DiscriminatorColumn(name = "freeDayType", discriminatorType = DiscriminatorType.STRING) @DiscriminatorValue("AbstractFreeDay") @FreeDaySpecificDateConstraint public abstract class FreeDay public void setFinalApproveStatus() { this.status = ...
1
ccf7555234a166ddecde63e4183a4a2f
59700d3c1cdf887d9ed64409c05ea62d
Determine whether two queens are in conflict with each other
bool queens_attacking(int row1, int column1, int row2, int column2) { bool sameRow = (row1 == row2); bool sameCol = (column1 == column2); bool sameFstDiagonal = (column2 - column1 == row2 - row1); bool sameSndDiagonal = (row1 + column1 == row2 + column2); return sameRow || sameCol || sameFstDiagon...
1
0552d7008d837ffa7146c6e0c27dc593
afdaf0010ecc940ed433d86fc79c3510
Loops through timelines assigned to the view.
namespace Assets.Scripts public class TimelineController : MonoBehaviour void Update() { }
0
b86314781a01bc637f4e277d1a0f3801
c93941700d38673822733f863cccc0f3
以逗号分隔的字符串中是否包含另一个字符串
public class StringHelper public static boolean comma_contains(String commaexpress, String element) { boolean flag = false; commaexpress = FilterNull(commaexpress); element = FilterNull(element); if (!"".equals(commaexpress) && !"".equals(element)) { String[] strlist = commae...
1
e0932072b25b918f52b4581510de1446
519755b447eccf116bbb3089616fd472
Get sample new products list from the same category as current product.
namespace VirtoCommerce.Client.Api System.Threading.Tasks.Task<VirtoCommerceCatalogModuleWebModelProduct> CatalogModuleProductsGetNewProductByCatalogAndCategoryAsync (string catalogId, string categoryId);
0
2c133d03c0a514a771e6239ba2482470
95a25a7978168620cbd6d44010fc1b0c
Adds an equality test to the specified category.
{ string prefixedComparisonFieldName = GetPrefixJQuerySelector(GetPrefixedFieldld(target, comparisonFieldName)); _config.AddRule(target, String.Format("equalTo: \"{0}\"", prefixedComparisonFieldName)); _config.AddMessage(target, String.Format("equalTo: \"{0}\"", violationMessage)); }
1
e9907bee2037f3faa8508f62430115fd
72ce9e8c88c6eafe13efbfccb068ce51
second method with out in-built method
int FindMissingNumberMethod2(int a[], int n) { int xor1 = 0, xor2 = 0; for(int i = 1; i <= n+1; i++) xor1 ^= i; for(int i=0 ; i < n; i++) xor2 ^= a[i]; return (xor1 ^ xor2); }
1
67dec0bc8b208bc9399e15386d6933a3
68bff2f62dab60c3a62c20c431178e46
Get response factory If no response factory has been set, this method will set and return a default response factory, if any such value is available
$responses_factory = response(); if ( ! $responses_factory instanceof ResponseFactory ) { $message = 'Could not get the reponses factory.'; throw new Exception($message); } return $responses_factory; }
0
b888e08991c60344e8fd270393faf481
549ea055232ff44748509396775d1002
Безопасная проверка на существование объекта
function isset( o ) { return o !== void 0; }
1
21c3eb473f3ccfc11427f12feeea18ea
da94ee37248c1680a8f4545f7c2078e6
Wrapper of Worker for generating new experience.
class SequenceCLStream(SizedCLStream[TCLExperience], Sequence[TCLExperience], ABC): def _make_experience(self, experience_idx: int) -> TCLExperience: pass
0
1e28290ad459c4f8ee7b367b7a4bbd21
3feaa305a2c8dc66804929b89a80d142
在外選挙人国内住所情報エンティティを登録します。
@Override public int save(AfT506JushoRelationEntity entity) { requireNonNull(entity, UrSystemErrorMessages.値がnull.getReplacedMessage("住所番地エンティティ")); return DbAccessors.saveBy(new DbAccessorNormalType(session), entity); }
1
bdda963b6dd0470f7a9472f79c51af4a
f3487c8c9877ae87aa63eebb5da39dc4
The sensor model for observing something.
self.model = model self.num_sims = 0 self.observables = [] self.measures = [] self.obs_config = [] self.obs_traj = [] return None
0
2660e3741ae976a3525355b206bd1f0a
0aba259b22029982fc4d94b3faeef9d9
根据BufferedImage构造ImageKit
{ using (MemoryStream ms = new MemoryStream(buffer)) { return Image.FromStream(ms); } }
0
955a5ae51334238325ef1f5e892e8343
6e26629afdec315d055f17cb0f40433b
Obtém os dados de um fabricante através do seu código de identificação.
{ $fabricante = Fabricante::find($id); if(!fabricante){ return response()->json(['errors'=>array(['code'=>'404','message'=>'No se encuentra un fabricante con ese codigo']),404]); } return response()->json(['status'=>'ok','data'=>$fabricante],200); }
1
ced07acfb669966eb468de98eef0b2cf
864393f74737a88c2c50c019efde302e
根据Id获取应用用户数据
class AppModel extends Model{ public function getAppleyById($Id){ $data=$this->where(array('Id'=>$Id))->find(); return $data; }
1
f17d833b8264b409483a69f231b48394
f52da81dd77fb5fbff689f4ef404f4a3
获取存储loading页信息
class App extends React.Component getStorage() { CALLJSON(STORAGE, (data) => { this.setState({ used: data.used, all: data.all }) }, null, "GET"); }
0
394af335753e0cae727f0e5b06172b14
307e874d484a3a0267abfabf03a0ee55
List the actions that correspond to a post of this module. This is used by the participation report. crud = ('c' || 'u' || 'd') and edulevel = LEVEL_PARTICIPATING will be considered as post action.
{ return array( array( 'application.components.ActionLog' ), 'accessControl', 'postOnly + delete', ); }
0
41427d77cdbeaa2ff3fac8850ab58587
d69930353cde1181503576540aed72ad
Return `sqlalchemy.Query` with eagerly loaded `created_by`.
class FeatureQueries: def _set_join_options(): res = Feature.query.options(db.joinedload(Feature.created_by)) res = res.options(db.joinedload(Feature.client)) res = res.options(db.joinedload(Feature.product_area)) return res
1
dd6c06b1074d3c2da463188432537510
0b344df654958efe04ab960be2fb6548
顯示各品牌每週發文數圖表
def visualize_financial_info_for_specified_brand(df, brand_name, bar_datas, line_datas=None, filepath=None): brand_df = df.loc[(brand_name,)] fiscal_year = brand_df.index.values num_year = len(fiscal_year) num_bar_data = len(bar_datas) fig = plt.figure() ax1 = fig.add_subplo...
0
b1569a82aff4bb2aae4d9e68fbd74b23
c27aa83523dada2cd2c02e544afc3743
通过标签获取视频
$payload = app('request')->all(); $startpage = isset($payload['startpage']) ? $payload['startpage'] : 1; $pagecount = isset($payload['pagecount']) ? $payload['pagecount'] : 5; $skipnum = ($startpage-1)*$pagecount; $VideoLabel = isset($payload['VideoLabel']) ? $payload['VideoLa...
1
b3da46e0bd3299d79a5022cbc45dac7c
9747afd19845b6603d4ea4dafd08e8d4
当购买游戏(虚拟产品之一)成功时执行的代码
Debug.Log("PurchaseSucceed"); int curCoinNum = PlayerPrefs.GetInt("Coins"); int curPointNum = PlayerPrefs.GetInt("SkillPoints"); switch (productIdentifier){ case IAP_PROD_Coins500: curCoinNum += 500; break; case IAP_PROD_Coins1200: curCoinNum += 1200; break; case IAP_PROD_Coins250...
1
33a434fb8c87bd720bd4d8ac25c33fbc
f06fb6fe046fe3d0f03425fea889a86d
Returns the last score.
public class Statistiques public Score getLastScore() { return this.lastScore; }
1
8501adb701109f7ecc95826b84bd5c88
94d8d6eb51a3f5a762f45537c0ccf3a4
设置EditText值通过Accessibility自动方法
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Log.i(TAG, "set text-->" + reply); Bundle args = new Bundle(); args.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, reply); node.performAction(AccessibilityNodeInfo.ACTION_SE...
1
bbbb3ad985413802279777bb952370cb
1e255e9e0bac02699549259a0aad8e68
disables 404 permalink guessing
$permalinks = get_option( $this->option . '_permalinks' ); if ( ! empty( $permalinks['use_verbose_page_rules'] ) ) { $GLOBALS['wp_rewrite']->use_verbose_page_rules = true; } }
0
2a21a53ce12e9316624bbfbd925ae827
0e170e6148d68d2657a1200b4befd0f3
This function reveals a letter by adding a .show class to it in the hidden phrase
class Phrase showMatchedLetter( matches ) { for(let match of matches) { match.classList.add('show'); match.classList.remove('hide'); } }
1
cdea1a737311ea49c2c699ed5ffd60d5
04ad26b5feedd79463f68859f53d6169
Reads the Response from the intent.
namespace VirtualReception public partial class MainWindow : System.Windows.Window private void OnIntentHandler(object sender, SpeechIntentEventArgs e) { var _Data = JsonConvert.DeserializeObject<LUISResponse>(e.Payload); HandleIntent(_Data); this.WriteLine(); }
1
aee165a5793d0f4f939cc8a50acf2247
809f7b0344f9180495867c7ed94af5cb
Results in only outline being shown
def test_outline(scene_polygons_, generate=False): geometry = scene_polygons_.geometry[0] geometry.outline_width = 0.1 buf_proxy = fresnel.preview(scene_polygons_, w=150, h=100, anti_alias=False) if generate: PIL.Image.fromarray(buf_proxy[:], mode='RGBA').save( open('output/test_geom...
1
f8a7ff4ecf56edc9e7d9c6a2c4845d75
68ab64e95506fd47341729b470b60995
GET /membership_types/1 GET /membership_types/1.xml
class MembershipTypeController extends Controller public function index() { $membership_types = MembershipType::latest('created_at')->get(); return new MembershipTypeResource($membership_types); }
0
bf35b78ea9cb3b47b40a55510fae9afa
1333376bdee470f195f8f990109ee17c
Returns the amount of squares that the queen can move to the right diagonal down, stop counting when an obstacle is found.
int[] distanceUntilBlocked = new int[Enum.GetValues(typeof(Direction)).Length]; PopulateDistances(distanceUntilBlocked, dimension, queenX, queenY); if(dimension == 1) return 0; for(int i = 0; i < totalObs; i++){ int ...
1
dac47b5a76cf33d2cd91c66ef4707150
215530f7ab94c06ebc7967025722398d
Signal to listeners that we need the fleet to assist with a given target.
namespace EVE.ISXEVE public class Being : LavishScriptObject public bool InviteToFleet() { Tracing.SendCallback("Being.InviteToFleet"); return ExecuteMethod("InviteToFleet"); }
0
bc59ec65631d7ce2a06760627e0636f5
3bcdb66689a8ca20f5a814157c72c93c
Gets the animation action.
export class PlayerActionPlay extends CharacterActionPlay public getAnimationName(action: GActions): string { switch (action) { case GActions.Stand: return "KStand"; case GActions.Walk: case GActions.Run: return "KRun"; ...
1
7f75d7f783c78b773eb3938ce6fe0c66
79e506437971bb06eceeec4d5fd1412a
Creates an argument parser. Returns: an argparse.ArgumentParser object.
def create_parser(): return
0
1479248f29ecd65b3ab60216ff679461
b42ce82ddecbf3f1fb982b5bbda483e1
Gets the count of projects belonging to the current user. The count of all projects directly related to the current user are returned. A project is directly related to a user if the user is either the data owner or in a collaboration group which has been granted access to the project.
{ int projectCount = 0; try { Project_DAO projectDataAccessObject = new Project_DAO(); projectCount = projectDataAccessObject.GetProjectListCount(accountID); } catch (Exception ex) { HandleExc...
1
9b005afc750326b2333f9b4dc5ebf531
348729a6723f0c3afbea4fdeeea0ba43
Lists all of the Front Doors within an Azure subscription.
public class FrontDoorsInner implements InnerSupportsGet<FrontDoorInner>, InnerSupportsDelete<Void>, InnerSupportsListing<FrontDoorInner> public PagedList<FrontDoorInner> listByResourceGroupNext(final String nextPageLink) { ServiceResponse<Page<FrontDoorInner>> response = listByResourceGroupNextSinglePageAsync(...
0
4d76c0fb5fa8292a60b42ed871a04f73
741827f96f5431bfb7d1e7d911d1a843
0x8A
export class Opcode public static 0xA9(): number { this.LD('A', ++Register.PC); return 2; }
0
c07147f7397978175fee63c9a1e47962
583be07c3a3f3d39abe5e8a3407eea5b
菜单名搜索器
@Component @Produces("application/json") @Path("menuDict") public class MenuDictRest @Path("list-by-name") @GET public List<MenuDict> findByName(@QueryParam("q") String q) { List<MenuDict>list = menuDictApi.findByName(q); return list; }
1
3029ddadb2f9cc34a1226886d98dc56a
c9ed0e5b4518097ce13bcd46da60b653
Converts date/milliseconds to cycles.
var startDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate(), 0, 0, 0); var secondsSinceMidnight = (currentDate.getTime() - startDate.getTime()) / 1000; var offset = 21600; return Math.round((secondsSinceMidnight + offset) % SECONDS_PER_CYCLE); }
1
a6ef454dad6f85ce67b32bf5956dfde7
028affc0d9cdb58abc7837bc378bd4a5
Metodo per aggiornare il numero di rating della domanda corrente
public class SecurityDimensionFragment extends Fragment public void setRating(int index, float rating) { this.questionsRaitings.get(index).setPoint(rating); }
1
2853c1e327af9346e52680a1916545c3
471ee5eff40f154bb1964a2bff287585
================================================================== BNO055のシステムステータスを取得する
namespace rosserial_adafruit_bno055 void RosAdafruitBNO055::getAndPublishCalibrationStatus() { calibration_status_message_.system = 0; calibration_status_message_.accelerometer = 0; calibration_status_message_.gyroscope = 0; calibration_status_message_.magnetometer = 0; sensor_.getCalibration(&calib...
1
a96af32578bf156d677433df16371bb3
4d1e8f09b66c9b3d0c00760e251d2f57
Método que permite obter o título da eleição
{ string ballotTitle = string.Empty; try { Ballot ballot = groupController.GetBallot(ballotId, false); if (ballot != null) { ballotTitle = ballot.Title; } } catch (Clie...
1
112475ec0fc17d73c07b096966731fba
a592f492c941beb325fb8a1e156bd7a7
Remove o último elemento da lista. Retorna 1 se a operação foi bem sucedida e zero caso contrário.
int delete_last(CDList *first) { nodePtr temp; if (*first!=NULL) { temp = (*first)->prev; if (temp==*first) { free(*first); *first = NULL; return 1; } else if (temp==(*first)->next) { (*first)->next = (*first); (*first)->prev = (*first); free(temp); retu...
1
3268dd58b55432c8d9d9ce48c3b8c11b
d626770c13ac9eeeee50756bf2fcd0fe
Function to calculate the distance between two locations. (Haversine formula)
class geoCalc(object): def calculateDistance(p1, p2): R = 3959 lat1, lon1 = p1[0], p1[1] lat2, lon2 = p2[0], p2[1] deltaLat_radians = math.radians(lat2-lat1) deltaLon_radians = math.radians(lon2-lon1) lat1_radians = math.radians(lat1) lat2_radians = math.radians(...
1
7fbc11bcfbf68a3ea8281d51e7073583
c6cb7636e9241ced514633a518e86fc1
Whether win conditions are fulfilled. A win occurs when all the letters in guess are in the correct position, with both words having every letter in common.
def did_you_win?(game_word, guess_char_array) game_word_array = mk_string_array(game_word.downcase).uniq return game_word_array&guess_char_array.uniq == game_word_array end
0
6945093c8408f5c5cb5bb226363adc41
9aa0b8aed0c186deb15b34629ef89cf8
Отменить выполнение отчета.
void abortReport() throws ClientException;
1
979685a9554353273ec2cbe12fd5bd70
8bb4add7721a5e7bf7356660de7dd9f9
将外部传入的自定义platform转为友盟的platform
function platformFromLibrary(library){ if (library) { library = library.toString().toLowerCase(); if (library == 'analytics.js') return 'Web'; if (library == 'analytics-android') return 'Android'; if (library == 'analytics-ios') return 'iOS'; } return null; }
0
147641013922f9a8a9806672dc30c056
ab2af63f407123a8bbfd12ab1f6069e1
위에 생성해둔 player 객체 안에 있는 프로퍼티들을 검색해서 비디오 멈춤
if (playerRef.current) { setIsStart(false) playerRef.current?.destroy() playerRef.current = null if (videoRef.current) { videoRef.current.srcObject = null } } }
0
36635aee669a18467ae7823674e94d30
76d3c1f1ea6cd0a6571996b634c71f1d
Do nothing. Z motion is not allowed.
namespace AnimatSim namespace Environment bool MovableItem::AllowTranslateDragZ() {return true;}
0
73862edde21c6f01e85f4653e15022e5
ff6bc835f2d01952a09374be27f041aa
WRITING PASSWORD TO FILE AND CHECKING IF THE PASSWORD IS CORRECT OR NOT
{ string userPassword , verifyPassword ; cin.get(); cout << "Please enter your password: "; userPassword = hiddenInputLine(); cout << "Please enter it again: "; verifyPassword = hiddenInputLine(); if (userPassword == verifyPassword) { ofstream file; file.open("UserName and Password", ios_base::ap...
1
42e8bea1beaeb050c6378ccac3138aaa
6dfdec85a03601ab21339e0a5a7dd025
Verifies if the item has a trasform configured already
public class ModelPropertyBinding public boolean hasTransform() { return transformClass != null && transformClass.length() != 0; }
1
ce286f9f22cb34a520527b15c6736d9c
be45fe8f3f8a23cd9c018619892368ea
e.g. login
func LoginUser(c *routing.Context) error { var req entity.LoginUserRequest err := c.Read(&req) if err != nil { return code.New(http.StatusBadRequest, code.CodeBadRequest).Err(err) } _, sessionID, err := service.User.LoginUser(req) if err != nil { return err } c.Response.Header().Set("X-Access-Session", sess...
1
1eefbc81c36fc58471251da5186d7a59
dc5194189cd0e63fd636c6204571cc60
Include the contacts that meet the specified time condition.
{ $this->filter = array_merge($this->filter, ['timeIn' => $timeIn]); return $this; }
1
78c20c20efdea69a48ac7144f2337a83
baa4d0d010e714cc0a08777da3408c90
defining getter function for goal and starting location of therobot;
void Car::SetStartandGoal(int start, int goal) { this->start = start; this->goal = goal; }
0