query_id
string
corpus_id
string
query
string
code
string
label
int64
ab9cf8447a796a4d5fa9666c973ced4a
02f0f53b7483bbda1fa4ea74b37314e2
Привести <see cref="Nullable{Int32}"/> к инвариантной строке.
{ return s == 0 ? String.Empty : s.ToString(); }
1
6c3172aae99edec94f4f6bdaf203b981
999d6cb3b1fdf5485029ca0272423026
create mod option based on underlying type and attributes of cfgField
switch ( $field['type'] ) { case 'text': case 'url': case 'number': case 'password': case 'email': if ( ! isset( $field['attrs']['class'] ) ) { $field['attrs']['class'] = 'regular-text'; } if ( false === strpos( $field['attrs']['class'], 'regular-text' ) ) { $field['attrs']['class...
1
25ac40bd9cf1929e047c7fb5818f582e
c49e2635964fecf5329f178399f0af77
Receives text attributes from the UI and converts them into the format needed to insert into the database
weightval = textToString(weightField)?.toInt() heightval = textToString(heightField)?.toInt() widthval = textToString(widthField)?.toInt() lengthval = textToString(lengthField)?.toInt() materialval = textToString(materialField) colorval = textToString(colorField) ...
1
7b4262bd6cca84bae250d4a252c61ee8
3149657a3318937e3cee918a3844596d
Getter for DeviceId. The unique Id of the device intended for this `TerminalAction`. The Id can be retrieved from v2/devices api.
public getDeviceId(): string | null { return this.deviceId; }
1
6da440d6c16cf66ce62a49ff3d295076
ea68a1c28f1fcae617154e763dbd8c3a
Metoda kojoj prosljedjujemo integer koji zelimo rastaviti na faktore i listu u koju zelimo smjestiti faktore integera
public class MasterMindBreaker private void setNumaralList() { for (int i = 0; i < NUMARALS_COUNT; i++) { numaralList.add(Integer.toString(i)); } }
0
53b91266de34ab79c4fb42af1c3f5524
72c4385f5743af56d0c696ee4b202452
checks whether logger has any log appenders
{ return this._logEvents != null && this._logEvents.Count > 0; }
0
a443ad2a8e3ae97d75eac5787ba501e5
527511278db568e23b0f701b5e97862d
Comprueba si la matriz es o no hermitiana. Devuelve un booleano avisando si la matriz es o no hermitiana.
n = min(S.shape) for i in range(n): if S[i, i] < 0: return False return True
0
24ed4e0ec434b48dade820156b1a13bd
358d29fab17b7b4ff3c673b06a4dba74
Extract all timeline markers from a set of metadata
scene = context.scene selected_makers = [] for m in scene.timeline_markers: if m.select: selected_makers.append(m.frame) selected_makers.sort() frame_start = selected_makers[ 0] frame_end = selected_makers[-1] -1 if scene.use_preview_range: scene.frame_preview_start = frame_start scene.frame_preview_e...
0
a2a772d81acb8d5859f5025766c3b032
b49b66f2ae6ee552ff68d2cea15a8aaf
Sets all MarkingLayers to unselected.
ArrayList<MarkingLayer> allML = getAllMarkingLayers(); this.visibleMarkingLayerList.clear(); if(allML != null && allML.size() > 0){ Iterator<MarkingLayer> mIterator = allML.iterator(); while(mIterator.hasNext()){ MarkingLayer ml = mIterator.next(); if(ml.isVisible()) this.visibleMarkingLayerLis...
0
7fd9e2a686aaff35656b0fdc5d2f8969
46a598f3f925cd3ddc993785240df0ed
Switched render mode. Does nothing if give mode is same as currentMode.
{ if (mode == CurrentMode) { return; } CurrentMode = mode; }
1
1eab0fb3677a373100e4a664eca2c28e
229d69da76f13f62ff0e47899fdca08a
查找第N小的数
{ if(num.size()>=k) { sorter(); double[] mink=new double[k]; for(int i=0;i<k;i++) { mink[i]=sort.get(i); } return mink; } return null; }
0
043b9daace91143be12564de4597aac4
1db2f9d22c7d35bdc41d81372e7b78ed
通过商品类别和门店guid获取类别扩展信息
namespace Symposium.WebApi.DataAccess.Interfaces.DT ProductExtModel GetProductExt(DBInfoModel Store, long ProductId);
0
492143ded99003e9bc1725abcc7a5e0e
81508ca29c625b40604da4339c2d4eff
获取指定月份的工作日列表。
@Export(paramNames = {"user","year","month"}) List<WorkdayEntity> getMonthWorkday (LoginUser user, Long year, Long month);
1
71b5ba82dc99753df9abafc086bb0847
843536c3b872dd77cc4fa1af48c5d71e
Assign default names to all unified variables.
class Emoji public function setVariablesToUnified(array $variablesToUnified) { $this->variablesToUnified = $variablesToUnified; return $this; }
0
ac5282feb58677baa0654b163f45b68b
726a70578f5d59646215d8b85ebcbbc1
Returns whether any action-related buttons (Find Next, Replace, etc.) should be enabled. Subclasses can call this method when the "Find What" or "Replace With" text fields are modified. They can then enable/disable any components as appropriate.
@OnThread(Tag.FXPlatform) public class FindPanel extends GridPane protected void setReplaceEnabled(boolean isEnabled) { showingReplace.set(isEnabled); }
0
70d9ab2aa45813e2fb14e97974590c07
8f3e672d418cb9277fd58a8d61fea301
获取弹出框提示消息,并且关闭弹出框
namespace Automation.UI.Core.Selenium.PageObjects.Interpris.Product public class ConfirmMessageSubPage : BasePage public string GetConfirmMessageAndClose() { string confirmMsg = DivConfirmMsgBody.Text.Trim(); BtnDialogConfirmMsgOK.Click(); return confirmMsg; }
1
83501ce2ee2e132be0080d8b6108b46a
4ffecceab7f63af0639c6d8871d858a9
Build a variable based on the information we can extract from the messsage
retValue = {} search = re.search(':flag_(.+?): .*', message) if search: retValue['country'] = search.group(1) search = re.search('\*\*(.+?)\*\*', message) if search: retValue['name'] = search.group(1) search = re.search('IV(.+?)\*\*', message) if search: retValue['iv'...
1
40787d99c8f3af4410374967f1d5c65b
2e35a259050975ee44f5b7336ad5bcff
0xAD
void LR35902::instr_0x27() { daa(); reg.pc += 1; clocks += 4; }
0
8a2d7edb6dfd67ec66cbeb459243b59f
ada00b2a47f977fdcec2a37dd5894050
Deinit filtering on broadcom.
bce_iff(struct ifnet *ifp) { struct bce_softc *sc = ifp->if_softc; struct arpcom *ac = &sc->bce_ac; u_int32_t rxctl; rxctl = bus_space_read_4(sc->bce_btag, sc->bce_bhandle, BCE_RX_CTL); rxctl &= ~(ERC_AM | ERC_DB | ERC_PE); ifp->if_flags |= IFF_ALLMULTI; bus_space_write_4(sc->bce_btag, sc->bce_bhandle, BCE_FILT_...
0
70db119b3b464825e81ea4b2b95b9213
d7260bdfd05b10314f45effdd1205b72
Test to check if the white marbles have been set up properly
public void testGetColor() { assertEquals(Color.WHITE, wr1.getColor()); assertEquals(Color.WHITE, wr2.getColor()); assertEquals(Color.BLACK, br1.getColor()); assertEquals(Color.BLACK, br2.getColor()); }
1
de0c107a481dcb34667a75e702ef30e8
0d108d5d3da0bf0dc5f8960283781724
Disables SSL policy checks.
function ds_https_verify() { add_filter( 'https_ssl_verify', '__return_false' ); }
1
82a59d129a985f58de4b955c79567887
df0e86b93d6c55964f9b5fa29c9391e7
Determines whether the object exists in the list of type TDerivative, by id.
{ try { var t = typeof(T); var res = _objCache[t].First(x => x.Id == aId); return true; }catch(InvalidOperationException) { return false; }catch(KeyNotFoundException) { return false; } }
1
be8f588f8ab14a270e743c756fe49ef4
0d2c239c8e0ccef526145358eaf07e40
SelectPolicyByProvider simply selects a variant of a policy that varies depending on provider type only.
@SuppressWarnings("unused") @Nonnull String getProviderTermForPolicy(@Nonnull Locale locale);
0
4889cea7af7e3a9a7057f031337edc9c
ed4ae581b2b3b85f5fb9cf1a2f0b4531
定义一个时间间隔为1s的定时器
class Example(QTabWidget): def startTimer(self): self.timer=QTimer(self) self.timer.timeout.connect(self.operate) self.timer.start(1000) self.bt1.setEnabled(False) self.bt3.setEnabled(True)
1
d234232c95c6a63b316c2860845768cf
c59925f5349781b60558ed8b6f0885f8
formularz poprawy danych Dokumentacji mozliwy dla Straznika
class Elementy{ public function getDokumentPrzedmiotPoleText(){ $dokumentPrzedmiot = new Zend_Form_Element_Text('dokumentPrzedmiot'); $dokumentPrzedmiot->setLabel('Przedmiot:'); $dokumentPrzedmiot->setAttrib('maxlength', '150'); $dokumentPrzedmiot->addValidator(new Zend_Validate_StringLength(0,150)); ...
0
e2e788917507556da6685c458cecba3f
d5ded82855df7e4ec9c1bae6a1e442b4
create the output of job.refresh_state() from raw job data
result = [] for video_result in video.job_results: cur_entry = { 'gender': video_result.gender, 'age': video_result.age, 'clip_ids': (video_result.clip_ids + video.non_job_clip_ids) } re...
0
77968ebdce03853a79756c540d77c8b2
4e3cb21f78b7b103354b03d78c61d3b0
Serve dual purpose - Ping to check if LX is initialized and Get LX firmware revision On successful return from this function, LX is properly initilized and LxRevision will hold firmware revision number
uint8_t data_buf[1] = {0}; uint32_t count; CC_PRINTF("CC_RSH:Reseting...\n"); RS232_enableDTR(comport_num); for (count = 0; count < 10000000; count++) { ; } CC_PRINTF("CC_RSH:Release...\n"); RS232_disableDTR(comport_num); for (count = 0; count < 10000000; count++) { ; } RS232_SendByte(comport_num, 0x07);...
1
a3365bcf021b09cfca4cd26bfb8c0f82
15756d914cc9a5d68dab101819539dfd
first modify velocity by each of the other moons
foreach(Planet p1 in planets) { foreach(Planet p2 in planets) { if(p1 != p2) { if (p1.x != p2.x) p1.velX += (p1.x > p2.x) ? -1 : 1; if (p1.y != p2.y) p1.velY += (p1.y > p2.y) ? -1 : 1; if (p1.z != p2.z) p1.velZ += (p1.z > p2...
1
aa6efd6f90c43fbb0720f61171755653
41ac27a2e3383eafeb247144f01c3d01
Budget date of the budget
class BudgetDetails(object): def budget(self, budget): self._budget = budget
0
92e7b05aeb39bfd25aa94e09751cfa12
370e31e10d80ca08bc97bfc0a694a8f7
Generates block walls.
for (var i=0; i<width; i = i+1) { Crafty.e('Block').at(i, height-1); } for (var i=0; i<height-1; i = i + 1) { Crafty.e('Block').at(0, i); Crafty.e('Block').at(width-1, i); } }
1
7e409060e5908ed63cd090f12e02968e
2a6a420d3764f32b27ce29584e0bdaee
Return indexes at which the Cholesky decomposition starts for each group when storing the lower-triangular Cholesky decomp as vectors Input Output That is, the 1st group has 2 variables (requiring 3 entries in the Cholesky decomp), the 2nd and 3rd groups have 1 variable. Then cholSini[0]=0, cholSini[1]=3, cholSini[2]=4...
uvec l_sorted = sort_index(LHS(3)); uint lc = 0; uint i = 0; uint uiN = K_unique.n_rows; uint uiS = l_sorted.n_rows; int C = K_unique(i); uint nx = 0; int l_c= LHS(3)(l_sorted(lc)); field<uvec> tempRows(uiN); while(l_c<C){ lc += 1; l_c = LHS(3)(l_sorted(lc)); ...
0
ad3ca68644b1db080dbe15b6136609b7
5a582b0c359d8b8723c628d692df94d9
Test barcode mappings
{ $mappings = $this->getManager()->getMetadataCollector()->getMapping('TestBundle:User'); $expected = [ 'first_name' => [ 'type' => 'text', ], 'last_name' => [ 'type' => 'text', ], ]; $this->assertEquals(...
0
a30bebc278cb2b336de63efa2ceefa1d
8c2ea3b7b7f0e5e188b858519cefdf6f
=================================================================== Method : WriteProtect (component 24AA_EEPROM) Description : Prevents writing to the memory. Read operations are not affected. Parameters : None Returns : Nothing ===================================================================
{ enumbool blRetcode; uint8 bStatus; EEPROM_InstructionWrite(INSTR_WRITE_ENABLE, (uint8 *)0, 0); EEPROM_InstructionEnd(); blRetcode = EEPROM_IdleWait(MAX_BUSY_POLL_IDLE); if(blRetcode) { bStatus = EEPROM_StatusGet(); if ((bStatus & STATUS_WRITE_ENABLE_LATCH)) { ...
0
99459fb8363795761f74d4f0d57805e4
c589049d93e1698b4e46a477e6f691b9
idx로 타임라인 조회
@Service public class TimeLineService public Optional<Timeline> getTlDetail(Long tlidx) { Optional<Timeline> tlDetail = timelineRepository.findById(tlidx); return tlDetail; }
1
3f8692acfba92d394af28c0f0b08ab16
c8608cca167b14e6eed5db20199e857c
Follow users
class UsersController extends Controller public function followers(User $user) { $followers = $user->followers()->latest()->paginate(20); return view('users.followers', compact('user', 'followers')); }
0
ecf1837f2ae58b2d90172e6b5bf41082
b984e3a9430df3c971fa30ea2e54ec5f
Has [Manifest.permission.ACCESS_COARSE_LOCATION] been granted? `false`.
class LocationProviderImpl(private val fusedLocationProviderClient: FusedLocationProviderClient, context: Context) : PreferenceProvider(context), LocationProvider private fun hasLocationPermission(): Boolean { return ContextCompat.checkSelfPermission(appContext, Manifest.p...
1
547c01aa0626ae2e1f18d2e0a1948553
10c19998850fac29083a92bea9e0e401
Default do-nothing when touching the screen (bubbled up)
uint16_t SCROLLTEXT::processTouch(uint16_t x, uint16_t y) { return 0xffff; }
1
0a479e1c61aa2cb1e9449e3d4eb82738
96f487393032536747494106d058a3c4
後続ハンドラの処理中に未捕捉の例外が発生した場合に応答するエラー電文を作成する。
namespace NBS.CRE.Common.Messaging [Serializable] public class ResponseMessage : ISerializable public static ResponseMessage CreateResponseERROR(Exception ex) { return new ResponseMessage(ex); }
1
f4cb3d75daf37772912bab876c938484
5a5bda16fc14c7387528cd0c9e9d1d34
删除角色时,删除关联
int delRelByRoleIds(List<Integer> list);
1
c551fcf35d5e7319f9186f680bd3285b
27a322e6ea3cb5f57731da6cf725152c
通用方式创建SARibbon原生的对象,WidgetClass为需要创建对象的类名
class SARibbonPannelLayout(QLayout): def createItem(self, action: QAction, rp=SARibbonPannelItem.RPNone) -> Union[None, SARibbonPannelItem]: pannel = self.parentWidget() if not pannel: return None customWidget = False widget = None if isinstance(action, QWidgetAction)...
0
472573b5335be95478a0abd954cf4765
5d01e60f437035c59a342ff459f52ccc
Grab a PrefetchState object for this LocalTransaction This must be called before you can send prefetch requests on behalf of this txn
public class UnsharedImageState implements ImageState @Override public TXRegionState getPendingTXRegionState(TXId txId, boolean lock) { if (this.pendingTXRegionStates == null) { return null; } TXRegionState txrs = null; if (lock) { if (Thread.currentThread() != this.pendingTXRegionStatesLo...
0
95d7650b8c12edd689fce3e34c8cf14e
501b88961be8cc566d4f0f767a012c55
добавляет узел в дерево так, чтобы дерево оставалось деревом бинарного поиска
namespace MyMySql public class BinaryTree<T> where T : IComparable void AddNodeToTree(BSTNode<T> newNode) { BSTNode<T> currentNode = BaseNode; while (true) { if (newNode.Value.CompareTo(currentNode.Value) > 0) { if (curr...
1
8724c271c67d8c72e23cd0cdc73be7a4
93861210079700751d8af021310f9f6f
Update the "last updated" settings to now.
class WPTSLMClient private function updateLastRequestDateAsNow() { update_option($this->getLastRequestDateOptionName(), $this->getNowAsDateTime()->format($this->mysqlDateTimeFormat)); $this->lastRequestDate = null; }
1
0e6d3134f9e85962bca2bd8270301816
4445d6d24ad07b1194497b7187dfbbd7
Returns the card number of the ID.
public class IDData implements SmartCardReadable public String getCardNumber() { return fCardNumber; }
1
b3af613e0f7d9b7c361675a07782cc5c
444574bfde593ead265016f3870f3646
loads the combobox with the delivery dates. gets called in the comboBoxClient_SelectedValueChanged USES DATA READER
{ AllClients.MakeDt(ref ClientDT); ClientGridView.DataSource = ClientDT; deadline_date.MinDate = DateTime.Now; ClientGridView.Columns["id"].Visible = false; }
0
6e3a7f1ec464d00fffc371af2cc7d9d2
92112b5dc45af35388cf8e6be6fc50d6
@brief trigger proc 쓰기를 지원한다.
{ if ( !_p ) throw verror << "vprocess not run for cin."; _p->in.write( in ); }
1
f190a8fd0c66ca0c89f126c1dfb38ebd
25c3f0dd7354259a978c02f3f3ab03c9
开启发布者确认模式
isOpenPayment () { if (!context.store.state.UserInfo.isOpenPayment) { return context.$message.error("暂未开启支付方式,请先开启支付方式") } context.app.router.replace(`/${context.store.state.locale}/Buycoins/Business/AD/Publish`) }
0
89a1976dbf7b6482913a4a03d469cb71
11546abf06b76a54162c65789bd27611
Načte organizační jednotky do formuláře ve formě pro tag select
{ this->oeListe = benKontr->holeOE(); for (int i = 0; i < oeListe.length(); i++) { ui->cbOrgEinheit->addItem(oeListe[i]->getBezeichnung() + ", " + oeListe[i]->getJahr()); } }
1
d601656b58f20c4177cc9b1a4fbb6e51
0b7cb1e9127ff2ec1f00099cbcea315e
Uses recursion to return the length of the longest path beginning at the source.
def longest_path(v): if dp[v] != -1: return dp[v] tmp_max = 0 for u in G[v]: tmp_max = max(tmp_max,longest_path(u)+1) dp[v] = tmp_max return dp[v]
1
00980cf1445c9ed3eb436a6f40edd234
6230b4adb66b3a97d660bf5aeb23c8c8
处理用户不传Token异常
@Slf4j @RestControllerAdvice public class LEExceptionHandler @ExceptionHandler(TokenException.class) public R handleTokenException(TokenException e){ if (e.getToken() == null) { return new R(RCode.tokenNone); } else if (e.getToken().isEmpty()) { return new R(RCode.tokenEmpty)...
1
1bd38ca7d554ad8d475e882387539e1a
7306d9aa7034dd9246ac1235a8cdca29
Gets the first logical line for a given physical (visible) line.
class TerminalModel private int getPhysicalRow(int logicalRow) { return (logicalRow + _firstRow) % _nbrRows ; }
0
6603dcb1a2b970f20d8b775534603cf5
714e9608a4a688c2a992a1b142391481
Format a collection of routes rtes into a bytearray ba.
pdata = [] for instr in pallist: if type(instr) is not PaletteEntry: continue for color in instr.colors: pint = 0 pint |= color.r >> 3 pint |= (color.g >> 3) << 5 pint |= (color.b >> 3) << 10 pdata.append(bytes([pint & 0xFF,...
0
4e15341db3e87dca6dffc5341bdd502a
d7b4658215e2b15f52de8568d4d35065
Supprime une série en BDD
$procedure_name = 'delete_series'; $args = array($seriesID); $result = executeFunction($procedure_name, $args); return $result[0]; }
1
b270a2c0b9ba80c049a89aa53c416edb
d5ea1b2d21c3a932cc8583147667b2ce
Returns the Locale ID string (language_COUNTRY)
public function GetLocale ();
1
cefd5ae629dd6b408538d58ca275e5d4
60c018e860c8d2ab96f2bed96c3176f4
Like calculate usage but weighted in terms of the allocation scale used for this node
class OpenStackInfoGraph(InfoGraph): def _calculate_utilisation(self, data): return self._average_data(data)
0
12d109a84a79e93d6fff42cd9e789dea
468809134e428e552bec6b50b31d5ba2
获取剩余本息和本金尾差
String sql = "select m.due_bill_no,m.sum_remain_prin,n.remain_principal from\n" + "(select b.due_bill_no,sum(b.term_prin - b.term_repay_prin) sum_remain_prin from acc_repay.repay_plan b where b.project_no=? group by b.due_bill_no) m\n" + "left join\n" + "(select a...
1
f8fedab80995c438861398276d56171d
29b7c6ca342ddb08e2f5bde60834f7b1
Handle Schema Composition
{ $schema = DataObject::getSchema(); $this->assertEquals('Money', $schema->compositeField(DBCompositeTest\TestObject::class, 'MyMoney')); $this->assertNull($schema->compositeField(DBCompositeTest\TestObject::class, 'Title')); $this->assertEquals( [ 'MyMone...
1
4acb2fc45a4e98eb9f41da8749a4d566
5240478d7ab951d851e8180980b715b3
佩戴人类装备
{ ObjectInfo info = ObjectsInfo.instance.GetObjectInfoByid(id); if (info.objecttype != ObjectType.equip) { return false; } if (ps.hearType==HearType.Magician&&info.roleType==RoleType.Swordman) { return false; } if (ps.hearType == HearType.Swordman && info....
1
04f9cbd4a8e634a404b30e45786a3249
71ae6961cd3e62b0d61535ba8b9ced3f
trata eventos de soltar uma tecla
void keyboardEspecial_soltar(int key, int x, int y) { if (key == GLUT_KEY_UP) { subir = false; } else if (key == GLUT_KEY_DOWN) { descer = false; } else if (key == GLUT_KEY_RIGHT) { rodarSentidoHorario = false; } else if (key == GLUT_KEY_LEFT) { rodarSentidoAntiHorario = false; ...
1
5d463cfd08784be9a28a7e4206e40664
f91e64f7d8ab443b3ef750d20b137156
Check the given command for errors and report them via the model message system
def validate_command(cmd): msgs = [] if cmd["explode_on_warning"] and (cmd["warning_level"] in (0, 3)): msgs.append("WARNING: Program set to crash on warnings, but warnings " "have been hidden. Only one option should be set.") if cmd["slow_speed"] != 1.0 and not cmd["slow_output"...
1
011662627d76c63a3ef03b8f490acde0
0fbab8c6d4784e146c0aa3cf68d5ce2a
Gets the booking manager.
EOperation getBookingManager__GetBooking__int();
0
8e352349fa400f95ad1847b7a9af3049
6659706007408a727aa52f4c8af60b4f
get all users involved with this battle
public List<Combatant> getCombatants();
1
ce66157ac284f4eb33e2f2fee08f2e80
60e181e96545e6ddc9a53586fb2c3051
Called when the "Objects" checkbox has been set or cleared. Enable or disable all suboptions
options = self.builder.get_object("hbox_re_service") checkbutton = self.builder.get_object("input_checkbutton_re_service_enabled") if not checkbutton.get_active(): options.hide_all() else: options.show_all() options.set_sensitive(checkbutton.get_active())
1
04361a88a0bfc3452143b42e4b2bfc09
c66d52b5d307114d84e0f2d895cd1a21
The function enumerates the attached device as a mass storage device.
void EVENT_USB_Host_DeviceEnumerationComplete(const uint8_t corenum) { uint16_t ConfigDescriptorSize; uint8_t ConfigDescriptorData[512]; if (USB_Host_GetDeviceConfigDescriptor(corenum, 1, &ConfigDescriptorSize, ConfigDescriptorData, sizeof(ConfigDescriptorData)) != HOST_GETCONFIG_Successful) { DEBUGO...
1
0958e9e160b7d4bbd1bfc5632923f72c
bce4c3fb9930476d820ce9199fb992ac
環境変数が不足しているかをチェック
function checkRequiredEnv() { return true; }
0
16cdb2afc42d975c5d30676f6ca904d9
0f02aae38b55039b92a062396f9c17cc
Create a new empty TimeIt_Filter.
Filter::Filter(){}
0
7e591dafa5e18ac454d69e7ac44a8108
0c39abdf1df7278610d40b6b8b97d1d8
get method (full name, rather than short name. I.e., one entry of `_meths_c`) used in *.out file
item = meth.__self__ mname = item.__module__ cname = item.__class__.__name__ fname = meth.__func__.__name__ return '.'.join((mname, cname, fname))
1
c030baed360e924a62b44367bc979a7a
d7877fbe0aa1dd64ebb92d3f81102590
Установка статуса "выполнен" для заказа
{ if($statuses_id == 4){ $str = " , date_close = NOW() "; } $query = "UPDATE `orders` SET `statuses_id` = $statuses_id $str WHERE `orders_id`=$orders_id"; runQueryUpdate($query); if($statuses_id == 4){ $orders_flowers = select_table_one...
1
c628890c6d7b8579202bde9bd6ae3f2b
381d2fe13efcf17cc9abfa7e862aa45a
Test mixed job with mixed delimiter
class MixedFileTests(BaseTestValidator): def test_award_mixed_delimiter(self): jobId = self.jobIdDict["awardMixedDelimiter"] self.passed = self.run_test( jobId, 400, "invalid", False, False, "header_error", 0)
1
e3e4c55fe402a1049aa9d209d08345c6
d5b7ddccc9922a547c8504febb392b0e
Carrega as mensagens para o usuário/grupo em questão
public function loadMessages();
1
5d184eb1d6f1bded5bd912f64cc0ea0e
83739bc5f996a0d81346d480f8cf654b
\brief Remove the current game object from the linked list. \remarks See GameObject_InsertFront().
{ if (_first == &obj) { _first = obj._nextObject; TRACE(Logger(_classname_) << F("Remove: First object=") << _HEX(PTR(&obj)) << endl); } else { for (IPollable* pObj = _first; pObj != nullptr; pObj = pObj->_nextObject) { if (pObj->_nextObject == &obj) ...
1
6cbc1baa703f8692f34b272f4bc3c99e
fddbca2fff0bc4640c36979388fcc7f7
Pregunta al Personaje si esta muerto
public abstract class Person implements Component{ public boolean getDie(){ return die; }
1
47a39445677b765eea507bc60b282d77
68d0e23b40ebd795d2eb31e5d47b37a2
Returns the constant weight of inserting the specified character.
public class SequenceAligner private int insertionCost(char c) { return this.insertionCost; }
1
d4322441f10423fa082fbdb6249b7509
401b5a99e6dbd4631cff6bf78b72f4ba
Exit a parse tree produced by <see cref="PostgreSqlParser.opt_materialized"/>. <para>The default implementation does nothing.</para>
@SuppressWarnings("CheckReturnValue") public class PostgreSqlParserBaseListener implements PostgreSqlParserListener @Override public void exitOpt_materialized(PostgreSqlParser.Opt_materializedContext ctx) { }
1
e21bff35e8a7d1d687a411f9291e00e5
4c87b9dab9322cb38283b99723e977a2
初始化dot图形位置
class LockPatternView : View private fun initDot() { var width = this.width var height = this.height var pointWidth = width / 3 if (width > height) { offsetX = (width - height) / 2 offsetY = 0 } else { offsetY = (height - width) / 2 ...
1
cb8f0948bdb5cc5822040bf977602102
1ad078c79da050c64d6a82e3eca61249
普通副本挑战次数加1
local data = DataCache.getGuildCopyBaseData() require "db/DB_Legion_copy_build" local guildDb=DB_Legion_copy_build.getDataById(1) return guildDb.challenge_times+getBuyTimes()-1-data.atked_num end
0
5bfd6daed59dc6b134ff45379f000e65
03a8846b89aaeac3511069358dc344a3
解析工作模式设置指令
class Worker public static function parseCommand() { global $argv; if(!isset($argv[1]) || !in_array($argv[1],['start','stop','status'])) { exit('usage: php file.php start | stop | status'.PHP_EOL); } if(!file_exists(static::$pidFile)) { try { $hand...
1
f5fe0b0b1d81db10c18f0ae2ff075776
ceda6eb46ac580915ce5ee3da3d8fd0c
해당 수자로부터 천자리 구분한 문자렬 돌려주는 함수
def mine_row(r): str_buk = list() for i in range(7): str_buk.append(str(r[i])) return ' '.join(str_buk)
0
d556f793bf85f37299b7575682ad380b
a3a668f6ed032a05f4d7fa1f02280fcd
Gets the specified drive parameter. Gets a parameter from the drive. Only supports ``bool``, ``int``, and ``float`` parameters.
class RunParams(ABC): def get(self, field: str) -> Any:
0
1751f47ead94ff634b0b65b5b03bff25
3d46afadea7366ca5da4cf20f5ea3b61
Simple implementation of string length.
unsigned cs392_strlen(char * str) { if (str == NULL || str[0] == '\0') { return 0; } str++; return 1 + cs392_strlen(str); }
1
f46ba6005853623bdb6c0f0c41762020
62b96ec535e8b97ed76bc869005378e0
获得微信用户的性别
@Table(name = "yb_user_oauth_weixin") public class YbUserOauthWeixin public Integer getSex() { return sex; }
1
a8ef201729ee513057da13190bf88728
b116cc8d0e72676f9c9ec4149fa094df
POST: Relation/Create
[ProducesResponseType(200)] [ProducesResponseType(400)] public IActionResult CreatePersonRelation(int personId,[FromBody] RelatedPersonForCreationDto relation) { var result = _personsService.CreateRelationship(personId, relation); if(!result.Success) {...
1
03b497311f7756d03590b6cf75dbc5c3
96a9cd00083b3e763d3949e12499b28d
Редактирование кафедры
class ControllerModuleBlog extends Controller private function cats_edit() { $redirectUrl = $this->url->link('module/blog/cats','token='.$this->token,'SSL'); $catId = !empty($this->request->get['catId'])?$this->request->get['catId']:$this->redirect($redirectUrl); $cat = $this->blog->getCategory($catId); if(emp...
1
05ea76c8caae2e3cb5a998a6406baed5
256d3d915559a4e217ed5165184ba65a
Getter for the list of managers
class Application extends \Thread implements ApplicationInterface public function getManagers() { return $this->managers; }
1
0f9c9fbbbda10d95084473908ac18fab
51cdcc29764b0ab8c52cf16177aa884b
Convert fractional to absolute coordinates.
class Point: def absolute(self, absolute_size: (int, int)) -> (int, int): abs_size_x, abs_size_y = absolute_size return (int(self.frac_x * abs_size_x), int(self.frac_y * abs_size_y))
1
407dc42b468d8b9a6948c5bfce5f62a3
bce7f919f69205348c1367f90431bad5
获取BigInteger数据占的字节数
namespace Drough public static class EncodingExtension public static int GetEncodedSize(this byte[] data, Int32 value) { byte bv = 0; if (value < 0) { bv = 0x40; value = -value; } bv |= (byte)(value & 0x3f); ...
0
398311143e953de3b53bb2cafae7aaa7
83be991736da4b73400da9260a63c6bc
返回媒体元素已缓存的时间段
public class KXMedia public double getDuration() { if(duration == 0) { duration = n_duration(hashcode); } return duration; }
0
0051288cb620e8a3785303ee857b1915
27f2e6d42045fee516e0049f9eb59b8d
tf_idf的网格搜索
def gridSearchCV_te(): rf = RandomForestClassifier() paramters = {'n_estimators':range(1,11)} iris = load_iris() clf = GridSearchCV(estimator=rf,param_grid=paramters) clf.fit(iris.data,iris.target) print('最优分数:%.4lf'%clf.best_score_) print('最优参数:',clf.best_params_)
0
35fb4ca2511460ea0804a391b8df7aff
4fbcd1e7ebce4d6abf3a6e6968c2871c
加入购物车到cookie
namespace Com.Orzyourself.ShopOnline.UI.Controllers public class CarController : BaseController private void SetCartToCookie(int productid, int num) { var cookie = Request.Cookies["Cart"]; if (cookie == null) { cookie = new HttpCookie("Cart", productid + "...
1
7201ccbab64f3f3667d54bdd300249d0
273e6d7a4e61707ae884a3a8d87c04f0
拉去用户未读消息
class Userauth extends Auth{ public function unmessage(){ $id = $this->user['id']; if(empty($id)){ return show(config('code.error'),'参数缺失',array()); } $where_message_log['user_id'] = $id; $where_message_log['status'] = array('>',0); $read_arr = Db::name('message_log')->where($where_message_log)->count()...
1
42bf6925402c2d8f74f2771cc52a4b74
07e74947d555ed6f2ea113c558e7f8f8
Check if a file is trashed
{ return $this->model::withTrashed() ->where('storage_path', $path) ->orWhere('storage_path', 'like', $path . '/%') ->exists(); }
0
0fa57e0697566033363e48567282bda6
a542a735aa1b76250c77dc5effee08cb
解析图片,返回JSON格式字符串
{ string ret = null; try { Result result = Reader.Decode((Bitmap)picture); if (result != null) { ret = result.ToString().Trim(); return ret; } List<Image> B...
0
54b7371cc954013141a72d0e89a6628e
01c3a85ebea6a8d6be6a8459d056785b
删除关注人权限判定
let baseUrl = $("#baseUrl").val(); $.ajax({ type: "POST", async: false, url: baseUrl + "/feedback/permission/list", error: function (req, status, err) { alert('Failed reason: ' + err); }, success: function (data) { let result = data.data; ...
0
c238d61dadd248e460b7755881c663ee
b901717ebf832b0810f92a7ac8e9e4e3
Assigns the mask to the parent.
namespace GtkControl.Control public abstract class BaseItem : Gtk.DrawingArea,ISelectable, IDragged protected override void OnSizeAllocated(Gdk.Rectangle allocation) { base.OnSizeAllocated(allocation); Mask(allocation.Width, allocation.Height); }
0
af3f0a326f727bf33b0e7a7d03b9f13a
3d8c75bc0dfcb2800325bb77d0f6760f
Byte-Reverse Word reverses the byte order in a 32-bit register.
static void I386OP(cbw)(i386_state *cpustate) { REG16(AX) = (INT16)((INT8)REG8(AL)); CYCLES(cpustate,CYCLES_CBW); }
0
b985247495b95df1090fc2fe6c3d4dac
04d2aadf7cabd6f6cc7a9ca7546f1f7a
Return a Promise which resolves with `value` after `ms` milliseconds.
sleep(ms) { new Promise(resolve => this.setTimeout(resolve, ms)); }
0
9b27ce649b6009ca4a5ea4166f70ba7f
f50631b256a0612f13b620777f7bd960
Partial dependence of ``target_variables``. Partial dependence plots show the dependence between the joint values of the ``target_variables`` and the function represented by the ``gbrt``. Read more in the :ref:`User Guide <partial_dependence>`.
class InspectModel: def pdp(model, X, features, **kwargs): from sklearn.inspection import PartialDependenceDisplay return PartialDependenceDisplay.from_estimator(model, X, features, **kwargs)
1
50915c9161a6e3c6d5065268fd8d7026
446846d4cb1156988660be21006951ac
Initializes the backStory tab.
self.story.append(Spacer(1, 24)) t = Table(self.table, [70, 40, 200, 80, 80, 80], 15, hAlign='CENTER') t.setStyle(TableStyle([('BOX', (0, 0), (-1, -1), 0.25, colors.black), ('ALIGN', (0, 0), (-1, 0), "CENTER"), ('ALIGN', (3, 0), (-1, ...
0
e464745bd46aba611abbbc52816139ff
2cfbbfb041bc68ba07f306565374982a
Returns admittance spectrum with single peak. Spectrum calculation is taken from Equation (2) in: Yoon, S.M., Cho, N.J. and Kanazawa, K., 2009. Analyzing spur-distorted impedance spectra for the QCM. Journal of Sensors, 2009. inputs: Gp = conductance offset Cp = susceptance offset Gmax00 = maximum of conductance peak D...
class Fast_Mahadevan96: def _calc_spectrum_compt(self, freqs): fedd = self.fedd temp = self.temp_e scalar = np.isscalar(freqs) freqs = np.atleast_1d(freqs) f_p, l_p = self._synch_peak(fedd, self.msol, temp) lsp = np.power(freqs/f_p, -self.alpha_crit) * l_p lsp[fre...
0
ef33dbd17eca5144891e952f1ad63224
6036a825a3693d38706f1f587d79ce50
Returns the number of connection inputs for the neurons. current object layer.
class OutputLayer(_LinkedLayer, _Sequence): def __len__(self): return self._nn.nouts
0