query_id
string
corpus_id
string
query
string
code
string
label
int64
fd2ce25a65300b5e19c7baa885aa8ce2
be91507cc1b89bcfd3d8179528141b6c
申请打款前银行推送通知
class PayController extends \Core\BaseControllers public function yeepaybankNotifyUrlAction(){ $post=$this->_postData; $model=new \Users\UserPayModel(); $model->yeepaybankNotifyUrl($post); }
1
1e5232a472ce3e044b3c7b3c86989bb6
6db409eda7cf6d1519a8d15efa6fec13
Method to set course information to created course object. User passes in id, class name, class location, class start time, and class meeting days.
class DetailCourse: def __init__(self, code, title, semester, category, lec_session, slot): self.code = code self.title = title self.semester = semester self.category = category self.lec_session = lec_session self.tut_session = tut_session self.pra_session = pra_s...
0
1a2684aad3d53f4d245a4d1142269c8f
70d951df01d3019ef3bdd5c1534a02d1
copy pdf file(s) from input folder to output folder and stamp them with a watermark. If there is more than one file in the list, they are combined into one, with the filename matching the name of the first file to copy. There needs to be an equal amount of files and watermarks passed in.
new_buffer = self.__get_object_buffer(new_instance=True) watermark = PdfFileReader(new_buffer) input = PdfFileReader(file(os.path.join(settings.PDF_ROOT, dir_file_in, file_name_input), 'rb')) tmp = input.getPage(0) tmp.mergePage(watermark.getPage(0)) self.BUFFER.seek(0) ...
0
2400d1b805a69789472829a8f14f5b5d
92bcc015f5c3ab2a77fa64bd988738a4
Uses reflection to assign the backend options.
class LDAPBackend(orig_LDAPBackend): def __init__(self, *args, **kwargs): parameters.apply_to_django_settings() super(LDAPBackend, self).__init__(*args, **kwargs)
0
34b3d6a3bf19abdde33d7f4a38f843e9
1e521ff422265eed13b668a9fcb59e88
Return the Riju-Script-Hash field in a .deb file generated by Riju.
if "md5" in row: return row["md5"] elif "md5sum" in row: return row["md5sum"] else: return None
0
e2b4355e13e0bb27131c7aa5313c561f
6a79244b9eb4bdeebffa52431eeb15b4
Join names together into a name, ignoring any nulls, nones, empty strings, etc.
function joinNotEmpty(items:string[], sep:string) { var str =""; for (var i= 0; i < items.length; ++i) { var item = items[i]; if (item != null && item != "") { if (str.length != 0) str+=sep; str+=item; } } return str; }
1
2991434ce7f3d63d73dae94b9f64ec12
aafa2553d09ed581b5b75c02b7a304c5
获取所有教练姓名
let teacherNames = this.teacherNames; $.ajax({ url: 'courseR.php', data: {startTeacherNames: 0}, type: 'POST', success(resTeacherNames){ let teacherNamesDate = JSON.parse(resTeacherNames); for(let t = 0; t < teacherNamesDate.length; t++){ teach...
1
7b9810b0693baba8b31b9fa0663ccc36
0871bb817ba0da0ec7ce49b7e3b5a33e
Converts an array of ints to array of Integers
public final class CollectionUtil public static int[] convertIntegerArrayToIntArray(Integer[] array) { if (isEmptyOfArray(array)) return null; int[] resArray = new int[array.length]; for (int i = 0; i < array.length; i++) resArray[i] = array[i]; return resArray; }
0
4bcf749268d172d81b49d5e528584e88
6762f485a23192a106b3035f7716f454
Registers an object to be notified on arrival of an unsolicited message from a server. An unsolicited message has the ID 0. A new thread is created and the method "messageReceived" in each registered object is called in turn.
public void registerForPcoData(Handler h, int what, Object obj);
0
e007ff23b81b76f00d97293e1ae37f52
a2b7c60675595dd3c531e1b3f5f6492a
Create a SIDL array of entity topologies based on the native array.
HashMap<String, Object[]> subLayersEntity = new HashMap<String, Object[]>(); HashMap<String, Object> LayerEntity = new HashMap<String, Object>(); HashMap<String, Object> themeEntity = new HashMap<String, Object>(); if (params.themes != null && params.themes.length > 0) { for ...
0
a8631833ac05791d7dba177142930d6b
a7b1160ceeecfc8fba1ef15291acbee3
Set the action to perform against the reference table when the foreign key columns are updated.
class Mapping extends \Src\Core\Relation public function getOnUpdateAction() { return $this->onUpdateAction; }
0
f45c0a1490b71625aed15ad116109232
d9cc5b707ff27b5eea1e227f7469cdd1
Creates a new hashtable with the default size
HTHash hash = malloc(sizeof(struct hthash)); hash->ht = malloc(sizeof(Listptr)*defSize); for(int i = 0; i < defSize; i++){ hash->ht[i] = ListCreate(); } hash->curSize = defSize; return hash; }
1
f1729c8dc13d627c7e4a50d097888896
f86c36a4ead74311fd275c900143b009
查看绑定的银行卡
mineModel.checkBindCard(new HttpTaskCallBack<BindBankCardBean>() { @Override public void onSuccess(HttpResult<BindBankCardBean> result) { mView.onLoadBindCardSuccess(result.getData(), isWithdrawBtn); } @Override public void onFail(HttpR...
1
21e468553e4d4f265e88f759e39412a3
497ca3df69e93cc6469d58ca4f16c89a
使用本地文件系統接受網絡數據並存為新文件
{ string newPath = "f:\\编程.doc"; if (File.Exists(newPath)) { File.Delete(newPath); } FileStream fileStream = new FileStream(newPath, FileMode.OpenOrCreate); NetworkStream networkStream = new NetworkStream(m_TempSocket); ...
1
03e4aa5b1f327a8e8f2b6f45a3c7706a
fe66e6c58f540d21e67b99cc1dc49bc0
MoneyGram支付
class Merchant extends OppController public function send_ms() { $this->load->view('merchant_sendms',['value' => 8]); }
0
3cba11b85848df9385ff4b759d0c2605
2c474cc5ffc2aa05940ca066146fdfcb
Animation when sonic runs and then disappears off screen.
{ if (collision.gameObject.tag == "SonicPlayer") { hoveringNewtron.activate = true; Destroy(gameObject); } }
0
aacf6468596bcd307325fa3039414b62
27b9e6b6d13d80bcff9af85845911ce2
根据时间区间及处理状态获取订单信息
class ExceptionbillController extends Controller private function getOrdersByTimeInterval($timeInterval, $payMoney) { return OnlineOrder::whereBetween('ApplyDate', $timeInterval) ->where('PayAmount', $payMoney)->get(); }
0
1d45630a92d499e70e765a6e5439f1b9
b5ad8b96932bd289c115f38aeb505c4e
若已经缓存了该任务,则先删除,在添加
if task in self.entry_finder: self.delete(task) count = next(self.counter) entry = [priority, count, task] self.entry_finder[task] = entry heapq.heappush(self.pq, entry)
1
7896d139242962da18c101c9c467036f
bf100c0841b7a2efa338e91e5454c9bd
获取写入超时时间(单位:秒)
public class RealRequestCall public RealRequestCall writeTimeOut(long writeTimeOut) { this.writeTimeOut = writeTimeOut; return this; }
0
bf896ae443c0a17b29082af524b8fc48
ec9e79513b1bd39411f32d5e51f27e2e
The serial number of the SPU on which to run diagnostic
class SpuCustomDiagnostic: def spu_serial(self) -> str: return self.__spu_serial
1
53d485fea231d42abfc9d8286d59b4fd
d274b2696d212551564aa12ab8beccca
Clears the waypoints in the trigger selection system
{ if(autosavewaypoints) savewaypoints(); clearwaypoints(true); showwaypoints = dropwaypoints = 0; }
1
4ee994b9298617389cca7264161ea302
400e3908725cee7f1151da5841cc68c4
Radan muokkaaminen (lomakkeen käsittely)
public class lemmikki public void paivitaLemmikkiKannassa() { try { System.out.println("Muokataan lemmikkiä..."); String sql = "UPDATE lemmikki SET nimi = ?, väri = ?, ikä = ?, kuvaus = ?, rotuID = ? " + "WHERE lemmikkiID = ?"; Connection yhteys = Tietoka...
0
465009eff013867e465bc82f5b941b6a
4a9f59e507160f5c1df250b732a7f2e8
Отображает форму редактирования технической информации об объекте
{ techNameTextBox.Text = item.ToString(); techShortNameTextBox.Text = item.GetShortName(); techIdNumericUpDown.Value = item.Id; techYearNumericUpDown.Value = item.Year; UpdateTechPositionList(item); UpdateTechPicture(item); tech...
1
8f335d68a06fce3967a16d747012ddac
04e1ae3e80d1c1ba1dfdb43fa199eceb
初始化响应管理器
class ConsoleApplication extends ApplicationBase implements IWorkerHandler, IDaemonHandler protected function _initResponse() { $this->response = ConsoleResponse::getInstance(); }
1
eb2ca5265c8d51a799cd03a46f6da279
d241ea04d274b900d015a4dd04f34921
Bitwise disjunction.
if not isinstance(other, BitCondition): return NotImplemented return type(self)( self._bits | other._bits, self._mask & other._mask & ~(self._bits ^ other._bits) )
1
147041366beea54e9224e9272fb5cd15
c4e4c6d021469ecc10405b9a2fe77503
删除指定段名的整段数据信息
class GXEngien{ public function del_section($section_name){ $section_start = strpos($this->template_content, $this->tag_left_name.'section=$'.$section_name.$this->tag_right_name); $section_end = strpos($this->template_content, $this->tag_left_name.'/section'.$this->tag_right_name); $template_content_length = strl...
1
d2c1b81bacf266f7aab263bb4ae1fb96
f523cacc26096cc2d1924dd89aa1fac5
Create a custom blast database from fasta file
cmd = 'makeblastdb -dbtype nucl -in {} -out {}' cmd = cmd.format(fasta_file, shard) log.subcommand(cmd, temp_dir)
1
81ffe8e3219dc36d895aa5702751e2b4
7830757f21206a459b81c68afdc40c55
! Returns the correct price range of the product based on the logged in user, and the VAT status and use.
$product = self::maybe_get_product_instance( $product ); $posted = self::get_posted_period( $product, $suffix ); if ( '' !== $posted ) { $price = $posted; } else { $price = self::get_initial_period( $product ); } return $price; }
0
025e53b72b4bbb2f5790565d300a574c
f496086c36908fd94bda353be9016a55
Lends a dvd.
DVDLibrary addDvd(String itemId, DVDLibrary dvd) throws DVDLibraryDaoException;
0
57f2ae9ad87ef6121e20c60c2d838d2b
85eecba03e69d8f6aa463b886827a841
An array of formatted `lastname, first` like typical for RIS AU field and other non-structured single-string author uses. Code extracted from: https://github.com/inukshuk/citeproc/blob/52fb498b59e4d1c30eb9a44d18bb7a5e10cfaae8/lib/citeproc/names.rb#L314-L337
def convert_authors(element): return [author.find('name').text for author in element.findall('author')]
0
3f7cdbac060fff5d9f387d63b4ad9136
5afced996e24fe1686c558f21c0a96d8
Autorisation de supprimer (evaluationscritique)
function autoriser_evaluationscritique_creer_dist($faire, $type, $id, $qui, $opt) { return in_array($qui['statut'], array('0minirezo', '1comite')); }
0
2165ffb868cba2a31b4d31a0c6307813
eb381104ac68ab61c04d941af9d875c7
Gets the approval time OT.
public Timestamp getApprovalTime();
1
e5b77d5841a1de38be9ed0b4097408e6
b4ae97906ab8e41fd018e9fba0add0c5
찜한 상품 정보 호출 메서드
@Repository public class UserDao public List<GetProductRes> getUserWish(int userIdx, int page, int limit){ Object[] getUserWishParams = new Object[]{userIdx, page, limit}; String getUserWishQuery = "select P.idx productIdx, imgUrl, productName, price, quantity, deadline from Wish W\n" + ...
1
f1273562f4b9e1b7580771456bc82b78
6ef8dc59506a5b94876c1dba41c199d0
Set shipping address line 2.
{ $this->initialized['addressLine2'] = true; $this->addressLine2 = $addressLine2; return $this; }
1
18f5e91854a4887529f1991b445b50c8
43b54085467ea7ddf429678d432c1a9d
Metadata.xml XPath method reference: path="/api/package[@name='com.radaee.view']/class[@name='VPage']/method[@name='GetVY' and count(parameter)=1 and parameter[1][@type='float']]"
namespace Com.Radaee.View [global::Android.Runtime.Register ("com/radaee/view/PDFVPage", DoNotGenerateAcw=true)] public partial class PDFVPage : global::Java.Lang.Object [Register ("GetVX", "(F)I", "")] public int GetVX (float p0) { if (id_GetVX_F == IntPtr.Zero) id_GetVX_F = JNIEnv.GetMethodID (class_ref,...
0
208abd5b3aa9ebefe20e7c699aa3c3be
6d710072f0c38c8dedb5f1157a060add
Token returns the validated auth token from the request context
rawToken, err := GetRawToken(r) if err != nil { return nil, err } return Validate(rawToken) }
1
894f42cc7b023d8b5f2b5e74f3ebd511
c25b8f3bb8b791c240381cb6633136eb
Execute the program that was previously loaded into memory
ConsolePrint ("Starting Execution\n"); iCurrentInst = ((outputHeader*) mainMemory)->PC + 1; iProgramSize = ((((outputHeader*) mainMemory)->progSize) / sizeof (instruction)) - 1; pProgram = (instruction *) (mainMemory + ((outputHeader*) mainMemory)->progStartPos); pMemory = (long int*) (mainMemory + ((outputHeader*...
1
e6944d5604b2c144d368d493e9b65edd
337ddf9478c4f09e35588de6580033c4
url->json
function curl_url($url,$data = null) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $json = curl_exec($ch); curl_close($ch); $js...
1
15e62b8b80b3917b90e0c833b8988a78
6b8b3b2feed401017c75659f24ba0796
Verify that convert date correctly converts a date to a timestamp.
class DateTimeTypesTest extends TestCase public function testJsonApiDateTypeConversions(): void { $type = Type::getType(JsonApiDateType::NAME); $platform = $this->createConnection()->getDatabasePlatform(); $jsonDate = '2001-02-03'; $phpValue = $type->convertToPHPValue($jsonDate, ...
1
c7433ad9efc93508a9ab4da7abe6d8eb
c3b181fe0fbf2c60bac31dcddd85372a
Returns the number of available Palantiri.
public class Options public int numberOfPalantiri() { return mNumberOfPalantiri; }
1
c17cf7f844b1ddf5ac94734ecf9645e0
e1afd239b7fc41ba3dc37d7fee9003ed
Determine the git clone url for the current repo Returns
class Repository(Artifact, ActivityObject): def clone_url(self, category, username=''): tpl = string.Template( tg.config.get('scm.host.%s.%s' % (category, self.tool))) return tpl.substitute(dict(username=username, path=self.url_path + self.name))
1
2a47c8142793721ba9855a9bcbf7daf6
0ac9f54925f6bef9fd77273378341738
正常调用返回或者异常结束后调用此方法
public abstract class AroundInterceptor extends AbstractInterceptor protected void finallyIntercept(ActionInvocation actionInvocation, String result) { }
1
dafe56a08b80b943acdbff8e5239c68a
92958b89b1ae09ebcc1bfd32fad25484
остаток от деления
static int do_div(int *n, int base) { int res = *n % base; *n /= base; return res; }
1
b10f07bf5f23136cd8fcd77dc98e52d4
59294b373b2af80e99f7565098eb7a07
compte le nombre d'occurence de chaque mot et reecrit chaque fichier avec mot occurence
throws IOException{ HashMap<String, Integer> occurances = new HashMap<>(); for(String word : words){ occurances.put(word, 0); } ArrayList<Word> wordsArray = text.toWordsList(); for(Word word : wordsArray){ if(occurances.containsKey(word.toStrin...
1
cb763274a0fbcede64d3bbc10947bb7c
b9a4283052d33a76c745afa82a632c28
Getter for IoT Edge device CA private key passphrase returned as a string.
String getPrivateKeyFilePassphrase();
1
373bfc28450bf5e40840f789d44dd434
adb1a895b86fea4000f58758a2ae6d3e
Day3 solution
def run_day_3(): return part_2()
1
d408cc17d83d398514baea5aca01c2ca
f611c5e4106793c6c13e46b812417d96
appsettings.json 子节点转实体
{ string json = GetString(settingName, null); if (json == null) { return defaultObj; } return Utility.Json.ToObject<T>(json); }
1
8d1a6c1e2900e1602cf9e153b8710f23
5f79ad6c54da3e063ae79c54bb80d23a
验证一个客户端字符串 ,返回没有哈希的字符串原型
local resty_sha1 = require "resty.sha1" local sha1 = resty_sha1:new() sha1:update(string) local str = require "resty.string" local digest = sha1:final() return str.to_hex(digest) end
0
9e0ddb5fec8f43f2557214b7f7e2036c
08e0c6544b06fe7a7c68bb60e0114668
Read the time from the DS1307. Returns time as seconds since epoch.
void read_time() { Wire.beginTransmission(0x68); Wire.write(0x00); Wire.endTransmission(); Wire.requestFrom(0x68, 3); ds_sec = Wire.read(); ds_min = Wire.read(); ds_hour = Wire.read(); hour1 = (ds_hour / 16); hour2 = (ds_hour % 16 ); minute1 = (ds_min / 16 ); minute2 = (ds_min % 16); Serial.prin...
0
2709910d4225bba6e0d8815794d4515e
e10e3b3e88780bd1a1fa2c9fe382cd68
Appends and returns a new empty value (as xml) as the last "metadataExtensionInfo" element
sb.append( " </xsd:sequence>\r\n" + " </xsd:extension>\r\n" + " </xsd:complexContent>\r\n" + " </xsd:complexType>\r\n" ); }
0
dc96a531ddc735525d25ab4f543a9bf0
50cc3249c74f0a4dc7825bfa9607e041
医师解绑
final class Sciener2Domain extends BaseDomain public function unbind() { $this->checkVersion($this->api_ver); $params = $this->parsePost('uid|0|int,lock_type|0|int'); $this->suc((new Logic)->unbind($params)); }
1
07173e475e7f36713ba9974b43c57ea3
290e2fb58ea94d134df942149055b74a
Metodo que retorna o individuo em int considerando que os cromossomos são vetores binários na forma de complemento de 2
double[] intValues = new double[this.descriptor.getNumVariables()]; boolean[] decodedGenome = this.decodeGenomeToBinary(); int index = MathUtils.sumSizes(this.descriptor.variablesLengths) - 1; double intValue; double power; for (int variable = intValues.length - 1; vari...
0
16b08de16f74e3699a9094a7f7ed774d
6ebafd1f831405af385d19dba970c52a
Guarda la página en la session asi el usuario puede ser redireccionado.
class Authentifiacation extends \Core\Controller public static function rememberRequestedPage(){ $_SESSION['return_to'] = $_SERVER['REQUEST_URI']; }
1
81b37c13c5ca799a8dd15a0f21c4a544
e60a8506b36343db406e96bfaedb057e
附近门店
string fromLatLng = "", string shopId = "", int pageNo = 1, int pageSize = 10 ) { ShopBranchQuery query = new ShopBranchQuery(); query.PageNo = pageNo; query.PageSize = pageSize; query.Status = ShopBr...
1
91e16fe6538eee0ceba8ad47efc8423e
80698c1444ae01848641505193627830
Whether to request delivery receipt from the recipient. For Commands that request delivery receipt, the Command state transitions to 'delivered' once the server has received a delivery receipt from the device. The default value is `true`.
namespace EaseMobLib void EMChatConfigs::setRequireDeliveryAck(bool b) { getImpl()->setRequireDeliveryAck(b); }
1
28f343d100bca92a998ca7faed78cab9
22ce646a1052c82ab2a85989c0735b56
Метод за изтриване на служител и връзките към всички компании за него
int rowsAffected=0; try { if (companyDAO.readCompany(company.getId()) == null) { throw new CouponSystemException("Company with id '" + company.getId() + "wasn't found"); } Collection<Long> couponsIDs = compCoupDAO.readCompanyCouponIDs(company.getId()); for (Long id : couponsIDs) { custCoupDAO.de...
0
33d365d42143e20b46f23dc596bc2c83
2f39da399ab92cbbec04d7ce6fb0b43f
获取体温情况编码表列元数据
ColumnDesc column=new ColumnDesc(tblDesc,"Sd_oxygen"); column.setLength(50); column.setSqlType(Types.VARCHAR); column.setNullable(true); column.setLabel("吸氧编码"); return column; }
0
1bd33aa92c7c4d606ab725ebb16a363e
0085b24bbbd69069903e195f381dbd5c
Store Shipping info in session
{ $_SESSION['sameasbilling'] = $_REQUEST['sameasbilling']; $_SESSION['saddress1'] = $_REQUEST['saddress1']; $_SESSION['sfirstname'] = $_REQUEST['sfirstname']; $_SESSION['slastname'] = $_REQUEST['slastname']; $_SESSION['sstate'] = $_REQUEST['sstate']; $_SESSION['scity'] = $_REQUEST['scity']; $_SESSION['s...
1
77b2d8a805bf1a74eaf452d73e82ee02
48184d60a86110d0916fac6e4d8f6c0c
! Diffusion using method of lines (MoL) to discretise the PDE into ODEs
{ float a=dt*diff*height*width; for (int k=0 ; k < maxiter ; k++ ) { for (int i=1 ; i<=width ; i++ ) { for (int j=1 ; j<=height ; j++ ) { x[IX(i, j)] = (x0[IX(i, j)] + a * (x[IX(i - 1, j)] + x[IX(i + 1, j)] + x[IX(i, j - 1)] + x[IX(i...
1
437a92b8fb82921612dc8139fbe22e20
2addf0521a69b3bee159b69ccfaab1ad
获取ztree全部数据
function getzNodes() { var url = "/Common/MFoundation/RemoteHandlers/LocomotiveControl.ashx?type=tree"; var json; $.ajax({ type: "POST", url: url, async: false, cache: true, success: function (result) { if (result !== '') { json = eval('(' ...
1
a40d4dc09e1d6f99b5c382bcdcff6d6e
7f00c3cce6301935f23ac9fd7c3f5773
Resets the scriptable object value back to its default value.
namespace Core2D.Editor public partial class ProjectEditor public void OnResetRepl() { _scriptState = null; }
0
cabb418b92ef1a14644a374b4430dffa
e3567a970ee7f0006a974f140d838f18
returns a list of all buttons being pressed
l_buttons = self.get_word_buttons_list() w_list = [b.text for b in l_buttons] return w_list
0
e2a5c3b54cbbf3d695ff3c60ce798849
01255917eec5dba4f34d57c54de4567f
see https://stackoverflow.com/questions/717762/how-to-calculate-the-vertex-of-a-parabola-given-three-points
public static (T a, T h, T k) StandardParabolaToVertexParabola<T>(T a, T b, T c) where T : INumber<T> { T two = T.CreateChecked(2); T four = T.CreateChecked(4); return (a, h: -(b / (two * a)), k: -(b * b / (four * a)) + c); }
0
57750d4f6a1998496bc08a9f72266ac5
6d3aa8db75d19c976e9d47bdf3f7ac2d
Obtiene registros de la tabla EVENTAS.LMK_BRK_CHANNEL_TRAILER para armar archivo
$sql = "SELECT EVRI_Id, EVRI_Consecutivo, EVRI_IdEvento, EVRI_IdProceso, EVRI_IdCargo, EVRI_IdResponsable, EVRI_IdInterseccion, EVRI_CustomerKey, EVRI_UserKey,EVRI_EventoKey, EVRI_DateStamp FROM ". $this->db_table ." WHERE EVRI_CustomerKey = ? ORDER BY EVRI_Id "; $stmt = $this->conn->prepa...
0
0e91ccf58402a4444e207676bebcc156
1a5503343b9fe20b9fd421598b522d75
This method removes the end part of a string beginning at a specified marker.
IString removeEndChars(int nb);
0
546504ff6d514f6602bc78a9af32b11d
c44e7f379b80fc8facf0642e6a32a221
Send an event to the event handler to process immediately.
namespace Template10.Common public sealed class EventThrottleHelper : DependencyObject public async void TriggerEvent(object eventData) { await DelayAction(eventData).ConfigureAwait(false); }
0
222ef6ce1ba396757d5c3097f08577f6
45b6613e8d18f0b8c411b7830394db79
Setup the extended command line by sending all the arguments to the program via DDEUtils module.
void CDTMain::vSetCommandArguments(unsigned int argc, char* argv[]) { vCommandLineToCommandArgumentArray(argc, argv); }
0
93a6f21e207fb249d3fed465285e51bc
98fc8e94eb4af8261bf3c4cf2b9f8fed
Gets perTransactionCharged
class Charge extends TransactionAwareEntity public function getTransaction() { return $this->transaction; }
0
a86d6e14f85e868a710e0737987f59b2
11856bfb29fc3486f61c7a10d1dcf6a9
Возвращает список номеров, доступных для бронирования или заселения
Reservations reservations = new Reservations(); reservations.setDate_start(startDate); reservations.setDate_end(endDate); reservations.setId_room(LoggedUser.getINSTANCE().getUser().getId_hotel()); reservations.setId_package(personsNumber); Message message = new Message(...
1
0d1de2086bb4d7b7fa6f0dd09a4e430a
1409568d240b4f02820e2d19d090e5e3
Create target vector out of stroke-5 data and stroke_lens. Namely, use stroke_lens to create mask for each sequence
max_len, bsz, _ = strokes.size() eos = torch.stack([torch.Tensor([0, 0, 0, 0, 1])] * bsz).unsqueeze(0) eos = nn_utils.move_to_cuda(eos) strokes = torch.cat([strokes, eos], 0) mask = torch.zeros(max_len + 1, bsz) for idx, length in enumerate(stroke_lens): m...
1
e66798536d603aab23af61b5a1233b83
414e644c618cabe7eb7b5d1ac3fe562a
Append missing closing tags.
{ if ($this->skip_chars('>') >= $this->slength) { return; } $this->append_text(); }
0
8dbe4fb9f3044db65158b9fbf4d3c313
6a0e8be7206f1b734fe5ddc02de22ca9
Test that different devices given the same random seed will produce the same results
def test_deterministic_tfp_seed_stream(): deterministic.set_seed(0) with tf.compat.v1.Session() as sess: rand_tensor = sess.run( tf.random.uniform((5, 5), seed=deterministic.get_tf_seed_stream(), dtype=tf.dtypes.float32)) se...
0
a3e64b23f258efe9db53b977f2b78879
96bc3fdc4fce212bccec1b8a91f63f28
Return the i-th element of the data list (self.data)
class LinkedList(AbstractList): def __getitem__(self, i): if i < 0 or i >= len(self): raise IndexError("List index out of range") return self.getNode(i).data
0
cbb1a71b3bf35b243d201e8135889afa
bc5635ed8adbf96edb4033e4f4b97b81
Testing that metadata can not have blacklisted names.
path = self.path_metadata._path metadata = get_metadata(path) try: metadata.this_does_not_exist except AttributeError: pass else: self.fail("AttributeError should be raised on missing FormattedMetadata attribute.")
0
2341e5f446c90d23902e7f53e5b86db9
02dae54fb84ff9f3951a0da9a4ab62d9
Obtiene las metas originales de un tipo de gestión para el año indicado
return self::where('ano', $year) ->where('tecnologiaid', 0) ->where('cicloid', 5) ->where('modalidadid', 3) ->whereIn('cultivoid', $farmsIds) ->get(); }
1
592a79ec129763e260c5d46ed7d680de
d8d1cdaf9a90821c91b694a2f2962102
查询某个家长和学生的关系
@Service public class StudentParentService public Tb_student_parent selectParentByid(Integer studentId,Integer parentId) { Tb_student_parentExample condition = new Tb_student_parentExample(); Tb_student_parentExample.Criteria criteria = condition.createCriteria(); criteria.andDeletedEqualTo(false); criteria.and...
1
2e9b1f1b40c453e3f8a352ff7cfd8225
11394c58eb3cf20efa1db5aa8040e51f
사용자가 입력한 name, email, password가 member에 저장된다.
public class MemberManager public void signMember() { MemberVO[] members = new MemberVO[5]; members[0] = new MemberVO(1, "user01","pass01","홍길동",20,'남'); members[1] = new MemberVO(2, "user021","pass021","유관순",220,'여'); members[2] = new MemberVO(3, "user031","pass031","배트맨",30,'남'); members[3] = new MemberVO(4...
0
9e70c49ca4e767a63df6e0e64b4ccc8b
53eb37e5ec33eedb5939cd57d266d861
Перезапустить муравьев для повторного расчета
class Generation(): def repopulate(self): self.roulette = self.create_roulette() self.sex()
0
43ccee2857e1a2caa87c50b68c9336ae
5066dbe31d8209fb16082deea9a63174
使用LRU算法进行更新分配寄存器
int GetEmptyReg(FILE*file){ int i; for(i=0;i<17;i++)if(regs[i].vname!=NULL)regs[i].LRU_count++; for(i=0;i<17;i++)if(regs[i].vname==NULL)return i; int LRU_max=0,max_index; for(i=0;i<17;i++){ if(LRU_max<regs[i].LRU_count){ LRU_max=regs[i].LRU_count; max_index=i; ...
1
878d1d897c9c9190318d31521b1c671a
9441ee06f2e7cd4442d79707a99d984a
异步加载诊断结果信息
ajax.post(URL.get("Platform.DIAGNOSIS_INSPECT_QUERY"), "diagnosisId="+$("#diagnosisId").val(), dataType.json, function(data){ diagnosisItemList = data.value; diagnosisInspectMap.clear(); if(!_.isEmpty(diagnosisItemList)){ $.each(diagnosisItemList, function(index, value){ diagnosisInspectMap.set(value.insp...
1
100dab1064d14b411350d011324fa9ca
2a5bbdcc92fe31a32157437110702bf7
Initialisation de toutes les variables de sessions passées au constructeur. Et leur attribut une valeure.
abstract class view_layout_session extends view_layout public function __construct() { $this->profil_id = tool_session::lire_param("profil_id"); $this->langue = tool_session::lire_param("lang"); }
1
f5deb7bc6919eb2f7ee70effc791e81f
1e05fafce9f6b3daf5d1bd16f6c2e9a1
获取学生绑定班级
function getStudentClass () { return get(`/student/initStudentClass`) }
1
5762c0539eab2266cd88821c389cd640
48fe4a1219becd7969ed60668cd9077e
设置兑换码兑换单号
public class DuihuanInfo extends DataEntity<DuihuanInfo> public void setTransferNo(String transferNo) { this.transferNo = transferNo; }
1
a9918fcdf60387cd4392decdd40f099e
b82ee1959b50ad9a25634c38705fff69
Looks for a customer in the existing database. <p> Returns null if no customer with the given ID could be found </p>
String lookupCustomer(int customerId);
1
0a8a18d7d90d22c5052e95919f79f1b9
96a65b7b079a06aad36217668a13ebb0
Gets the allergies.
@Entity @Table(name="patient") public class Patient public String getAllergyId() { return allergyId; }
0
d08d0cd335ebd3c5117839944c3d0c5b
ff5c2d28dce2123c96bdd7c305a85597
查询保存的工作信息
{ string sql = "SELECT w.*,e.FILE_URL,e.NAME,e.POST_NAME FROM dbo.WD_WORKS w LEFT JOIN dbo.WD_EMPLOYEE e ON w.EMPLOYEE_ID=e.ID WHERE e.STORE_ID=@id"; return Query<WD_WORKS_EX>(sql, new { id = id }); }
1
d5b215423d5561fbaca54624e724fe9d
e4a46fb6d49a151d2f0ce9d213e03c42
Get path of module Composer JSON file.
class DockerComposeClient public function getFile() { return $this->composer_file; }
0
252cc1869a8e148efb233e13c1fc0df8
bd12340c3e5286e6633201bdf8868275
Counts the appearences of given digit (0-9) in all numbers from 0 to number
public class DigitCounts{ public static int countDigit(int k, int n){ if(k == 0){ return countZeroK(k, n); } int result = 0; int base = 1; while (n/base > 0) { int cur = (n/base)%10; int low = n - (n/base) * base; int high = n/(base * 10); if (cur == ...
1
63315894793f6b2685be3dc2fbf347be
7d2157a1352d86fb4a7b0206f0e4c09f
在当前库中执行sDiffStore命令,将返回的值差集存入指定的目标键,并设置过期时间
namespace ctstone.Redis public class RedisClient : IDisposable public long SDiffStore(string destination, params string[] keys) { return Write(RedisCommand.SDiffStore(destination, keys)); }
0
8f44dbf033c2d15ec3a20a76cdfbfa5c
8132234e5c3bf4d43d660e5d708b454e
判断是否是字幕文件
var suffix = fileName.substring(fileName.lastIndexOf(".") + 1); if(suffix=="mp4"){ return true; }else{ return false; } }
0
0ee70798f6035a79c5f5b04944b11a1c
7f61448ad6da3ef0f9cb03f40c5be655
must be called only to evaluate whether to split
cases like (1)
0
a2c18096e55ffcd8abdfea81781e2a48
4cf33641d80237490e5edc758fb3f68a
コントロールが選択されたときその情報を全て表示する
namespace ScreenKeyboard public partial class mainedit : Form public void outputitems() { try { resetstack(); int i; int count = bo.listBox1.SelectedIndices.Count; pop = -1; if (count == 1) ...
0
2220d639c47819154dd9631c8cf2c343
c605a576b838c17dcb0a860f75b0cfa9
creating a function for euclidean distance, has two vector inputs and returns the euclidean distance between the vectors
def euclid_d(x, y): return np.sqrt((x-y)**2)
0
9074e5a90918ae8d60eaa560974bff5f
e53103893afdd3d2b23974da41496654
Fatal program termination (Stack IRQ)
volatile uint32_t r0; volatile uint32_t r1; volatile uint32_t r2; volatile uint32_t r3; volatile uint32_t r12; volatile uint32_t lr; volatile uint32_t pc; volatile uint32_t psr; r0 = pulFaultStackAddress[0]; r1 = pulFaultStackAddress[1]; r2 = pulFaultStackAddress[2]; ...
0
75c9ee0849cd5e4b8786990022b47f5b
443c6cbe6f05ad991f485090acd483dd
既にログイン済 => トップページへ
class MainController def index @user = User.new redirect_to user_path(session[:user_id]) if session[:user_id] end
0
cf12e53a27e9a91d54e77de90cc7dae3
4bf813cf9fa22e0b4a14035431c9579f
Handles changes to the HeaderIcon property.
{ if(!newValue.HasValue) return; if (newValue.Value) { _validationIconLabel.Text = "\uf00c"; _validationIconLabel.TextColor = Color.LawnGreen.ToXamarinColor(); _validationIconLabel.FontSize = 25; InvalidateLayout...
0
7d128c7173eb2a2123b72eff97882db3
ac9958e6b471fbf87045929f777727d9
Build a SMS forwarding message.
{ StringBuilder result = new StringBuilder(); if (from != to) { result.Append(CreateYesMessageFrom(from)); result.Append(Constants.FORWARD_SLASH); result.Append(CreateYesMessageFrom(to)); } else ...
1
8b5104f340e88bb951dbf4a1a51bf8bc
d3d9c40a31c60de5badbb9b63b5ccf51
Returns optional_target names of the notification from configured field or overridden method.
class NotificationArgs: def notification_targets(self) -> pulumi.Input[Sequence[pulumi.Input['NotificationTargetArgs']]]: return pulumi.get(self, "notification_targets")
0
b0631ebd8cca7ed346fff05789851aa5
357be313a5421ff1b4a71b2271981bd2
Generates a sequence of chars based on a given model and a start sequence.
def generate_sequence(set_chars, set_length, iteration=0): s = "" charcount = len(set_chars) for i in range(0, set_length): char = set_chars[int((iteration / pow(charcount, set_length - i - 1)) % charcount)] if char is not " ": s = s + char return s
0
8c6045b3de607b50ccd14d9fe4abea12
3456546a31ba54cd9bab84e50c6bdb2e
Get array with news archive ids which have given module as configuration.
public function getByModule($module);
1