query_id
string
corpus_id
string
query
string
code
string
label
int64
9423bde0c62a21603c841df9303b220a
0457914015df2f740337235c546d7cde
根据商品表中的c_id字段 获取对应的商品分类信息
Category findCategoryByCid(String cid) throws SQLException;
1
99a1633e763f9ae0269849486f2dec64
20976a18ce922ca9d07ae0506e4e5314
サービス契約状態の文字列をbooleanに変換します。 サービス契約状態の文字列
if (value == null) { return false; } value = StringAssist.trim(value).toLowerCase(); return TRUE_SET.contains(value) || FALSE_SET.contains(value); }
1
5d5a0c01fdcfee1553f39843a3bddd00
8e49b725829b33014efb6c608849ffe1
Get mutations connecting two phylogeny nodes (sequences) Mutations from a reference sequence are considered Overlap is removed.
class GetMutationVCF(GetMutationInfo): def mut_location(mut_data, modify_position): mut_data = mut_data[["Uniprot Accession", "position", "mut_from", "mut_to"]] modify_position = modify_position[["Uniprot Accession", "Type", "start", "end"]] data = pd.merge(left=mut_data, right=modify_position, ...
0
380207d7069cdac5c17dde0cd9db8506
125a7301d9bafabf5c8f21e0985315f7
Check for OpenMP on the System
int main() { #ifndef _OPENMP fprintf(stderr, "No OpenMP support!\n"); return 1; #endif FILE *fp = fopen( "signal.txt", "r" ); if ( fp == NULL ) { fprintf( stderr, "Cannot open file 'signal.txt'\n" ); exit( 1 ); } int Size; fscanf( fp, "%d", &Size ); fl...
1
8c3667d02fe1d992f7117b852adf99b2
821a339347e6f4d0ae91f4def1c08ec7
Executes the action part of the rule respostaErrada_EXERCICIO_1_QUESTAO_1_CAMINHO_1_META_1_COMPONENTE_txt1_REMEDIACAO_5_indice_2
class Jeops_RuleBase_ExpressionIdentifierWrongAnswerKB extends jeops.AbstractRuleBase private String[] getDeclaredIdentifiers_respostaErrada_EXERCICIO_1_QUESTAO_1_CAMINHO_1_META_1_COMPONENTE_txt1_REMEDIACAO_4_indice_1() { return identifiers_respostaErrada_EXERCICIO_1_QUESTAO_1_CAMINHO_1_META_1_COMPONENTE_txt1_...
0
09220e1b710f09a752d706c2d44aef7a
16aa6843b823db98d08d429f2dccc340
获取用户其他系统同一设备登录状态
class UserController extends ClientBaseController public function actionLoginState() { exit; $request = $this->getRequest(); $requestData = $request->post(); if(empty($this->userInfo['id'])){ return Json::message("Identity error"); }else{ $requestData[...
1
712b99e9db775fcdc90fcd906c9190a3
9354c769ea1c73e6590e76f998488d1c
! \internal Adds the EntityType \a type to the context. This is when loading the storage.
let (id, new) = self.entity_id_cache[ty.0 as usize].next(); if ty.0 != 0 { if new { self.entity_type_data[ty.0 as usize - 1].reserve(self.entity_type_sizes[ty.0 as usize - 1] as usize) } } Entity::new(id, ty) }
0
61c2515c67e26348594d0c7444dd2ec0
dc2c4a8463d751323b92e262efbd3bf9
Add arguments relating to general parser behavior.
class CoarseParser(argparse.ArgumentParser): def add_args(self): self.add_argument('task', nargs='?', default=None) self.add_argument('-f', '--file', dest='file', default=os.getcwd(), ...
1
aee9e2f473dbba47d196ff4ca3b2b18c
e3bae0822b2fb2de84a1de81ba97b3c5
Carga la lista de contratos desde la base de datos de feria virtual.
this.loadingContracts = true; this.contractService.getSimpleContracts(this.extCompanyId).subscribe( contracts => { if (contracts != null) { this.contracts = contracts; } this.loadingContracts = false; }, err => { HandlingErrorUtils.handleError(this.mes...
1
b6b0ccf1e9f416b79b8147ef32b6088a
9cd1f5821660e10e1a384f17bce752e3
Creates a test suite with parameters containing a file.
public class TesterUtil public static TestSuiteModel getTestSuiteModel(String fileName) { LOG.info("Inside TesterUtil.getTestSuiteModel() with filename : " + fileName); long exceutionTime = 0; List<DeviceModel> deviceList = new ArrayList<>(); String[] variables = fileName.split("_"); OS_Enum supportedOS = get...
1
9591e3b89822add025553d0fe459fdb3
b3530bff0fec03696e346ceaeb33dcb0
Loads the UI with initial Default data from Configuration environment.
namespace HP.ScalableTest.Plugin.WebProxy [ToolboxItem(false)] public partial class WebProxyConfigurationControl : CtcBaseConfigurationControl, IPluginConfigurationControl private void LoadUI() { if (!string.IsNullOrEmpty(_activityData.ProductFamily)) { ProductCat...
1
2985d4e6f8e7812fe6082e53d68c5e53
a7435dee6c20dde9bf8da0a05748c52a
Gets the redeemscript for a funding output from the two funding public keys.
function mkMultiSigRedeemScript (pubKeys: [string], M: number, N: number): string { if ((M > N) && (M <= 1)) throw new Error('Invalid Multi Sig Type') const OP_1 = Buffer.from(zopcodes.OP_1, 'hex') const OP_START = (OP_1.readInt8(0) + (M - 1)).toString(16) const OP_END = (OP_1.readInt8(0) + (N - 1)).toString(16...
1
41836b9ae8d90421c79d4491b3cddda6
d07c51a2449e7e6d864e1c00080b2124
Check layer configurations through and find the greatest value for resolution if any. May be {undefined}.
export class Producer extends EnhancedEventEmitter get maxSpatialLayer() { return this._maxSpatialLayer; }
0
790b028284b8ee1b3b00c5c2e278f373
72eacc8ff9689bc2f2f58d688ce776c0
Returns the smallest reducible sequence, if any.
class LessThan def reducible? true end
0
e501ae8a7c18fea30855bf5ecd8c1959
662d7c951274203faaa562ec080283a9
Retrieves python files related to the plugin. __init__ file are filtered out.
return [ relpath(item, "cosim") for item in ( list(glob(str(ROOT / "vhpidirect" / "c" / "*"))) + list(glob(str(ROOT / "xyce" / "c" / "*"))) + list(glob(str(ROOT / "xyce" / "vhdl" / "*"))) + list(glob(str(ROOT / "websim" / "vhdl" / "*"))) + ...
0
d10df35ed1b20fdceeb290254fdf61b4
6d3a922bae747487ddac2b18dfe8f4c6
Get the s3 endpoint for the given boto3 client.
def _get_s3_endpoint(): import turicreate return turicreate.config.get_runtime_config()['TURI_S3_ENDPOINT']
0
b32c866e7a5c817392b9da431ee70e6f
49f9ce88201f880906e0b9cd6fef0199
проверка на нахождение в зараженной местности
{ if (NearTarget == null) return true; Hole nearHole = NearTarget.GetComponent<Hole>(); if (nearHole != null && nearHole.Infection) return true; return false; }
1
311e9e0f065485d0b5305cd144a055c7
bc5d28e327fa2b5bc2c89a4b7d1c8258
Utwórz okno i przycisk licznika.
etykieta1 = QLabel("Liczba 1: ", self) etykieta2 = QLabel("Liczba 2: ", self) etykieta3 = QLabel("Wynik: ", self) układT = QGridLayout() układT.addWidget(etykieta1, 0, 0) układT.addWidget(etykieta2, 0, 1) układT.addWidget(etykieta3, 0, 2) self.liczba1Edit ...
0
760f9a02adf503a7282479f3e2d9f337
09d087790264efcdb92c9c332d67a0f3
Einfache Zeichenketten-Ausgabe
{ printf("\"C\" \n"); _getch(); printf("\"ist die beste\" \n"); _getch(); printf("\"Programmiersprache\" \n"); _getch(); return EXIT_SUCCESS; }
1
8c92e6a4cb21a97ada2f09ee8d364e9f
0081b0786062de7890c6613d09ab2fd6
フォーマット名が空文字列だった場合は即失敗する。
namespace IceMilkTea.SubSystem public class ImtAssetDatabase private void ThrowExceptionIfInvalidCatalogName(string name) { if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentException("無効なカタログ名です", nameof(name)); } }
1
de2a6e72be081a53d63ecc723601aafb
fde2d86131cfd4515faa27098110e318
Test case for the xml definition with the default implementation of {@link AmazonS3Operations}
public void testOperationDefinitions() throws IOException { assertEqual(createFile("opDef"), "opDef", "0"); }
0
2d4c877e5eec60f5e6ca56f9f2e17f6b
bce2e3e342e0864dc0e45bf22670394b
Gets the default title for this extension.
public function getDefaultTitle() { return $this->defaultTitle; }
1
32822683e2b5908bb5173cd671038f79
6514897e1ec6d7d3f1d1ea3609aeb7a9
Simple servlet to serve a single fixed WWW document
public class CwdocServer extends HttpServlet @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
0
c2aa7203da455d1fa87153c1d9882d72
9aff434494504f9b7ff71966051bb7f2
Stub method to simulate a successfully queued build.
class BuildBucketService(object): def succeed(self, build_id, lease_key, result_details=None, url=None): return self._complete( build_id, lease_key, model.BuildResult.SUCCESS, result_details, url=url)
0
84034f09e64862c283335625d97a69d3
9cb5d554de412b99891799cbfa0e53a9
Decrypts the specified ciphertext and returns the bytes. The key and IV supplied to the constructor are used for decryption.
string Decrypt(string cipherText, string passPhrase = null, byte[] salt = null);
0
c221b15cc46df8f13f72fd508607a4e9
24b05125d5fccbadd80530f12a7b0b2b
Validates two keys together
namespace StrangeDataStructures public class TwoKeyDictionary<S,T,R> private bool AreKeysValid(S key1, T key2) { return (Dictionary1.ContainsKey(key1) && Dictionary2.ContainsKey(key2) && Dictionary1[key1] == Dictionary2[key2]) || (!Dictionary1.ContainsKey(key1) && !Dictionary2.Co...
1
8f9b4af309d31aedd92269a18172d599
b6ceb7dce8054962e860596b05472d17
filters the list of edges for only edges that have this node ID as a target
export default class GraphEditor extends HTMLElement public getEdgesByTarget(targetNodeId: number|string): Set<Edge> { return this.objectCache.getEdgesByTarget(targetNodeId); }
1
9864f2be83c39933f7d568e4bdd2989b
014c622d325289d0588dc3d9990b98c2
This method will take an XMLNodeList that contains all the Obstacle objects that need to be created for the current level being loaded. It will parse the XML .dat files, create an Obstacle object, and add it to a List<> which will be returned.
namespace Pathfinding.RVO public abstract class RVOObstacle : VersionedMonoBehaviour protected abstract void CreateObstacles ();
0
b2cddb82cbb692ec0793929e785e59af
bc5c989fc8b3a3ba9471c05955a9b8f4
限制细胞大小只能为1~10的整数
public class NotepadPage extends Page{ public void countPage(int countNums) { if(super.getNum()<1 || super.getNum()>100) { super.setNum(10); } super.countPage(countNums); }
0
379629bc7675145d8365f568aff5818c
d2ce46b7e0f3eb8f3f8f30879e14d369
Record a screen view hit for the visible CardList
@Restriction(RESTRICTION_TYPE_VIEWER_NON_DAYDREAM) @DisableIf.Build(message = "Flaky on L crbug.com/713781", sdk_is_greater_than = Build.VERSION_CODES.KITKAT, sdk_is_less_than = Build.VERSION_CODES.M) public void testScreenTapsRegisteredOnCardboard() throws InterruptedException { ...
0
9b8397fd79d9bcb97f5c32ee3fdf4c41
f3f0c6c311f1835c08545a4e41d894af
Отрисовывает отладочную информацию о состоянии игрока. Автоматически вызывается средой Unity
if (!AIPlayer) { GUILayout.Label("RPM: "+rpm); GUILayout.Label("Throttle: "+throttle); GUILayout.Label("Gear: "+(gear-1)); GUILayout.Label("Speed: "+currentSpeed); GUILayout.Label("Steering: "+mySteering); } }
1
bd4e2e51044d4aba411f9c8d861dd9ba
c10a7b61292ce78da5cdfbc94f75653a
Logs the bot into discord
await this.bot.login(process.env.BOT_TOKEN) .catch(console.error); await this.bot.on('ready', () => { this.bot.user.setActivity("P*te") .catch(console.error); }); await this.loadCommands(); const events = require(join(__dirname, "events"));...
1
f5e0e19435395e520f8a770f1a2d0758
c87b35dae8ed1188f54bc0278fe2a369
Returns the surface y, in pixels.
{ LogFlow(("VBoxSDLFBOverlay::GetY\n")); if (!y) return E_INVALIDARG; *y = mOverlayY; return S_OK; }
1
17c8205aecbc680fecad59e4a6c9f647
acbea0536ee0cf4a1f9820628d74fd8d
this function create a mapping between each variable and the clique which contains it closest to the root for efficient query processing
namespace Sympiler namespace Internal void clustertree::levelmapping() { for(int i=0;i<sflevelsets.size();i++) { for(int j=0;j<sflevelsets[i].size();j++) { levelmap.insert(std::make_pair(sflevelsets[i][j],i)); } } }
1
450968be30127a8fe0a8ea6fa56f0ea1
d3356c0eb9903b01200fd0e86a1ea694
获取数据连接对象的json字符串
return "<RedisConnection ip=\"" + ip + "\" port=\"" + port + "\" auth=\"" + auth + "\" max_idle=\"" + max_idle + "\" timeout=\"" + timeout + "\" dataBase=\"" + dataBase + "\" weight=\"" + weight + "\"/>"; }
0
1a8ccb0b61efee3bb5b992971e36545d
9b84cb965b0c8120cfbdc4b3845bc07a
新增/删除/修改 Sys_userroles
namespace Web.Portal.Controllers public class SysRoleController : BaseController [HttpPost] public void AddOrUpdate([FromJson]SysRoleDto dto) { this.sysRoleMgtService.AddOrUpdate(dto); }
0
a5c04a8dc82c29c4138dc10803a91f4b
cf6c6ca5e8e3208f814c176d88197261
根据班级编号查询班级的订单
List<BookingOrderVO> bookingOrderList(String classId);
1
2b31d1cfcce4a318662b6b83e8f646af
33440ff35702cf9f50f01d2fe50ea7f6
Query deliver bill. 功能:查询派送单
{ $item = $this->order_deliver_model->get_deliver($deliver_id); if (empty($item)) { show_404(Lib_Errors::get_error(Lib_Errors::DELIVER_ID_NOT_EXIST)); } $view_data = array( 'item' => $item ); $this->render($view_data); }
1
0735b7aa3a9e123cfd0658c25e765b46
446e6028fc7b9d91fa963a45435c5c7e
Test case for update_bind
$update = $this->_database->update()->setTable(array('alias' => 'test'))->setUpdateData(array('alias.col' => 'val'))->where('id = ?', 1); $expected = array( 1, ':alias.col' => 'val' ); $this->assertEquals($expected, $update->getBind()); $update = $this...
1
4bdd34e6835f2576236d5d2d7e6903f7
fe21da99b21a4b30e4914c5b46d757b7
Push the selected item to all selectors
static void selectAll_enumerate(const Array *array, ident obj, ident data) { $((CollectionItemView *) obj, setSelected, true); }
0
bedeb43df4eedd8bc09a48b87b55b611
601b5b141a3a0f9e9fe9078239edf99d
获取倒计时已通过的毫秒
export class Timer getTimeMilliseconds() { return this.time_count; }
1
092bcfa679a1f1a7b5e3a0ea5650142c
054f922963f2505e774fa3e61d488106
------------------- Scalar type -------------------
CScalar::CScalar() : _scalarType(EScalarType::Nil), _integerValue(0), _decimalValue(0), _booleanValue(false) { }
1
bbc6ff17f0ae1adb5a977ad6426c27c5
fbfb7028e49330ed088dd9b13050f541
accesor method for profile hash
class Locker_Group public function getprofileid() { return $this->_profileid; }
0
c4cfbed264c816478aac28a963713510
f9209cb3c26bdb2428f2cdcdd2e154bd
Returns from Vol Control to Pause Menu
class MainMenuWindow(Screen): # Constructor def VOO_Call(self): currentMenu.current = "VOOMenu"
0
7ffa92d0fe7cde4425b01c6264884ee1
ac369cfc21ecbc93683a6794abc4dcf1
returns a Team object if valid userId, None otherwise
class TeamManager(object): def get_team(self, uid): try: return self.__teams[uid] except KeyError: return None
1
525717ed52f94f5594f694ed85d0fbf7
2ca80c7a5330af4c504723ec33ac1030
Get plantaElectricaCantidad
class Habitaciones public function getNumPlanta() { return $this->num_planta; }
0
4c888d54b60e3f7590dc2adfe9238773
97dd01f2e81790895e0626d2185ef930
1st Option
function firstRecurringCharacter1(input) { let seen = []; seen[0] = input[0]; for (let i = 1; i < input.length; i++) { if (seen.includes(input[i])){ return input[i]; } else { seen.push(input[i]); } } }
1
41cf5a98846f4abe1280cccb0921245e
3b82673346f1b7a2d828c482dbd49183
Set when this collection is owned by a sharedInstance. <p> That is, it is a Many property on a bean in the cache. </p>
S shared(boolean b);
0
dafbbe0fae62e0f4edb51a13b3be24bd
f45bf9224e1bb763b9b1ed1cc412e294
Affichage du meilleu score
var div=document.getElementById("score"); while(div.firstChild){ div.removeChild(div.firstChild); } var p=document.createElement("p"); p.innerHTML=edt.matieres[0].nom+" : "+this.mat1+"/20"+" | "+edt.matieres[1].nom+" : "+this.mat2+"/20"+" | "+edt.matieres[2].nom+" : "...
0
94f7c0d0200005aec96b4682f14958ac
dccb215ce697a673188fc05f3471d0dc
Called when the cube is clicked on
public class CubeClick : MonoBehaviour void Start () { }
0
c7ffa9d8962940d92f9c6cfc34694536
ced995ea070f95d94fa8a57b4a18cc26
When a non-string is passed then throw exception.
strings = ['1.1', '2.2', '3.3', '4.6'] with pytest.raises(ValueError): typecheck.set_type(strings, datetime)
0
4d8739e36cb65dad8a8728bf73eb5a0a
586a5de24fa9043568345cbc10dbb17b
根据查询条件,分页查询并返回CarAccident的分页结果
public PagingResultBean<List<ProduceAccident>> findPageProduceAccident( PagingQueryBean<ProduceAccidentQB> pagingQueryBean);
0
fe7940bbbb80e23c65c270e7331398ac
0f612d8314fad7ee833d7ed0715df872
Get the Oceania timezones sorted by UTC offset.
{ return array_map( function ($value) { return [$value]; }, TimeZoneUtil::getIdentifiersBC() ); }
0
c8f283c4b469e062c60f43ac55d86e3f
fba8e390bcde15b1d427739af577a193
Метод подтягивает кинотеатров городов и перезаписывает их в базу
{ $cities_hash = fn_rus_cities_get_all_cities($rows); foreach ($rows as $city_data) { $city_data['City'] = fn_strtolower($city_data['City']); if (!empty($cities_hash[$city_data['Country']][$city_data['OblName']][$city_data['City']])) { $city_id = $cities_hash[$city_data['Country']][$...
0
c0a3ce7930e1d4e264f3e36c71818370
241179931acb165a8b2cb204ea5d24da
The WM_INPUTLANGCHANGEREQUEST message is posted to the window with the focus when the user chooses a new input language, either with the hotkey (specified in the Keyboard control panel application) or from the indicator on the system taskbar. An application can accept the change by passing the message to the DefWindowP...
class Listener(ListenerMixin, _base.Listener): #: The Windows hook ID for low level keyboard events, ``WH_KEYBOARD_LL`` def _on_notification(self, code, wparam, lparam): if code == self._WM_INPUTLANGCHANGE: self._translator.update_layout()
0
6c4e671ea6edbfa0d19d5f11b313a497
c5db5578c9be883ae63030af42c2d32e
Re-interpret 2N real signals into N complex signals
const tre: number[] = [] const tim: number[] = [] let i = 0 for (let y = 0; y < _n; y += 1) { i = y * _n for (let x1 = 0; x1 < _n; x1 += 1) { tre[x1] = re[x1 + i] tim[x1] = im[x1 + i] } fft1d(tre, tim) for (let x2 = 0; x2 < _n; x2 += 1) { re[x2 + i] = tre[x2] im[x2 + ...
0
3e43532df2709773eb44121523c4e2b5
8616fc65860831e827ec14a021e7a22d
取滑动元素, 有可能是自定义元素也可能是body
let body=document.body; let html=document.documentElement; body.scrollTop=100; html.scrollTop=100; let obj; if(body.scrollTop==0){ obj=html; }else{ obj=body; } body.scrollTop=100; html.scrollTop=100; return obj; }
0
503c7005c0e15f873fe476e31704fa21
80006ad549ed3e9c9efd7a2e35b410de
Updates the collision square's position
void Agent::colliderUpdate() { m_collider->x = m_position.x; m_collider->y = m_position.y; }
1
9e62849b4c2d2e398f7a01a9dd92a1f5
279809163a3214fa3b3ef2d55d08c517
Constructs this Shipment as an XML data source. If a hint is provided it will be used where data is not available by the XML data.
Node node; NamedNodeMap namedNodeMap; Document doc; switch (mnFkXmlTypeId) { case DModSysConsts.TS_XML_TP_CFD: case DModSysConsts.TS_XML_TP_CFDI_32: break; case DModSysConsts.TS_XML_TP_CFDI_33: moXtaDfrMate = new DDfrMat...
0
67f0d9becec4f754afd61357ac4ce698
7b6966e5879bc6f330dd0589d6589a67
Keep an HTTP connection alive until we respond. This is used to keep the connection alive while we handle very large uploads.
class FirewallAuthenticator: def keep_alive(url: str): LOGGER.info("Attempting to keep alive") try: conn = HTTPSConnection(url.netloc) conn.request( "GET", f"{url.path}?{url.query}", headers={"User-Agent": HTTP_USER_AGENT}, ...
0
6e1a821cec36094a57d08c6cab8e8682
a449ee6aa9d418ebce51ed43c3611812
Stop streaming ETH transactions
class walletRPC stop_wallet() { return this._run('stop_wallet'); }
0
a881da97a36a30e1003dafed9fb08766
fc5db00a9164033908f4b39fa70375d9
this is the command to toggle a virtual keyboard.
void Bluetooth_Toggle_iOS_Keyboard(){ uart_putc(0xA1);uart_putc(0x02);uart_putc(0x08);uart_putc(0); Delay_MS(5); uart_putc(0xA1);uart_putc(0x02);uart_putc(0);uart_putc(0); }
1
e436a9487aa2736966037c761952fad2
de489ae6b9ed4a0c58869121e7495fc9
构建订单物流查询流水上下文
FlowOrder flowOrder = new FlowOrder(); flowOrder.setProcInstId(prodInstId); flowOrder.setApplyUserId(currentUserId); flowOrder.setApplyStatus(3); flowOrder.setApplyTime(""); flowOrder.setApplyTypeKey(flowModel.getFormKey()); flowOrder.setApplyTypeName(flowModel.getFormName()); flowOrder....
0
6343b07d793aa1a0cbd92ca516a4fd65
ebdba531f3b8f751d495c31b7580defc
массив с элементами найденными только в одном массиве, но не в обоих.
var array = []; for (var i = 0; i < arr3.length; i++) { if (arr4.indexOf(arr3[i]) < 0) { array.push(arr3[i]); } } for (var j = 0; j < arr4.length; j++) { if (arr3.indexOf(arr4[j]) < 0) { array.push(arr4[j]); } } return array; }
1
91ea207ad7fac97f111552c518bca061
fbcf4a276bb4a67b489c342c25206e94
設定 DateTimePicker 格式
{ dgvData.DoubleBufferedDataGirdView(true); dateTimePickers[0].Format = DateTimePickerFormat.Custom; dateTimePickers[0].CustomFormat = "yyyy-MM-dd HH:mm:ss"; dateTimePickers[1].Format = DateTimePickerFormat.Custom; dateTimePickers[1].CustomFormat =...
1
37b0e65507012227ff1fd9bd714a2818
2d984ad34fad778649af20cc925b4887
Get the value of Bath Number
try: number_of_bathrooms_html = Beautiful_Soup_object.findChild("ul", {"class": "info"}) number_of_bathrooms_with_extra_html = number_of_bathrooms_html.li.next_sibling.next_sibling number_of_baths_html = number_of_bathrooms_with_extra_html.next_sibling.next_sibling number_of_baths = ...
1
8dd177d2332ed35680c8e37d49f6689c
23e0bb07507f959fe3dc96fe2c2cb6b5
Today popular posts.
getPopularPosts() { return PostService.getListPosts({ orderby: "post_views" }); }
1
14fb42c6eb5598086657950f365709e5
22f84019fc857373f0d2dc388e70ac6a
<p> List streaming distributions. </p> The request to list your streaming distributions. Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operati...
java.util.concurrent.Future<ListDatasetsResult> listDatasetsAsync(ListDatasetsRequest listDatasetsRequest, com.amazonaws.handlers.AsyncHandler<ListDatasetsRequest, ListDatasetsResult> asyncHandler);
0
4ca3c64ea5f6e2e4126906f115c79e3a
cf7a1e74ed33b0d6b0d2276a32d4b63b
上传通话记录到云端
public class ConsultantInfoActivity extends Activity implements OnClickListener private void saveAndUploadCallRecord(long startTime, int callRunTime) { if (NetworkUtil.isNetworkAvailable(getApplicationContext())) { mController.insertConsultRecord(ConsultantInfoActivity.this, mConsultRecord.getProjectId(), callRunT...
1
c2f8cf8c2410c4d3a3138d5935e491f1
12de3c1f1f7433469011502f6e81f5f9
allocate memory for the instance and zero it
TacticLibraryInstance::TacticLibraryInstance() { numTactics = 0; }
0
c1fb09f522de3bc153fdb99422d3622d
096a846ea49faf4e4b768c2938e29813
Method to set the schedule of an attendance
public class FormAttendanceSubmission extends Fragment implements Observer public void setIdSchedule(int idSchedule){ this.idSchedule = idSchedule; }
1
497205b0e302449f2ed6cf22533a8580
d5de0d55ae5f27bb0a744fa0e02faabd
预览HTML代码
public void preView(@PathVariable("pageId") String pageId) { try { if (StringUtils.isEmpty(pageId)) { throw CustomExceptionFactory.getCustomException(CommonCode.CMS_ID_PARAMS); } String html = cmsPageService.createHtmlByTemplate(pageId); byte[]...
1
1813bb67af6e828de6849a6b93ccdc2f
f5591597e6f48233277a5a151a03dd13
Reporting to Jupiter that we've done one Release to this object instance The ref count reporting is needed for Jupiter to determine whether there is something other than Jupiter and RCW that is holding onto this Jupiter object. If there is, this Jupiter object and all dependent CCWs must be pegged. We typically repor...
namespace System.Runtime.InteropServices static unsafe class RCWWalker internal static void AfterJupiterRCWCreated(__ComObject comObject) { __com_IJupiterObject* pJupiterObject = comObject.GetIJupiterObject_NoAddRef(); CalliIntrinsics.StdCall<int>(pJupiterObject->pVtable->pfnConnect,...
0
e0f5e1dfe50689d65f60e0135d43989e
d58615e97a9f8000a6be472a982a2e5f
get number of total logged in users in the system
class User private static function _getTotalUsers() { try { $db = Database::getInstance(); $count = (int) $db->query('SELECT COUNT(*) FROM users')->fetchColumn(); } catch(PDOException $exception) { error_log($exception->getMessage()); $count = 0; } return $count; }
0
0a613bcad6c4fd6a3ea2638cb19d7162
cacb80b19726f7b562fe082e16887dc8
獲得3D地產的售盤信息
{ $json = $this->get('json_parser')->parse($request); $bbd_id = $json->get('bbd_id',-1); $bd_id = $json->get('bd_id',-1); $landz_id = $json->get('landz_id',-1); $agent_id = $json->get('agent_id',-1); $special = $json->get('special',""); $category = $json->get('category',-1); $community = $json->get(...
0
1eae2fd8ea2bfa7331d45316c33451be
3a77c05efff391bba000467655e575db
Notifies user about status of synchronization.
public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener, LoaderManager.LoaderCallbacks<Cursor> @Override public void onStatusChanged(int which) { MainActivity.this.runOnUiThread(new Runnable() { @Override ...
0
e53f41fd8462b562a89c29157544df26
779158297745ba2ad3378c5ce05f366d
Transitively find all implicit types, avoiding circularities.
const seenTypes = new Set; function process(obj) { seenTypes.add(obj); for (const child of obj.getChildSchemas()) { if (seenTypes.has(child)) continue; process(child); } } process(this); return Array.from(seenTypes); }
1
ad1c1ec828ebc7cbc055f58f599e9824
6002b4db3c23261bc0548d9342442a56
List deleted nodes **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of deleted nodes for the current user. If the current user is an administrator deleted nodes for all users will be returned. The list of deleted nodes will be ordered with the most recently deleted node at the top...
const options = ParamCreater().listNodes(listNodesRequest); options['responseHeaders'] = ['']; return this.hcClient.sendRequest(options); }
0
92577810b629ce24cd345d08b8f61ea7
d621891b89b62b2e9c854da634969e03
Returns drug information based on the name of the drug
namespace PatternExam public class Pharmacist:IHandler public Drug FindDrug(Drug drug) { return WorkPharmacy.Drugs.Find(x=>x.Name==drug.Name); }
1
7acad609295a00365fe1660acb3aba78
62935e9a3308f2964c27b609d87f796d
turns a character string into a binary string
def create_binary_string(word): ln = len(word) bln = chr(ln) z = chr(0) return bln + z + word
0
f0410b16de6359435d9cd501799bfdbe
053cc1d49ed7f80836c46fc2fa31c8c0
根据columnID获取新闻评论列表
public PageInfo<ViewNews> getPageListByColumnId(Integer pageNum, Integer pageSize, Integer id) { PageHelper.startPage(pageNum, pageSize); List<ViewNews> viewNews = viewNewsMapper.getPageListByColumnId(id); return new PageInfo<ViewNews>(viewNews); }
0
359d2b21f27233aec05321e529eb9751
39e98ec43887dc35259b04a5a97eb656
Returns: List of names of the flags declared in this module.
def getModuleNames(self): return list()
0
d48bc6b8d1ba50901b3003cbe90fd82e
1deb7890a0e095abfd657638b2bb7db1
Succeeds if no exception is raised:
class TestRun(unittest.TestCase): def test_retcode_no_exception(self, popen_mock): m = mock.MagicMock() popen_mock.return_value = m m.returncode = 0 beaver.run("echo", "some text goes here")
1
e413612ce55c03dcfa323586d2f1d751
cbcdfe28dbab26656019c028657ff92e
Mock configration object to pull configuration from Koji
def get_mock_config(): return """ [fn_jira:my-server] url=https://example.com auth_method=BASIC user=admin@example.com password=PASSWORD1 jira_dt_name=jira_task_references verify_cert=False"""
0
9e2ff6d9cf5715d21db4806e6e3aa03b
cf2e8d4782bb5589121d20ce90063806
Stops the fading timer, call this when the alpha reacches zero.
namespace WhatPumpkin.Sound [RequireComponent(typeof(SgridAudioSource))] [System.Serializable] public class SFXGO : Entity, ISFX, IFadeable public virtual void StopFade() { _isFading = false; EventManager.OnUpdate -= StartFade; SoundManager.Instance.FadeOutSFX -= ...
1
928d9f513b488a1083e85da88d589732
56df63302663f1776074b6e28be7e889
metodo para obtener la cantidad de memoria que se esta usando para guardar el dato.
class AppData private long getMemoryUsage() { Runtime runtime = Runtime.getRuntime(); return runtime.totalMemory() - runtime.freeMemory(); }
1
0794cbc8e17f1182679b67c2b2ff8de9
f007168274466cf765788b489ca3adf9
Checks for multiple SFR reaches in one cell; and whether more than one reach has Cond > 0
class diagnostics(SFRdata): def check_overlapping(self, tol=1e-6): print('\nChecking for model cells with multiple non-zero SFR conductances...') m1 = self.m1.copy() m1nodes = m1.node.values if 'SFRlength' not in m1.columns: m1['SFRlength'] = m1.length def cond(X): ...
1
175c39d4f0b78697e801a1b089751871
b0a808b6e7673395fbb873e37c6d9ea0
function: 检查点击“?”后弹出的多层地图的建图注意事项
if(typeof(data.error) != "undefined"){ alert("系统提示:" + data.error); return; } radarPop(getClickObjectIndex()); changeMap('worldScreen_Layer'); }
0
5c38479fef30b4085f7ca6c61929b2e4
b69014be868275322d4d9744bb881b8f
根据法院分级码 获取相应法院的生产库数据库连接 当基层法院未配置链接时 返回市(中院)的数据库链接
namespace TDTK.IndustryPlatform.SafetyMonitor.SQLServerDAL public class TN_HistoryChart:IDAL.ITN_HistoryChart public string GetConnectionString(string coalCode) { dal.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString(); StringBuilder sb = new Stri...
0
ae616244250775c0352b271b149b3aed
e425acd0cbc4c4f56db08578582d0e7c
A function which retrieves a single boolean value from a JSON structure.
{ JsonPtr node = getNode(path, delim); if (node) return node->wantBool(); throw JSON_ERROR_MSG(JosnNodeNotExistError, "Target node doesn't exist."); }
1
1051362c6b39f7e896315c506ec567c9
425e3d736f3378889e15ad52daf6dc4d
Tính tổng số lượng sản phẩm mua
namespace NguyenHoangLaptop.Controllers public class GioHangController : Controller public double TinhTongSoLuong() { List<itemGioHang> lstGioHang = Session["GioHang"] as List<itemGioHang>; if (lstGioHang == null) { return 0; } retu...
1
00ff30b31defd0ccf449e16b0aa90db2
3b6326eac64bec72d8a4d6c6a8fd511d
Run Jacobi algorithm to diagonalize symmetric matrix.
{ var tolerance = 1e-20; var maxSweeps = 10; var count = 0; var sweep = 0; var epsilon = tolerance * ComputeFrobeniusNorm(); var diagMatrix = Clone(); var unitaryMatrix = Identity.Clone(); while (sweep < maxSweeps &&...
0
647803997932decc898acd48144a05f3
f257e866aac721f6f4074dae8f0f0ed6
Devuelve el valor de la columna DSPOBJD_ODOBOW en la fila representada por este objeto.
@SuppressWarnings("serial") public class POXXTbl extends AbstractPo<String>{ public String getDwyb() { return this.dwyb; }
0
116f54ec57d6d98ba39355d3c1f0556c
4f21b25bf46c0b1ccc3b3f7d138390d8
Reads a wallet password object.
throws UnreadableWalletException { Wallet wallet = new WalletProtobufSerializer().readWallet(stream); if (!wallet.isConsistent()) { log.error("Loaded an inconsistent wallet"); } return wallet; }
0
34bcbc25e8bb2096ef2880b6954422e8
592c8efc7fe8cead52d6fed486068236
Clear filter for inventory list
this.filter = { category_ids: -1, price: -1, size: -1, material: -1 } this.filterEvent.emit(this.filter); }
1
ddb2041bcb2ea6553e4697baf059e8b1
315d9d54f77f141dcaf9ace3b71f4375
Adds plugins to server
public class ClientApp : GameApp protected override void OnAddPlugin() { mPluginManager.Registered(new CorePlugin()); mPluginManager.Registered(new ClientPlugin()); mPluginManager.Registered(new NativePlugin()); }
0
ac30f78d2b43f53cf98cbf6e6b997979
02f9f708fed31b768bb62aa917896912
获取中队下所有的班组+队员
@Controller @RequestMapping("/proPrepare") public class ProPrepareController @ResponseBody @RequestMapping(value = "/getTeamByDept", method = RequestMethod.POST) public Map<String, Object> getTeamByDept(String dept_id,HttpServletRequest request) { if("adbc".equals(dept_id)) { HttpSession session = request.getS...
1
2d59795fd5e95865596260a85e1489b9
e148e082c7b512558f602f57a231b234
Creates an offset frame with quad corners. Works only with convex shapes.
const numPoints = points.length; let fragment0 = PolygonWireOffsetContext.createOffsetSegment(points[0], points[1], offsetDistance); let joint0 = new Joint(undefined, fragment0, points[0]); let newJoint; let previousJoint = joint0; for (let i = 1; i + 1 < numPoints; i++) { const fragment1 ...
0
a171346ccb474c20747827918d121a1b
7c026af8a502acb7c99e90d223dc8e2a
テストで使うmemberを1つ作成 正しい値を持ったインスタンスを作成しデータベースに登録まで行う
{ $tmp = array('Y','N'); for($i=0; $i<100; $i++) { $data = array( 'email' => $i.'@email.com', 'password' => $i.'password', 'name' => $i.'name', 'tel' => $i.'123123123', 'rcmd_code' => $i.'rcmd_code', ...
0
590ad0c2e45f301fb4964d74d1320cf4
09dfb2f593a4c3e046be33b260e80928
截取double型数组,区间为闭区间
if (source != null && start >= 0 && source.size() >= end) { ArrayList target = new ArrayList(); for (int i = start; i <= end; i++) { target.add(source.get(i)); } return target; } return null; }
0