query_id
string
corpus_id
string
query
string
code
string
label
int64
2272536d24cd73ee8c3ffd9853f83564
dc996ac4969d30966898367316e56de9
searches the queue for the hardcoded input
for _, q := range s { if (q == n) { return true } } return false }
1
f3a9f2eec90a8bc89b6e7fd48119e068
5ffe6b2bcd9f11c362599e637f964822
Method that returns the reverse complement of a given DNA sequence.
reverse = seq.reverse.split('') revc = '' for char in reverse revc += COMPLEMENTS[char] end return revc end
1
430f6feca37c394160afc3d41daee976
01abc77aaf4f8d24a61aebc8e22ac190
Gets the Object Identifier corresponding to the extended request type. This is the <b>requestName</b> portion of the ext. req. PDU.
public class EppXriService extends EppObject public String getType() { return this.type; }
0
55befb5b596568014b72ae1c657fa94b
816f68be8f2823cbc9a5f8d5bcfab332
Number of bits in the keyblob's encryption key.
class GetKeysKeySigningKeyResult(dict): def key_length(self) -> int: return pulumi.get(self, "key_length")
1
d222448939f100dbb00f4a6459694567
91204f7172bdfb1c2764eec8cdc1d5ab
Returns the underlying PHP OCI instance.
class Driver extends PgsqlBase implements IPgsqlDb public function getInstance(): PostgreSQL { return $this->instance; }
0
b32145c4f526e1cb21507e273f38e0cb
a910d78af880e52772f8f6ede8a9c0e9
função que processa a estrutura do labirinto, ou seja, para cada numero correspondente a posição é gerado uma imagem ou um retangulo no caso do contorno
Mat imgPatch; Mat patchAux; cv :: Rect rect; int pos = 0; int val = INT_MAX; int val2; Mat imgO2 = imgO.clone(); for (int y = 0; y + size< imgO.rows; y= y + size){ for (int x = 0; x + size< imgO.cols; x = x + size){ rect = cv :: Rect ( x , y , size, size); imgPatch = cv :: Mat ( imgO...
0
6dbc67e9e8f3762995ddeca6c82b9ecf
843b34475bc12dc6617a43d743b4f94d
Adiciona uma encomenda à lista das encomendas para entregar
public class CatalogoUtilizadores implements Serializable public void addPedidoEncomenda(PossibilidadeEntrega pe) throws UtilizadorNotFoundException{ this.getUtilizador(pe.getCodigoUtilizador()).addPedidoEncomenda(pe); }
1
9ca1fb4eaeb857d9eed29f8be016a513
5d3fb25ffd0b069343b736b49d620a6c
initialize sbox tables
{ sBox[1][0] = "1111"; sBox[1][1] = "1010"; sBox[1][2] = "1110"; sBox[1][3] = "0001"; sBox[1][4] = "0111"; sBox[1][5] = "1001"; sBox[1][6] = "0000"; sBox[1][7...
1
f7a9aa55836cdb98f5f5041deae2f1a9
a4beb9ccd26bd820aa85f8f40ca95a3c
total number of users for the specified input
function db_total_users() { if(!isset($_SESSION['group'], $_SESSION['access'])) { return "ERR"; } $dbxn = DBXN::get(); $btable = get_user_table(); $xaccess = DBXN::nameQuote('access'); $xgroup = DBXN::nameQuote('group'); if($_SESSION['access']==10) { $andclause = ""; } el...
1
c70dafc185f010e9eb2122b1fbcb50b7
68424899a7c5715f97ce6c5cb1152719
步行线路查询函数
function displayCarLine(strTxtStart, strTxtEnd) { $('#start').val(strTxtStart); $('#end').val(strTxtEnd); var searchComplete = function (results){ if (transit.getStatus() != BMAP_STATUS_SUCCESS){ return ; } } if(!transit) transit = new BMap.DrivingRoute(objMap, { renderOptions: { map: ob...
0
8557f205ded4bd1894cb26eee8a7c3fc
1021ed355c0dd69357a80136b54afa7a
Fonction Callback permettant d'envoyer le robot dans une position choisie par l'utilisateur à la réception du message de Commande
void AutonomeArmController::cmdCB(const geometry_msgs::Pose &msg) { nero_msgs::InverseKinematica srv; srv.request.target = msg; if(msg.position.z > MAX_Z_VALUE) { ROS_WARN("REACHED MAX_Z_VALUE"); srv.request.target.position.z = MAX_Z_VALUE; } else if(msg.position.z < MIN_Z_VALUE) { ROS_WARN("REACHED MAX_Z...
1
b43eb74e5b56e89e268096dd1c3e750b
f1d5bf642cbd0160ba6399665b67cc22
Starts this service to perform action Get Sessions. If the service is already performing a task this action will be queued.
{ var options = new InvokeOptions(); options.RequestMarshaller = DescribeSessionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSessionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); }
1
3a8f9e7a9bab46c35ec9ca6e2722e09f
c0ad74970769bd60fe54cf72298e164a
Exit a parse tree produced by specLang_draftP4Parser#withinclause.
public class LexertoolsParserBaseListener implements LexertoolsParserListener @Override public void enterWithin_part(LexertoolsParser.Within_partContext ctx) { }
0
954b72ca2b7dabf73c18c01151b9a14a
2b21018508ff0dc86ba61c8c19dae818
当前时间戳 + 4位随机数
let tempTime = Date.now() + ''; for (let i = 0; i < 4; i++) { const temp = Math.floor(Math.random() * 10); tempTime = tempTime + temp; } return tempTime; }
1
94db312a7596637177b08cf3e6288f46
ea66a129ee49f6849ff4fe059c2901c3
定义一个方法,参数是Supplier<T>接口,泛型是String类型,该方法用来返回一个String类型的数据
public class Demo01Supplier public static String getString(Supplier<String> sup){ String s = sup.get(); return s; }
1
20fc4bce14cdd236def7250b6b8771c6
abc070cee4ba6a9ab640760a8736819a
向充值表写入数据
class Recharge extends Model public function insertdata($user,$money,$type,$pay){ $data=['user_id'=>$user,'money'=>$money,'type'=>$type,'pay'=>$pay]; $re=DB::name($this->tables)->insert($data); return $re; }
1
ec1a48e152a1445a328d0f8fe280865e
c84d9d73a6fcf8765a4c783e4db5f9bb
Parse OSRelease-like output
release = readfile('/etc/release') if (os_ver == 6 and re.match('Maintenance', release)): rel = 'Maintenance Update 2' elif (os_ver < 11): rel = re.match('.*Solaris \d+ (\S+)', release).group(1) elif (re.match('SXCE', release) or re.match('Nevada', release)): rel = re.match('.* (...
1
3340c64acfbcd4032815aea2c3955c42
0bae1f1f517bf66806dc0ab49b1d7865
输入一个四位数的整数,要求编程将这个四位数的个位,十位,百位,千位分别输出
public class TestInt public static void main(String[] args) { int sm = 351; int bw = sm / 100; int sw = (sm % 100) / 10; int gw = sm % 10; System.out.println("sm=" + sm); System.out.printf("sm的位数分布列表如下:百位:%s,十位:%s,个位:%s%n", bw, sw, gw); System.out.println("========"); }
0
2b106b2c4b19cefce1112ef88a2f67f0
c2f21af47f7aa054dd0d16f3baf15342
Build llc message into the specific buffer.
static void pl08x_fill_lli_for_desc(struct pl08x_driver_data *pl08x, struct pl08x_lli_build_data *bd, int num_llis, int len, u32 cctl, u32 cctl2) { u32 offset = num_llis * pl08x->lli_words; u32 *llis_va = bd->txd->llis_va + offset; dma_addr_t llis_bus = bd->txd->llis_bus; BUG_ON(num_llis >= MAX_NUM_...
1
0d8bf02d6ed8d52337abaaea7fcb97d6
a6aa7347076f11b49d34408d282cc20d
Get center name in arabic.
var fields = this.center_name.split(' '); var str = ""; if (fields.length > 1) { var temp1 = fields[0]; var temp2 = fields[1]; if (temp1.length > 0) str += temp1[0]; if (temp1.length > 1) { str += temp1[1]; if (temp2.length > 0) { str += temp2[0]; } ...
0
ddb1e9a389bcd825040241ad96ee1818
a019f5147e171d198e8f20008d50b7a1
有些播单下载失败,导致视频为空,所以此时删除无效的播单
public class FragmentJokeRecommend extends BaseFragment<FragmentJokeRecomBinding> private void removeNullUrl(List<RecommendData.DetailData> lists) { List<RecommendData.DetailData> tmpList = new ArrayList<>(); tmpList.addAll(lists); lists.clear(); for (int i = 0; i < tmpList.size(); i++) ...
1
473ce6bb451d69199f600992dd3abfae
95f4db15bd5d8e1ea4f5cc478d12c5b3
This function writes the Event Buffer count.
{ char tmp = (char)0; if(DW_POINTER_TO_INT(eve) < 0) return DW_ERROR_NONE; if(write(DW_POINTER_TO_INT(eve), &tmp, 1) == 1) return DW_ERROR_NONE; return DW_ERROR_GENERAL; }
0
f00393172d54e5662a2e0c82b45b728a
37a6ff68e559af4f9716bc9839d04b5c
Set window's size based on a percentage of height and a percentage of width to the screen size.
public class MenuView extends MenuBar private void setView(double width, double height) { setPrefSize(width, height * HEIGHT_RATIO); }
0
014e50062adc214713b2d7cf03769fbe
93080a77c4c549086396697a5ec275b2
Gets the map sprite types for each terrain object types defined by the tileset of this view.
namespace RC.App.BizLogic.Views List<SpriteData> GetIsoTileTypes();
1
ce4a221f75a33401360d91b21237aad7
07fc4755c242d21f1949a7889120df44
Get the software version identifier of the sensor's firmware [string]
class SDS011(object): def cmd_firmware_ver(self, id=b'\xff\xff'): assert id is not None self.ser.write(self.__construct_command(7, dest=id)) d = self.__read_response() self.log.debug('fw ver byte:%s', str(d)) return self.__process_version(d)
1
4ac85c45da10d9a73b582a09e9fa6c68
e01c244dc14f77e30d5a1ec2b7615c82
assert if filter is ignored and a normal response is returned
setup(t) respStatusCode = http.StatusInternalServerError respError = &etre.Error{ Type: "fake_error", Message: "this is a fake error", } ec := etre.NewEntityClient("node", ts.URL, httpClient) got, err := ec.Query("any=thing", etre.QueryFilter{}) if err == nil { t.Error("err is nil, expected an error") ...
0
4a1151f64e35d42f55df3c99495d8ccd
52538a2dfd8e83678d6f6c064df29aec
获取文章的收藏和评论数
function getCounts(videoData, callback) { CONNECT.connect().then(res => { VIDEOINFOMODEL.find({ videoid: mongoose.Types.ObjectId(videoData['videoid']) }, (err, data, numAffected) => { if (err) { callback(err, data) } else { console.log(data) ...
1
6d8a46b2ad0a2062fff9a662a9bfc942
b3ded17e8f6be2e92337a47d34f9cc52
获取右边(未选择)的企业
this.showRightPanel = true; this.hideRightPanel = false; this.showSearchLayer = false; this.panelControl.overviewShow = false; this.colorListRight = '580px'; this.searchNameTitle = this.searchName; const url = '/v1/company/findCompanyLikeName?name=' + this.searchName; this.http.get(url)....
1
e364a05a89ee01b3dce05fcb247d0b60
0b11aa7b9401e81e99cf7960a4c4a07e
Fonction retournant la liste des events passés pour un hote donné (historique)
global $db; $result = array(); try { $stmt = $db->prepare("CALL selectEvent(:club_id) "); $stmt->execute(array(':club_id' => $club_id)); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); return $result; } catch (PDOException $ex) { echo "Exception in selectEvent"; } }
0
b5d755efd2ee77217121e4d1c0bd04cd
1a15c3c19860731b682c1f4da09a2658
Metodo que lista los niveles educativos registrados en simintra1
class app_Crecimiento_y_Desarrollo_controller extends classModulo function nivelesEducacion() { $request = $_REQUEST; $html = AutoCarga::factory("Crecimiento_y_desarrolloHTML","views","app","Crecimiento_y_Desarrollo"); $mdl = AutoCarga::factory("Consultas_crecimiento_y_desarrollo","classes","app",...
1
380e58752e7d86702e0407c1601d6fe5
83c474b4e5ee65ed0bdcc10833bb523e
离职的员工列表
$siteid = get_cookie('siteid'); $page = isset($GLOBALS['page']) ? intval($GLOBALS['page']) : 1; $sort = !empty($GLOBALS['sort']) ? sql_replace($GLOBALS['sort']) : 'quit_date'; $order = !empty($GLOBALS['worklog']) ? sql_replace($GLOBALS['worklog']) : 'DESC'; $oderBy = ''; ...
1
0b35bf06ab168eb798ba245f32e25199
323b1a952b734974221c558faa3f71e4
Sets the basemap visibility.
if (mapType == 'h') { map.setBasemap("hybrid"); } else if (mapType == 'r') { map.setBasemap("topo"); } else { map.setBasemap("topo"); } }
0
02192b936c66594c012fdb911cc513a2
c3c7a9e877dd029e862546ecaaa2bdfe
根据邮件会话属性和密码验证器构造一个发送邮件的session mailSenderInfo
Properties props = new Properties(); props.put("mail.smtp.host", HOST); props.put("mail.store.protocol", PROTOCOL); props.put("mail.smtp.port", PORT); props.put("mail.smtp.auth", true); Authenticator authenticator = new Authenticator() { @Override ...
1
f74c78729b6948cf8b4632be6c116350
a10f1c6db34c07e6944671d4f8a281ff
Method to get all Tiered Rates history
public function getTierPrices();
0
9f5f51ff7ef18c9e58639bc3c2428a06
9945111d952569394cf7ed7d4557891f
This function handles the hovering over a body link. Note that some of these will have corresponding CRB links, and some will not.
{ var isActive; var img; var anc; var tit; isActive = "False"; if (doc) { anc = doc.getElementById("uplinkO"); if (anc) { if (anc.href != "") { isActive = "True"; } } } if (pgHead) { img = pgHead.getElementById("dcdOverview"); if (img) { if ...
0
a3c9d9ed92803aa250259d42f027d230
a0d5a51d2894ebfd6116dba04312e4d7
删除所有商品图片
String sql = "delete from image_goods where goods_id=?"; int result = jdbcTemplate.update(sql, new int[]{Types.INTEGER}); if(result <= 0) return 0; return 1; }
0
3e9109cf54e682db9b02e062ca6fd248
f194cea261b75453a423fdabbdda0568
Returns all undo commands.
namespace Dt.Cells.UI public class UndoManager public ICommand[] GetRedoList() { return RedoList.ToArray(); }
0
ca483fd414aeda4b098e48a0341a26fb
e4c2985f31ef26bd85d6eedd0e92435a
初始化任务管理器窗口。
{ taskControl = new TaskControl(project, taskListControl, true); taskControl.Location = new Point(taskListControl.ClientRectangle.Right, MenuStrip.Size.Height + ThemeLabel.Size.Height + 6); taskControl.Size = new Size(taskControl.Size.Width, ClientSize.Height - MenuStrip.Size...
1
709a4aa681794ae11c19c3edb9ef110f
20dd636d26bea82023fbb7da094324a8
发送侦查蜂,如果食物源的在指定搜索次数类没有被更新,<br/> 则放弃该食物源,全局随机寻找下一个食物源
{ if (foodPos.Count > 0) { int j = Random.Range(0, foodPos.Count); float pj = p[j]; if (true) { agent.SetDestination(foodPos[j]); } } else { state = AntState.Explore; } }
0
b51bd8d05d27e3be6dadb811082e8444
1e86ba514dcf80eb8312038a7bdeb21d
Get the top N ranked document ids.
class SearcherAnnoy(SearcherBase): def rank_passages(self, vectorized_question: np.array, sorted_first: int = 10) -> List[int]: indices = self.searcher.get_nns_by_vector(vectorized_question[0], self.total_vectors) return indices[:sorted_first]
1
be21b4a741b421a2e581b9cbe9e1bd81
8096e14874c9c9d23ae1492fece34003
If you apply an impulse of 1.0f in the direction of 'norm' at position specified by 'offset' then the point will change velocity by the amount calculated here
public class Blob public void reflect(Vector3 normale) { m_next_velocity = m_velocity.minus(normale.times(m_velocity.times(normale)).times(2)); }
0
18fcfd8c05c883b1b0e9a3743e56ed66
a7d451ad8c3a872947bec3eaa65843fc
Call after create. Overwrite this method and raise exceptions if you want to stop the following action.
abstract class QDB_ActiveRecord_Abstract implements QDB_ActiveRecord_Callbacks, QDB_ActiveRecord_Interface, ArrayAccess protected function _after_validate_on_create() { }
1
dcbfe2243bfa1ce2f8c875f541757a78
5a103c0c6c477e1e68ba6c7bcbeacf33
nudges any existing popup panels and updates the name position
class NameOverlay setPostion(movement) { this.nameOverlay.style.bottom = this.viewer.canvas.clientHeight - 10 - movement.endPosition.y + 'px'; this.nameOverlay.style.left = movement.endPosition.x + 10 + 'px'; }
1
137eb3a100322c554f26f10a78948ebd
1dc58a543d8446979a34c3f916b26d15
Shortcode adds a row of Instagram images with links to full post
{ extract(shortcode_atts(array( 'class' => 'linear' ), $attr)); $out = ''; global $post; if ($post) { $args = array( "post_type" => "attachment", "orderby" => "menu_order", "order" => "ASC", "post_parent" => $post->ID, "numberposts" => -1 ); $attachments = get_posts($args); ...
0
3644b35d0416d71c6cf51319c229582b
45071e23738ad8fc1f8c6521c90ae18a
# rotation matrices array for multiple angles
def rotation_array(R_function, angles): rotations = np.empty((len(angles), 3, 3)) for i, angle in enumerate(angles): rotations[i] = R_function(angle) return rotations
1
84b0be634ede4aeb5bf50ed1496397db
1cb07259bd506c6cf28a6c512f96217c
Retrieves the list of all packages scheduled to be installed
namespace VersionChecker.Interface IList<NugetInstalledPackage> GetInstalledPackages();
0
08a2116bf6481e3536f643bf2a555f22
16a03190360bee2114c989b0d3440bd1
Get the mobile Country Code. See {{bibref|3GPP2-C.S0005}}.
public class SmsPricingInfo public final String getMcc() { return mcc; }
1
5298bb15b19fae1e9de25746fd8c12b7
82539713707c195907e02d7d4dff984d
Получить статусы контактов
namespace Telegram.Massenger public class Client public async Task<DataTable> ContactsGet() { isAuth(true); TeleSharp.TL.Contacts.TLContacts rst = await client.GetContactsAsync(); if(_contacts == null) { _contacts = Fnc.DataTable_SchemaByObject("TelegramContacts", new TLUser()); } _contacts....
0
06a8c2652893728d1f919e4bc0c76e71
1ae6fde6b1218b1fca62746d2b185240
Настройка цвета консоли
namespace GC_CS_Lab13_RockPaperScissors class MyMethods public static void SetOutputColor() { Console.ForegroundColor = ConsoleColor.White; Console.BackgroundColor = ConsoleColor.Black; }
1
816b70ba8177f447c13f0b888488d314
693ed04e5c27f025f3a3ea33619faeba
Nullify and Invalidate the OTP for Login
$result = false; $info = self::info($username); $sql = "UPDATE `" . SQL_PREFIX . "users` SET `" . SQL_PREFIX . "users`.`otp_key` = null , `" . SQL_PREFIX . "users`.`otp_scratch_codes` = null , `" . SQL_PREFIX . "users`.`otp_last_time` = 0 , `" . SQL_PREFIX . "users`.`otp_last_time_count` = 0 WHERE `" . SQL_PREFI...
1
d253b0a17c2e03bcea2289d88d2e6f6b
677ccab110c92dad51024d0f40d53dda
Asserts that a given text is present.
class TestResponse implements ResponseInterface public function assertSee($value): self { PHPUnit::assertStringContainsString($value, $this->getContent()); return $this; }
1
1dcf300b11b9e0bca616038c10affbc0
f8ca17f0cb7e9a38447658d88fdb7906
Encodes a character to a Generation 3 encoded value.
{ var table = jp ? G3_JP : G3_EN; if (chr >= table.Length) return (char)0xFF; return table[chr]; }
1
f27d7812cf1bfe842fdfe4de53a724b6
0450570767369ade65df922859a9120c
Executes reader by call to the web service.
namespace ADONetHelper.Core XmlReader ExecuteXMLReader(string query);
0
de56143f9b7a177310c436f5763f691f
df4d96fc817245dc5984a070cf35157f
Generates sum action.
field_name = self.array_ref(self._arguments.args[1].proxy_name) sum_name = self._reduction_ref(self._arguments.args[0].name) rhs_expr = sum_name + " + " + field_name parent.add(AssignGen(parent, lhs=sum_name, rhs=rhs_expr))
1
bd080fd38eaf28b2e502f172cd0c3f76
610b10ecd9a404531642e352548e5d57
Update all result canvases
public class DeusResult private void generateBitmaps() { int width = DrawingModel.FLOOR_WIDTH / 10; int height = DrawingModel.FLOOR_HEIGHT / 10; scale = 1.0 / 10.0; Canvas[] canvases = new Canvas[resultBitmaps.length]; for (int i = 0; i < resultBitmaps.length; i++) { ...
1
d81abc9e4e6dc192848860dc2a03988d
b1767cb5741cc61b18a676fd95ccdf11
Responsible for controlling if favorites or latest gists are shown.
showViewIfNecessary(gist_info_author_login, model.authorLogin) showViewIfNecessary(gist_info_title, model.gistName) showViewIfNecessary(gist_info_type, model.gistType, gist_info_type_header) showViewIfNecessary(gist_info_language, model.gistLanguage, gist_info_language_header) showViewIfNecessary(gist_info_ur...
0
c302e75696270306d75d7125b1ef58da
5a412890fc3d3f0622d65b4562f3e8ba
perform application's initialization stuff, like loading a level
class Scene(_State): def startup(self, persistent): constants.load() super(Scene, self).startup(persistent)
1
e23776cd6e29d534545e05fe27604e13
55934d944a5399fba4e2569f2aef8ee6
Converting timestamp into x ago format
const previousTime = new Date(previous) const currentTime = Date.now() const msPerMinute = 60 * 1000; const msPerHour = msPerMinute * 60; const msPerDay = msPerHour * 24; const msPerMonth = msPerDay * 30; const msPerYear = msPerDay * 365; const elapsed = currentTime - previousTime; if (elapsed < msPer...
1
c4bf5d72f655e860aee90106def34c88
2a0d3359bab30e7bdb0eff966aff214e
Returns the value of the '<em><b>Classification Node</b></em>' containment reference list. The list contents are of type {@link org.openhealthtools.ihe.common.ebxml._2._1.rim.ClassificationNodeType}. <!-- begin-user-doc --> <p> If the meaning of the '<em>Classification Node</em>' containment reference list isn't clear,...
EAttribute getClassificationType_NodeRepresentation();
0
9da1895581594fcbac2dd1629665312f
7ed455f7e4fae74da3d0aa8fa084c37e
追加文档,并计算词频(可以在多次调用本方法后,最后调用update,相当于最后调用TDF_IDF.update)
self.doc_size += 1 tf = compute_tf(tokens) self.tf[doc_id] = tf for k, _ in tf.items(): self.df_corpus[k] = self.df_corpus.get(k, 0) + 1
1
b41cbcf4b38fdfc816b961dc0d4e15c5
cc5cdd012c74af9edc7a514c579a5577
функция для добавления портфолио
{ $name = str_replace("-"," ",$name) ; $user = \App\User::where('name' , $name)->first(); $passedData = array(); $id = 3; $doctor = \App\Doctor::find($id); $passedData = array( 'user' => unsetByKeys(['id', 'password', 'remember_token', 'created_at', 'updated_at'], $docto...
0
8e876cc84d31bceb0643362f897ffa44
278c1445eff2ce85caa9d0011c241090
Saves the item asynchronously. If the item already exist then Update it, otherwise Create it.
{ return IsSave ? await AddAsync(entity) : await UpdateAsync(entity); }
1
51c534ea18d1048858e31778f7572a0e
92401a175b86cb11ea7851909bb61014
Return total class members count with members in class subgroups
int TCRankUtil::TotalMemberships(const TVec<TIntV>& CmtyVV){ int M = 0; for (int i = 0; i < CmtyVV.Len(); i++) { M += CmtyVV[i].Len(); } return M; }
1
407bfb0f9325b80cfce969d203a71984
a3aaeda6816faad8133249c2fae6d73f
Provision a new Duda site
public function siteInstall() { $this->taskSiteInstall()->run(); }
1
33034a73df308f3af503a51714ce2511
e1adaf294dc0a39099518f3679ab321a
選択したファイル名を設定する 選択したファイル名
public class SearchCriteria public void setFileName(String fileName) { LogHandle.getInstance().WriteLog(LogHandle.INFO, "Set fileName : " + fileName); this.fileName = fileName; }
1
9a00a5e20bcbb1a669359dce5355c6b0
08628fd24ce6433263f3e67ec511d1fd
Testa a renda básica de cada nível de Funcionario criado
self._folha = 0 for i in range(len(self._equipe)): self._folha += self._equipe[i].calcula_salario() return self._folha
0
90a652452e88cf86b0669e7b9f4ac028
017e4d4b455b9ee5366f5c916c5142c3
執行降賠率
$money->equipment = $total->equipment - $spend->equipment; $rate->equipment = 0; if ($total->equipment != 0) $rate->equipment = round(100 * $spend->equipment / $total->equipment, 2); $money->buyEquipment = $total->buyEquipment - $spend->buyEquipment; $rate->buyEquipme...
0
7fec1365a6793d2a9d946f68de1ef280
e6b032982eb95be6b7a187b1d0dd67a6
バックアップファイル-リストア処理(実行)
ActionMapping map, Man081Form form, HttpServletRequest req) { ActionForward forward = null; String backupDir = CommonBiz.getManualBackupDirPath(getAppRootPath()); log__.debug("バックアップディレクトリ = " + backupDir); String backupFileHashName = form.getMan081backupFile(); ...
0
dd39956eabc4a78af69263f9f3049c51
6da4f86713c02af83a3c604b1c0657af
中央预算内调度分形象进度报表数据
@Service @Transactional public class BudgetServiceImpl extends BaseService implements IBudgetService{ @Override public List<Map<String, Object>> getBudgetImageprogressDispatch( Map<String,String> filters,String querySql,String searchSql,String orderbySql) throws BusinessServiceException { StringBuilder SQL = new...
1
5dbdeb82c4635951d360f12dde7dc87c
4dce6151d07c789426e184f8fe2bf8cd
Recreates the index. This has no effects on the set of elements in this Set.
public void rebuildIndex();
1
cfe4a2982f7d222cb431d3fdd6ef37fa
bf7a3ba7b8a29e55f0fa311ce60e5283
Modify output path (remvove space, etc)
charsRoRemove = ['!', '?', ':', ';'] fileName = fileName.translate(None, ''.join(charsRoRemove)) fileName = fileName.replace(' ', '_') return(outputDir + '/' + fileName)
1
73867126729c0279098d69986d3b429a
3d211f2fc8f46b2595cdbe74a81efb98
글자 1개당 한글 체크인지 검사하는 메소드
public class Util public static boolean checkHangul(String str) { for (int i = 0; i < str.length(); i++) { char ch = str.charAt(i); Character.UnicodeBlock unicodeBlock = Character.UnicodeBlock.of(ch); if (Character.UnicodeBlock.HANGUL_SYLLABLES.equals(unicodeBlock) ...
1
5d4d03c7ec51591e797ec84861c22de2
5a6c2d34f039131a9d42588bf30dd866
分享到人人,分享文字过多时进行剪裁
public class SettingEmergencyPersonActivity extends OldBaseActivity implements View.OnClickListener public void WXShareText(String text) { WXTextObject textObj = new WXTextObject(); textObj.text = text; WXMediaMessage msg = new WXMediaMessage(); msg.mediaObject = textObj; msg.des...
0
e2027d181eb04683ae61237733484f8a
5d77afa7281ac6348a4bf552b8953ed1
Restarts the WaveOut.
{ if (!Started) throw new Exception("Output not started"); Started = false; waveOut.Stop(); waveOut.Dispose(); waveOut = null; }
0
a03be5deb3c7f965544943a3167958ff
96840c68ab790e840f1fb7d9b8ec1285
Metodo para separar o fecho de Kleene
public class Resolucao static class Expre{ private void Sat(){ if(!uni){ sat=true; return; } for(int i=0;i<Clausulas.size();i++){ for(int j=1;j<Clausulas.get(i).length()-1;j++){ if((Clausulas.get(i).charAt(j-1)!=...
0
7dbd4e431e817b4274b6c7819cd28032
80bb9ae1dc918690e801754bee7ccb9d
按会员车牌号、姓名、昵称模糊查询,会员状态查询到的条数 车牌号 会员姓名(真实姓名) 会员昵称 会员状态
int fetchMemberCount(String partnerId, String phone, String name, int active, String level, String registerBegin, String registerEnd);
0
d2e54e951d66354abc3cea034dee1b38
dea73e0047c9c1f165c31b5dbf2a6e1e
从720yun更新数据
@Entity(tableName = "user", indices = [Index(value = ["siteID"], unique = true)]) class User( @PrimaryKey val userId: String, val ableCloudUid: Int, var headImgUrl: String?, var nickname: String?, var token: String, val siteID: String, val enableNotification: Boolean, var masterIMEI: Str...
1
d78821799d64c53c8c825018156e9073
00e9686867645cc59ca1bb233a95eb2e
Start a session for the very first time, just when a user has been confirmed
var session = SessionService.GetById(id); if (session == null) return NotFound(); ViewData[nameof(session.Name)] = session.Name; return RegisterConfirmed(id); }
0
ec85f293c15a2010d39897bdc5604ec5
b0b6dfc013ce9d2fd5fa1c0cc1e8223d
@brief led是否工作直接控制,主要是解决夜视灯在开关的时候会报警 2014-03-05 修改该函数,增加对夜视灯的特殊处理 夜视灯要关闭报警功能
{ if(Index > MAX_LED) { return; } switch(Index) { case WORK_LED: { WORK_LED_BLINK(); break; } case NET_LED: { NET_LED_BLINK(); break; } default:break; } }
0
31bc4335bb7800e786b2c38c2ba108f8
5eafb833b4852c2ceabebdb26febf5bb
ServiceReady returns nil when the service is ready and a gRPC error when not.
func readinessCheckEndpoint(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, strconv.Quote("OK")) }
0
4dfffa916a7556deff35c3b9d8e3c973
16711afd00efbeed9fbe2578dd8e4668
Замена столбца в матрице
{ int ki = 0; for (int i = 0; i < n; i++) { if (i != indRow) { for (int j = 0, kj = 0; j < n; j++) { if (j != indCol) { temp_matr[ki][kj] = matr[i][j]; kj++; } } ki++; } } }
0
ad3eaa51e58e5aa9d1330a4037d74b1e
9adceb9c155ccaf5e8579279e4ac3ff1
Check that the invoice lines created are enteredd into the account.invoice.line model.
if self.sudo().filtered(lambda aal: aal.so_line.product_id.invoice_policy == "delivery") and self.filtered(lambda timesheet: timesheet.timesheet_invoice_id): if any([field_name in values for field_name in ['unit_amount', 'employee_id', 'task_id', 'timesheet_revenue', 'so_line', 'amount', 'date']]): ...
0
0a34f5fc4ffd9e22e50ee3a7dd1d695c
7bbaf9c95a1a17e82c3305fa47bae185
Write relationships for the worksheet to xml.
{ if (!is_null($pSheet)) { $xDoc = null; if ($this->getParentWriter()->getUseDiskCaching()) { $xDoc = new ExcelXmlWriter(ExcelXmlWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else ...
1
ea3e17bc3689c0fb83df66ab88d90a57
485171b633c4ca756e5f572e2459122c
Test locating release with a given asset name.
self, release_id: int, asset_name: str ) -> Optional[int]: release_assets = paginate_github_api( "get", self.gh_release_assets_url(release_id) ) return next( (asset["id"] for asset in release_assets if asset["name"] == asset_name), None, )
1
870b488a62313706021d66d6abcc1795
deb4ebdf58bf3dc0d278ec4614aff3a7
获取子用户组信息
class Auth extends AuthBase public function getUserSubGroup($uid, $self = false, $child = false, $field = []) { $userGroupIds = $this->getGroupAccessGroupIds([$uid]); $allGroup = $this->getAllGroup($field); $result = []; foreach ($userGroupIds as $_groupId) { $subGroups =...
1
b43a04d78c686e29c0a7ddc2723fc5a6
8bf1c9c3fd6b59d6ad4db9f93488e49c
IRP_MJ_READ 的自定义派遣函数 此派遣函数用于保留原完成例程,并将其替换为自定义完成例程OnReadCompletion, 在结束时调用系统的原派遣函数。
void OnReadComplete( [In] int dwTransid, [In] int hGroup, [In] int hrMasterquality, [In] int hrMastererror, [In] uint dwCount, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 4)] int[] phClientItems, [In] IntP...
0
b4c20ca2e7a80511a03b1f08d9f3c23d
83d1f69453793dd92eeac2a057856af4
Check if this payment method should be searchable in the backend
public function isSearchable();
1
61e3ec1f5b51dce7c0c91d37a41ed5cb
d4b8fb9667739306b6e8ab668e8290e8
The geographical datum for the location data. LOCAL indicates a local grid.
if (!(GEO.equals(locType) || GRID.equals(locType))) { error("locType must be 'geo' or 'grid'."); return false; } return true; }
0
bde1da55f3d8b6ded30c80a8780601ee
d18b6f9ef4eb9970799462af3118a294
check if both sides of equation are equal
print('in eq') f1 = self.reduceRational() f2 = f.reduceRational() return f1.numer == f2.numer and f1.denom == f2.denom
1
963f6e4f1c5fdb6ca6f97e3c26d94534
338008d8d41c7f81a22336a5b8517f4f
【下載QRCode】 1. 通過選擇器獲取img元素 將圖片的src屬性作為URL地址 2. 呼叫CodeDownload('下載檔名' , '下載檔的url')下載QRCode
if (my.canIUse('ix.generateImageFromCode')) { my.ix.generateImageFromCode({ code: this.data.code, format: 'QRCODE', width: 200, correctLevel: 'H', success: (r) => { console.log(JSON.stringify(r)); this.setData({ qrcode: r.image }); } })...
0
a4882e4ab33aec3b5965a5fd1a462d31
aa060c89a9f77c2f1a7a8fd152c440a2
Limit transparency to a single layer (avoids transparency sorting problems)
void setTransparency (uint8_t transparency) { if (CurLayer == BACKGROUND_LAYER) LTDC_LayerAlpha(LTDC_Layer1, transparency); else LTDC_LayerAlpha(LTDC_Layer2, transparency); LTDC_ReloadConfig(LTDC_IMReload); }
1
dc9f72101c19064b1a656ca6f01cd809
8c88a7e6f1a61bcfeb1d9a924e917bc6
Setting up decal material for diffrent sprites
{ pDepthBuffer = new float[ScreenWidth() * ScreenHeight()]; _decaltexWH = new olc::Decal(new olc::Sprite("../Objects/whmarble.jpg")); _decaltexGR = new olc::Decal(new olc::Sprite("../Objects/grmarble.jpg")); _decaltexBR = new olc::Decal(new olc::Sprite("../Objects/brmarble.jpg")); _decaltexBoard = new olc::Decal(n...
1
876ba43cb358b1caacc1f68402645cdb
5395b4eaecacadd3feb1d00775847d51
% weight=70 blockGap=8 % blockId="setClock" block="set year %year|month %month|day %day|weekday %weekday|hour %hour|minute %minute|second %second"
interface TimePicker fun setTime(hour: Int, minute: Int, second: Int, is24Hour: Boolean, isAm: Boolean)
0
3af4a28b7f6761714987f299fd457311
47121734af3b9468a31fa1c68e4a90ac
获取美国当前时间
TimeZone tz = TimeZone.getTimeZone("Asia/Shanghai"); TimeZone.setDefault(tz); Date now = new Date(); return now; }
0
f05ee9bf320cde1877c94681c8b1efbb
25e4f834fb9a968ed6462deeeea6bd47
r"""Prior over the experimental design space (measurement time).
class SemiLocalLinearTrend(StructuralTimeSeries): def initial_state_prior(self): return self._initial_state_prior
0
39d8cd3e07968e988bc90eb92d8127e3
527e9ff0e6ce0b4d8e58fcd8a57f718c
Returns True if |possible_hash| looks like a valid sha1 hash.
def is_valid_hash_digest(hash_algo, hash_digest): assert is_supported_hash_algo(hash_algo) _, digest_size = SUPPORTED_HASH_ALGOS[hash_algo] return re.match('^[0-9a-f]{%d}$' % digest_size, hash_digest)
1
f784ae37baa0a2309ec1c8426efd35ac
4cc11c132ec39fdafc6fae971ed49c65
Sets the spacing between lines of text. Default is C{0.0}.
class Tkinter: def linespace(self) -> int: return self._linespace
0
4d595fdde60ef7e748a2b403b4a68838
f473d66cc48b1e27d621741fa7334458
UnityEngine.ParticleSystem_TextureSheetAnimationModule UnityEngine.ParticleSystem::get_textureSheetAnimation()
IL2CPP_METHOD_ATTR MainModule_t99C675667E0A363368324132DFA34B27FFEE6FC7 ParticleSystem_get_main_m360B0AA57C71DE0358B6B07133C68B5FD88C742F (ParticleSystem_t45DA87A3E83E738DA3FDAA5A48A133F1A1247C3D * __this, const RuntimeMethod* method) { MainModule_t99C675667E0A363368324132DFA34B27FFEE6FC7 V_0; memset(&V_0, 0, sizeo...
0
aff72078b11b54a292066c264a5f5556
6f69782600e076c32033ca61570fd352
公约公倍数
if n < r { return 0; } let mut divs: Vec<u64> = (1..=r).collect(); let mut divs2: Vec<u64> = (1..=(n - r)).collect(); divs.append(&mut divs2); let mut used: Vec<usize> = Vec::new(); let mut c = 1; for ni in 1..=n { c *= ni; for (i, d) in divs.iter().enumerate() { ...
0
2a16474332b6cac0c84bc932363f8345
6672ba235156086066f61da87e8b60ca
remove \n
{ static boost::regex eol("\\R"); m_code = boost::regex_replace(m_code, eol, "\n"); }
0