query_id
string
corpus_id
string
query
string
code
string
label
int64
fbde04dfff7e9dae9227d7e152ace536
4c9ce04dd3766edef41dd26a18610248
Testataan levyn nimen muokkausta
namespace CarrionManagerConsole class Map public void RenameLevel(string currentName, string newName) { string currentLevelName = currentName + Program.LevelFileExtension; string currentScriptName = currentName + Program.ScriptFileExtension; for (int i = 0; i < Levels.Length; i++) { if (Levels[i] == curre...
1
cbf65a7715a628fd0d3cfaf5eb43432a
c29aba1fe031c4a5d1a623ca7ba04385
{EV_WIDGET_IMP}.on_set_focus
void F1944_24434 (EIF_REFERENCE Current, EIF_TYPED_VALUE arg1x, EIF_TYPED_VALUE arg2x) { GTCX char *l_feature_name = "on_wm_command"; RTEX; EIF_REFERENCE loc1 = (EIF_REFERENCE) 0; EIF_REFERENCE loc2 = (EIF_REFERENCE) 0; EIF_REFERENCE loc3 = (EIF_REFERENCE) 0; #define arg1 arg1x.it_p #define arg2 arg2x.it_p EIF_T...
0
257163b583d5ac529d990240f35fa259
added044afbe140e2f217ac075fce4b3
Check if the user already has an incomplete data request of the same type.
for (Request request : requestList) { if (username.equals(request.getUsername()) && resourceID == request.getResourceID() && !request.getRequestFilled()) { return true; } } for (Loan loan : loanList) { if (username.equals(loan.getUsername()) && resourceID == loan.getResourceID() && ...
1
e4ae837fd4e9b487fad90f8a5dbd089b
8cd00baf64550625f2a727b50ad7b88c
generates or updates the docset for this crate.
let f = env::var("OUT_DIR").unwrap() + "/skeptic-tests.rs"; let _ = fs::remove_file(f); skeptic::generate_doc_tests( &["actix-web/src/sec-0-quick-start.md", "actix-web/src/sec-1-getting-started.md", "actix-web/src/sec-2-application.md", "actix-web/src/sec-3-server.md", ...
1
8be004d12d6c75a0efd176f8388cda0b
fdd800f1fbf4397dddd2af41e86a8d3f
Get forward matching keys in a remote database object.
if not obj: return [] account = _GA(_GA(obj, "__dbclass__"), "__name__") == "AccountDB" if key: dbref = self.dbref(key) if dbref or dbref == 0: if account: return self.filter(db_account=obj, id=dbref) else: ...
0
e1922aaf2e1e3bb6a385a971a03ed930
775b4bfcbda267d755110c126afa1993
Test checking bearer token when token is not provided.
channel = self.make_request("GET", self.url, b"{}") self.assertEqual(401, channel.code, msg=channel.json_body) self.assertEqual(Codes.MISSING_TOKEN, channel.json_body["errcode"])
1
684d0730ab1655313b242ed6b8dbc141
7a5e51cee1371dc1145bb1b19761232e
string, eg: "3.9.11"
func FormatVersion(pkg types.Package) string { return formatVersion(pkg.Epoch, pkg.Version, pkg.Release) }
0
5a02ae44ec3df3909e244457bd982a7c
d5e85baf018cf45198c11d2b2e1a8959
format start location for direction url
result = self.client.get("/destination-form", query_string={"start": "start", "end": "end"}, follow_redirects=True) self.assertIn("Start Location:", result.data)
0
9df873d002de5164b099db96e7d429d5
1304ca8764deb6a3b71eba6b22b96b13
生成GridView中的查询条件
{ _refreshDynamicField(); StringBuilder builder = new StringBuilder(); builder.Append("1=1"); if (customizeField_vgc.Rows.Count > 0) { foreach (DevExpress.XtraVerticalGrid.Rows.BaseRow br in customizeField_vgc.Rows) { ...
1
e4e36c24be8dea179a9495a48e735812
aebe919e963a5a53750d5b2e0ddfd96b
Проверяет что файл резервной копии с таким именем уже существует
class File extends CActiveRecord protected function beforeValidate($on) { if(!$this->isNewRecord && File::model()->findbyPk($this->id)->name!=$this->name && $this->name!='' && file_exists(Yii::app()->params['filePath'].$this->name)) { $this->addError('name',Yii::t('lan','File exists.'));...
1
44c5c8cc25ef20679c07cb9b14baf0a5
4a422f29068fada5eee260ed49fdebe0
添加该商铺中需同步白名单的盒子
@RestController @Slf4j public class ProducerController @RequestMapping(value = "insertBrdShopList") public void insertBrdShop(String data){ log.info("===== begin insert table brd_shop ====="); long s1 = System.currentTimeMillis(); AtomicInteger shopInsertNum = new AtomicInteger(); At...
0
c3c16f993214eab0497bde76b81b0d1f
679934cc6de7d63c9a5265d3191519d9
adjust relative base offset
class Computer: def adjust_relative_base(self): self.relative_base += self.parm_value(0)
1
7eba1857548721b7c7906feafbe188de
2ffdea3d30e6e35775122fbf5de950ff
source: https://github.com/andyzeng/tsdf-fusion-python compute a mesh from the voxel volume using marching cubes
class TSDFVolume: def get_mesh(self): tsdf_vol, color_vol = self.get_volume() verts, faces, norms, vals = measure.marching_cubes_lewiner(tsdf_vol, level=0) verts_ind = np.round(verts).astype(int) verts = verts*self._voxel_size+self._vol_origin rgb_vals = color_vol[verts_ind[:,0], verts_ind[:,1], v...
1
0469bc1ed472d944baf1a14bb1bf2cbb
b9f1b99a3d299f553387841986ce1d61
Ein neuer nebenläufiger Prozess (Job) wird registiert. Wenn erfolgreich, dann liefert die Funktion eine eindeutige ID für den Job zurück
{ int rv = 0; DBConnect(); OdbcCommand cmd = _dbConnection.CreateCommand(); cmd.CommandText = "INSERT INTO \"t_RBSR_AUFW_u_SubProcess\"(\"c_u_Name\",\"c_r_Process\") VALUES(?,?)"; if (_dbConnection.Driver.ToLower().StartsWith("sql")) cmd.CommandText += " SELECT convert(int,SCOPE_IDENTITY())"; if...
1
f83db782f7f0fa9cf177ee96fe88bde7
49c8f65d6c41cd5d698c8c72255bdcfd
========================== interpretation ========================
def interpretation(request): if request.method == 'GET': target_list, source_list, attribution_list = getMData.get_entities_properties() return render(request, 'metaphor/interpretation.html', { 'targets':target_list , 'sources':source_list }) elif request.meth...
1
363a09dd15577921500a897a7d3104bc
a689ed59f0f10d92fd6a0c6da37845e9
splits example between two cards
if (canSplit()) { mbSplittable = false; } mcHands.push_back(Hand()); mcHands.at(mCurrentHand + 1).addCard(mcHands.at(mCurrentHand).split()); return true; }
1
96f2b3c6ac32ec6f4fccd6dd96304bbf
aa641ec0341868d9d0b4ff1453c2a363
POST pass-through for get action
class ReportByAccountAction extends BasicRestAction function executePost($input_form) { return $this->executeGet($input_form); }
1
7485c7d0c3051807bcfb15616b22f1c9
be0ffa5cce5f0ea44dcc0e44b07ecb68
ATUALIZA A ORDEM DE UMA FASE DO SERVICO
if($new_order == $old_order) return true; $conditions=array(); if($this->config['field_group'] !== false) { $conditions[$Model->alias.".".$this->config['field_group']] = $Model->data[$Model->alias][$this->config['field_group']]; } if($new_order < $old_o...
1
c5ac78fc225f64d6e4ced333c442d038
543b6afe1fb8f913b6d01c4914e01de8
Sets the value of the expanded property. {@link Boolean }
public class PVNode public void setExpanded(boolean expanded) { m_Expanded = expanded; }
1
fc9ef3fc0e8408e527ca9842c1eac74e
4bc45bbcf8de58669b7a9cf0f906e306
Tries to use external storage, if not available then fallback to intenal.
if (Environment.MEDIA_MOUNTED == Environment.getExternalStorageState() || !Environment.isExternalStorageRemovable()) { if (context.externalCacheDir == null) context.cacheDir.path else context.externalCacheDir.path } else { context.cacheDir.path }
1
ed7a5a27d43eac694e2c6e0cfadd306b
36b8af4544fe81993674de3098cdf7c6
Sets the pressure of water pump
static void set_pressure(benzo_t* const benzo, uint16_t impact) { if(benzo->impct < 0) benzo->impct = 0; if(benzo->impct > MAX_IMPACT) benzo->impct = MAX_IMPACT; switch(benzo->pump.pwm.tim_channel) { case 1: benzo->pump.pwm.tim_number->CCR1 = impact; break; case 2: benzo->pump.pwm.tim_number->CCR2 ...
1
1a762c256a3a85d95ac3d1515c23b4c2
8affc9055b1787410bc700217c50fdc2
Test case for get_network_address
class GoogleCloudComputeTest(unittest.TestCase): def testGetNetwork(self, mock_gce_api): networks_mock = mock_gce_api.return_value.networks.return_value networks_mock.get.return_value.execute.return_value = gcp_mocks.MOCK_COMPUTE_NETWORK network_name = 'fake_network' compute_network = gcp_mocks.FAKE_ANA...
0
60c32ac20e9709bf367a7ac9d00554aa
7f477b17e3e7cf1becf1bb1207e9cdee
Scroll to the user's current location upon successfully receiving a valid fix
function getLocation(position) { latitude = position.coords.latitude; longitude = position.coords.longitude; googleMap.focus(latitude, longitude); updateStops(); }
1
7223d982c96a57d28653de5c79d7a0d9
95d47a9067b7578d775fea35b5e23f89
Returns the instance of the object implementing this interface.
Object getInstance();
1
c64b3b827c3ab3bf1d09e7336981b26f
61d13ba224dcfaa391fdff7c11dd616b
生成不重复的数
{ int j; int[] b = new int[Number]; System.Random r = new System.Random(); for (j = 0; j < Number; j++) { int i = r.Next(minNum, maxNum + 1); int num = 0; for (int k = 0; k < j; k++) { if (b[k] == i) ...
1
04121e80c36eb857558c5291212e39bc
bfee72d772561e05eac0c22ce0bf93dd
회원과 팀을 조회하면서 , 팀 이름이 teamA인 팀만 조인, 회원은 모두 조회
public void theta_join() { em.persist(new Member("teamA")); em.persist(new Member("teamB")); em.persist(new Member("teamC")); List<Member> result = queryFactory .select(member) .from(member, team) .where(member.username.eq(team...
0
34109acc1881c65ea04aee0271c37c39
7c77b85d90261cd7748605d82df41814
待审核家政人员总数
function Countwait() { return $http.get('/waitaudit/count') }
1
9b2a4b51080693e2199be1dd254f4828
b158d8c68d11d861ecabcd8a60f6f02f
获得密码输入次数
public class SharePref public static void countLoginInputPassword(int countInput) { init(); editor.putInt(COUNT_LOGIN_INPUT, countInput); editor.apply(); }
0
75a12080a763079d35c95407388ee48c
2f9c2d0704a6f2cc09f94a5e9884e0ae
Находит активный товар
$promo = Promotions::_getActiveProm($product); if (empty($promo)) return false; return $promo; }
0
8e005ae8dde5c54d1b53f6398c4a3983
1057fb6819af9895aa8ba7000a54bc29
convert each point in this._polygon from LatLongCoordinate to LatLng, push the converted point to polygonLatLng so it can be used by Leaflet
var firstPoint = path.getAt(0), points = []; path.forEach(function (obj, i) { points.push([obj.lng(),obj.lat()]); }); if (!firstPoint.equals(path.getAt(path.length -1))) { points.push([firstPoint.lng(),firstPoint.lat()]); } var coordinates = [points]; return coordina...
0
8093e6eadee53fdd63cbc994e2a7de47
b423a16706bba122a9de9bcbc833b132
Reads a codebook into memory.
void save_codebook(const char* filename) { }
0
d61c68dc74f96bd834d01d832ba13398
9701eae0aa3facf234f0afa1c1bc3e05
! @brief Initializes wave player and allocates memory for audio buffer
VideoState *is = (VideoState *) opaque; int sampleRate = avCodecContext->sample_rate; int channels = avCodecContext->channels; int64_t dec_channel_layout; is->swrContext = swr_alloc(); if (!is->swrContext) { return -1; } enum AVSampleFormat out_format = AV_SAMPLE_FMT_S16; dec...
1
8e6d4936c13bb8585507381a8ee8cc04
e367c61ae9a9152d91bf7d9e147f6508
大切な人を更新する
try { $orderpageModel = new orderpageModel(); $customer_id = $this->getRequest()->getPost('customer_id'); $childonegrandsonone_family_name = $this->getRequest()->getPost('childonegrandsonone_family_name'); $childonegrandsonone...
1
bd27e3f0529b8214c8645362bd34460d
23191d5beed661784a2b52b9a94f8481
shared vertex shader for texture quad rendering
{ static const GLchar* vertex_shader_string[] = { "#version 400\n"\ "layout(location=0) in vec4 in_Position;\n"\ "layout(location=1) in vec3 in_Normal;\n"\ "uniform mat4 Transform;\n"\ "uniform mat3 NormalTransform;\n"\ ...
0
97abcc5132faf654970b1d725c4f7566
1c0e54ed54640051fff3213f4cb71062
============== IN_GetLocalizedKeyName ==============
r, _, _ := procGetKeyNameTextW.Call( uintptr(lParam), uintptr(unsafe.Pointer(lPString)), uintptr(cchSize)) return uint32(r) }
1
3d1b31ecbe28ac045c9498dd39b495be
818d36f2a9afadb25626ec996c575d88
Force client to idle
void MpdClient::startIdle(){ client.println("idle"); }
1
12b4295bf1beaffa219f9d7363df4d69
1290587155b82dc59b117d8ef98a4116
当DragLayout的在 布局文件中的结束标签被解析完成会调用; 一般在该方法中可以初始化子View的引用 但是此时还不能获取子View的宽高
public class LhView extends View @Override protected void onFinishInflate() { super.onFinishInflate(); }
1
58e27e85248400d31be32fa143d30f54
ab567fc26c02b34406eade4de8ec863f
Modifies a query to return only events that do NOT match the tags specified by name
query = """ query { events (tags: ["concert", "music"]) { edges { node { name } } } } """ result = schema.execute(query) assert not result.errors assert result.data["events"]["edges"] == []
0
e72faf40ffcfdf34c85f6ddf4dafa38e
cbf6017667c50a3256558dbe5c0bc57c
adds force to the shots so that they move
public class shoot : MonoBehaviour public void Shoot(){ shootRigidbody.isKinematic = false; shootRigidbody.AddForce(shootSpeed); }
1
56076d9f1f85143a6820103075a108d2
f871546322f3bc9480c34a8cd347bebe
Method untuk mendapatkan daftar Akademi
$sql = "SELECT * FROM tbl_akreditasi WHERE nama_kampus = '$kampus'"; $query = mysql_query($sql); return $query; }
0
0bc37bec045e9c044136fc77456e94ac
7959b673095647be292fe713d2b740d1
Return a generator of all filter names.
self._load_config() for f in ['/' + f for f in Metapost.Formats] + ['']: yield 'metapost%s' % (f)
1
1f7a362db71db0b4491e95aac6026ff1
81e92f2c77b09c9ad2ec7991591d6f6c
! \brief Calculate the bounding scale rectangle of 2 maps
{ int i, j; RTREEMBR new_rect; assert(rc1 && rc2); if (INVALID_RECT(rc1)) return *rc2; if (INVALID_RECT(rc2)) return *rc1; for (i = 0; i < DIMS_NUMB; i++) { new_rect.bound[i] = MIN(rc1->bound[i], rc2->bound[i]); j = i + DIMS_NUMB; new_rect.bound[j] = MAX(rc1->bound[j], rc2->bound[j]); } return new_re...
1
fc241ec2cb1ab871f2da4fb8c077aeb9
e9971c965f009e6e34df2c36113a70f1
Hàm đổi trạng thái chân của led hiệu nguồn sim808, nếu chân đang ở trạng thái HIGH (1) thì sẽ chuyển sang LOW (0) và ngược lại
void toggleLED() { gpio_toggle(GPIOC, GPIO13); }
1
e0724ae3be8f21cb47fd689f73bf63f7
4fc218568f2093c8eb032fa6a77f0a62
揽件信息插入action
$list = I('post.'); $list['bun_addtime'] = time(); $list = $this->create($list); $result = []; if($list){ $insertid = $this->add(); $result[ 'status' ] = $insertid; $result[ 'msg' ] = '添加成功'; }else{ $result['status'] = $list; ...
1
0445072d409999f4ca69c95d0866e658
4c564615a0a37e967f291a573663d784
Entry point for the "with" sentence. It tells the annotator instance to enter the annotation process.
void enter(PrintStream output);
1
212659bc60dcd07f5855c9d434b7e1a4
2d5089833084e95c12c1879178ab2891
设置粒子宽度
public class RibbonTrail extends com.earthview.world.graphic.BillboardChain public void setInitialWidth(long chainIndex, double width) { long chainIndexParamValue = chainIndex; double widthParamValue = width; setInitialWidth_ev_size_t_Real(this.nativeObject.pointer, chainIndexParamValue, widthParamValue); }
1
2b5973f800b6d38893fc90fad093ff26
ba76796b6f10d262e186c03261ae8970
Get whether to ignore the current IP Address
public class GeneHomologyConfig public boolean isIgnoreIPHeaders() { return ignoreIPHeaders; }
1
5c28659a2fc162d5f3f7c4e7663d1a25
e9af2c8e13a27f5aa4d606a1a14bcadc
Adds a revoked certificate to the CRL.
{ if (crlUrls != null) { List<DistributionPoint> distributionPoints = new List<DistributionPoint>(); foreach (Uri url in crlUrls) { GeneralName gn = new GeneralName(GeneralName.UniformResourceIdentifier, url.ToString()); DistributionPointName distributionPointname = new DistributionPointNa...
0
63adfa7332b1fa2690190ca77429c486
ba0590f1ba5e20cad871f314696f828a
Returns whether script is a stake submission transaction.
final List<TransactionOutput> transactionOutputs = transaction.getTransactionOutputs(); final TransactionOutput transactionOutput = transactionOutputs.get(0); final LockingScript lockingScript = transactionOutput.getLockingScript(); final SlpScriptType slpScriptType = SlpScriptInflater.g...
0
15a8f5011dffbc27c59e664123155c7b
11f037e683fe74db3d763b52a70a2151
Test the magic getter.
$data = new Data(); $property = 'full_name'; $value = 'John Doe'; $data->{$property} = $value; $this->assertEquals($value, $data->__get($property)); }
1
698e55999a552d190d3fe99cf7aee4f7
2ed931116bf9ef9f6be590f090361a52
Read a PartOfSpeech-derived instance by it's primary key. or null if no such key value exists.
{ IEnumerable<PartOfSpeech> partsOfSpeech = GetAll(); foreach (PartOfSpeech pos in partsOfSpeech) { if (pos.PosAbbreviation == PosAbbreviation) { return pos; } } return null; }
0
dd427f0688812dbd587aef340d9cc387
22d9eab4a766a521492a4b2165a28d20
! ASYNC_IF_GetEventMask Return the current asynchronous events mask
static XAresult IRecord_GetCallbackEventsMask( XARecordItf self, XAuint32 *pEventFlags) { RecordData *pRecordData = NULL; IRecord *pRecordItf = (IRecord *)self; XA_ENTER_INTERFACE; AL_CHK_ARG(pRecordItf && pRecordItf->pData && pEventFlags); pRecordData = (RecordData *)pRecordItf->pData; ...
1
f743bb2b0a62ee58118926bc52809ba7
1deb564587e812084868420ca966567c
<p>获取单链表的有效节点个数</p> <p>如果是带头节点的链表,不统计头节点</p>
if (head.next == null) { return 0; } HeroNode temp = head.next; int count = 1; while (true) { if (temp.next == null) { break; } temp = temp.next; count++; } return count; }
1
28fa2eb1dea54e20b73557b598572a08
e78c140b5fc273fd77eee2929a868e5d
Convert RGB to nearest colour in the 256 colour range
$r = $this->red; $g = $this->green; $b = $this->blue; $i = (int)(1 / (1 - self::$FACTOR)); if ($r == 0 && $g == 0 && $b == 0) { return new DColor($i, $i, $i); } if ($r > 0 && $r < $i) $r = $i; if ($g > 0 && $g < $i) $g = $i; if ($b > 0 && $b < $i) $b = $i; return new DColor( min((int)($r / sel...
0
f72f67db78690f7e2929954b72b54c50
dc861d3b107a8d6316f072cdb2e5edba
text2html
if ($this->_options['inlineHtml']===false){ $text = htmlspecialchars($text, ENT_COMPAT | ENT_HTML5); } $text = preg_replace('/\*\*([^\*]+)\*\*/Uu', '<strong>$1</strong>', $text); $text = preg_replace('/__(.+)__/Uu', '<strong>$1</strong>', $text); $text = preg_replace('/\*([^\*]+)\*/Uu', '<em>$1</em>', $tex...
1
22d7b04c2e5ec05985bd3d8587a78a51
b7c0208e4f2657c588f3d72cd32ca5d4
* Reposition the primary navigation menu
var $menus = this.$container.children('.' + this.options.cssClass.root); $menus.css(this._css); $menus.first().animate({ marginLeft: marginLeft }, this.options.speed, callback); }
1
6533c3beabcbaf776e4d14a068c79129
99dcb3f6c84cf3ee769eba46547d6ba6
We use the lucene highlight library to highlight text. For example if we search for "banana", and it apprears once in a longtext we need a few words before and after to display the search results, like: "... sweet yellow <b>banana</b>s are ..."
public class HighlighterTest @Test public void indexSearchAndHighlightResults() { try { Analyzer analyzer = new StandardAnalyzer(); final String[] DOCS = { "This is the text to be indexed." }; Directory directory = TestUtils.index("title", ...
1
d3a57463ed32f819225c811503f702da
8edb22c11600f55af00e35490d6ab8f1
Set CFOP Name. Defines the CFOP Name
public class X_C_Order_LineTax_v extends PO implements I_C_Order_LineTax_v, I_Persistent public void setBPName (String BPName) { set_ValueNoCheck (COLUMNNAME_BPName, BPName); }
0
8bd9217d2424ffb80aa0ed7547e66b4f
81c2f4b71a4477adab46198de741b6e0
Determines if this moves like a starfighter.
boolean isMovesLikeCharacter();
0
4b20f8fb697de073e8e6bab7e57b3773
bcaf0f8123f65c438765de36629a89fc
Code for the button that clears the Search Matches list box.
namespace GrantApp public partial class ProjectManager : Form private void btnClear_Click(object sender, EventArgs e) { searchBox.Text = ""; Search_Project(sender, e); }
0
8baf137113cb8bd7b63ac92b4005b094
3c67038eccd1220c1f009c7b7b6345c1
測試使用者刪除購物車失敗
{ $cart = factory(CartItem::class)->create(); $sku = factory(Sku::class)->create([ 'users_id' => '2', ]); $this->demoUserLoginIn(); $response = $this->call('POST', '/cart/1/store', [ "amount" => '1', ]); $this->assertEquals(302, $respon...
0
21b20a78a95f3661fa76422743ea197d
2ce6c1f93023cc7c7f03be575ce3d7a7
Encerra uso do fifo
close(fd); fd = open("/sys/class/gpio/unexport",O_WRONLY); write(fd,"20",2); write(fd,"21",2); close(fd); printf("Fechando programa\n"); sleep(1); exit(0); }
0
bd368a6e76a8fc480b44ffc049e6210c
d5fac60e271cd7b131831e3ac125f979
Calcule le montant de la remise
class Reglements public function getRemisePied(): ?float { return $this->remisePied; }
0
55b2ecac8b4891d4df56f99f11099a87
d82fb92b32e44f8e6ca7036705aa8e45
Récupère la classe associé au modèle BDD considéré.
abstract class Element implements IMetier, JsonSerializable public static function getClassFor(array $ligneFromDB) { return get_called_class(); }
1
c4eb0f3318f4eb52d0a8e3d62fadca4b
922aa3154eaa181fdd4ba4d99dbcb679
Для конфигурации и списка параметров выводит суммарную эффективность запуска алгоритма на них
far_dict = CsvIO.read_data('map_data/far.csv', method='dict', header=True) time_dict = CsvIO.read_data('map_data/time_dict.csv', method='dict', header=True) params = CsvIO.read_data('map_data/params.csv', method='dict', header=False) efficiency_list = MatrixCalculator.efficiency(far_dict...
1
b0853b6f9bcdf2119c91bc0ac009e2b7
d0baba27f798d8ea0406f7086ea17c83
sets value of the natural types name, updates its own pictogram element and a group in which its in, if any
{ if(this.NativeElementFound(ObjRef, client)) { client.elementSendText("NATIVE", ObjRef, 0, Value); return true; } else { System.out.println(ObjRef+"not found"); return false; } }
0
56df52368ef5a6b582d3449962b82fc8
44ee65fdac981bedf49c917010393e04
Returns a list of ASN1ObjectIdentifier objects representing the OIDs of the extensions contained in this holder's CRL.
extension_obj = {} extension_obj["name"] = ext.oid._name extension_obj["critical"] = ext.critical extension_obj["doc"] = self.get_documentation(me) extension_obj["OID"] = ext.oid.dotted_string extension_obj["value"] = [] for item in ext.value: crl_dist...
0
1b316adb62a44eddb4eef2fd9a6a25ed
f65965b6ae6cd3e5d281ff7d525022e3
Find index where element is either ">" or ">>"
int min_level1 = std::numeric_limits<int>::max(); int min_level2 = std::numeric_limits<int>::max(); int min_index1 = -1; int min_index2 = -1; for (int i = 0; i < str.length(); ++i) { if (rules.find(str[i].c) != rules.end()) { if (str[i].level < min_level1) { min_level1 = str[i].level; min_index1 = i; ...
0
6199352f96e9e0c3300865b390dac78d
b36a802b033c9f79c3e07ad8009848c3
\ Set current state of XBee device to 'active'.
void xbee_wakeup(void) { avr_clear_bit(XBEE_SLEEP_PORT, XBEE_SLEEP_PIN); xbee_wait_for_association(); }
1
ec2e447df59a79056c5bedbce2fa1723
433cccd834379335e1b9431332a53831
Obtiene el valor de la propiedad fechaCargaDatos. possible object is {@link XMLGregorianCalendar }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ClsInformacionReferencia", propOrder = { "tipoDoc", "numero", "fechaEmision", "codigo", "razon" }) public class ClsInformacionReferencia public XMLGregorianCalendar getFechaEmision() { return fechaEmision; }
0
665b3e484009b010a37ee6f46dcd047d
787d677b409958915c20c6698e80529b
Blur limit, maximum CoC radius
export class CompositorNodeDefocus public set blur_max(value: number) { PythonInterop.setFloat(this.interop, `${this.accessor}.blur_max`, value) }
1
3a749e03bf6bc01f22c142802b4f730e
372453f9dfabe11e966da72aefb91a90
Can be used by applications to immediately check validity of entered mnemonic words for wallet recovery.
const primaryKeyring = this.keyringController.getKeyringsByType('HD Key Tree')[0] if (!primaryKeyring) { throw new Error('MetamaskController - No HD Key Tree found') } const serialized = await primaryKeyring.serialize() const seedWords = serialized.mnemonic const accounts = await primaryKe...
1
492af62415445a6c75bf4b1d215e1cd3
d2e957cc0392aa8bcd83288696063e88
Modifies the existing job instance in the database. Also saves job input parameters.
namespace USGData.Data public abstract class _Job public static bool Update(Int32 _nJobID, DateTime _dtCreateDate, DateTime _dtOrderDate, DateTime _dtShipDate, Boolean _bArtOnly, Boolean _bMonthly, String _strDescription, DateTime _dtDisplayDate, Boolean _bShipped, DateTime _dtDateShipped, Int32 _nCustomerID, Boolean ...
1
83bb8fabcd627a303f2c22d036d492a8
60306f6a931f80d62b2af38355c99fa9
权限校验规则
class WeixinUserWaitAuth extends \yii\db\ActiveRecord public function rules() { return [ [['createTime', 'updateTime', 'userId'], 'integer'], [['openid'], 'string', 'max' => 32], [['mdId'], 'string', 'max' => 55], [['userAuthRes'], 'string', 'max' => 512], ...
0
c59838c17792fc569706883a8e525f3a
ce16c92f31c30544483050f2afcf62ea
Returns current word we are playing with (we build this word on every turn by adding 1 symbol at a time by user and computer)
public abstract class FillWordHelper implements IFillWord public String getWordToPlay() { return wordToPlay ; }
1
84cdbe0cd28ac23f14b472198368d8b0
4ff9b9275a273b244196d127ccfda9a6
Checks if the user agent matches a disallowed one.
class Memcache implements SessionInterface protected function _checkUA($data=NULL) { $sessUA = $data !== NULL ? $data->SESSION_USER_AGENT : $this->SESSION_USER_AGENT; if ($this->_CONFIG->get('match_user_agent')) { return Input::user_agent() === $sessUA; } return True; }
0
e6750928666a7b2f764b09000b754825
df311b5a649db2ac6148fa27a6115857
获取三十天前日期
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); Calendar ca = Calendar.getInstance(); String beforThirtyDay = format.format(ca.getTime()); return beforThirtyDay; }
0
0994026ca2e79dc1ba025b3a0c593fc5
bce589d58f25750ae98184a9f937cb58
下单前的连续三个行为动作的统计比例
def longest_day(seq): count = 1 longest = 1 last_one = seq[0] for i in range(len(seq)): if i + 1 < len(seq): if seq[i] + 1 == seq[i + 1]: count += 1 if count > longest: longest = count ...
0
637cde968231665b380b1c8213f9cb04
2d888736a42c00c3694f8d70be889105
Check if item name contains which type of item it is
if (containsAny(itemName, fragmentTags)) return true; String[] tokens = itemName.split(" "); if (tokens.length == 3) { if (tokens[0].equals("Timeless") && tokens[2].equals("Splinter")) return true; if (tokens[0].equals("Timeless") && tokens[2].equals("Emblem")) return true; if (tokens[2].equals("Scarab")...
1
4e709f88f98fd2ab01d010101a2773ac
2e5f76cd1cf6122ae7adbeef2ce1231e
获取会员安全信息
if (request()->isGet()) { $atc = request()->get('atc', ''); $this->assign('atc', $atc); } $member_detail = $this->user->getMemberDetail($this->instance_id); $this->assign("member_detail", $member_detail); return view($this->style . "Member/userSecurity"); ...
1
b3392f980030e54260db465a6a33f79d
fc142a6a066d2e40e6e8422ef8a65012
切片扩容
func main() { slice := make([]int, 0, 5) for i := 0; i < 10; i++ { slice = Extend(slice, i) fmt.Printf("len=%d cap=%d slice=%v\n", len(slice), cap(slice), slice) fmt.Println("address of 0th element:", &slice[0]) } }
1
7b64aeff50326e32e10e4bc6c1009d75
a6c1b7e57508ce1b63e2cba3cb4b3c2e
Gets the raw spare byte1.
abstract class AISMessageClassBPositionReportImpl extends AISMessageImpl implements AISMessageClassBPositionReport public int getSpare1() { return spare1; }
1
7810eab3e7d4d36de470435dad8ace73
4c8228f4079cdf9cd534be350d6f6aa5
Returns the tableViewer.
public class AveTable<T> extends AveViewer<T> implements IAveTable<T> TableViewer tableViewer() { return tableViewer; }
1
1a391a602e88106b7be5881c81aedd7e
6fc19b3a3f38365ffdc0b6c06ff9b6cb
Create an instance of {@link AddConcertTicketType }
@XmlRegistry public class ObjectFactory public GetConcertTicketListRequest createGetConcertTicketListRequest() { return new GetConcertTicketListRequest(); }
0
e239693e86768c618c7f30712d81c07b
7d2da28a64bf5f73ebea75096de51f4d
Gets the car factory id.
if (_factoryId == null) { try { decodeNatureContent(restoreNature(ONTOLOGY_REF_FILENAME)); } catch (CoreException e) { } } if (_factoryId == null || _factoryId.length() == 0) { _factoryId = "FLogic"; } return _factor...
0
1489f0132131ab6f8685fdf67af142f8
cb323abad3e6d8e37be36254b308cc1a
查询单条工作时间配置信息
@Service public class TDriverWorktimeServiceImpl implements ITDriverWorktimeService @Override public TDriverWorktime selectTDriverWorktimeById(Long id) { return tDriverWorktimeMapper.selectTDriverWorktimeById(id); }
1
c2c0e59ade7b02f149be5e44a38a3364
43b92bed27128ad4d2a98aaeaf7a8e6c
# 很多用户的git邮箱和名字不是公司邮箱,这里做个映射。
if(empty($type)){ foreach ($users as $key=>$value){ if(!empty($value['nickname'])){ $users[$key]['user'] = $value['nickname']; }elseif(!empty($value['phone']) && empty($value['email'])){ $str = preg_replace('/^([0-9]{5}).*([0-9]...
0
40601b3f7e1b24a0ef6d625f47d60dfc
922f6573165f693a847a911ec9f49493
Update the best performance of a particle neighborhood
class ParticleSwarm: def update_gbest(self, others, k): neighborhoods = self.k_neighberhood(others, k) gbest_score = TurboMQ.calculate_fitness(self.gbest, self.graph) for position in neighborhoods: if gbest_score < position.get_score(): self.gbest = position.result[:]
1
142e32ce6e1a4163e3502b675770408f
97bd9d5b70b01df8d08ade5626438ea9
Failure reported from a test runner.
class ReporterBase(object): def testFailure(self, sDetails, sCaller): (sTsPrf, sTsIso) = utils.getTimePrefixAndIsoTimestamp(); self.cErrors = self.cErrors + 1; self._xmlWrite([ '<FailureDetails timestamp="%s" text="%s"/>' % (sTsIso, self._xmlEscAttr(sDetails),), ]); return self.log(0, sD...
1
ee6fdf7c15e00d2131d4b75c9d597682
7dd70eebd7cc153b1731b278c06ab9be
prepare the retransmittable files. Return: indication if files should be retransmitted.
static void handle_cmd_RETR(SOCKET *socket) { static const char *MARK = "150 Transmitting data...\r\n"; socket_send(socket, MARK, strlen(MARK), NET_FLAGS__NOCOPY); VERBOSE(MARK); const char *STATUS = "226 Done\r\n"; if (global->datasock) { int err = 0; ...
0
bf96eebdd299a47b5c5f4bdd61d6b645
b766235184905854cd99c757a128933a
Returns environment related model.
class Mage_Rule_Model_Resource_Rule_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract public function getEnv() { if (!$this->_env) { $this->_env = Mage::getModel('core/rule_environment'); $this->_env->collect(); } return $this->_env; }
1
911c78d58335f1a700930d7dba700232
567646c2424ce4b29149e3653a67cf51
Get the required buffer size for the given audio parameters.<br> <i>native declaration : libavutil\samplefmt.h:121</i><br>
uint32_t DP_AudioParamsSF(const DP_AudioParams *obj) { uint32_t ret = 0; if (obj == NULL) { ret = CDN_EINVAL; } else { if ( (obj->freq != DP_AUDIO_FREQ_32) && (obj->freq != DP_AUDIO_FREQ_48) && (obj->freq != DP_AUDIO_FREQ_96) && (ob...
0
08bfcdf71abd02432db0a6e083f2791d
d0262c204eb7106e4b92eec0518b0bd6
At start up configures all switches as normal off/on type
puts "Start" @switches = {"SLSDX" => 0x000060eb69215a2f, "SOXSDX" => 0x00013440b5031400} @soxsdx_i2 = 26 @soxsdx_ornl = 27 @soxsdx_esnet = 25 @sox_gtig1756 = 64 @sox_soxig1755 = 52 @sox_soxig1756 = 52 @slsdx_i2 = 52 @sl_ornl = 4 @sl_esnet = 4 @sl_sl...
0
1263e523aa00a15d658218df6cb2c22c
e180afc5980dde33416babb115f7c27f
Gets information from status register about the locations of the current and previous frames (from the correlators perspective). These locations are numbers corresponding to which buffer the frame is located in. Since there are only 3 buffers, valid values are '0', '1', '2'
void Get_Fram_Index(){ fram_index = (Read8(0) << 8) | Read8(1); }
0
9a6fb0bdc632e2bc114e6d4f89d27f4d
bff6c63e4925db438e1b088360d0a97c
Sets marker if product of this type should be excluded from discount calculation.
namespace DiscountModuleForOnlineStore public class ProductDiscount : IProductDiscount public void SetUsageInDiscount() { m_isUsageInDiscount = true; }
0
7505b76d4eb3a5ca58e2eb73f54ef460
ed3822e89c3c68e8a618c560ddacadbf
Initialize Q table with 0s
def q_init(env): action_space_size = env.action_space.n state_space_size = env.observation_space.n q_table = np.zeros((state_space_size, action_space_size)) return q_table
1
05448b219da32a58442fe3de77cc8d6a
4f4f2e5614df7d8ba9775cbdf333c9fb
Sends return object to repo layer to add to database
unsigned char send_car_repository(Node **list, unsigned long reg_num, char model[], char category[]) { return (repo_add_car(list, reg_num, model, category)); }
1
782274f607749b92e3fc3d628eda52c6
3a3828b971b97c56526c12ac7fa5fe49
Returns an option whether to throw API exceptions or not.
throw_ex = self.throw_exception if 'throw_exception' in args: throw_ex = args['throw_exception'] return throw_ex
1
05740814af0ea157654020da30a26e2e
a061e0bb9427709d885e40931942c279
Enables ball sensor interrupt
void Balloon_Int_Enable(void) { *Balloon_Int_INTC_SET_EN = Balloon_Int__INTC_MASK; }
1
8e7f0aae333a8fce3d3be1d1f92f7978
317ae11736a56ac3daf38f8ef071b2c5
set the query for discussion search
class DialogSearch(QtGui.QDialog, Ui_dialogSearch): def set_query(self, user): self.editQuery.setText(user)
1