query_id
string
corpus_id
string
query
string
code
string
label
int64
e7466f32ba6fe3ae0d70c4b5f4c413e8
4d12a887bf569c21362097a8d99d897b
Reset the image map.
void mapReset();
1
341bf81a32f7300c17a0e8e94abd8669
16ed47ec598b9373232267a13c459d57
計算負債淨值比(負債股東權益比)(%)=負債/權益 負債 權益
NCL = self.df_bic["total_ncl"].fillna(0) total_EquityAttrParent = self.df_bic["total_hldr_eqy_exc_min_int"].fillna(0) other_Equity = self.df_bic["oth_eqt_tools"].fillna(0) BL = NCL / (total_EquityAttrParent - other_Equity) BookLeverage = self.drop_duplicated_ann_date(BL) ...
1
534ba022eceea7d268c7b6f46a97c362
dbffd1a2950a54660d704b11b378bd0f
hides full student list
document.getElementById("stu-input").style.display = "none"; document.getElementById("stu-search").style.display = "none"; document.getElementById("stu-change").style.display = "none"; document.getElementById("stu-list").style.display = ""; document.getElementById("stu-delete").style.display = "none...
0
ead46493f6ff529cca670aacd3fb16e3
61a3dbcac35c528ce781739078a7b79c
根据设备id查找图片列表
public List<Camera> selectByDeviceId(int did);
0
85607c94825afe64e18aa0b60ec7a936
e0aea1208efc90a84d26bec487fdc4e7
ajax 查询我的银行卡列表
@Controller @RequestMapping(value = "${frontPath}/user") public class WebUserInfoController extends WebBaseController @RequestMapping(value = {"/myBankCard"}, method = RequestMethod.GET) public String myBankCard(HttpServletRequest request, HttpServletResponse response, Model model) { UserUserinfo userinfo =...
0
40f08b9102f1faa982b02733b7bfefbd
ed497376bba1912f84dc0799943cb8ea
将查询到的数据从map集合中取出后保存到ModelAndView中
void save(V modelAndView);
0
6de8980a234f6035c27e251292886205
81339ee5315e2e196a73faaae6b5ff85
Reverses this object horizontally, that is, invert the hspeed.
public class SpriteWithVelocity extends CompositeSprite public void reverseVelocity() { multiplyVelocity(-1); }
1
f9e08aa2037ce4ce9fc4c37389238bd4
5b25fcc40fb3c922823edcec89c7007a
리뷰 id로 리뷰 하나 조회
public ReviewBean getReview(int seq);
1
5e7394b5962054ebb20eb897e0da876d
261f2e968055c16528697aa2aef51f62
destrutor - libera o recurso
ECoalescido::~ECoalescido(){ for(int i=0; i<this->tam; i++){ delete []tabela[i]; } delete []tabela; }
1
2c0377383412fd20a591984cf55f4939
42990a4ec39ac801c8fb720690c8634d
Ends the current AJAX request.
class Amazon_S3_And_CloudFront extends AWS_Plugin_Base function end_ajax( $return = array() ) { echo json_encode( $return ); exit; }
1
925a755b71a334831d971fd1dc6fd31a
4f305de777226bf9a65cc45339c5f87a
Test 3D rendering of a 5D image.
namespace angle TEST_P(ImageTest, Source3DTargetExternal) { Source3DTargetExternal_helper(false); }
0
3f0acc7780712f08dec8c7fbabef2646
328ef23925785a91ad028648cb9463fc
开奖时间(人满开/定时开都用这个字段)
function My:GetOpenType() return TimeLimitActivMgr.type end
0
3a2749f09da6646bf531d514622adf62
af26b5173911a32a445116e72ee9e084
handles the switching of users
namespace ToDoList public partial class Form1 : Form void SwitchUser() { using (var przelacz = new UserPrzelaczUsera()) { switchUserResult = przelacz.ShowDialog(); if (switchUserResult == DialogResult.OK) { activeUs...
1
5793e37c46357090126c5afabac9ba58
97e2fff2abc5efcd38ee2e886b24060b
Sets talk type.
public class ChatInfo implements Serializable public void setType(TIMConversationType type) { this.type = type; }
1
7ce43f32b46fab36834db6116cbb548f
b5a66e3f8b7b91e36790451549785235
检查是否该用户是否拥有房子,若拥有则不允许删除,或者先删除房子
$id = yii::$app->request->get('id'); $session =yii::$app->session; $session['id']=$id; $data =yii::$app->db->createCommand("select *,group_concat(p_name) as g from room left join rp on room.r_id = rp.r_id LEFT JOIN private_conf on rp.p_id=private_conf.p_id where(h_id='$id') GROUP BY (room.r_id) ") ...
0
10d8d13fe14dce36a3ebac113c6d578f
df74b020c396bc2be97ba4e2e0afbacf
Returns the list of values as a collapsed string with the separator character being used as a delimiter.
{ if (values == null) return string.Empty; StringBuilder sb = new StringBuilder(); IEnumerator<T> it = values.GetEnumerator(); if (it.MoveNext()) { sb.Append(it.Current); while (it.MoveNext()) { sb.Append(separator).Append(it.Current); } } return sb.ToString(); }
1
6e8cc1aee490da8181c45090b251209c
652302b46521a4ff1b58cf04fcae2b0e
Returns a dictionary mapping ``value`` attributes of each checkbox to True if checked, False if unchecked
class Options(): # An additional option to be passed to the callback function, not created # from a click.Option or passed a value (directly) by a user; can create # via `__setitem__`. def values_map(self): return { identifier: option.value for identifier, option in self ...
0
dbdbc91eb05222a082697be8fd839ff4
fd2f2c367c5b5a7346f0cb89f354a7ab
yawの値が変化した際にコールバックされる。
{ int ys; ys = 120; #if 0 switch (m_Activity) { } #endif pev->yaw_speed = ys; }
0
a082a7ea465bba56f24a14685b0e3477
28afb34fc16a9ee3c8531556947a8a24
...查詢縣市2(潛勢溪流查詢)
{ try { DbCommand cmd = db.GetStoredProcCommand("PKG_VDS_CAA28.QUERYMONCLOSEBYLIKE"); db.AddInParameter(cmd, "V_SCODE_B", DbType.String, ParameterList[0]); db.AddInParameter(cmd, "V_SCODE_E", DbType.String, ParameterList[1]); ...
0
238256b3a46bedc866e88acf144ecc7b
fdad5356a7540e8aae270222d1354b94
Enables making a withdrawal
cy.get("#app-overlay-wrapper > div > div > div > div.modal-container__container > div.modal-container__body > div.withdrawal__content > div > form > div:nth-child(5) > button") .should("be.disabled"); }
0
ee2f0361c376fb3f7540cc164d4d6483
6999885d8d77d70e0154cb31d66a21f8
Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set.
class InlineQueryResultDocument implements InlineQueryResultInterface public function getDescription(): ?string { return $this->description; }
1
93eb542c89ee3fc7e6a0738757e3c9ac
be8328434fc87cddd47f26935b135301
Get Business Partner Group Name by Group Code.
{ $this->db->select("company_name"); $this->db->from("account_codes"); $this->db->where("accountCodesID", $acctCodeId); $query = $this->db->get(); return $query->result(); }
0
fc13498c9a10ed75ce90a758f658a1d3
251142b5aa2fbb91a22215162ebe54fb
# density of mniw distribution
dmvSNC <- function(y, mu, Sigma, lambda, nu){ n <- nrow(y) p <- ncol(y) dens <- 2*(nu[1]*dmvnorm(y, mu, Sigma/nu[2])*pnorm(sqrt(nu[2])*apply( matrix(rep(t(lambda)%*%solve(matrix.sqrt(Sigma)),n), n, p, byrow = TRUE)*(y - matrix(rep(mu, n), n, p, byrow = TRUE)), 1, sum ) ) + (1 - nu[1])*dmvnorm(y, mu, Sigma)*pnorm...
1
d76dd61ac56a719e7b63b8c8f3f2a603
3ec989ccbc84317e50bcabaea992dd41
NewProviderCommandFlags returns an instance of ProviderCommandFlags
func NewFlagsResolver(session awsclient.ConfigProvider, logger *logrus.Entry) (provider.FlagsResolver, error) { if session == nil { return nil, ErrNoSession } return &awsFlagsResolver{ session: session, logger: logger, }, nil }
0
9043c1795bd68e2f9b1dc45c042219c1
f9afe3692ccc4b706ed93eb958a21178
On connecting send the current home object to all users
function sync(){ toSend = {x: objects[controller].x, y: objects[controller].y, r: objects[controller].r, riding: objects[controller].riding}; socket.emit('objects', toSend); }
0
a3dc1b3c1872641b1fd864ef6c0367ac
c419e312613f045ce36495be6ecfda56
取得指定分类下的最大主题和最小主题ID
Vector getTopicIDs(String typeID, String topicmapID);
0
e3bb8edca580ec4c5282d72ee2d872e7
8dda7e430e23cb18c4ce60cd78997f2b
@brief Set heat transfer rate of material.
void TNode::Set_Tk( const double &T_k ) { CNode->TK = T_k; }
0
5cee8ab451c6d743a837ba7d234a3a2b
9ddc4ea496d295201c57b7c40e646306
Plays a single hand of poker
sco = score(self.pcards) if (sco > 20 or not sco) or (self.is_split and not self.pcards[0]): self.results() else: self.play()
1
3812fec424a6d2d6ab9b94d280f29b2b
20554caa4942e1d6f264376d253b1e90
print out all values in linked list in order, items separated by spaces with endl after last
void printOutList(node* h) { if (h == NULL) { cout << "EMPTY"; return; } while (h!= NULL) { cout << h->value << " "; h = h->next; } }
0
20ba89eb31523740c64df8d2a4bfd822
21889eddc2535872e8d0064f1c1e468c
Printing positions
public void printPosition();
1
27496fe6d6c7995f7255dd3eed3d700a
ec6cf3e15ad0c46ce69389ab5560c318
根据用户id和设备类型获取设备
DeviceModel model = null; try { model = modelService.fromClass(classId, false); } catch (Exception e) { e.printStackTrace(); return null; } return getDeviceInfoByModel(model, sbId); }
0
63fdf44689ca1d91db8e77ed772f6027
60f9f68972c2a45d7791efe464cb8c1c
根据podname 获取pod信息
public Object podDetail(@PathVariable String namespace, @PathVariable String name) { return K8sClient.init(clusterService) .pods() .inNamespace(namespace) .withName(name) .get(); }
1
c16f36b47b7efad51dc8cbef0bed3043
41a63c50e6ff4f032772ab832d2bbe54
添加价目表明细
var skuCode = jQuery("#skuCodeSel").val(); var barCode = jQuery("#barCodeSel").val(); if(checkSkuExists(skuCode)){ alertMsg('sku:'+skuCode+'已经存在!无法重复添加。'); return; } var marketPrice = jQuery("#marketPrice").val(); var supplyPrice = jQuery("#supplyPrice").val(); var basePrice = jQuery("#basePrice").v...
1
f0dcb1526d8d6492fecdf91e8aeecba3
f7d3d054a1d82bb985986fabe2fb5f9a
Test parse successful response by IMDb ID.
class TestNetflix(TestCase): #pylint: disable=R0904 def test_read_3(self): s_line = "100253:\n" i, j = netflix_read(s_line) self.assertEqual(i, True) self.assertEqual(j, 100253)
0
3c64d761df8535e3e793359d228a0bfd
e8ebdbb6cf22be776d2e06ba073c6068
This block is the login/signup screen, it loops until a user logs in.
while True: chosen = view.menu() if chosen == "3": view.program_end() sys.exit() elif chosen == "1": inuser = Account() name = new_username() if not name: return None in...
1
cac5fd3f8a2257a5757f6068a3877d7b
a2afec3adcde6af9250aff3989e7b4ce
记录所有实体数据对象模块下的文件路径
obj.put("basePackage", config.getBasePackage()); obj.put("moduleName", module.getName()); obj.put("entityPackage", module.getEntityPackage()); obj.put("servicePackage", module.getServicePackage()); obj.put("serviceImplPackage", module.getServiceImplPackage()); obj.put("daoPackage", module....
0
c5adb76fb30d8e8d48000a7aa7431124
17f06a14cf622feae21e326a65379e59
Notifies the change tracker that a property of a complex type has changed.
namespace System.Data.Entity.Core.Objects.DataClasses void EntityComplexMemberChanged( string entityMemberName, object complexObject, string complexObjectMemberName);
1
10cfce73d37ea7e45d2e46e16d2ee8c5
2f30948c319fb1e7f6c1b8abe4823cc1
Gets a rounded value that's slightly below the given exact value. The rounding is based on the given grid specifications of the axis.
{ return granularity * (int)((input + (granularity / 2)) / granularity); }
0
19cb9bbef0759aa77ddfa2fbd1966977
93e5806d0441be0e1f79d8d1cc31ab0b
verifica si la aplicacion recibida fue comprada por el usuario logueado
class Purchase_Log extends Model public static function isPurchasedItem($userId, $itemId, $item){ return static::where([ 'user_id' => $userId, 'item_table' => $item, 'item_id' => $itemId ])->get()->isNotEmpty(); }
1
4f0922bc4e9b3716e0cd6b3c1c0a87b9
e4bf7eb9f873095f636bc7bb8545f150
Test valid call to DeepInfra.
{ const object = { embedded: { key: 'value', }, }; testing.success(object, callback); }
0
618dd9a5b3d95269ff5136d2e76ca54d
a65c1875c76e298d879539e7cd07c58a
Naive primilaty test
bool PrimalityTesting(int n_test) { for (int i = 2; i <= std::sqrt(n_test); i ++) { if (n_test % i == 0) { return false; } } if (n_test >= 2) { return true; } else { return false; } }
1
00fe3d101a1ed3299355faee4fdbabe9
92f672547dee9f6718f3808e7c3bef91
Returns an observable sequence wrapping the DropDown event on the ToolStripComboBox instance.
namespace System.Windows.Forms [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.MenuStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)] [DefaultProperty("Items")] public class ToolStripComboBox : ToolStripControlHost protected virtual void On...
0
f5e48147b5dbda00bad1a544df9d32f3
2394009d11ec3d9c73341b8450272063
Reading function for int16 columns.
def read_int16_matrix(fid, rows, cols): return _unpack_matrix(fid, rows, cols, dtype=">i2", out_dtype=np.int16)
1
8467a1ae9c71aa4cf3e08e5455cf5d6f
165c9a0e1447b73e568df61c2563afc6
Look for the link to the thread in the blink-dev archive.
class GFSBoard: def get_thread_links(self): links = [] hay = self.data while hay.find('<tr class="topics">') != -1: topic_loc = hay.find('<td class="topic">') + 18 less = hay[topic_loc : ] end_loc = less.find('>') + 1 fin = less[ : end_loc] ...
1
fc72520f8457d9acd7ea5b9249039285
91f1c796d5e39d3b391b2a7c00240744
Sets the size of the MAC key in bits to be generated during initialization. This value is only used if the MAC key has not been set.
public class GatewayMacsecConfigTemplate extends GenericModel public static class Builder public Builder windowSize(long windowSize) { this.windowSize = windowSize; return this; }
0
b0f514520d3d09a84e687f7f2fd05629
2fc2be309012b6585f16627434bdb9bc
Function to generate a data frame of column (signature) annotations
def get_sig_feats(sig_df): series = sig_df["signf"] series = series.fillna("False") index_labels = series[series == True].index.labels[0] return set(itemgetter(index_labels)(series.index.levels[0]))
0
36c15701b1b2b88a1401cd1403972c97
d8b52b926529b0838e60b942dce09866
Create a configuration parser.
class Config(Configurable): def parser(self): if not hasattr(self, '_conf'): cfile = self.config_file logger.debug('loading config %s' % cfile) if os.path.isfile(cfile): conf = self._create_config_parser() conf.read(os.path.expanduser(cfile)) ...
1
67cf4de369a4685dfa1e100afc996a12
a385c80446070a9f139fdc213bc2381a
Set default cache name.
class MyX_Plugin_Resource_Data_Cache extends MyX_Plugin_Resource_Abstract public function setName($name) { $this->_name = $this->formatName($name); return $this; }
0
18dd91ab8b7b584aa79425156207b52f
c04e7768b22b75bc982bfaa5b66a4780
Checks wether for the specified banking client the requested loan is allowed.
class hr_employee_delegation(osv.Model): def check_loan(self, cr, uid, delegation, context=None): return True
0
d7d56a4a5f82a41e5bd48e84642ec0f0
642288baa1b0c08a1de8d2d704673feb
Elimina la última malta añadida al lote
public class Ship implements MapObject, TreasureHolder public Treasure removeLastTreasure(){ return this.treasure.remove(this.treasure.size()-1); }
1
8789506812f566adda80aef374b13b99
e6b2943675d730317e3de1962d5ce0f6
Initializes the factorized convolution by decomposing a full tensor.
if self.bias is not None: self.bias.data.zero_() if decompose_full_weight: full_weight = torch.normal(0.0, 0.02, size=self.tt_shape) self.init_from_tensor(full_weight) else: init.tt_init(self.factors)
1
70d822567e27b3fd3cc75ae019458822
6bc8da4ba69e7228cfa389061f6f346b
Creates a new stack address <see cref="Operand"/>.
Assert.that(sign == 1 || sign == -1, "sign must be 1 or -1"); return new Address3(true, ADDR_REG, base, sign, index, true); }
0
f438ec13db94d7bc7d5c894d61afb888
37196532925e74086a2916e437bd809f
Gets photo for specific style
const firstImage = eachStyle.photos[0]; let url = firstImage.thumbnail_url; if (url === null) { url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/1024px-No_image_available.svg.png' } return ( <> <SmallImages src={url} onClick={styleClicked.bind(null, ea...
1
bcddb88d2d9cba8ac3ea83c746d983fa
29851d83eab3ec1ae125f9acc6e1ea43
Parses incoming MHPRequest and passes to the appropriate handler
main_handler (void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **ptr) { Request *request = (Request*)*ptr; if (!request) { request = ...
0
845a3a7e21c2a599b1913b328e6ca293
654da7648a3d1c5a831c3087af75e006
初始化目录,有关目录不存在则创建,存在则无动作,
@Component public class IndexUtil public static void initFolder(HttpServletRequest request){ File file=new File(IndexUtil.INDEX_PATH); if (!file.exists()) { file.mkdirs(); } }
1
ff5b68fad662fc481e3999ce2db9fa88
766b832792189c65f1f57ea7d7dfa8ec
Redimensionne de manière automatique les colonnes.
function WDRedimColonnes (oChampTable) { if (oChampTable) { WDDrag.prototype.constructor.apply(this, [true]); this.m_oChampTable = oChampTable; } }
0
cb49922e77b4fa6c0505879a54eb18a5
d1260a10db2cde11dd2607ebf83e8057
Pomocna metoda pro vlozeni postavy do DB
class Battleground(threading.Thread): def __saveToDatabase(self, data, full_record): db_bot_0_id = db().getBot(self.__bots[0].name())[0] db_bot_1_id = db().getBot(self.__bots[1].name())[0] rules_id = db().insertRules(rules.timeOfRound, rules.numberOfRounds) db().insertGames(data[gff.DATE...
0
f04133057c1feb05102f6ed97cdccb8d
2bc416e5c16b6ac16e583b14c04875c5
Expands expression globals in this string parameter optionally ignoring specific global variables.
class RootContainer(object): def _param_expand(self, tup): rv = [] for arg in tup: if type(arg) is str: rv.append(self.expand(arg)) else: rv.append(arg) return tuple(rv)
0
ad69d0275f5649eb0ebdedc89d9a8ef0
dab60251dcc118baced0c4a5c1a93ef7
得到非零值个数
int count = 0; for (int i = 0; i < array.length; i++) { if (array[i] != 0) { count++; } } return count; }
1
c7462a25d300f420cb62086a0cbb1ea0
313c7f314320f693ceea48db7e2cd08a
删除订单并重置库存
public void deleteOrder(ShopSaleOrder shopSaleOrder) throws Exception { shopSaleOrder = this.get(shopSaleOrder.getId()); List<ShopSaleOrderItem> orderItem = shopSaleOrder.getShopSaleOrderItemList(); for (ShopSaleOrderItem shopSaleOrderItem : orderItem) { ShopUtils.updateProductStockNum(shopSaleOrder.getOffice...
1
70fc84b8a11fcd07b9bbc0d8616a49c8
627c60925572fc3545bea5229da05b32
获取当前道路的延伸道路,并分组
{ DArea first = areas[ Random.Range(0, areas.Count) ]; for (int i=0; i<areas.Count-1; i++) { if (RoadGen(areas[i], areas[i+1], ref cells)) { List<DArea> nexts = DArea.GetNextAreas(areas, areas[i], RDirection4.ALL); if (nexts.Count > 0) { RoadGen(areas[i], nexts[Random.Range(0, nexts.Count)], r...
1
1e69b64938e4492cdd7c2b4ae132d3b8
76c9b48d7c9ec7c89cb5c16a57ddc79d
Check if a new catalog information is available at Github
class Controller: def is_new_pull_request_available(self): return is_new_pull_available(self.local_repo_path)
0
37c6483cec62b24761e71113dd8be2db
ac700e5f9d409fd0ca4c5708e389f5bb
载入JS,并决定是否强制缓存
var isStr = typeof urls == "string"; if (isStr || urls.length == 1) { requireJS(isStr ? urls : urls[0], callBack, charset, base); return; } var led = {}; for (var i = 0; i < urls.length; i += 1) { ...
0
5bc6ab96e12ce44baaa433c6911f3209
7dc949370ab13a443f9ffa7dd78fae99
Add a stock movement for current product. Since 1.5, this method only permit to add/remove available quantities of the current product in the current shop
if( is_numeric($quantity) ) { if($quantity==0) { $this->deleteProducts($id); } else { $this->quantity[array_search($id , $this->product_id)] = $quantity; } } else { $this->quantity[array_search($id , $this->product_id)] = $this->moq[array_search($id , $this->product_id)]; } }
0
d790b1e1ac626222080d4d03caab9f74
734bf71d986788fef4ff77735152ff1f
根据对应的鼠标坐标获取句柄
namespace AkizukiAutoDetectUnit public class AkizukiAutoDetectUnit public static void GetHandleFromPosition(Point position) { IntPtr hwnd = WindowFromPoint(position); }
1
a453dda1b22a8bc73527bf18ecb7f8b9
a7a61e4f03267554fde60b86914d2c1c
等待下载完毕。
this.isStartDownload = false; this._status = DOWNLOAD_STATUS.Waiting; if (this._downloadTask) { this._downloadTask.cancel((err) => { return Promise.resolve(true); }); } else { return Promise.resolve(true); } }
0
005f4533c0cf84521a806f20aebfa654
ef1322232b7d824c3eba7bb7c7894b66
Функция проверки строки на null и пустоту. (Если в строке пробелы или переводы строки - всё равно считается пустой)
if (!isset($str) || empty($str) || preg_replace('/\s(?=\s)/', '', trim($str)) == '') { return TRUE; } return FALSE; }
1
c0f42b7c9e01d4cbdaa2cfb70b4d423b
409776a35e18c7f1511e7f9b26f3b5e0
Sets the enabled of this ElasticsearchScriptTypeSettings. If enabled (default: true) then scripts are enabled, either for sandboxing languages (by default), or for all installed languages if 'sandbox_mode' is disabled (or for 6.x). NOTES: (Corresponds to the parameter 'script.file|stored/indexed|inline')
public function setEnabled($enabled = true);
1
e331a456e5908a5bc6b7c0eec4e71b62
a151fb2ecea8c3a8d6e5fa27d41c55a1
Test attribute "total_phosphorus_percentage_content_math_sign"
class LexerSuite(unittest.TestCase): def test_all_lexer_8(self): self.assertTrue(TestLexer.checkLexeme(""" abc + 1.e-8 = c ""","""abc,+,1.e-8,=,c,<EOF>""",190))
0
bed9942de470ff5fe32ac549a83e91e8
ee4bdd13504bb81ccc2ea50bd4332751
Controlla che i dati iseriti per il paziente siano corretti
$VPatientsDB=Usingleton::getInstance('VPatientsDB'); if( $VPatientsDB->get('sent') ){ $FPatient= USingleton::getInstance('FPatient'); $FCheckup= USingleton::getInstance('FCheckup'); $result=$this->validateInsertForms(); if ($result==f...
1
a3987df48dce69c8e6e8cda334e26fab
203a1516839c871331ed72f1f977bf4c
根据skuId获取spu信息
SpuInfo getSpuInfoBySkuId(Long skuId);
1
ad4da476c32819e6ea23d979cbf71c61
aed80232918748dc6c80026debb76a61
更改会员模型的审核方式
@ControllerBind(controllerKey="/member") public class MemberController extends BaseController<Member>{ @Permission("checkMember") public void validateMember(){ System.out.println(getRequest().getParameter("mid")); int mid = getParaToInt("mid"); int cst= getParaToInt("checkStatus"); if(cst==1) { ...
1
2b08a1e95a6802b16b8a734bba167a0f
9d9e22cf41027c0ae7de2f53f7f41d33
Passes the input through an attention head and then through a shared dense layer.
class AttentionBlock(nn.Module): def forward(self, x): sqrt = np.sqrt(self.dim_feedforward) sqrt = torch.as_tensor(sqrt).to(self.compute_device) x = self.layernorm0(x) z_list = self.nhead * [None] for i in range(self.nhead): q = self.fc_q_list[i](x) k = se...
1
4ed44176dfa7bf9611850dcbaafebbcc
2a42dfd62925cd318e8f101e1224f666
保存应用信息到缓存
public void call(Bundle bundle) { DataHelper.SetStringSF(getApplicationContext(), mProjectInfo.getId() , mHDApplication.getAppComponent().gson().toJson(mCache)); }
1
e9fcb5d0a1bcd09154f849fb10e3c1e2
a3840448f55c80f6a881c44215e9e2fc
連結済みのデータフレームで指定した列に差が有るもののIDリストを返す
mask = df[col_name].apply(lambda x: np.intersect1d(x, value_list).size > 0) failed_nodes = df[mask] return failed_nodes
0
91d07cfe3d0b18cefa897a057d032352
4fb0dfb05ffaf569b4427928ce322441
Asserts that the process of writing and reading a boolean value through the {@link DefaultExternalizableUtil} implementation results in a value that is equal to the original input.
public void setValueReplacesBoolean() { ZDefaultAttachObject obj = new ZDefaultAttachObject(); obj.setValue(BOOLEAN_PROPERTY, true); obj.setValue(BOOLEAN_PROPERTY, false); assertFalse(obj.getValue(BOOLEAN_PROPERTY, true)); }
0
772888b8a20c3b9e417abd4deb5b6a5d
a4155526ae5b3ec9cb444df177b770a9
Lists all avione entities.
@Repository public class AirlineDAOImpl implements AirlineDAO @Override public List<AirlineEntity> findAll() { return this.entityManager.createQuery("from AirlineEntity").getResultList(); }
0
58bc1fb848bd80124240cda023b7ddec
e1a2767b3dc9e15ff72b2d6d9f865772
Turns on the Collision Rects for all collide-able images on the screen
{ for (list<Drawable*>::iterator i = drawables->begin(); i != drawables->end(); i++) if ((*i)->getCollideFlag()) { (*i)->activate(); break; } }
0
38ae16dc633e9a879aa08bdb36b8728e
24d9397b632ba9bd717e19e3af076180
顺序栈的JS实现 这里直接使用了JS内置的Array对象
var items = []; this.push = function (item) { items.push(item); } this.pop = function () { return items.pop(); } this.top = function () { return items[items.length - 1]; } this.isEmpty = function () { return items.length === 0; } this.size = funct...
1
aa0d3ab990a3fa4f88ebad6d1c10c073
c407692c63e1c3813295d5e1619ff8c1
Used To Calculate amount of Direct/Indirect Ballons plugged in Ropes(Need this to know correct amount of force needed to void ropes mass
def size_OtherPedals(StemY): SizeOtherPedals=(8-StemY//20) return SizeOtherPedals
0
1f1d75a1dd54dcbbbb3b2f2141450f4f
47f2d2a0dcd5dbf3fa0198b5fedd13d0
查找当前用户(员工号)今天已完成作业
@Select("select task_id as taskId,task_name as taskName,task_lable_name as taskLableName,\n" + "task_user_id as taskUserId,task_tree_name as taskTreeName,\n" + "task_create_time as taskCreateTime,task_time_size as taskTimeSize,\n" + "task_time_success as taskTimeSuccess,task_time_fai...
0
fa297a0b64b1d52bd41b1f9e2f955524
b86eb8a4c09424132cefb9eb5b48c099
Calls ILGenerator.Emit(<see cref="OpCodes.Call"/>, methodInfo) that calls the method indicated by the passed method descriptor.
namespace NProxy.Core.Internal.Reflection.Emit internal static class ILGeneratorExtensions public static void EmitCall(this ILGenerator ilGenerator, MethodInfo methodInfo) { if (ilGenerator == null) throw new ArgumentNullException("ilGenerator"); if (methodInfo == nul...
1
7aedbf521df6a4cb12df3e1528ca9220
575b062e86c1a207980c3f294c2ea298
Wait Status; Wait for a new trajectory to follow.
void RobotBrain::stateWait() { m_bstate = BSTATE_WAIT; m_left->normal(); m_right->normal(); m_timeline.reset(); }
1
1f56acb0a690ee74e30b4aaeb833f5f5
e680d4b3b6b4af24678c00ca97f56ecb
This method should populate the lstAuthor DropDownList with the authors in the pubs database Author names are shown as the text for each ListItem and author IDs are stored as the values See Pages 451-452
public partial class AuthorManager : System.Web.UI.Page protected void DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e) { lstAuthor.DataBind(); }
0
44404c2f6d410280cb7b170f9fe1bf80
870a32bb60f5ce60ddd8676e93e712c1
Возвращает все поля относящиеся к подтематике
namespace DAL.Bll public class AdsFildesData : IDisposable public List<RentalIndividualFieldVM> GetRentalIndividualFieldsBySubCategory(SubCategory subCategory) { if (subCategory.RentalIndividualFields.Count == 0) return GetRentalIndividualFieldsByCategory(subCategory.Category); ...
1
da16d01defcf880d5c65e3ef47d31b79
3049e02673772ba02dcec0398803af59
根据用户Id,按时间倒序获取未读系统消息
UserSystemMessageExample query = new UserSystemMessageExample() .addCriteria(UserSystemMessageExample.newCriteria().andUserIdEqualTo(userId)) .withOrderByClause(UserSystemMessageExample.id + " desc") .withLimit(1); List<UserSystemMessage> userSystemMessage...
1
45aa1de8360c377035169ea03fbabb08
b02ad67429ada6255f7456104cebe93e
# fetch rows with duplicates
all_dup_check_checker <- function(all_checks) { foo <- all_checks %>% group_by(SPP, NO., DATE) %>% summarise(num.dups = n())%>% ungroup() %>% filter(num.dups > 1) %>% mutate(NO. = as.character(NO.)) %>% left_join(all_checks, by = c("SPP", "NO.", "DATE")) %>% arrange(NO., DATE) }
1
fc4bd2f15f69017ce67b4e0f20632e37
ed05a00685c8b971fc3537f92f11eb0a
アクセスチェック用DataProvider ### 戻り値
class LinksControllerAddTest extends WorkflowControllerAddTest public function dataProviderAddPost() { $data = $this->__data(); $results = array(); $results[0] = array( 'data' => $data, 'role' => null, 'urlOptions' => array( 'frame_id' => $data['Frame']['id'], 'block_id' => $data['Block']['id'] )...
1
59fb12b17cbd45b123c22e2f941bfe53
187ec2ccafe377fc2ce16984ba3ee0d1
Deletes an existing test case. Please note: Deleting a test case cannot be undone and also permanently deletes all test results in active test runs (i.e. test runs that haven't been closed (archived) yet).
@Service @Stateless public class TestService public void deleteTestCase(final UseCase useCase) throws UCMException { try { CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<TestCase> c = cb.createQuery(TestCase.class); Root<TestCase> obj = c.from(TestCase.class); c.select(obj).where(cb.equal(o...
1
7907f0deff7517a0a2a13f326674fb90
dd58733a565f2146e7a791d9f95388c7
Free the memory of the pipe.
CConnectionPipe::~CConnectionPipe () { LOGDEBUG (TEXT ("Destroying connection pipe")); delete m_poPipe; }
1
165f57ba8b076f8110a571928fc89d1e
f7ed96ecb1945b39d58b29aa97ae2d35
Returns the meta object for class '{@link org.xtext.DOE.experimentOntology.DependentVariables <em>Dependent Variables</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_TransformationDependency_variableId_feature"), getString("_UI_PropertyDescriptor_description", "_UI_TransformationDependency_variab...
0
30db41bec1c6897d9e6280c66fbc7960
95c381c52fc9cf71851db9fecf845119
根据table名称刷新页面
function reload_table() { tableIns.reload({ url: "/parameter/readPages.action?temp=" + Math.random(), where: { parameterName: $("#parameterName").val(), parameterType: $("#parameterType").val() } }); }
0
8afe26bedbc3d29079220f76d6b94b01
e2022fa73a0eca8ac7eaa95450597768
If applicable, returns the number of ticks the punishment calls for the criminal to remain in jail.
public int getTicksBitsToDrop() { return this.ticksBitsToDrop; }
0
8ef3d5a8479a70307c0789c7b009b9be
5f4b3bb7fa6a2e36934019bd95a57766
clears the values of signings for testing purposes
export class ShareviewComponent implements OnInit, OnDestroy clearsign() { this.signatureImage = null; this.cropimageData = null; this.croppedImage = null; this.signatureValidation = false }
1
db1bd04ea2c6241e66b7c4f28661ec7c
cc8fe50b2305b1414e352d4766a059a5
Créez la date d’aujourd’hui et affichez-la de façon complète puis de façon jour/mois/année)
void dtoday(T_Date *date) { time_t now = time(NULL); struct tm tm_now = *localtime(&now); date->day = tm_now.tm_wday; date->jour = tm_now.tm_mday; date->mois = tm_now.tm_mon + 1; date->annee = 1900 + tm_now.tm_year; }
0
2ecc8d6e512abac6dba5a5bf46d641a5
20607020d15186aef5cb1f954baf0a56
如果节点下面有子节点则不显示删除按钮
function pageInit() function showRemoveBtn(treeId, treeNode) { return treeNode.name != '菜单管理' && treeNode.name != '角色管理' && treeNode.name != '用户管理' && treeNode.pId != '-1'; }
0
b862ae5787d76adafcc19f81e92dd59a
c988e5a91e1cf64124da9b531a63e75a
#% divide x and realclass in test and training patterns by random split
samplesCnt = nrow(set) testCnt = round(samplesCnt*testPart) idxs = sample(samplesCnt, testCnt) return(list(set[idxs,], set[-idxs,])) }
1
e87ac0b600a9a6b31da9611c27226def
f2aceb72434a294a90e8c5cb1ea1fdb7
Метод инициаоизирует базу стран в форме (таблице)
self.__arrEntity.clear() self.__arrColumn.clear() arrColumn = ["Код страны", "Название"] self.__arrColumn = arrColumn self.__id.clear() self.__id.clear() AllEntityСortege = self.__resourceManager.GetListCountrySQL() for it in AllEntityСortege: ...
1
8627c5a7497312ecc1c12d61226a9120
dbd8d3c581c2b3d7f92bec2713dc0a2d
Called once we hit EndOfMessage, and checks whether we can re-use this state machine and connection or not, and if not, closes the socket and state machine.
{ if (_reusable_header.payload_len) { return 0; } _last_send_time++; struct recyclr_msg_header response_header; response_header.message_code = MessageCode::MSG_CODE_ACK_OPEN_CONNECTION; response_header.destination = _last_send_time; response_header.priority = 0; response_header.m...
0
1fe0427efbde43e2e72ec7c2dcfb8de7
3a4fd2fb36b2d7c1066ada02687d4890
Accessor for how far the property is from campus
public final class MapField public Integer getProximity() { return proximity; }
1