query_id
string
corpus_id
string
query
string
code
string
label
int64
6cd82574666f010fa3ade5f35a283ed6
f0208bfcbee1efb4ceddc98a0b632cc7
构建getById语句
{ StringBuilder sb = new StringBuilder(); sb.Append("update "); sb.Append(GetTableName<TModel>()); sb.Append(" set "); string[] columnNames = GetColumnNames<TModel>(); bool isFirstColumn = true; foreach (var column in columnName...
0
d5a733cabe072bd2e100a627b2d116da
f784f323f6fba40bab79c4d71818734d
Returns the range of the function (as a string).
class Range toString () {return `{ x | ${this.from} <= x <= ${this.to}}`;}
1
c96f57bbb9b9a0465202aa095cb510f4
3e25710f026d27bae272cfeeb44de264
First we set our references to the FX manager and our audio source.
public class SFXManager : MonoBehaviour void Start () { }
0
bd84e27cb9050a3b51d08a044452011e
08b940544486169d41221e224fd33f88
根据用户id查询已经处理的活动
ResponseUtil searchActivity(int userId);
1
47087ebf777d25773b3be48191a9a30f
14b63283ed67c92667d1ac7167812702
Returns the station processes based on the station name
class Configuration(object): def get_processes_station(self, station_name): return self._processes_station[station_name]
1
cdc272b92cc495ac78d8d4df3ec5885a
6a15b911c4cd0ef361e9bb2b6926a397
Инициализация БД. Здесь мы совершаем поиск драйвера БД и вгружаем его в состав объекта БД
try { self::$schema = $schema; self::$file_log = $file_log; if(!in_array('mysql',\PDO::getAvailableDrivers())){ throw new \Exception('mysql not setup in PDO'); } $link_communication_with_data_base = new \PDO('mysql:host=' . $host . ';db...
1
a460d5400a67ad91c4512a6827b04226
c803013fe37644c571525544c425b349
Setter for email2.
public class Mst0002s05Entity extends PageBaseEntity public void setContractEmail2(String contractEmail2) { this.contractEmail2 = contractEmail2; }
1
8de01b687fc265a614ff125e1c4bcbe0
8bcab51971fe8e1d014aa7869a5b3f2b
Returns true if this instance was dispatched compositionstart but hasn't dispatched compositionend yet.
export class PickPaneComponent implements OnChanges _onCompositionStart(): void { this._isComposing = true; }
0
199a8e7c870397b73054b37daa22adcc
e829817a7c68acd787705b69c5797587
Turn off particles on start
public class MenuParticles : MonoBehaviour void Start () { }
0
36684d2641e15e2477fad2367b5a63a6
8caf13106b7ed6910723710e1646b4f3
找最小数的整数倍,满足所有数能被整除的最小的那个
r = n[0] while True: all = True for i in n: if i % r != 0: all = False break if all: return r else: r -= 1
0
4dcd07d1fa2584a4b770769334c3b38e
47fb6037a3c02e6b95aa5b123e1357df
从HttpRequestMessage中获取查询参数
{ var data = new Dictionary<ParameterInfo, string>(); IEnumerable<ParameterInfo> parameters = action .GetParameters() .Where(p => p.GetCustomAttributes<FromQueryAttribute>().Any()); data = parameters .Where(pi => context.Request...
1
a0aefa71d07f60b7eb768380cd7fdb67
3b732c0e13a1660ae4736736c3690721
Resets this one users motivation to their max
public void updateMotivation(Integer userId, String motivation) { crmUserService.updateMotivation(userId, motivation); }
0
b4d6cc44d3143f4cff6472ac845e664a
5315814076dfc7c8d5e514c7ab9c626f
Sends a server request without data
public class ServerConnection public static ServerResponse sendRequest(String requestType) { return sendRequest(requestType, null); }
1
77eb436d0c8e718875ece77b7e60f804
45f42f5ce1a59537b42ac9f13e535a93
Creates a string select menu.
$attributes["name"] = $name; $optionsString = ""; foreach($options as $key => $value){ $optionsString = $optionsString . getHTMLObject("option", array("value" => $value), $value); } return getHTMLObject("select", $attributes, $optionsString); }
1
5597ce6220f12e85e6a26058b951ed34
b8bd0e080e8ef8cb8284f1ba5c98ff77
Toggles cell shading from mouseover and mouseout events
var cellObj = $(cell); var hex = cellObj.attr("fill"); var colorIsLight = function (r, g, b) { var a = 1 - (0.299 * r + 0.587 * g + 0.114 * b) / 255; return (a < 0.5); } fu...
0
d7335d31dc2d5bd2e9ada86e5ed8cf48
fa8e2ba10249275d092196ca53a51d73
Regster dimension world providers with the dimension manager.
public void setDimensionData(DimensionType dimensionIn, NBTTagCompound compound) { this.setDimensionData(dimensionIn.getId(), compound); }
0
877dbbc81a7f00dd44dc6d06b9de7693
dc83063a3080cdac0a623d23dbb82092
Implements the action on the OUT state. Increase the number of lines, words, and characters or change the state depending on the input.
int main() { char c; int words,chars,lines; words = chars = lines = 0; int state = OUT; while( ( c = getchar() )!=EOF ) { if( c=='\n' ) { lines++; } if( c == ' ' || c == '\t' || c == '\n' ) { state = OUT; } else if( state == OUT ) { state = IN; words++; } chars++; } printf("There...
1
29e1d4725da8464ffd49658675e662c5
04532a54e6e36c2f0ef2b653ee9245d9
Adds he create containers (right) field
class AddFieldsContainerUi extends Migration public function up() { Schema::connection('mysql-ui')->table('containers', function (Blueprint $table) { $table->string('container_type_name')->nullable(); $table->string('container_form_name')->nullable(); $table->string('cont...
0
0a646d90c360b6e3333398b47c4681ac
a7b3940a6b9873b5657efcd3767927a9
Toggles the username and password buttons on and off based on the value of the Security type
if (this.xmlWrapper.headerSection.isEncrypted === true) { this.encryptionButton.style = OtExtender.BUTTON_STYLE.HIDDEN; this.encAddUserButton.style = OtExtender.BUTTON_STYLE.VISIBLE; this.encDelUserButton.style = OtExtender.BUTTON_STYLE.VISIBLE; this.logoutButton....
0
eddb261bd6fa4ceb8536e1f1562cc8b1
54bc4efa915cbc4b1a115072e810ef4c
Check if an account is subscribed to the webhooks <para>Read more : https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/api-reference/aaa-premium#get-account-activity-all-env-name-subscriptions </para>
namespace Tweetinvi.Client.Requesters Task<ITwitterResult<IWebhookEnvironmentSubscriptionsDTO>> GetAccountActivitySubscriptionsAsync(IGetAccountActivitySubscriptionsParameters parameters);
1
500f1e6823fbef98da028f664bc0742f
48a62fe65f9c0eb2be3710676c97ff76
STEP詳細表示
{ $f = $request->lan; $l = $step->$f; return view('admin.step.show', compact('l')); }
1
edbafae2a381e7aa154a5feb2fba8619
9e2bf0e28b2bdad14f1fbc22d6325fd3
Visualize a 3d skeleton.
class Viewer3DWidget(QGLWidget): def drawSkeleton(self): self.app.engine.drawSkeleton(self.transformScale,self.showTransforms)
1
d0efe1263a28b19da61d1fce9ab7b991
749f925861d1ff1ccaae9aa1d02197f8
GET: CwReport
namespace SensorInfoCloud.Controllers public class ReportController : Controller public ActionResult Index() { return RedirectToAction("Index", "Home"); }
0
f90e45f143f7d37e23e2ca29fa702aca
e4bb60ae732aca0bc283b2dc84037599
Convert delimeter separated string to camelcase
{ if (func_num_args() < 2) { return \Iresults\Core\Tools\StringTool::underscoredToLowerCamelCase($string); } $result = []; $parts = explode($delimiter, $string); foreach ($parts as $part) { $result[] = ucfirst($part); } return implode('...
1
528896e70d20ba46eb71f4592b3a2a66
35f3f439701cc00c707082abd43034c8
Only setup once, since this is a 'static' component
public class CSetupDialog : MonoBehaviour void Start () { }
0
1a4d9cd5317495cf397e76c05f154692
47c01f6d31c0630c1f907253748af017
获取这个View的ID
namespace YouZanXamarin public class YouzanFragment : WebViewFragment, SwipeRefreshLayout.IOnRefreshListener protected override int getWebViewId() { return Resource.Id.view; }
1
4286e077b08b06dae08f2c7b36634314
085253d441997a8f5593827407a73a3c
dp 转 px 工具
function dp2px(dp) { return (dp / 16) * getRem(); }
1
9e33bd9202be9bb079c835dbdd756341
377d6907776d13ba76aebe7fe9cffc12
获取正在运行的代理器
export class HttpProxy public static get(): any { return HttpProxy._agent; }
1
cb31e01cc2bf3ef87027b362eec86e2b
8702a62a27997dda32f2bc39e2f7764e
Safely set a DataGridView's datasource
namespace Hydrology.CControls class CDataGridViewRain : CExDataGridView public void InitDataSource(IRainProxy proxy) { m_proxyRain = proxy; }
0
4b77015280cfe94ffd5c6a78031e196f
a98babc05ddeb5876aaaeb2c57b4541c
Encodes the given bytes as a base58 string, a checksum is appended according to
def encode_base58(b): n= int('0x0%s' % b.hex(), 16) res = [] append = res.append while n > 0: n, r = divmod(n, 58) append(b58_digits[r]) res = ''.join(res[::-1]) czero = 0 pad = 0 for c in b: if c == czero: pad += 1 else: break ...
0
137f3b0b0dfb49bc0523ed9a5f37e6a5
93ae156b8bc7c36c5f6cc56df8b8424f
Выборка купленных пользователем лимитов по фильтру
namespace Repository.Abstract Task<List<RefuelingLimits>> GetLimits();
0
bd75ac09399957fb2cf836964e26dd2a
babfe2555b75148ac79671a19d458510
注册一个新的事件,并将处理事件的函数添加到事件处理函数数组中。
Log.I()("注册事件:", eventName, " \t--> EVENT_ID:", eventId) handleFunc := handleFunc{ funcName: eventName, handle: handle, } EventHandleList[eventId] = handleFunc }
1
4f60f74256fa2a2f00ab67eafb4d8947
93368b8e182416bab771e6f8907a0a8f
True if there are tasks in the queue
class ThreadPool def busy? !@task_queue.empty? end
1
efbb5fddf5f96c89e4381ce276a0d60a
8aed36e47bb46086a72600d6215ed78c
获取陪玩广告信息
class WebgameModel extends Model public function getWebGameInfo($data) { $webGameInfo = ''; if (!empty($data)) { $vtid = $data['vtid']; $where = array( 'ad_id' => 'webgame_' . $vtid, ); $adInfo = DB::connection('db_operate')->table('v_...
0
d8f04913ceec1e3c96dce17722dea5f9
3cc43b597bc74e9cee16af6af014316f
\brief Enable interrupt requests from an nRF24 module More detailed explanation should be here. <b>Note</b> Don't forget to enable at least one interrupt in the nRF24 module. None None \sideeffect None known.
{ if ( nrf24_instance->device_was_initialized == 0 ) { return NRF24_INSTANCE_WAS_NOT_INITIALIZED; } nrf24_instance->ce_low(); nrf24_instance->csn_low(); nrf24_instance->spi_write_byte(NRF24_R_REGISTER | NRF24_CONFIG); uint8_t current_register_state = nrf24_instance->spi_write_byte(NRF24_NOP); nrf24_instance->...
1
916aeb87d22ecef84f194b8e43867106
d8659a4c2c76e54c7e55b7f29ae17ea3
根据角色ID获取授权立项部门
namespace ERCHTMS.AppSerivce.Controllers public class SafeRewardController : BaseApiController [HttpPost] public object GetDeptPId([FromBody]JObject json) { try { string res = json.Value<string>("json"); dynamic dy = JsonConvert.Deser...
0
7a4cc243463c75182617905fa3c346b0
150f5384a02d08a0fe9327b96b48dfe8
需要经过序列化处理的类, 传入BodyOutValueList列表,将其序列化,储存在ArgList
public static A ArgList<T, A, R>(this Function<T, A, R> function) where A : struct => new A();
0
6b7a876cce0142958ece9e081e6be635
5dd260c30cff3d67615324d21a7fdc2a
Funktion to obtain the <i>y</i> component of this vector in cartesian coordinates. (assuming it is in polar coordinates).
namespace GACore.Extensions public static class Double_ExtensionMethods public static double ToYComponent(this double angle, double length = 1) => Math.Sin(angle) * length;
1
ebb9cbfb2899545c3d83a29061a44c8f
66ff45a7236db3d9fbcf03233d302632
Methode für Optimal Single Biarc Fitting. Gegeben sind Start- und Endparameter, sowie Start- und Endrichtung.
public class BallStickAstrocylindersLM_Fitter extends CompartmentFitter protected double[] getStartPoint(double[] data) { if (this.getFixedStartPoint(data)!=null) { return this.getFixedStartPoint(data); } double bsparams[]; try { bsparams = MultiRunMinimizer.getBestSolution(bsfitter.fit(data)); } catc...
0
5408c2fd88bd56e5aea7bc18eee0aecb
f0d4572569f077c8d4c1adef2d1c7bda
Calcule du nombre de publications externes enregistrées
function EXCountPublicImages() { $output = EXCountAllImages() - EXCountPrivateImages(); return $output; }
0
50cc81be82d63fb1e8968fcc75da730c
b2b6743aad16e51a264d9bd579c2f27a
завантажую товари на сторінку
$.ajax({ type: "POST", url: "items.php", dataType: "json", success: function(data) { for(var i=start_load;i<stop_load;i++) { if (data[i]) { var item = '<div class="item">' + '<div>' + '<div class="i_img"><a href="#"><img src="img/' + data[i].img + '" alt=""></a></div>' + ...
1
0d1845d636e4b3c790e12960476ae372
face54d28249b9be4097750f3ab007cc
當縮放操作結束動畫 如果圖片超過邊界,找到最近的位置動畫恢復. 如果圖片縮放尺寸超過最大值或者最小值,找到最近的值動畫恢復.
{ if (!isSlide) { double destWidth = 10; double destViewportWidth = destWidth; uint ableToFinishTweenCount = 0; List<int> ableToFinishIndex = new List<int>(); int len = Indices.Count; for (int...
0
f99b290bb71cdbb6f275e3ed6d42a27b
6b5bc7ef917d7a5ec451bb2070ffe4f9
find which acronyms do not have a corresponding full form
self.acros = {} linecounter = 1 l1 = self.acrobase.split(u'\n') edpr = u'' edpo = u'' if self.editor == True: edpr = self.edpre edpo = self.edpost for el in l1: if len(el) != 0: if el[0:1] != u'#': try: veri = True key,alternate,expansion = el.split(u',',2) if expansion...
0
80e94c439a5147c14ca3c9c2914fa366
52ab074a332bac995cbfd31940a1a844
Sets notification url of new payment request, which is a HTTPS URL where the payment notification will be send.
public class PaymentCreateOptions extends PaparaModel public void setNotificationUrl(String notificationUrl) { this.notificationUrl = notificationUrl; }
1
63e8440826e400199d0b90f35db7c927
719310f9ace96875fcbbdc499eb3dcb4
JSON 序列化预编译
namespace Symbol.Data public class NpgsqlDatabaseProvider : DatabaseProvider class InsertCommandBuilder : Symbol.Data.InsertCommandBuilder protected override void PreValues() { base.PreValues(); foreach (string key in _fields.AllKeys) { object value = _fie...
1
16bc99c9dee369d45b371688602b735f
a42e137d7f7626e6c4143fbfea91b607
Adds a CSS style to the builder.
export default class PluginUtilities static addStyle(id, css) {return DOMTools.addStyle(id, css);}
1
e7254eb8a96e595e2cb5d589c17c5c8e
0c42a2a9a6ec895367ad3029f6f34f91
Check if analysis is to be performed by checking the provider is enabled and it has a tracking id
$allow_tracking = get_option( $this->slug . '_allow_tracking', 'no' ); return $allow_tracking == 'yes'; }
0
112adb24bfd4eae376db137ee0ebf4ac
f3847ca3bb8c800ca7d1fb5ec606c96d
使用jieba分词对问题和答案集合进行分词
self.raw_q = [] self.raw_a = [] s = open(params.corpus, 'r', encoding='utf-8').read() s = s.split('\n') print('jieba...') k = 1 for sl in s[:]: if k == 20001: break if sl.startswith('M '): sl = sl.strip('M ')...
1
696f908d0785af7deda6d44a3b508b37
5f7793c89f08ee42977cc40bd845fb16
Returns the current frame as a buffered image.
public class AnimationFrame public BufferedImage getImage() { return ImageCache.getImage(tile); }
1
844bf33844ee481469afefea6d66a252
91b8b959786c6183dca375acc6ffc935
Update the node with the given file
void save(FileNode fileNode) throws Exception;
0
2d934f2d57a6f771c44996ed5412718d
4c7e9eebf995ec84089bee196f56328e
function for getting the Hamming Distance of 2 strings
def get_hamming(string1, string2): s1 = list(string1) s2 = list(string2) mismatches = 0 for i in range(len(s1)): if s1[i] != s2[i]: mismatches += 1 return mismatches
1
ca6d805bef8f5ded7d2b234c13bcc6fc
620d0ace852adb96722fbf29831c456f
友情链接添加功能
if request.method == "POST" and request.is_ajax(): data = request.POST name = data.get('name') description = data.get('description') link = data.get('link') try: friend = FriendLink.objects.create(name=name, descripti...
1
6fdd0dd7055dc4313035409d8fd5a302
9afe18004a2e52965cbf9dd8b9a77864
Ignore anchors that are cross borders
void Super_AI::anchor_down() { poss_moves.clear(); int rows = board->getRows(); int cols = board->getColumns(); bool found = false; for(int i = 1; i <= rows;i++) { for(int j = 1; j <= cols; j++) { found = false; if(!board->getSquareM(i,j)->isOccupied()) { if(i-1 > 0) { if(boa...
0
2409fa32f499679ea27774eb8ad68724
e0e4d23b560e559c79c2a017af9144ad
Terminate a simulation run by clearing the pending events list.
class Live3DGraph: def end_simulation(self, events): self.run_sim = False
0
c9e17f6a3fbcee301367e261da60e6e6
44a6ee919041181c387a9addd08d8cc9
Get the values and separate them by set
class Query public function getSet(int $flags = 0): array { return $this->splitter->splitSet($this->getParts(), $flags); }
1
030647aa3fd13b005e9fd2e0e542440a
4e209f7f81164e5b399104d5a1b4353d
NewWithServer new V2 client with provided server
func NewKMSv2Server(kvClient Client) (*KeyManagementServiceV2Server, error) { statsReporter, err := metrics.NewStatsReporter() if err != nil { return nil, fmt.Errorf("failed to create stats reporter: %w", err) } return &KeyManagementServiceV2Server{ kvClient: kvClient, reporter: statsRep...
0
e948ec33e4e6e160e215830eb53d8469
06b7a69f930e25a2b39117ed4f8b6c19
このフレームが終わるまで、タッチ処理を無効化する
{ if (promptPanel.activeSelf) { return; } this.tapFlag.Value = false; #if UNITY_WEBGL || UNITY_EDITOR if (Input.GetMouseButtonDown(0)) { this.touchStartCameraPosition = this.camTransform.position; this.touchStartPosition = Input.mou...
0
950349d3788be507a936e1a230bee27f
9c3b88dabd38f7e8df78ec36c0b4ee94
验证并获取请求参数,同时记录请求日志。
public Object around(ProceedingJoinPoint pjp) throws UnauthorizedRequestException { final String method = pjp.getSignature().getName(); if (log.isDebugEnabled()) { log.debug("Begin to execute rest method >>>>>>> :: " + method + ", params: " + JSON.toJSONString(ParamsHolder.getParams()))...
1
9604c7c52ea386809efa02bc83da9cc7
6eca5a938902cdc4a51b59c87bba9fa5
得到实体类名字。(去除字符串中的空格和非法字符,并把首字母转换成大写。)
String []entityNameStrs = entityNameStr.split("_"); StringBuilder sb = new StringBuilder(); for (String entityName : entityNameStrs) { sb.append(toUpperInitial(entityName)); } return sb.toString(); }
0
6b993dcaf70537d579f2ac3f7f2536d8
f7126ca220b971bcffde403d765cc98b
获取指定begindate日期后,第works个工作日的日期,会从sys_holiday表中筛选掉节假日
Calendar c = Calendar.getInstance(); c.setTime(startDate); for (int i = 0; i < workDay; i++) { if (Calendar.SATURDAY == c.get(Calendar.SATURDAY) || Calendar.SUNDAY == c.get(Calendar.SUNDAY)) { workDay = workDay + 1; c.set(Calendar.DATE, c.get(Calendar.DATE) + 1); continue; } c.set(Calend...
0
d384bd8ea2d37993e54927a0eb956016
631adf523b4ee31682a9260160c8243d
убираем все кроме цифр
function filterInput(e) { e.target.value = e.target.value.replace(/[^0-9]+/g, ''); }
1
f8b0116926adef9725d860854007cda7
4fbd97ed4896c7439a94077150263111
Processes the trace elements from the test results in the time window. Go over the traces and split them into a new multi dimensional map where: -agentName defines the key for map of agents. -timeperiod defines the the key for a map containing list of mappings. -mappings list will contain all the mappings received by t...
last_nodeid = None last_time = float() start_burst_times = {} stop_burst_times = {} for line in self.input_lines: recv_event_found = find_recv_event.search(line) trac_lvl_found = get_trace_lvl.search(line) if recv_event_found != None and trac_l...
0
0a171b6de0f0e98d92c209dda002f894
354f6b83cd108effc9eb6e1a53465956
Sets a new measurementSiteTablePublicationExtension
class MeasuredDataPublicationType extends PayloadPublicationType public function setMeasurementSiteTableReference($measurementSiteTableReference) { $this->measurementSiteTableReference = $measurementSiteTableReference; return $this; }
0
949b0ef08ff827b4723d3bdd32316bcd
b873370385befd323d29185059a8767a
Add attributes to the HTML generated by next_post_link/previous_post_link
pagelines_register_hook( 'pagelines_section_before_postnav' ); ?> <div class="post-nav fix"> <span class="previous"><?php previous_post_link('%link', '<i class="icon-circle-arrow-left"></i> %title') ?></span> <span class="next"><?php next_post_link('%link', '%title <i class="icon-circle-arrow-right"></i>') ?...
0
fc0bf6474fa6544774762ea9860614bb
9e8fc569ab86f03d1448c269bcf43156
the faster version Compute a targeted attack order consisting of nodes of maximal degree Returns: A list of nodes
min_indegree = min([max([mg.in_degree(n) for n in comp]) for comp in nx.strongly_connected_components(mg)]) smith = [comp for comp in nx.strongly_connected_components(mg) if max([mg.in_degree(n) for n in comp]) == min_indegree][0] return sorted(list(smith))
0
e1290d81d539335da731d13445a38387
a9d6024a4186ed433f3ff6a076ef01d8
Печать расписки абитуриента
class View extends \Gcms\View public function render(Request $request, $enroll) { $this->planing = \Enroll\Plan\Model::toSelect($enroll->level); $this->level = \Enroll\Level\Model::toSelect(); $this->status = Language::get('REGISTER_STATUS'); $uri = $request->createUriWithGlobals(WEB...
1
6635a5d175ef088467e7ee0db0d070fb
b414a63590ac3480040c089c51b9bc74
Be sure the compiler and CPU agree that this number is its own negative. If this check fails, encoding this number will produce incorrect results. This check makes the reason for the failure more obvious (defective compiler I think) Fortunately the number doesn't show up all that often.
int main(void) { static_assert(is_prime(1000000006), "..."); }
0
53fb2cd410c92e1ade95c3ce121983b5
8e2bf715be3eeb0286996163386beacc
Set the status of member $memberid with $handle to blocked if $blocked is true, otherwise to unblocked. Reports the appropriate event, assumes change performed by the logged in member.
josSpoofCheck(); $database = database::getInstance(); $action = $block ? 'block' : 'unblock'; if(count($cid) < 1){ echo "<script type=\"text/javascript\"> alert('" . _CHOOSE_USER_TO . " $action'); window.history.go(-1);</script>\n"; exit; } $msg = checkUserPermissions($cid, $action); if($msg){ echo "<scrip...
1
bf42905cf890497a1b64d5c624dae859
18f348d35461d6c24acf1c3a7b76584a
Send a SIP ACK
{ if (!stop && target!=null && sip_provider!=null) { sip_provider.sendMessage(sip_token,sip_provider.getDefaultTransport(),target.getAddress().toString(),target.getPort(),127); } }
0
d24279d42492c90af2f520cb37d5125b
e6d9eb1e4a12dd4d93c76f9fffe7f6f2
remove trace-line which contains a call the current method
class TimeTravelTracer(object): def _traceit(self, frame, event, arg): if frame.f_code.co_name not in self.NO_TRACE: self.traceit(frame, event, arg) return self._traceit
0
cc705e5ecae668b564e98049f5ee8061
198e8af6e246e01ee464411b4cbcfd5e
updateTextArea - updates the textarea with the iframe contents
const { id } = data; const iframe = this.nodeIframe; let doc = iframe.document; if (iframe.contentDocument) { doc = iframe.contentDocument; } else if (iframe.contentWindow) { doc = iframe.contentWindow.document; } const gistLink = `https://gist.github.com/${id}.js`; const gi...
0
ce25f864078b101d577e407e9ff26127
2102cab4a5db8d28142cba58a6ef8f82
Gets the factor used to determine how the volume of a sound rolls-off with distance.
export class Speaker public get attenuation(): number { return PythonInterop.getFloat(this.interop, `${this.accessor}.attenuation`) }
1
03bb0f6636384d14fc533d6b72f9e3c1
80c58ac9a3ada4f66e77aa4e236324ea
Height of bot's collision hull when crouched
res = self._hug_height if res is None: if self.orientation == 'vertical': res = 'ignore' else: res = 'strong' return res
0
f7b9539fbe42df7244f1fc9a2f322b44
634b9d49e2cf6a5d5ae5c846091ee18f
尝试执行指定的无参数有返回值的方法。
{ Action<object> successedActionEx = null; if (successedAction != null) { successedActionEx = (item) => successedAction(); } CallAsync<object>(successedActionEx, failedAction, method, args); }
0
966f6b5d3083db3d61fe04c610d9edc8
7f61448ad6da3ef0f9cb03f40c5be655
### NOT IMPLEMENTED!
cases like (1)
0
e0dbde2d673f7f254e5836ff409a39b6
a1ee9a06475f15e38180f4af24a12222
SMuRF Frame Statistics Python Wrapper.
class FifiLsFrames(SofiaFrames): def __init__(self): super().__init__()
0
0f9116e86dd34fcac5d870be1476d33e
367d3007492157a711dd697f91018243
Translates the platform by adding movingVector to its present coordinates
x += velocityX; y += velocityY; setTranslateX(x); setTranslateY(y); alignColliders(); if(existanceBounds != null) { if(!existanceBounds.contains(x,y)) { Temple.getActiveGame().removeObject(this); } } }
1
abe08ab4ad5e51b76c330f36fdcac71a
c7f37b9d819725e00737628d85d02987
body windows不需要复制db
self.data_path = data_path self.xlapp = win32com.client.Dispatch("Excel.Application") self.db = db self.cur = cur
0
ce7b110a54e41e57fc312eba402c8e40
cb280ce336ccb024a7e50fc093d9ded2
Returns the kit definition held by the object
public class PlayerData implements DataHolder<StatObjective, Integer> public PlayerKitData getPlayerKitData() { if (!data.containsField(StatObjective.KIT_DATA.getName())) data.append(StatObjective.KIT_DATA.getName(), new PlayerKitData()); data.append(StatObjective.KIT_DATA.getName(), new PlayerKitData((BasicDBOb...
1
2ee46817b7d56285e32a4f6135d35550
b2f3e0ac02436653ab2c0a28e7bbd3e6
sort the array of friends and print it
void sortAndPrint(char* friends_arr, int arr_size) { char temp[USERNAME_LENGTH]; int i; int j; for (i = arr_size - 1; i>0; --i) { for (j = 0; j<i; ++j) { if (strcmp((friends_arr + j*USERNAME_LENGTH), (friends_arr + (j + 1)*USERNAME_LENGTH))>0) { strcpy(temp, (friends_arr + j*USERNAME_LENGTH)); st...
1
c372452f9dc70fc3ca61292b4783d935
e5166f419a181a373244a3d9c0eef09f
Returns the lifecycle strategies used to handle lifecycle notifications @return the lifecycle strategies
public LifecycleListener[] findLifecycleListener();
0
0192fee2f088c0002154687f6b52c723
726ce95f990a867d68447266c8e5c397
Rewrites the children of the given custom modifier.
Contract.Requires(customModifier != null); Contract.Ensures(Contract.Result<ICustomModifier>() != null); var mutableCustomModifier = customModifier as CustomModifier; if (mutableCustomModifier == null) return customModifier; this.RewriteChildren(mutableCustomModifier); return mutable...
1
6d265dd45b1a011321c29dc4f85543c6
61af30961a2966379b87a34aa7e3fb17
Receives the data of a new library, to insert it in the database
global $conn; if($Organ == '') { return false; } else { $Organ = htmlspecialchars(mysqli_real_escape_string($conn, $Organ)); $Label = htmlspecialchars(mysqli_real_escape_string($conn, $Label)); $Family = htmlspecialchars(mysqli_real_escape_string($...
1
58c534cbe319be0f2a66b9f31375809e
363f1528e3008420543675179bee7672
Write boolean output for "find" command
flag = arg.split()[0] if flag in ["false", "False", "f", "F", "0"]: self._write_params = False
0
90fab1ca81062e69aacbf773497ad10b
2f368df612b103dd524bb5c59d4175f4
Set the name for this input node.
public class ImportCheckerNode implements Serializable public void setNodeName(String nodeName) { this.nodeName = nodeName; }
1
50c0b470e563c5bc1380cfd88cbd96ef
8653e73d6d601328334daba8042a0b80
动态创建一个radio的方法
DefaultTag.call(this); var _this = this; this.name = tag.name; this.key = tag.key; this.value = tag.value; this.mode = tag.mode; if(this.mode != "1"){ var label = new DefaultLabel(tag); if(this.mode == "2"){ label.entity.style.height = 25 * this.key.length + "px"; label.entity.style.lineHeight = 25 *...
1
e23bea41d7e30e577e973a7074a3e567
734be4be4e340c8a62ba2a9788d21abc
Used to get the delta for the option primitive.
public class TwoOptOption extends Option{ @Override public double getDelta() { return super.delta; }
1
db782da391162374532d8aef12a1d1e8
5e8a6ae8a896ca60d85996b508877874
单条数据详情查询持久层实现方法
namespace ShoppingMall.Services.Base public class BaseServices<TEntity> : IBaseServices<TEntity> where TEntity : class public Task<TEntity> Detail(string sql, object param = null) { return _baseDal.Detail(sql, param); }
1
de9bdb9c17918c771e481389319c8960
589e6086a8cc93baa9a25e191010cb13
Lists all Razas models.
{ if ($request->has('embarcacion')) { $zarpes = Zarpe::where('embarcacion_id', $request->embarcacion)->get(); return view('zarpe.index', compact("zarpes")); } $zarpes = Zarpe::all(); return view('zarpe.index', compact("zarpes")); }
0
7c12b344344cd17c4081b5ad7aa80524
f2d4cfb4f931737ce4199c863aa4077c
Registers Flask view with Flask app.
def register_views() -> None: for blueprint in get_blueprints(): logger.debug(f'registering view: {blueprint.name}') app.register_blueprint(blueprint)
1
106318effd06fe20f7c98ae42512f8bc
91ed11b319cbac97bf981912e8c9a8a2
Gets total number of ideas
{ HttpResponseMessage response = GetResponse("Dashboard", "GetIdeasByStatusCount", facilityId, ideaStatesEnum.ToDatabaseValue()); response.EnsureSuccessStatusCode(); return int.Parse(response.Content.ReadAsStringAsync().Result); }
1
29291261c273682a0af06f4241be60f2
60a561be4ce14b4c2ed20d4013772351
Retrieves the next unstarted item on the queue with the specific identifier and marks it as being started.
public function getNextQueueItem(bool $markAsStarted = false) : ?ActionQueueItemModelInterface;
1
6ccfbe39ca1e52a0f75704c91e461df9
a771f51f32eb7a0e1bbcafa6bb967a27
删除挪车明细
int deleteTruckTaskDetail(String truckTaskDetailId);
1
6f8063ccf2676819a33fc43fa15ff184
5c43f9bfa4ecf3e09e9a2c1ba830193f
Dessine les salles.
drawDoor(1.0,0.0,2.5,-10.0,0.0,0.0,0.0,7.0,3.0,0.5,0.0); drawDoor(1.0,0.0,2.5,10.0,0.0,0.0,0.0,4.0,3.0,0.5,0.0); drawRoom(0.0,0.0,0.0,4.0,1.0,1.0,0.0,0.0,0.0,0.0); paintStatue(-5.0,1.0,0.5); paintStatue(-5.0,1.0,-1.5); paintStatue(5.0,1.0,-1.5); paintStatue(5.0,1.0,0.5); drawCarpiosBur...
1
175d18ba501a8cb13340c84264cd14b0
e7ddcccbe310eeafcf7b3ea509b5e1d7
updates the personal high score
if(score > highscore){ highscore = score; highscoretv.setText(highscore + ""); SharedPreferences.Editor editor = sp.edit(); editor.putInt("highscore", highscore); } }
1
efb21acf5cff52f411561cc34817b5fd
a7b0221acf10a361c9f3d65ede55e354
method to get the business card fields
{ switch($pos) { case 0: return $this->getId(); break; case 1: return $this->getCcardNumber(); break; case 2: return $this->getCcardCode(); break; case 3: return $this->getCcardExpire(); break; case 4: return $this->getMemberId(); break; case 5: return $t...
1
6fe38da7545bccc84f8307904df91515
75f2143eada649ca99b21473bac93595
模拟在订单支付操作中,库存在try阶段中的timeout.
{ $this->setExpectedException( 'BB\DurianBundle\Exception\PaymentConnectionException', 'Payment Gateway connection failure', 180088 ); $exception = new \Exception('Timed out', 0); $this->client->expects($this->any()) ->method('send') ...
1
3c19c2b98814a4d849e34a0b9aa4432c
385c2c0dfd4e30a31b398c298152d4c9
替换sex数据为文字
String r = msg; r = r.replace("敏感", "").replace("被就业", "就业"); return r; }
0
e654a8976810079814f1f2db441a9a45
a235e253064ad535c15dfd9e83c7d021
Set's the default values, reads the ini (if any), and then writes back the values.
namespace IngameScript partial class Program : MyGridProgram void LoadDefaults() { bAddDate = CustomDataIni.Get(OurName, "DebugAddDate").ToBoolean(bAddDate); CustomDataIni.Set(OurName, "DebugAddDate", bAddDate); bAddLogCount = CustomDataIni.Get(OurName, "DebugAddLogCount"...
1
72ac562a1c1a79c6233b8332e114b0b8
8784ff3fb0b4c7eda62d1a178b49484a
设置当前职业
public class JobUI : MonoBehaviour public void SetJob(Job j) { this.jobData = j; this.jobNameLabel.text = j.name; }
1