query_id
string
corpus_id
string
query
string
code
string
label
int64
8f491f707c3b39f3824c6080a67124de
e80b4e9f93cdad38f04f8706371d9648
Return instances covered by the Cond, i.e. those which are not in contradiction with it.
EnumSet<?> getNotCovered();
0
40e5d69693882650ac7a8b324bc3eb5d
cfd532eecd71f59b0b036eff9652d41d
Update the selected message, mark it as read.
function setMessageRead(id, data, successCallback, errorCallback) { http.post(api.setMessageReadApi(id), data, successCallback, errorCallback); }
1
25392e7013f746e75a79b67e6d0d6bfa
373a589435ed1240770916e0ace07fc2
A simple YamlSequecne can be pretty printed.
YamlSeqNode sequenceNode();
0
c8694e47e2015591bd86366326804c32
64f50e548b24d4d7a53c1ca7910b6f88
ETHER software reset
void teensy_reset(void) { cli(); UDCON = 1; USBCON = (1<<FRZCLK); UCSR1B = 0; _delay_ms(5); #if defined(__AVR_AT90USB162__) EIMSK = 0; PCICR = 0; SPCR = 0; ACSR = 0; EECR = 0; TIMSK0 = 0; TIMSK1 = 0; UCSR1B = 0; DDRB = 0; DDRC = 0; DDRD = 0; PORTB = 0; PORTC = 0; PORTD = 0; asm vol...
0
07e73296c8334da95b9daf3b36c0fc63
7a0c84ea9c934e627dc4e1b131359a17
Gets the index for the first character after the hyperlink tags.
namespace Charites.Windows.Mvc.Wrappers public static class TextCompositionEndedEventArgsWrapper public static int StartIndex(this TextCompositionEndedEventArgs e) => Resolver.StartIndex(e);
0
46074597b812ce141b9b8f4bc729825e
dde3944a31044020b8dcd32970c1433f
Get Lower limit of the network bandwidth
class Cell: def ul_bandwidth(self): return self._ul_bandwidth
0
851c2e13d95109eae91623b8ff11ff8a
2c67bffe5a394266556cbab6f2610b8a
Devuelve la cantidad máxima de unidades contruíbles de cierto tipo.
if unit_type not in ALL_UNITS: self._invalid_unit(unit_type) return cost = self.type_cost(unit_type) resource_type = self.__resource_required(unit_type) player_held = self.get_resource(resource_type) return math.floor(player_held / cost)
1
b13f85214551fe04f20aca5f2fb1d8ce
dcd8cb03f179c0a9b544de094842d530
! @brief Returns list of allocated clusters, each cluster contains indexes of objects in list of data. @remark Allocated noise can be returned only after data processing (use method process() before). Otherwise empty list is returned.
std::vector<int>* KMedoidsSolver::getClusters() const { return this->clusters; }
1
651deaade72c7479420a40be0a58aee7
fa1592780bbae7738183ac14ca0331b4
Release a resource from a process
{ for (int p = 0; p < self->__mem->resources[res].wait_queue.length; ++p) { pid_t p_proc = resmgr_wait_dequeue(self, res); if (p_proc == proc) continue; resmgr_wait_enqueue(self, p_proc, res); } }
0
87e6f5d77fdaa3753ec6dc4eb54986fa
b0c8488a066c77a882f30c0d3613b91d
Fetches a list of labs that are available.
String query = "select * from LabTest " + "WHERE is_available = TRUE"; SqlManager manager = new SqlManager(); Connection con = this.connector.getCurrentConnection(); try (Statement stmt = con.createStatement()) { ResultSet rs = stmt.executeQuery(query); manager.readTuples(rs); } return new Query...
1
a53fa0160e525a707578844dad097e1f
bf2786f0ddd8b91297f9def110d74cd2
====TAB 1====
function question1() { answer = prompt('Can I speak French (please enter yes or no)?'); answer = answer.toLowerCase(); if(answer === 'y' || answer ==='yes') { alert('The user guessed "' + answer + '" that I can speak French. Oops wrong answer.'); console.log('The user guessed "' + answer + '" that I can ...
0
2d1dfe0663611754a82bc2efaa417c44
d5f4bbe8d060ccf77db2837e71e78489
Get proper media icon based on the media type, like video-music, or selftext etc..
def poster_icon(poster) if poster.is_a? Owner poster.photo.url(:thumb) rescue '' else if poster.admin? '' elsif poster.vet? poster.sex == 'male' ? '/img/icons/vet-male-bw.png' : '/img/icons/vet-female-bw.png' elsif poster.assistant? '' elsif poster.media? ...
0
2a66f81878eac74b13c9e1321262fb18
a8dcae0f27e0ae4d93dd135eeee9f1b7
Flag one or more user accounts to require a password reset on the user's next login.
class LoginProfile(pulumi.CustomResource): def password_reset_required(self) -> pulumi.Output[Optional[bool]]: return pulumi.get(self, "password_reset_required")
0
433821e787df9d5688b38b604017706b
5e5f694bd59bec89c5d011840e19c504
@brief 获取电源噪声等级, 0x00-0x0A对应噪声等级0-10 @n 该参数能够反映供电电源以及环境对传感器的影响程度。噪声等级越小, 传感器得到的距离值将更精准。
static u32 sonyimx328_get_gain(void) { u8 gain_l = 0; u32 gain = 0; sonyimx328_read_reg(SONYIMX328_ANA_GAIN_REG_L, &gain_l); gain = gain_l; if(_IS_DEBUG_AE) { print_info("enter %s, 0x0205=%x",__func__,gain_l); } return gain; }
0
c39dd7fa8b835f99ccaf98ade6cd0a3c
343780edf6430eef6d01d8d6f8f57486
Returns a Payload class for the requested version
{ if (payloadConfiguration.getClassName() == null) throw new PayloadException("Payload configuration return null class name."); ClassNameBasedLock lock = null; synchronized(classNameBasedLock) { lock = classNameBasedLock.get(payloadConfiguration.getClassName()); ...
0
818180635a8e52bcb48db79c69d7efef
5524ed552de7a3b062b34c375c028ee2
Decode group type 8 data.
impl Parser fn read_group_field(&mut self, mut group: RefMut<V1Group>, field_type: u16, field_size: u32, ) -> Result<(), V1KpdbError> { let db_slice = if field_type == 0x0002 { &self.decrypted_database[self.pos..self.pos + (field_size - 1) as usize] } else { ...
1
22fcf6c37b4c4333cb58409568ebed7e
7a64b776c25a32c037034c489f3c88ff
Get the number of points that the white player was expected to get based on the difference in ratings, using the Elo algorithm.
public class PiRating extends Model public double calculateExpectedHomeGoalDifference() { double difference = 0.0; difference = Math.pow(10, (this.homePiRating / 3)) - 1; return difference; }
0
b1eb561cb5f3b4e377c41192308e5ac2
aa251825eefdd04ac3198fc913db747a
Vybrať určité riadky z tabuľky odpracovane_dni z DB a uložiť do DataGridView pre zobrazenie dát
{ dgvDidToday.AutoGenerateColumns = false; _dsDidToday = BusAdminDaily.QueryDailyOfToday(true); dgvDidToday.DataSource = _dsDidToday.Tables[0].DefaultView; foreach (DataGridViewRow dgvRow in dgvDidToday.SelectedRows) { dgvRow.Selected =...
1
3b234f6ed676f597c387f45609b85edc
306e88a3bc01d5f4b941e5cf300eef86
Create a copy of the confusion matrix.
Matrix copyMatrix = new Matrix(dimension); for (int i = 0; i < dimension; i++) { List listA = arrayList[i]; List listC = listA.copy(); copyMatrix.arrayList[i] = listC; } return copyMatrix; }
1
a3ecf3ececb4d2bf3744028d5ad38b52
5658ac0fc9ff8794be90fcb4271d2dc4
Return the list of currently permitted FTIs.
default PsiClassType @NotNull [] getPermitsListTypes() { PsiReferenceList permitsList = getPermitsList(); if (permitsList != null) { return permitsList.getReferencedTypes(); } return PsiClassType.EMPTY_ARRAY; }
0
9fdc8e01329572b73d0551d88bd221dc
e9e228665fce32a4c5600127dfd74071
按照用户自定义的函数,执行函数列表中的函数
function callBackFun( ... ) print("funTable ** ") print_t(funTable) for k,v in pairs(funTable) do if(v ~= nil)then v() end end end
1
67e3f417806141d5414bff9c33342459
aa8038722b24a50983b41566262f0c48
Labels aren't clickable
void setAllLabelsNonClickable();
1
5f7cb55ce3ed7830633c8cf20f07eae2
83740f6c8457eae7cf488b46bd152a8a
正常的求和函数
for _, v := range a { sum += v } return }
0
efbc6766100859b5d4d5318380a36f9e
fdc4220b15a3446aaa768301c320d213
获取单个商品的多个图片
function getGoodsImages($goods_id,$type,$domain){ $list = D('Common/Goods') -> get_goods_images($goods_id); return $list; }
1
8e0e3e07a663afd33569569b275b011b
3999648a43f8d858a39749ed652fae96
设置子网格索引。
setChildIndex ({commit}, payload) { commit('setChildIndex', payload) }
1
063158e696426b25dd04bcc2ce815358
f90277c0a0577373e8ec5f470014d7c3
User-facing option pricing method using monte-carlo simluations
class OptionsPricer(object): def montecarlo(self, iterations): prices = [] time_step = 1 for i in xrange(iterations): drift = (self.r - 0.5 * (self.v ** 2)) * time_step uncertainty = self.v * np.sqrt(time_step) * np.random.normal(0, 1) price = self.s * np.exp(...
1
24c185c194f9c84a30a137b71a54e862
33c92b1203a408a6725f64dde23aa432
TransactionTreeSetCommitTsData Record the final commit timestamp of transaction entries in the commit log for a transaction and its subtransaction tree, as efficiently as possible. xid is the top level transaction id. subxids is an array of xids of length nsubxids, representing subtransactions in the tree of xid. In va...
void DistributedLog_SetCommittedTree(TransactionId xid, int nxids, TransactionId *xids, DistributedTransactionId distribXid, bool isRedo) { if (!IS_QUERY_DISPATCHER()) { DistributedLog_SetCommittedWithinAPage(1, &xid, distribXid, isRedo); DistributedLog_SetCommittedByPages(nxids, xids, distribXid,...
0
b435f100236d50402f4fe7457b976827
575d617975c60122342cbbbe0a156c6c
Returns the state to transition to.
{ if ($this->active) { if (count($this->transitionLog) == 0) { return null; } } else { if (!$this->isEnded()) { return null; } } return $this->transitionLog[count($this->transitionLog) - 1]->getFromState(...
0
f2362fb7e84ebe9a13c712225fdf4bc7
81e15f14aa29570d4b46c04c7ed5c982
输出国际象棋棋盘
__int64 row, col; for (int i = 0; i < 21; i++) { setConsoleCursorCoordinate(m, n + i); for (int j = 0; j < 18; j++) { row = (__int64)(i / 2) + 1; col = (__int64)(j / 2) + 1; if (i % 2 == 1 && j % 2 == 0 && chessInt[row][col] != 0) { if (chessInt[row][col] >= 1 && chessInt[row][col] <= 7) ...
1
fc4fc5b2b2831d7e3388aab1d5298e69
48c5aef4436e12a9cfa2defe5148e89a
Is the lin op's Gram matrix diagonal (in the frequency domain)?
class MatrixProperties(MatrixRequired): def is_diagonal(self): return self._eval_is_diagonal()
0
20ffb7463fdfb4e43e673eff56f6b0ac
ad749228941d321aca2ec3301a0faabe
перевод списка слов с англ на рус. вход - список слов на английском выход - список слов на русском
slovo=input("Введи слово для перевода:") if slovo in rus_list: ind=rus_list.index(slovo) print(f"{slovo}-{eng_list[ind]}") elif slovo in eng_list: ind=eng_list.index(slovo) print(f"{slovo}-{rus_list[ind]}") else: print(f"{slovo.upper()} отсутствует в словаре"...
0
566b8209b7b999004f0e44d4f88b7758
65778b28d4bbf3d403b43f439a749fec
Pass the new log level to the view
class HttpProtocol(coro.Thread, BaseHTTPServer.BaseHTTPRequestHandler): def req_log_level(self, level): self._old_loglevel = self.get_log_level() self.set_log_level(level)
0
8c2558e7c9106e53907ce125e21b03af
3fe4b6312caae91f7d99393d38e41ba6
Récupération de la progression des bugs d'une livraison par statut
$conn = parent::getConn ( DB_DSN_BUGFREE, DB_USERNAMEBUGFREE, DB_PASSWORDBUGFREE ); $sql = "SELECT bug_Version,COUNT(id) FROM bf_ettonbug_$productid GROUP BY bug_Version ORDER BY bug_Version"; try { $st = $conn->prepare ( $sql ); $st->execute (); $row = $st->fetchALL (); } catch ( PDOException $e ) { ...
0
6eec9417c1e103abf6a1d0a1d24e2c03
338a1ed07d57673ae83caff0642265b2
This API provides the ability to reserve a MVNO subscription and an MDN with optionally provided reservationId for the subscription without an ESN. <p>Wsdl name: WholesaleSubscription.wsdl</p> <p>Imported Schemas: SubscriptionEnvelope.xsd, ErrorDetails.xsd, WSMessageHeader.xsd</p>
idempotencyID: string, createSubscription: SubscriptionPost, correlationId?: string, options?: any ) { return SubscriptionApiFp(this.configuration).transactionsPost( idempotencyID, createSubscription, correlationId, options )(this.axios, this.basePath); }
0
3ce4b560ae331019dcb9a52c46f7c88f
a3f6935d5154d26c9a74e598a5ec7494
send initial signal to DHT11 sensor
void DHT11_init(gpio_num_t gpio_num) { vTaskDelay(1000 / portTICK_PERIOD_MS); dht_gpio = gpio_num; }
0
a55df6d3a10ff0a372186fccd9a815e9
e30811f1684200bf74fbcc4e987b974f
根据状态获取距离开拍时间15分钟的拍品 --为job服务
int pageno = 1; int pagesize = 50; boolean b = buyable; String s = String.valueOf(b); String method = "/ark/open_api/v1/items?"; String times = String.valueOf(System.currentTimeMillis()); String timestamp = times.substring(0, times.length() - 3); TreeMap<String, String> map = new TreeMap<String, String>...
0
71f2e83d0220abe02bcf2e67784a9d79
97ddee1ee0508fef74e81647c9c8bc11
GET: AdminLogin
namespace OnlineShopSystem.UI.Controllers public class AdminController : Controller public ActionResult AdminLogin() { return View(); }
1
9b71c4b7db788a5f119a3d16087472d4
eb5adfe8b50c0807ab326815bb53b0de
Disables showing of database errors. By default database errors are not shown.
class db function hide_errors() { return $this->show_errors(false); }
1
e7e1ee4773c6991d3efea32b1a8f1bc0
4f92f89c7c611d4ae1348cd56ce01770
根据当前权限系统实体和页面编码取得对应页面编码的数据集权限实体集合
namespace Aim.Portal.Model [Serializable] public partial class DynamicPermission public static DynamicPermission[] GetOrgPermissions(string pdata, DynamicPermissionCatalog.SysCatalogEnum sysPCatalog) { return GetPermissionsByCatalogCode(pdata, sysPCatalog.ToString()); }
1
d9fd73b33da585547d0a6d7df270d568
4191bb9157b149bc4ca63b97c931c771
Computes the number of all user uploaded visible datasets
@Timed long countAllDataSetsSize();
0
76b1e418d4547eb6a28b8b6ea4c36d2d
2b84cce9267f08449facf6ead19758bd
初始化本地图片已缓存数据查询关键字map
Object videoCache = VideoCacheUtils.getObject(mapKey); if(null!=videoCache){ return; } if(null ==firstVideos161Vo) { return; } List<FirstVideosVo> firstVideosVos = firstVideos161Vo.getFirstVideosVos(); if (CollectionUtils.isNotEmpty(firstVi...
0
aba173392aa2d10d3369fd9c4bd848e5
9b861fda5c832a6f57388764ab22b200
Редактировать рецепт.
def recipe_edit(request, slug): recipe = get_object_or_404(Recipe, slug=slug) if recipe.author != request.user: return redirect(recipe.get_absolute_url()) form = RecipeForm( request.POST or None, files=request.FILES or None, instance=recipe, ) if form.is_valid(): ...
1
d896c931cd58d84d575d3a0840322f30
34541da341bcf92dd22aa02c7f47141e
Opens the stream to the XML file containing process step information.
{ TextReader reader = null; try { reader = new StreamReader(xmlPuzzleFile); } catch (FileNotFoundException e) { Console.WriteLine(e.Message); Console.WriteLine("Exit code: 3"); ...
1
41ed3cfb1d13bfc403d79dc0761de180
f0601b7ffa948fa943bee506ab89f17f
FavoriteへのUPSERTをチェックする
class Config public function checkFavoriteConfig() { $this->addToMyConfig(); $this->deleteFromMyConfig(); }
0
2cbf55ac36e20607f32dcc42863ada52
69eaefefbcb1418b149ba75d5b446aec
Simple quadratique 1D loss
def loss(pos, ret): return 1 - ((np.sign(pos) * np.sign(ret)) + 1) / 2
0
3714f1e75c386c24ca7ae550621e077f
6d2d794e692eddc277d6f39d59e1bbc9
overloader to print unicode chess pieces
if self.kind == ROOK: s = 'r' elif self.kind == KNIGHT: s = 'n' elif self.kind == BISHOP: s = 'b' elif self.kind == QUEEN: s = 'q' elif self.kind == KING: s = 'k' elif self.kind == PAWN: s = 'p' ...
0
d3983b7167d96755d85e4d497b9bc414
0a795072a41719ba779eb79f557e37a8
Returns true if the user has the permissions to network discovery.
public final class PermissionCheck public static boolean hasNetwork(final Context context) { return hasPermission(context, Manifest.permission.INTERNET); }
1
cfbddb6b95e93c658008b1f83b02ca09
83c3d5fbf8a428afcb86b00d767bf51b
Generate corresponding response message from this message.
class MessageAlarmData(MessageBase): def response(self): netpack = self.extra netpack.set_payload('') if self.location_ext.lang == LanguageValue.CHINESE: netpack.type = PacketType.AddressCNResp.value msg = MessageAddressCNResp() netpack.set_payload(msg.marshal...
1
d1d18b629c95d18f502ae9f0b5eb7d11
6f9befb4629fdf3e35ae8a89dd0bce9d
standard sorting based on first coordinate being most significant
bool sortFunc(const vector<int> &a, const vector<int> &b) { return (a[2] > b[2]); }
0
24001cec06b925edc33b625a722983a1
ff801189c598f1b918b93121b89cb218
Converts a Qlearn Ros Message to a matrix.
pos = mujoco_pos[:3] quat = mujoco_pos[3:7] rot_mat = quat2rot(quat) rot_mat = rot_mat.flatten() tilt_angles = mujoco_pos[7:] return np.concatenate([pos, rot_mat, tilt_angles, mujoco_vel]).ravel()
0
a7a6fd9921a595ef208e24a2f4c7890f
b928a2f59eb0556631815d2b445dcd62
poiščem najbližjega igralca, ki še je živ
while True: i += 1 if i > self.players: i = 1 if field.gamer_position[i - 1][0] != "LOSER": break return i
1
2f339632048530b681ad1dd02f7ab7b5
697d636468fb628616721ade99d5358c
Destroys the context for GSSAPI client-side authentication. After this call the context object is invalid and should not be used again.
static void gssapi_destroy_signverify_ctx(dst_context_t *dctx) { dst_gssapi_signverifyctx_t *ctx = dctx->ctxdata.gssctx; if (ctx != NULL) { if (ctx->buffer != NULL) isc_buffer_free(&ctx->buffer); isc_mem_put(dctx->mctx, ctx, sizeof(dst_gssapi_signverifyctx_t)); dctx->ctxdata.gssctx = NULL; } }
1
f013103c98f7f2547acfbbae8ce24f58
39a94efba06756960bc6b15108fbcaff
Run the workspace state machines that are ready to run, once. Also update the WM state machine next run date appropriately. The loop could be optimized with a priority queue, if needed.
{ DateTime now = DateTime.Now; foreach (Workspace kws in Wm.KwsTree.Values) { if (kws.Sm.NextRunDate <= now) kws.Sm.Run(); if (kws.Sm.NextRunDate < m_nextRunDate) m_nextRunDate = kws.Sm.NextRunDate; } }
1
2e8ceee64a41e7e592c990f4adf9f84c
cb3b03df97a523c1f3dae60f766848c4
Factory query method to retrieve all storage connectivity groups matching the given criteria.
try: return self.u4v_conn.provisioning.get_storage_group(sg_name) except Exception as e: error_msg = "Failed to get storage group {0} details".format( sg_name) LOG.error(error_msg) return None
0
2e24003c62e70624fc24435a38896a43
87e484a08487cf6eeb4352651c221721
Returns configurator for current game.
public class DiscordGame public DiscordGameConfig getConfig() { return config; }
1
3aad98a245a3aa6fb32fd9b6fa1ff823
5c9006a5854b3084e437b756c12cda2e
Отрисовка ходов
namespace WindowsFormsApplication2 public class Game public void Draw() { for (int i = 0; i < matrix.GetLength(0); i++) { for (int j = 0; j < matrix.GetLength(1); j++) { if (matrix[i, j].taken) { ...
1
010e1c0105cdf52989c471a026c5c401
826d69986e2c9d29f89828de7ae328c1
@brief Callback-функция, вызываемая при приеме пакета 0x83 или 0x84. Так как callback-функция должна быть максимально короткая и не содержать задержек, то в ней просто выставляем событие и копируем принятый пакет.
void Task3Callback(qEvent_t e){ int data = -1; TEST_MESSAGE( (char*)e->TaskData ); TEST_MESSAGE( (char*)e->EventData ); if(e->Trigger == byQueueReceiver){ data = *((int*)e->EventData); TEST_MESSAGE("Queue event: byQueueReceiver"); qDebug_Variable(data, Decimal); } if(e->...
0
e8f09b7980d607b295c47b32aedcd044
bbacf4c9ec62cee7d86947db222b664b
Sets the table_column_names of this Response. List of column names that corresponds to the row_data for each result # noqa: E501
class HandyFrame(DataFrame): def set_response(self, colname): check_columns(self, colname) return self._handy.set_response(colname)
0
d51bc56a4f809fbff4c9147414a9bb55
e79f0992814de4cc18cfaa8bbb04ab51
Sets deprecate delegate. If <code>true</code> generated delegates will be marked as deprecated.
GraphQLFieldBuilder<Parent> setDeprecation(String deprecationReason);
0
8db2b9ee9bb24578981900cadc9aeef5
6915657371bc3f246f403a8ffae67a3c
Displays the value of the Potentiometers
void read_potentiometer() { out16(AD_DATA,0); while(!(in16(MUXCHAN)&0x4000)); readpotentiometer1 = in16(AD_DATA); out16(AD_DATA,0); while(!(in16(MUXCHAN)&0x4000)); readpotentiometer2 = in16(AD_DATA); }
0
56ed629040c186c8121e00698bf80f84
66ddd338dbbe3f4b9d3645710cc5dfac
无法直接调用构造方法实例化对象,但可调用getInstance()
public class PersonFactory public Person createPerson2() { System.out.println("PersonFactory - 实例创建Person"); return new Person(); }
0
bd111e219f7cde2e80cd9850d205e9f8
e69a065ed9c61ee62c46184a57a19a0e
set the selector icon to the new grid point (mod for positioning with the grid)
var next = (this.nowGrid + num) % 24; for(let child of this.parentNode.childNodes){ var ind = child.hasIndex(); if(ind == next){ this.x = child.x + this.xoffset; this.y = child.y + this.yoffset; this.nowGrid = ind; break; } } }
1
94c2c270d0143f4ce6d477ea49e195ee
7214d47f5e4661e9b532255a66162e25
Sets the display mode to a new resolution and whether it's windowed.
public class MenuOptionsVideo : MonoBehaviour private void SetDisplayMode(FullScreenMode displayMode) { Screen.SetResolution(resolutionX, resolutionY, displayMode); }
1
ac45f87a0dbf126a44741f3a421368d6
58ef67743303bf7c6222acc978230824
@brief Enter 16-bit input data to the CRC calculator. Specific data handling to optimize processing time.
{ uint32_t i; __IO uint16_t *pReg; for (i = 0U; i < (BufferLength / 2U); i++) { hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U]; } if ((BufferLength % 2U) != 0U) { pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); *pReg = ...
1
9bff8c220cd7cd75136a62bea355e9f2
ded77e6d860da69dea9ecee4294d76d2
{@link jp.ossc.nimbus.service.beancontrol.BeanFlowInvokerServer#invokeFlow(Object, Object, Map)}の第3引数に指定するコンテキスト情報のキーを設定する。<p> 指定しない場合は、全てのコンテキスト情報を引き渡す。<br>
public class Invoke extends TransitionImpl public final void setPersistentContext( final PersistentContext thePersistentContext) { this.persistentContext = thePersistentContext; }
0
1a17d63fba09160d63d2e5214404197b
984e520e9359a211276d82de1973761a
The whole muxing will be omitted if one or more of its stream conditions are not fulfilled
func dmux(input1 bool, sel bool) (bool, bool) { result1 := not(sel) output1 := and(input1, result1) output2 := and(input1, sel) return output1, output2 }
0
d9a36845d4c89f92fa519ac37daada22
f04839766125d13ca9520bb003cddeb6
subtracts the dates in the appropriate way, returning a duration
namespace DateTimeWebApplication.App_Data public class Date public int Subtract(Date value) { return DaysSoFar - value.DaysSoFar; }
0
a3125c38f951fd8e58f1922cfb808f5e
94b306141970e6d78140bdc91b62c723
Main UI logic
function UI() { }
0
f475b6d48a00f6144968512f422259fb
47c064d60bec3ae3a1bc7f638e85b6b7
Get the client ID and client secret for a specific provider.
public class SsoClient public async Task<IDictionary<String, Object>> GetKey(String client_id, String client_secret) { var client = GetClient(); return await client.GetAsync<IDictionary<String, Object>>("sso/getkey", new { client_id, client_secret }); }
0
ab8158357020e789eb97f26e57af3f0f
e9e17cf581f3a087c4b6603c7a75cb7f
恢复对局后出牌
_resumeShowPutCard(data) { console.log('恢复的手牌: ' + JSON.stringify(data)); data.sort(function(a, b) { var localIDA = CardMap.getLocalIDBySeverID(a); var localIDB = CardMap.getLocalIDBySeverID(b); return localIDB - localIDA; }); Utils.destroyChildren(this.putCardNode); var arr = []; for (var i = 0; i...
1
b44bd3c29d2c710199495440f502f554
2026c34c8f5006a52ca1f177d326c41d
Gets the groups in a space.
namespace Guilded.NET.Objects IList<Group> GetGroups(GId teamId);
1
9a4b5443a616d559014d99da0a5285bb
c42a1f0f49409aedfa6c24a951459bcf
Set true if the parsing uses sax namespaces
namespace javax.xml.parsers [Script(IsNative = true)] public abstract class DocumentBuilder abstract public bool isNamespaceAware();
0
0d38d6411a833564be1bba3118f1e27b
6201de785e03b7154e0b2d60141324e0
Get the array of isolated nodes.
public class Rule implements Action, Fixable private RuleNode[] computeIsolatedNodes() { testFixed(true); Set<RuleNode> result = new HashSet<>(); for (RuleNode node : lhs().nodeSet()) { if (lhs().edgeSet(node) .isEmpty()) { result.add(node); ...
1
03f392f283e422c4a7fa3bc7f59f812e
05db79a6afc01e159eab6c732728dc55
Check if message was send from the bot itself.
public function isFromBot() : bool;
1
8598777bf6890787863ebf4a16c8f06a
78c5386dc966f0cfd8e1e95ba33ecc34
Stops the timer, preventing the Finished invocation. Does not change remaining duration.
namespace UniSharper.Timers void Stop();
1
69ea5b24a4dfaa076e7b613e40ce5430
b8fbf3f97badfc4bad505afd658ed523
查询货损赔付结果
public abstract PrpLRecLossVo findRecLossByRecLossId(String recLossId);
1
977ad86ca8e0ac862659c3eab790a021
86b09cd4cf89842569df6fec8e1d698c
POST: api/UserEducations
{ var eduDocumentsWithoutUserEducationData = _abiturRepository.GetUserDocumentsWithoutUserEducationDataAsync(User.Identity.Name); var eduDocument = await eduDocumentsWithoutUserEducationData.FirstOrDefaultAsync(); var userEducation = new UserEducation { ...
0
03ea6926998d9770f7f4e859c1a56939
25f9ed214c062de7d2d8df073c976c6f
function to store hash value(sum of two numbers) and the pairs in one entry of hash table(through chaining)
std::string endingPoint = startingPoint; for (int hashChainIndex = 0; hashChainIndex < hashChainLength; hashChainIndex++) { endingPoint = RedFunc(HashFunc(endingPoint)); } hashMapOfChains.insert(endingPoint, startingPoint); }
0
ab5ecf5dc2c0051f95304be77fd0bad7
69d9e97fef38c6992facf52a8944a2c2
`Material-UI` link with `react-router-dom` routing using our pages data structure.
let match = useRouteMatch(); return( <Switch> <Route path={`${match.path}/:genName`}> <GeneratorPage user={user} /> </Route> <Route path={match.path}> <GeneratorList user={user} /> </Route> </Switch> ); }
0
8fd4a5b14dddcadaacef36090cfc4ab8
5c33460d9088ad82ca480788ccaa373f
Test that the given license plate is valid.
img = self.rescale_img(img) bin_plate = self.binarise_plate(img) bin_text = self.binarise_text(img) out_parking, out_license = self.get_plates(bin_text, bin_plate) license_plate = self.clean_license_img(out_license) parking_plate = self.clean_parking_img(out_parking) ...
0
ebc0bfa42992c5df0934e0e2aa2db4f1
f8f23b779f4bd859fcce01b3d538ddda
Sets the practice location address telephone number.
@Entity @SequenceGenerator(name = "idgen", sequenceName = "INDPROV_SEQ", initialValue = 1) public class StaffIndividualProvider public String getPracticeLocationAddressTelephoneNumber() { return this.individualProvider.getPracticeLocationAddressTelephoneNumber(); }
0
3625e675aae966b22c82b331d8c15a25
335edc61f0c4157e3d376faeb7754242
Provide vue components with the ability of invoking regular components, receive a regular component, and finally generate a vue component, just like a bridge between them
class Router _register() { const Component = Router._Base; Component.use(View); Component.use(Link); }
0
001c96d8959716a9d4cb5dd75ba83b48
bdc0cdcfdfb29816ee4f9800e4aa66ca
目的地編集アクティビティを表示する。
Intent intent = new Intent(getActivity(), TrackwayDetailActivity.class); intent.putExtra(KEY_TRACKWAY_ITEM, item); intent.putExtra(KEY_POP_COMMENT, 1); startActivityForResult(intent, RESULT_EDIT_TRACKWAY); }
1
6e1a74453f7ac64b66b4bf3a66d8764f
0fc7b1d4fa100b6b0907782b2fd495a5
Set the current thickness value.
class Edge(): def thickness(self, th: float) -> None: self._lvis.thickness = th
1
6daeb66bbe80ca078dcf8f3f4c3b7834
27f25d2476735a43e535868eb9193dea
Recover deleted record action
$folder = $this->getFolder(); $data["folder_name"] = $folder; $data["module_name"] = $this->getModuleInfo()->module_name; $data["page"] = $folder."/delete"; $record_id = $this->uri->segment(3); if (!empty($record_id)){ if ($record_id != 2){ $data_list = $this->modelNameAlias->get_one_record_fo...
0
3abe2247335d48eb76946f9a1b33444a
0cdd328f15e3ba66a12a30c193c2a023
获取好友可见任务类型
{ $types = array(self::TYPE_NEW => '新用户任务', self::TYPE_DROP => '降量任务', self::TYPE_WEEK => '周任务', self::TYPE_VISIT => '回访任务', self::TYPE_OTHER => '其他任务'); $args = func_get_args(); if (empty ($args)) { return $types; } else { $_types = array(); forea...
0
351ab95d78dd1c0a37a1706403ae27cd
09acab64a76cf316c340989f0c236bab
Does a cascaded delete or set null in a foreign key operation.
abstract class ModelRelationInfoHasReference extends ModelRelationInfoByReference protected function getDefaultOnDeleteAction() { return self::ODA_SET_NULL; }
1
d7fe2b575c6178f4f65173e886f1d9a1
6109e4ad46d09d6baba719862352430b
Applies histeresis thresholding to the gradient of an image.
def color_gradient_thresh(img,s_thresh=(170, 255)): hls = cv2.cvtColor(img, cv2.COLOR_RGB2HLS) H = hls[:,:,0] L = hls[:,:,1] S = hls[:,:,2] s_binary = np.zeros_like(S) s_binary[(S >= s_thresh[0]) & (S <= s_thresh[1])] = 1 gray = cv2.cvtColor(img,cv2.COLOR_RGB2GRAY) kernel_size = 3 b...
0
a4c8a649db24c1731fe6482a494bb523
9b2e9f59a4d5504fd89b516228ecd7a6
Remove samples by id and ratify action.
class History(): def _sample_removed(self, sample): pass
0
2bb6bdceea810c22b459e5b43327bb5e
3c07bb717c7c4db4e80426b4375a4c1d
通过ownerlist来获取玩家名字
{ FSelf.Name = FSelf.UID.ToString(); { _OwnerName.text = FSelf.Class.ToString() + "\r\n<color=\"#" + ColorUtility.ToHtmlStringRGB(_OwnerLevel.color) + "\">" + FSelf.Name + "</color>"; _OwnerName.gameObject.SetActive(true); } }
0
b25662a38351dc5823a1713424bc4bba
fe1bd7abe446d144b82ca51beade7ad6
Propagate view metadata (i.e. labels) to a Report object corresponding to this spec.
JSONObject getMetadata(ViewContext ctx, ExpProtocol protocol);
0
0596cd196efb9caa27bea61f05c49282
55b435d0a2f5fd8a230df27cdef073c8
Adds a singularisation rule.
class English def singular_rule(singular, plural) @singular_rules << [singular, plural] end
1
7f0ca4c1b43590e7279fc3cbf6bde0b2
7b6dced8cb970b4f316e438d8c6e497f
インスタンスを使用しない(使用できない)メソッド
class MyClass def private_method end
0
b8de0f7e4594c44766090b0c1f77d303
eb8433f51246f1242c82dc0abe3d3c26
When running unit test on the command line parser, signal that the actual operations should not be executed, only the parsing.
{ settings.CaseSensitive = false; settings.HelpWriter = null; settings.IgnoreUnknownArguments = true; settings.MutuallyExclusive = false; settings.ParsingCulture = CultureInfo.InvariantCulture; }
0
8651dd6f8bcd43f4e485cc189f085c5a
5c37f7dfe269caa65a0a0ff033e534a5
Sanitize string to have character and numbers only
function fj_infusionsoft_api_sanitize( $value ) { return preg_replace( "/[^a-zA-Z0-9]+/", "", $value ); }
1
701d80672148190aaa234f7ea6d6f3e4
2de3f85c0635d13d61c3d19cefbcb0e7
得到当前所有的第三方依赖信息
public Map<String, Object> getDependencies();
1
eb57d10daf5b65f63f3ffb6cee02f625
a6dd2e4908f233e1a9f73e25f4472a6c
通知房间内的观战人员抢地主情况
export class GameManager extends BaseModel public playeRoomPlayerMsg(msg) { this.roomPlayerMsg = msg; this.redenvelopes=msg.players.length this.changedModel("COMMON_ROOM_PLAYER_CHANGE", msg); this.judgePlayerrob(msg.players) }
0
52e893b5ac6ab92d64059058e2a5d9cf
65716997aa033718e11d8f6e41b63e84
Удаление слоя карты по ключу
if (this.pMapView == null) return; Layer l = this.pMapView.GetLayerById(id); if (l == null) return; this.pMapView.RemoveLayer(l); }
1
b8892640edba4f9c1a850c934b1ba204
dac24ab3defae65be59a132fe8f66a9e
Lists all Fcttype models.
$searchModel = new FpListsSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams,$type); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
0
e40f065c989d85456c71b74f8da6f899
abff8fa39008339a15ad367858d3ab72
엔터시 다음 택스트 필드 이동
void Wizard::on_textEdit_2_textChanged() { ui->textEdit_2->moveCursor(QTextCursor::End); }
0