query_id
string
corpus_id
string
query
string
code
string
label
int64
751faaccae8bf4b6e5d73d9dbc7ab450
dffb7abf2075e23507ab32d8b1278272
修改一个用户的邮件校验状态
namespace ShareYou.IDBAccess.User int UpdateEmailValidateStatus(int userid,int status);
1
81435446659ebab8a26639c04e3c2585
2dca0de01cd1f5d49d6b4a416b0a4ca9
Function to draw square obstacle.
def square(x, y): up() goto(x, y) down() color('black', 'white') begin_fill() for count in range(4): forward(50) left(90) end_fill()
1
d0f4ce6378446ae99480930fa765e1b1
76568f3fb24632f64cdadf1cc9172d80
添加自定义头部的http post请求
class HttpUtil public static function sendPostRequestWithHeader($url, $data) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHE...
1
cea153cf2190c390a51598bb9f60e859
5ed85573a4610b6c0ff48b22219dd7dd
Resta a los montos del pedido los montos de una línea de detalle.
namespace SMPGenNHibernate.CEN.SMP public partial class CarritoCEN public void Dellinea (int p_carrito_OID, System.Collections.Generic.IList<int> p_lineas_pedido_OIDs) { _ICarritoCAD.Dellinea (p_carrito_OID, p_lineas_pedido_OIDs); }
0
3057bce1fbc77d64f4994bdb017381fd
6e9e74abf7d938693b9614113a805dc7
Given an undirected tree, return its diameter: the number of edges in a longest path in that tree. The tree is given as an array of edges where edges[i] = [u, v] is a bidirectional edge between nodes u and v. Each node has labels in the set {0, 1, ..., edges.length}.
public class DiameterOfTree public int diameterOfBinaryTree(TreeNode root) { maxDepth(root); return maxPath; }
0
5d201b0c5dc6fdd44e584b141143770d
bd94581b80042ae5f8e247ff2a067849
Transform a Joi schema to a array type OpenAPI V3 Schema Object
const result: any = {}; schematicOptions.forEach(element => { const newOption: any = { type: element.type, description: element.description, }; if (element.default) { newOption.default = element.default; } if (paramAliases[element.name]) { newOption.alias = paramAliases[e...
0
f1a54a01dede00e6f172769cf4fc522b
d62ea1efd434b701ff1a02e5289224d1
Removes all conditions that will be used for ordering.
public function clearConditions();
1
32c9eeee7febb8a1e06962b24811116a
80a797aa2cdacfb7318dfcbe627f5bee
Configures the egress engine to use a parked frame when continuously sending frames
ethernet_mac.maccr.modify(|_, w| { w.te().set_bit(); w.re().set_bit(); w }); ethernet_dma.dmaomr.modify(|_, w| { w.ftf().set_bit(); w.st().set_bit(); w.sr().set_bit(); w }); }
0
1b6b6d02ab0bff94aeb1c693cb07f095
f9d18adbdf33696021e08a75ea8ed225
如果这个 {@code key} 在缓存中有对应的 {@code value} 并且不为 {@code null},则返回 true
public boolean containsKey(final Object key) { Validate.notNull(key, "Null key"); return this.get(key) != null; }
1
49e1e8d61f6e49ee0517ea84a565869c
3768cd6aade1c0533ed5699262ba0691
Formats the specified page node.
{ var pageUrl = node.IsLink ? DocumentURLProvider.GetUrl(node.NodeAliasPath) : DocumentURLProvider.GetUrl(node.NodeAliasPath, node.DocumentUrlPath); return URLHelper.ResolveUrl(pageUrl); }
0
8d521711975ff0a80da764ed7c5288ea
f9f039c722c0a0941a7b1a9b4950aa76
Adiciona um crime ao resumo
$sql = "INSERT INTO crime (nature_id_natureza,tempo_id_tempo,quantidade, regiao_administrativa_id_regiao_administrativa ) VALUES ( '{$crime->__getNatureId( )}','{$crime->__getTimeId( )}', '{$crime->__getAmount( )}','{$crime->__getRaId( )}' )"; $this->connection->base->Execute( $sql ...
1
1236971e45e37c18edafd60830d76a66
559950926e73e7beb3657d8d48180313
取得所有9png文件名,不包括路径
class NumOCR: def __eachFile(self,filepath): pngList = [] pathDir = os.listdir(filepath) for allDir in pathDir: child = os.path.join('%s%s' % (filepath, allDir)) if ".png" in child: pngList.append(child) return pngList
0
91360d42c4473b699cc9aed2352d8949
9ce146bee9b89a80b41602e3108a941f
\brief Lookup a volume from uuid.
{ struct vm_info *vm; if ((vm = vector16_get(v2pmaps, volID)) != NULL) { *end = (__u32) vm->vBlkID_cap - 1; return 0; } RET_ERR("No vm_info available for volID %u\n", volID); }
0
5eb6bf785d0763afd34cd48a57ce8304
ad23af76b3da051606646362e85fe987
跳转到新增SoftPerfPrePer页面
@Controller @RequestMapping("/pushPerforRefer") @Login public class PushPerforReferController extends BaseController @RequestMapping("/pushPerforRefer_add") public String pushPerforReferAdd() { return PREFIX + "pushPerforRefer_add.html"; }
0
b070c9ddc252661c166161bd12471764
1761c80ad8b4315473fb012978202412
保存瑕疵分布图
plt.figure(figsize=(14, 5)) bins_ = list(np.linspace(min(train_good_score.min(),train_bad_score.min()),\ max(train_good_score.max(),train_bad_score.max()),11)) all_data = pd.cut(reject_score, bins_).value_counts()/len(reject_score) all_data = all_data.to_frame('reject') a...
1
ffbe24fe9e3e7439d8244b95d9c1d11b
d63045e267a3e982cc90ed5a455e66b8
Gets the available static snapshots for enabling client-side processing that is isolated from changing data.
namespace Infrastructure.Data.Seedwork.DbSnap public class DbSnapConfigs public static List<DbSnapInfo> GetEnableSnapList() { return GetDbSnapAppConfig().DbSnapInfoList; }
1
f8eda30b61a0e1101a07a12a5ebef19b
77e6e8cd62bab86554c7642ea3764445
任务是否已经结束。 如果此值为 `true`, 则 [isStarted] 必然为 `true`。
export class Run get completed(): boolean { return !!this.endAt }
1
1cf594cdcdaba85b744e1556b4be1586
2ffd5d6e25176fee86a97f9040c6f996
根据技能名称获取时长
public Duration getDuration(String name);
1
12d5bd6a1f2c3efb0c9a8f1165638171
fa766471d9330220c6e061e65befea7b
Set max height for each node in tree-like net i.e. max deepness of each node in tree Each node id must be str like "['s', 1, 2, 1, 1]" Inputs: - ``net`` -- a net from map_tree_to_net func. Output: net, each node of which has "max_height" key in node["coords"] attribute. If attribute "coords" does not exist, it will be...
def setMaxLogicFrame(*argv):
0
2f763022147e076d45fe797960a9680f
f3f74e12931466c17f0772cb782e623e
Converts an action's name to a privilege name
{ switch (intval($action)) { case self::COPY : return self::ACTIONNAME_COPY; break; case self::VERSION : return self::ACTIONNAME_VERSION; break; case self::INITIALIZE : return self::ACTIONNAME...
0
a7f0e2a3356da5a83d843aab5cb32051
bb390a7835471eaba45f937f24f1236a
Test the creation of each leaf node. This test tests number and parenthesis creation using the composite base class to check each item for the right type.
class NodeTableBuilderTest(unittest.TestCase): def testBasic(self): com = self._hostname_part_trie.GetOrCreateChild('com') uk = self._hostname_part_trie.GetOrCreateChild('uk') loo = com.GetOrCreateChild('loo') boo = com.GetOrCreateChild('boo') igloo = uk.GetOrCreateChild('igloo') self._builder.B...
0
05797708b7eed5266df4f46b86715607
0ef60afbe72e134fc3104af784e6c012
Display the selected planet and hide the others
int index = this.planetListBox.getSelectedIndex() + 1; int count = this.planetListBox.getItemCount(); if (count == 0) { return; } else if (count < index + 1) { index = 0; } this.planetListBox.setSelectedIndex(index); this.setPlanet((Planet...
0
a564dc93d6d97332c15b8fb590566f17
7139941a0d23de6cf6f04229b0fe4403
Get all available versions in the time range.
class Session(object): def get_all_version_data(self, auth=None, interface='public', region_name=None, service_type=None, **kwargs): auth = self._auth_required(auth, 'determine endpoint URL') return auth.get_all_version_data( self, ...
0
c02ce326c2a0019c3261d2511e51f167
790cdb5c393c4961239bdc4e4ab2a9e0
If set to false the user won't be able to edit the percentComplete of the tasks.
public class Settings public void setCountPrivateTasks(boolean countPrivateTasks){ setSetting("countPrivateTasks", countPrivateTasks); }
0
0b407cd49a379d7ff6ce94508b222667
feea22fbf0a60db3d5c74a974a019783
callback function for each sample inside a buffer, values of the same channel are aggregated, and averaged overall one buffer
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* AdcHandle) { vbat += data_buffer[0]; temp += data_buffer[1]; for (uint8_t i=0; i<NSAMPLING_CHANNELS; i++) { adata[LEN_F1 * i + idx_datum] = data_buffer[2 + i]; } if (HAL_ADC_Stop_DMA(&hadc1) != HAL_OK) { Error_Handler(); } idx_datum = (idx_datum...
1
19b3cb2a40e80d81c001c4e2d78e2284
56e4ab859ed63014383035f5b485ea5e
Disables corner cutting in diagonal movement.
opt = opt || {}; this.allowDiagonal = opt.allowDiagonal; this.dontCrossCorners = opt.dontCrossCorners; this.diagonalMovement = opt.diagonalMovement; if (!this.diagonalMovement) { if (!this.allowDiagonal) { this.diagonalMovement = DiagonalMovement.Never; } else { ...
1
757220cb242acc90067f70372933c766
61dc455365d6e83dcd076bece79d622f
初始化kmean类
class Kmeans(): def __init__(self, k=2, max_iterations=500, varepsilon=0.0001): self.k = k self.max_iterations = max_iterations self.varepsilon = varepsilon
1
7ec2f2a4397a37629d9f6312a381880d
40c6980a192b532ca375e080652fa6a3
List KalturaReachProfile objects
{ return $this->makeRequest($this->endpoint . '/' . $this->properties . '/list', array(), 'GET'); }
1
b912b6fe29f21c49c5f984e5eb57b12f
00c1ca75b84bfdfb5c742f75b95c17b4
保存任务数据到SP
{ for (int i = 0; i < task.Count; i++ ) { PlayerPrefs.SetInt("Task" + i, task[i].task_ID); } }
1
0363231b0d7140a45bd55da36b78e325
4669a4d3d303f053ec7e0d111b514c6d
Called when the player stops moving
public class MapPlayer : MonoBehaviour{ public void StopMoving(){ moving = false; if (destinationFlag != null) { Destroy (destinationFlag); } Debug.Log ("stopped"); }
1
12ddbb8e0ab68d260807bed32b979c17
f23f3a1798e2e3cea8c9ede687512863
Test that MenuActions are properly instantiated when added
{ MenuWidgetPtr = MakeShareable(new FMenuWidget); FTest1MenuCommands::Register(); MenuWidgetPtr->CommandList->MapAction(FTest1MenuCommands::Get().Menu1, FExecuteAction::CreateLambda([]() {UE_LOG(LogFeatureLearning, Warning, TEXT("Click Menu1")); })); MenuWidgetPtr->CommandList->MapAction(FTest1MenuCommands::Get().M...
1
53c7af84f1a56451975a52576114af06
17882fe1c65e0ad4cd15af825e438e39
overloaded constructor, used when loading game from json file
Character::Character(int a, int b, int w, int h, int xV, int yV, int g, bool H, int o, int sx, int sy) { Reset(a, b, w, h, xV, yV, g, H, o, sx, sy); }
0
8cf8d431976c3f78fa9e5f4657a67206
0725aae486c40acce58cb766e7e2f692
Verify that the lead-in value is correct for the TED1000
class TestOpenJP2(fixtures.TestCommon): def test_tte5(self): filename = str(self.temp_j2k_filename) xtx5_setup(filename) self.assertTrue(True)
0
2eb60094694b1d74c485722fc652808d
b5f4fb2a8f15de6e038e25a228f10e8a
Cette fonction renvoie le boolean TRUE lorsque les coordonnées x et y ,générées aléatoirement, correspondent déjà à un érable
global Liste_deplacements for i in range(len(Liste_deplacements)): if Liste_deplacements[i] == (x,y): return True return False
1
59380b05a7aefccf27fc704c5329647b
b3e1c5281f8d158a5abee94f50fc7528
construct python regex named group
def _np(name, regex): return '(?P<' + name + '>' + regex + ')'
1
8f03d28813c1c419e875dcf9ba36eb69
ae4a48a3a05393e1062209d422b6069f
Gets today data object for a given domain.
function getDomainStatisticsTimeObject() { let dataSource = statistics_data.data; let j; for (j = 0; j < dataSource.length; j++) { let time_day = dataSource[j]; let today = new Date(); if (time_day.year === today.getFullYear() && time_day.month...
1
52ce6f6b2774d09fcc291772c05611c5
66762a7a95c17ab3df2373326a3718ae
Unsets the value of the '{@link IFC2X3.IfcFluidFlowProperties#getPressureSingleValue <em>Pressure Single Value</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
void unsetSingle();
1
874818ab5484b1f9b8b3c0e6cea25f2e
f32664c90bf007f2905016978f33ed72
điều chỉnh trọng số
void MultilayerPerceptron::weightAdjustment() { }
1
f054835f110a596e9b5d02bcda5ada2a
f9f8c02885c08219db3650045e69d110
Should directory contents be displayed in mtime order.
class Backup: def _sorted_ls(self, path): mtime = lambda f: os.stat(os.path.join(path, f)).st_mtime return list(sorted(os.listdir(path), key=mtime))
1
a33b2052eed53f8400755b35fda1ffe6
fa61df9a7bf486546fe9152ce05b3bae
Calculate JS divergence of two vectors
def JS_divergence(p,q): M=(p+q)/2 return 0.5*scipy.stats.entropy(p,M)+0.5*scipy.stats.entropy(q, M)
1
3724e1e1a0d56854ddf1cc48811778c1
6eb4e9cadd5ad8a333866e469114d76c
返回String类型的双精度数字
public class Util public static Double getDouble(String args) { return Double.parseDouble(args); }
0
4e1e7f0c9672f30f1e4827c93145415c
af17584975945095235f56f180efd526
获取淘礼金相关配置
namespace Extra.UpGrade.Model public class UpGradeConfig public static JingDongConfig GetJingDongConfig() { return GetConfig<JingDongConfig>("JingDong.config"); }
0
427becf6bb13517817ff9e087d72b2e2
7da4b675499f357e287a6721d754c3e5
si el mmr es < 3000 y tiene temporada current, devuelve la misma sin actualizarla
function updateData(index, midprice, priceData) { let currentMidPriceArray = currencyDataArray[index].midprice if (currentMidPriceArray.length >= 30) { currentMidPriceArray.shift() } currentMidPriceArray.push(midprice) priceData.midprice = currentMidPriceArray; priceData.lastMidPrice = midprice; curr...
0
e96f4a3e866b3064f5994b5d213d43d1
8da81509c4a12d61954f30bbb70ac4e2
Get whether this season wraps around to a new year or not.
class ResultScraper(Scraper): def offsetSeasonURL(self) -> bool: season_number = re.search(r"/\d+/", self._season_url).group(0) season_value = re.search(r"\d+", season_number).group(0) new_url = re.sub(r"/\d+/", "", self._season_url) new_years = str(int(season_value[:4]) + 1) + str(int(s...
1
7626bcbd57779e237ba527a4ef6cf0b4
0790948ec6915762b8019723d7608f75
returns the jquery code generated for the "edit stations bctypes and languages" page
{ return <<<EOT <script type="text/x-template" id="cs-bpu-template-stock-levels"> <div class="input-group input-group-sm" style="max-width: 400px"> <input type="number" class="form-control" ref="input" v-bind:step="quantitySteps" min="0" v-bind:readonly="disabled" v-on:input="updateDisplayQuanti...
0
714cfa3cbc416e00aeffc1738cb46488
0b8327905b7235db84a26d6b4f4d35dc
發射弓箭的方法。
public class PlayerShoot : MonoBehaviour public void Shoot() { if (_arrowPool.HasArrows()) { GameObject arrowFromPool = this._arrowPool.GetArrow(); ArrowBehaviour arrowBehaviour = arrowFromPool.GetComponent<ArrowBehaviour>(); arrowBehaviour.OnActive(); ...
1
82bf37369d775aa99fd0ebe633a636cb
8e04d9cc81719c2db85b01491bee1243
日付を加算する. 既存のオブジェクトは変更しない.
namespace StoryCanvas.Shared.Models.Date [DataContract] public class StoryDate : IComparable<StoryDate> public StoryDate Add(StoryDate date) { int day = this.Day + date.Day; int month = this.Month + date.Month; int year = this.Year + date.Year; while (month > this.Calendar.Monthes.Count) { year++...
1
76801fc396f13051b0afd9f8db4eadcc
b422e984297667b2b1ed247138539266
Predict
class Fast_Controller(): # TF Simulator individual (One complete simulator genome) def predict(self, input): h_1 = expit(np.dot(input, self.W[0]) + self.W[1]) return np.dot(h_1, self.W[2]) + self.W[3]
1
8595b1246aacbe409d9d147c3946a73c
9a77e32ea66184b9387ab5925a5d90fc
Initialise les propriétés nécessaires au fonctionnement de ObjetDeDémo
self.Obj = Obj self.vecteur = (0.0, 0.0) self.tauxRafraichissement = 0.03 self.keepGoing = self.running = False
1
d70b1593788ac4b91396d0db6a080aee
5e6c82f165ac34505cd91cb40d490803
Uses cURL to fetch additional data at the given path. The domain used is the one provided on object instantiation.
public function fetchUrl($url);
0
3f5a80b2fffb928c0a53dd5f9847e543
4df11bf68dc5447f219dc8a5cfd11c79
Definition of view type (Section or Item)
class Collection(object): def viewtype(self): return self._viewtype
0
6a75758db881b6752523304b1ff8bbd2
4f478a259e2dac9c0e88000b4df03763
随机选出一个单词,且与指定单词不同
try: self.thisword = random.choice(self.todayunknownList, size=1, replace=False, p=None)[0] except ValueError: return True else: return False
0
9af9897d74e5017ec0895c06f44f69b1
3daf75d016f1b09e1f08b5eb6d614458
抓取列表提取链接,添加到队列,并过滤重复的链接
class CSDN_Spider(threading.Thread): # 构造函数 def distinct(self): for url in self.blog_urls: url = 'http://blog.csdn.net' + url if url not in catched_set: self.queue.put(url) catched_set.add(url)
1
1a203301cb845a86b06fad23a0edb820
c585343de91d3b7ecce743e8a0af659f
Sets the agent kyc approved.
@Service public class KycInfoService @Transactional public KycInfo setKycCompleteByUuid(UUID uuid, boolean isKycComplete) throws InvestorNotFoundException { Optional<KycInfo> kycInfoFromDb = kycInfoRepository.findOptionalByKycUuid(uuid); if(kycInfoFromDb.isPresent()) { KycInfo kycInfo = ...
1
bd7ea1e6c6b70e69b91cd9876812b564
f5c4a399a5d1363e85ef509fa152acb0
Returns the value of the '<em><b>Dynamic Viscosity</b></em>' attribute. <!-- begin-user-doc --> <p> If the meaning of the '<em>Dynamic Viscosity</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
class WeatherConditions: def dynamic_viscosity_of_air(self) -> float: return (1.458 * (10 ** (-6)) * (self.ambient_temperature**1.5)) / ( self.ambient_temperature + 110.4 )
1
28275c046a3d526f33426a1c408d1ba1
80055b1159b7235dfedb15b8a62686c1
Activa los botones para que el usuario juegue
public class PanelPrincipal extends JPanel public void enableComponents() { this.btnIniciar.setEnabled(true); this.btnVerPuntuacion.setEnabled(true); this.lblCuenta.setEnabled(true); }
1
f0a4f4e2c96f57c5d3a0dbe9d47c2878
4302760097bb8e6efbe763f1b38f8e23
Send avatar image to screen
AM_Message s_message; s_message.type = htonl(AM_AVATAR_READY); s_message.avatar_ready.AvatarId = htonl(AvatarID); send(sockfd, &s_message, sizeof(s_message), 0); return(1); }
0
27080f796edd46d36b0d1c40cbd9922e
6cb85b47dea06e2777d8bf7b83cb2046
add a comment line in the csv. Comment line start with '#' as first character.
global $bbs_file; $handle = fopen($bbs_file, "a"); $data['comment'] = str_replace(array("\r\n", "\n", "\r"), PHP_EOL, $data['comment']); $csv[] = $data['name']; $csv[] = $data['comment']; $csv[] = time(); $result = fputcsv($handle, $csv); fclose($handle); return $result; }
0
21b3e774b87a3f905be7b3637d7fcc80
3f4597e0fe9488fb881f9577cc4cad20
Add an event argument, only if it is not existing.
void addEvent(double time, String arg);
0
d063cd5d5058a04489ce1d9f9025c232
9d6ee697d27a869828ce6f2eaa8d6584
test the hasNext method for IListIterator
Result result; try { if (iterator.hasNext()) { result = Result.True; } else { result = Result.False; } } catch (ConcurrentModificationException e) { result = Result.ConcurrentModification; } catch (Exception e) { System.out.printf("%s caught unexpected %s\n", "testIteratorHasNext", e.toSt...
1
8923200daf4c639a946b86deff89ec43
ba0dc5672487bec2957342cc400c20c4
M�thode ajoutant des attributs HTML pris dans un tableau
foreach($attrs as $key => $value){ $this->set($key, $value); } return $this; }
1
4707029ac34a1a72dd3d45ebc0137fb0
ed2b218363dc15d6764b1fd79aecfcad
Check to see if a given cluster has already been added to the active set of cluster data
export class SocketSupervisor extends EventEmitter userClusterExists(id: string) { return !!this.userClusters[id]; }
1
e5b89c4802f222e23ebf31ead9b4f485
f0774bd1af0e9d0645a5ff323bf2f964
记录系统日志到日志数据表
public class Logdb public static void WriteSysLog(String content, String shuoming, String username, int userid, String addip, int log_type, Base base) throws Exception { content = URLDecoder.decode(content, "utf-8"); long create_time = SetupUtil.getTimestamp("now"); List list = new ArrayList(); ...
1
341694db4fe7f1d355982d77dfa9a477
a0dd98617325d81a696dfa116835dab7
Returns to lobby
public class PlayerControllerScript : MonoBehaviour private void EndGame(){ localPlayer.returnToLobby (); }
1
92badcbc19e391ea035717a938a4ae52
18cdf3be7bdc24b596ba99b5b180f226
Resumes the selffeedback.
namespace MoreMountains.Feedbacks [AddComponentMenu("More Mountains/Feedbacks/MMF Player")] [DisallowMultipleComponent] public class MMF_Player : MMFeedbacks public override void ResumeFeedbacks() { Events.TriggerOnResume(this); InScriptDrivenPause = false; }
1
fc4198fc94bd77cc2ffbfc006d745bef
b94723105bbaad7412bc2689f2518949
Notification of thread state change.
public void notify(BoardState counterMove);
0
819323ea94b4bf01d621cc043e4ce318
8b6d1736e59c653cfc8432a39d8aa825
Constructor method for SyncLog
class SyncUserTrack extends BaseCommand public function __construct() { parent::__construct(); }
0
61b46ad8f1feb3ba7adbc449fca8b238
5eef04c6ba7b15948c6b9de121c5d8b9
If any extensions want to show the new header, they can register their screen ids. Separate so extensions can register support for the feature plugin separately.
class POS_HOST_Admin public function woocommerce_screen_ids( $screen_ids ) { return array_merge( $screen_ids, pos_host_get_screen_ids() ); }
1
16f840ea539c0d3e627849c99b33f271
cb6fd71fac4b0c5a692e0a613e246ccc
获取远征军类型
function DesignMapModel:getMainArmyType6() local pJLen = self.partList:getSize(); for i = 1 , pJLen do local pj = self.partList[i]; if pj.i_cao == CustomWeapon.C_CAO2 then local cfg = Config.customWeapon.getConfig(pj.i_tid); return tonumber(StrSplit(cfg.cao3 , ";")[2]); end end return 0; end
1
fa093e853f139044088731ce1dadb522
02e6eb46839c2c5715bf17ff09e990ae
提交菜肴的修改信息
class Dish extends CI_Controller{ public function mod(){ if($this->input->is_ajax_request()){ $user = $this->loginAo->checkOrder( $this->userPermissionEnum->ORDER_DINNER ); $userId = $user['userId']; $data = $this->input->post('data'); ...
1
2f807a1eb5f499c1a769a8d52e8f67a0
1fa0829315aee9d78690f2c29d24ac38
获取与当前进程同名的所有进程
{ var procesQuery = from runProc in Process.GetProcesses() where string.Equals(runProc.ProcessName, ImportName, StringComparison.CurrentCultureIgnoreCase) select runProc; return procesQuery; }
1
dbc7444761656cab42122177041530c9
c9d0ae20848f07a74e54997e5a603a27
The database end time for a collection obtained through {@link org.openntf.domino.Database#getModifiedDocuments()} in Database. <p> This time should be specified as the "since" time in a subsequent call to {@link org.openntf.domino.Database#getModifiedDocuments()} where you want to get all modified documents since the ...
public long getCollectionBarTime();
0
8ed6c0310d1db3fac667bc801e1a6f44
38826901b7b68495d11e5c815feca17a
Solution Given preorder and inorder traversal of a tree, construct the binary tree. You may assume that duplicates do not exist in the tree.
Solution s; TreeNode *result = s.buildTree(preorder, inorder); return 0; }
1
9afdfca882c83adc425ac221177556d9
57d678244f7f6f6de3de0f55a8e483dd
Test various Python types.
class PylibmcCacheTests(TestCase): def test_data_types(self): stuff = { 'string': 'this is a string', 'int': 42, 'list': [1, 2, 3, 4], 'tuple': (1, 2, 3, 4), 'dict': {'A': 1, 'B': 2}, 'function': f, 'class': C, } ...
1
cab8fc7e155b773e9e75121d714a9c39
63e0dc1416c146bfc9cb640c2e547d20
Escape a string for insertion into a `cmd.exe` command line
str = str.to_s return "''" if str.empty? str = str.dup str.gsub!(UNSAFE_SHELL_CHAR, "\\\\" + "\\1") str.gsub!(/\n/, "'\\\n'") str end
1
0d8608fa7e5c7a7bcb92e2245288b00b
1dc10b8d8aa1a6884f45b2b74c69f394
check if the current file is a supported pdf extension
{ if (Path.GetExtension(fileName).ToLower() == ".pdf") return true; return false; }
1
a73183712b0fa72be5d2a393df527c1b
23cceb485110b830b31d60d264b773b0
获取交易id对应的 十六进制编码的序列化交易
tx, err := AsTransaction(txab, idMap) if err != nil { return nil, err } return tx.MarshalMsg(nil) }
1
3b19d52afc66353bb6fc578c3d96a6a9
8a42554d5fe8db8122f0145c7bddc34c
Determines whether the Range is to be Inclusive or Exclusive. If Inclusive, the range end points are part of the query values that can hit.
public class JImportDecl extends JNode public boolean isInclusive() { return _inclusive; }
1
76951d4a5f241f90aee4438eb4b00f91
34ddffb83c2f482f216f5b0a40908a09
Update an instance of the model from the database.
class ModelResource(Resource, metaclass=ModelResourceMeta): def updated(self, instance): self.session_manager.save(instance, commit=True) return instance
1
6b0ae7e281cc18fad32320b11d76f4ff
2d38bfca1953f2a5585dd79e7b8f6862
#Create all eight required dataframes.
import_initial <- function() { y_train <- read.table("./train/y_train.txt") y_test <- read.table("./test/y_test.txt") activity_labels <- read.table("./activity_labels.txt") subject_train <- read.table("./train/subject_train.txt") subject_test <- read.table("./test/subject_test.txt") training_dat <- read.tab...
0
00a48859aab06249d3ad01b6af48ccc2
f7b0acb03cc41bc10622b593bba46aae
Sets the rate name.
public class Cre0001s01Entity extends PageBaseEntity public void setRateTypeCodeName(String rateTypeCodeName) { this.rateTypeCodeName = rateTypeCodeName; }
1
6dbc7ebfa4059f6f21e7f825fea129bb
81e39b637ed3419e6807544b8265c57c
主体责任清单统计
@ResponseBody @RequestMapping("find_count_yh") public ResultMessage<List<RwCount>> findCountByYhid(String rndo, String sign, HttpServletRequest request) { long start = System.currentTimeMillis(); ResultMessage<List<RwCount>> resultMessage = new ResultMessage<>(); try { Yhxx yhxx = (Yhxx) request.getAttribut...
1
f9d98009a31988894ffed8475b8be240
e3ec3de9c9561d797db33d64a157536a
Get the number of points in the entire ECG. <br> <br>
public class MzMLMsScan implements MsScan @Override public @NotNull Integer getNumberOfDataPoints() { return getMzBinaryDataInfo().getArrayLength(); }
0
f0fd5957afae914517475447f504e4fd
88d58af34ef0e9949a998d9b0d54d449
跳转编辑模型维度 第一步
@Controller @RequestMapping("/model") public class ActModelController @RequestMapping(value = "edit/{modelId}") public void create(@PathVariable("modelId")String modelId,HttpServletRequest request, HttpServletResponse response) { try { response.sendRedirect(request.getContextPath() + "/modeler.html?modelId=" +...
1
44e3d23f315ca816e7716cfbc9fa83c2
aeb36bca536662c0b6d145940d5d028d
------------------------------------------------------------------------- sea_typeを문자열で得る ---------------------------------------------------------------------------
namespace gvtrademap_cs public class sea_area : IDisposable public class sea_area_once : IDisposable public static string ToString(sea_type t) { switch (t) { case sea_type.normal: return "위험해역"; case sea_type.safty: return "안전해역"; case sea_type.lawless: return "무법해역"; } return "unknown"; ...
1
03142d18628ff580788a216e498a83cc
6c1ba35a9175d0565500797fc669cb19
获取queue源URL
function getQueueURL(fileType: ConversionFileTypes): string { const queueUrls: string[] = []; const queues: { [key: string]: string } = config.get("queueArray"); if (queues[fileType]) { return queues[fileType]; } else { return config.get("defaultQueueURL"); } }
1
d8bd4d2914e97730da0007795286fb95
19e77be3858be3027333feaeea69b2cc
장애물과 자동차가 충돌했는지를 파악하는 함수
var carPoint = { x: profile.mp.firstCar.x + profile.mp.distance.x * parseInt((n - 1) / 2), y: profile.mp.firstCar.y + profile.mp.distance.y * ((n - 1) % 2) } var img = captureScreen(); var carcheckState = images.pixel(img, carPoint.x, carPoint.y); if (colors.equals(carcheckState, "#f...
0
8d02040221b2eabcc94f112da7e2dd6c
fb5d2b3612fd450eb337abb164fad27f
Define una caché para no tener que hacer siempre las mismas búsquedas en odoo. Como el método para realizar la búsqueda se pasa al constructor, se podrá personalizar la búsqueda del valor de la forma que se quiera
attr = '_{}_value'.format(function.__name__) key = tuple(arg) try: cache = getattr(self, attr) except AttributeError: cache = {} setattr(self, attr, cache) try: return cache[key] except KeyError: pass ans...
1
beba48d3662b0fb0c370e51f64585fc6
708d4904136e65e2bdcf21f916adce8f
将图像[batch_size,height,width,channel]变换为[X,patch_size,patch_size,channel]
def split_to_patches(X_data, y_data): logger.info("Spliting images into patches...") with tf.Session() as sess: patches = tf.extract_image_patches(images=X_data, ksizes=[1, PATCH_SIZE[0], PATCH_SIZE[1], 1], strides=[1,...
1
9f60dbed7b5cb4785cc2ac19909ecff2
d3d6bce2f469e7b2433cfcfd3ac700b5
获取回款中的优惠券出借项目详情
public AppRepayDetailCustomize selectCouponInvestProjectDetail(Map<String, Object> params);
1
a83684f4924c4cfafa465656336f4056
bf19c901e8f671ac81384941fcee457a
Simple function to feed animal.
void feedTheAnimal(Graphics &gr) { SDL_Event event; bool stay = true; while (stay) { color c; c.colorTexture = { 138, 58, 58, 0xFF}; c.screenClearningColor_1 = 48; c.screenClearningColor_2 = 32; c.screenClearningColor_3 = 32; c.screenClearningColor_4 = 0xFF; ...
1
0d29e5a5bee74f4f604fc1b31c5a73e5
048c7c72a3262fc87bf10cb74ef81793
test if the users list page is reachable
class ListPeopleTest(TestCase): def test_list_people(self): response = self.client.get(self.base_url) self.assertEqual(response.status_code, 200)
1
1410643f96865360b9f7230304c3fb15
a2a7bc75e6e8ea13106c4346cf231551
Sets the number_of_pairs of this AggregatedCorrelation. number_of_pairs
public DatasetSearchHit setNumPifs(final Long numPifs) { this.numPifs = numPifs; return this; }
0
69f6d299652f2a41564d08410b4cc35b
74768f6d37f95f39620fa2864a6702a0
Checks if the inode given to it is valid
struct inode *ip; { register struct super_block *sp; sp = ip->i_sp; return(sp->s_rd_only ? EROFS : OK); }
0
894c50c8816c9f5096b7fad8153906a9
15c66b09572b2d1f3efdba5d6249dae4
empty because no properties needed.
void MuscleStateTrackingTask:: setupProperties() { }
1
e1388ab7e59257a35b6dda791cfb74eb
d4cb0a56045c304a574a760b1eeefa15
Exit a parse tree produced by {@link RegnaParser#mid}.
void exitRet(GrammarParser.RetContext ctx);
0
ba29443bd303f873083ea60f4ff79009
f562f7f446221e3b9cf1dba467922166
向V1签名的apk中添加渠道信息
if self.containsChanneledInfo(): raise Exception('Must Flush Current Changes Or Has Exist A Channel Info') customIdValuePairBytes = SignatureMagicInfo.__wrapCustomIdValuePair(channelStr) new_cdStart = self.cdStart + len(customIdValuePairBytes) new_cdStartHex = hex(new_cdStart...
1
effa3a4d8acd4d95c3c21cdd58255187
25d40cd622e5c8a52512a7b5ee671db0
取队列数据入mysql库
def insert_to_mysql(data_queue, nums): connect = pymysql.connect(host='localhost', user='root', password='root', db='jobbole', charset='utf8') while data_queue: nums['numbers'] += 1 title, support_nums, collection_nums, comment_nums = data_queue....
1
c9552dba341e10462fd35e35da0e8361
e8ea0516a32d07a7e02bc69f0d81cf2d
Decodes integers into string based on the decoding dict.
if integer not in self.__decode_table: raise ValueError('Integer {} is not encoded before.'.format(integer)) return self.__decode_table[integer]
1
4e1fbce81784b2ff3801be3fac089e94
301bb1e6eeb22948c93a6bff82b2113b
根据不同条件获取StockItem数据
namespace LianFa.ShopPlatform.Service IEnumerable<LF_ProductStocks> GetList(Expression<Func<LF_ProductStocks, bool>> whereLambda);
1