query_id
string
corpus_id
string
query
string
code
string
label
int64
0251164bfba7b492265e704e720d7b2a
85d64743dab823df4b278eac9e88d0f7
Are coordinates geographical (LONG/LAT)?
def kgtk_geo_coords(x): return isinstance(x, str) and x.startswith('@')
0
9b1dc78a3421fec526c31a2103211b52
5a83061c68e6d63d78dbf2ac8cbac1a7
Recibe la id de una categoria y devulve el numero de productos que tiene
class M_Categories extends CI_Model public function getNumTotalProductosFromCategoria($idCategoria) { $query = $this->db->query("SELECT idProducto " . "FROM producto " . "WHERE mostrar = 1 " . "AND curdate() >= fecha_inicio " . "AND curdate() <= fe...
1
477153f00723ae5ab28cdad1c1144cda
0e8a498a613f8da9cb5ea8a217a3e705
Метод выполняющий запросы по API в CRM
class ShopBot private function botApiQuery($method, $fields = array()) { $ch = curl_init('https://api.telegram.org/bot' . $this->token . '/' . $method); curl_setopt_array($ch, array( CURLOPT_POST => count($fields), CURLOPT_POSTFIELDS => http_build_query($fields), ...
0
30ff88a9b16b9e0f1516d81744697cd4
e8fdf595c636af992c0d76c2fdfe00ef
根据map,查询商户分页
Result<Object> selectByMap(Page page, Map map);
1
c75be1faf780877757247e6151740300
c9e7fe688216736d89fe334200d3bca8
Uses sine & cosine to represent position. Adds the position to the given matrix Default behavior is batch_first
t_mtx = torch.from_numpy(mtx).cuda() if isinstance(mtx, np.ndarray) else mtx posw = torch.cat([pos, torch.ones([pos.shape[0], 1]).cuda()], axis=1) return torch.matmul(posw, t_mtx.t())[None, ...]
0
10fc71669773fba63051023c3751a079
b4520b44e9fe8cae3626fcbf67d592e8
Transforms a <see cref="InvocationExpression"/> of type <see cref="ExpressionType.Invoke"/> into an object of type <see cref="T"/>.
{ var symbolInfo = semanticModel.GetSymbolInfo(invocationExpression, cancellationToken); return symbolInfo.Symbol == null ? default : ImmutableArray.Create(symbolInfo.Symbol); }
0
1e6fd18949449edec18fa9a6b83e1d50
ec1040e055c7f2873731ca38f2b24133
发出事件的应用名称,一般为{@code spring.application.name}。
@Component public class EurekaServerEvent @EventListener public void onApplicationEvent(EurekaInstanceRegisteredEvent registeredEvent) { Echo.print(registeredEvent.getInstanceInfo().getAppName() + " registeredEvent "); }
1
f1781493b6e54658cb7ea10ca745e6f7
468d16c3381f36bc53a705b6a74eac96
获取该对象的Json字符串。 如果obj有嵌套的对象,将通过递归调用该方法继续获取Json字符串,知道基本数据类型位置。
{ if (null == obj) { throw new ArgumentNullException(); } JValue jvalue = ConvertToJValue(obj); if (null != jvalue) { return jvalue.ToJson(); } return string.Empty; }
0
5aac9c87f1bb66365b505328a062ebdd
fb445642473f5c895059605857436425
Обновить описание достижения
{ if($description === null) { $this->description = null; } else { $this->description = strval($description); } $this->save(); }
1
00bd9460d3f6231160565b2bf1508986
3afaa7d74a0327e634b950aa402cd04a
returns the list of route functions for that route.
class RouteCreater public function getFunctions() { return $this->xml['function']; }
1
47306aeea25e1e2349acc85fd0773318
a266e2f4a358a0ed98f857b89367cab0
statDate格式 20160131
var separator="-"; var dateArr = dateStr.split(separator); var year = parseInt(dateArr[0]); var month; if(dateArr[1].indexOf("0") == 0){ month = parseInt(dateArr[1].substring(1)); }else{ month = parseInt(dateArr[1]); } var day = parseInt(dateArr[2]); var d...
0
1ac635ac8d437788f6307780f6f07cb8
7ba20fbff7e9f518e7df38df71a92fc6
Test case for com_day_cq_mailer_impl_email_cq_email_template_factory
class TestConfigmgrApi(unittest.TestCase): def test_com_day_cq_wcm_foundation_forms_impl_mail_servlet(self): pass
0
04e57dda20e7db2c535f7725c0122340
cbdc298f73685859e38a472640200c0e
设置字段ModuleName的值,该字段的<br> 字段名称 :模块名称<br> 数据类型 :varchar(255)<br> 是否主键 :false<br> 是否必填 :false<br>
class StatusData extends AbstractStructBase public function setModuleName($moduleName = null) { if (!is_null($moduleName) && !is_string($moduleName)) { throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($moduleName)), __LINE__); } ...
1
f7728af51c01707671fa1c27024bba74
dde4503b6a8efe3b9e60854650fcc1cd
找到id为cate_box的元素,设置其显示
function showCate(){ $("#cate_box")[0].style.display="block"; $("#cate_box")[0].className="hover"; }
1
ad8c65c209faa46ae37e838184246f7d
03e0f8d073cc8923ea6806f0b428899f
Sets the RoomSharing pool id.
class ilRoomSharingBook public function getPoolId() { return (int)$this->pool_id; }
0
c4afe0835ea31aa9d06e52e66dfced84
0103844647c227c21a4b91a3d6ded021
マウス ドラッグ時。
public class Test extends GLJPanel implements GLEventListener, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener public void mouseDragged(MouseEvent evt) { if (! dragging) { return; } int x = evt.getX(); int y = evt.getY(); TransX = 0.005f *(float)(prevX + x-startX); TransY = 0.005f *(f...
1
ed5737b8ff800daf2e235836be7f7e37
0dd02466d0a249ac05ea8c91df89be60
i.e. PublicController
return func(w http.ResponseWriter, r *http.Request) { WriteResponse(w, "I'm a public route.") } }
1
4a6dbc58427d902c384c3016262f15f7
7dc5917b8da601bcd3789659fa993745
Automatically discover Markdown files and add them.
md = markdown2.Markdown() dir_path = 'content/posts' file_list = [f for f in os.listdir(dir_path) if not f.startswith('.')] for file_name in file_list: file_path = os.path.join(dir_path, file_name) with open(file_path) as f: line = '' post_info = {} wh...
1
f2f1f5a6e94d1b2f636ceda5025645b3
c6e2647c9b61d07be937d8ed7c3c8c27
POST: api/Areas
{ Models.SectorViewModel model = GetModel(); return model != null && model.Area != null ? (ActionResult)View(model) : HttpNotFound(); }
0
fde88cf839f95ee2aecb45262285c8cb
55d16af0218872d093d8633a9b566ee6
获取图片请求结束处理函数
class ImageC extends egret.Bitmap onImgLoadEnd(e){ var bitmapData = this.loader.data; console.log(bitmapData); var texture = new egret.Texture(); texture.bitmapData = bitmapData; this.texture = texture; this.loader.removeEventListener(egret.Event.COMPLETE, this.onImgLoadEnd, this); }
1
24ccc723430e8181ae4570a691577ecc
a1bc4ac97313132b78ccdd3d96bc2f37
Adds the distributed cache service for repository caching.
public final class GetHBase public final GetHBase setDistributedCacheService(final String distributedCacheService) { properties.put(DISTRIBUTED_CACHE_SERVICE_PROPERTY, distributedCacheService); return this; }
1
09d396009d95c6018c7025809ab8600c
66e8e07ac2d0adcf016ece5567b35866
Get the robots found on the current network.
@AutoEscape public String getRobots(Locale locale);
0
2550ab86743061cc8b0095b9e61ae4ef
6d520c58e3682ca10c528a9ed027e0bc
Set the absolute world velocity of an actor's root component
void CEntity::SetWorldPosition(const CVec3& newPos) { m_pRootComponent->SetWorldPosition(newPos); }
0
ed004342a807bc3b678d02bd75b98536
de0d6612cfb69281d06a5f774b9760dc
stops playing the laser shot sound
{ curLaserCoolTime = 0; isLaserShoot = false; lr.enabled = isLaserShoot; }
0
7ecb5796e11979c272486338137bed3f
6db61a8c87d31e16bff9fc8a7835bb36
计算k玩家是否取得胜利,未取得胜利则返回0,取得胜利则返回评估值
if len(set(moves)) != len(moves): return -1 current_board = copy.deepcopy(board) players = list(players) value = 0 if players[0] == ME: sign = 1 else: sign = -1 me_win = False opp_win = False for move in moves: if me_win: value += 2 * MAX...
0
51755babd41fe1513a9dbca171cd7991
06904ac580a196b3c698a7bca58f23cb
Test where the chunk boundaries are aligned, but there is a leftover piece
vf.leaseWhite((int) completeFile.length()); byte[] chunk = new byte[200 * 1024]; raf.read(chunk); raf.seek(200 * 1024); writeImpl(0, chunk); vf.waitForPending(1000); assertEquals(0, vf.getVerifiedBlockSize()); raf.read(chunk); writeImpl(200 * 1024,...
1
9c1eb8b6bf42a1dda09f1c8a07e7fb90
bdd0c03615bddce5cf31dbcb25a83e36
<p>Description:保存医生患者关联关系<p>
namespace KMHC.SLTC.Business.Interface BaseResponse<Relation> SaveRelation(Relation request);
1
4558269edf9714c02ba9f3ab9f52a83d
fef759e2146bbe420c39cce0bf64db65
Trả về chu vi của đường tròn
namespace Task_02 public class Circle public double ComLength(int r) { return 2 * Math.PI * r; }
1
eb360b7ab727b3348496ce1d6cfe7443
d59ad401c89689893d1073efba85290a
当前用户已关注用户贴子的查询
class UserController extends ComController function myfollows(){ if(IS_GET){ $userid = $_SESSION['userInfo']['user_id']; $bbsset = M('bbs')->field("pg_ucenter")->find(); $famous_model = M('famous'); $userdetail = M('userdetail')->where("user_id = {$userid}")->find...
1
c941ba94f8a3bdd4281a652ddeb8500e
cd62fd46f534c19becd345b640cdcaeb
Get the duration of the fade in animation.
class QPopupView(QWidget): def fadeInDuration(self): return self._state.fade_in_duration
1
46f68cdf50d5ab90cce3d69c9a3b2641
6cb95aaf14dbcd88d3810b19cfaec697
路网中各条道路事故分析
@Service("/reportService") public class ReportServiceImpl implements ReportService private Map getRoadData(Map p) throws Exception{ Map data=new HashMap<>(); List<Map<String, Object>> listSum= this.reportsDao.RoadSum(p); data.put("listSum",listSum); Map topSum=new HashMap<>(); p....
1
50366204e7b9cd17ac59af12c22fd41c
ea44163a0bb27354e3b017a1417bf737
This is a function to create an anonymous message.
class Anonymous(CogMixin, commands.Cog): async def anonymous(self, ctx, *comment): if not isinstance(ctx.channel, discord.DMChannel): await ctx.message.delete() self.update_aid() author = ctx.message.author if author not in self.author2id: aid = get_id() ...
1
97d0e7d981be165f238d3976a24f7594
fe75d99329ac1136ff28b13e9b974db7
Run the test cases and print the results.
count = 1 for i in t: print ("\nTest Case: " + str(count)) count += 1 for j in i.setup: print(j) print(i.result)
1
d205e11d44e8a35001875aa8c17e3a1c
d25e67ae6d009d0444800d94ecc63c15
Returns all versions which are available in the migration folder
{ $migrations = array(); foreach (glob($this->_migration_path.'*_*.php') as $file) { $name = basename($file, '.php'); if (preg_match($this->_migration_regex, $name)) { $number = $this->_get_migration_number($name); if (isset($migrations[$number])) { $this->_error_string = sprintf($this-...
1
1a1deda4294bb18706e6b6dfcf599022
201c15fca6bb90309695abbaacdc9f26
Check if domain is active
$parameters = array( 'method' => __FUNCTION__, 'domain' => $domain ); $data = $this->get_data($parameters); return (array_key_exists('response', $data) && $data['response']=="success"); }
1
8f7ad3147cb08588385a85520226579f
929a91d4d4da1f6e686d0d0d888715fd
Builds the volume connector drivers for a block device info.
initiator_name = connector['initiator'] volume_name = self._translate_volume_name(volume['name']) LOG.debug('initialize_connection: Volume name: %(volume)s. ' 'Initiator name: %(ini)s.', {'volume': volume_name, 'ini': initiator_name}) ...
1
9c13b69737a6574515b6d4fbed149222
1547a6657b5441cfe883d93430e294a1
担当者の従業員番号を表す文字列をこのクラスのリストに変換して返す.
public class EmployeeCreateForm public List<String> getSeibetsuNmList() { return seibetsuNmList; }
0
ef1e843a33873f3a61e1f8ffc06104d0
a4d25eddc65f5d1032cfea77b5a485bf
Save surface to an obj (wawefront) file
def _export_obj_single(surface, **kwargs): file_name = kwargs.get('file_name', 'default.obj') vertex_spacing = kwargs.get('vertex_spacing', 2) if not isinstance(surface, Abstract.Surface): raise ValueError("Input is not a surface") if vertex_spacing < 1 or not isinstance(vertex_spacing, int): ...
1
f345e9c81c1c8225d1b42fb56c4f447a
f6d6668144e7b48857866cd04019ada2
Delete objects matching a condition against linked objects
{ if (sizeof($fcv_array) > 0) { if ($deep || $across) { $objectList = $this->GetList($fcv_array); foreach ($objectList as $object) { $object->Delete($deep, $across); } } else { $connection = Database::Connect(); $pog_query = "delete from `story` where "; for ($i=0, $...
1
311a7c37ef0cc05d136067333dea803e
7c73bd0292f1d40a8be2c962204ecf54
Resume conversation.
if ctx.voice_client is None: if len(self.playlist[ctx.guild.id]) < 1: raise commands.CommandError("Roxbot is not in a voice channel.") else: video = self.playlist[ctx.guild.id].pop(0) await ctx.invoke(self.play, url=video) else: if ctx.voice_client.is_paused(): ctx.voice_client.resume() ...
0
46c97318b8b53c206d493d3079434a68
3113fa7f76969adcd28e8ec6a87d514f
Image display for Question,Solution,Comments
$ques_str = $this->Q_question; if ($this->Q_image) { if (preg_match("/phpimg/i",$this->Q_image)) { $img = '<img src="' . $this->files_path . $this->Q_image . '" class="ITS_question_img2" alt="' . $this->files_path . $this->Q_image . '">'; } else { $img = '<a id="single_image" href="' ...
1
2db2050eacab05e5eab77b8b4178fb96
bc5f0227c3a32749dd7b01fb2c8cac45
Plate validator.
public static function isValidPlateColor(string $color): bool { $allowed = ['blue', 'yellow', 'black', 'white', 'green']; return in_array(strtolower($color), $allowed); }
1
81106a9c42c9facb467a089262c1fff1
166d1a2999a7bcd6d4c81be2162f8fdd
Calcula a média ponderada do pixel.
{ double totalPontos = 0.0; int totalPesos = 0; for (int i = 1; i < this.nota.length; i++) { totalPontos += this.nota[i] * this.peso[i]; totalPesos += this.peso[i]; } return totalPontos / totalPesos; }
1
a981bf667611e0b4851dd613ddb46f20
edfdf212d117607460bef8ac292b8ebf
pbimg"鼠标松开"事件处理方法
function pb_(event) { event = (event) ? event : ((window.event) ? window.event : ""); if(this.disabled || DESIGNMODE) return; switch(event.type) { case "click": setClickPosition(this,event); if(this.getAttribute("dub")=="1") doclinkuploadbutton(event,this); else sendEvent('click',this.id,''); break...
0
5f3f8787aafc9307072a9cd52d45d003
da7b4144c77d034539f9855df192f25c
Call this and save the result at the start of every system call we want to buffer. The result is a pointer into the record space. You can add to this pointer to allocate space in the trace record. However, do not read or write through this pointer until start_commit_syscall() has been called. And you *must* call start...
trace_buffer.tb_ptr->cse_wtobjp = otp->p_u.wtobjp; trace_buffer.tb_ptr->cse_time = chTimeNow(); trace_buffer.tb_ptr->cse_state = otp->p_state; trace_buffer.tb_ptr->cse_tid = (unsigned)currp >> 6; if (++trace_buffer.tb_ptr >= &trace_buffer.tb_buffer[TRACE_BUFFER_SIZE]) trace_buffer.tb_ptr = &trace_buffer.t...
0
2c943ac059ad344bd4983a259ce0132f
42ae16a6875856344b2929f4268bbfb2
创建一条pong的数据协议
public class PacketCreator public static Packet getPing() { PacketLittleEndianWriter writer = new PacketLittleEndianWriter(2); writer.write(RecvOpcode.PONG); return writer.getPacket(); }
1
b04b3a38b3b031ce8ff10fc6b92268ce
42048bb9d6c9661f0b8fa7931f85573a
Test ``nsot networks remove``.
class HookCTRLTestCase(unittest.TestCase): def test_remove_network(self): config = add_network(self.base_config(), 'test', '1.1.1.1/32') self.assertIn('test', config['networks'].keys()) config = remove_network(config, 'test') self.assertNotIn('test', config['networks'].keys())
1
d7f63e31eaf4403ebfe704f343b64fba
17aee97ef59ef8a4dc62792ed3ec9765
Handle the resizing of the window with a shop display.
function onResize(lock){ var container = document.getElementsByClassName("responsiveGrid")[0]; var elms = document.getElementsByClassName('inventoryElem'); var refresh = false; if(elms.length>0){ var containerWidth = container.clientWidth; var capacity = parseInt(containerWidth/elementStartWidth)+1; var newWi...
1
dc78e45d572255ac04fe7dfcdf2fc8b9
19491f1d01ff62bf55c729287699a28e
2引数関数をカリー化します。
{ return (t_arg1, t_arg2, u_arg1, u_arg2) => function(t_arg1, t_arg2, value(u_arg1, u_arg2)); }
0
3e234b710287888ed4ce6eae0224b7ef
7c3c2af3284a0117067f6b38685f1da5
Registers a command into the [Bukkit command map][CommandMap].
inline fun <reified T: CommandExecutor> JavaPlugin.registerCommand(name: String) { val commandExecutor = T::class.java.getConstructor().newInstance() val command = getCommand(name) if(command != null) { command.setExecutor(commandExecutor) if(commandExecutor is TabCompleter) comm...
1
3bc7f71f1ad007fa2aa50ee19398cd35
35967fd07f06e70d4c4a731a3b8a4774
Get the RMS amplitude of this DRW process. Returns: The RMS amplitude of this DRW process.
class VI_rp(Instrument): def do_get_ro_pulse_amplitude(self): return self._ro_pulse_amplitude
0
917772639d5f2ff2b3251c00ab40546e
fa3d4b7ae317f424ead9972073261684
generates and returns a random unsigned int
unsigned int m_randomint() { return (((rand() & 0xFFFF) << 16) | (rand() & 0xFFFF)) * (((rand() & 0xFFFF) << 16) | (rand() & 0xFFFF)); }
1
e500aa59fc410f7ae5458486936a6206
fabaa0679632fb10c1c510b876fd832b
Changes how much the object's speed is reduced at each step
public class Berry extends Item public void setSpeedDecrement(int speedDecrement) { this.speedDecrement = speedDecrement; }
1
e8e30b52850daf0f991b72b2d1340f1e
1a63a1161358e7549849d8649f80c316
Function used to select product and quantity wanted
def select_items(): cratespace = 0 itempricelist = [] while cratespace < 100: itemprice = str(input('Item price? ')) if itemprice == '0.00': print('') return (itempricelist, cratespace) resultprice = is_valid_price(itemprice) while result...
0
e6504a1ecacd9c8f0e37788f24c4ee76
210cac9a6d68557d61fa2db46a76e183
Set the name of the league
public IPvpLeagueConfig setLeagueName(String value);
1
53453d4bdc5007cbd5baa1cb68567f67
2c00679447c2296e6e48677be1f84768
接受别人的好友添加请求
namespace WhaleIsland.Trpg.Dice public class MyPlugin : CQAppAbstract public override void RequestAddFriend(int subType, int sendTime, long fromQQ, string msg, string responseFlag) { CQ.SetFriendAddRequest(responseFlag, CQReactType.Allow); }
1
83679caec973ece9d6c005b8c8e55aa5
26a941857fef1e80d999a5164b33e041
● 武器熟練度を上げる
class WeaponMastery def add_exp(amount) return if is_level_max? @exp += amount if @exp >= Zangther::WeaponsMastery::Config::LEVEL_UP_NEED @exp = 0 @level += 1 end end
1
5e8e27574546e66df6324a961b32c645
fc611809a012a87c7ca831a7fa4aaab8
Returns the index of <paramref name="item"/> using Binary Search
{ var comparer = new ComparisonComparer<TItem>(comparison); var i = _list.BinarySearch(item, comparer); return i >= 0 ? i : ~i; }
1
aa4ef7df763dcc2af7124f29948b80c9
847f3a1925719a1c514f5a4cbb5d5d59
获取end_str之前num天的日期,end_str是字符串类型
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); Date currdate = format.parse(newDate); System.out.println("现在的日期是:" + currdate); Calendar ca = Calendar.getInstance(); ca.setTime(currdate); ca.set(Calendar.DATE, ca.get(Calendar.DATE) - num); currdate = ca.getTime()...
1
6f28e5a39701f01cbd00d04dfc30405b
3464c122da4153c6e1fa581aebe01ed1
设置扑克牌显示隐藏状态
{ if (PaiStateGrid.transform.GetChild(0) != null) { PaiStateGrid.transform.GetChild(0).gameObject.SetActive(isShow); } if (PaiStateGrid.transform.GetChild(1) != null) { PaiStateGrid.transform.GetChild(1).gameObject.SetAc...
1
a83ac369fd3ab6d440b38f5fce5c1ea8
9c1863661621fd26608e1189febca437
根据编码列表查找工作事项
{ List<object> param = new List<object>(); param.Add(codeArry); si.url = url; UdidocDO[] rtn = si.invokeList<UdidocDO>("findByUdidoclistCodes", param.ToArray()); return rtn; }
1
fde4b5ea07c74bcde704c83346e39d6c
0deaeaae1594b81cee77b7e0efcb23c4
Checks the satisfiability of Z3 constraints.
str_program = "\n".join(logic_program) if fpath: with open(fpath, "w") as fout: fout.write(str_program) res = subprocess.run( ["clingo"], input=str_program, capture_output=True, check=False, text=True, ) return "UNSATISFIABLE" not in res....
0
36b3435f66ebac4adad25c3c78b76047
4c4806b8bfa12aa1ab795a392af63632
Метод определяет с какой стороны находится данный узел
{ if (node.Parent == null) return null; if (node.Parent.Left == node) return BinSide.Left; if (node.Parent.Right == node) return BinSide.Right; return null; }
1
66dd3b38a4f588be3f6a2215fd4ab189
b68e153e801907c07856746d80469861
Function to collect important property data from zillow xml into a hash
{ $props = array(); $data = $report->getElementsByTagName('description')->item(0)->nodeValue; $props['snow.daily'] = 'n/a'; $props['snow.fresh'] = 'n/a'; $day = find_int("/New Snow Last 24 hours: (\d+)/", $data); $yesterday = find_int("/New Snow Last 48 hours: (\d+)/", $data); if( $day != 'n/a' ) { ...
0
6671d19860ad87a942025f2e9bf55bc1
8775e35bcbfa7e203bb6751286bbadb6
Lists all VideoPost models.
class VideoPostController extends Controller public function index() { $data=array( 'title'=>'', 'videoposts'=> VideoPost::orderBy('updated_at', 'desc')->paginate(5) ); return view('videoposts.index')->with($data); }
1
7c11a444171519053e9231015415cb62
62755436454a695b1d41ebc6a53713c2
Поиск ближайшей точки.
public Point? RemotestPoint(in IEnumerable<Point> space) { Segment? result = null; foreach (var p in space) { var segment = new Segment(Center, p); if (segment.Distance > Radius && (result == null || segment.Distance > result.Value.Distance)) { ...
0
87c7680c4359047506104206c5222691
5b5432bd14e802a388984dca7b487e16
重複しないタグのデータを取得する。 結果は、付与された日時の新しい順で返される
class TransactionItem def transactions_with_all_tags(tag_ids) tag_transactions = TagTransaction.where(tag_id: tag_ids) .order( transaction_item_id: :asc, tag_id: :asc ) transaction_ids = []...
0
ad6b26e76adc97a6d6e12a68823f4eb5
25901e3d35bacde48949424e8c1073d3
Show end free spin popup
export default class PopupInitEvent extends Events showPopupAutoSpinFinishEvent(config = {}){ this.handler.querySelector ("message_auto_game_end.winValue").text = config.lastCount.toString(); this.handler.showGameInfoPopup({ messageAlias : "auto_game_end", state : co...
1
a926b0d2d092ca733c3b8be708f18806
c1e6d4256b38c9b727dd254e069c72d9
adjustable sepia filter
colorStr = '#e2592a' with inImage.clone() as imgClone: imgClone.type = 'grayscale' imgClone.gaussian_blur(0,1) fillColor = Color(colorStr) with Image(width=img.width, height=img.height, background=fillColor) as fillImg: imgClone.composite_channel('default_channels...
0
ddd2a9b24ac6f98541bb6367ca8abe4a
9d8441aef0972aa97f63bf33f1178a12
动态画向上竖线
public class NewWeekView extends View private void drawVerticalArrow(Canvas canvas) { float StartX = getOriginaX(); Path path = new Path(); path.moveTo(StartX, topMargin); path.lineTo(StartX - arrowWidth, arrowHeight + topMargin); path.lineTo(StartX + arrowWidth, arrowHeight + to...
0
13523eb553aa61959ed45af190a3c754
e7106d4c36d56430506c06d5c6552f3f
通过工人名查找
Worker getWorker(String workerName);
1
26473f36278e425546f2e76bce6e86fe
cb98991b94ea052081a36f3e6eb736bc
Multidimensional Arrays not handled -- assumed to be UnknownValue
MStatus Field3dCacheFormat::readDoubleVectorArray(MVectorArray &, unsigned arraySize) { return MS::kFailure; }
1
b3448e09f6dbd36dcac607a8a08de91e
0d2e550234137fa59ca4e8acb46ef45b
웹뷰 로그인 활성화
webView?.let { if (0 != it.context.applicationInfo.flags and ApplicationInfo.FLAG_DEBUGGABLE) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { WebView.setWebContentsDebuggingEnabled(true) } } } }
0
644c9237797691043fb8ed450c0e229a
515710293f8f97a256a3d84df30bdf34
returns the total nonzeroes in the jacobian
namespace dart namespace trajectory int Problem::getNumberNonZeroJacobian(std::shared_ptr<simulation::World> world) { return getNumberNonZeroJacobianStatic(world) + getNumberNonZeroJacobianDynamic(world); }
1
b195db370de3466ea72399d8b40af709
8443e2f7cc85ca78d4d5805ee2b1445c
绘制顶部矩形和文字 以及垂直线
int radius = (int) (getViewRadius() - CIRCLE_GAP * mDividerWidth); Paint titlePaint = new Paint(); titlePaint.setAntiAlias(true); titlePaint.setTextSize(mTitleSize); titlePaint.setColor(mTitleColor); int titleX = getCenterX() - ViewUtils.getTextWidth(titlePaint, mTitle) /...
0
eedd81bad06cdef487c60611ccafdeed
c245def633c6ca94669ed03a5036c50a
Prints the selectors needed when writing or finding questions
if check_sel(sel): cri_filter = self._criteria[['QuestionID', 'TargetID']] cri_filter['Domain'] = cri_filter['TargetID'].map(lambda x: self._targets[int(x)].reference()[0]) qs = list(set( [v['QuestionID'] for k, v in cri_filter.iterrows() if v['Domain'] == sel...
0
ea17862c6811179eb1356f996c97c8f9
98f523dc1979ba9bf5d3708f35d1c9cb
Ensure the specified feed url is valid
class FeedCreateController extends AbstractController public function validateFeedAction(Request $request) { $url = $request->get('Url'); $validator = $this->get('validator'); $constraints = array(new FeedUrl()); $errors = $validator->validate($url, $constraints); if ($errors->count()) { return new...
1
093eba50ae9333659e06941b0739c0c3
592aa49b3c28ab8d36e5e6fc402f8660
Check if the `Cache<K, V>` contains a specific key.
namespace Kronos.Client Task<ContainsResponse> ContainsAsync(string key);
1
5ebff409a8d81c0f1c9151fd08b6921e
446a57a006ca9e06b7c6d5b3a230ad5a
Builds a map of indexing configuration names to tables to to index.
abstract public function indexes($tableName, $dbName = null);
0
e95e6751946e3b864acb46863b74389b
3e571fb6a2e1871f440ff76d9e3d09a9
Вычисляет сумму четных чисел в заданном диапазоне.
int result = 0; int number = start + start % 2; while (number <= finish) { result += number; number += 2; } return result; }
0
2c1b3f3126997347de8f1abcbbc081bc
e25336ae5f2b800ba9b7c1e5adc75aa2
! \brief returns the array of alert ranges to the requestor
swi_uint32 timeout) { SWI_RCODE resultcode; swi_uint8 *inparamp; swi_uint8 *reqbufferp; swi_uint16 paramlength; reqbufferp = cngetreqbkp(); resultcode = SwiIntSendnWait( reqbufferp, CN...
0
e985346f5ba21d30635d9a431d02259b
0232b5e4bc2a98f3f62e9cd6bb9f4927
Returns the connection of the event if applicable or null otherwise.
IncidentDiagram incident = getIncidentDiagram(self); if (incident == null) { return null; } return incident.getConnection(); }
1
edb05364b0093815b6449d55411e3047
07c6669b2a91ad782ed1c9d487f802be
Stops the LWP System. Restores the stack pointer, and returns to that context.
void lwp_stop() { SAVE_STATE(); SetSP(gStackPointer); RESTORE_STATE(); }
1
17fcd80d7c59d0bbdb9d1244300b0671
5dde10ae80e828ae3516a3328a684184
@brief Get volume for SquareBar Shape
{ int minWidth = qMin(this->width(), this->height()); float barWidth = qMax(_outterBarWidth, _innerBarWidth); _squareWidth = minWidth - barWidth - 2; _squareStart = barWidth / 2 + 1; _dotX = _squareStart + _squareWidth / 2; _dotY = _squareStart; }
0
45a5ed4297c717868f25d9ba0ece8489
badbda6fb18ceb95b63816a57e9337e6
Get ElasticSearch type
class AElasticSearchDocument extends CModel implements IteratorAggregate, ArrayAccess, Countable public function getType() { return $this->_type; }
1
b154edf23934e90662205cdcd07e0e3f
596be41e51525715fe9124e431262d6b
Takes a numbered list of choices and maps them to the relevant search criteria.
def facilitiesChoice(): chp = 1 fac_var = [] choices = form.getlist("facilities") if isinstance(choices, list): fac_var = fac_var.append(choices) else: fac_var = choices if len(choices)<1: fac_var = [] chp = 0 else: fac_var = choices crit = [] ...
1
29c5f12c1ab16f613c7212f81ad13ff7
3a0447f5437b08902001daccc1b7e932
获取港口列表
@Service @Transactional(readOnly = true) public class SupplyService public List<Areaport> loadPort(String deliveryprovince) { List<Areaport> harbourlist = areaportMapper.getProcvincesOrPortsByParentname(deliveryprovince); harbourlist.add(new Areaport(-1, "其它")); return harbourlist; }
1
1ab3ca4cf374244a419d462ec3eed42e
afb9c7b4b7b7914e2d1b8c0d298966f8
得到用户是否有权利验货
{ $shopOrderInfo = ShopOrderModel::where('uid',$uid)->where('object_id',$objectId) ->where('object_type',$objectType)->where('status',3)->first(); if(!empty($shopOrderInfo)){ $isRights = true; }else{ $isRights = false; } return $isRights; ...
1
1dad1bb3d637ecaf190694deb9c88c84
271ae4fe5b2ebf773078ed25335bba9b
sets the meter multipliers and score combos based on increment or decrement passed through
scoreModifier = 1; if (aromasToBe[0] == true) { scoreModifier += 1f; } if (aromasToBe[1] == true) { scoreModifier += 1f; } if (aromasToBe[2] == true) { scoreModifier += 2f; } i...
0
da52351f6a88fe498547633abeec1964
d6d2a0aee21ab6f2938195421c443b3e
extract higher 64 bits of a block
uint64_t extract_hi64(__m128i x){ uint64_t *v64val = (uint64_t*) &x; return (uint64_t) v64val[1]; }
1
79f99f9153748a27295d1faa8b6df3b7
09e9a81fb54d1cc419cbace74f92eff2
Display a file chooser to select a filename to display
static gchar *show_open_dialog() { GtkWidget *dialog; gchar *filename = NULL; dialog = gtk_file_chooser_dialog_new(_("Choose File"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); if (gtk_dialog_run(GTK_D...
1
0a1078f3725cad29fa1c12e512d2fbbd
a00970404a744c55b09ce0b563ddf7fb
Lists all reviews for a movie
@Service public class ReviewServiceImpl implements ReviewService @Override public List<Review> findByMovieId(Integer movieId) { return repository.findByMovieId(movieId); }
1
2ae2d5454436340029159758aa567cd8
98d8fc334d711f5d5e367f0fba8d64f0
拦截不可访问的客户端
public class AuthorizedInterceptor implements HandlerInterceptor @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object o) throws Exception { LOGGER.info("RemoteHost: {} , RequestURL: {}", request.getRemoteHost(), request.getRequestUR...
0
e0861c9638153653148d486828768cd4
8480646f550c903b57c663b96ff03551
<br>[機 能] CSV出力のデフォルト値を取得する <br>[解 説] <br>[備 考]
public class AADLMqttFunctions static public final String getDefaultCsvEncoding() { String name = System.getProperty(PROPKEY_AADL_CSV_ENCODING); return (name!=null && name.length()>0 ? name : null); }
1
d3723fa72e31bda1b55f4017d0b6208e
ffb4791bcf4f694e2eb9699bce2659e2
Devuelve un link para volver a pedir un permiso.
class PermissionsController extends Controller public function show($id) { return back(); }
0
d4c65af05741c91ef0c9bf8f0c69c52d
985abb3b5d97029aae40790439d2f93b
Read and return ENV variables starting with "NAGIOS
{ global $config_array; if ($customnr = getenv('CUSTOMERNR')) { $config_array['CUSTOMERNR'] = $customnr; } if ($apikey = getenv('APIKEY')) { $config_array['APIKEY'] = $apikey; } if ($apipassword = getenv('APIPASSWORD')) { $config_array['APIPASSWORD'] = $apipassword; } if ($domain = getenv('DOMAIN')) { $...
0
e8d2ca8ec5b866a966366397cd3f86cb
4e25fdcc075ac06e06950bd2da3ae150
Set up the clocks that use moment.js
var date = new Date; var seconds = date.getSeconds(); var minutes = date.getMinutes(); var hours = date.getHours(); var hands = [ { hand: 'hours', angle: (hours * 30) + (minutes / 2) }, { hand: 'minutes', angle: (minutes * 6) }, { hand: 'seconds', angle...
0
d68adb257a53bcfdeafcce8883fb50fe
c3d1f12011d1b462c47eebd3d2d6d9ff
Invoked to allow some other return value to be converted into a Response.
namespace JoltNet [EditorBrowsable(EditorBrowsableState.Never)] void SetResponse(object model);
1
3548f741792110184f2b62a15b742310
18144ab16cd5a29763baa7703584324a
保存缺货处罚订单
{ BranchZcOrderTransitService transitService = new BranchZcOrderTransitService(); ZcOrderTransit tran = transitService.FindById(id_.Text.ToString()); ZcOrderRefuse refuse = new ZcOrderRefuse(); refuse.id = Guid.NewGuid().ToString(); refuse.createTime =...
1
d67292df97fcffed16d04e2f3dde69eb
8fda9bfb6bdeb87c8b9b2672374b7a9f
Optional, function that calculates the number of users that are on the bridge install, but not the local install.
uint16_t fetchNumberOfUsers() { return 0; }
0