query_id
string
corpus_id
string
query
string
code
string
label
int64
15e4d221692847210e17d1930dcdc8c3
17996a4973415b5fc76f40fb7d115ec0
Causes the new information displayed in a wizard to be presented to the user.
public abstract class WizardPanel extends JPanel public abstract void onDisplay();
1
40281ff80e5911940715a95cbc79c995
fc6715546a4f747dc8e28056b603e3af
从数据库里载入某个节点
var user *gobbs_nodes_models.MGobbsNodes rb := false sql_str := "select * from t_nodes WHERE `key` =? " log.Println(sql_str) var results []interface{} results, rb2 := _rawselect(gobbs_nodes_models.MGobbsNodes{}, sql_str, key) if rb2 { if len(results) > 0 { user = results[0].(*gobbs_nodes_models.MGobbsNodes...
1
a7899c414cdd9f39c2299ed2d78bb952
8a17459954fb30bc6e027e78a6c94f9a
Performs calculation of prefix expression
public class PrefixExpr public float evaluate() { float result = 0; TokenParser parser = new TokenParser(); List<Token> tokens = parser.parse(expr); Stack<String> optStack = new Stack<>(); Stack<Float> numStack = new Stack<>(); for (int i = tokens.size() - 1; i >= 0; i--)...
1
d631a6e8c12559fe949dc7b57cc4934c
092b76827e2a5d8042225634f28e2574
Gets the input and output arguments for the libsvt-av1 FFMPEG-encoder
export class YoutubeEngine implements IEngine private static getEncodingArgs(input: string): string[] { return [ "-reconnect", "1", "-reconnect_streamed", "1", "-reconnect_delay_max", "5", "-i", input, "-analyzeduration", "0", "-loglevel", "0",...
0
08d26931a51a5bdd06e05acfdc1f0936
c4272c0df6bf79e013673b08fcfbddb2
# Look up the Reactivation rate
f<-function(n,R0,K) return(R0*n/(1+(R0-1)/K*n))
0
ab668f17ef6b875f2a92c86fb5604e6d
d4bc34e6182ee4d0003dadd46eca8c62
根据ServerID删除传送门
@Query("MATCH (n:SystemDto{id:{sysId}})-[*]->(c:server) DETACH DELETE c") void delServerBySysId(@Param("sysId") String sysId);
0
1d62e75cd1055462a90eb063c80c1d29
28c06b3fa56ac2afa70c7337c164f21a
Get all classlist count
{ $data['data'] = MstClass::select('id', 'class_name')->get(); $data['totals'] = $data['data']->count(); return response()->json($data, 200); }
1
70457a9a7ceb4990a0ce2d64e6dc17c9
dbba3e64d1bca6d2f45b52bb6dd04662
初始化日期控件初始值,默认范围一个月
$scope.startDate = DateService.monthEarly(); $scope.endDate = DateService.getToday(); $('#startDate').datepicker(); $('#endDate').datepicker(); requestLogService.initTipsForListDateChange(); }
1
b1b4261f4622bc36b43a9ef57ece8135
143f43c5555d3f218736b968abe7b4c8
Gets swap_id
public Integer getSwaps();
0
478ea80a225b1d8feba4e2ec1309a8d9
0c3cbedd1e4e14e40226008276a126e5
返回驱动的函数
class ActionBot(): def get_driver(self): return self
1
3c52e3b4e572333e9502fe8bcfff4c1d
2bf9fe0ae8e662503b2651b5a66724eb
Updates the maximal number of parallel iteration threads.
public void setMaxNumThreads(int maxNumberOfThreads);
1
c6549bdd06d66b216d3bfc6b535199ef
21a1e74721312101a89bc4c995c3d4b2
Regola gli interpreti per il Db. <p/> Crea e assegna al Db le istanze delle classi che dovranno trasformare gli oggetti in comandi Sql.<br> Sovrascrive il metodo della superclasse.
this.setInterpreteQs(new InterpreteQsStandard(this)); this.setInterpreteFiltro(new InterpreteFiltroStandard(this)); this.setInterpreteOrdine(new InterpreteOrdineStandard(this)); this.setInterpreteQm(new InterpreteQmStandard(this)); this.setInterpreteStruct(new InterpreteStructSta...
1
4d37a0550c683f35efa82c91c68264cd
ab2a409198913df930fbf53154b48937
u"""验证不可设置开始地址大于结束地址(testlink_ID:2463)
zoneId = 18 pageNo = 2147483648 pageSize = 100 payload = {'zoneId': zoneId, 'pageNo': pageNo, 'pageSize': pageSize} try: r = requests.get(url=self.logUrl, params=payload) except Exception as msg: print msg sys.exit(1) ...
0
25badb277c8232a33c992a15de53754b
efe033f48d5384faa4797a5e14516c26
Sets the value of the '{@link tfsm_plaink3Trace.States.tfsm_plaink3.TracedTFSM#getOriginalObject <em>Original Object</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
TFSM getOriginalObject();
0
c0ed99710ba0443c59cf8e918d911ca3
12abaf79cc9030363d2a5d2cd41dabf3
괄호 점수를 구하는 method
int length = expression.length(); int result = 0; for (int i = 0; i < length; i++) { if ((expression.charAt(i) != '(') && (expression.charAt(i) != ')')) { result++; } } return result; }
0
d3cc9643397be7d13cf57be375262fea
6289302af5cad64a4ca18373de2cecf9
create new instance of a knx tunnel (unicast) connection
raw = ( 0x06, 0x10, 0x02, 0x05, 0x00, 0x1A, 0x08, 0x01, 0xC0, 0xA8, 0x2A, 0x01, 0x84, 0x95, 0x08, 0x01, 0xC0...
1
f2ecae96b4e14d3c292d056b9b6d4dea
d5317399ceb0db478a06d39b554c6bb3
获取本机安装的net版本清单
public class UpdateManager implements ISubSystemCallBack{ private ArrayList<Object> getLocalList(){ ArrayList<Object> localList=new ArrayList<Object>(); ConfigManager configManager=ConfigManager.getInstance(); configManager.read("version"); return localList; }
0
02580645e8764da9fcad3f7637d0ab8d
0780099c4e0d07777137708f528e812b
Tests the case when there's a <ui:decorate> with a template that wants to insert a property defined by the <ui:decorate>, but the property was not defined. In this case the default value (= body of <ui:insert>) must be rendered.
Templated templated = new Templated(); String rendered = ml.rendered(templated); assertEquals("Hi, this is from a template.", rendered); }
0
51f23db90b9d584396e352bd3c12dee0
445c28f6d65047189eefbc7ca712e6c4
Specify filename for the shapefile to read.
public class TripReader public static class Builder public Builder setFileName(String fileName) { this.fileName = fileName; return this; }
1
c35d59dd8936b6c56ebef2586daa7a42
cf9ed9d44c24806b2ed723039251f9cb
return all handles that are set to force load
handles = [] if self.static and not self.dynamic: return handles previous_id = self.handles.get('previous_id', None) current_id = id(self.current_frame.data) if self.current_frame else None for handle in self._update_handles: if (handle == 'source' and sel...
0
705d98189fd722794b0e89aab70e351e
e0eab7c9d4cfae20a11333c9ca954f97
Обчислює список студентів, що отримають спипендію.
def get_students(request): user_id = request.user.id mentors_topics_ids = [topic.id for topic in find_mentors_topics(user_id)] students = set([record.student_id for record in MentorStudent.get_my_students(mentors_topics_ids, user_id)]) receivers = [] if students: receiver...
0
4cdf3af64d20f7dde0da921684763715
65f187a7cdd4bc16bac229d5ccd7a169
Helper function that creates input layer of the neural network.
weight = tf.Variable(tf.random_normal([input_dim, label_dim]), name="weight") bias = tf.Variable(tf.zeros([label_dim]), name="bias") output = tf.add(tf.matmul(input_features, weight), bias) tf.add_to_collection("output", output) return output
0
36c603e59e9235b2b5f77380171bee9d
3ab3b9f476282a9b876c2422ff680d6f
Returns words and vector matrix from a dictionary.
def get_vectors(model): words = model.keys() return words, np.matrix([model[w] for w in words])
1
b46bcc9b68b7cce53c3763013ebc50dc
2c0a041794042266a5d779bc9c48191c
Updates a RRD file with the given samples. This implements the rrdupdate_ command.
{ $this->flushRrdcached($this->index); $commandLine = ""; $commandLine = " graph - "; foreach ($this->rrdOptions as $key => $value) { $commandLine .= "--" . $key; if (isset($value)) { if (preg_match('/\'/', $value)) { $value...
0
6aa41597dd2d829917765af49914dab8
44f84b38fdb5d1112565ca574072e1b2
form3'ün gösterilmesini sağlıyoruz
namespace ProgramForGarazhFinal public partial class Form1 : Form private void Button3_Click(object sender, EventArgs e) { Form viewDepts = new Form3(); viewDepts.Show(); }
1
96f1044e7f3f39be394ae31c6edd4d7d
a5040f350126e15fafe37d0db02acd05
Test of finding reserved rooms at specific time
@Lock(LockModeType.PESSIMISTIC_WRITE) List<ReservableRoom> findByReservableRoomId_reservedDateOrderByReservableRoomId_roomIdAsc( LocalDate reservedDate);
1
c52f5a154ed9512fc290ebac41cae2cf
9063d312bf122350a2e2b26e0328dd26
判断信令是否需要处理
{ if (!dlg || !msg) return false; if (pl_strcmp(&msg->callid, dlg->callid)) return false; if (pl_strcmp(msg->req ? &msg->to.tag : &msg->from.tag, dlg->ltag)) return false; if (pl_strcmp(msg->req ? &msg->from.tag : &msg->to.tag, dlg->rtag)) return false; return true; }
1
aa9f3ab0cce49735cb9617248aee9656
a572e872403712d9969c2f9abf987949
Sets the html-element to use on highlighted words <para>Defaults to "mark"</para> <para>Set to null to disable</para>
namespace PicarioXPO.RenderAPI.Fluent IFluentXpoUrlGenerator SetHighlightObject(int objectNumber);
0
b3e8267ba22765b2dac1ddb8768a022f
d09636bc16b096547aa5972e90bf212e
Configures the application representative
class ApplicantAccepterPlugin extends Gdn_Plugin public function setup() { touchConfig('Plugins.ApplicantAccepter.ApplicantRoleID', 4); touchConfig('Plugins.ApplicantAccepter.ShowDiscoveryText', true); $this->structure(); }
0
abc9724e3817feddce39a9f7660ce55b
6b1adc750bc9855b25b8018cbd850bfe
生成编码(保证每次生成的不会重复)
$len= strlen($this->charset)-1; for ($i=0;$i<$this->codelen;$i++){ $this->code .= $this->charset[mt_rand(0,$len)]; } return $this->code; }
0
35184b85984a766f5d87890957fb1331
d7efa9926879a6c2e518180f8ea9dac7
\brief The internal function that measures a capacitance of all external capacitors. \details The function measures capacitances of all external capacitor (Cmod, Csh, CintA, CintB). The function stores cap values in corresponding registers. The function does not affect on another component parameters or functionalitie...
static uint32 `$INSTANCE_NAME`_MeasureAllExtCapCapacitance(void) { uint32 extCapIndex; `$INSTANCE_NAME`_SsSwitchSensingMode(`$INSTANCE_NAME`_SENSE_METHOD_BIST_E); `$INSTANCE_NAME`_BistSwitchHwConfig(`$INSTANCE_NAME`_BIST_HW_EXT_CAP_E); `$INSTANCE_NAME`_BistConfigClock(`$INSTANCE_NAME`_TST_EXT_CAP_RESOLU...
1
ce0f3ad7e00035b4c75b9f3ba54ca046
5f8f147dc1333667df2274a3eb9ded85
Gets the footer cell range.
{ if (_footer != null) { return _footer; } _footer = new Range(this, _rowIndex); return _footer; }
1
a1211a18d345751482cd8ae2f48e75da
1dc9767b1127324aaee01c331f2e9a62
Final check; nothing.
void HaltIfOnWrongSide::End() { }
1
d43caa7c0e7629fc8bd4a5526ea25ce9
6976161f49b3ebf6e314e7703df570cd
Creates a new deposite address for the specified currency.
interface UpbitDepositsService fun createDepositCoinAddress(currency: String): UpbitCreateDepositCoinAddress
1
d46c63b00bba16599ec9c3c332a0a6a5
1a7b35b71e08fd8831d77df414bf1a6a
<p> Deletes the SSM document and all instance associations to the document. </p> <p> Before you delete the SSM document, we recommend that you use DeleteAssociation to disassociate all instances that are associated with the document. </p> Asynchronous callback handler for events in the lifecycle of the request. Users c...
java.util.concurrent.Future<DeleteResourceResult> deleteResourceAsync(DeleteResourceRequest deleteResourceRequest, com.amazonaws.handlers.AsyncHandler<DeleteResourceRequest, DeleteResourceResult> asyncHandler);
1
4071c34192db0e24572d9edd7081fede
9c711f0c5d5bfc865514b99401fc1595
Prints the items in a given list of integers.
int i; for(i = 0; i < listLength; i++) { printf("%d ", intList[i]); } }
1
57504558530d5f68cc78fd102e694d74
daedf55cc362334621b3d4fc17ef3d8f
Injects Geocoder related services in the application.
class GeographyServiceProvider extends ServiceProvider private function registerGeography() { $this->app->bind('geography', function ($app) { return new Geography($app); }); $this->app->alias('geography', 'Geography\Geography'); }
0
39048d2ed8eafae9bb08cebe67142664
65a3e1f1deeb650c86b7b77f12d28032
Get users of a concert
$where_array = array(0 => array("column" => "uzivatel_id_uzivatel", "value" => intval($id_user), "symbol" => "=")); $concerts = $concertObj->getConcerts("", $where_array, "ASC"); return $concerts; }
0
9de2079724b8be8e7cd433da21ff59fe
573107e97427f7a3543828e32791e3c4
Accesseur en écriture de l'ID de la news.
class Comment public function setNewsId($id) { $this->newsId = $id; }
1
5da01f07913891eafce862828e7c23e1
cb3cd900290edc5310db4b114d33f397
Adiciona um valor ao total acumulado.
public class MateriaPrimaPorProduto public void setTotalAcumulado(double totalAcumulado) { this.totalAcumulado = totalAcumulado; }
0
65685b7404978d28c52915a0fb56c268
cf5448713b362284461f59872651970c
Gets a program by its casio name.
for item in self.items: if type(item) is CasioProgram and item.name == name: return item
1
e07ca5254ece36f7d1355fffc3c832b6
21d60148e1627742d237e61dd6557779
创建聊天小图标
public class NotificationHelper private int getSmallIcon(){ return android.R.drawable.stat_notify_chat; }
1
cf612847493481f70ba5a19ce811fdcf
76140c754919c70cbd8cc9d8bd6f82f4
팀 초대 현황 페이지
class Subpage extends CI_Controller public function teamterview() { $this->load->view('subpage/teamterview'); }
0
7bf5ccf236bd05614b0bf1c58e7d172b
1ddd8838b7d6905fb50a4c6b5f41cfe3
Extension for business phone number.
class ContactInfoResponse(dict): def phone_extension(self) -> Optional[str]: return pulumi.get(self, "phone_extension")
1
de3c2e2f8f4ae0aaa47fd2e06afc5386
f939d926e57770d35c7fe9debc320500
Gets the name of the a pitch [0, 127] as a String. For example, giving 60 (middle-c) would return "C4".
String sNote; switch (note) { case 0: sNote = "C"; break; case 1: sNote = "C#"; break; case 2: sNote = "D"; break; case 3: sNote = "D#"; break; case 4: sNote = "E"; break; case 5: sNote = "F"; break; case 6: sNote = "F#"; break; case 7: sNote = "G"; break; case 8: sNote = "G#"; break; ...
0
52b7183b270d5ff6c80c4625212a0672
cc618ebdbdb5c7f17ed5243d1002f4a8
Multiply two 128-bit integers, result is 256 bits.
void msrln16_pmul(const int32_t *a, const int32_t *b, int32_t *c, unsigned int N) { unsigned int i; for (i = 0; i < N; i++) { c[i] = msrln16_reduce12289((int64_t) a[i] * b[i]); c[i] = msrln16_reduce12289((int64_t) c[i]); } }
0
15a7a8c8813d903d53233c6d4082e975
5d7dd0f3e43ba1e0215600b359c53af3
Discretize whether a scan to insert is discretized first into octree key cells (default: false). This reduces the number of raycasts, resulting in a potential speedup.
public class Valuemapping extends Mapping public void addDiscretize(java.lang.Boolean value) { Base.add(this.model, this.getResource(), DISCRETIZE, value); }
1
e8dcd4cf6430071c6af3aa6f16ba6e1e
15160b17d39da6bb12ca1966f0e6a861
Calculates the ratio between two terms.
namespace Example_030 class Program static double Ratio(double a, double b) => (a / b);
1
0602bf23c148e48c0f7825b4e76b7072
9604303b5d2a586414bd3eab36bf5ec7
Orders the ranking by win rate.
class CandidateQuerySet(models.query.QuerySet): def order_by_wins(self): return self.extra(select={ 'win_pct': '1.0 * wins / votes', }).order_by( '-win_pct')
1
08659921d5a587a294b694cd6ee41b96
23febf9777785289602f28632dd8eb08
传入节点,检查是否为最后一个节点
public class Node public boolean isLast(){ if (this.next==null){ return true; } return false; }
1
add3d33f476be9b99bb270de9db4f4a1
d7227588100f4ac92f171711af4b12fe
Validate daily social request limits
async def check_limit(message, db) -> bool: u = message.from_user.id up = db.update_custom_field d = db.subscriber_get_from_user_id(u)[0] day = datetime.today().day prem = d[9] dt = d[7] limit = d[8] default_max = default_limit if dt == day: if not prem and limit >= default_max: return False elif limit ...
1
6a5863f70c5b8790171a033058981db1
ed7d45d140c08e2be75d37b30b868357
Gelen barkoda sahip ürünün adetini günceller
namespace OnlineShoppingWebApi.Controllers public class OnlineWebController : ApiController [Route("api/OnlineWeb/EditItem")] public HttpResponseMessage Put([FromBody] Cart cart) { HttpResponseMessage errRes = Request.CreateErrorResponse(HttpStatusCode.OK, "Record updated"); ...
1
2e2093b0e2bfee7c4c1d72cd78969169
2236b7981a03c3e1dfd3eddedd2527ab
我的关注列表,包括 话题和用户,分2次请求。
interface Api @FormUrlEncoded @POST("users/other/listFollows") fun listFollowMe(@Field("token") token: String, @Field("page") pageIndex: String): Single<Response<List<User>>>
0
c303112801e3ffd9b5976c38ff393cf4
02db5608eb5ff557b2da19887e7b28f6
忽略Ctrl + z和Ctrl + c退出信号
for i := range c { switch i { case syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT: os.Exit(0) } } }
0
f50570a43318adf61825cb6f2c9f6e4c
7558cd01158106b2198e4ec138da030d
Parses a Csv to a jagged array
int pos = -1; while (pos < data.Length) result.Add(ParseCsvField(data, ref pos)); }
0
35f9dbf2b0be25e580a98b13805f8930
e587c84d9d4e6de968edc4bffcea0b0d
待收货状态 可以收货
class Receive extends Configurable{ public function allow_receive_confirmed(){ if($this->receive_status==ReceiveStatus::ReceiveWaiting){ return true; } return false; }
1
904a2571497a65e7b63784bfd2cf3634
909f4bd3c6858b1f2949df177072ef6f
This function process the payload part of a JWT. All public claim types are validated. This function must not silently fail or the jwt struct may be only a partial representation of the actual JWT.
self.validate_aud(claims)?; self.validate_iss(claims)?; self.validate_jti(claims)?; self.validate_sub(claims)?; #[cfg(feature = "std")] { self.validate_timestamps(claims)?; } Ok(()) }
1
60f317f030cfdc14c2ffbdcd00e90fdd
4285d96e25a19d92c0ee1872015548a7
Represents a declaration of a variable, such as `let x = 7;`
class DeclAst(list): def __init__(self, dtype, varname, value=None, scope=LOCAL, enumlist=None, module=None): self.dtype = dtype self.varname = varname self.value = value self.scope = scope self.enumlist = enumlist self.module = module
1
2f8c3f6dcbf9eb0799f888b064216097
aa94af2d8f520ba93e240d4c3d49c387
Apply an affine transform to the joint position: <p> <code> q_filt = scale * q_in + bias </code> </p> <p> Useful when the sensor measurement does not directly reflect the joint position, i.e. separated with a constant gear ratio plus an offset. Implemented as a cumulative processor but should probably be called only on...
if isinstance(xform, tuple) and len(xform) < 3: raise ValueError("xform tuple must be of size 3") self._xform = xform super().__init__()
0
cc7823f0bdee4f3b2a842a58d7498c2b
7764f087da6a24cd8fcee188283dffc6
Sample from a discrete logistic mixture.
def sample_from_discretized_mix_logistic(y, log_scale_min=-7.0): assert y.size(1) % 3 == 0 nr_mix = y.size(1) // 3 y = y.transpose(1, 2) logit_probs = y[:, :, :nr_mix] temp = logit_probs.data.new(logit_probs.size()).uniform_(1e-5, 1.0 - 1e-5) temp = logit_probs.data - torch.log(-torch.log(temp))...
1
fc4888144adc7f33e532596df48cad31
4f3e9c1ee33181f3a0c1d50af4f83dea
プレイヤーのターンかEnemyが動いた後ならUpdateしない
public class Player : MonoBehaviour private void FixedUpdate() { if (playManger.Instance.isDefeat) return; move(); if (timeVal >= 0.4f) { Attack(); } else { timeVal += Time.fixedDeltaTime; } }
0
e800c8e4ba285050e279d7d7bbb4a98c
87d2ce0eb0dd8d9ff2250537e8aa495e
Print the lengths of each part in the best cut solution.
void Solution::output() { int i, t, ql = 0, fl = 0, sl = 0; Turn_table tnq(QUARTER_TURN_METRIC); Turn_table tnf(FACE_TURN_METRIC); Turn_table tns(SLICE_TURN_METRIC); SliceTurnTransform_table sttt; for (i = 1; i <= n1; i++) { t = s1[i].tw; if (slice_turn) { t = sttt.a_get_do_tw(t); pri...
1
2008f74aebce0a374add2741b7b8c801
f5c685fef63e90fb41346be7aaf44a8f
Rotate the character to the destination.
public class MakeCharacterFaceTileCommand : ICommand public IEnumerator Execute() { var grid = TileGridController.Instance.GetGrid(); if (_characterController?.Model == null || _targetTile == null || grid == null) { yield return null; } var direction = ...
1
4d09b18079a65030a09c35125034130e
a2a85098525e16f19c91e8fe24e64e74
新建拍照或相册发图按钮
func CreatePicPhotoOrAlbum(name, key string, b *Button, master bool) *Button { c := &Button{} c.SetPicPhotoOrAlbum(name, key) if b != nil { b.Combine(c, master) return nil } return c }
1
1f8f3c11abc5147351faa39458d2b60f
8c7dba5de132f7222e5b6f76d6f277df
The attribute name for updated at date time.
class Site extends BigQueryBase static get updatedAtColumn() { return 'updated_at'; }
1
0ba107834e080394903b22238111b1e2
5ddc7eab85cb9866aa4883b7de78a5fe
проверка на полноту заполненности фильтра запроса
function checkRequired(data) { let values = Object.values(data); let valuesLength = values.length; let valuesFilterLength = values.filter(el => el.length > 0).length; return valuesLength === valuesFilterLength; }
1
ae38bf09aefaffe692be2e9601cb7b65
05a32593509b0c2a73bceae0685a23bc
Принимает дату в формате ISO 8601, возвращает дату вида "1 января 2020"
function dateForAnalytic(date) { const days = ["вс", "пн", "вт", "ср", "чт", "пт", "сб"]; return `${date.getDate()}, ${days[date.getDay()]}`; }
0
cdfe142b45a3282a58bd2edf58594f13
990a482b5cf335694cea968b51e9a724
call will execute the "chunk of code" that gets passed in
function RunCode(UsersCode){ eval(UsersCode); }
1
395012decf757a1c23bdc283f7968d5d
2d0540fb1fb9173d57134ab9b9d0a213
Switch user to root
class CommonFunc(pexpect.pxssh.pxssh): def su_root(self): try: self.sendline('su -') self.waitnoecho() self.sendline(self.pwd_[1]) self.set_unique_prompt() self.sendline() self.prompt() self.sendline('stty -echo') se...
1
7817b54af56f5d5ff0d07c7d4ec96e4b
976a5259f5a00803357d2a031cad442e
设置控件左边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
namespace Frontier.Wif.Infrastructure.PanelExtensions public partial class RelativePanel public static void SetAlignLeftWith(DependencyObject obj, object value) { obj.SetValue(AlignLeftWithProperty, value); }
0
2a7c7eeba45558a7f59b7ea227fb1bfa
f503dcd0292c4c371973aa526fb84bad
使用for循环迭代(Iteration)生成器(generator)
def test(): for i in range(4): yield i
1
69cedcda507814f9f2280c17950f3e41
b5ed37952c988e05a7150885857a004d
Get the real sparse field size. When using multi_sparse_combiner, field size will decrease.
mp_uint_t total_size = 0; mp_int_t offset_ = MP_OBJ_SMALL_INT_VALUE(t->items[0]); mp_uint_t agg_type = GET_TYPE(offset_, AGG_TYPE_BITS); switch (agg_type) { case STRUCT: return uctypes_struct_size(t->items[1], layout_type, max_field_size); case PTR: if (sizeof(voi...
0
6359688b44bd6c18edbf1280f9a8676a
08efaeef697f9436ab3e1c10e6612d3b
获取worker的名称
class WebSocketChat public function workerStart($serv, $workerId) { if($workerId >= $serv->setting["worker_num"]) { \swoole_set_process_name("swoole-task"); } else { \swoole_set_process_name("swoole-worker"); } }
0
0debcf6692fddb79e566d76f66ce911e
38ccac1b2b27030ac8e8c254ba7b571e
查找某年某月的具体计划信息
public class MakeYearPlanFragment extends Fragment private String getSingleMonthPlan(int month){ return yearPlanMonthDetail[month]; }
1
1c4a22e9f0a44009d99043697b28081c
e8aa06abde715fe2b603f115d5a05280
환자정보 > 수납내역 등록/수정
{ try { OP_PatList curPatlist = ifrmRegister.CurPatlist; Action<ClientRequestData> requestAction = ((ClientRequestData request) => { request.AddData(LoginUserInfo.EmpId); request.AddData(curPatlist.Re...
1
fa8d76010c3a8ecaa07ecf89c110b14b
1ffe62c24e252c3cc94bee4b2deccb34
使用CompletionService来维护处理线程的返回结果时,主线程总是能够拿到最先完成的任务的返回值,而不管它们加入线程池的顺序。
public void run() { try { mSum = myFuture.get(10000, TimeUnit.MILLISECONDS); Log.i(TAG, currentThread().getName() + "任务结束于" + new SimpleDateFormat("yyyy/MM/dd HH:mm:ss", Locale.getDefault()).format(new Da...
0
dfcb83a0ede5d436b41122926edaa6a0
1d60c8c67e2da99f7811c576c4f80e1f
Exclui um ProfessorTurma
namespace APIEdux.Controllers [Route("api/[controller]")] [ApiController] public class ProfessorTurmasController : ControllerBase [HttpDelete("{id}")] public IActionResult Delete(int id) { try { _professorTurmasRepository.Excluir(id); r...
1
d0499c31e15aba2a064ca8165fb7df1d
b3cf302e6db99e142761d40d19758925
Should add a second comment normally.
public class TestPropertiesConfigurationLayout @Test public void testCombineComments() throws ConfigurationException { builder.addComment(TEST_COMMENT); builder.addProperty(TEST_KEY, TEST_VALUE); builder.addComment(null); builder.addComment(TEST_COMMENT); builder.addProperty(...
1
305ff7c55f6a75735284a8f47672da71
f19dbe0a507eb9996e30a5c414f9dec2
you should implement this in an adapter, but the default is to not-validate login attempts.
public class DoNothingLoginFailureHandler implements LoginFailureHandler @Override public void handleLoginFailures(String context, Account account) throws DALException { }
1
98887cfacb1e17a9f3f6a38dadae6018
674accdd17d502f7e0ab53b680c400d1
This is Bottom-Up merge sort
public class MergeSort public static void sortBottomToUp(Comparable[] c) { int N = c.length; assit = new Comparable[N]; for (int childArrSize = 1; childArrSize < N; childArrSize = childArrSize + childArrSize) { for (int low = 0; low < N - childArrSize; low += childArrSize + childArrS...
1
2abd4336aa8d2a791f3f2e790a4e0c83
3d92ed6840d0cbc6797c11db1b362e54
Returns an int indicating the position of the attachment within the body of the item (item: An item is the basic element that holds information in Outlook (similar to a file in other programs). Items include e-mail messages, appointments, contacts, tasks, journal entries, notes, posted items, and documents.). Read/writ...
public class MessageAttachment extends GenericBean public int getLinkItemId() { return linkItemId; }
0
f72c725af03b032896f7dbf74ab6acf0
d483d99e30623a1175a36fc76e78a1f9
Get the article description from the request
def get_article(): with open('/Users/cmy/Desktop/work/secondweek/data/article.txt') as f: line = f.readline() soup = BeautifulSoup(line, "html5lib") j_text = json.loads(soup.text) desc = j_text['param']['article']['description'] return desc
1
0989fff1a928c4569f8c353c252225d3
e2edcea82eed13a8a9117bbe443ac79f
Constructor accepting two points
Point::Point(double x_, double y_) { x = x_; y = y_; }
0
eac42ffe984e608eda7d7acb9f893871
e6a53a45a1285f44eaceb899f9e6f7d1
!MD #### IsWindowReady ```lua boolean Status = rl.core.IsWindowReady() ``` Check if window has been initialized successfully.
function WRNN_PlayerInfo:isReadyState() return self.ready == 1 end
0
196cdd8c887050d735da468c6d9aa0b0
e89d84a304cfc35518c36930e8ace24a
根据多表名分表向数据库插入数据
if(!checkTableName(tableName)){ return; } Map<String,List> lists = new HashMap<>(); map.forEach((k,v) -> { List list = new ArrayList(); list.add(v); lists.put(k,list); }); insertByManyRow(tableName,lists); }
0
9af8679ac0c00f77e37ed558093cff1b
3c5ec630f973359463b17da771b65f17
Getter method for error, mapped from YANG variable /reports/error (string) YANG Description: Error, if existent, when obtaining the report.
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "The3rdManRealtime", propOrder = { "score", "recommendation", "merchantAttributes", "error" }) public class The3RdManRealtime public String getError() { return error; }
1
e888777d13c91cc9764e238b32033abc
3da22e9ce389d43c674641fe532ddcf8
GET: PaquetesEnviados
namespace Pry_Agencia_Viajes.Controllers public class DetallePaquetesTuristicosController : Controller public ActionResult Index() { var detalle_Paquete_Turistico = db.Detalle_Paquete_Turistico.Include(d => d.Actividad).Include(d => d.Paquete_Turistico).Include(d => d.Transporte); re...
0
03291fb60b5468b878bd6be1267acdd7
f924e9146458ae06a638c081652e1714
This console app can be run using default settings for the database or by providing an AppSettings key as a command line argument
namespace Dz4 static class Program [STAThread] static void Main() { var builder = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile("appSettings.json", false, true); IConfigurationRoot configurationRoot = builder.Build(); var prov...
0
a381d07664b16df35e862f81206624cf
20f7c17707f974684a30c119e69ce561
Returns default subnet id for account
class AKSManagedClusterContext(BaseAKSContext): def get_vnet_subnet_id(self) -> Union[str, None]: return self.agentpool_context.get_vnet_subnet_id()
0
bd040b0615601cda7f2e867a68091469
c43220d6603274b97f26ebfa8d816d1b
Obtiene el conversor inverso al actual
abstract class Rule public abstract function getReverser();
1
0ab94587ecf2b97a53d752038790ee38
254ca3bd46311a0ad32ec9a30795daeb
Skip Scene Detect if the file already exist
if (!SceneManagement.Instance.Is_First_Visit()) return; StreamWriter sw_Clear = new StreamWriter(file_Path, false); sw_Clear.Write("Name" + "\t" + "IsExist"); for(int i = 0; i < enemies.Count; i++) { sw_Clear.Write("\n" + enemies[i].name + "\t" + "True");...
0
4bac6fbba1f2b44839199676bd124f6f
b33d8f609682ad65b3dc427deb9552d6
This method will recalculate the size and position of the Tmview control
void CBCGPFormView::OnSize(UINT nType, int cx, int cy) { CFormView::OnSize(nType, cx, cy); AdjustControlsLayout(); m_Impl.UpdateToolTipsRect(); }
0
896865b6038ec509d8d43c4c62c09daf
f115d9adc22ef950aaedca8b006eba4b
Updates layout of the specified match.
function setMatchInfo(match, championList, spellKeyList){ var players = { "blue" : [] , "red" : [] }; for(var i = 0; i < match.participants.length; i++) { var player = match.participants[i]; if(document.getElementById(player.summonerId) != null) { setStatus(player.summonerId, match.gameStartTime, championLi...
1
5443b07d2830870e536db31c1ec1c3fa
e4c17ea3e80781eaef5836fce89f8287
@brief Output %02X hex byte in ASCII format using debug transport function
char d = c & 15; if (d < 10) d += '0'; else d += 'a'-10; neo430_uart_putc(d); }
0
17c7047166f93e73e6bde0a6b496fe5b
d70bd695877d3a8bfe786e777b888bbf
{} //an empty block, equivalent to a null statement ; //a null statment
def p_statementempty(p): p[0] = None
1
ee29d57904ab17acdecd15ddf1b4477c
9658a6f54ecaf01d1b7646502e4ee5bb
Gets the ethernet of this PacketAnalyzerFlowHeader. # noqa: E501
class ValveRouteManager(object): def _eth_type(self): pass
0
d869353c4853c6ed904b8e215ed0a915
d45a1aa8658cf972c82f1812525fe82e
判断某个时间的数据是否全部到达。
class MotionData(object): def is_over(self, time): over = (not self.enable_loop()) and (time >= self.get_duration()) return over
1
502bf4cc5e2e486ba961b7a26d9328af
ca4748bd925e268ab7ec35c003dd7180
Devuelve una cadena que será el script para la inserción en la base de datos para el mensaje enviado
String subject = (getSubject()!=null && getSubject().trim().length()>0 ? getSubject() : "("+Msg.translate(getCtx(), "NoSubject")+")" ); String tabla = getAD_Tab_ID() > 0 ? new M_Tab(getCtx(), getAD_Tab_ID(), get_TrxName()).get_Translation("Name") : "("+Msg.translate(getCtx(), "NoReference"+")"); String registro ...
0
37bfbf70161e112fb9e976a4b4f382ab
a3ca6748b43b76715fa9f34f3a4a0e08
配置显示复选框
class Page function displayCheckbox($arrData,$variable) { if (is_array($arrData)) { $arrDefault = split(",",$this->reqData[$variable]); foreach($arrData as $key => $val) { $tpl_row = array(); $tpl_row['COMP_VALUE'] = $key; $tpl_row['COMP_TITLE'] = $val; if (in_array($key,$arrDefault)) $tpl_row['...
1
7e284383758018c28bfb4e91bd20b57f
fdf657275c7fedcbb206b7c91ee058da
create a dict with equations and salinities as keys from settingsfile reads equations, min salinity and max salinity from settingsfile
def dictionary(col): dic = { 'Q-E': '(input flow to plant)', 'ZN-E': '(input Zinc to plant)', 'PH-E': '(input pH to plant)', 'DBO-E': '(input Biological demand of oxygen to plant)', 'DQO-E': '(input chemical demand of oxygen to plant)', 'SS-E': '(input suspended solids to plant)', 'SSV-E...
0