query_id
string
corpus_id
string
query
string
code
string
label
int64
d9d287ad13c533ede3c09d40c1015d10
d8bd48d92b4f6eaea77611c2f823703f
전화번호 권한 요청 모듈
Intent get = getIntent(); String tel = "tel:"+get.getStringExtra("phone_num"); Intent intent = new Intent("android.intent.action.CALL", Uri.parse(tel)); if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){ int permissionResult = checkSelfPermission(Manifest.permission.CALL_PH...
1
f100c30c77aae019c0d6367c68cae5d5
bc279a89a81f8c41831ae1e2402513f2
销量修改
$data = $request->post(); if(!isset($data['sale_id']) || trim($data['sale_id']) == ''){ return $this->verify_parameter('sale_id'); } $sale = Sale::find((int)$data['sale_id']); $godown = Godown::find((int)$sale->godown_id); $godown_no = $godown->godown_no; ...
1
ab9bcdd44f040dec9fe9cb8af07d1f81
9561b1683f7b11f493d4c2ff05de4cd5
Update all services in a logical order.
restarted = false @opennebula_services.each do |service, status| next unless status service_action(service) restarted = true end return if restarted puts 'Everything seems synchronized, nothing was replaced.' end
0
2c1e5c37c1248320e5f1ba62b257b7c4
bc7e7adf92e48fc685f2d16f37d9c96d
Returns a new object of class '<em>Pool Type</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
public String getPooltype();
0
055f38670e291f1c7f4fd59a0b556e7f
420d4fe645601da7dffe2c9573d585df
Translate country and area names
switch (region) { case "CH": return "Switzerland" case "AU": return "Australia" case "CA": return "Canada" case "DE": return "Germany" case "BR": return "Brazil" case "US": return "United States of America" case "NO": return "Norway" case "TR": return "Turkey" c...
1
1cc3cb76f18ee35b45421e2ca29f55df
e72a41361c93787757f05faae124f238
makes the button that toggles the reference grid
{ if (Grid_toggle) { GridToggleView.Checked = false; Grid_toggle = !Grid_toggle; } else { GridToggleView.Checked = true; Grid_toggle = !Grid_toggle; } graphicsPanel...
1
077614d2206483282e49e076c2bd77c3
1f70ba1b9ee96eeb83e33135234b1ef6
функция запуска python-файла
void runFile (const char * filename) { FILE * pyfile = std::fopen(filename, "rt"); PyRun_SimpleFileEx( pyfile, filename, true ); }
1
20e199ac72cec725b75162ec3ec008a3
49924634b76a576f4ea2f2ec41047ba6
Roll the dice with the available defence points.
dot_sum = 0 for dice in roll: if dice == 5: dot_sum += 4 elif dice == 3: dot_sum += 2 return dot_sum
0
ec368df4997193bc8550ec7cd4251de4
f6d44eb60d46a53255c4bbe3024e3e74
片手剣の切断攻撃補正と溜め斬りでの属性補正を設定する関数
{ pa_ptr->attack_damage += attacker_ptr->to_d[pa_ptr->hand]; pa_ptr->drain_result += attacker_ptr->to_d[pa_ptr->hand]; if ((pa_ptr->mode == HISSATSU_SUTEMI) || (pa_ptr->mode == HISSATSU_3DAN)) pa_ptr->attack_damage *= 2; if ((pa_ptr->mode == HISSATSU_SEKIRYUKA) && !monster_living(pa_ptr->m_ptr->...
1
1d7e36d46b449e0ff6004c7ee8b39e5f
c24333f0ec8238ca81ad8dc2a6aac19d
Set the destination port. The default is 8000.
final class NtrRecord public void setDestPort(final int value) { destPort = value; }
1
85a24e9002899b90001a84a4c731b1ed
7f61448ad6da3ef0f9cb03f40c5be655
java.util.concurrent.Executor
cases like (1)
0
5313d4b170e391981885b9868a21908e
080cbb86d3c5791ac496ec444787c0df
Checks if would be needed to add a new relationship user-parking in case the user scans a barcode
if($this->scans()->count() === 0) { return false; } elseif($this->scan_requested_at !== null) { return false; } else { $lastScan = $this->scans()->orderBy('scanned_at', 'desc')->first(); $cutoff = new Carbon('-2 weeks'); ...
0
8f050cacb56ef0ff0f9ab133405cccdd
9e9778b5a9e04786a4a20f0626aee9b8
Evolve to find a test case that covers the most uncovered combinations.
def greedyCover(coveringSet, coverTable, caseCompl, coveredSet): curSet = coveredSet.copy() remCases = coveringSet[:] curCov = {} for case in coveringSet: curCov[case] = coverTable[case].copy() selectedCases = [] while len(curSet) > 0: maxElems = 0 caseCandidates = [] ...
1
1ee347febd857bd1268dae0a8345b1f8
dfd8d1506ad2ab29d41d042c024fe8e0
Пишет в файл пути из списка в соответствии с шаблоном из ТЗ
public void runFile(String pathTemplate, String pathWriterFile, HashMap<String, Object> mapVariables) throws Exception;
1
d0364312f10e968f9897868e9e124443
f936febeadf7cae71541e09a045096ae
Tells IC to take measurements and polls for data ready flag
class Probe: def poll(self): self.i2c_writer.write('R\00') time.sleep(1.5) return self.read()
1
6e46d6be25d6130c1bba2897d91d3985
de23d226bb1d3c7e4dd920be016504d9
Çalışanların Adını, Soyadını, Doğum Tarihini ve Yaşını Getiren Sorgu Yazınız
namespace StudioAdminDest public partial class PersonelGoruntule : Form public void verilerigoster() { PersonelListe.Items.Clear(); MySqlConnection baglanti; SqlBaglanti baglan = new SqlBaglanti(); baglanti = baglan.baglanti(); MySqlCommand komut ...
0
3d7921fdfe8e9497f58d721b01a3afe7
6d21ba836d81a01b8e2f7fd5f519577a
设置稿件加急标记
{ $params = $this->request->inputs(['article_id', 'type']); $this->validate($params, [ 'article_id' => 'required|integer|min:0', 'type' => 'required|in:1,2' ]); $isTrue = $this->articleService->setAsteriskArticle($this->uid(), (int)$params['article_id'],...
1
c7a859bf6ed0036494e9f83df699b368
8df3f50a70f3cc1d2772370da37ab1a2
List intents. List the intents for a workspace.
def list_intents(project_id): from google.cloud import dialogflow intents_client = dialogflow.IntentsClient() parent = dialogflow.AgentsClient.agent_path(project_id) intents = intents_client.list_intents(request={"parent": parent}) for intent in intents: print("=" * 20) print("Intent...
1
6454185fa9ced2c15a0ae3d0ca5eabe4
8d762b0fa8ada6b4c698864f75b3a01d
Plays the win match SFX.
class Game: def play_win_music(self): self.win_music = subprocess.Popen( ["aplay", "-q", "./Sound/Super Mario Bros. Music - Level Complete.wav"])
1
2823094f4df94104c1833569f5d062b0
54a58d1b89470a5a720665b9a17373f4
Describes when a filament changes from ontrack to offtrack
class Runner(Entity): def on_firm(self): return self.get_cached_property('on_firm', self.get_performance_list_on_track_condition, 'FIRM')
0
8e66aa58128c3086502044d95ca4b4f9
90cdd8c231003c70dd16111f3b779c72
Get active news filtered by category id
public ResponseEntity<List<NewsItem>> findNewsItemsByCategoryId( @PathVariable("categoryId")Long categoryId, @RequestParam(value = "isSent", required = false) Boolean isSent, @RequestParam(value = "isTodayUpdate", required = false) Boolean isTodayUpdate ) { return Res...
1
547f6fd35c4c64966791d13e3e30196d
467b68f3f3499857111ab15dc7024174
Build a dict with time summary
data = {"time": {}} index = 1 for _, v in content.items(): data['time']["time{}".format(index)] = { "start_time": v.get('start_time', "0"), "end_time": v.get('end_time', "0") } index += 1 return data
1
94d4bf1b75a17b377745cec52904ca38
32d5126d428ce32b94064314afe8a71a
Displays the system date in default format (MM/DD/YYYY).
class AniReviewMngr: def get_display_date(): return datetime.datetime.now().strftime('%m/%d/%Y')
1
fb34c5c9e03cb311ca3b035bbf42460a
6ce696a9e2ab9d00f54adfad6a7d725d
@brief Performs a flash partition mount attempt.
{ #if defined(LOSCFG_FS_JFFS) int uwRet = 0; if ((uwRet = add_mtd_partition(type, start_addr, length, 0)) != 0) PRINT_ERR("add %s partition failed, return %d\n", type, uwRet); else { printf("[OK] add %s partition successful\n", type); if (strcmp(type, "spinor") == 0) { if...
1
56428dbb747db757af3375db966e5b66
116a1cc10e4d4024e8f18cc8538f4f9e
Returns a new matrix equal to the multiplication of the two supplied matrices, given that a matrix is defined as a list of lists.
def matrixmult(a, b): return [vectormatrixmult(row_a, b) for row_a in a]
1
1b8c720ca210ef0f1e6061b438e8338d
0f94a56f6d1aadb5602faf29cfa55be6
Retrieves a database accessor from a list of available accessors
abstract class DAO protected static function getDBFromList(array $args) { foreach ($args as $arg) { if (is_array($arg)) $arg = static::getDBFromList($arg); if ($arg instanceof DB) return $arg; } return null; }
1
36d8b1829cbdc222b96f308b226a7aec
beaeec9c34a2fb87e4a6b434dec6f71e
Returns the state of the server in form of flags.
function getFlags(): int;
1
f69b2aadbe83a4674ecac8bac8cc4331
d4192109fed4cb7f8fb64b63c5eb2ba6
Returns an instance of the factory used to create painters for VisualEdges. Unless <tt>setVisualEdgePainterFactory()</tt> was called, the factory used by default is <tt>VisualEdgePainterFactoryImpl</tt>.
Dataflow_editorFactory getDataflow_editorFactory();
0
622c538c66e90288f67b3176047e1a76
3b033302e554e105bdee17fd0e83ea90
takes an array with an arbitrary number of dimensions and returns a string
return "" if arr.empty? n = arr.size * arr.first.size s = n.to_s.size f = "%#{s + 1}d" arr.map{|row| row.map {|v| f % v } }.map(&:join).join("\n") end
0
e0548d80178fed67da55ccd4e74e6efc
086fea91a33f165d4a21c9aa1a41a9d2
Tests the type_to_string helper method.
conversion_tests = ( (12, "i|12"), (12.4, "f|12.4"), ("cowabunga", "s|cowabunga"), ) for _input, expected in conversion_tests: self.assertEqual(self.cog.redis._value_to_typestring(_input), expected) for _input, expected in conversion_tests:...
1
08a1b2ea8bd1d6f96c821b1180b5ec57
689e92a9bd358be8233eb7cf2ed66b2c
Based on event Reason fills event Type in order to allow correct filtering by Type.
switch ($event_type_id) { case "17": $event_type = 'Oracle'; break; case "18": $event_type = 'MS SQL Server'; break; case "33": $event_type = 'Web'; break; case "34": $event_type = 'Telnet'; break; case "35": $event_type =...
1
9dd17af6e86f944943a5511dbf4f2ac6
1c372a58ca6792c3d21bd05f0e7d2906
Tin of <something> to the rescue? Decide whether current occupation is an attempt to eat a tin of something capable of saving hero's life. We don't care about consumption of non-tinned food here because special effects there take place on first bite rather than at end of occupation. [Popeye the Sailor gets out of trou...
bool hates_cold(const object_type *o_ptr) { switch (o_ptr->tval) { case TV_POTION: case TV_FLASK: { return (TRUE); } } return (FALSE); }
0
181d64604b740ae6d8c1d3c4872a6ba4
3177f3ccee8e0794a6d6a650729dd2a5
披萨列表页
def pizzas(request): pizzas=Pizza.objects.order_by('id') context={'pizzas':pizzas} return render(request,'pizzas/pizzas.html',context)
1
2bb9318ed0bb7307b933de2a3c821872
d896ea158dff47a895fece575debea0f
******************** 剔除异常样本 ******************** #
class VisveraAbnormal: def col_analyze(self, datas, n): datas = datas[:-1] for data in datas: demo = data.index outlier_inedx = [] for i in range(len(demo)): demo = data.iloc[i, 1:-2] print(demo) ymean = np.mean(demo) ...
0
c8e960eaf0784cdd4f92f056287c561f
fb41785fa6da6c57201eb4eee9596dd3
Calculates the value of the mastery characteristic of the monster.
new Dictionary<long, long> { {0, properties.Mastery0}, {50, properties.Mastery50}, {100, properties.Mastery100}, {150, properties.Mastery150}, {200, properties.Mastery200}, {250, properties.Mastery250...
1
eedc9b4dcedc5229509b8228517f84f6
c093bbed396d78175087428640c14e92
Sanitizes user data from the page builder $data - array, the user input Returns an array of sanitized data
{ if ( is_array($data) ) : foreach($data as $key => $value) : $data[$key] = filter_var($value, FILTER_SANITIZE_STRING); endforeach; endif; return $data; }
1
2c903c3b2abe3a2ad55ff18b6df791fb
270fec578e8bd21abc7185357e3b4d97
All possible values for the categorical attribute 'body location'
return ['airport', 'bus', 'metro', 'metro_station', 'park', 'public_square', 'shopping_mall', 'street_pedestrian', 'street_traffic', 'tram']
0
0e9955bb46c2ca64aa5d3e4022a462c4
7f5aea98a7e528c43ff9dd2171367e9a
カレントディレクトリ以下のファイルフルパスを全部取得
f = [] for (dirpath, dirnames, filenames) in walk(os.getcwd()): f.append(dirpath) return f
0
a48fd3cc20c0f29a6ff0a0964d833e44
eb484eee3dca32a27f0483877b0d1315
Haalt alle vrienden op waar de ingelogde gebruiker deel van uitmaakt en die geaccepteerd zijn
class User extends Authenticatable public function friendRequests(){ return $this->friendOfMine()->wherePivot('accepted',false)->get(); }
0
af9a6881388a58ce9662678b42f7ce2c
113652f4d49be3463bad8db21652b5ac
Fill all troughs.
{ FillSegment first = null; FillSegment last = null; List<FillSegment> lst = new List<FillSegment>(); foreach(FillSegment fs in this.Travel()) { FillSegment fsNew = new FillSegment(fs.pos); this.segments.Add(fsNew); ...
0
7bfd64066ebebb7715042724ec6d37d0
d5fd4c29d281471cd72cb774b5be1b88
获取京东请求URI 详细说明
if ($site_id) { $uri = 'https://api-merchant.joom.it/api/v2/oauth/' . $action; } else { $uri = ''; } return $uri; }
0
5307609ad0c513c1a8d2ea50e24af772
b59aca39690c05442c06400bb5752d20
Get friend requested UIDS
namespace Tweetinvi.Models Task<long[]> GetUserIdsRequestingFriendship();
1
7693cd31a6b463d08c64627dc55e7217
54b3507f308cfda30a30de4e99b1f1fb
Maximum volume level of the AVR zone.
if (typeof window === `undefined`) { return ""; } return window.ZBI_MZCONFIG.av; }
0
ab9bbb2325d2f54ac7c5d17ce3a6c18c
51145a57cb231d4f802f1a59f3e00efe
Post text request to a wit endpoint
function sendTextMessage(recipientId, messageText) { wit.runActions( sessionId, messageText, sessions[sessionId].context, (error, context) => { if (error) { console.log('Oops! Got an error from Wit:', error); } else { ...
1
699b611eee25295b8283be790de09bba
3607e0a5de373b41764f513909bffebc
Check if the air plane is full.
public class Flight implements Serializable public boolean checkSeatsFull(){ return this.seatsTaken == this.getMaxNumSeats(); }
1
4a36954cc34216f63747846fdd54d566
b946d4d0f4e45d766185200f2fc1474a
Write data to NAND.
unsigned int addr, const void *_buf, size_t len ) { struct myri10ge_private *priv = container_of (nvs, struct myri10ge_private, nvs); struct pci_device *pci = myri10ge_pcidev ( myri10ge_netdev ( priv ) ); unsigned int vs = priv->pci_cap_vs; const unsigned char *buf = (const unsigned char *)_buf; unsi...
0
2746cf5a26ffdd496b4dc97351261066
aee7ff26926f38d835fd7593e9f475b9
Returns the serialized module as a byte array.
namespace BearBonesMessaging.Serialisation byte[] ToBytes();
1
c6fe49070a20d5a48a9a63f57a2990ef
17b9abf5a08aec5d16ae3d29a274dfda
Reads an AWS integration configuration
logger.debug(("Parse Clobi's Job Management Interface config" " file %s ..." % jmi_config_file_path)) config = ConfigParser.SafeConfigParser() config.readfp(open(jmi_config_file_path)) jmi_config = {} jmi_config['aws_secretkey'] = config.get( 'JMI_config', 'jmi_aws_secretkey'...
1
2e038c974d0bac6e251193bb0fd23930
1419b29dab25c4a8258497ad3fd5b379
初始化公司账户
class OrderCreate extends BaseModel public function initAccount($data){ if($data['is_balance'] > 0) { } return $data; }
0
88e6c2d96ef3251586fd8c5417262d48
1c2ede5104f4b90f05b95258b4a3e4f2
Initialize the cities (currently hardcoded for the American map) Sets all the edge distances between cities.
cityLatLonData.insert(std::pair<string, std::pair<string, string>> ("beijing", std::pair<string, string> ("39.90420", "116.4074"))); cityLatLonData.insert(std::pair<string, std::pair<string, string>> ("cairo", std::pair<string, string> ("30.04442", "31.23570"))); cityLatLonData.insert(std::pair<string, std:...
0
10424be4e109539b257362e4185f6e86
a6f87b8a5eaee73d3282afc484ae4a74
Free all resources associated with the completed accept
{ auto lock = m_acceptingCs.lock(); for (auto& listeningSocket : m_listeningSockets) { if (listeningSocket != INVALID_SOCKET) { closesocket(listeningSocket); listeningSocket = INVALID_SOCKET; ...
1
945d357774a1bd7b0faedf36a9cf2635
c20af5ba6aa72d2eb8a92c20a306bd38
Convert a property list to a JSON string
{ return ListPropertiesPerDefaultToString ( pobjToList , SpecialCharacters.NULL_CHAR , ListInfo.EMPTY_STRING_LENGTH ); }
0
22ef9de696acef5b4485fad648a82987
505954c906441910d05830c6a3a6a3fe
Orchestrates the generation of a M3 model from a Jar file. jar scheme
public void buildModel(Model model, ModelParams parameters) throws MojoExecutionException;
0
bc14c0be5b5b02c80d66c2d24af6d1d5
81e5b1d03d4ddddb8c137b588cf307be
choose weather conditions for marker popup based on index
uvIndex.addClass("badge"); if (data.current.uvi < 3) { uvIndex.removeClass("bg-warning text-dark bg-danger") uvIndex.addClass("bg-success"); } else if (data.current.uvi >= 3 && data.current.uvi < 6) { uvIndex.removeClass("bg-success bg-danger"); uv...
0
5bd458945205e882a231a9d1f99326cb
3f6e8e9f221c9f05998be92f43210311
To Convert a date time in a TimeZone to server TimeZone
namespace SmartCore.Infrastructure public static class DateTimeExtentions public static DateTime ToLocalServerTime(this DateTime clientTime) { DateTime serverTime = TimeZoneInfo.ConvertTime(clientTime, TimeZoneInfo.Local); return serverTime; }
0
2c741ec11bbc98d017b63febea7bcd58
6b795cc6817bedfb87eaf83e99828654
: Generate PHP to navigate forward in web page.
def navigateForward(sessionId=None, pageId=None): builtins.print(sessionId, pageId)
0
893a932475103b8ad8ea9e242608aec8
9cf01af5db8001eb86d81a8d67561746
查询用户未点评订单列表 (已分页)
namespace BrnMall.Data public partial class Orders public static DataTable GetUserUnReviewOrderList(int uid, int pageSize, int pageNumber, string startAddTime, string endAddTime) { return BrnMall.Core.BMAData.RDBS.GetUserUnReviewOrderList(uid, pageSize, pageNumber, startAddTime, endAddTime); ...
1
9b85cc4df4cd10b223c9544cd9110443
6ca65673ed7cb31a4009ccdb87b4fc83
permet de redessiner les lignes à chaque raffraichissement de la fenêtre.
h=Etiquette.rack["linHeight"]*2 for heure in range(self.debut,1+self.debut+self.maxlignes): x=0 y=180+(heure-self.debut)*h w=120+len(self.columnlist)*Etiquette.rack["colWidth"] self.scene.addLine(x,y,x+w, y, pen=QPen(QColor(0, 0, 0xff, 0x40),3)) re...
1
c390ed0a1ec9d1d268b2a8f18bbf5dd6
e482979216bd24986a8a1a9ee0e4d56b
split the rectangle vertically
class Rect: def splitRight(self, amount): return (Rect(self.x + self.width - amount, self.y, amount, self.height), Rect(self.x, self.y, self.width - amount, self.height))
1
b20dc3205fa35faf1d90a9e27be8da8c
27eb7e7281192aa9de549bb6766c089d
Ejecuta el procedimiento de Eliminacion de Boletas de Recojo(Anular)
{ try { #region trace if (ConfigurationManager.AppSettings["ambiente"].ToString().Equals("desarrollo")) logger.Debug("Entrando al metodo {0}", (new System.Diagnostics.StackFrame()).GetMethod().Name); #endregion ...
1
a7414eb5cf574c45333dedab0a20e2d8
e1fe47f8fdbe784c289cf433c12ba9fe
Called when a player collects a present.
public void onCollect(Entity entity);
1
968305a80470d8970abcfead2dabd3fa
5594d887939f6c23d6ac6977fb36abb8
下部ブロック衝突判定
public class Character private boolean isBlock() { boolean isblock = false; for(Block tmp : GameView.mBlock) { if(tmp.y > y) { isblock = tmp.isblock(x, y, CommonResources.cw[0], CommonResources.ch[0]); } if(isblock == true) ...
1
af3066d3dc094221923c963a650c4c2f
0c75145bfadf66aee8112a2b1a3fd2da
SPI_Write_Command_Data( ) Write to SPI device command then data,with no interruption ncmd+ndat = MAX.36bytes < 1 fails
PSP_Result SPI_READ_WRITE_N_BYTES( Uint16 *buffer, Uint16 count, Uint16 *cmdBuf, Uint16 cmdCount, Uint16 readOrWrite) { Uint16 wordLength = 0; PSP_Result result =...
1
51df6614d6ba0ad7ebc2c63302e42e7e
d92abc1569efa0ac796af98745378324
Връща всички групи, в които има свободни места
String query = "SELECT * FROM " + TABLE_GROUPS+" WHERE "+ KEY_GROUP_VISIBLE +" = 0"; SQLiteDatabase db = this.getReadableDatabase(); ArrayList<Group> invisibleGroups = new ArrayList<Group>(); Cursor cursor = db.rawQuery(query, null); for(cursor.moveToFirst(); !cursor.isAfterLast(...
0
c4a0dcdb5da0e7e70332435d49657f6b
da09aee328b9c3d814f0dcabebdccf9c
Performs actions necessary to add a new challenge
class CampaignsApi def add_challenge_to_campaign(id, opts = {}) add_challenge_to_campaign_with_http_info(id, opts) return nil end
1
588536dd5e62b8818289699c2e3a2ded
6cc92b2083817a25a6e68a7cd2474059
Fetch records that have <code>world_uuid IN (values)</code>
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.7.2" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class AscendedprisonPrisonRecord extends UpdatableRecordImpl<AscendedprisonPrisonRecord> implements Record12<PrisonID, UUID, UUID, Times...
0
e4ce8c87f00d748a6e15a59b3092e288
b4fe721424345eaffec26da8526b39e8
Either creates the default filter to recognize the step definitions or parses it from the arguments provided
{ if (isset($this->definition['filters']) && !empty($this->definition['filters'])) { $this->processFilters($this->definition['filters'], new FiltersParserContext()); } }
0
a0645d347eda7dad997239702a050aa5
1727b8db9d2caf63411c4f7fdca87d90
purpose -- reset the current pointer so that it points to the end
zval *type, *z_zero; z_zero = PHALCON_GLOBAL(z_zero); type = phalcon_fetch_nproperty_this(this_ptr, SL("_type"), PH_NOISY TSRMLS_CC); if (zend_is_true(type)) { zval *result = phalcon_fetch_nproperty_this(this_ptr, SL("_result"), PH_NOISY TSRMLS_CC); if (PHALCON_IS_NOT_FALSE(result)) { zval *active_row = phal...
1
84022a1875c5bfec572f8d81c4c5910e
b7742b9950779b7f91a3330d90ce1708
average duration between 2nd and 3rd down keys of the trigraphs
if len(trs) == 60: return re.findall(r'\d.\d', trs[33].text.strip())[0] if len(trs) == 62: return 0 return re.findall(r'\d.\d', trs[34].text.strip())[0]
0
2c5b4d23285aaa0efbff767a4401efba
f80de6f523302dd66398dccaa96bfbd6
通过delivery_bn获取LD订单号
{ $deliveryObj = app::get('ome')->model('delivery'); $delivery = $deliveryObj->db->selectrow("SELECT delivery_bn FROM sdb_ome_delivery WHERE delivery_id=".$delivery_id); return $delivery['delivery_bn']; }
0
60a55c06df042b30b0756629df941a34
0a2a08a34bce95ecc7afc7f232816d42
Insere um horário na lista de horários de uma turma Retorna a lista de horários da turma atualizada.
if professor in self.preferencias_professores: self.preferencias_professores.get(professor).append([hora, dia]) else: self.preferencias_professores[professor] = [] self.preferencias_professores[professor].append([hora, dia])
0
02c2151481a63baded5bda5f0681f96d
e58c9b381c1e1c954aebfe92e2c635ec
Check if ecma-number is zero false - otherwise
@StatelessCheck public class ExplicitInitializationCheck extends AbstractCheck private static boolean isZero(DetailAST expr) { final int type = expr.getType(); final boolean isZero; switch (type) { case TokenTypes.NUM_FLOAT: case TokenTypes.NUM_DOUBLE: case To...
1
04c7cc929b4a02ffba4a81e0653ba083
2bd496ac4da11b8993726cd9f8def53b
%% Set constants and recurrant functions
clr_function_constants () { list_local_cnt = 0; list_local_alloc = 0; list_local = 0; nreturn_values=-1; }
0
fb14f9876634943ab5c004773534684a
89cdd732f0fd4b9cf19393669ab746e1
Paints a <see cref="T:System.Windows.Forms.DataGridColumnStyle" /> with the specified <see cref="T:System.Drawing.Graphics" />, <see cref="T:System.Drawing.Rectangle" />, <see cref="T:System.Windows.Forms.CurrencyManager" />, row number, background color, foreground color, and alignment.
ChartGraphics graph, BorderSkin borderSkin, RectangleF rect, Color backColor, ChartHatchStyle backHatchStyle, string backImage, ChartImageWrapMode backImageWrapMode, Color backImageTransparentColor, ChartImageAlignmentStyle backImageAlign, GradientStyle backGradientStyle, Color b...
0
9ed5a922c99fa0e564196d2ede5c6550
44a92307d4595deca28bea4eca3f45a8
Function to store unaligned integer vector into array
fn store_unaligned(self, dst: &mut [Self::Element]) { assert!(dst.len() >= Self::NUM_ELEMENTS); unsafe { self.store_unaligned_unchecked(dst.as_mut_ptr()) }; }
1
09c2b2091024bf3b65de6cdf8b070b75
93a2b9d07fdd2e060189eb92cdaf56a1
Compute the global masking threshold for an audio input and also return its maximum power spectral density. This method is the main method to call in order to obtain global masking thresholds for an audio input. It also returns the maximum power spectral density (PSD) for each frame. Given an audio input, the following...
r, profile_psd = get_profile(psd_img) _, profile_filter = get_profile(filter_img) profile_psd = smooth_1d(profile_psd) return (r, profile_psd, profile_filter)
0
9d871130e7cb99651814aab3adbf6b45
d457019b964ef8f1a9cabae6480c6572
Initializes the race track to a space
class Rockfall(): def init(self): for row in self._arena: for i in range(len(row)): row[i] = False self._hpos = self.HEIGHT // 2 self._wait = self.WAIT
1
136e3eba73ee8b5242c813bd367da91c
6d0e3f3154ec5c1bf532bd201c6d5de9
새 공고가 발견되면 지정된 일을 합니다. 이전에 로드된 내용과 비교하기 위해 임시 저장소(파일)을 사용합니다.
raw_data = store.get("deadline") if (raw_data == None): raw_data = {"_test_place" : []} if (key in raw_data): raw_data[key]["title"].append(title) raw_data[key]["content"].append(content) raw_data[key]["date"].append(date) raw_data[key]...
1
71a070f8a7912de4171d4e1e3b2a5b88
272057f44427c8920500c58e3cc00713
updates the present marginal cost considering future tasks
void partialupdate_costremoving(float *(&cost_of_removing)) { for (int f = 0; f < no_routes; f++) { if ((saiz[f]==0) || (RchangedStatus[f] == false)) continue; int before = -1, after = -1; for (int h = 1; h <= saiz[f]; h++) { before = VEHICLE[f][h - 1]; after = VEHICLE[f][h + 1]; float origain ...
1
e80bd4a26c4c9d1a9690c28bd0da3c73
afeb4a1e3b05b9c5b6974385d6fc060c
Return primary key column type. This applyies to some backends, for example PostgreSQL, but is not used by other backends, like Mongo. PostgreSQL returns sqlalchemy.dialects.postgresql.UUID.
class Base(object): def primary_key(cls): return cls._primary_key
0
88751f59b77d82e1c2ea23d4a20bc06f
64e983c427968aaab505f508667dd636
Get maximum num. of questions allowed per day
class Client public function get_suggestions_daily_limit(): int { return static::SUGGESTIONS_DEFAULT_DAILY_LIMIT; }
1
8a7ae45f6b46f2edd0b3a7279c7de489
aefbbfcb9fb839f6bffaea1077c4a926
Record payment failure.
class PaymentsController extends Controller protected function paymentFailed() { if(env('DEMO_MODE')) { return TRUE; } $slug = Input::get('token'); $payment_record = Payment::where('slug', '=', $slug)->first(); if(!$this->processPaymentRecord($payment_record)) { return...
1
f68c1a1cd6304b38919c8dd265fe05d6
c1804d28534c59a78ab08efb89b0a146
returns if a specific Table contains a certain element
namespace CSAPData [Serializable] public class BAPI_WBS_ELEMENT_UPDATETable : SAPTable public bool Contains(BAPI_WBS_ELEMENT_UPDATE value) { return List.Contains(value); }
1
9bbe2c1e88c842233c8846e0b670961c
41a5e167c53911ed9bd34f4bcc357d12
用下一个元素的值去覆盖当前的值
class Solution function deleteNode($node) { $node->val = $node->next->val; $node->next = $node->next->next; }
1
ed9ac6d78162fe59cffef6a0333c95c3
e056e16eff80812a0bfebd6f2c11b9e2
Read Data from File to List
File inputFile = new File(file); listOfDataFromFile.clear(); try { DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(inputFile); doc.get...
1
eba5c6558a1804d6ec64e5902535c0c8
a31b9e73711f1c3a532134ca57257d3f
Exit creates an Action that closes the application.
local exit_screen = {} setmetatable(exit_screen, ExitScreen) exit_screen.screen = screen exit_screen.screen_grabber = nil exit_screen.widget = exit_screen:create_widget() exit_screen:init_signals() return exit_screen end
0
30dc7175678a2531e0788c15bcd79915
35ebbeee2cfb2d5397f7c9e2db4e0942
Retrieve item based on category id and item name.
item = session.query(Item).filter_by(id=item_id, category_id=category_id).first() if item is not None: return jsonify(item=item.serialize) else: return jsonify(item=item.serialize)
0
ab41950021a4216ff725f2ad92ef0efe
4035cbb623986fc625837d915b243f4a
Generate game states using the most recent change of every entity so we can restore them later
function Game:StoreState() self.storedState = {} self.storedState.world = World:CopyState() self.storedState.inputSystem = InputSystem:CopyState() self.storedState.matchSystem = MatchSystem:CopyState() self.storedState.players = {self.players[1]:CopyState(), self.players[2]:CopyState()} self.storedState.tick = s...
1
302d1215a474c411dfc287114b165c93
4a4da57849b69ab14861d0e805e569e6
测试使用queue运行opCount个enqueueu和dequeue操作所需要的时间,单位:秒
public class Main private static double testQueue(Queue<Integer> q, int opCount){ long startTime = System.nanoTime(); Random random = new Random(); for (int i = 0; i < opCount; i++){ q.enqueue(random.nextInt(Integer.MAX_VALUE)); } for (int i = 0; i < opCount; i++){ ...
1
ee95929c56ca01e67dbabd6981af2345
bbe4c196546d24944f3d638e61b9843f
Returns the date before which search results must have been added
class ImapSearchCriteria extends StrictObject implements ToString public function setBefore(\DateTimeInterface $messagesBefore): ImapSearchCriteria { $this->before = $messagesBefore; return $this; }
0
5309a1b60738ed994a8c03460ee3acf4
d791075fa1e84b68bbaafd5f09842ff3
Raises the SizeChanged event and re-renders the control.
namespace OpenLiveWriter.Controls public class LightweightControl : Component, ISupportInitialize, ILightweightControlContainerControl protected virtual void OnVirtualSizeChanged(EventArgs e) { RaiseEvent(VirtualSizeChangedEventKey, e); }
0
6fb6c672663114bc4edc595d3bdcb275
876da38ab0cfb6b7ea133e1989b710f9
Ensure all referenced [AvailObject]s are at least Immutable.
class SemanticRestrictionDescriptor private constructor(mutability: Mutability) : Descriptor( mutability, TypeTag.UNKNOWN_TAG, ObjectSlots::class.java, null) override fun o_Equals(self: AvailObject, another: A_BasicObject) = self.sameAddressAs(another)
0
ca7e9da21c2010fc99d1d2b57bb3fc07
fd6348ae051edd776196df81ecf64dbb
Do nothing when initialization is completed
class ProcessBootstrap extends AbstractBootstrap function initializeComplete() { }
1
7cf674e4ae736f9971cd66b3d90da17d
26103c62223a3236862541ff9c81625d
prepare a HTTP-Redirect binding and return it as a string https://github.com/italia/spid-perl/blob/master/lib/Net/SPID/SAML/Out/AuthnRequest.pm#L61
class SamlHandler: def handle_redirect_request(self, client_redirect_url): reqid, info = self._saml_client.prepare_for_authenticate( relay_state=client_redirect_url ) now = self._clock.time_msec() self._outstanding_requests_dict[reqid] = Saml2SessionData(creation_time=now) ...
1
78c39ea1724b0742affa06034537bda2
a8bb4fec672e77e12148def2b3884290
设置 居民健康档案外键
@ApiModel(value="入院护理评估单_Req") public class NisRyhldReq extends PageQuery{ public void setHzyz(String value) { this.hzyz = value; }
0
e75b4777a7c4c062a4827a8a45b0f203
361405317cb01be384e47fb655abeff5
跳转到主界面后,关闭登录界面
public class SplashActivity extends Activity private void loginMainUI() { Intent intent = new Intent(this, MainActivity.class); startActivity(intent); finish(); }
1
1e10e662c81a22d9b170f92e2743baea
7075e01f1c2dee28e018ba882c249957
Returns array containing Node objects for each given NodeRef
{ $this->assertLoggedIn(); if (empty($identifiers)) { return array(); } $docs = $this->api->forms()->everything->ref($this->ref)->query( '[[:d = any(document.id, ["'.implode('", "', $identifiers).'"])]]' ) ->submit() ; ...
1
eafb33ddb6c27868a132605a28765f6b
30ca796cc0c23199afd16134b0d5626c
根据门店获取顾问列表
{ $page_index = request()->post("page_index", 1); $page_size = request()->post("page_size", PAGESIZE); $search_text = request()->post("search_text", ''); $storeServer = new storeServer(); $condition = array( 'vsa.website_id' => $this->website_id, 'vsa....
1
179b3af623b61302ced04f60f5816b97
e0d73995d2cf5e72715327c04c4973b8
Zwraca nazwę obiektu do przypięcia plików
class Teeple_FileUpload function getName() { return $this->_name; }
1
d6425bcb39fc20220ddea388f7bce268
5e584b749854634e52c9942787b0ca37
创建opener,包含header信息和cookie
cj = cookielib.LWPCookieJar() cookie = urllib2.HTTPCookieProcessor(cj) opener = urllib2.build_opener(cookie, urllib2.HTTPHandler) urllib2.install_opener(opener) return opener
0