query_id
string
corpus_id
string
query
string
code
string
label
int64
cfacf918ae23495ed504ae45fba7aee2
207e0b8cb2db5ee5520f07ecd67909db
Loads 'solar system' models into in-memory database.
class DatabaseSeeder extends Seeder public function run() { $this->call(SolarSystemSeeder::class); $this->call(HaulingConfigSeeder::class); }
1
0ef84df5d06e6e17118b24e4e9d8c38e
ff18ffcb6b8d995ffe51e78410deeb65
@brief Check if user has access to command
{ return isUser() || isSuper() || isTrans() || isAdmin(); }
1
22004170db2c45b84acfdc826ac260e3
ca641c0199dff8771546b8901954522d
изменение настроек (функция возвращает коды ошибок, если они есть)
function DoUpdateSettings($ValueIntForm, $IdUpdateSettings) { header('Location: index.php'); UpdateSettings($ValueIntForm, $IdUpdateSettings); GoSettings(); }
0
90d0da1ccd5e2aa66c97dbe47003868c
90d50d5e2a0897b81de13d4704412662
Saves and closes the current document, then gets a <see cref="MemoryStream"/> for exporting.
namespace HtmlAgilityPack public class HtmlDocument : IXPathNavigable public void Save(Stream outStream) => this.Save(new StreamWriter(outStream, this.GetOutEncoding()));
0
a6f58f2557db7b0e944c2bd3354f779b
4c3c4ff4cc76b1231fc208cee72d615a
Assign custom locations of fire stations.
Map<String, String> stations = new Hashtable<String, String>(); stations.put("1108413", "SDRoute1"); stations.put("1108699", "SDRoute2"); stations.put("1108702", "SDRoute2"); return stations; }
0
89c32d4f566a5f60f0831e0fdc08df96
023cecf037991fbc4ef197fb23211a29
Returns the current hardness/number of hits needed.
int getCurrentHitPoints();
0
92bcfa881cb6be965e9c8727b3017f91
927f4dcb1ccee1849cec1936a5975fa8
Gets the stove.
public class TileEntitySynthesizer extends TileEntity implements ITickable, ISidedInventory @Override public ItemStack getStackInSlot(int index) { return this.furnaceItemStacks.get(index); }
0
a01f0f856cefcce5691509c541948e87
2020399e7cf4d0430b7f47d61cd04677
Applies styling to text depending on which output system is being used. If we're rendering a web UI it will return text with HTML. If we are outputting to the shell then it will return bash text modififers.
ContentStyle outputStyle; if (generateWMLC == null) { calculateGenerateWMLC(); } if (Boolean.TRUE.equals(generateWMLC)) { outputStyle = ContentStyle.BINARY; } else { outputStyle = ContentStyle.TEXT; } return outputStyle; }
0
7811761d8c98793d9ad2473cc5412c18
296a4dc8fc11eb8086bd56f13e466bc1
Gets the platform package price view model.
namespace ADit.Interfaces IOnlinePlatformPackagePriceView GetSelectedPlatformPackagePriceInfo(int Id);
1
2952ba5f0a492f6eb5c4cd94bccc5826
7178d0f112d8d769c9406bf65d099dca
@brief Called when changing the combo box of the file search return variable
void ConfigDlg::OnSelchangeComboFile() { g_pHistoryData->BubbleSelectedFile(m_ctrlImageFile.GetCurSel()); RefreshImageFileList(); }
1
bafdb956f62f907c356400a47e056778
28121d7dbf345a772f0f36bf4a63dc83
Checks location to make sure that the user is in Australia
self.driver.get("http://localhost:5000/login") user = self.driver.find_element_by_name("username") password = self.driver.find_element_by_name("pass") user.send_keys("richa123") sleep(1) password.send_keys("richa123") password.send_keys(Keys.RETURN) sleep(...
0
7448ff8d2675c83fc19713964268e846
8263f11f75bc240a6a42ea001f407f0e
判断某个订单是否满足某种节日优惠策略(跟入住时间做比较!)
$hotels_price_id=empty($hotels_price_id)?$this->id:$hotels_price_id; $hotels_price_data=$this->findByPk($hotels_price_id); $numbers=$hotels_price_data->numbers; $start_date_time=strtotime($start_date); $end_date_time=strtotime($end_date); $diff_day=($end_date_time-$start_date_time)/86400; $remain_flag...
0
b5a801d009c33c7d0a2840b3cfed699b
574206a3ac9d9a167fe5d1ecc7696e28
根据艺术品类型id,模糊艺术品名称,页码,每页数量 分页获取定制艺术品
public List<CommodityArtwork> getCommodityArtworksByArtworkTypeIdVagueArtworkNamePageNumber(Long artworkTypeId, String artName, int start,int num);
1
bc68e9b63b3728d03700e6541c31bf96
a65f4b1ce5bb627e652c1aa08fcdba51
按照距离将对应星排序,l矩阵中存放各对应星之间的距离;location矩阵中,存放对应的星
lrd = [0 for i in range(datalen)] for i in range(datalen): lrdpq = PriorityQueue(minpts) for j in range(datalen): if i != j: if lrdpq.full() == False: lrdpq.put([matrix[i][j] * -1, j]) else: temp = lrdpq.get() ...
0
770f64eedf91b677d66623b9b06aafd5
3abec9b64c2367596cc29334bc756412
Fonction de generation des entetes communes a toutes les pages du projet
function CreerEntete() { $tableauEntete = $GLOBALS["vgl_Tableau_EnteteSite"]; $varEnteteSite = "<head>" ." <title>".cstTitreFichier."</title>"; for ($itEnTete = 0; $itEnTete < sizeof($tableauEntete); $itEnTete++) { $varEnteteSite .= "<meta ".$tableauEntete[$itEnTete][cstC...
1
437977256ee602ec909ffcb356de4910
969c3124dddd056f6273d17055228f9f
Makes the View [View.GONE] unless the condition is met.
return if (value) { View.VISIBLE } else { View.GONE } }
1
2d01f96aaed1bb58c0c99d1a7349d02f
0d3973277f4cb8fc24e62525b82c0fbf
设置联盟的cookie,标记最新的联盟
{ $config = unserialize($GLOBALS['_CFG']['affiliate']); if (!empty($GLOBALS['parent_userid']) && $config['on'] == 1) { if(!empty($config['config']['expire'])) { if($config['config']['expire_unit'] == 'hour') { $c = 1; } elseif($...
1
f11eb4dc3f047f327b7b1e4daf85c1c2
8c674c8faa8bcfab0c18a9e0c55b9496
Sets up texture env for an alpha-blended draw.
void SetRenderOperationA(MAGIC_RENDER_STATE* s) { glActiveTexture(tex_stage[s->index]); glTexEnvi(GL_TEXTURE_ENV, GL_COMBINE_ALPHA_ARB, ogl_combine[s->value]); glTexEnvfv(GL_TEXTURE_ENV, GL_ALPHA_SCALE, &(ogl_scale[s->value])); }
1
b056d3e526e71188ee1c57802bd227ff
89844d9d4bf70cabcccb7d7ed688fe37
바이트 값을 16진수로 변경해준다
{ StringBuilder sb = new StringBuilder(data.Length * 3); foreach (byte b in data) { sb.Append(Convert.ToString(b, 16).PadLeft(2, '0')); } return sb.ToString(); }
1
f92efd24c643153d3bf50caf9b76f92c
df614b0a17680193dddc6fe309193e43
获得当天的时间字符串,包含年月日<br /> 形如:2012-11-29
public final class DateUtil public static String getToday() { return getToday(C_DEFAULT_DATE_FORMAT); }
1
66506800a03e465e0454b11ea2c2492a
f7024f6bd23bfd61ece4e03627e0d5f0
电梯标准价格添加
@Service("elevatorConfigService") public class ElevatorConfigService public void elevatorNonstandardAdd(PageData pd) throws Exception{ dao.save("ElevatorConfigMapper.elevatorNonstandardAdd", pd); }
0
a4e874f936effe231e8e9ff11899171b
ec0654415d778f707b45ad1f25855fd8
Run LDA sequential model.
def run_multicore(args, corpus, dictionary, passes, alpha, workers, pre): lda = gensim.models.ldamulticore.LdaMulticore ldamodel = lda(corpus, num_topics=args.num_topics, id2word=dictionary, passes=passes, alpha=alpha, workers=workers, prefix=pre) return model
0
99ed0566b9a9d2b4c2c3ee7909992733
ce2926aa27f946ae70a5bca0f3e576e1
Load Immediate constant in Upper half of a word.
def handle_loadimm(): write_word_block(lambda i, b: output.write( "SETIMM(%s, EVAL(DEFER(CAT)(MEM_, AP_%s)))\n" % (b, b) ))
0
94864b43cd30f386a12c94c934c69127
944b388bbab5d1b5eb62cf03e048a3fc
移除空标签
{ MatchCollection matchs = Regex.Matches(htmls, @"(?<tag><[^\s>]+\s)|(?<tag><[^\s>]+>)"); foreach (Match match in matchs) { string tag = match.Value.ToLower(); htmls = htmls.Replace(match.Value, tag); } return htmls; ...
0
65bc2d5e6c98dd43d2ae57ad8580573b
451e7c531405c46a893aba04f42b6275
Create an instance of {@link CPSNonLtdSICInfo }
IssuerCSDReport1 issrCSD = objFactory.createIssuerCSDReport1(); issrCSD.setId(createID(ISINland)); issrCSD.setOvrllTtl(createOvrllTtl(ISINland)); issrCSD.setFinInstrm(createFinInstrm(ISINland)); issrCSD.setTxTp(createTxTp(ISINland)); issrCSD.setClntTp(createClntTp(ISINland)); issrCSD.setTtlCshTrf(createTt...
0
317b7ecd05e7eeb157e6622c685ff1bb
0dd2a2223a2d247ba0f65a9d46fe6037
Check if there are active footer widget areas.
function responsive_customizer_has_footer_info() { $footer_info = responsive_get_customizer_footer_info(); return ! empty( $footer_info ); }
0
3292e169aa83fe805c884b8789d7c8c9
173d61714273bd54eeeb79d4ae027d6d
Decodes a string of space-separated tokens as a list of tokens
class Codec: def decode(self, s): return [str.replace('||','|') for str in s.split(' | ')[:-1]]
0
4fac9a096f05302e938048e7c1a24455
8cb851f8c16e091a533a875e74e917c3
Returns the meta object for the attribute '{@link gama.EVariable#getMax <em>Max</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EAttribute getGroupHasMax_Max();
0
29d62da2677c85dfb565b5d7718ab158
4021c8f77a8a245fbd118a90f012720d
Test toString returns full object name
{ $table = new PMA_Table("PMA_BookMark", "PMA"); $this->assertEquals( 'PMA_BookMark', $table->__toString() ); $this->assertEquals( 'PMA_BookMark', $table->getName() ); $this->assertEquals( 'PMA', ...
1
2ac06a4281be72d02102b91718ae4363
901fc44963871bfbfbf30eb102f55bff
Test that an exception is thrown when a non-JSON response is sent to parseResponse.
{ $route = route('croudtech.schedule.parse'); $this->json('GET', $route); $this->assertInstanceOf(\Illuminate\Http\JsonResponse::class, $this->response); $this->assertResponseStatus(422); }
0
af1bbb81a38e359d46970900a3b9cce5
5966cb449bd5cb1949386bcf53017277
============================================================================ from BCP either remotely or locally. It uses the Rx configuration passed to this API by the application. =============================================================================
BOOLEAN SPDO_ActivateRxSpdoMapping(BYTE_B_INSTNUM_ BOOLEAN *po_busy) { BOOLEAN o_ret = FALSE; #if (SPDO_cfg_MAX_NO_RX_SPDO != 0) t_SPDO_OBJ *ps_spdoObj = &as_Obj[B_INSTNUMidx]; UINT32 dw_sodHdl; BOOLEAN o_appObj; void *pv_data; SOD_t_ERROR_RESULT...
0
7c89df9f79c6b456120c4d66d5f44f18
d05a735fada1b01e60bbbc47af23d5e7
Register a reader for a files with given extension.
def register_reader(cls): READER_BACKENDS[cls.name] = cls return cls
0
d7f476bca48010eec44a2575cca33b01
69a45374ca9a1b13afef0689c0fda3d0
! @brief 現在の習得済魔法をサブウィンドウに表示する Hack -- display spells in sub-windows
void display_koff(PlayerType *player_ptr) { if (player_ptr->tracking_bi_id == 0) { return; } for (auto y = 0; y < game_term->hgt; y++) { term_erase(0, y, 255); } ItemEntity item; item.prep(player_ptr->tracking_bi_id); const auto item_name = describe_flavor(player_ptr, &item, ...
1
0d1a26e44ab19163cfbc9d1ebe6ce78a
be77b7a8562a0d2aacf6bc3757f11bee
腾讯坐标转百度坐标
System.out.println("火星 : "+latlng); String[] ll = latlng.split(","); return gdToBd(Double.parseDouble(ll[0]), Double.parseDouble(ll[1])); }
1
71cdf0d8eef703c443eaec0cc81b92aa
855d9202e820ae1e6e5f07f1bff8976f
See https://developers.facebook.com/docs/messenger-platform/reference/handover-protocol/take-thread-control
_message: TransmitInformation, _response: FrontResponse ): Promise<UpdateThreadResponse> { return Promise.resolve({}); }
0
11484ffda9c0b62868b2b886377823f1
137944ee8be660012361afd2f390f276
Sets the animation strength of the game's field effects (weather, etc).
public abstract class World implements IBlockAccess @SideOnly(Side.CLIENT) public void setRainStrength(float p_72894_1_) { this.prevRainingStrength = p_72894_1_; this.rainingStrength = p_72894_1_; }
1
258eca5652a976d698c4bd0623cd7fa3
bf385534d41c5b5c0cfc936b4ff8b0b1
通过大类型Id获得小类型 -----------fj
@Controller @RequestMapping(value = "/platform/typeDictionaryMgr") public class DictionaryController @RequestMapping(value = "/getSmallTypeDicByBigTypeCode", method = RequestMethod.GET) public String getSmallTypeDicByBigTypeCode( @RequestParam String bigTypeCode, Model model) { List<SysplDicSmallType> syspl...
1
aea53970725a2636c56c544faa0aebfb
b33011936ed65b7f01738babb435585f
Get the accepted nicks for a user.
def nicks_connected_with @connection_cache.keys end
0
e4878e6521b5ace50e75d924042a613a
0b69b54c43ba0c20581bf38bf9ea2969
Sets the primitive revision type.
public abstract class DistributedPrimitiveOptions<O extends DistributedPrimitiveOptions<O>> public O withRevisionType(RevisionType revisionType) { this.revisionType = checkNotNull(revisionType); return (O) this; }
1
0e7dfd5e3aa441f7c07a57a9922e2e83
65790d5a8b5ed3468776b41fbb9902b9
Returns screen height value from the camera.
@Dimension(unit = Dimension.PX) fun Context.getScreenHeight(): Int = displayMetrics.heightPixels
0
23d17de1af0a180be2fd11d89023c5d5
2900bbd5683c6baa3e1b78cb15487ec7
Gets the value of the webmailDetailBase property. possible object is {@link String }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "server-debugType", propOrder = { "diagnosticContextDebugMode", "debugMaskCriteria", "server", "listenThreadDebug", "magicThreadDumpEnabled", "magicThreadDumpHost", "magicThreadDumpFile", "magicThreadDumpBackToSocket", "bugReportS...
0
1485ab32dea80b8da26c76ebe06f640b
e58cdb93abdb50e845218788ac5f2e66
create map of classifier name to classifier object
class Builder(object): def classifiers(self): return self._classifiers
0
9c9d9def8ace8fbd826cc8f44c1647ab
d33ac1995363c586a654a31f5ea734a0
Prueba para remplazar las instancias de Facturas asociadas a una instancia de Usuario.
@RunWith(Arquillian.class) public class JuradoVotacionLogicTest @Test public void replaceVotacionsTest() { JuradoEntity entity = data.get(0); List<VotacionEntity> list = votacionsData.subList(1, 3); juradoVotacionsLogic.replaceVotaciones(entity.getId(), list); entity = juradoLogic.ge...
0
a54cc8c49f8e45c9917619b7dd5316f2
976869f9ce30a1b1e2d42467b0d39d5e
Adiciona um Internal Frame de Gerenciar Faixas
{ if(Auth::user()->can('faco-lalin-fin-ksr')) { return view('faco.lalin.createfinksr'); } else { return view('errors.403'); } }
0
dab07e216e5abe20a051f74b7cfb1f4a
d630aa52f77dc0c1f267fca4b4efb6fb
导出生成多个sheet的excel
namespace FileExportHelper public class NPOIHelper public static void ExportToMutilSheet(ExportMultiSheet multiSheet, Stream s, string guid = "") { if (multiSheet == null || multiSheet.ListSheet == null || multiSheet.ListSheet.Count == 0) { throw new ArgumentNullExcep...
1
bc1e3ac77c62d5e47a6a70ccfa42e3f8
ff451887c6e47a91ba3b535f5f0be077
获取当前用户的折扣规则列表
const token = LocalStorageUtil.getUserToken().account_token; let url = HttpClient.URL_USER_DISCOUNT; let param = { account_token: token, region_code: LocalStorageUtil.getRegionCodes() }; this.backData = await this.http.post<Array<UserDiscountList>>(url, pa...
1
e28fe0076140ec6e9ebc009860b48ef6
9abc0b5fc585d393ec2a5fe4acc6ac36
Test case for a_pi_coming_soon_api_key_get
api_key = "0123456789abc36" session = DeconzSession(aiohttp.ClientSession(), HOST, PORT) mock_aioresponse.post( f"http://{HOST}:{PORT}/api", payload=[{"success": {"username": api_key}}], content_type="application/json", status=200, ) assert await session.get_api_key()...
1
4ec9329dba01aa80e51d57648dd3ccb6
b7b3451d5b21652eb06486a5b6f65971
Set the component block ID
class BaseInfoComponent(Component): def setId(self, bid): self.id = bid
1
9bdb3dbdc2999c2e0a8697de98d366c4
c3b695b00b1095295ee75529349e64dc
Takes in the raw html corresponding to rows of players in html table. Returns a clean dictionary of the players for the year in question
player_scores = []; var row_objects = document.querySelectorAll("tr"); var sentinel_string = '<td class="player-name"'; var kept_rows = []; for (var i = 0; i < row_objects.length; ++i) { var row_object = row_objects[i]; var row_html = row_object.innerHTML; if (row_html.indexOf(sentinel_string) != -1) { ke...
1
1d4183bb9f438b7bfc359a82dfdb0020
7f6c6b6242a28d9b803b4ac847d54fb4
A positive integer, ID of the manipulated body.
void setBodyId(String bodyId);
0
cbf9f599b43cccdc6183d8e6dfd6cb46
f7d0096e03a11ebc7c81ee7ab7acc59f
根据职位查找权限
@Service public class PositionService extends BaseService<Position> public List<Position> getByJobId(Long jobId){ return dao.getByJobId(jobId); }
0
38415db0f88eb79d02df2a4e3bb82d5f
2a433f0b72bd1bc919a4208120e0e422
Поиск пересечения отрезков
{ LINESEG u, v; u.s = c; u.e.x = u.s.x - a.y + b.y; u.e.y = u.s.y + a.x - b.x; v.s = b; v.e.x = v.s.x - a.y + c.y; v.e.y = v.s.y + a.x - c.x; return intersection(u, v); }
1
c2f7c73dd6a62098cd752979b27bf17e
54d116d89ffeb4c31840c4e7240724e3
Método que serve para gerar o instante de uma chegada no sistema ou o tempo de serviço, quando a distribuicao é exponencial
double random = PseudorandomNumber.generateNextRandomNumber(true); double x = Math.log(1/random) / lambda; return x; }
1
d7512d0f385701508a8a2f586803f1ac
4665ce4e1583652fb619f2ec8d62ddcc
Check if the local stylesheet exists.
def cyrest_style_exists(name: str, verbose: bool = False) -> bool: r = requests.get(f"{BASE_URL}/styles/{name}", headers=HEADERS) style = r.json() if verbose: print(style) if r.status_code == 200: return True return False
0
78911550f4e09d2cc1d6a8b59d7343b3
159fcf1e4275048cd91a929fd076fc2a
Base directory of ddalserver.
public class PathHelper public static String getDdalServerHome() { return System.getProperty(DDAL_SERVER_HOME); }
1
3c8ee73b49ffa95a0a143cd276ec4a80
3b2f8cfef9163038ca1c14137eb65b11
Check whether an order has been placed against a Package associated with current Item.
[Serializable()] [System.Web.Services.WebService( Namespace = "http://cards.birchcraft.com/", Description = "Some descriptive text could go here.")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class MainInstance : System.Web.Services.WebService [WebMethod] public index_order_items Ge...
1
3160823abb12802f797b8a709b1d510b
e9ee5f9a43954aca92402626ccd8a17c
线程安全懒汉单利
if (singleton == null) { synchronized (singleton) { singleton = new BetterSafeLaySingleton(); } } return singleton; }
1
da52492f1cb797b9ada84f9f2d69a372
1bb531b7a9df74b92222d1be0d517805
iterate over all spectra in the database
class SpectrumLoader(object): def loadSpectrumFromDB(self): pass
0
e1a6c4052c3f6ffb6a82797668ade1dc
ba2dd021abed4b1dd5183f2656b58389
Método que ajusta la fatiga del ciclista de acuerdo a la distancia a la que se encuentre del ciclista que se encuentre adelante.
public class Boat extends Entity{ private void getTired() { tiredness_factor = tiredness_factor - (0.005f * tiredness_factor * Gdx.graphics.getDeltaTime()); }
0
93a199a435132d5210740a81e7489325
3594a6b04fd066ef7ead7cc46f4b71eb
Display history with optional filter pattern
history = History() history.update() if options.get('remove'): history.remove(options['remove']) elif options.get('clear'): history.clear() else: history.print(options.get('n'))
0
13b4eba2c1594b2d6908580845e5a215
8f480ce4941dde42c05278108c33e8db
@brief SPI Transmit Buffer Empty Flag
uint8_t static SPI_GetTXEFlagStatus ( void ) { return ( (SPIx->SR & SPI_SR_TXE) && TRUE); }
1
ec69e1bd83ea635d1b9591ad740e73db
a5e08206025d7c7da281703f1f76ad3e
Adds element to q at the end since q is FIFO
struct queue *enqueue(struct queue *q, int elem) { q->arr[q->size] = elem; q->size = q->size + 1; return q; }
1
da2f97941889cc462ace94d36d8e15c7
22e0111b71cd2895244d7ac5242df11b
部屋番号をソートしたリストを作成する関数
for i in range(4): my_list = [] list = dir_clear_number[i] for j in range(4): my_list.append(list[(j + 4 - i) % 4]) dir_clear_number[i] = my_list return dir_clear_number
0
f4374cd9dc07240eb596a7ad393b5e37
22658c09ab5de69d163a34ebdf4900aa
Returns the summary description for an extension class. The summary is the first paragraph (separated by blank line) of the description taken either from the ``descripton`` attribute of the class, or if that is not present, from the class' docstring.
def extended_summary(func): doc = NumpyDocString(func.__doc__) return "\n".join(doc["Extended Summary"])
0
1be275ea2cca54e8cc8afefdafc227de
3f0ad621a40db9772f42253c1c24cb4e
获取指定日期正常交易的股票
options = "date=%s;sectorid=a001010100000000;field=wind_code,name,start_date,end_date,interval_chg_pct" % (date) result = w.wset("abnormaltrade", options) if result.ErrorCode == 0 and len(result.Data) != 0: df1 = pd.DataFrame(result.Data).T df1.columns = result.Fields ...
0
33c948324ee6b99644d56fc6b7ccc8fd
48e7f5ad83c036ade4c765465c237260
Primitively cut eyebrows out of an eye frame by simply cutting the top ~30% of the frame
beardSize = int(beardSize * 1.5) x1 = int(beardCenter[0,0] - (beardSize/3)) x2 = int(beardCenter[0,0] + (beardSize/3)) y1 = int(beardCenter[0,1] - (beardSize/3)) y2 = int(beardCenter[0,1] + (beardSize/3)) h, w = frame.shape[:2] if x1<0: x1=0 if y1<0: y1=0 if x2>w: x2=w if y2>h: y2=h beardOverlayWidth...
0
d9c9cfab3127c7aec866c3a61c69c1e8
969f2346b835db2f906a7247e42bb6cf
语音合成
result= client.synthesis(text_str,'zh',1,{ 'vol': 15,'per':4,'spd':5 }) if not isinstance(result, dict): with open('auido.mp3', 'wb') as f: f.write(result) os.system('omxplayer auido.mp3')
1
0ff70c6d8ecfe71740de57566e4999e1
501aaa643cc3e27ac90dda536a8aac10
根据列标题 `column_headers` 和行标题 `row_header` 获得文本值。 仅提供行标题 `row_header` 时,将获得其右侧最近的一个字段的文本值。
{ try { for (int col = 0; col < headList.size(); col++) { String head = (String) headList.get(col); if (head.equalsIgnoreCase(colName)) { return book.getText(sheetId, row + 1, col); } } } catch (F1Exception e) { e.printStackTrace(); } return ""; }
0
3da275939f9b77483c12e03164982f70
8069cd5acf9842202a533bbd191872ef
Reassemble data retrieved from XTC file into shape of detector.
file_prefix='scan2D_', ic_name='sclr1_ch4', expand_r=2, internal_path='xrfmap/detsum'): element3d = {} for element_name in element_list: element3d[element_name] = None max_h = 0 max_v = 0 for i, v in enumerate(datalist): filename = ...
0
d723c7dd53b9b9559af29276b7a54c9b
fadd71b3480d81868a444d4b663a9c3d
@brief 상황 변화 보고를 가져온다.
void CmdNetwork::getReport(QDataStream& in) { str::ReportFromOpr Rt; in >> Rt.dateTimeSend; in >> Rt.dateTimeFinish; in >> Rt.idOperator; in >> Rt.statusPerform; emit getReportFrOprSignal(Rt); }
1
1373713b0835184ff8e4c2724cf3ea72
9d901fcd6e99f609dfa25f0ed866d2bb
Creates a new Tile and destroys the previous one
public class EnvGenerator : MonoBehaviour, IHalt void GenerateTile() { var obj = pool.GetObjectFromPool(); Vector3 objPos = obj.transform.position; float lastTileZPos; if (lastTile.transform.childCount > 0) lastTileZPos = lastTile.transform.GetChild(lastTile.transform.chi...
0
7ff35356f2e930906f754f0ec4f91744
7ca15e98052025c60c184abc0a092f19
Asserts the content of the given element matches the given list. If a string in content is enclosed in angle brackets, it's assume to refer to the name of an element; otherwise, it represents text content.
String tagId, String text) { onWebView(withId(webViewId)) .withElement(findElement(Locator.ID, tagId)) .check(webMatches(getText(), containsString(text))); }
0
4a41b1c2deaafdd0a1ccbcebd9762c7b
c00376137377fce457867c449cdd8fb8
分页读取导购顾客的处理函数,该函数被页面展示和ajax处理函数调用。
if (empty ( $this->params ['gid'] )) { $this->ajaxresult ['errCode'] = 41002; $this->ajaxresult ['errMsg'] = '接口参数错误,缺少导购编号!'; exit ( json_encode ( $this->ajaxresult ) ); } $guidecustomermap = array ( 'guide_id' => $this->params ['gid'], ); $customerlist = M ( 'guide_wechat_customer_info' )->wher...
0
fa253467f7eb701a79eaf50a9ec07b01
487adb2125616c13f545ed70781e5045
Parse a single section of an IPv6 address as two bytes
let mut lhs = 0u128; let mut lhs_count = 0; let mut lit = 0u128; let mut lit_count = 0; let mut is_lhs = true; let offset = i; loop { if lhs_count + lit_count >= 8 { return Ok(None); } if is_lhs { if let Some((':', 1)) = get_char(buffer, i)? { i += 1; if lhs_count == 0 { if let Some((':'...
0
160cc6732cc96849a05c0149bedfb1ac
c94921c981f3a18e0867c60a23b51f37
将分块续传的文件释放出来并删除分块续传文件
ResumableUpload resumableUpload = getResumableUpload(token, appId, uploadId).orElseThrow(); String url = getURL(getEndpoint(token, appId, "/files/" + resumableUpload.getFileName() + "?chunk=end&id=" + uploadId)); HttpResponse<String> response = unirestInstance .patch(url) ...
0
49c4ce4a0c81c7193b6c97c891544ab0
d4d65b565c9c06a001684601b14e7da2
表示查询最热的3个标签
function tag(){ $arrTag = aac('tag')->findAll('tag',null,'count_topic desc',null,30); echo '<div class="bbox">'; echo '<h2>热门标签<div class="right"><a href="'.tsUrl('group','tags').'">更多</a></div></h2>'; echo '<div class="bc tags">'; foreach($arrTag as $key=>$item){ echo '<a href="'.tsUrl('group','tag',array('id'=...
1
e70c1323c077fc89368da18d534306de
01473fe6245a91c5b7c45648df6ff037
Sort spectra listing by angles.
def classify_by_spectrum(filename): gset, bset, gnames, bnames = import_endmembers() data, headers = loadPlotASCII(filename) bands = data[:,1] for k, pixel in enumerate(data.T[2:],2): s = headers[k] print filename[:-4], s[s.index(':') + 2:s.index('~')] lowest_g_dif = np.inf ...
0
e9f49b0dba746973063ff7107e012063
b1d6378c3c018cc26c7ad2d8fac176b0
@brief 관리자 회원등급평가방법설정
{ int retVal = 0; ComAuthInUsers _biza = new ComAuthInUsers(); if (_biza.GetOrganUserData()) { foreach (DataRow item in _biza.mUserSeqData.Rows) { try { int userseq = (...
0
81f85d46ec8846dce7b3024645355f55
ddb1412a417fac8741c415b7fb8e8794
水平方向の配置場所を取得します。
{ return BorderHorizontal + HotkeyWidth * (number - 1) + HotkeyRightMargin * (number - 1); }
1
b41c7a5c415f56f4cd578e22483d2373
ae0e3e4f44ef34b4d3c3fab0fe1aba85
Delete the preferences file on disk.
class FilePropertiesHandler(ObjectPropertiesHandler): def delete_properties(self): if os.path.isfile(self.filename): os.remove(self.filename)
1
9b1e5fc0f68576790f797600cad18549
b3a1bb878a7e00d360c7a250706cdc96
GM_WHITETREES_NPC1_AI
function SCR_PRE_GM_WHITETREES_OBJ_ITEM5(self, argObj, argstring, arg1, arg2) if GetZoneName(self) == "mission_whitetrees_56_1" then local x, y, z = GetPos(self) if SCR_POINT_DISTANCE(x,z, -374,-159) <= 300 then return 1 else SendAddOnMsg(self, "NOTICE_Dm_scroll", Scp...
0
7bc1fbdbb632b3fffca0d2e0ccd8a2fb
f142bee9a310b1e29aedeb59c38c9127
根据id获取数据pmsRole
@Repository public class SysRoleResDao{ public SysRoleRes getById(Long id) { return (SysRoleRes) mapper.getById(id); }
0
32dfef02699b2dafa8b790c56659508f
f3513d33e5f84d0a7a2383afb58130a6
获取某个位置的对手位置
{ int x = pos % 8; int y = pos / 8; List<int> get_stones_ = new List<int>(); for (int i = 0; i < 8; ++i) { bool can = false; List<int> new_pos = new List<int>(); int j = 1; while (!can) ...
0
0a050556c8de5a1019a27f02e4a987b0
301ce8721e00c098ba48945cbbb9cac2
Gets the valid url provider.
public function getProviderUrl();
1
757fdbdc813bc1e1fe96392c6e7ff490
5ee869cddaa6cc434a0c389a2ff91e53
Функция добавления очередного размера в массив размеров массивов (работает через insertion sort)
{ int i; for (i = 1; i < size; i++) arr[i] += arr[i - 1]; return 0; }
0
5a2e53412706380f356889e4135ce46f
907d322556115dc3379d0dd1354af711
# Affiche les conditions générales d'utilisation
function display_disclaimer() { global $CONFIG, $PHP_SELF; global $lang_register_disclamer, $lang_register_php; starttable(-1, $lang_register_php['term_cond']); echo <<<EOT <form method="post" action="$PHP_SELF"> <tr> <td class="tableb" style="padding: 10px;"> EOT; ec...
1
a2359353e4bac1903779986f29b6daec
720e7ad645f3bab95a1976bbda989577
Setter for <code>cbis.users.nation</code>. 民族
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CustomerUpdate", propOrder = { "customerNo", "isrDate", "isrPuchDate", "newNetworkPartner", "oldNetworkPartner", "zone", "alternateEmailId", "alternateNumber", "authorizedSignatoryName", "bankAccountNo", "bankAccountType"...
0
b2e1c59356d2aef213f803f6f80bd7c2
d3e43f7c7221ce712752ed9f1925c768
Generates a 9-slice scaled image from a given image in the given dimensions. (@see <a href="https://en.wikipedia.org/wiki/9-slice_scaling">9-slice scaling</a>).
public class ImageManager public Optional<Image> getImage(String imageName, int scaleToWidth, int scaleToHeight) { return getImage(imageName, Optional.of(scaleToWidth), Optional.of(scaleToHeight)); }
0
fa0216c55d19aabc45dd5bfd58459f7b
917b48573c057df6f03732051d43e180
Récupère les déchets en base de donnée compris entre une plage de timestamp dans l'ordre chronologique
@Dao interface ProductDao @Query("SELECT * FROM WasteReportEntity WHERE creation_date >= :date") fun getWasteReportProducts(date: Long): Single<List<WasteReportEntity>>
0
763f75ee9cfa5e0871a8c1820cd9acb0
4c4ac109ef06e09754c994e6ff0ee63d
双指针同时遍历链表A+链表B,找到交点
ListNode node1 = headA, node2 = headB; while (node1 != node2) { node1 = node1 != null ? node1.next : headB; node2 = node2 != null ? node2.next : headA; } return node1; }
1
3bc48fee8ab228bbe9ddce45856140b4
2e8e8b7de0470e7cfd909b72514081a7
current_userに投稿がブックマークされているか確認
class MicropostsController def if_currect_user @micropost = current_user.microposts.find_by_id(params[:id]) redirect_to root_path if @micropost.nil? end
0
1201847714babf1e7c1580b939bcc17b
9f31b0e2063314ed0b7f9c3640b6274b
Link the step to a case.
class CaseLineFollow: def exec(self, caseId): if self.caseLine is not None: return self.caseLine.exec(caseId) return False
0
ee1189d671e96364c9e35af46c0c907e
ef80338938f58c601b9e987a09d1b2e9
Function to change audio settings, such as EQ.
def sound_control(): pass
0
72093c124dd4697aabeef5a28b975e1e
eff85c6af729b1bd7454e1d61635453c
Templates a dockerfile.
{ try { $composerFile = $filesystem->read('composer.json'); } catch (FileNotFoundException $e) { return $this->failed('File `composer.json` not found in the repository'); } $composer = @json_decode($composerFile, true); if (empty($composer)) { ...
1
62d4c50b703ce47ca26aa1a31cc61570
667e954ed4f27eafc2249cf24b4aba45
Tests with no token name.
self.ts.token = None self.assertEquals(self.ts.get_projects(), [{self.ts.error: "Not authenticated with TimeSync, " "call self.authenticate() first"}])
1
4d771d4bc73f54ab66e47ddb09255580
f031fed0b7acc4338b121ce844a6e648
Tests LinkedAbstractList.size()
public class LinkedListTest extends TestCase public void testSize() { assertEquals(0, emptyListA.size()); assertEquals(3, smallListA.size()); assertEquals(100, bigListA.size()); }
1
0baca6bf9094eddac4dc3189cd9f740d
05e105cc37c1ff7a345eb307354bd208
problem 119 https://leetcode-cn.com/problems/pascals-triangle-ii 给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。 在杨辉三角中,每个数是它左上方和右上方的数的和。 进阶: 你可以优化你的算法到 O(k) 空间复杂度吗?
tree := [][]int{} for i := 0; i <= rowIndex; i++ { t := []int{} for j := 0; j <= i; j++ { if j == 0 || j == i { t = append(t, 1) } else { t = append(t, tree[i-1][j-1]+tree[i-1][j]) } } tree = append(tree, t) } return tree[rowIndex] }
1
d02618fbc5a87d26fe7540444a0ce86f
5d88c8654f91c5d5d926171907ca5aae
Converts the variable to the node
function instantiateNode() { return new VariableNode(this.__.name, this.__.parent); }
1
407951a64a928f1e910f9c8a201083d0
07056db6bcac923a858f34f58dd7ba85
Returns an unmodifiable list of entities in the area that specified in the filter parameter using the given predicate. If the parameter filter is empty this method will return an empty list.
List<E> findEntities(AppRequest ar, Orderby orderby, PropertyFilter... filters);
0
44532cdadbbdb75b4cbef530e590fc08
09fb18d0e3356c1144bb3bd7ebcbc412
Check to see if PricingUnit property is set
namespace Amazon.EC2.Model public partial class CreateReservedInstancesListingRequest : AmazonEC2Request internal bool IsSetPriceSchedules() { return this._priceSchedules != null && this._priceSchedules.Count > 0; }
0