query_id
string
corpus_id
string
query
string
code
string
label
int64
011a09ba990f6f51032e834f85b0e613
ebaa87b03c0c23bbf2421e4c67725ae9
builds the Open Weather Maps url based on the lattitude and longitude given
function buildQueryURL() { var queryURL = "https://cors-anywhere.herokuapp.com/http://api.openweathermap.org/data/2.5/weather?"; var queryParams = { "appid": "b2d4239aa3e819b8680cdea4c57fe90d" }; var queryText = $("#searchText") .val().trim(); var listItem= $("<li>").addClass(...
0
6789dd8faf45c277cc348b19d0a9ce4d
3d45323c008424a53ad8fe76a369f082
Move delivered file from the DTS spool to the final raw data area. This function will ensure that the destination directory exists.
{ var destinationDir = targetDirectory; if (targetDirectory.Contains("%filepath%")) { destinationDir = targetDirectory.Replace("%filepath%", Path.GetDirectoryName(processingFile.FullPathOfOriginalFile)); } Logger.DebugFormat("Moving {0}...
0
5d652b3017633269975d7a700071e4e5
5738f8f5f017154a2881154d6fa61339
Using Fisher-Yates shuffle //
function shuffleDeck(deck){ for(let i=0; i<deck.length; i++) { let swapIdx = Math.trunc(Math.random() *deck.length); let tmp = deck[swapIdx]; deck[swapIdx] = deck[i]; deck[i] = tmp; } }
0
f492a2b0ad22d05e51922f147931f2df
3063c2c52ef32c997d124993b6cde40c
返回车辆是否暂停
{ WayPoints* findWay = GetIPtr(_self, WayPoints, IFindWayPtr); if(!findWay) return 0; return findWay->IsPause(); }
1
dd5a4f8fbff13e67cfc29aa90b8d1764
a9bef019187571d2c94ab39534caf575
Number of SSL handshakes on TLSv1 on the NetScaler appliance.
class ssl_stats(base_resource) : def sslenchwrate(self) : try : return self._sslenchwrate except Exception as e: raise e
0
2c957da912aa64dd5e75b3c0da54eed1
62c69af71c983cc24c22a9a71e121268
Changes the status of Light component attached to Player. Called when the light button is pressed.
public class LightSwitchEventHandler : MonoBehaviour public void SwitchLight(Transform @this, bool isOn) => GameObject.Find("Chandeliers").transform.Find(@this.name).GetComponent<Light>().enabled = isOn;
0
f31f297b78c302eb70de3a2da400bdc1
5f8020a1b1e324f7799bc6d16d4fddb6
Gets the last picture from the DB
class BackendSlideshowModel public static function getLastGallery() { return (array) BackendModel::getDB()->getRecord('SELECT i.* FROM slideshow_galleries AS i ORDER BY id DESC LIMIT 1' ); }
0
a3021d2354f109923bbb43b2516731da
f4d8c03cb3251e3c406b391fde18259e
Returns PayPal OR PayPal sandbox host.
public class KiteSDK public String getPayPalAPIHost() { return ( mEnvironment.getPayPalAPIHost() ); }
1
dece6e81da924e02206ba9ed6494b9bf
637fb12c1847bb5b773001263b354e15
Gets send transactions timer.
def get_send_time_re(): return r"SEND_TIME=[1-9][0-9]|[1-9]"
0
b863846e13b8111d9aebc1ead0d7f04f
26e36154c75a24830a0ff96ac6c12c29
Retrieves statistics on search service. Information is provided on documents, partition indexes, mutations, compactions, queries, and more.
class SearchIndexClient(HeadersMixin): # pylint:disable=too-many-public-methods async def get_service_statistics(self, **kwargs) -> Dict: kwargs["headers"] = self._merge_client_headers(kwargs.get("headers")) result = await self._client.get_service_statistics(**kwargs) return result.as_dict()
1
65862ac10eec5ff03242745f83267958
9985ee308682e852a3cdb1bde6527157
Whether responses has the specified line
for (auto r : responses) { if (r == resp) { return true; } } return false; }
1
cb65329c44cd0d3119e385e54d8bb200
f2ac575d5c3fc7dd2074e41e5314a2e0
Returns the transaction inputs in this pool.
class TransactionV145: def coin_inputs(self): return self._coin_inputs
1
9ab1ec072737a3d4dd6ef0529225cb9e
66e86f8eb58be02abc9917af8ebee7d4
预处理UIPrefab,实际打包资源是使用图集资源的UIPrefab
GameObject GetUIPrefab();
0
3a564851b938abead1ee42a71e8a1ae9
15866d64faade201c209e6b80cfbbecb
Advance the position of the cursor by one and return the Feature object at that position.
public class LineMergerFeatureReader implements FeatureReader public Feature next() throws IOException, IllegalAttributeException { return featureIterator.next(); }
1
5bd9be6a2b4104f960184aab9a62a1f2
ae95753a004c11e7e3aa3a867b11295d
Liefert den Index der aktuellen Ecke zurück.
final class ImpostBeam implements ImpostBeamInterface public function getIndex(): int { return $this->index; }
1
572657f60ef5f243ca666f7560cf1c71
341e60aea2ca8f27f564cbd0a2582193
Metodo para eliminar un tipo de puerto
{ try{ $categoriaPuerto = CategoriaPuerto::find($id); $categoriaPuerto->delete(); if (Auth::user()->role_id == 4){ return redirect()->route('admin.categoriaPuertos'); } elseif (Auth::user()->role_id == 5){ return re...
1
5c5e4200cdb565c0b77856216607c9b2
3f0624e329f552b40e808ae1268146b7
Gets the value of the fundingType property. possible object is {@link String }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "GOVERNMENT_LOAN", propOrder = { "agencyProgramDescription", "borrowerFinancedFHADiscountPointsAmount", "borrowerFundingFeePercent", "borrowerHomeInspectionChosenIndicator", "borrowerPaidFHAVAClosingCostsAmount", "borrowerPaidFHAVAClosingCost...
0
981c470a73a38c05bb95da38d649fd8e
5478040ebf0f03a1ee0abc1fc3960a0f
Get the number of pairs which match the condition that the sum of integers in pair is zero. Time complexity: NlogN
sum=a.reduce(:+) count_pairs=0 a.each do |el| if el==0 count_pairs+=sum-el else sum-=1 end return -1 if count_pairs>1000000000 end count_pairs end
0
cca79a58e3b5001e7f3b81d5303446c2
a2ec6ba13174c5965a86922267636bae
peek() returns the top item in the stack
size = self.size() if size: return self._stack[size - 1] else: raise IndexError("Stack is empty")
1
def9e98b60e3bfc493bcd7693e702096
3287786d9e93f29d5e25cbe8887e0681
收起
function unFold(){ startMove(_this.opt,{"height":_this._this_h*_this.arr.length}); _this.cur_con.className="cur_con unfold"; _this.isFold=0; }
0
a7ac469008367b9878c7b7ad7139bacb
7f6783a35ae067dcc050f3cee8b1dd7b
Checks the availability of ImageMagick on the system.
def imagemagick_status(): return not(check_command('identify') and check_command('convert'))
1
96bdf502b31db17c17a0313500fcef3a
10e4524d47aab4534d7db18e21dfeb4a
Relative uncertainty on the total weight. We assume the different contributions to be uncorrelated and sum the relative uncertainties in quadrature.
class RangeBearingSensor(SensorBase): def W(self): return self._covar
0
9f57c4550dc0a48e1e05eb13b565a30f
d1727de3d965a8efcf518cbdcbe631c2
Nos permitirá enviar email para validación de usuario.
class UserModelTest(TestCase): def test_usuario_es_valido_solo_con_email(self): usuario = User(email='a@b.com') usuario.full_clean()
0
557a6e0ad3b71c5140bab8ad66d33ea1
43667e67538f2dbb0358a7987834ee1b
设置字段utime 项目更新时间
if _, ok := scope.Get("gorm:update_column"); !ok { scope.SetColumn("UpdateTime", time.Now().Unix()) } }
1
67ca6d5d1e6c03480e3ed8b88d379914
0bab147b38dbcb820eb55540289c05dd
hides or shows due dates
class LoanDetailActivity: BaseFormActivity() private fun setToggleButtons() { if (loan_due_date.text != "" && loan_notif_date.text == "") displayToggleButtons() else hideToggleButtons() enableNotifBtn() }
0
722198322a7d0758239c819cb97b0e03
b20516eb40ea6a549167127c1f81b07c
Set the captcha generator
class Configuration public function setGenerator(AbstractGenerator $generator){ $this->generator = $generator; return $this; }
1
6a24dc94cc6872199c2af5d201332a70
e0a2c9e2016eab2a9c9c6e141833c7b3
Гроза
def ver1(): g = [] for i in range(round(0.01*d['Казна'])+d['Армия']): g.append(1) for i in range(d['Смута']+floor(d['Народ']*0.005)): g.append(0) f = choice(g) if f == 0: end() else: d['Смута'] = 10 d['Казна'] = floor(d['Казна']*0.25) d['Армия'] = floor(d['Армия']*0.25) next()
0
d00a28e66d615b3f647a83d2b039e3bd
11443542097f65b901875b18662913e4
選択中のテナントにおけるレジストリ情報を取得する
@Path("/{tenantId}") @GET @Produces("application/json") RegistryTenant getTenant(@PathParam("tenantId") String tenantId);
1
5d6372c7f1490438caf5ed4d3dcf2ef4
772a1d70becd6e4de640836d578e9066
Gets whether an error occurred while accessing the authenticated user's OneDrive
{ try { Task authTask = new Task(() => { }); string[] scopes = new string[] { "onedrive.readwrite", "onedrive.appfolder", "wl.signin", "offline_access" }; var onlineIdAuthProvider = new OnlineIdAuthenticationProvider(scopes); ...
1
7207c7584470dd4ee367f281cc234dd0
19e69e82ca42fb4ee02cb380ad36d134
Function to compute value of npr
int printNcR(int n, int r) { int p = 1, k = 1; if (n - r < r) r = n - r; if (r != 0) { while (r) { p *= n; k *= r; int m = __gcd(p, k); p /= m; k /= m; n--; r--; } } else p = 1; re...
0
1898449e74140a389aecda1d6818236b
95c136a23b07aafe7b5a1a988f56746c
Associate a Person object to this object through the moviesPersons cross reference table.
public class Person public void setMoviesAsAProducer(ArrayList<Movie> movies) { this.moviesAsAProducer = movies; }
0
d434b33cb52ae6d732813116acf4acbd
01a2539796544a98f68c2d7c72cd3019
On récupère la meilleure valeur possible du pivot
int choixPivotPartiel(pmatrice a, int i) { int t = i, j, n = a->hauteur; float f = abs(getElt(a, i, i)); for(j = i; j < n; j++) { if(abs(getElt(a, j, i)) > f) { t = j; f = abs(getElt(a, j, i)); } } return t; }
1
ab9e9c4f22b328ad34e02784e01d8949
cd60f1471809dcdee27a14d69ccde08c
Create a property for the table or view flag.
if self.logflags & logflags.DDL: self.log(logflags.DDL.message("add property %s %s" % (cls, name))) if not self.has_property(cls, name): try: table = self.schema[cls.__name__] table[name] = col = self._make...
1
5842c6fc5f0f53a14910c1b177115f88
926ee69e503530483c60757715cda02c
Fetch mails, parse, update store, and send back the event
class SendEmails extends BaseCommand public function handle() { parent::getAllparams(); $result = $this->oMailService->processMailWithMQ(); }
0
3f84a131701a2465aa1c4e8c25ca85b6
2b4aa383c675160eecf22e870c09714d
whether they are both nan or both non-nan
def na_cmp(): return lambda x, y: bool(pd.isna(x.magnitude)) & bool(pd.isna(y.magnitude))
0
554aa2e244346e6a8e8d0eb44a3be3f1
5168fde058f046db3e7b9819142a09e9
allow statements like const A_B = "test"
BOOST_AUTO_TEST_CASE(test_no_partial_load) { s << "x = x \n x = i("; auto result = parse_statements(s); BOOST_TEST(!result.has_value()); }
0
f17995bff83bfda72426f83ca5040cf7
587214bdaa57826454879ed27fd3d8b6
Returns whether or not the UI should show the pet select screen.
{ bool pets = FALSE; int pet_ctr; monster_type *m_ptr; int pet_select = -1; for (pet_ctr = m_max - 1; pet_ctr >= 1; pet_ctr--) { m_ptr = &m_list[pet_ctr]; if (is_pet(m_ptr)) { pets = TRUE; break; } } if (pets) { pet_menu[PET_DISMISS].flags |= MN_ACTIVE; } else { pet_menu[PET_DISMISS].flags...
0
049ddee94154016d502e348099ab4f65
ccc7267f8288d56115afc37e71310604
分页查询报价商品列表(询价商品ID)
@RestController @RequestMapping("/purchase") public class PurchaseController @RequestMapping("/selectPurchaseQuoteAsPage") public AjaxJson selectPurchaseQuoteAsPage(@RequestBody BillPurchaseQuotePo billPurchaseQuotePo) throws GlobalException { return iPurchaseService.selectPurchaseQuoteAsPage(billPurchaseQu...
1
20111a67437ce91496793ecae5301a07
4f2e401d65ac6866a3a212381f5a1b74
Maps messages to services.
class SubscriptionManager extends Worker{ public static function manage(){ $subscriptions = json_decode(file_get_contents(MAPPINGS."/subscriptions.json"),true)["subscriptions"]; foreach($subscriptions as $subscription){ $entity = $subscription["entity"]; if(!$entity || !is_string($entity)){ ...
1
7ca9fb0fe124956a2294b38e29e223bd
f67f30f1c66b30d79f17075ccff165fd
指派客户到某一销售人员下
{ if (!($user_id && Sales::isSales($transfer_to))) { return false; } $manager = Sales::isManager($transfer_to) ? $transfer_to : Sales::getParentManager($transfer_to); $this->db->execute('use formax_crm;'); $this->db->update( $this->getSource(), ...
1
d82b94865b1a4089eb4f363454a5f646
514fc96d944fcf366514eef6da5fa8a2
Return a copy of +hash+ with all of its keys normalized by #normalize_key.
class Payload def from_hash(hash) hashmap.merge!(hash.transform_keys(&:to_s)) self end
0
54e6924ec577e1e93d57c799d6b7a29b
ed2ba207c2983ea528653ea7ba261ae2
获得一组混沌序列
{ float chaotic[M*N]; double t; bool isOK; QString text=QInputDialog::getText(NULL, "混沌初始值", "请输入初始值", QLineEdit::Normal, "0.98", &isOK); if(isO...
1
adfa7445ba80a4a2bf45ae625fe33592
f8ea3381636382cbb1995fc6f1c9fffe
Calls one of the simulators.
class UI: def sim_run(self): call = self.build_call() if call is None: return subprocess.call(call)
1
2d53a72e77ba48728e03cc8e00ee342a
2d886408d4cb4ce45e683965f7404905
@brief IRQ Handler This function handles DMA1 stream0 global interrupt.
{ DMA_TypeDef *const pDmaReg = gpDmaReg[dmaEngine]; uPortUartData_t *pUartData = NULL; if (LL_DMA_IsEnabledIT_HT(pDmaReg, dmaStream) && gpLlDmaIsActiveFlagHt[dmaStream](pDmaReg)) { gpLlDmaClearFlagHt[dmaStream](pDmaReg); pUartData = gpDmaUart[dmaEngine][dmaStream]; } if (LL_D...
1
f9784920e7e3ec0c15c347f7965a0d05
3f7c5cd0a9462ca89e6a1b3db202247a
Convierte los datos del RTC a un string con formato DD/MM/YYYY hh:mm:ss
{ RTC_DateTypeDef sdatestructure; RTC_TimeTypeDef stimestructure; HAL_RTC_GetDate(&IHU_BSP_STM32_RTC_HANDLER, &sdatestructure, RTC_FORMAT_BIN); HAL_RTC_GetTime(&IHU_BSP_STM32_RTC_HANDLER, &stimestructure, RTC_FORMAT_BIN); sprintf(output, "%04d/%02d/%02d, %02d:%02d:%02d", sdatestructure.Year+2000, sdatestructure.M...
0
0f2f48575326ee82d7667b3a0af4230e
dec7ba24619030f93cf4558c1eef556b
Total number of LSN DS-Lite tx pkts.
try : return self._lsntotdsliteicmptxpkts except Exception as e: raise e
1
c0a9ce12ef459163ddbf86294322c219
524923e5db6e181a429ca760ca86f994
construct file of edges from the input expression file.
{ log_netw->debug("exportEdgesFile function"); std::unordered_map<uint64_t, double> edges; uint32_t edge_weight = 1; for (uint32_t i = 0; i < m_Neurons.size(); i++) { if (m_Neurons[i].is_deleted()) continue; std::vector<uint32_t> neigh...
0
188b9633026941c6d2cf7340870b4359
bf1df712c6396aa2a229d37399d8fc33
METODO PARA MOSTRAR EL PROMEDIO DE TODOS LOS MESES INGRESADOS.
public class Estadisticas public final String mostrarMediaOtrasOperaciones() throws SQLException { return this.consultaSQL(this.configProperties .getProperty("mostrarMediaOtrasOperaciones")); }
0
b6d2b5aa4470817901950cfc61b036b6
5fa755d70fde402db4dee500a104f6e4
UVマップを爆弾に変更
rep(i, N) rep(j, N) if (MAP[i][j] == tank)MAP[i][j] = air; rep(i, N) rep(j, N) MAPid[i][j] = 0; rep(i, 4) if (alltank[i].isalive()) MAP[alltank[i].x][alltank[i].y] = tank, MAPid[alltank[i].x][alltank[i].y] |= (1 << i); }
0
a02a5578cc8f15d3f21275cb96688f82
c52e032286c4fffc1533af95145d1f09
Estimates the pose and intrinsics of a new view.
{ this.depthImage = depthImage; this.intrinsics = intrinsics; this.position = position; this.UpdateVisuals(); }
0
dfd1abed025d53aee075dc4feb4bbc84
a86c2c026b42723dce3ccc9f81301b2e
Download official Malaria dataset to data_path
class Main(FlyAI): def download_data(self): data_helper = DataHelper() data_helper.download_from_ids("MushroomsRecognition") self.deal_with_data()
0
6f60a0a1373734b6200a52ad6d93bbc5
def8ac749328d9a75e95df8b39a7b68d
evaluate cross entropy on the whole dataset
data_length = X.shape[0] _, _, _, output_layar_final_data = feed_forward(theta, X) pair_computation = -np.multiply(y, np.log(output_layar_final_data)) - np.multiply((1 - y), np.log( 1 - output_layar_final_data)) return pair_computation.sum() / data_length
1
9461e5dae973e51c00a8efda7148b3e8
880b46b06f9e2b72d25a9a3b0a870c69
Function to determine if two hosts are equivalent by resolving their absolute addresses
class CrawlCommand extends Command private function areHostsEqual($firstUrl, $secondUrl) { $firstHost = parse_url($firstUrl, PHP_URL_HOST); $secondHost = parse_url($secondUrl, PHP_URL_HOST); if (is_null($firstHost) || is_null($secondHost)) { return false; } return...
0
11707bd8756bf939c5ddf7974d2a7808
205ec2161855c2e79bc9109f998350ef
uses #2 constructor to build structure and initialized all pixels to a given color
World::World(QRgb value, int worldHeight ,int worldWidth): m_WorldWidth(worldWidth), m_WorldHeight(worldHeight) { r=qRed(value); g=qGreen(value); b=qBlue(value); trigger=false; this->fileName="standard"; Fill(); }
1
d888eac8b447e351c29bf62364f99e06
745076f9a827c9a1fb18b7494300818c
Création du menu déroulant des catégories
class Categories extends Base createCategories() { const categoriesGroup = this.game.add.group(); categoriesGroup.x = 20; categoriesGroup.y = 205; const mask = this.game.add.graphics(0, 0); mask.beginFill(0xffffff, 0.5); mask.drawRect(0, 180, this.game.width, this.gam...
1
66008732baf09717b34b9b1ebf896c2a
a91d298ed8f12933f5aa47f18d029acf
Returns entire Flower array
class FleursRepository public function getAllFleurs() { $fleursRef = $this->firestore->collection('fleurs'); $documents = $fleursRef->documents(); $fleurData = []; foreach ($documents as $document) { if ($document->exists()) { $fleurData[] = $document->data(); } } return $f...
1
7fdf4cb2cef246d09db094117219afd0
a8d985eadaf86c7beb26dd63fe01cb9f
Test that the data route will return data with sample log file
class LogControllerTest extends TestCase public function testRouting() { $response = $this ->actingAs($this->adminUser, 'admin') ->withSession(['user_id' => $this->adminUser]) ->get(route('admin.system.log')); $response->assertStatus(200); }
0
55f444f287da860d4be05d9c04baf57e
83bb23cfd529378e6d463a823593b83f
Expand this bounding box with another point.
class Box3 expandByPoint(point) { this.min.min(point); this.max.max(point); return this; }
1
f2c4e3212a73114f329e5945c9037dc5
f65704e0918cd78b011da06b3e2c8146
This method returns the value of the database column TB_FS_CONFIG_CHANGE.OBJ_ID column comments null
public class GetObjIniRelRow extends RecordOperations public Object getDSPOBJD_ODOBAT() throws SQLException { return getValue(4-1); }
0
d2e9b29a087688918d654100d84560ef
699058496f3161f5cd046def0552eb1e
This moves the piston to the opposite of its current state
public class GearMechanism public void toggleState() { desireUp = !desireUp; pistonTriggered = !pistonTriggered; }
1
3d951d5f5a421a393ebeb18078b41a2c
ba36feee2ef8b1d62d4c97fcfa0fec2a
添加自定义的标签
class Petaticle extends BaseAdminController function addLabel(){ $this->assign(config('config.view_replace_str')); return $this->fetch(); }
0
18d93d7586c3d82c5455a840d0f591b7
74f5e4229bb86bd745268732d076af16
**********************ACQUIRE AC POWER DATA PHASE*************************
def setAcquireValues(): do_command(":ACQuire:COUNt 8") do_command(":ACQuire:MODE ETIMe") do_command(":ACQuire:TYPE AVERage")
0
bb94a5f1df85e0a35d79f8bc1ed310f9
de88089c147a706931c1484334ac8ba5
generates frenet path parameters including the cost
FrenetOptimalTrajectory::FrenetOptimalTrajectory( FrenetInitialConditions *fot_ic_, FrenetHyperparameters *fot_hp_) { auto start = chrono::high_resolution_clock::now(); fot_ic = fot_ic_; fot_hp = fot_hp_; x.assign(fot_ic->wx, fot_ic->wx + fot_ic->nw); y.assign(fot_ic->wy, fot_ic->wy + fot_ic...
1
a15327d67fc4e2b10b90c8ef8448df2c
47d90aa12939ca97c9e1267df88f0595
Lists all groups (DEBUG ONLY)
Group *curr_group = group_list; while (curr_group != NULL) { printf("%s\n", curr_group->name); curr_group = curr_group->next; } }
1
908524d87d29ce6afcdea102adbfbf6c
626e7a67ab0f85a4629973b39d042d57
导入专业数据
def specialty_info(request): fid = 'specilaty' fname = request.FILES.get('specialty_file') fl, ds = manageFiles(fid, fname) if fl: info = UP_INFO['spe'] if info['sp_id'] in ds.columns.values: with transaction.atomic(): try: for li in ...
1
9e0a3b1b91798890e8c0a567b370820a
d1181c291e3c2070df39634bb0d2668b
分页查询全部弹幕
public List<NouserDiscuz> findDiscussByPage(Map<String, Object> map)throws Exception;
1
888e3b19741f0e1594890cc84b2a6746
ce4d1371cb7f591c13401bb9a3966942
慢速上传文件的操作
function UploadFile(){ function createUploadTask(time){ var start = 0; var end; var index = 0; uploadTaskId = setInterval(function(){ if (start < uploadFile.size) { if(!stopUpload){ end = start + bytesPerPiece; if (end >...
1
9d89d9692a0687dfe2134cf70bec1a84
e7bf96a2ff95e7cecc402140c5ab12a9
Compute scene marginals over training data
ps = sim.Prior().gen(n_samples) net = util.io.load(os.path.join(dir, 'model')) ys = net.eval(ps)[:, 0] util.plot.plot_hist_marginals(ps, weights=ys, lims=sim.get_disp_lims()).suptitle('learned') ps_gt, _ = sim.SimsLoader().load(n_samples) util.plot.plot_hist_marginals(ps_gt, lims=sim.get_disp_li...
1
e5307fe8c1c0cec75b340a2d2d65ef00
88a265da582402b1f59740a9339eccf7
获取手机的IMEI值 International Mobile Equipment Identity国际移动电话设备识别码
public class Helper_Phone public static String getMIEI(Context context) { TelephonyManager manager = (TelephonyManager) context .getSystemService(Context.TELEPHONY_SERVICE); return manager.getDeviceId(); }
1
0d51cc2b251abe400bd05def32af1a38
64568faee54048e869a7b9054d8bb11b
Remove all blocks from page
def clear_blocks(blocks): for i in range(len(blocks)): blocks[i].access = 0 blocks[i].page_num = -1
0
1387b79f6e657dde63e524d006274c16
48732bfc279840ef206c53c080e75969
Get the number of data points in this segment.
int getNumberOfDataPoints();
1
9f7056d6c111af4cda937e234990c2c1
74b14c966674925c43da8eff7e3fe6c6
shallow copy
PerpAmericanOption::PerpAmericanOption(const PerpAmericanOption& source) : b(source.b), K(source.K), r(source.r), sig(source.sig), type(source.type) {}
1
b805ae851bcba80a5e06e78b956fcaf0
015abbc90a23832b8d6d1eafd7fa5cc3
功能:删除团队成员信息
int deleteTeamMember(Map<String, Object> paramMap);
1
e6ac409b8ab57eb6ea3ad8a6950d1593
7a1220151610cc8a76bba58cf974636d
Get pointer to next Tx descriptor to be processed (send) by HW
{ int ThreadIndex = wiProcess_ThreadIndex(); Verona_TxState_t *pTX = &(TX[ThreadIndex]); return pTX; }
0
b7746a8ccaf87d29a7b624d7dcd8f47c
b095358438c1883c0f48a26a6609bed4
against Regions List
{ header('Content-Type: application/json'); $Regions_data = array(); $Countries_id = $this->input->get('Country_id'); $Regions_id = $this->input->get('Regions_id'); $Regions = Get_Regions($Countries_id,$Regions_id); $lang = get_current_lang(); foreach ($Regi...
1
50c888546c392993ad76b1377887dc5a
4ceaf4daed74fc86a8984a23b278d5a4
parse an individual 72 byte entry from swap.state
assert!(buf.len() > 7); let data = [ buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7], ]; u64::from_be_bytes(data) }
0
29471c2497757ab825027e84cb3c0960
d81039eee63a3e5f66081c6b33321f30
this subprogram disables the purchase, sell, and end turn buttons
for row in self.tilelist: for tile in row: if self.trading == True: tile.config(state="disabled") else: tile.config(state="normal")
0
0bc3267e04d157b27d6d94f800124fbf
4f9bd50d8db42e056f70c0b6a0b7bfe0
r""" Set parameter name of layers which would not be pruned as sparse weights.
def fetch_layers(model): loc = locals() params = [name for name, _ in model.named_parameters()] params = [re.sub(r"(\.)([0-9]+)", r"[\2]", name.split("_")[0]) for name in params] params = [ (eval("model." + attr, loc), param_type) for (attr, _, param_type, _) in [ re.split(r"...
0
9cd365632c8bde8801c14c4873d8b571
26b7ea21c87f54fc7d41c644b732c51e
根据酒店id和类型查找促销策略
public List<HtlSalesPromo> findHtlSalesPromo(Long hotelId,String priceTypeId);
1
21942a5860409c784be6970acd347de7
e4ec706968a14464620d8445012c825c
Method to save excluded attributes on a csw policy
class PolicySecurityServiceInsertionSettingsExclusionListApi def patch_si_exclude_list(policy_si_exclude_list, opts = {}) patch_si_exclude_list_with_http_info(policy_si_exclude_list, opts) nil end
1
adfa8adf6f74b72bab175cb984cbee00
b51f084d8726831e9b4b10b245486d15
set parser variable as dictionary items
class ExprParser: def set_var_dict(self, var_dict): self.var_dict = var_dict
1
da5c92402fcf9a9a01d3f2fc25e7fc25
d96faf0bc07b34c602522fec569c8e17
エキスパートのみ取り出す。ログインユーザーの排除
{ $exp = array( 'log_id' => 1, 'log_date_min' => 1, 'log_date_max' => 1, 'log_ip' => 1, 'log_sessionId' => 1, 'log_managerId' => 1, 'log_managerName' => 1, 'log_managerEmail' => 1, ); return array...
0
59505a55f250c465c7ff7fb98458f112
f6d13d013d5581106e6b2e7d7fce297b
Add handlers for Post previews
add_action( 'wp_trash_post', array( __CLASS__, 'pre_trash_delete_handler' ), 10, 1 ); add_action( 'before_delete_post', array( __CLASS__, 'pre_trash_delete_handler' ), 10, 1 ); }
0
ba38b8b0c488120d5ca59540835ac5d0
42841c5c18215591bc583e3a1e03d0fe
функция добавления еще одного поля контакта к списку
class Controller: def __add(self): new_number, new_fio, new_street, new_house = View.read_new_contact() self.phonebook.__add(new_number, new_fio, new_street, new_house) print("Successfull!") self.__press_any_key()
0
0f5abd4c18b152ddbd225cb21cf45c46
3f2518d4000c1ec9e4290f981be7c51b
Adds the child process event handlers
namespace Ortelius public class PluginMain : IPlugin public void AddEventHandlers() { EventManager.AddEventHandler(this, EventType.FileSwitch | EventType.Command); }
0
62dfd6ca98f7beb09d328cc6f247925f
b8ba4316400b0678d6b7a8ebf75e7fbf
GPRMC message store function
bool NMEA0183SetRMC(tNMEA0183Msg &NMEA0183Msg, double GPSTime, double Latitude, double Longitude, double TrueCOG, double SOG, unsigned long DaysSince1970, double Variation, const char *Src) { if ( SOG!=NMEA0183DoubleNA && SOG<0 ) { if ( TrueCOG!=NMEA0183DoubleNA ) TrueCOG+=pi; } if ( Tr...
1
6652fe704d2dd12fa17d057415dfa4f0
2f282ee62cdbaf0c1edc685e9a1c4625
Runs the linting program and returns the command output
return subprocess.run( [ sys.executable, "-m", "c8ylp", *args, ], stdout=subprocess.PIPE, stderr=subprocess.PIPE, )
1
1e29cfb1200d7751a7abb94bf4c24b4d
b5880918d914b70ea8c676f4e0cd6759
Return (x * y) mod 1000000007.
def sumUnderModulo(a,b): return (a+b)%(10**9+7)
0
bb3a548a5923cd5a26845825ec8be7e2
c2b566b6b5601b073536bfe6708ab847
Successively executed the specified number of tasks.
namespace BrowserApp.Tests internal static class Extensions public static async Task<List<T>> RunSuccessively<T>(int count, Func<Task<T>> func) { List<T> result = new List<T>(); for (int i = 0; i < count; i++) { result.Add(await func()); } ...
1
7c417efadfd9913e10d9930418d8e04b
8b78fdaa34ef148d9263658bd9166dc8
根据餐厅获取窗口列表的List
namespace TWNewEgg.StoreServices.Interface List<HomeShopWindow> GetHomeShopWindows(List<int> shopWindowIndexList);
0
8b5de65d2710d38053ca809f67f24652
b8ae5cdf70524ff26b5b4c369c8d8a81
Submit results from a battle to the population so fitness can be determined
@Component public class ParserColony public void submitResult(JsonObject resJsonObject){ this.colony.submitResult(new Result<JsonObject>().setData(resJsonObject)); }
1
8d8c4060027dafc27e8e9bbe4f222911
1cf32715de630cc7168e1317255dbc7a
创建Jest配置
function configureScripts() { return { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', } } }
0
d925c273252616beb6a1444fb7ca0db0
10b92b321b9ba9defdb170fc05bc2dec
Lists all CostName models.
class CostController extends Controller public function index() { $costs = Cost::orderBy('service_id', 'asc')->paginate(15); return view('manage.costs.index', compact('costs')); }
0
151747f937216ea4ceec36621905a780
900f8540170f35cdd72bd94eb45f21c3
NMFC Code for commodity.
class FreightShipmentLineItem extends AbstractComplexType public function setNmfcCode($nmfcCode) { $this->values['NmfcCode'] = $nmfcCode; return $this; }
1
ae91f43f9ec252285db28974a740113b
7baba55c8aa1a5d29b3fdae8b8101c29
Given any not null list of MenuItems, it returns its price. This is only used as a utility that avoids humanly asserting the sum of the prices of the items, since it isn't feasible and secure in the long run (different developers may add items to the list returned by getItemsOrdered(), thus forcing a manual check of th...
double result = 0; for (Item item : items) { result += item.getPrice(); } return result; }
1
d5ff0945d62d2293ed798b5c7c36b628
b4779287b702c4b2574e4803a4f9fd70
根据id审核题目
class BackQuestionController extends BackController public function actionAuditQuestion(){ $id = \Yii::$app->request->post('id',''); $status = \Yii::$app->request->post('status',''); if($id && $status){ $questionService = Helper::getService('Question'); if($questionServic...
1
19a7fdfad1227095ce8a7576d21938b3
0374dfcef56aa41879c2b5e633b32a2c
Executed once before all tests
class UsersTestCase(TestCase): def setUp(self): print("setUp: Run once for every test method to setup clean data.")
0
cdd34d11fd69d03c74d7d769f486c4cd
71ec334759576159699d4ef1848199f1
获取订单的加密信息
data = { "id": "", "s": "", "token": "", "t": "" } data_toekn = "fOrVlIb_B-mApOaaosbAj7KpCureFVsEjX3HileR2yPMQNisLPmi5cj3zYT4zmTA" salt = "33343637373230363936" data_t = str(int(time.time())) string = "id=" + order_id + "&t=" + data_t + "&token=" + data_toekn + "&...
1
0ff3cdc7e3cd5de74772e3a02f0bb3b6
55c680f0a67a1a7770be01de2bd23e99
Publishes message of type wheel_velocity_message to topic 'wheel_vel'
class ObjectFinding: def send_velocity(self, linear=0, angular=0): self.cmd_vel_pub.publish(Twist(Vector3(x=linear), Vector3(z=angular)))
0
69917846fd3fcc5de1fa798a813f5afb
72e3b6d7d475b7a994c947436e0423f2
перевод в обратную польскую запись
{ StringBuilder buffa = new StringBuilder(); var stack = new Stack<string>(); foreach (var i in Code) { if (primaly.Contains(i)) { if (i == '¬') { stack.Push("(" + i + "" + stack.Pop() + ")"); } ...
0