query_id
string
corpus_id
string
query
string
code
string
label
int64
0f8cf3c87968ae98c1ecedfc1125ec03
a9c8287c1e5e641c25669cb266951857
workerProcessTypeB - this worker process is also dispatched by the monitor process and simulates a process that sleeps often and in turn relinquishes the processor often.
List<MsgEnv> localQueue; MsgEnv* nextMsg; while(true) { if(localQueue.getCount() != 0) { nextMsg = localQueue.dequeue(); } else { nextMsg = g_RTX->receive_message(); } if(nextMsg->_messageType == COUNT_REPORT) { if(((int)nextMsg->_m...
0
d64bdbd15c1c0df7256c9171ea95d51e
d01a2dd223bdbadf2105a6ed7b0817a7
Смещение события по рассписанию в списке вверх
namespace ERPMercuryProcessingOrder public partial class frmRulePool : DevExpress.XtraEditors.XtraForm private void MoveUp(DevExpress.XtraTreeList.Nodes.TreeListNode objNode) { try { if ((objNode == null) || (objNode.Tag == null)) { return; } if (treeL...
1
2a16f260a33a9c32e6fa797d68ac6a65
a66df9c04f1a6ecb0936f6ef1ddbd993
Получение общей загрузки процессора
{ try { var search = new ManagementObjectSearcher("Select LoadPercentage from Win32_Processor"); foreach (var one in search.Get()) { return one["LoadPercentage"].SafeToString().ObjectToNullableDouble(); }...
1
41041a475c45187ca20ec1fa87e5e62e
718b15e91192c5330c94f3f76a1564cb
补充测试任务的案例信息,因为没有外键,所以关联的任务或者需求,通过查询来补充外键
public class Test extends BusinessModel public void addDefultRequireCase(BizObject reTestRequireDetail) throws SQLException{ BizObject reCaseTest = new BizObject("re_case_test_qa"); QueryFactory qf = new QueryFactory("re_case_require_qa"); List<BizObject> reCasesRequires = qf.query("requiredetail_id",reTestRequir...
1
137bb4b95881c5f827d69ece108edf20
c9d76bbd1eea9baf9fd8102e64eee2d6
Get checkout order placed notification permission.
class Config public function isOrderNoteEnabled() { return $this->scopeConfig->isSetFlag( self::XML_PATH_APPLY_ORDER_NOTE_ENABLE, ScopeInterface::SCOPE_STORE ); }
0
cf3827136174430a51359224d9fe1834
bac67726fdb1bcf7cc10e8ee9637b257
add new timer task to the timer linked list, and order by time
{ T_TIMER_LIST_ELT *insertionPoint; T_TIMER_LIST_ELT *listTail; bool found; #ifdef __DEBUG_OS_ABSTRACTION_TIMER _log( "\nINFO : add_timer - start: adding 0x%x to expire at %d (now = %d - delay = %d - ticktime = %d)", (uint32_t)newTimer, newTimer->desc.expiration, get_uptime_ms(), newTimer->desc.delay, sys_clo...
1
6a613c2f305a202409136c110968625f
1ee50a662bbb16b5d86cb14051f97f16
请求数据统一再处理(背压式,可为空)
resolveResponseData(data) { return data; }
0
0496bb57afe0fdd1fd9216713405510e
a9109861304e9d12bf1c88ad376ffc77
指定キャラクターが影を持つか。
public abstract class GameAgent public boolean isShowShadow() { return showShadow; }
1
471204e67b6fd4a552bc3b1f6750eb30
c0631d2fd565a7e9f51214e9abdd1807
test for deleting key and borrow key from right sibling
myBST = binarySearchTreeLazyDeletionAVL() myBST.insert(55, chr(random.randint(65, 122))) myBST.insert(44, chr(random.randint(65, 122))) myBST.insert(66, chr(random.randint(65, 122))) myBST.insert(77, chr(random.randint(65, 122))) myBST.insert(88, chr(random.randint(65, 12...
0
5057ede34fdf49e12b1351ded0d956b4
8bea3b007ab6e3df4fe39c4c3193798f
通过布尔查询实现多域查询,即通过传入的查询参数,对文件名fileName域、文件内容contents域进行
public class QueryIndex @Test public void queryByTerm() { try { Query termQuery = new TermQuery(new Term("fileName", "传智播客")); doQuery(termQuery); } catch (IOException e) { e.printStackTrace(); } }
0
ca323d52a17f74b888c34e4b16595658
108830adb6e04691f7073218c104a9c5
Percent-Point Function (aka Quantile Function, or Inverse Cumulative Distribution Function) for a normal (or Gaussian) distribution with mean and standard deviation x such that X will take a value less than or equal to x with probability p
def normal_quantile(p, mean=0, std=1): try: return mean + std * math.sqrt(2) * inv_erf((2 * p) - 1) except Exception: return "None"
1
e413a71077166ab003d17866dbee5638
1e7ea53cda71122762d9439a10cb5af5
Test case extra 16: Backspace character and actual backspaces in link uri
{ edit->SetText("\xC0\x8A", TB_CARET_POS_END); TB_VERIFY(sedit->blocks.CountLinks() == 1); edit->SetText("\xE0\x80\x8A", TB_CARET_POS_END); TB_VERIFY(sedit->blocks.CountLinks() == 1); edit->SetText("\xF0\x80\x80\x8A", TB_CARET_POS_END); TB_VERIFY(sedit->blocks.CountLinks() == 1); edit->SetText("\xF8\x80\...
0
527284945921c707fafc5833f3ee0b63
81d9c8f57f3efad30b8f70bd8d4aae33
Define a constructor that sets the name of a Dealer using the setName() method
class Dealer def createDealer(d, n = "Kuppa") @deck = d @name = n createPlayer(d, n) end
0
ad3d77e1b3ce3ba17bd5b4f9a6c7e1ed
70b4badfedd38ae5937c376113c9bb7f
导出微信用户表列表
@Controller @RequestMapping("/system/wxUserInfo") public class WxUserInfoController extends BaseController @RequiresPermissions("system:wxUserInfo:export") @PostMapping("/export") @ResponseBody public AjaxResult export(WxUserInfo wxUserInfo) { List<WxUserInfo> list = wxUserInfoService.selectWxUserI...
1
ea613e6737fa4bd7de5e61a0ccae6ece
cab7aeba66a43ca67a553ede82bc5be4
установить содержимое xsd-файла
{ if (file_exists($xsl_file)) { $this->content_xsl = $xsl_file; } else { echo "<strong>set_content_xsl(): Invalid file path!!<br/> \"{$xsl_file}\" does not exist!</strong></br>\n"; } }
0
4fafeae2b32fb2ba19d7e538b166b3f0
3575e6013db0db8843d70056f40492d7
Declaração de variáveis
var a string = "SAMSUNG" fmt.Println(a) b := 12 fmt.Println(b) var c, d int = 1, 2 fmt.Println(c, ":", d) var e int var f string fmt.Println(e, ":", f) }
1
8c38aad8a70601f546ec8a0b461bac1c
8353254cbac4ac84cd9677e6d4122e2c
级联取消选中父级节点
function uncheckAncestors(li, options) { li.parents('li').find('input:first:checked').attr('checked','').change(); }
1
bb4105e0b397108f473b50f48621e560
0592161b5a77e9ad619394bc0f2794f4
释放由 <see cref="T:System.Threading.ManualResetEventSlim" /> 类的当前实例占用的所有资源。
{ try { if (disposing) { this.manualResentEvent.Close(); this.manualResentEvent = null; this.state = null; this.asyncCallback = null; this.OnDisposed(EventArgs.Empty); } } finally { this.isDisposed = true; } }
1
76f94f809b68394028a3c4799eb12a84
ca2fe212f16102beeb58ecc176ca2a6e
Gets the parameter with the specified name. If a parameter with the specified name does not exist, the given default value is returned if any, else null
namespace QS.Fx.Base IParameter Get(string name, Type type);
0
cd9b0e1e8fa47b14ad30dc3a00bac02f
09a7becca097905fca31ca0d81f8d344
Returns any particle that occupies position x, y
class EntityManager(object): def get_at(self,x,y): if (x,y) in self.positions.itervalues(): ret = [ ] for id in self.positions: if self.positions[id] == (x,y): ret.append(id) return ret return ()
1
5bac735886b4196f3f595e02fe78db6f
b502cb5d62c06399c6549a73d248d08f
Switches to the passed in window by its unique handle
public class VoodooUtils public static void switchToWindow(String windowHandle) { }
1
0a3fb7fd4425f8c0b7f7c2c8ae7b4bb6
2f7e5b9851acbe542ef39bd82c4bd306
Sets the custom naming strategy to use for the columns in the database as a result of the auto-mapping.
class Configuration extends \Doctrine\DBAL\Configuration public function setNamingStrategy(NamingStrategy $namingStrategy) { $this->_attributes['namingStrategy'] = $namingStrategy; }
1
d451b56aaf2ee68d1d2b4d3ac8b6b495
d6a8ae99ddd67626af85f4096b234060
根据 uid 判断该用户是否绑定 邮箱
@Service public class UserBiz public boolean checkEmialIsExistByUid(User user) throws BizException { if (user == null) { throw new BizException("请先登录"); } User u = um.selectByPrimaryKey(user.getUid()); if (StringUtil.isEmpty(u.getEmail())) { return false; } return true; }
1
db7a8916055bc4fca4c9c098037861c7
c160811131a8b800054769072a78dabf
Enforces the selection mode for the tree, ensuring only the expected node or nodes are selected.
public class UiWidgetAdapterGwtTree<NODE> extends UiWidgetAdapterGwtWidgetActive<FlowPanel> implements UiWidgetAdapterTree<NODE> @Override public boolean setSelectedValue(NODE selectedValue) { TreeNodeAdapter treeNodeAdapter = this.nodeMap.get(selectedValue); if (treeNodeAdapter != null) { if (this....
1
526f1acdc6c2975a51e3ef2a4c4f685b
a0d4e2993ed8c428aff0b26c7bbb886e
根据邀请码,获取邀请人。如果获取不到,则说明无效的邀请码
SellerDO getByInviterCode(String inviterCode);
1
e643daeac8e9549eb33ac7029391d322
d4acddbfd1c8097ebc7f34a22af0768c
Escapes all occurrences of a character in some text using a backslash
function escapeStringChar(chr) { return "\\" + stringEscapes[chr]; }
0
3b0b9af6e58817a5cf3f179704868801
4ab4643400a343be360fb7634fa643d4
Validates that number of messages returned is <= limit specified
func TestGtmLimit(t *testing.T) { if gdatabase.Count() >= 1 && len(gdatabase.Limit(1)) != 1 { t.Fatalf("Error when reading limited records") } if len(gdatabase.Limit(0)) != 0 { t.Fatalf("Error when reading limited records") } }
1
574dbb0196fa1b6a36e85b0546a6d1b6
024f299c2124b50a29d7c3a0c7f51b26
redirect to admin dashboard
class PostController extends Controller public function index() { return redirect()->route('admin'); }
1
4d166304a5b8a43dab454e16f4f81cc8
42a5a30a02cad625afdd9de807427c5e
注册私有窗口类
void CreateOneWindow() { WNDCLASS wcs = { 0 }; wcs.lpszClassName = L"15pb"; wcs.lpfnWndProc = CallBackProc; wcs.hInstance = pfnGetModuleHandleA(0); pfnRegisterClassW(&wcs); HWND hwnd = pfnCreateWindowExW( NULL, L"15pb", L"密码验证", WS_OVERLAPPEDWINDOW, 100, ...
1
98c6358da7b5f9835526e0511b129b7d
db1379018c1a71c232726dbde42e15e4
Ball support function constructor
function BDF() {}
0
906250d5f949f36cc67c3d435c2ab1e9
95e8011aea7a738d605448f296da226e
Gets the value of the type property. possible object is {@link TextType }
public TextType getTextType();
1
7c5c4ce3c205d56d0d772b4c2565d043
f9913cd6afd2245b58d8d41a83d78c07
Checks if a chunk is contained within this {@link VSChunkClaim}
return x >= getStartBlockX() && x <= getEndBlockX() && y >= getStartY() && y <= getEndY() && z >= getStartBlockZ() && z <= getEndBlockZ(); }
1
9e3a84e2c1c76653331c9345f7d1e2c5
947d5a306ee2fdeae78f18bd4e33acec
<para>Toggles the (computed) value of the boolean property enabled.</para>
{ if (element == null) { throw new ArgumentNullException("element"); } return (bool)element.GetValue(IsEnabledProperty); }
0
15b02ce9e9a15bd5d70651aa6337d726
445bd3f1ae2957c508199c75dda54875
convert the timedelta object to a string representation in Hour, Minute, Second.
def strdelta(tdelta,fmt = "{hours}:{minutes}:{seconds}"): d = {"days" : tdelta.days} d["hours"], rem = divmod(tdelta.seconds,3600) d["minutes"], d["seconds"] = divmod(rem,60) return fmt.format(**d)
1
14506c5819d2c74009c87f12720fa40f
990347a99a0da698e955d7e317e43084
设置是否进行正则匹配
@JavaScript({"client/js/inputmask.min.js"}) public class InputMask extends AbstractExtension public void setRegexMask(boolean regexMask) { getState().regexMask = regexMask; }
1
b433a925dd44871a9833c00794cd9b70
31501906d8a2ac1ec6714b12896ec231
Add multi stream data to this BFM. Multi stream data should be a dictionary with each entry into the dict a list of lists as required by add_data. The dictionary keys should be of the form: (stream ID, stream dest)
class WirelessManager: def add_profile(self, client_ids, filename, **k): profile = STLProfile.load(filename, **k) streams = profile.get_streams() client_streams = {} for mac in client_ids: client_streams[mac] = streams return self.add_streams(client_streams)
0
1eae770f797fcd7f58ba8f0c9043b36f
271fcaae19b67345ac8c60232e16eaa8
Responsible for rendering all the new level generation screen GUI elements.
namespace WizardDungeon public partial class MainWindow: Window private void Render() { cvsMainScreen.Children.Clear(); DrawLevel(); gameState = new CGameState(currentLevel.EnemyPositions.Count()); playerIcon = new Image(); playerIcon.Width = CGame...
1
4a3791e0deda00c01d1b076862c72bb7
058c19aedb6ad62a9a9c2a1b4a7b0b19
r"""Total packets filtered by QoS.
try : return self._lsntottcpdrppkts except Exception as e: raise e
0
d6d6c0949decf336ef0436136e46b1de
352c3a75c55f73d5bee503c0ff10a141
依傳入的參數,查出「所得人資料」 <p> UC 10.8.4 所得人資料維護 </p> <ul> 查詢條件 <p> 「所得人資料.身份證字號」=傳入參數”身份證字號” 且「所得人資料.所得人類別」=”自然人”</li> <p> 「所得人資料. 姓名/廠商名稱」 like =傳入參數”姓名%”</li> <p> 「所得人資料. 身份證字號」=傳入參數” 廠商統編”且「所得人資料.所得人類別」=”法人”</li> <li>證號註記 <p> 「所得人資料.證號註記」=傳入參數” 證號註記”</li> </ul> 身份證字號 姓名 廠商統編 證號註記
User query(Long idNo);
1
b5f3435dbd9333a28a285e34bbd265c0
f654b864ddc1b3d0ec196dc39e1d4dd2
Executes a statement that returns a single {@link String} result. as a <code>String</code>, or null if none. or invalid number of bind arguments.
public abstract class JdbcTemplate public String queryForString(final String sql) { return queryForString(sql, new Object[] {}); }
1
9e0c7786ea5a71d4325d8bd84d2a035c
9bda5538d6bbe20a9b78a6200325a555
r"""ICMP Fragmentation Needed error messages received for packets that need to be fragmented but for which Don't Fragment is specified the header.
try : return self._ipv6fragzerolenpkt except Exception as e: raise e
0
0d2836e9622eb055f71074ab32805069
f9bd74afa5bb1284747a049868d8b71e
Returns author name, or null, if no author has been defined.
public class AuthorExtract extends Extract public String getAuthorName() { return authorName; }
0
79f8b1cfdadc0563b0948e7b6d12619a
59c693a1d464379420657a03a1d60782
设置StaggeredGridLayoutManager的边距
outRect: Rect, view: View, parent: RecyclerView, state: RecyclerView.State ) { val layoutManager = parent.layoutManager as GridLayoutManager? val totalCount = layoutManager!!.itemCount val surplusCount = totalCount % layoutManager.spanCount val childPo...
0
fb4f93623f28198ed5358028aa97f381
506fc1fcb6ee668f90a9f04b9dc4d835
Output : One vector containing the result of the modular exponential
{ const LongNum modRInv = R - modinv_base_k(mod, R_DIGIT_COUNT); LongNum r[2] = { R % mod, x.shiftWordsUp(R_DIGIT_COUNT) % mod }, newR[2]; for (uint32_t idx = BASE_BITS * pow.size() - 1; idx != (uint32_t)(-1); --idx) { const uint32_t curBit = pow.testBit(idx); newR[curBit] = mul(r[curBit], r[curBit]); newR[...
0
8674ed539b2eaceda2b9f0ee246be9c7
a889027ac37cb876c505ead6a44aa269
分页获取office_work_outline列表
public List<OfficeWorkOutline> getOfficeWorkOutlineByUnitIdList(String unitId);
0
0d3163a139db6790b423c7fea6bcd59b
3c2015125f0a0e9b5b892208cc9c52a0
指定时间BOSS出现计划
FieldBossCfg worldBossCfg = FieldBossTemplateMgr.getWorldBossCfg(); List<String> timeList = worldBossCfg.getTimeList(); if(timeList == null || timeList.size() < 2){ Log.error("刷新世界BOSS出错,世界BOSS刷新时间配置错误"); return; } Calendar startTime = TimeUtil.getCalendar(TimeUtil.getDateFromNowByString(timeList.get(0)...
1
aec9e184a083e16bb2712b862c34d59e
caa50e461dd81de90298ff061d9f18c1
调用接口,返回JSONObject(会验证返回结果的状态,为失败时,会抛异常)
throws Exception { HttpEntity resultEntity = HttpRequest.httpPost(url, obj); JSONArray jsonArray = new JSONArray(EntityUtils.toString(resultEntity)); JSONObject jsonObj = (JSONObject) jsonArray.get(0); return jsonObj; }
0
2e2012a5af9b5df5cc0c3c2efd3b7d17
1b7639cc8d122545766caccdcb54d8d2
Retrieve the <c>group_level</c> property of the item
namespace System.Windows.Data public class PropertyGroupDescription : GroupDescription public override object GroupNameFromItem(object item, int level, CultureInfo culture) { object value; object xmlValue; if (String.IsNullOrEmpty(PropertyName)) { ...
0
fb0753489d415e5fd19ffaa6f0adb227
9ea6efb91fb7fcd6ea246842e2c8dbb1
日期转字符串 转换的格式yyyy-MM-dd
@SuppressLint("SimpleDateFormat") public class DateU public static String dateToStr(Date date) { return dateToStr(date, YYYY_MM_DD); }
1
502bc7c6973175e413f9647643a86e6c
b589d2d7e7d868a95d2ce524bcb994ff
Test case for teamsRemoveUser .
user = UserProfile.objects.create(username="user") self.add_delete_perm(user) c = APIClient() c.force_authenticate(user=user) team_type = TeamType.objects.get(name="Administrators") response = c.delete("/api/usersmanagement/teamtypes/" + str(team_type.id) + "/") s...
0
3e1f7fff776253a1189c07ef28696b20
a4b3eb99546b68d9d5ec47d8430f05cb
Returns the class names (as strings) of the potential "next" life stage classes.
String[] getNextLHSClassNames();
1
0fcb81b5211c1f9c1cb813e3b26b0cd9
cd22c30590b2c12fcbe586ce32fb4354
Returns whether the scheduler is done or not.
public class AndroidMainThreadScheduler implements SchedulerInterface @Override public boolean isDone() { return isDone.get(); }
1
985e142da206b9750da69933a2a2443b
34853cbc353ce877865e3f41a5a3bde0
A foreign key, e.g. CategoryID, will have an association name of Category
class ManyToOneTests(TestCase): def test_fk_instantiation_outside_model(self): cat = models.ForeignKey(Category, models.CASCADE) self.assertEqual("id", cat.remote_field.get_related_field().name)
0
f68dc2e0b7e9a6edcdd9c092bd2fab8c
5ad0ff8ccc926d6f9324ccf3041a1214
通过邮编获取经纬度
{ $sql = "SELECT post_code.id,area_code.lat as area_lat,area_code.lng as area_lng,town_code.lat as town_lat,town_code.lng as town_lng FROM `post_code`,area_code,town_code WHERE post_code.id = '{$post_code}' AND post_code.area_code = area_code.id AND post_code.town_code = town_code.id"; $query = $this->db->query($s...
1
2c22730ab5c58cd9bdfcb0a1949931e0
5c57bd06944a09e22380adb5f98f82bd
Adds debug information images
declareImage(ISharedImages.IMG_DEC_FIELD_ERROR, PATH_OVERLAY + "error_ovr.png", true); declareImage(ISharedImages.IMG_DEC_FIELD_WARNING, PATH_OVERLAY + "warning_ovr.png", true); declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR, PATH_ETOOL + "pin_editor.png", false); declareImage(IWorkbenchGraphic...
0
ec721f12780ecabe4bfee3f194306230
adf2950761c18b9bd10da477bb40764b
Получить вес (силу) луча
class Arrows extends Items getStrength() { return this.item.strength; }
1
4546fb2893956b16d791b790ea14cc7a
caee9e96c3d6c43a8f9937769fa652a0
Check is the frame is too long
{ if (int.TryParse(lastFrameFirstShot, out int i) && int.TryParse(lastFrameSecondShot, out int j)) { if (i + j == 10) { return true; } else if (i == 10) { return true; ...
0
34bf82ec20bd257737d39adf92b7ce98
31b94bb12dfe3f49acb413760cb8f55f
@brief This function established the connection for the channel in passive (server) mode. This function waits for the request from the peer.
{ uint8_t command[] = { 0x42, 0x4D, 0xE1, 0x00, 0x00, 0x01, 0x70 }; _stream->write(command, sizeof(command)); _mode = MODE_PASSIVE; }
1
f8036577fac1494c3837e665bfe6e6c7
1d6a6bcfe64860df79244a5d7729a1f4
查找车牌号分页数据
return request({ url: zcApi + '/ebox/car/carInfo/getpagerlist', method: 'post', data: inputView(dataInfo) }) }
1
4616dc553765467a0e2c754113cbca9d
65066dc9c4b99e4042cc95e34f20606b
シート内のデータを条件付きで取得する。出力されるデータのフォーマットは findAll と同じ。 条件にマッチする内容を全件取得する。
class Sheet find(conditions = {}) { return flow(Object.keys(conditions).map(k => s => filter(s, o => o[k] === conditions[k])))( this.all ); }
1
a1cd941e1dede2dc4dad274ae8b1f579
51921ff0a3d2ad95c6fed3dc95209689
更改任务联系客户的联系情况
PlanUserdaySigncustBean entity= new PlanUserdaySigncustBean(); entity.setOrgId(orgId); entity.setSudId(sudId); entity.setCustId(custId); entity.setStatus("1"); entity.setContactResult(contactResult); planUserdaySigncustMapper.updateTrends(entity); }
1
e61fbbf066cde6144d46f35eece139fc
6ed1f05bd5a37b59aec8ac6e589cc768
将(x_min, y_min, x_max, y_max)形式的anchor转换成(center_x, center_y, w, h)形式的
ycenter_a = (anchors[:, 0] + anchors[:, 2]) / 2 xcenter_a = (anchors[:, 1] + anchors[:, 3]) / 2 ha = anchors[:, 2] - anchors[:, 0] wa = anchors[:, 3] - anchors[:, 1] ty, tx, th, tw = rel_codes.unbind(dim=1) w = torch.exp(tw) * wa h = torch.exp(th) * ha ycenter = ty * ha + ycenter_a x...
0
b2d1f48ca3f38e2b43d8d0c36ac7934e
880f3bc81d53abaffbb6eed00c350df1
Method returns the next invoice key to be created.
class PaysimpleComponent extends Component public function getNextInvoiceNumber() { return $this->_sendRequest('GET', '/invoice/number'); }
1
7577ae2273eaa3242910b312ef80b46e
df2a4e74264a30eac2c9a2072ebc582a
获取桶的标签配置。
namespace InfluxDB.Client Task<List<Label>> GetLabelsAsync(string bucketId, CancellationToken cancellationToken = default);
1
bc3e7a502e8bd5ab51081c39eed5d566
f487404a0050410162ebd4bb5a3550b7
跳转抽取浮动点页面
public class JumpUtil public static void gotoViewPagerFloatActivity(Context context){ context.startActivity(new Intent(context, ViewPagerFloatActivity.class)); }
1
9f8446039e77bf9472be1d4da5372194
161db6ea7730b577e5b4b6ef6ce18193
@brief GFXMMU MSP Initialization This function configures the hardware resources used in this example:
{ GPIO_InitTypeDef GPIO_InitStruct = {0}; __HAL_RCC_GPIOE_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE(); HAL_GPIO_WritePin(GPIOE, M24SR64_Y_RF_DISABLE_Pin|M24SR64_Y_GPO_Pin|ISM43362_RST_Pin, GPIO_PIN_RESET); HAL_GPIO_...
0
77a43ef1c550a814b7739911c3efc6e5
2ea27f593c740af04848e7bfb53f8cd6
お気に入り投稿一覧表示
class FavoritesController extends Controller public function index() { $user = \Auth::user(); $favorites = $user->favorite_posts()->paginate(30); return view('mypage.favorites', ['user' => $user,'posts' => $favorites]); }
1
a94d525d3014169f9877b68749b8c48a
3eb3165edf28ea51e80f1613e86ba97c
Get number_doors.
public class InteriorRoom public int getDoors() { return mDoors; }
1
fd7ab04e7a65ef970b29d065e15e865b
6d8e2bd9f218ed7fd51f8c2892e9f726
Evento que sucede al seleccionar cualquier elemento del ComboBox
namespace NewAge.Cliente.GUI.WinApp.Forms public partial class SolicitudCreditoChequeo : FormWithToolbar protected virtual void editCmb_SelectedIndexChanged(object sender, EventArgs e) { }
1
a4eabec3869ab1fad85ccbe8d530b32f
62a81b27e597a1b7e36bb623ef2bf5f6
计算在当前态势下,在所有攻击方和所有可见的防御方的数据下,攻击方和防御方怎么配对,以及防御方如果是编队,攻击力如何分配
{ List<BattleResult> orderList = new List<BattleResult>(); BattleMapMonster monster1 = actionStatus.TargetMonster; BattleMapMonster monster2 = actionStatus.OpponentMonster; BattleMapMonster fast = monster1; BattleMapMonster slow = monster2; if (monster1.BattleStatus.S...
0
c9e4da3b523ee2d60e6247de5dc48451
6c14c8a9e5ad175904d790b07a68b83c
Test delete all rentabilidade itenss.
class TestCelaEndpoint(SiapenTestCase): def test_a_delete(self): data = { "bloco": "8daa2753-4a87-4d40-ab8d-4ffdc2706f19", "nome": "Cela B", "capacidade": 10, "ativo": True, "observacao": "Nenhuma", } resp = self.client.post( ...
0
8451c704e071ecca94d991fae61795e7
0a40339df306c36595eb8e9ea32e766b
++++++++++++++++++聊天记录窗口++++++++++++++++++++++++++++
{ GtkWidget *window, *scwin1, *scwin2; GtkWidget *hbox; GtkWidget *vbox1, *vbox2; GtkWidget *hbox1,*hbox2,*hbox3,*hbox4,*hbox5; GtkWidget *hbox6; GtkWidget *vbox3, *vbox4; GtkWidget *view1; GtkWidget *view2; GtkWidget *button1; GtkWidget *button2; GtkWidget *button3; ...
1
0a1d8e90abe2f220987088e2ea7db6f6
59bc2b603cfe90b5718671d8fbd65705
Get Payment Result model from session.
class YMobilePayment extends YMobileWsdlClass public function getResult() { return parent::getResult(); }
0
66e74dde2714839314accc4b26fff040
58155affa76b8fd91a5f899f3b5d8386
@brief 将某状态在堆上的匹配表转换为数组结构.
$tran = array( DbCommon::MATCH_STATUS_DEFINE => DbCommon::MATCH_STATUS_ZY_DEFINE, DbCommon::MATCH_STATUS_SELLING => DbCommon::MATCH_STATUS_ZY_SELLING, DbCommon::MATCH_STATUS_SELLSTOP => DbCommon::MATCH_STATUS_ZY_CLOSE, DbCommon::MATCH_STATUS_CLOSE => DbCommon::MATCH_STATUS_ZY_CLOSE, DbCommo...
0
0c3e37de6c08d5523bde07d7604b891a
e55780b3c3bbf55e18fd8385466e099e
获取日志信息体的名称,返回NULL表示没有初始化
char* lj_log_get_mod() { log_info plog; plog = (log_info)pthread_getspecific(g_log_key); if(NULL == plog) { return ""; } return plog->m_mod; }
0
39524cbb9e6c84143a5dd9e61ae80491
19197144b1047f8a4e068ff16ab1e8d0
Gets the selected tree node of the possible trees in order to determine the initial setting of the selected tree
var selectedNode = $(target).find('div.sltree-node-selected'); return selectedNode.length ? getNode(target, selectedNode[0]) : null; }
1
f85fcc5e5584dd6efdd72743931a7e23
a8cf01266666cfc992fe0a7229d97af4
Recursviely travels through the tree checking each Node to see if it matches all selectors
let result = false; const element = cssSelector.element!; const classNames = cssSelector.classNames; const attrs = cssSelector.attrs; for (let i = 0; i < this._listContexts.length; i++) { this._listContexts[i].alreadyMatched = false; } result = this._matchTerminal(this._elementMap, ele...
0
d4089d9b198110637874c49f103f6b7e
0b2d4ea13a59e9cbe89c495ab453704e
Connects the imageview to its corresponding view in layout, and sets the bitmap.
public class MainActivity extends AppCompatActivity private void loadImageToImageView() { ImageView imgView = (ImageView) findViewById(R.id.image_view); imgView.setImageBitmap(currentBitmap); }
1
60edb056b96db8b6ca81d5449914cf59
8a22eaf6ed00e83bd48eca257cf1be59
处理input回车事件,如果btn有效,这回车事件转化为btn.click()事件
if (event.keyCode == 13) { event.keyCode = 9; event.returnValue = false; document.all[btnID].click(); } }
1
571a1be6871faf8063dfcd3a208ce27f
b9d1f199d0387e7bce0233aaa137e8cb
Lists CloneJobs of a given migrating VM. <p>Sample code: <pre>{@code This snippet has been automatically generated and should be regarded as a code template only. It will require modifications to work: https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VmMigrationClient vmMigration...
namespace Google.Apis.VMMigrationService.v1alpha1 public class ProjectsResource public class LocationsResource public class SourcesResource public class MigratingVmsResource public class CloneJobsResource public virtual GetRequest Get(string name) ...
0
e2eac8cafe70084d5785c44350ed1105
646e0c17f7b863ed3d40c56a970d2307
カテゴリをファイルから取得する
{ Task task; task.callback = callback; getListDirFiles(category, task.filelist); if (!task.filelist.empty()) { task_queue_.push(std::move(task)); loadImage(); } }
1
8b0f8d083083eeb38c24fef6ca37bb16
7803805ddb4d52896b21967f5805d6ed
Renders the tag cloud as an unordered list
$branch = "<li><div class='tagcloud' rel='$this->trustvalue'>$this->content</div>"; if (!empty($this->children)) { $branch .= "<ul id='$this->id'>"; foreach ($this->children as $child) { $branch .= $child->to_html_list(); } $branch .= '</u...
1
0add3fe629f6adade88dd9d5d91bf626
8a33a73512beb110f5f945809f40e4bf
Формула площади ромба по длинам его диагоналей
if (a > 0 && h > 0) { return (a * h / 2); } else { console.log('nie mozna rozwiazac zadania'); } }
0
081dd87d8d0255d9165acd2f799ad76f
44703e7cbf4702f168be6d27dbea89f6
Increments/Decrements year value then update year input field with the new value.
if (keyCode === LEFT_ARROW && yr>1831) { yr=yr-1; datePress(yr); } else if (keyCode === RIGHT_ARROW && yr<2015) { yr=yr+1; datePress(yr); } }
1
49916cb0acff7371bb16fe804cc3a1dd
049595a8428bd4427ef6593536cb7e2a
Flag used to adjust the Time To Live value of produced messages. The option will be converted to a <code>long</code> type.
class az_iot_hub_update_command_builder extends CommandBuilder<az_iot_hub_update_command_result> c2DTtl(value: string): az_iot_hub_update_command_builder { this.setFlag("--c2d-ttl", value); return this; }
1
4ddc6fd548ce2e2fd8dacafc65a382a4
5438576b3d954ff2ead4518c40abdd0e
Получить форматированное название плейсхолдера
{ string nameStr = name == null || name == DBNull.Value ? "" : name.ToString(); return CommPhrases.LineCaption + " " + number + (nameStr == "" ? "" : " \"" + nameStr + "\""); }
1
1ce25dfe837ca572d4836c83f89200aa
055a4e789416ed97e367f5b5abf6b2f2
GLMUNPAK Separates weights vector into weight and bias matrices. Description NET = GLMUNPAK(NET, W) takes a glm network data structure NET and a weight vector W, and returns a network data structure identical to the input network, except that the first-layer weight matrix W1 and the first-layer bias vector B1 have bee...
class DeepFFNN(NeuralNetwork): def decode(self, w): input_layer_wts = self.input * self.hidden output_layer_wts = self.hidden * self.output internal_layer_wts = self.hidden * self.hidden start_index = 0 w_layer1 = w[start_index:input_layer_wts] self.W1 = np.reshape(w_laye...
1
9b40f3efa6548abc0b9f8831e6d0951c
d2a406ffa78c30f339f63ddf9be7ff43
Sets the repsonse ID. This value should always be equal to the incoming request ID.
class AuthResponse extends Response public function setRid(string $rid) : self { $this->rid = $rid; return $this; }
1
8078bfff2875d19667d86a7d0527eea3
158db743111eaac6f7ea6f5eb982a10f
筛选出可转换的宝石
local allTalismans = BagManager:getGoodsMapByType(EnumGoodsType.Talisman) local talismans = {} for talisman in allTalismans:iterator() do local isWear = self:slotWear(talisman.id) > 0 if not isWear and talisman.star < 1 then talismans[#talismans + 1] = talisman end end table.sort(talismans, function(t1, t...
0
4950e774c66c655b9e8b5f9638ea2957
e0459ade8d66985c667d78c2000a61e2
爬取职位详情页的数据,参数url是职位详情页的链接
class BaiDuBaiPinParse(BaseSpider): def parse_detail(self, url): while True: try: response = requests.get(url, headers=self.headers, proxies=self.get_proxy(), timeout=10) break except: continue content = response.content.decode() ...
1
6ede8d1b334d118157acc09e6edb5cfc
7069a24e909d25f2ba8ef4931492eab3
异步根据分页查询菜单信息表(sys_app_menu)
namespace lkWeb.Service.Services Task<PageResult<Sys_MenuDto>> GetPageDataAsync(QueryBase queryBase, Expression<Func<Sys_MenuDto, bool>> queryExp, string orderBy, string orderDir);
1
ba48a00be7fd690228e7944d06924eb9
2134791101b9e6948b63fb34a955028e
Returns amino acid distribution.
class NucParams: def aaComposition(self): return self.aaComp
1
696898ea97ed65c9d6c449fe2f912716
03cb7ed719130c1cec2ef1081ec0a9ce
Setup 3D Secure 2.0 parameters
{ $paymentAction = empty($this->paymentAction) ? 'Sale' : $this->paymentAction; $this->paymentAction = $paymentAction; $locale = empty($this->locale) ? 'en_US' : $this->locale; $this->locale = $locale; $validateSSL = empty($this->validateSSL) ? true : $this->validateSSL; ...
0
be2f9dafc25dafc5e83d4cd5f46e2db3
ee2e0f2f5e220abe96641acdb71c386b
最近7天销量
class Goodsanalysis extends Index{ public function SevenCA($shopid) { $SevenCA=[ 'SevenSalesVolume'=>$this->SevenSalesVolume($shopid), 'SevenSales'=>$this->SevenSales($shopid), 'SevenSaleRanks'=>$this->SevenSaleRanks($shopid) ]; return $this->message($Seve...
1
ea09bdace09989f9b8d33032fe9cc44b
9076971690c87b00a8987b764252094a
获取GMT格式的时间
public class DateUtils public static String getGMT() { Calendar cd = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("EEE d MMM yyyy HH:mm:ss 'GMT'", Locale.US); sdf.setTimeZone(TimeZone.getTimeZone("GMT")); String str = sdf.format(cd.getTime()); System.out.p...
1
4bafd3a87172d6990b691ff23c1bf820
6ec246d22dee786051c23b5ad3f467d3
parallel version of Fox algorithm
{ int i; int su; if ( ! more ) { t = -1; for ( i = 0; i < n; i++ ) { u[i] = 0; } } else { more = false; u[t] = 0; t = backup_one ( n, u, t ); if ( t < 0 ) { return; } u[t] = 0; t = t + 1; u[t] = 1; } while ( true ) { su = i4vec_d...
0
cee76907830af487345f2303395990c4
9b4e0efcb5e012591682b81dec4d24af
Возвращает размер отфильтрованого словаря.
class Dictionary extends BaseClass public size(): number { return this.data.length; }
0
e9c5bfd628d326bf70a7f628b3a7bfab
edf4993312363a1257876f7f07071bbe
Converts a date from english (e.g. mm/dd/yyyy) to db format (e.g yyyy-mm-dd)
function convertDateToMySqlFormat(dateString){ var pieces = dateString.split('-'); return pieces[2]+'-'+pieces[1]+'-'+pieces[0]; }
0
89c878da0381ca3f9eb522351fa1ace1
d976e8e12962b301b7b57dd1148ad24b
Returns the coordinates associated with the PDE.
class SymbolicMesh: def coord(self): return self._coord
1
8916aead981f51450c2bf664aaba35d2
69c83ad5d5b1c0a48da99d9fdaa40e1d
Llena la grilla a partir del XML.
if(grids[8] != null){ grids[8].destructor(); } var unidad = document.getElementById("unidad").options[document.getElementById("unidad").selectedIndex].text; var unidad2 = "EXP_" + document.getElementById("unidad").options[document.getElementById("unidad").selectedIndex].value; document.getElementById('BandejaCop...
1