query_id
string
corpus_id
string
query
string
code
string
label
int64
fe3a446929cb73082b1564cb263e3895
3d7f2cc6958555b6ee9897775c10878d
Returns recursively retireved document values with their matching collections.
namespace Divan public class CouchGenericViewResult : CouchViewResult public IEnumerable<T> ValueDocumentsWithIds<T>() where T : ICouchDocument, new() { return RetrieveDocumentsWithIds<T>("value"); }
0
d159f718feed7a050dfe0783e0d506c3
29c37bef5eb244f66b492bf2b87f2618
同步限制用药信息
$items_id=$this->input->get_post('items_id'); $pro_id=$this->input->get_post('pro_id'); $yp_cx_cycle=$this->input->get_post('yp_cx_cycle'); $yp_cx_drug=$this->input->get_post('yp_cx_drug'); $yp_cx_qh=$this->input->get_post('yp_cx_qh'); $yp_cx_time=$this->input->get_post('yp_cx_time'); $yp_cx_ttype=...
1
996962113f7ad2e4bbcdb619890e68fb
4f4e6dfd01d172ac3255798e9e2aa952
自定义函数将字符串转化为int32输出
namespace TLZ.LuceneNet partial class LuceneBus public static int StrToInt32(string str) { int result = 0; Int32.TryParse(str, out result); return result; }
1
384729ef5e4fd01e5771bcbb73e9b12e
c3d1cea3f048c8d245b9e7aa4824741d
日本語教育語彙表を読込み、語彙の難易度の列を数値に変換する
function loadJapanese() { return xhttp('/details/index_jp.txt').then(function (text) { let arr = text.split(/\n/); arr.splice(300, 1); data.japanese = arr; }); }
0
94f09be62b9cac9d151c00e77e10592e
766dba19cad2acdacef2f1f6f382e5d1
この画面に遷移してきたときに呼び出されるメソッド
namespace Sample01.ViewModels public class ViewUsrCtrlCViewModel : BindableBase, IConfirmNavigationRequest //public class ViewUsrCtrlCViewModel : BindableBase public void OnNavigatedTo(NavigationContext navigationContext) { }
1
3ff85d5659dd01f3dda1f531b705678b
ab97c4c43828194b5aab3826cebc9418
Notifies the end of the <i>RDF</i> stream.
{ if (onEndOfStream != null) { onEndOfStream (); } }
1
3d0d8ec878eb1e9f25cdfba14342672c
97df6e7303a3a2a17152fa0aec802f0b
Test of getIdUsuario method, of class Usuario.
public class AsistenciaTest @Test public void testGetId() { System.out.println("getId"); Asistencia instance = new Asistencia(); int expResult = 0; int result = instance.getId(); assertEquals(expResult, result); }
0
9af682414315f9a5ba642a85215e400d
054eeb8d379edc318e52233ff483b434
See if adding one more message would mean we're still below safe threshold
namespace Assets.Server public class UDPPacket public bool SafeToAdd(int size) { return this.Size + size < SAFE_PAYLOAD; }
1
281d6f5e898ca470eb4de5f809db3f46
7af7ace7bc55dd9b817d8ff5db3b9414
get the number of tests that was blocked within this suite document
class Buffet def num_tests `grep -r " it" #{Settings.working_dir}/spec/ | wc`.to_i end
0
1a1842e76391c39e9bc92b7025678399
a08081fd07ae21c847622f4df66261bd
Основная функция вычисляющая площадь объединения прямоугольников.
{ double n = 0, maxValue = -INFINITY; Setter set; cin >> n; for (int i = 0; i < n; i++) { double rectArea = set.Rect()->getRectArea(); if (maxValue < rectArea) maxValue = rectArea; } return maxValue; }
0
ba7e76016457f572689136819efa36f6
ec7cbc954db4e75e704febe8d5906a2f
ダンジョンのクリアを記録する
[RequireComponent(typeof(BoxCollider2D))] public class Box : GameLevelObject public override void Record(int move) { if (boxHistory.ContainsKey(move)) boxHistory.Remove(move); BoxRecordData recordData = new BoxRecordData(); recordData.colliderEnabled = boxCollider.enabled; ...
0
d312d183295e14fcf411d4815d6aa1b1
c97e98b9a940fab950408b5c3b7b100b
İşletme için eklenen bir plan bilgisi düzenler.
public void ModifyPlanEngine(PlanEngineDTO dto) { EngineType engineType = _engineTypeRepository.Get(dto.EngineTypeId); Airlines airlines = _airlinesRepository.Get(dto.AirlinesId); PlanEngine updatePlanEngine = _planEngineRepository.Get(dto.Id); if (updateP...
1
5af1fd1f93ebfee05baf3356e82b3588
d91936e3ad588b421329d04296b9e0ee
ATB管理
void SwitchAT() { char key = 0; system("stty -icanon -echo"); while (ESC != key) { scanf("%c", &key); switch (key) { case 'A': case 'a': PrintA(); break; case 'T': case 't': PrintT(); break; } } system ("stty icanon echo"); }
0
60fcdf31dfb115c0f3b7cc0ec626b433
1e28ca7323f5aba9166830a3b7e7d461
Moves an arrow from its old position to a new.
state = self._state if pos != state.arrow_position: state.arrow_position = pos self._updateMask() if self.isVisible(): self.update()
1
875f6ac9351f485968b8e860d2a8371a
64c77570d966415cb25dd902b85f33d3
Converts a config path to a file path
def expandPath(config, path): path = path.replace('${assets}', config.assetsdir) return os.path.abspath(path)
1
8a61b3de4b4c8f80bc217445bb1c9975
3f10da61fb5cc2aead31958bcc11e52e
destructorul care va distruge vectorul alocat dinamic
VectorInt::~VectorInt(){ delete [] elements; }
1
463db2cc3af555047f2cf0880fa53308
e80fc0c4061b3c25ac2a258ef9458637
Get a translation key for an enum value.
const enumKey = getEnumKeyByEnumValue(myEnum, enumValue); return `${enumName ? `${enumName}.` : ''}${enumKey}`; }
1
eb26820322207669d4b6ec197e9b0987
60134922105cf89d5a96a039e5fbecf4
Log metrics using tensorflow summary writer. Can Then visualize using TensorBoard
class Logger(object): def __init__(self, log_dir: str): self.writer = tf.summary.FileWriter(log_dir)
1
0b1b5d6e521871e37a56192f40cc70b3
a672049f1dccd786bbc3078cb3e8e9d6
给定一些元素, 返回在当前可视区域的元素的索引列表, 前后顺序不变
export class GroupBase extends UIComponent implements IViewport{ public setVirtualElementIndicesInView(startIndex:number,endIndex:number):void{ }
0
694634e98db26be2f8ffc1e8efb60894
913e90ae4c5f4b089533d1b2c9d2ffc2
満足度の設定。
class HueLight implements JsonSerializable public function setSatisfaction($newSatisfaction) { if ( $newSatisfaction < HueLight::SATISFACTION_LOWEST || $newSatisfaction > HueLight::SATISFACTION_HIGHEST ) { throw new InvalidArgumentException( sprintf('Values must be betwee...
1
ee6a62d333a0c3f41781beba23394cb4
cac485939fcda75e57d6269ff5f07f20
根据产线 和 商品获取对应的产能信息
namespace VisualSmart.BizService.Implements.ProBase public class Base_ProductionLinesBizService : EntityBizService<Base_ProductionLines, Base_ProductionLinesDao>, IBase_ProductionLinesBizService public IList<Base_ProductionLines> GetAllDomainByLineNoAndGoodNos(QueryCondition query) { return Enti...
1
15c4fdb52b2d9e74990c75d3e7df0a5b
286d81a6a6988e89f242ee682b1d8c29
LHS == RHS
switch (LHS) { case Primitive: switch (RHS) { case Primitive: return Primitive; case Modifier: return Primitive; case Invalid: return Invalid; } case Modifier: switch (RHS) { ...
0
44d7afc3d5f6d2d32b66b782110eed99
e605725029a56c8efc0682737fe023f6
Возвращает экземпляр класса прав системных пользователей
{ $cache = UserGroupRightsCacheObject::getCache(SUPER_USER_ID); if (empty($cache)) { $cache = new UserGroupRightsCacheObject(); $cache->cache(); } return $cache; }
1
3cd76d56f283348e7962de75b80fd2e6
d037ff049ae52cb150c54f4fd618f916
Generate a select statement from the columns that actually exist in the database table. This method is intended to be used when exporting to a GTFS and eventually generates the select all with each individual field and applicable transformations listed out.
namespace Otto.ClassBuilder string GenerateSelect(string jQuery, string name);
0
cfcbe25e8674127808d201caa3d2b5f6
839492fa88f70922716702f374f5722c
Determines whether the specified character is a space character.
namespace SIL.FieldWorks.Common.FwUtils public static class Icu public static bool IsSpace(int characterCode) { using (new RestrictAccess()) { return u_isspace(characterCode); } }
1
44f6673375ca2b447bf2f3fbb6c720de
7c4608332cc31336fc03103b41dc7de2
获取起运及时率
{ $delivered_count = $this->deliveredCount(); if ($delivered_count == 0) { return 0; } return $this->openUniqCount() / $delivered_count; }
0
325fb53c3873128737e9067587ea1374
dd784de86829135ef8022b1132c89b7e
Set the operation callback.
const bithenge_expression_ops_t *ops) { assert(ops); assert(ops->evaluate); assert(ops->destroy); if (bithenge_should_fail()) return ENOMEM; self->ops = ops; self->refs = 1; return EOK; }
1
9a191553d1857ff8d4d392e1ad5e3246
85c20b1e76457053fa234a6108eb8064
Metoda vrací souřadnici Y polohy monstra
public class PentagonAdapter implements IShape{ @Override public double getY() { return pentagon.getY(); }
1
6a892c73b7958f0ac9db3ca0adf35f45
cc1405ab8cca2b8c79335b77c74ce29c
luna.Sound:resume()
static int audio_resume(lua_State *L) { remote_CCall(L, &_audio_resume); return 1; }
1
b70ad38e10c9ea7f82088a031033a7a7
9082a4c3ea56cae560995506f11bdcd8
读取service yaml文件
class Processor(object): # # 构造函数 # def __parse_yml(self): with open(self.path, 'r') as f: self.object = yaml.safe_load(f)['services']
1
ad42ed2051699220ee0c5e27ff825b55
d63f00e73d5951f6ef0b708cf974f7ca
是否是UP宝可梦
function BabyModel:IsMaxUpLv(pItem) local upLevel = pItem.extra local equipCfg = Config.db_baby_equip[pItem.id] local slot = equipCfg.slot local upKey = slot .. "@" .. upLevel + 1 local cfg = Config.db_baby_equip_level[upKey] if not cfg then return true end return false end
0
b4e107d388844e4517b82c3c2403c02d
2ea864a9876a5ea0e325fca8c8f89873
Formats a <see cref="IMarkupExtensionInfo"/>.
{ const string @null = "<null>"; return string.Format( en_us.Culture, "{{ \"{0}\": \"{1}\", \"{2}\": \"{3}\", \"{4}\": \"{5}\", \"{6}\": \"{7}\", \"{8}\": \"{9}\", \"{10}\": [{11}], \"{12}\": [{13}] }}", nameof(this.Name), t...
1
0c49631e56e21a9f7af62edbe997bf4b
dab3935562879ee481128da19b77c828
导出多分辨率icon
{ bool result = false; DbTransaction trans = baseDal.CreateTransaction(); if(trans != null) { string condition = string.Format("IconSize = {0}", size); baseDal.DeleteByCondition(condition, trans); foreach (CListItem ...
0
9725547a0d4b149ca9772ab36ee8d8c0
3ff9962d5860179c7a2d071aee717499
Removes the specified player from the match
const teamColor = player.teamColor; const teamPlayers = players[ teamColor ]; for ( let i = 0; i < teamPlayers.length; i++ ) { if ( player === teamPlayers[ i ] ) { teamPlayers.splice( i, 1 ); } } }
1
efd45a44d7a6d8c1b837b8420cb5ada3
70476d834a8c1d39bf4707721cd16baa
Returns the meta object for the containment reference '{@link nqc.AcquireStatement#getBody <em>Body</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getBody();
1
33505ac89a554b194275ffa66250e949
ab6f75e4fc68b48d39503408516c8199
Visit a parse tree produced by Java9_v2Parser#requiresModifier.
T visitFieldModifier(JavaParser.FieldModifierContext ctx);
0
b49d521aaaabc8b4c2296e99d7b3f005
e2609a62000592664bd02031c2e6e05b
Computes the fraction of reciprocal links to total number of links. Both weighted and unweighted input matrices are permitted. Weights are ignored for the calculation.
def reciprocity_ratio(gd): reciprocal = 0.0 edge_list = gd.get_edgelist() for i in it.permutations(range(gd.vcount()),2): if i in edge_list and i[::-1] in edge_list: reciprocal += 1.0 return reciprocal/gd.ecount()
1
0eb1056d3358e2a34e1506a4a2328d46
dd8518ddf136acef29be52c8974773e9
Может ли пользователь встать в лидеры
abstract class LayoutWebPage extends \Framework\Page\LayoutWebPage public function needToShowLeaders() { if ($this->getWebUser()->isReal()) { $TutorialMissions = TutorialMissions::getInstance($this->getWebUser()->getUserObject()); if ($TutorialMissions->isEnabled() && !$TutorialMissions-...
0
f3f46eed9c0d523cca711a48e1ae7e2e
26fde5d1d8f64eb8840bdbfb9190a638
Sets the name of the block that should execute next.
public void startBlock( String blockName );
1
5fed3e4cdadc21e7eaff3bbb92e9b075
c4d1d874f43927dd7a072c62f2599d8f
! \brief Check if DHCP has configured our interface \deprecated Applications should use NutDhcpStatus().
BOOL lwipStartDHCP(LPVOID pL3Interface) { struct netif* pif = (struct netif*)pL3Interface; if (NULL == pif) { BUG(); } dhcp_start(pif); return TRUE; }
0
722287bba4847f0bb25c53eacfa5511e
4258e6873ff09a080c5a5864efa04a04
Show file open dialog with the file browser open by default
namespace LcmsSpectator.DialogServices string OpenFile(string defaultExt, string filter);
0
30a38beb3cf01f59f556236f7f707fde
6f613d85283774d127b46c37efee7a46
Function to check if the number is a happy number or not
if n == 1: return True if n == 4: return False res = 0 for t in str(n): res += int(t) ** 2 return self.isHappy(res)
1
1926359aa101b482e51ad1a25dd48070
55ea27012e8f76ab90aa7f300da6dde1
@brief Commit the current mode to flash for use after a power cycle.
void flash_commit_buf(struct flash_buf *dst_buf) { if (dst_buf->partial_count != 0) { while (dst_buf->partial_count < 4) { dst_buf->partial_data[dst_buf->partial_count++] = 0; } dst_buf->partial_count = 0; flash_write_word(dst_buf, dst_buf->partial_data); } }
1
38672244bbb69b33365c38d4f84f4710
483181b2b3a6f3f04a4c7d6e177edd7c
Show the individual email and hide other views
function view_email(email) { if (`${email.read}` == "false") { fetch(`/emails/${email.id}`, { method: 'PUT', body: JSON.stringify({ read: true }) }) } document.querySelector('#emails-view').style.display = 'none'; document.querySelector('#compose-view').style.displa...
1
d48723a0601359a1af8eac93a599a9ed
f70cc54cfbdb9cc8caf433d2da130c9b
Gets whether or not to apply self-similarity to the volume of the germ notes. For example, if true, a germ with a middle note accent would generate a middle section louder than the surrounding sections, with the middle note of that section still louder. notes
public class TestGeometryManagement extends UIXPanel final public void setStretchNotes(String stretchNotes) { setProperty(STRETCH_NOTES_KEY, stretchNotes); }
0
ff21f2f11e7a2f91fe21901502fff2d3
3875f2dbc1e947ae3d327bbbee01974b
Format collection class name from mapper name
class Sunny_DataMapper_MapperAbstract protected function _formatCollectionName($name) { $parts = explode('_', $name); $parts[count($parts) - 2] = 'Collection'; return implode('_', $parts); }
1
854cc09a46fde7805a127ef391495842
46d4b0776b63ef31f4005703be9d595f
Print AST enum type specifier.
{ int rc; if (fprintf(f, "stdecln(") < 0) return EIO; rc = ast_tree_print(&stdecln->dspecs->node, f); if (rc != EOK) return rc; if (fprintf(f, ", ") < 0) return EIO; rc = ast_idlist_print(stdecln->idlist, f); if (rc != EOK) return rc; if (fprintf(f, ")") < 0) return EIO; return EOK; }
0
edf108866b8e21d823bd3e39a42760ea
cdf28485f957643e3f8540366c698805
Create a db connection URL that can be used in `new Sequelize(db)`
database_config = DATABASES.get(key) if key else DATABASES.get(DATABASES_DEFAULT_KEY) engine = database_config.get('ENGINE') or DATABASES_DEFAULT_ENGINE driver = database_config.get('DRIVER') or DATABASES_DEFAULT_DRIVER host = database_config.get('HOST') or DATABASES_DEFAULT_HOST port = database_con...
1
4d8c01177e65dda8fa359e7f82374bd8
cee27fd14294d8015f37ca3d943400d0
単独テーブルかどうか確認
namespace _3DCAM.MurataKun class OpenFileMT private bool IsTextFile(string filePath) { FileStream file = new FileStream(filePath, FileMode.Open, FileAccess.Read); byte[] byteData = new byte[1]; while (file.Read(byteData, 0, byteData.Length) > 0) { ...
0
11eb5042b69a631b91e6e6b404776cdd
44596aa902cf3de46ff4b5de214bea7d
Load transaction metadata from file containing transaction body.
public class KettleRepositoryLoader public static synchronized TransMeta loadTransFile(String filePath) throws KettleException { TransMeta transMeta = null; transMeta = new TransMeta(filePath); return transMeta; }
1
3f71162927cc3ca7f8b00afd37bb8386
5b94245d9444e528a57d8fa1ec691fc0
响应该状态下收到的消息,决定下一步迁移的状态
if self.checkACK == 1: self.backoffStage = Global.contentionWindow Global.success += 1 self.transmmitSuccessPerCycle += 1 self.queuingData -= 1 if self.queuingData > 0: if self.channelBusyCount > 0: self.state = Glob...
1
4e7febb7b6e9a77a58ade298b80dc819
c6934572a5685071b6cf0d56dd52969c
计算PK所处阶段
pkResp = pkStateInterceptor(req.getUserId(), req.getRoleId()); if (pkResp != null){ channel.writeAndFlush(pkResp); return; } Role role = LocalUserMap.getUserRoleMap().get(req.getUserId()); ScheduledFuture future = RoleInvitePKCache.getPkFutureMap().get(rol...
0
e973c9952065ef574f2af135db05ff47
58241a2b8176ec32506ff479c0dd8315
新增游船数据
public YxShipOperation insertYxShipOperation(Map<String, Object> map) { YxShipOperation item = new YxShipOperation(); String uuid = SnowflakeUtil.getOrderId(datacenterId); item.setBatchNo(uuid); YxShipInfo shipInfo = (YxShipInfo)map.get("shipInfo"); item.setShipId(shipInfo.ge...
1
9b81240bbf215c8955c0937584376a01
a0081f9c575e1589faa034a3768c1a65
模拟点击鼠标事件,实现特欧皇弹幕特效
self.driver.get('http://sahitest.com/demo/clicks.htm') self.driver.maximize_window() self.driver.implicitly_wait(3) cl = self.driver.find_element(By.CSS_SELECTOR,'[onclick="cl(event)"]') dbl = self.driver.find_element(By.XPATH,'//input[@ondblclick="dcl(event)"]') rl = sel...
0
c7ab208e2058f2cc0d94184c79f10d0b
98d4ece8c31136ee62502449f41098ef
判断循环队列是不是空的,如果为空,返回1,如果不空,返回0
{ if (SCQ.front == SCQ.rear) { return 1; } else { return 0; } }
1
f2bf57da6c76ef22d2e605d5c9f5b3bd
452412fb633f3d119f29dd6c6edd7bdb
Загружает лучший результат из настроек
public class GameCollOverScr : MonoBehaviour public void LoadBest() { if (PlayerPrefs.HasKey("OldCollBest")) { OldCollBest = PlayerPrefs.GetInt("OldCollBest"); } }
1
85b0e0710f42baf781f9411eb1a6e3b0
d31b1086c62615413d66fc50ef410832
Finishes the asynchronous execution of the ListResourceProfileDetections operation.
namespace Amazon.FMS ListDiscoveredResourcesResponse EndListDiscoveredResources(IAsyncResult asyncResult);
0
e23e4864f8f4262be1118933db546924
b9903b4e485b802805b8cd53525131f0
takes in a batch of experiences and returns numpy arrays for each field
class ACAgent(BaseAgent): def _preprocess_experience(self, experience_batch): return experience_batch
0
206e68860f48bbb0209d9e8e8450399d
2c3237bc0075854c8d80a01b0ee663c6
Function to count the number of likes for the instance object
{ dynamic parameters = new ExpandoObject(); parameters.q = "SELECT user_id FROM like WHERE object_id=\"" + objectID + "\""; dynamic result = client.Get("fql", parameters); return ((JsonArray)result["data"]).Count; }
1
6a86507385ebc110b2e97be0aebf6311
fa7bad54c3a826fcdd633fd0aebb4a5a
Change the color of the object to specified color
class Item(): def setColor(self, tocolor): self.link._check_connection() tocolor = self.link._check_color(tocolor) command = 'S_Color' self.link._send_line(command) self.link._send_item(self) self.link._send_array(tocolor) self.link._check_status()
1
ccae07807095ffeccd11691cb9f90d2e
40639b882fd5d4707c7fd94dcbc02cff
Valida los campos obligatorios de cada Contacto..
var txtCorreo = document.getElementById('correo').value; var txtTelefono = document.getElementById('telefono').value; if(txtCorreo == null || txtCorreo.length == 0 || /^\s+$/.test(txtCorreo)){ alert('ERROR: El campo correo no debe ir vacío o con espacios en bl...
1
b224e67f19c45f31622957a943112c7d
8086797a9baba7b8d7dfc703599c5f5c
Load bibliography data from HTML into efficient and easy-to-use Javascript structures
if verbose: print( 'Loading bibliography entries.' ) with open( bibtex_fp, 'r' ) as bibtex_file: bibtex_file_str = bibtex_file.read() bibtex_file_str = bibtex_file_str.replace( '\\}', '' ).replace( '\\{', '' ) bibtex_file = io.StringIO( bibtex_file_str ) ...
0
7f26752e793be427eb654451d5ebc6bf
cc4e34a82133db91f2392bdfe06c1059
Repraesentiert ein beliebiges Mitglied der Hochschule.
if (schueler==null ) return; schuelerListe.add(schueler); if (schueler.getID() >= IDcount) { IDcount = schueler.getID() + 1; } }
0
2080a62781187dba782d9de06b010094
42fad2b956297f21df4ec95ba77103c0
Reduced to two dimensions by LDA
lda = LinearDiscriminantAnalysis(n_components=2) lda_data = lda.fit(self.train_data[self.feature_names], self.train_data[self.outcome_name]).transform(self.train_data[self.feature_names]) print("Explained variance with 2 components: ", lda.explained_variance_ratio_) ...
1
0ac1ccd9fd56c0584c87e3bc42259bfd
a2503cd08d8cb3d5bba86d9342366f45
返回地址addr处存储的T类型的值
inline class NativeAddress<T>(val value: Long) operator fun get(address: Int): T = (this + address).deRef()
1
713cba03e1b3abb6ee0a867de4c0a5e1
0bc14b6e1acea69b389417194cc93c98
The current problem tableau.
class LpProblem(): def __init__(self, sense='max'): self.Z = 0 self.sense = sense self.table = [] self.tableau = None self.two_phase = False self.status = "Unsolved"
1
50f518d889bee564124151cf23b0c183
18d90266abab7bfe84cd2838225e8cc1
这个服务器的作用是,当我点击用户界面的每个业务超链接的时候,请求会发送到此服务器,每个不同的链接带着不同的参数 服务器获取参数,给不同的参数做不同的业务,返回一个Attribute,页面那边根据获取到的这个Attribute,来在中间的部分 显示不同的页面
public void handleRequest(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { request.setAttribute("message", "这是新的request testing..."); request.getRequestDispatcher("/WEB-INF/jsp/hello.jsp").forward(request,response); }
0
fd551e741ed9cb83a0b3a47afe5e6f7e
63a82c966b1d15a659df49f32922c57f
This method controls if there are two different stations entered.
if (selectedStations.size() >= 2) { m_pFindRouteButton.setEnabled(true); } else { m_pFindRouteButton.setEnabled(false); } }
1
3015325c2760915176019e492c006488
ec9e5cad04149bee1dad6d848f0094e0
Modifies the set to contain only elements that are present in the set and in the specified <paramref name="other"/> collection.
namespace CSharpTest.Net.Collections TSET UnionWith(TSET other);
0
9e0fc94807d5e5784078dcc1f7c61f02
16fb9965e708f7a918c14e87120ddb06
Load public key and private key from files using private key path and public key path e.g ssh_cl = j.clients.sshkey.get("ssh_test") ssh_cl.load_from_file_system()
class RSAProvider(BaseProvider): def __get_key_by_path(self, public_path=None, private_path=None, passphrase=None): if public_path is None or private_path is None: return None, None encrypt_obj, decrypt_obj = None, None if os.path.exists(public_path) and os.path.exists(private_path):...
1
87966fd50bbd4064974bb28caddbcfdc
44196c2a2a21b262802c6a15aa01585f
Get current reference time value (seconds since epoch)
class Time(Ice.Object): def getValue(self, current=None): pass
0
2e01ed742eaedc1894348590a0f69424
2c955837a20119b554b5515e3d53d4c4
Returns the details of the particular AWS account Returns the details of the particular AWS account
class CSPMRegistration(ServiceClass): def get_aws_account(self: object, parameters: dict = None, **kwargs) -> dict: return process_service_request( calling_object=self, endpoints=Endpoints, operation_id="GetCSPMAwsAccount", keywords=kwargs, params=para...
1
744003718454e9c0d060efbec07b77eb
8db1a2072eaecbcb373497c3cba32577
Map的value值降序排序
public class MapTest @Test public void test1() { data.entrySet() .parallelStream() .sorted((o1, o2) -> (o2.getValue()).compareTo(o1.getValue())) .forEach(System.err::println); }
1
0422a93b4e0460d03647df5cc4e01a54
2802c1629e52bbf6e4a1a35a2811e44b
INPUT: list of tuples containing input, output directories OUTPUT: list of tuples containing input, output file names
def read_input_file(): fname_list = [] with open('data/input.txt', 'r') as inFile: for line in inFile: if line[:5] == 'mturk': items = line.strip().split('\t')[1:] for item in items: fname_list.append( (item+'.input', item+'.results') ) return fname_list
1
95bf4b53b3b6239d0f66601fffd95dca
37a2f44dacc9ebb05c8eb0b79ee00cc4
Returns the status of the original variables. Returns a list of integers with length equal to the number of variables in the original problem. Each entry of this list is an attribute of Cplex.presolve.col_status.
class CpoSolveResult(CpoRunResult): def get_solve_status(self): return self.solve_status
0
bbb3460b12ad36148012ff463deb4642
e80069ee2d96ab9f76c9c83263428771
Test of containsIterative method, of class BinarySearchTree.
public class SimpleSetPerformanceAnalyzer private static void runTest4() { testContains(data1, TEST4_VALUE, TEST4_MSG); }
0
4291bf1753b1cea6bd23e88ad9d60610
7d9bda77853df9dca9c755a8689e855a
Mark indicated room with a map color.
public class MapActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener public void changeRoomColour(int roomTo, int bgDrawable){ MapView map = findViewById(R.id.mapView); String roomToString = Integer.toString(roomTo); VectorChildFinder vector = new VectorChildFinder(ge...
1
7f585d12c1754d1441e4c1f8539bb5c2
e374881c8b43037a54d1bbe719baae6c
Polling mode SPI master testing code.
{ uint32_t cmd; uint32_t block; uint32_t i; SpiMasterInitialize(); while(1) { cmd = CMD_TEST; printf("-> Master sending CMD_TEST... \n\r"); SpiMasterTransfer(&cmd, 4, 0, 0); if (cmd == RC_RDY) { printf(" <- Slave response RC_SYN, RC_RDY \n\r"); ...
1
edf6a829518e1900ecfae1d35f1f3e1d
83b1d91f4ea179b4eff0e128234cafe5
next | n Skip this hunk, go to the next one.
class SimulationConsole(cmd.Cmd): def do_next(self, arg): self.skip_half = True self.parse_next(arg)
1
8f04e7491cc75af35af43e7aff037aa4
48cb2c7336002423dba5b2a13e1d0a0e
Verifica que todas las casillas del tablero están iluminadas. Retorna false en caso contrario
{ List<LightBlock> llb = this.getBlocksByType(LightBlock.class); boolean win = true; for(LightBlock lb : llb) win = win && lb.getLight(); return win; }
1
a45239eba11804d3617877ee28f73da4
67b8277c7f61de79fd9a4876a279e931
通过ID获取主舰数据
function getShipInfoById( shipId ) return _dbShip.getDataById(tonumber(shipId)) end
1
a57b607dafb454987642df9e6297c2b4
8d9093a5e55aceec4d3fb051e4329646
Toggles whether a specific field allows a preceding zero.
def toggleNumberOfDigits(*args): paddingFieldStatus = cmds.intField('paddingField', query=True, enable=True) cmds.intField('paddingField', edit=True, en=not paddingFieldStatus)
0
d2830c53d5032e55f15ddf0324ead488
d306fcbfd542a38d80fb030697dfc184
Get historyValidInterception
{ if (!is_array($this->getStorage()->history)) { $this->getStorage()->history = array(); } return $this->getStorage()->history; }
0
515938a5db26170ba015bd3ad3c34eab
7624044d151d6d118ff2cf9aa591dab7
Convert a sparse matrix from triplet to column format.
if not sp.isspmatrix_coo(mx): mx = mx.tocoo() coords = np.vstack((mx.row, mx.col)).transpose() values = mx.data shape = mx.shape return coords, values, shape
0
f2d87ebe2cb00a421a543dabad1301d0
1aa768e704acfebec7920e23a1b21363
Ham tinh tich cac phan tu trong danh sach
EquationList cycler = history; int product = 1; while (cycler != null) { product = product * cycler.result; cycler = cycler.next; } return product; }
1
644615832ae967451d8b850f04f8bf50
3a45ea5aad04f3cd43e52310cf55626f
根据用户ID获取默认的角色.
namespace Erris.BusinessLayer.User public class AccountBL : ErrisPLBaseBL<ErrisPLDataContext, aspnet_Membership> public aspnet_Role GetDefaultRole(Guid userId) { return _getUserDefaultRole(Context, userId); }
1
d85d5cfe6ef721168197ac99f329dec8
d9dd998d167aa620dcd8b64135526573
Applies changes and returns to previous scene.
namespace AllChemist.Model public class World public void ApplyChanges() { OnWorldChange?.Invoke(this, new DrawWorldArgs(this)); Delta.Clear(); }
0
fa470c7650590feab4112d1cf2d95115
0fd9297f036184d65ebbba4cae3dc12b
跳转到 productGroup 或者 toPic
let type = e.currentTarget.dataset.type let pro_detail = JSON.stringify(e.currentTarget.dataset.detail) wx.navigateTo({ url: '../addEditProduct/addEditProduct?type=' + 2 + '&pro_type=' + type + '&pro_detail=' + pro_detail }) }
0
bf2d23839cb29067285961b4e4ffd779
dab9c15d9a2415c3b22d167040d7b2ca
Determine the "plural" index given a plural form and a number.
{ ulong n = (ulong)Math.Abs(count); switch (plural_form) { default: throw new NotReachedException(); case 0: return n != 1 ? 1 : 0; case 1: return 0; case 2: return n > 1 ? 1 : 0; case 3: return n % 10 == 1 && n % 100 != 11 ? 0 : n != 0 ? 1 : 2; case 4: return n == 1 ? 0 : n == 2 ? 1 : n...
1
07e6cdea7d5645683c1a9515ac3991ce
f1e2f42c71ed6991a72aa2282055f17e
Set the target temperature for the heated lid, in °C.
public class ControllerDeviceBaseClass extends NamedBaseClass implements ControllerDeviceInterface public void setTd(double Td) { this.Td = Td; }
1
60c49cb439d3bf4bad561968ae5194a1
b18955b22373462970458d638aa39f67
Get the default User-Agent string to use with Guzzle
class Client public static function getDefaultUserAgent() { static $userAgent; if ( !$userAgent ) { $userAgent = 'Lyra/' . static::VERSION . ' PHP ' . PHP_VERSION; } return $userAgent; }
1
9cc06a8f1bc7c57dedc51ee5a90dcafc
b02f24b4fd4ab81b401e7628e0d2ae69
Test that unknown insert modes are ignored.
{ $update_mode = $this->builder_reflection->getProperty('update_mode'); $update_mode->setAccessible(TRUE); $update_mode->setValue($this->builder, array( 'LOW_PRIORITY', 'IGNORE' )); $set = $this->builder_reflection->getProperty('set'); $set->se...
0
e9345a4e9f33353ad7850c70ef1b88d2
24eee5607ff4c59d6c2317cf00e8a6bc
Calculate the expanded offset based on the width of the content.
if (isExpanded) { return instrumentView.supportsPortrait ? (CONTENT_CONTROLS_BUFFER / 2) : 0; } else { if (isMobile) { return CONTENT_VERTICAL_BUFFER_MOBILE / 2; } else { var equalMargins = Math.floor(CONTENT_VERTICAL_BUFFER_DESKTOP / 3); return (hasTopM...
0
debd5d7b62b38694289c30b6e00da72f
635afed8dfa63b47b3b9da2973e3e43f
ask server to send a specific saved bill details and change lables values to the new choosen bill values
export class BilllistComponent implements OnInit showbilldetails(billlist, idx) { this.billdata = billlist this.dataservice.billdata = this.billdata; this.router.navigateByUrl('/billdetails'); }
0
c2e962b3892e63108fc5c6162dcde0c6
dd3ef5fbc0474189cd133711321cfdc3
不允许出现特殊../
local esc=edcb.htmlEscape edcb.htmlEscape=0 path=edcb.Convert('utf-8','utf-8',path):gsub('/+','/') edcb.htmlEscape=esc if not path:find('[\0-\x1f\x7f\\:*?"<>|]') and not path:find('%./') and not path:find('%.$') then return mg.document_root..'\\'..path:gsub('/','\\') end return nil end
1
4ceb7caf301f4c95f09477e05dfc107e
c02ed7d4585401de0b8bfb9ba25ea932
This method builds Uri for requested movie sorting using API key,
Uri movieReviewsUri = Uri.parse(MOVIE_API_URL).buildUpon() .appendEncodedPath(MOVIE_URL) .appendEncodedPath(movieId.toString()) .appendEncodedPath(REVIEW) .appendQueryParameter(API_PARAM, API_KEY) .build(); URL url = null; ...
0
3ff6b6c8b3c17c59f0416226d2439b9f
8644d679dc60e7ef7b2d651cff2bb7bb
실제 값을 반환하는 처리는 상속한 클래스에서 구현
class Base: def _value(self): raise NotImplemented
1
8bd686230f6c646898dc13fea411a068
f8b854fdfe81f5c2d86bbd3ba9aebf67
This method gets the ingredient index in the list of ingredients.
namespace WebApplication1 public partial class WebForm3 : System.Web.UI.Page public Int32 selectIngredient(int i, int a) { Int32 ingredId = 0; SqlCommand selectIngredId = new SqlCommand(" SELECT id FROM Ingredient WHERE name=@name", connn); selectIngredId.Parameters.AddWithValue("@name", recipe[i].Ingredien...
0
c12f14300fa896a6190d7fef068bd67f
47101ee35e94693861f6b55462dea6da
\brief Get a union aggregate type.
Datum bool_to_agtype(PG_FUNCTION_ARGS) { return boolean_to_agtype(PG_GETARG_BOOL(0)); }
0
04b8a6666c9cf7dd9ff13d4e0a4bb638
5bf347123cf8348d9acdf3602961d5cc
Get the amount of recalculations which have been done in the past run.
int getComputationsCount();
1