query_id
string
corpus_id
string
query
string
code
string
label
int64
2993020c6ca8f81485b08a7246abfb52
76e756c4b3f5c403b646862f78409440
采用错误的密码删除节点
{ USERNODE userNode; userNode.name = 20; userNode.size = 100; eefs_create(2, userNode); printf("%s", G_LIST); eefs_delete(2); printf("%s", G_LIST); }
0
0a4d32c92f39aae934e2c4bbe4350311
c7f61a4ba1a6195579b948926e19b2f1
Remove temporary files from HMM_OUT_DIR
def cleanUpTemporaryFiles(options): os.system("rm "+options.output_directory_per_run+"/*.abundance") os.system("rm "+options.output_directory_per_run+"/*.phasing_score") os.system("rm "+options.output_directory_per_run+"/*regionsOfInterest*") os.system("mv "+options.output_directory_per_run+"/* "+option...
1
8416d47dcf7cac5df9cb3b00a172a867
35941ca3c8366542b27405c49c6cedae
Instantiate character service.
public class HexGridManager : MonoBehaviour private void Start() { cSpawner.InstantiateCharacters(); gameStateContext = new GameStateContext(this); }
1
73edcd16be0f5025fd74f51825d7cfcd
1de987cbb605e97cf9fa8433cd177bb9
获得互斥锁,否则一直被阻塞
class RedisMQ protected static function getLock($key, $wait_second=0) { $ret = true; $redis = static::getRedis(); while( ($val=$redis->INCR($key))!=1) { $ret = false; if($wait_second-->0) { sleep(1); } else { break; ...
1
d87ee5ab6f3cb098b4ffd4acaee648fe
203e363a1f94fcbb50b1ba3ae6e15d82
根据版本号取得单个告警信息的长度 add by qhb in 201208011 for 旧协议的1.1版本做区分
if($version <= 9) $len = [self::MODE_NUM => 10,self::MODE_ALPHA => 9,self::MODE_DATA => 8]; elseif($version <= 26) $len = [self::MODE_NUM => 12,self::MODE_ALPHA => 11,self::MODE_DATA => 16]; else $len = [self::MODE_NUM => 14,self::MODE_ALPHA => 13,self::MODE_DATA => 16]; return $len[$mode]; }
1
31c6d0c08354a205b595767cb6f02098
a767e030816918d653f71b5cca38b973
GET: RepertorioLists
namespace Diamond.Controllers public class RepartiController : Controller public async Task<IActionResult> Index() { return View(await _context.Reparto.ToListAsync()); }
0
84abb6d8a72d078504b5205bef4c1a15
e0670f433aa11f4b73f1fe88af29ef56
获取最底层的分类
function getTopestParent($cats) { if(sizeof($cats) == 1 && $cats[0]['cid'] == 0) { return null; } for($i = 0;$i < sizeof($cats);$i++) { if($cats[$i]['parent_cid'] == '0') { return $cats[$i]; } } return null; }
0
929fbc2a0a2611556c8a0392e3a7662d
94739b715b2e5bf370f94e0e1bf04a13
根据地址信息解析经纬度(By google API)
LngAndLat latAndLng = new LngAndLat(); String url = "https://api.map.baidu.com/geocoder/v2/?address=" + address + "&output=json&ak=2i6NaIyF6fP4NOFdLs4I9Fk9"; String json = loadJSON(url); if (StringUtils.isEmpty(json)) { return latAndLng; } int len = json.length(); if (json.indexOf("{") != 0 || json.las...
0
5efad40566c12a1935a5a3c9ca93c56d
2079edaa8f583f504fe998e2e30c6915
Returns whether or not the current user is logged out.
def signed_out? current_user.nil? end
1
874948c39c712e713e06e0af72b0ae87
4df41c38d1be9dff686d897c18159f41
CUBE 앞면 회전
namespace ProjectFinal_JDoctor public partial class MainForm : Form private void btnFront_Click(object sender, EventArgs e) { myCube.FrontTurn(); UpdateStickers(); }
1
fcdd045b70329bbd2a7b141c8896f1c0
9c35a64478284027e18a08d984ea16d0
Spawns a toy in the given lane
spawn_point1=random.choice(self.map.get_spawn_points()) spawn_point1.location.x=self.ref_traj[0,0] spawn_point1.location.y=self.ref_traj[0,1] spawn_point1.location.z=2 spawn_point1.rotation.pitch=0.00193294 spawn_point1.rotation.yaw=self.ref_traj[0,2] spawn_poin...
0
935a8d535abff16a3db29654fce1e538
26a458bcf7b2682292f8c377958f270a
This will stop reconnection task.
public class Checker extends Thread public void stopReceivingTasks() { receivingTasks = false; }
0
2a8bedfdc176672bcc83278f32439a65
6dd63ae344096bc6d8e51f3b328638bc
Store the Api description of the given service
namespace ServiceGovernance.Repository.Stores Task<ServiceApiDescription> FindByServiceIdAsync(string serviceId);
0
a60f0de60a5a051fc5d7cde855bea340
4d5790debdf7f0cacafcfb8a56ca648e
处理剪切成功的返回值
protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); CropHelper.handleResult(handler, requestCode, resultCode, data); activityUtils.showToast("裁剪成功,准备更新"); }
1
8a869d46f4ddb28a86a0ee27e41b4338
00535d9b0bf09489c78e2b2575255526
Return filtered journal records count.
{ if ($status) { $this->db->where('status', $status); } if ($search) { $this->db->like('title_search', remove_accents($search)); } $this->db->group_by('title_search'); return $this->db->count_all_results($this->journals_table); }
1
71c009afb6aed4333d54822dc1ff90a9
9ebdf0de8faae75e6016138f931d9d4b
Specify what is done when a file is changed, created, or deleted.
function reportChange(event) { console.log('File ' + event.path + ' was ' + event.type + ', running tasks...'); }
1
86aeec798e26ba896d9091b4b02721ff
3d17192b6d936581842fa64f0dfa907a
根据用户ID和密码查找用户安全信息
@Repository @SuppressWarnings("unchecked") public class AccountInfoDaoImpl extends DaoImpl implements AccountInfoDao public Map<String, String> queryUserSecurityInfo(Long loginId) throws SQLException { return (Map<String, String>) sqlMapClient.queryForObject( "AccountInfo.SQL_QUERY_USER_SECURITY_INFO", lo...
0
a0d0746229e93027714eb375a78b4aed
00ee0c5d3e2fe57bbf05210832e829b1
System.Collections.Generic.IEnumerable`1<!!1> System.Linq.Enumerable::Select<UnityEngine.Purchasing.ProductDefinition,UnityEngine.Purchasing.Product>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,!!1>)
{ { List_1_tA5271CFF4C2EEEDEC0AE06FC0EBAB9579053A0E1 * L_0 = (List_1_tA5271CFF4C2EEEDEC0AE06FC0EBAB9579053A0E1 *)__this->get_source_3(); Func_2_tD2515F28EE745986F03A2C6B2A6D17216778F19C * L_1 = (Func_2_tD2515F28EE745986F03A2C6B2A6D17216778F19C *)__this->get_predicate_4(); Func_2_t442911A57D4C940F37F7ABC39B6FE29A...
0
73a8cdcff953ea17b6afb570d2c1f31f
7f61448ad6da3ef0f9cb03f40c5be655
Get <proper> value
cases like (1)
0
72ce961e8e48de765eabaac607b90a64
3cd0ce662ad219a2a464313867409bec
Loads an individual component object from local disk.
public class Load: MonoBehaviour private T LoadFromDisk<T>(string path) where T: class { #if LOG Debug.Log("Load from disk: " + path); #endif if (File.Exists(path)) { using (FileStream file = new FileStream(path, FileMode.Open)) { T content = (T)bf.Deserialize(file); file.Close(); return conten...
1
8d46ec253f83be6a7d35c4dcbafa3d59
192bc27b07b9dd0acd44b156f06e4a60
Remove newline and space characters from a string.
def remove_char(value): return value.replace('\n', "").replace('\r', "").replace('\t', "").replace(" ", "")
1
0605834c69b326fa008a060c00aa3be5
6cf488fbb6cabca9465b4f9164c84517
Remove an item from the inventory. Returns true if successful, false if not.
public class Inventory public boolean getItem(String gadget){ return gadgets.remove(gadget); }
1
ea918cef2788d3c632932146cb695c62
a891105287fa9c3d6117e37c92ad704a
fetchajo kategorije, za katere se je prijavil in vpisal skille
cur.execute(""" SELECT aktivnost.ime, tip_aktivnosti.tip FROM se_ukvarja LEFT JOIN aktivnost ON aktivnost.id = se_ukvarja.id_aktivnost LEFT JOIN tip_aktivnosti ON aktivnost.tip = tip_aktivnosti.id WHERE se_ukvarja.uporabnisko_ime=%s """,[uporabnik]) k = {} for akt, tip in cur.fetchall():...
1
1082c98ae2c5b40508c847e669c5eaa0
daceca44e1e8990edb5749394ef6c7e3
NXP specific port speed
static usb_speed_t uhci_device_speed(device_t *dev, uint8_t port) { uhci_state_t *uhci = dev->state; if (chk16(UHCI_PORTSC(port), UHCI_PORTSC_LSDA)) return USB_SPD_LOW; return USB_SPD_FULL; }
0
8801fba7c5998c2add4a484d51dc428f
1f5aca726fa593ea247c846b75d6f7e8
this function control if it is checkMate. Three different situation is checked! If one of those piece can kill checkMatePiece and if the move does not trigger check for enemy then return 0 (not checkmate!). If one of those above does not return 0, then return 1(which is checkmate.)
int Board::checkCastlingForfeit() { int forfeit[4]; for (int i = 0; i < 4; ++i) { forfeit[i] = abs(castling[i]); } for (int i = 0; i < moveVec.size(); ++i) { int from = moveVec[i].from; if (from == 95) { forfeit[0] = 1; forfeit[1] = 1;; } if (from == 25) { forfeit[2] = 1; forfeit[3] = 1;; } ...
0
a3078a86b2f16c762a04af85793810b4
5c5637eeffb8bb949600b46bfa0367f2
converts form incorrect capitalization to correct capitalization
function getProperCapitalization(name) { return name.charAt(0).toUpperCase() + name.substring(1).toLowerCase(); }
1
7f1ca744c4bf82c72770b4c112d973b3
038d4cffa13fd111aa51d2e4b8030c81
Get the code ducs.
class LignesDucsAnnuelle public function getCodeDucs() { return $this->codeDucs; }
1
492588deecdb7d4600656d31c19c29fd
16198bd34b28c8d68e6ff29e2818102f
保存关注的用户
@Controller @RequestMapping(value = "/loanOverdue") public class LoanOverdueController @RequestMapping(value = "saveFollow.do", method = {RequestMethod.POST}) @ResponseBody public String saveFollow(HttpServletRequest request) { LoginVo loginVo = (LoginVo) request.getSession().getAttribute("login"); ...
0
19dd5ae57b53304e7588d419176436a5
0fa643cca14297c5b825ad4899e30b0f
Calculate wrongly asserted matches
zip_all(actual.lines(), expected.lines()) .enumerate() .filter_map(|(i, (a, e))| match (a, e) { (Some(a), Some(e)) => { if lines_match(e, a) { None } else { Some(format!("{:3} - |{}|\n + |{}|\n", i, e, a)) ...
1
8d594bcb4221cd84882294a7108492c3
721b2b6ed23a0f477feb1d6d01992f94
Create "Other Skills" list and place into the stats menu Populate it with the current list of other skills
itemView.getCh_itemType().add("Helmet"); itemView.getCh_itemType().add("Armor"); itemView.getCh_itemType().add("Shield"); itemView.getCh_itemType().add("Ring"); itemView.getCh_itemType().add("Belt"); itemView.getCh_itemType().add("Boots"); itemView.getCh_itemType().add("Weapon"); itemView.getCh_bonus()....
0
699601e579c0209abe3aef2f78d76492
e075a37a2739b98759e21212df6c1243
Введём функцию для вычисления факториала:
class Solution: def fct(self, i): n = 1 for k in range(1, i + 1): n *= k return n
1
b4a9344f33e8bd969361a2f734fb9ded
3fbdbf7c6322ab2281b4951f3d7cacfd
@brief This functions initializes SPI master and slave modules.
static void MIBSPI_initMaster(MibSpi_HwCfg* ptrHwCfg, const SPI_Params *params) { MIBSPIRam *ptrMibSpiRam; MIBSPIRegs *ptrMibSpiReg; uint32_t flag; uint32_t index; uint8_t csnr = 0; uint8_t chipSelectMask; uint8_t r...
1
1e6d4c28b6dadfbb95104a075664c27f
e17e5cd0b05dace0b96cd6872126f420
Converts longitude/latitude in semicircles to units of degrees.
lat, lon = lat/100, lon/100 lat_hour, lon_hour = int(lat), int(lon) lat_min, lon_min = 100*(lat-lat_hour), 100*(lon-lon_hour) lat = lat_hour + lat_min / 60 lon = lon_hour + lon_min / 60 if lat_dir == 'S': lat = -lat if lon_dir == 'W': lon = -lon return lat, lon
0
42b3d4b8ba915d81ba411bbdf7712100
25532b3334385d0b500929aa7d01a9fb
Get the biggest camera depth used by the screens registered.
{ float biggestCameraDepth = -100; if(_cachedInstance != null) { for(int i = 0; i < _cachedInstance._allScreenControllers.Count; i++) { float tempDepth = _cachedInstance._allScreenControllers[i].GetCameraDepth(); if(tempDepth > biggestCameraDepth) { tempDepth = biggestCameraDepth; } ...
1
2bcd68c1a81b9bc8583a7ad1c1f55bb6
8a91705d3ff2cb20ef1784ce1e941aab
@brief Gather statistics on population belonging to species with ID <sid> from homo_sapiens list 0 on failure
log.debug("entering get_synth_county_by_id_stats() IP=%s" % get_ip()) con = get_db_con() sql = "SELECT s.ct_fips, s.ct_name, s.sq_mi, s.pop, CASE WHEN s.pop > 0 THEN s.pop_male / s.pop ELSE 0 END AS pct_male, CASE WHEN s.pop > 0 THEN s.pop_female / s.pop ELSE 0 END AS pct_female, s.pop_sm, " \ "dd.r...
0
4c9dc0a6c19db6d64e9f9823a3f76658
d5533c001dc2ab4831510144230929e1
查询该订单内所有商品的id集合
List<String> findGoodsidByOrderid(String goodsOrderid);
1
9ea12f7a396810b038e69c0a60466fd6
8943538eb01c27b899390f5530c1bd63
Destructora de GameState
GameState::~GameState() { delete currentPlayer; }
1
cca4a7d67d764fb2326335533bf2dc46
b98b0c5c6af7325894c995ff8dc1fdc0
credit Martijn Pieters StackOverflow
turn_list = (0...turns).to_a red_prob = turns.times.reduce([]) do |p,turn| p << Rational(turn+1,turn+1+1) end blue_prob = red_prob.map {|p| Rational(1) - p } total = Rational(0) (turns/2+1).upto(turns) do |num_blue| turn_list.combination(num_blue) do |blues| reds = turn_list - blues rp =...
0
9cec4b891e849df16404dd11c565185e
224a68b2e69ea3caaaf17b16cb53571d
Spits out a unit vector in the X/Z plane in the direction of the given y angle (in degrees.)
{ Vector3 direction(0,0,0); direction.x = sin(DEGREES_TO_RADIANS(theta_aroundYaxis-180)); direction.z = cos(DEGREES_TO_RADIANS(theta_aroundYaxis-180)); direction.ScalarMultiply((float)power); return direction; }
1
ea1efe810a20c2398d4d3920045d189f
972642e44264eb0662bb5a4e8c62acab
입력된 음성 메세지 확인 후 동작 처리
public void onReadyForSpeech(Bundle params) { Toast.makeText(getApplicationContext(), "음성 입력", Toast.LENGTH_LONG).show(); }
0
c29a6c344b0fa60c3e2637e8a0846344
8f092f66faae31cb96f2a1766a95dac4
The method <code>getCryptoCustomerIdentity</code> is used to get an specific customer Identity
public R getIdentity();
0
6c12e36d70a681e65ce7ce0ffd91ab51
afa359c23ac420871fe1a5b9c08260ee
Updates the product category mapping
{ $engine = Mage::helper('catalogsearch')->getEngine(); $mapping = $engine->getCurrentIndex()->getMapping('product'); $dataprovider = $mapping->getDataProvider('virtual_categories_products_position'); $dataprovider->updateAllData(); }
1
e17101c3f7e3044907c0c6ff63be1480
3f00a6dfedbd9fac6a8cd2f0b7a5be01
Invites specified users to the current destination.
{ try { this.XboxXdk.InviteToParty(systemIpAddress, titleId, actingUserXuid, remoteUserXuidsToInvite); } catch (COMException e) { if (e.HResult == unchecked((int)0x80004003)) { throw n...
1
0ed285b02585152f91c359585b6ace76
f39972710766bf17a824d93ffe0e8e99
Determine how many cars are available to receive new jobs.
Lim = 80.0 res = 0.0 res = _carsTotal / Lim if res > round(res): return int(round(res) + 1) elif res <= round(res): return int(round(res))
0
073634ce1ad365b3aa663883abe9aeb9
db7c83366663c4bf447d77ea61ab8dd8
DES解密,返回byte[]
public class CryptoService public static byte[] CreateDescryptByte(byte[] values) { byte[] fromEncrypt = new byte[values.Length - cryptoEnd.Length]; using (AesCryptoServiceProvider aesAlg = new AesCryptoServiceProvider()) { aesAlg.Key = Key; aesAlg.IV = IV; ...
0
1ee64f7aa23f6a064b509705220d1acc
fb886d2363109494751d9462a51c43f3
Takes an address as the argument and erases the block containing the address.
SSIFlashBlockErase(unsigned long ulAddress, tBoolean bSync) { tBoolean bRetcode; unsigned char pucBuffer[3]; if(ulAddress & (W25X80A_BLOCK_SIZE - 1)) { return(false); } bRetcode = SSIFlashIdleWait(0); if(!bRetcode) { return(bRetcode); } bRetcode = SSIFlashWriteEna...
1
adcfc6f611c2e6d2aaa13acaf17de04a
92c7d883bbfa5b809652b3954de19839
Cancel any selection when focus is lost.
namespace UnrealControls public partial class OutputWindowView : UserControl protected override void OnLostFocus(EventArgs e) { base.OnLostFocus(e); InternalDestroyCaret(); mIsSelecting = false; mScrollSelectedTextTimer.Enabled = false; }
1
3d0c54b0746371958c2a2e4ad4a862f1
9fec9aa300df5b9c52d16cc63008e40d
获取报价猪信息
class jc_khtjController extends jc_controllers_baseController public function getshangpininfoAction() { $filter ['shpbh'] = $this->_getParam('shpbh'); $model = new jc_models_khtj ( ); echo json_encode($model->getShangpinInfo($filter)); }
0
76a23cc3633bc9282b683ef6f13645ab
d2a04dba093529c7344cf76ff46ef41d
Get the value of nummatricula
public class EstudianteVO public String getMatricula() { return matricula; }
0
f0b08ee1e00b68191e11c055b6f4a980
7f04cda3a342e86fa72eacc6dbc7d894
set 复制的对象,格式为&quot;库名.表名”,支持?* 通配符,例如 db1.* 、 db2.tab? ,*.* 表示复制整个实例
public class MigrateOption extends AbstractModel{ public void setDatabaseTable(DatabaseTableObject DatabaseTable) { this.DatabaseTable = DatabaseTable; }
0
e62cbf54fd0e37062f5529e71f93bd0e
c32758bd7e725ca136266f27d3e40a5c
log the message if err != nil
func logError(err error) { if err == nil { return } if envSentryDSN != "" { raven.CaptureError(err, nil) } log.Println(err) }
1
2a5b9515096b9255175a779cd0471b36
7e73b4b87046d3ec4e6ff68769fc643c
ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead.
class SelfIp(pulumi.CustomResource): def traffic_group(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "traffic_group")
0
13d995d328d792b5e9c4e39cd60f9b6e
2364dc9a64a7bd78ef5cc303dd4d4b73
任意位置插入,插入成功就返回true,不成功就返回false
abstract class BaseAdapterEnhanced<T:IListItemBase>(private var dataList: ArrayList<T>, private var activityContext: Context, private var layoutItemResId: Int) : BaseAdapter() fun insertData(data: T,position: Int):Boolean{ if(position>=0 && position<=dataList.size){ dataList.add(position,data) ...
1
4078dabbd8eadf202c770428453cec86
2cbd1781bc9e8272e3800ec2de999140
Checks if the the word being placed connects with previously placed words
void BogglePlayer::diceCheck(int rowIndex, int colIndex, string wordRemaining, vector<int>& pathSoFar) { if ((boggleBoard[rowIndex][colIndex] == wordRemaining.substr(0, boggleBoard[rowIndex][colIndex].length())) && !(isOnPath(rowIndex * COLS + colIndex, pathSoFar))) { isOnBoard(wordRemaining.substr(boggleBoa...
0
4adca83aee660df4b4d4e115b4afb48b
d177f023cdb85e009e7e5904075659c8
The name of the request attribute under with the authenticated JAAS Subject is stored on successful authentication. If null or empty then the Subject will not be stored.
public class NiFiProperties extends ApplicationProperties public String getSamlIdentityAttributeName() { return getProperty(SECURITY_USER_SAML_IDENTITY_ATTRIBUTE_NAME); }
0
820937edf79575ae06c9bb67e0106812
90f39c6cc7d7e32ec60d11da02e37909
Takes a weight vector and row data and computes the dot product of the two
class LogisticRegressionModel(object): def DotProduct(self, w, x): if(len(w) != len(x)): return 0 return sum(j[0]*j[1] for j in zip(w,x))
1
b746a092baa6f37078b7f8d0aa36a5ca
9cf1b973aee5ff02e298dee627ae1745
end sensor calibration (true:calibration was successful)
class ZMQsocket: # the ip address of the eyetracker is always 127.0.0.1. def start_calibration(self): self.socket.send_string('C') return self.socket.recv_string()
0
2166f377a5ebf23579ee7e3c6dca2699
b74f03167aa5e1883e570281e1854774
@brief IEL26 IRQ Handler.
void IEL15_IRQHandler(void) { R_SYS_IrqStatusClear(IEL15_IRQn); system_irq_handler_call(IEL15_IRQn); }
0
f3db09a7e676d1fd33c38fcd99d2740c
1063fbe3ba57f551515124fdf07f870c
Enumeration callback - check for unresolved external references. For each object or function still marked "external," we'll log an error.
{ if(errorsum != 0) return; if(root == NULL) return; initsymboltable(); anonymous = 1; extdeflist(root->children[0]); }
0
d4d230e4ae17a508ba89f76eace60f4f
b94fb33e05deda5b48c3d00e129c4bd7
This method is used to enable a credential.
public function enableCredential($id): void { $this->webAuthnCredentials()->whereKey($id)->restore(); }
1
a98545b157398bd8ed16d0d5b529c72d
b7f6856042b9c5b80a80f7e7a06771e9
Convert this time to the same instant in the UTC time zone.
public ZonedDateTime fromInstant(ZonedDateTime utc) { return ZonedDateTime.ofInstant(utc.toInstant(), getZoneId()); }
0
d3feefa042c4ad429cbae9023d4439f9
06a7e61eeb2e3740ef0d11fe0fdb3212
Returns list of trainable model variables.
class _CompareGANLayer(tf.keras.layers.Layer): def trainable_variables(self): return tf.get_collection( tf.GraphKeys.TRAINABLE_VARIABLES, scope=self._model.name)
1
3d87846659bccf796227b5bb11e8ed12
cb46b0489d510813dc2e8278bab3c318
Deletes a toot. The authenticated user must have authored it.
class TS3Commands(object): def tokendelete(self, *, token): cparams = OrderedDict() uparams = list() options = list() cparams["token"] = token return self._return_proxy("tokendelete", cparams, uparams, options)
0
6268d9c4d327a9b46cb3ab389363b011
48e255ca1184eadf55af283e00f77200
Whether the handler is configured to parse the path into path segments.
public class MethodPerfLogParser implements LogHandler public boolean isAggByPath() { return aggByPath; }
1
0d655643fad9157e59eafd497a73b0f2
e6e66ba85f0704349b2dd0027ae3a484
The duration between touchup of any key and touch down on a plane change key
class PaperWave get touchUpElapsed() { return this.touchUpStarted ? _now() - this.touchUpStarted : 0; }
0
53235db3f0334b7a8fdad790b2583028
3459759bf13c1b776f913e0cf7a958f0
根据商品id查询评论的最新五条记录
public List<Comment> findByGoodsId(int goodsid);
0
e067c287ba75a1ab65643795c3966922
edd710448493397f54ef31b857b43116
Get user avatar image from Firebase Storage.
public class Tab_User extends Fragment private void loadImage() { refAvatar.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() { @Override public void onSuccess(Uri uri) { pathFromFirebase = uri; Picasso.get().load(pathFromFirebase.toString...
1
aec48b10769b2d0c2bf4636babf7ce80
ceeed0848c4d76e36d2190ccd1ee5d24
数据排序并拼接key=value
function sortASCIISign(params, key) { let dataArray = Object.keys(params); let dataArraySort = dataArray.sort(); let length = dataArraySort.length; let msg = ""; for (var i = 0; i < length; i++) { if (!isNull(params[dataArraySort[i]])) { msg = msg + dataArraySort[i] + "=" + para...
1
35785868e3ccdf55e38ee18a0434d5b8
095e2f41a033912f1dbdc12e1f2228e3
Goto previous day
public final class GanttComposite extends Canvas implements MouseListener, MouseMoveListener, MouseTrackListener, KeyListener, IGanttFlags private void prevDay() { checkWidget(); mCalendar.add(Calendar.DATE, -1); mCalendar.set(Calendar.HOUR_OF_DAY, 0); moveXBounds(true); setNoRecalc(); redraw(); }
1
c45f3cafd11d46386e986cb90be0f810
bea92f366569e7a0f7d3e277ea52de4e
calculate a foreground color which suitably contrasts with the given background color
abstract class AbstractColor public static function calculateContrast(AbstractColor $background, AbstractColor $foreground) { if ($background->alpha < 1) { throw new \InvalidArgumentException('Background can not be translucent'); } if ($foreground->alpha < 1) { $foreg...
0
4dc109b610914e09e4e208246bb4d369
9a41e14419c9909d79d5d6b36db27271
New returns a new clock with the specified hours and minutes normalized to a 24-hr clock.
time := (hour*60 + minute) % 1440 if time < 0 { time += 1440 } return Clock(time) }
1
1264f3bf024e13b29667d0d9e49bd469
e8d89e4217e2e75e124d4049e42982e5
Method to find the highest current ID assigned to a Residential Property.
int getHighestId();
1
acb44848986d7da0357d74741b4f4a5b
ba8c5827d1c0db31c301710fd89ce3f8
Sends text directly to the topmost window, as if it was entered by the user. This method automatically escapes all characters with special meaning, then calls SendKeys.Send().
namespace ManagedWinapi public class LockKeyResetter :IDisposable public static void Send(String keys) { using (new LockKeyResetter()) { SendKeys.Send(keys); } }
1
d6f8d2e81650413fbb7555bb190954b1
0497779f732d58ea25eb3fc33f4ec265
Sanitize the DB to make it safe for client access. Only required if IM crashed during an interface add/remove operation.
def sanitizeInput(): pass
0
89b722fe335c1fb2911ca44b60756e52
2c9dbb5200ef2478c1ef5ba2ed07dd95
<p>Getter for csvWri.</p>
CSV getC();
0
7ffe9cc422a68e10f15dc18ba1e83e98
98c333cf54fb581e11c2c6993ff909dd
找医网客户端 去登录页面
function WelcomeScene:EnterClient() AppFacade:getInstance():sendNotification(GAME_COMMAMD.PUSH_VIEW, {transition = "FADE", time = 1}, VIEW_LIST.LOGON_SCENE) end
1
ab30bd9aa8d8ba074e538df218304611
2016459ac86cb28ff2063a19a7a70e42
Populates the screen using the Students database
namespace Teacher public partial class TeacherInterface : Form private void PopulateStudentPanel() { System.Diagnostics.Debug.WriteLine("PopulateStudentPanel"); PopulateStudentClassDropDown(); PopulateStudentList(); }
1
03d19e36733d9c9d6acee3f1fb329e79
dd36e3c3cb103818bba22c852d84404d
Выложить конкретные 3 карты на флоп
drawFlop(context) { fetch('http://localhost:8080/api/cards/drawflop') .then(response=>response.json()) .then(result =>{ context.commit('setFlopOnTable', result) }) }
1
1bc3864324c1ecd0ee14c2484c01526f
d9566bd74e06c8cbb6af75ba4c5b2ccc
Return just the filename of a dataset.
def getDatasetFileName(datasetName): return str(kaggle.api.dataset_list_files(datasetName).files[0])
1
c26d6d1c23d5bcdfec0a138dc4fbc83d
9b7c7c43d8ff5fd633ce4bc5a1adfd3f
<para>Selects all preambles for measurements that analyze preambles.</para> <para></para> <para>Note(s):</para> <para></para> <para>(1) The attribute is available in PRACH analysis mode.</para> <para>Remote-control command(s):</para> <para>[SENSe][:LTE]:PREamble:SELect ALL</para>
namespace EstCommunication.Profinet.AllenBradley public class AllenBradleyHelper public static byte[] PackCommandGetAttributesAll(byte[] portSlot, uint sessionHandle) { byte[] commandSpecificData = AllenBradleyHelper.PackCommandSpecificData(new byte[4], AllenBradleyHelper.PackCommandService(portSlot, new by...
0
78f7a6f684b8192b6bf25550bb359e47
a6be05d4356729450f78b36dac78d196
remove all StudentRecords before being destroyed
Roster::~Roster() { if (students != NULL) { for (int i = 0; i < size; i++) delete students[i]; } delete [] students; students = NULL; }
1
f1d12a54ca2e93856039fbd83ecbe130
6596b6a4acf4188188fac83b7d1aa1eb
如果传了deptId,则只查询deptId的内容 如果没传deptId,则按法制办/委办局查询
if(departId == null || departId.equals("") || "null".equalsIgnoreCase(departId)) { return null; } EbDepart dept = dao.findById(departId); if(dept == null) { dept = GovNetUtil.getDeptInfo(departId); } return dept; }
0
64d5654de09ce119952ce5f2ba6d3968
dd8818042d4e7c590677aab2796cc72a
创建玩家对手的信息
{ playerControl player = new playerControl(1, dto); if(dto.playerId==globalBattleControl.mainPlayerId) { mainPlayerTeamId = dto.playerTeamId; GameObject[] skillPanels = GameObject.FindGameObjectsWithTag("Skill"); foreach (var item in skillPanels) ...
1
38c1166c9312b8c04fa1cbc2e01d1826
81804c18d9e11e33ff9d6574e1969c68
Set a vector of bitsets to ones.
public final class BitVector extends AbstractBVector implements Iterable<Long> public void setAll() { setAll0(getInternal()); }
0
c16c38e0ecea0e8796f468bc6e30e77d
7d17f734923b96c064179812607b98ff
将aes key序列化保存到outfile文件中
public class SymmetricCrypto extends Crypter{ public void saveKey(SecretKey key) throws IOException{ byte[] ba = key.getEncoded(); BufferedWriter bw = new BufferedWriter(new FileWriter("output.txt")); bw.write(toHexString(ba)); bw.close(); }
1
70c0da8bdd6fa144b380e11dc1589bc7
763c62a1fde9b369087daeee371cfee9
Built-in type names (same as the ones used in script code):
std::string gp::Node::name() const { static bool init = false; if (!init) { names[kRoot] = "root"; names[kInclude] = "include"; names[kIdentifier] = "identifier"; names[kProperty] = "property"; names[kOperation] = "operation"; names[kValue] = "value"; ...
1
ca4e3c89e8530151de8fee6813bf6499
1af9248c5903d4340bba8c26314ba0fb
The default test suite. Does unit testing.
def test_suite(level=1): pass
0
e1f20b3e4e05b6d53a1761b5f968c8ae
41e8cca0edd4678ede46ec999c2633c6
打印辅存内容
void do_print_auxMem() { unsigned int i,j; aux = fopen(AUXILIARY_MEMORY, "r"); fscanf(aux, "%s", s); close(aux); printf("辅存:\n"); for (i = 0; i < 4; i++) printf("地址:\t内容:\t"); printf("\n"); for (i = 0; i<512; i++) { for (j = 0; j<4; j++) { printf("%d\t%c\t",j*64+i,s[j*64+i]); } printf("\n"); } }
1
f378bf8dc4ea9983570f19c7387e6a18
c0d848b4b8c2801907d5a746116ada53
r""" Returns `True` if the condition set as `stop_token_condition` was met while processing tokens.
def is_ci_token_stopword_set_match(tokenset_a, tokenset_b, threshold=0.95): ratio = len(set(tokenset_a).intersection(tokenset_b)) / (float(len(set(tokenset_a).union(tokenset_b)))+0.00000000000000001) return (ratio >= threshold)
0
6a2ddf45402a1ff37399997cfd52967f
55d24faa58f633351b7ddd28aeab37e2
Método al cual se le delega la responsabilidad de manejar los eventos de quitar el cursor sobre uno de los botones ("BORRAR UN CARACTÉR" Y "BORRAR TODO EL ID").
function evtEliminarIdiomas() { $(document).on("click", ".eliminar-idioma-btn", function() { var boton_id = $(this).attr("id"); $("#row" + boton_id + "").remove(); }); }
0
11e718e9765be2b1917788ba8b8fc748
b7e8d88058fa42756f34d630f84a6926
取节点值,若不存在节点,返回null
Node node = getNode(root, key); if (node == null) { return null; } return node.value; }
1
fc6b527e30af8b7e3ab3757772d94d01
b1c854a9c99703f9dc5364e38b561e90
Description: Get the list of grouped atom indices. This grouping adds another layer in the standard list of lists format. Ideally, the core indices for a single compound in the reaction should all be connected, but sometimes this is not the case. This function can be called to check for such multi-part cores, and to ha...
{ int i, j, k, jend, jatom, grp_num, new_grp, redo, assgnd; char curr[6]; cgnr_grp = (int *)allocator(num_atoms, sizeof(int), FARGS); for(i = 0; i < num_atoms; i++) cgnr_grp[i] = -1; curr[0] = NULLCHAR; grp_num = 0; new_grp = 0; redo = 1; if(residue[0] != NULLCHAR)...
1
494030af7f026869936a7b7bdb0b52cb
b560bdab86fdf93cc89c0a6be99064d9
投稿モデルの取得(一覧)・投稿APIへのPOSTリクエスト(正常系)
resp = self.client.get(self.get_request_url('matrix.api.get-post')) data = resp.json() self.assertEqual(resp.status_code, 200) self.assertEqual(data['meta']['code'], 1000) resp = self.client.post(self.get_request_url('matrix.api.get-post'), content_type=CONTENT_TYPE) data...
1
ae9ca368b37d797b22d6357234cf57ce
1be304d9cb3a0d9a27ecced8877eabaa
查询卖家产品信息
public List<KvStc> agencySellProQuery(SQLiteOpenHelper helper);
1
c2b55fc27858fef08baceeb8ae772c13
4440a77d153d833859cee47a5c08ead7
Handle a response for a list of models
public class NetworkManager : NetworkBehaviour void ListModelsHandler(AmazonServiceResult<ListObjectsRequest, ListObjectsResponse> cb) { if (cb.Exception != null) { Debug.Log(cb.Exception); } string latestKey = ""; ListObjectsResponse resp = cb.Response; foreach (S3Object obj in resp.S3Objects) { latest...
1
2fe193ec5c919e563f537bdffa6a8a32
a08c8127fa0c939ed4fa43ea92ad458e
In-place translations of a set of vectors
class Translate(Transform3d): def __init__(self, x, y=None, z=None, dtype=torch.float32, device="cpu"): super().__init__(device=device) xyz = _handle_input(x, y, z, dtype, device, "Translate") N = xyz.shape[0] mat = torch.eye(4, dtype=dtype, device=device) mat = mat.view(1, 4, 4)...
0
2748309415db55fef8da96319684aad2
613b1ef466d6579c5ae3d8a7b7cafa1b
Elastic-net regularization penalty
def primal_enet(R, w, alpha, rho=0): p_obj = 0.5 * norm(R) ** 2 + alpha * norm(w, ord=1) if rho != 0.: p_obj += rho / 2. * w @ w return p_obj
1
277f9fd3ea0d79ef2c9c40b7c96d4e3b
4578ed51e9878a495aead342e0693616
キーワードに関連づけたアイテムを除く
const removeIndex: number = index; const remove = (element, eIndex) => eIndex != removeIndex; const keyWordListInCookie = this.getKeyWordListInCookie().filter(remove); this.saveSearchWordListCookie(keyWordListInCookie); }
1
5b91839f6e87dd628dafab73f174229a
31e666661a03cfd7ac2fd0a906f8fee5
should not be flagged
class UnusedParameterInspectionTest : RInspectionTest() fun testDontFlagNamedFunctionParameter() { assertAllUsed("myFun = function(arg) head(x=arg)") }
1
b2ff82c2089835a08e9b6211bfbcd423
8bca6e07f1e1c69c6e266a878fbba2ac
Gets if the q resolution option is being used
public class GitRmOptions public boolean isOptQ() { return optQ; }
1