query_id
string
corpus_id
string
query
string
code
string
label
int64
6f6dbac3eb2a9d22e8bf51f641e143a7
06a2bb5739e6f836def6a458b1bfeb79
Generate Toolbar Left hand side data
class CustomerScreen extends TableScreenMaker public function generate_tableleft() { $tb = new Table('class=table table-striped table-bordered table-condensed table-excel'); foreach (array_keys($this->json['columns']['left']) as $column) { if ($this->json['columns']['left'][$column]['heading'] == '' && $this-...
1
323e1eaa2a171ecc2d3cd1dd6648dda5
3c4618a4d0494dd6f77b6d8c96fc8024
erase the cell from the canvas
this.context.clearRect( currentLocation.x * gridDimension.x, (currentLocation.y - 1) * gridDimension.y, gridDimension.x, gridDimension.y ); }
1
78b7abe56f2bf3eb7023df370a91d022
eba07de4cf1d69b2eb9530207045fcd8
Checks if the project and sub projects should be visible.
static boolean isVisible(@NotNull Project pProject) { return pProject.getLookup().lookupAll(IProjectVisibility.class).stream() .map(IProjectVisibility::isVisible) .filter(Objects::nonNull) .allMatch(Boolean.TRUE::equals); }
1
935e5572c823efc7b935600948c5b1af
2bf3d4ab4f02b0adc4a790b3bb54ca60
logout method changes the logged status for a single instance (the instance calling the method)
JNIEXPORT void JNICALL Java_com_CrossApp_IM_IMINIT_isLogout(JNIEnv *env, jclass thiz, jboolean logout) { bool logoutresult = logout; HXSDKController::getInstance()->postNotification_isLogOut(logoutresult); }
0
1293ea471aab38293dd0a3574c7e7087
feb0ae411fa41461e9068eebddf77574
接受服务器广播弹出参加提示框(进入各种决赛的玩家会出现提示)
function GameViewLayer:onBroadCastPlay(str) self._scene.mIsBroadCasting = true self.mLbBroadCast:setString(str) self.mLbBroadCast:move(self.mNodeBCInit:getPosition()) self.mImgBroadCast:setVisible(true) local actMove = cc.MoveTo:create(DisplayConfig.DURING_BC_ONCE, cc.p(- self.mLbBroadCast:getContentSize().width, ...
1
feb540bb5f813a7fcbb401e5e4483733
f2f07f931031cc84c567f13079cc6d8f
跳转微博首页
public class PersonalActivity extends AppCompatActivity @Override protected void onCreate(Bundle savedInstanceState) @Override public void onClick(View v) { Intent intent_list= new Intent(PersonalActivity.this,WeiboListActivity.class); startActivity(intent_list); ...
1
09394c13c2ac8bf8f40d0be0027d83af
6e4ae06449e527dd3b495feb47f12b1d
压缩bitmap 为长边小于某个值得bitmap
if(maxLength<=0){ return bm; } if(bm==null||bm.getByteCount()<=maxLength){ return bm; } UIHelper.showLog("尺寸压缩前:"+(bm.getByteCount()/1024)+"KB"); while (bm.getByteCount()>maxLength){ Matrix matrix = new Matrix(); matrix.post...
0
677bb511088f1721a0368baee5378003
cdc2cf5a05f13562dae6ff71b4af9ec3
Returns a new object of class '<em>Task Priority</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
DiagnosticOrderPriority createDiagnosticOrderPriority();
0
e984c4f4443cbac0bc545f398c4aae86
7c6e5ee7b081b609bfd5d6e175f9d42c
查询商户当前应用下的用户(最多一条,当一条也不存在时sql会报错)
@Controller @RequestMapping("/pc/PCMemberUserController") public class TcsbPCMemberUserController @RequestMapping(params = "PCGetShopOneMemberUser") @ResponseBody public AjaxJsonApi getShopOneMemberUser(HttpServletRequest request, HttpServletResponse response, String ...
1
f4832c19ebd49c65049a05506d7fbd8a
e08faa0da95aa1431dd130bb931b7865
Functie voor het weerhouden van ongeauthoriseerde gebruikers
class Home extends CI_Controller function toonFoutInloggen() { $this->toonFout("Gelieve te controleren of uw gebruikersnaam en wachtwoord kloppen."); }
0
4d2118aa80c77fee64f669c48d1832d7
c0579e6d9c9c9fbc94d3b060d756e759
Gets the first visible and enabled item
{ for (int i = 0; i < list.Count; i++) { if (!list[i].activeInHierarchy) { list[i].SetActive(true); return list[i]; } } return null; }
0
f861b8ff6a766c594c163a4165de2fe7
085a2060b4b6902f132f8cd7c1e357d9
Returns the badge code from its name
namespace ExpenseManager.Business.Utilities.BadgeCertification IBadgeCertifier ResolveBadgeCertifier(string badgeName);
0
dc397c4acf12ac99d01930380b80986a
86d5cff50cebfb6c156a8d54ac4756a7
检查player正上方是否有物体
{ Vector3 rayToMiddle = new Vector3(0, transform.position.y, 0); Ray rayToMiddleRay = new Ray(this.transform.position, rayToMiddle); Debug.DrawLine(transform.position, rayToMiddle, Color.blue); if (Physics.Raycast(rayToMiddleRay, out hitPlayer)) { Transform objec...
1
72eddae484fef9e535bfb0a500fcbf1e
bc6d4451a61e3b5c67cf1846390f9cc5
Get request rules reflection.
export default class AbstractRule getReq() { return this.req; }
0
e1094bac0f55c9a4afefdded079eba23
02de4e3beb74c6ae2bafb076e6adeb51
Array of response headers which have already been set.
class Application extends \stdClass public function headers() { return $this->header_fields; }
1
15cbb9b144ccac9f9b415600f51fd566
3e6e93206126f9ab5e45a24a06128655
删除二维列表data中指定列的元素
if isinstance(keylist, list) and isinstance(dict_data, dict): for i in range(len(keylist)): dict_data.pop(keylist[i]) return dict_data else: return '入参格式错误,请检查'
0
30a9873395036acb06e767723bdb4fd6
16eb1b61bb7c6037f148d16779ae9ac7
Factory method returning an :class:`IsoJobCreator` for the passed ISO request.
excluded_racks=None, requested_tubes=None, requested_library_plates=None, **kw): kw = dict(iso_request=iso_request, job_owner=job_owner, number_isos=number_isos, requested_tubes=requested_tubes, excluded_racks=excluded_racks, **kw) if iso_reque...
1
4795e3fe17c35fbe466f2bbc3bfd4bba
d264aa9829c4f458a3e9e633566e5954
Gets template for cross marker legend with information about Y <see cref="DataSeries"/> and <see cref="SizeSeries"/>.
{ DataTemplate dataTemplate = null; if (AxisCategoryYTemplateSelector != null) { dataTemplate = AxisCategoryYTemplateSelector.SelectTemplate(item, this); } if (dataTemplate == null && AxisCategoryYTemplate != null) { ...
0
9fdadb0a50f3f001fa2f3826964d6781
36ca0394071c68f958992950853555d4
Generator Matrix of the Linear Block Code.
namespace InverseBeamforming public partial class Modulations public class SpreadingCode public static byte[,] GenerateHadamardMatrix(int codeLength = 32) { byte[,] H = new byte[codeLength, codeLength]; H[0, 0] = 1; int i, j; int m=1; while (m < codeLength) { for (i = 0; i < m; i++) ...
0
b9565b9f94a286594dc862e3c66719f2
ddbd6c08ea84029212bf4e870562d298
Get next local variable of IR procedure.
Lvar *temp = locals[functionId]; if(!temp) return NULL; while(temp->next) temp = temp->next; return temp; }
0
f23b07d7820677cf6d8fba9243f0ff0c
f91a0452dc772f2544872fe229341399
Restore the contents of the question text box.
class CreateDBWindow(): def CreateQuestion(self): def RestoreField(event): if not self.q_text.get('1.0', 'end').rstrip(): self.q_text.insert('1.0', self.init_q_text)
1
dcd11173a6475a46dc40ee221394e274
c70487230c62cd75e5f8f10fe0415cb0
Test that when the cryptotoken is offline the status code is 503.
class SubscriptionApiTest extends \PHPUnit_Framework_TestCase public function testCrceOfflineChargingOfflineCharge() { }
0
b5da6cf2d18c3ca8c0b0b90234ec04ad
68b504be0a3d0546e272a516bf27d02c
打印错误日志并返回数据对象
class EasyForm extends MetaObject implements iSessionObject public function processDataObjError($errCode = 0) { $errorMsg = $this->getDataObj()->getErrorMessage(); BizSystem::log(LOG_ERR, "DATAOBJ", "DataObj error = ".$errorMsg); BizSystem::clientProxy()->showErrorMessage($errorMsg); }
0
391fdf2dc8e96e18a5fa8e0e0383216c
db174ef118cf27c82c2df3e7771d79c8
@brief Função que cria um Jogo novo.
Item * cria_jogo(char * nome, char * equipa1, char * equipa2, int score1, int score2){ Item * novo_jogo = (Item*) malloc(sizeof(Item)); novo_jogo->nome = (char*) malloc((strlen(nome)+1)*sizeof(char)); strcpy(novo_jogo->nome, nome); novo_jogo->equipa1 = (char*) malloc((strlen(equipa1)+1)*sizeof(char)); ...
1
2da47f8231e29722206cdb285b2f8a0c
90d29a508eab0755bf6f7c289b36287d
[summary] 获取登陆页面的 加入企业微信的二维码
self.login() self.bs.find_element_by_link_text("微信登录").click() wait = WebDriverWait(self.bs, 5) wait.until(Ec.frame_to_be_available_and_switch_to_it((By.XPATH, "//div[@id='login_container']//iframe"))) time.sleep(2) img_url = self.bs.find_element_by_xpath("//div[@class='w...
0
a745bdfd0dde5fade536ae8e611ee0e9
6864903b30769eb1a07e63c84b2407d6
This function computes the differences of successive RR intervals.
diff = [] for i in range(interval, len(dataset)): value = dataset[i] - dataset[i - interval] diff.append(value) return np.vstack(diff)
1
c5141f823742580df84f86de00d54ed5
57b30435d5d8f86b5dc821e974be6e88
Calculate the current score of the board, with white being positive and black being negative
{ let evaluation = 0; for (let i=0; i<V.size.x; i++) { for (let j=0; j<V.size.y; j++) { if (this.board[i][j] != V.EMPTY) { const sign = this.getColor(i,j) == "w" ? 1 : -1; evaluation += sign * V.VALUES[this.getPiece(i,j)]; } } } return ...
1
6f5589c983ca5246ef6270a556efe49b
fc1401fe34393692faff9d84da7aae68
Kamera sensöründen cihazın ekranına oryantasyon sağlar
public class SimulasyonYonetici : MonoBehaviour private void Update() { KameraKonumuMerkezle(); }
0
d1469cc0701a600aa71d3162cc762ee3
d79b560fbebf22cd079ec633145985f1
MsoFDigitCh Returns TRUE if and only if ch is a digit.
{ return ((ch >= '0') && (ch <= '9')); }
1
0fba7175f33375b2e176434896d598f7
831d4b96c300465fd38a3473545722d4
confirm the cell's text is '.' if the cell is not alive
Position temp = Creature::getPosition(); if ((temp.row > 0) && (temp.col > 0)) { if ((board[temp.row][temp.col] == '1') && (this->alive)) { board[temp.row][temp.col] = name; } else { isVisible = false; } } }
0
9b8ffcdb7a6caad40908d950e771f8fb
4e561e4a976c7a08dc45f3c6b389f366
打乱从题库中挑选题目的顺序
{ int len = questionList.Length; List<int> list = new List<int>(); string[] ret = new string[len]; Random rand = new Random(); int i = 0; while (list.Count < len) { int iter = rand.Next(0, len); i...
1
964cdfb0a319f6676b0802a4bb03b4e4
ff9baf951b7bb7cc339d4a9e4970f466
复写该类的保存方法save(),让每次数据存储时都能更新修改时间
class BaseModel(Model): def save(self, *args, **kwargs): self.updated_at = datetime.now() super(BaseModel, self).save()
1
6d838c52ca8a14e8c45babb12aaa1f1c
25f466a1342d0d558594cc136c9ce128
Map wordpiece token labels to word labels.
revDict = self.dictionary_reversed if type(labels) in (list, tuple, set): return [revDict[l] for l in labels] else: return revDict[labels]
1
8e83747660ad53d3b0e7750850c0b91e
436f47c91e93bcf9268ffec8d3206130
A setter to set if a vehicle has entered today.
public abstract class Vehicle public void setStarted(Boolean started) { this.started = started; }
0
c0179890a5e030fa138ab4e33875e770
cfd1afddf3f1ed8a9052cb6b8df0cb86
The cost of the reset transition is the sum between the cost of the transition and the value of the destination
class Problem: def path_cost(self, c, state1, action, state2): return c + 1
0
8d47fce83100798c435e3adea13f1a0c
6eaa10cc2a01e0824f7a9fdadf9a6600
Getter method for property <tt>regType</tt>.
@Table(name = "DAILY_REPORT_OUTPATIENT") public class DailyReportOutpatient public String getRegType() { return regType; }
1
d665fde1b792bf02f553a634c8553ae4
e07fce320342a8c34a5f57b6dff68adb
入力された文字列から接続先番組を取得する
new AsyncTask<Void, Void, String>() { @Override protected String doInBackground(Void... params) { String result = null; String inputStation = _inputStation; String selectedStation = _selectedStation; if (inputStati...
0
3dbf23d8888455316bddf455d7e2996b
f42f0c3f618fc1e7747f6a7765902882
El siguiente método recibe un Id de Artista y devuelve un arreglo con todos los calendarios que tiene el artista
class ArtistsPerCalendarDb extends SingletonDAO implements \interfaces\Idao public function retrieveArtistsByIdCalendar($id_calendar){ $sql= "SELECT id_artist from artists_x_calendar where id_calendar = :id_calendar"; $parameters['id_calendar'] = $id_calendar; try{ $this->connection = Connection::get...
0
3ac170ba51812b6d218ee34f81cbc5f8
7e04b9c8f7e77c2fc8e05a9a48f9ef84
The tab bar delegate is informed of tab bar events, like selecting a tab.
namespace Elastos namespace Droid namespace Widget ECode TabWidget::SetTabSelectionListener( ITabWidgetOnTabSelectionChanged* listener) { mSelectionChangedListener = listener; return NOERROR; }
1
7e6116fc68e285d92895d41f726f4f0d
a57b148f926e4d59168c52773851249b
To help comparing JSON we remove any whitespace that hasn't been quoted. So: ``` { "some key": "Some Value" } ``` ``` {"some key":"Some Value"} ```
func sanitizeValue(src string) string { whitespaceTrimmed := strings.TrimSpace(src) commaTrimmed := strings.Replace(whitespaceTrimmed, ",", "", 1) return trimQuotes(commaTrimmed) }
0
42e355f15e87a98aaad33e82908f38d0
9437bba0f3eafeeb23b708a0366255d6
Creates a client cert and key for testing.
keyfile = "/tmp/my_key.pem" crtfile = "/tmp/my_certificate.pem" garbage = [keyfile, crtfile] self.clean(garbage) self.remote_connection.execute_command(f"echo '{private_key}' > /tmp/my_key.pem") self.remote_connection.execute_command(f"openssl req -new -x509 -days 3650 -s...
1
04e6a21139c67d22de20a1455a9f01c9
2e9bcad95b101f7d5c03f2d026adacee
returns quotient of 2 passed Fraction objects.
top_divide = self.num * other.denom bottom_divide = self.denom * other.num return Fraction(top_divide,bottom_divide)
1
efc0aeee13ecdf09c29aff67b98f8e80
acad688df5989f3850d3ec800bf5f673
Add new project into projects list
export default class ProjectSelectScreen extends Component onAddProject(addedProjct) { const projects = [...this.state.selectedProjects, addedProjct] this.setState({selectedProjects: projects}); }
1
219d1278456790e531966550ccecf1fa
6d51f87f3b1301ec4f81a29ffe1a51af
Returns the result of interpreting the object as an instance of '<em>Relation3</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
public class MDMLSwitch<T> extends Switch<T> public T caseRelationDestination(RelationDestination object) { return null; }
1
a728bfef7bbba5fbf4f68c04932594eb
e513c971d032f7d3e8a597a464d481c6
Возвращает элемент по ключу, если он существует. Иначе возвращает элемент, который подходит для вставки нового элемента с указанным ключом.
private function getOrCreate($key);
1
ff6bdaa6b53ed98664653f35d800c78c
ce029d446e7ef67cc6cb666a56942f89
Returns a JSON object containing the freesound API response given an endpoint and paramenters.
def make_request(baseurl, params): resp = requests.get(baseurl, params=params, auth=oauth) return resp.json()
1
3bdea1a24cf99298bea3d27ff12dbdea
94cfdce8792d9e38e7a6cbebbabf85ef
Deletes all rows from the es_cities table.
class EsCitiesTableMap extends TableMap public static function doDeleteAll(ConnectionInterface $con = null) { return EsCitiesQuery::create()->doDeleteAll($con); }
1
e342db41f5f35af0efb25632acad9eba
0dadf1e45d64ab980a4d4acf66bf1827
Get a rollup job from the cluster. See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-put-job.html"> the docs</a> for more.
namespace Nest public partial class ElasticClient public Task<CreateRollupJobResponse> CreateRollupJobAsync(ICreateRollupJobRequest request, CancellationToken ct = default) => DoRequestAsync<ICreateRollupJobRequest, CreateRollupJobResponse>(request, request.RequestParameters, ct);
0
fac8bc879c8a68d68c69e8823afd9674
3a637b9ec5a5e54d13249a2e4525bd5b
Goes back to LoginActivity
public class ViewItinerariesActivity extends AppCompatActivity public void loginMenu(View view) { finish(); }
0
391165bec51dc2a85bfa296464da703a
d0ee5af0c4b232f95516673f9ec3f0c5
Generates a CAML filter for a Taxonomy Term
var and = []; angular.forEach(activeFilters, function(attributeValues, attributeId){ angular.forEach(attributeValues, function(attributeValue){ var valueTermFilter = {term:{}}; valueTermFilter.term['data.FileAttributes.' + attributeId + '.FormattedValue'] = attributeValue; and.push(valueTermFilter); ...
0
f9e37182531f1565b959db5e02091350
916a4098559d877c3eb8fcd4c276438e
Returns the URL from where to download the file or None if it can't find the URL.
class IDownloableAsset(IAsset): def get_download_url(preview=False, request=None):
1
8485d88b3e7d374a9df5fde6c96ee01b
c814c94f424f106de4ddd8c36a131c16
Black-Scholes-Merton Option price
double d1 = ( log(option.s / option.k) + (option.r + 0.5 * option.v * option.v) * option.t) / (option.v * sqrt(option.t)); double d2 = d1 - option.v * sqrt(option.t); return option.s * cnd(d1) - option.k * exp(- option.r * option.t) * cnd(d2); }
1
cc1b58053e33542a147c218de913e91d
393b619890d6c0afaef843790b942e7f
This method is used to calculate the number of pauses made indicated by chat symbol (.)
{ int sentence_count = 0; for (int i = 0; i < textlen; i++) { char letteri = text[i]; if (letteri == '.' || letteri == '?' || letteri == '!') { sentence_count++; } else { sentence_count += 0; } } return sentence_count; }
0
3391a27859064f50405959d2db5c8fa9
5e2545ca2a1251864ddab75032752461
Given a course_module object, this function returns any "extra" information that may be needed when printing this activity in a course listing. See get_array_of_activities() in course/lib.php
function contactmod_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) { }
0
47a497b854e7e1881e69b61900bcdf63
cae1532e5b5df70b507d621f21ec6dcf
Sends a message to the Server with the user's username when they logoff
public class NetworkScript : NetworkManager void sendUserDisconnect() { MyMessages.UserMessage umsg = new MyMessages.UserMessage (); umsg.user = userName; umsg.connected = false; NetworkManager.singleton.client.Send ((short)MyMessages.MyMessageTypes.USER_INFO, umsg); }
1
33439bf9bde7540e56d4b85f97049ad1
9661c54fea0602f1e1116123bb05a4ba
Formats a content size to be in the form of bytes, kilobytes, megabytes, etc
{ $sz = 'BKMGTP'; $factor = floor((strlen($bytes) - 1) / 3); return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . ' ' . @$sz[$factor]; }
1
2b0ed0928d2838ccd4cf409c934c6935
cd4a0a1797d2554904c739a0730844df
对所有敌人进行射击,将被击中的敌人指向为空,返回一个撞毁的敌人
for i, a in ipairs(arrows) do if a:hitMonster() or a:hitWall() then table.remove(arrows, i) end end end
0
69235a3941bfddff168b8c8fe7098f27
49cf4c495a8ef6daa637256e600d2c05
Returns all employees by department id sorted with specific sort.
public List<EmployeeBean> getAllEmployees(int departmentId);
0
b1e679f1a1892414d0d921c5f24ba496
2ac924742e8ab1bc705c899fee0bfa34
Débloque le compte actuel si la clée est bonne
$customer = Customer::where('activation', $slug)->first(); $customer->update(['active' => 1]); auth()->loginUsingId($customer->user->id, true); return redirect('profile'); }
1
6585dc1f7ee65096ffa170ef34bdde0d
c8ebe38395b279822ce3c5baa26f14af
returns true if any bulbs are on, false otherwise
fun bulbSwitcher() { }
0
112d82d07c048be2b60b1074b1e7b13d
b3b8b9e5c28d8d256c1b4929d89d2d2d
LexRankで文章を要約する.
Map<String, double[]> word_vector) throws Exception { List<String> vocab = Corpus.getVocab("data//" + domain + "//" + domain + ".vocab"); int[][] docs = Corpus.getDocuments("data//" + domain + "//" + domain + ".docs"); Dataset data = new DefaultDataset(); for (String word : vocab) { double[] vecto...
0
74fa6ddac0c5a8e3c518f98445276345
7d6568643c82338b0fe5edf570d13b09
续费Ckafka实例, 目前只支持国内站包年包月实例续费
{ JsonResponseModel<ModifyKafkaRechargeResponse> rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyKafkaRecharge"); rsp = JsonConvert.DeserializeObject<JsonResponseModel<ModifyKafkaRechargeResponse>>(strResp); ...
1
3ec6037c2cd62738e7fbbfe26d53e141
459e6c4b19dc1cccc8887f450c4c95a3
31、买家逾期未付款,系统自动违约,通知卖家
class MessageLogic public function sendSellOrderSellerFailedToBuyer($buyer_user_id, $order_no, $seller_guarantee) { $buyer = User::findIdentity($buyer_user_id); $params = [ 'order_no' => $order_no, 'transaction_amount' => $seller_guarantee, ]; $submail_pro...
0
52f868357d633b5754bcd3f22da8b6ac
82ede37964f430a6fb8b837fc3a2c4cb
Discard all data points, clusters, and centroids.
self.eps = eps self.min_pts = min_pts for i in xrange(len(self.points)): self.points_data[i].cluster = -1 self.points_data[i].neighbourhood = self.tree.query_ball_point(self.points[i], self.eps) self.points_data[i].size_neighbourhood = 0 for i in xrang...
0
c58074687c64333e49acf1ff63bd7a20
77e45c1348d24ff0ad33ae34632d23dd
Get 是否自动使用代金券。1(是),0(否),默认不使用。
public class CreateLicenseOrderRequest extends AbstractModel{ public Boolean getAutoRenewFlag() { return this.AutoRenewFlag; }
0
0377e079db3a03622ec5c9008dd3f8ec
1eaf64df36f16b9608c4010fa28ebaf8
Sets up the GUI and the DukeBot functionality.
public void initialize() throws IOException { scrollPane.vvalueProperty().bind(dialogContainer.heightProperty()); ui = new Ui(); storage = new Storage(filePath); try { taskList = new TaskList(storage.load(), ui); } catch (DukeException e) { String err ...
1
e89d9c6fbf71400621ea0765c2d280d5
5bc3e8244faf1bf8980812ac1d205028
Пересчет статистики по всем пользователям контекста
class users{ function UpdateCommuneSubscr ($user_id, $communeSubscr) function CountAll(){ global $DB; $DBProxy = new DB('plproxy'); $sql = 'SELECT * FROM get_users_stat();'; $ret = $DBProxy->row($sql); $sQuery = 'SELECT get_messages_stat as mess FROM get_messages_stat()'; ...
1
a69ccb7d04e1ab1c40d5a568b311353c
c3cc5c684efec412f1c7cf0372ede6bb
CopyTexSubImage1D(target, level, offset, x, y, width)
func CopyTexSubImage2D(target uint32, level, xoffset, yoffset, x, y, width, height int32) { gl.CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height) }
0
33ab7b5f89c54ac0a16e30dfbab58fcd
31913430353fd362e1adcbb224f6d2e5
Compute the correlation between 2 RSMs (2nd order correlations)
if( np.iscomplexobj(CIcoeffs_1) or np.iscomplexobj(CIcoeffs_2) ): Re_CIcoeffs_1 = np.copy( CIcoeffs_1.real ) Im_CIcoeffs_1 = np.copy( CIcoeffs_1.imag ) Re_CIcoeffs_2 = np.copy( CIcoeffs_2.real ) Im_CIcoeffs_2 = np.copy( CIcoeffs_2.imag ) corr1RDM = 1j * pyscf.fci.direct_spin...
0
45981da5a9e385b416fb2e1c1c566683
53bf5bee6428f361c5d5ad3337caefa7
继承HttpAgent初始化方法
class ZhuangmethodAction extends CommonAction public function _initialize() { parent::_initialize(); $this->filter_http_data_ini(); }
0
34a9f5e876d62b25750aeac36897c051
d1774b28fc4c561ebf342a0a6e9440b7
This method is called to get the BASE URI accroding to the Object Type.
namespace Zentity.Services.Web.Admin [OperationContract] string GetBaseUri();
0
fb2e449587eb4848b7da399c0a8fbb43
421658c5517ea99875c8f523a0e3e366
Configuration for all physical data sources used by the relay.
conf = {} devices = {} devices['PYMOSA_Producer'] = {'backend': 'tcp://127.0.0.1:8500', 'kind': 'pymosa_producer_sim', 'delay': 0.1, 'data_file': os.path.join(data_folder, 'telescope_data.h5') ...
1
13e28c26e702948f747b182be96cde38
02d689983e8b4a4121ea746c0338d590
Returns the request for the existing Firewall resource.
neutronShowFirewallGroup(neutronShowFirewallGroupRequest?: NeutronShowFirewallGroupRequest) { const options = { method: "GET", url: "/v2.0/fwaas/firewall_groups/{firewall_group_id}", contentType: "application/json", queryParams: {}, ...
1
8f7531bbe951fd47e3d8d40cfd1b2a92
0a639616bf0b7af5496674083d37d1ba
This is set to 'true' whenever user_given_name or user_family_name are not the same as the given_name or family_name on the User entry referenced by user_id.
class SystemPreferences extends Preferences public function getUserNormalizeGivenName() { return $this->get(self::PREF_USER_NORMALIZE_GIVEN_NAME, self::VALUE_NONE); }
0
6cf0ac3e15eec3321f2ab0852dae9527
2b3d59423f0172fc93667ff22d7dd845
创建HDFS的java客户端对象
public class HDFSUtils public static FileSystem createFileSystem() throws IOException { Configuration conf = getConf(); FileSystem fs = FileSystem.get(conf); return fs; }
1
be8e9dad146785890a33425d15992743
1b1945e4310eaa1697265914ef7866fd
Функция, вызываемая для получения зашифрованного сообщения.
function decryptedMSG(value) { return value; }
0
a59888d84cdbf8dff6a51efcf1565d22
9f4f0f48d7fd6bd2aa45dbaf5294f771
Creates a new, empty IPLD store in memory.
func New() invoice.Store { return &memory{ entries: make(map[string]*commonpb.InvoiceList), } }
0
1cc93b0b6833361872242576e3363fbe
162b36a4c4c4311e3ee5e66668a9099c
Returns the params to be used in the invoke given a card number.
def get_params(action, input) action_words = action.input.split(" ") input_words = input.split(" ") params = [] action_words.each_with_index do |item, index| if (/\{p[0-99]\}/ =~ item) != nil params << input_words[index] end end return params end
0
9e2a5d22bc0f8ba632fa0d7ac6334296
8c88ab77152ead9d07f851b233ac3af9
Returns the hop distance to the coordinator This function may not be synchronized. Otherwise, a deadlock can occur.
public int getNumHopsToNexus();
1
de59c4704f3b67e5303f387cc4b3eb50
da8029fee150561060f324fa0449c108
Sets name of the record element of the XML document. This will be used to determine offset of the first record of a bundle created from the XML document. This is a required parameter.
public function setElementName($elementName);
1
f10c5383b0d327b99ada8e51ab4b42a0
94b9dffeecc57c0eb56bb338f0f3d9fb
Check if the connection does not already exists and if it does not, add it to the list of connections. Otherwise report a warning and do nothing.
{ if (!find_by_connection(connection)) { connections.push_back(connection); return true; } return false; }
1
9c1ac1bcfa972be4ea41423a4ee8ec14
79e4c89d03019601422d561a96e76828
Bans a specified tag
class TS3Commands(object): def bandel(self, *, banid): cparams = OrderedDict() uparams = list() options = list() cparams["banid"] = banid return self._return_proxy("bandel", cparams, uparams, options)
0
ec4ea235c220083d5834de57174d7d9b
a666c346a6c0085e7fb047dfe99ab737
将crf_test命令预测出的文件中匹配到的实体提取返回
def predict(input_file,out_file): print('test predict') all_test=[] for i in range(9): print(i) K.clear_session() model = link_model() filepath_loss = "model/ER_match_bert_f1.h5_" + str(i) test = get_input(input_file) model.load_weights(filepath_loss) ...
0
8a54111f1b7a39b0159c46ba59d484f2
ddaec20ce84a71dd97dbbc192e2fab27
Reconstruct one or more hosts from the local inventory
class NFSExportsBase(Parser): def reconstitute(path, d): return " ".join([path] + ["%s(%s)" % (host, ",".join(options)) for host, options in d.iteritems()])
1
b49049c5b783c799eb085904be54911f
76dd9b49f31e9f1dfc5a259a40c671fc
Calculates x distance for the drawing methods
export class Drawing getXShift(){ return -(this.scaleX(0.5)) }
1
20568b79ddaadae4c881c8a71ed31d31
820fdc999dbf3345acfe2cdc78889f01
Handle material creation.
_root = createMaterial("BlackMatter", null); createMaterial("Metall", materials.get("BlackMatter")); createMaterial("Steel", materials.get("Metall")); createMaterial("CarbonSteel", materials.get("Steel")); createMaterial("StainlessSteel", materials.get("CarbonSteel")); cr...
1
f48ebb5c72addef3199417ffa647aac4
38919e9b8e443d084c34f9d6f3f03926
This adds a property descriptor for the Mip Cuts GUB Covers feature. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CresProjectExtendProperty_developer_feature"), getString("_UI_PropertyDescriptor_description", "_UI_CresProjectExtendProperty_devel...
0
de3ac961125d38a31836aa3e3b69c07a
9dce664e7cf47b6203a2b284ee1546ba
Initialize the data structure to store the command-line options (number of nodes, program to run ect)
Options::Options ( ) { argC = -1; argV = NULL; optStr = ""; numberOptions = 0; expectArgument = false; optind = -1; }
1
56e91d5527aad6f2f81167d5adf24296
d4a382dc18bb5a6aa074a9c518233f49
Emit the code to generate a break statement. If no condition is specified, this does an immediate jump to the exit label on the scope. If a condition is specified, the condition is evaluated and a break to the exit label on the scope occurs if the condition is true.
if (cg == null) { throw new ArgumentNullException(nameof(cg)); } if (IsUnconditionalBreak) { emitter.Branch(ScopeParseNode.ExitLabel); } else { cg.GenerateExpression(emitter, SymType.BOOLEAN, BreakExpression); emitter.BranchIfTrue(ScopePars...
1
2f0c8d50d726fd5ca972cf53c10cfbb1
11055a672f5cb5c4abe2c766e0b270ab
获取文件的名称,带有后缀 <para>IN : D:\User\JZY\File.xml</para> <para>OUT: File.xml</para>
namespace Common public class FileHelper public static string GetFileFullName(string file) { return Path.GetFileName(file); }
1
dfe7d454dd40b7df541137a411a461dc
c23b36f41f461063f18607a6676a7292
Returns the user groups. Collection of user groups is lazy loaded on demand.
RelatedObjectSet getUserGroups() throws GuacamoleException;
1
2c81d9da0ae47b2cc08ddef2e66979c0
19069b88a1a3d4afc87522fc27d5247b
Define o número da página
class Pagination public function page($page = null) { if($page) { $this->_page = $page; } return $this; }
1
52baca8f4bbe0819df0e570a1f7f7a96
4f303990bf6b65e71f58341debddd938
扫描webapps下的所有项目文件夹并加载
dirs = [] if version == '1': WEAPP_WEB_VIEW_DIRS = settings.WEAPP_WEB_VIEW_DIRS else: WEAPP_WEB_VIEW_DIRS = settings.WEAPP_WEB_VIEW_DIRS_V2 for url_path, weapp_view_dir_path in WEAPP_WEB_VIEW_DIRS: if weapp_view_dir_path.endswith('*'): weapp_view_dir_path = weapp_view_dir_path[:-2] for f in os.listdir(w...
1
b49b92a339ab11e763154753b80e7890
ede544c2c95f401c92ac2631cbf7a754
Convert component name to CamelCase
class MakeSeederCommand extends SeederMakeCommand public function handle() { $this->component = strtolower($this->argument('component')); $this->component = ucfirst($this->component); parent::handle(); }
1
ce63fb99e51cb3a3f97f17eda007c82b
1f1e8dfde92850d2778c207b5dfe0f3d
Get list of YANG list names used in xpath expression
Set<YangNode> yangNodes = new HashSet<>(); if (model != null) { Set<YangModule> modules = model.getYangModules(); for (YangModule info : modules) { yangNodes.add(((YangModuleExtendedInfo) info).getSchema()); } } return yangNodes; }
0
663a161c5b115b751ce9fad88ac79822
2037f54c975f54177aa84bfa9222e88c
减去状态栏和标题栏的高度,并且计算出点击的RectF的中心点,赋值给mCenterPoint
public class MaterialButton extends RelativeLayout private void minusExtraHeight(){ int[] location = new int[2]; this.getLocationOnScreen(location); mTargetRectf.top -= location[1]; mTargetRectf.bottom -= location[1]; int centerX = (int) ((mTargetRectf.left + mTargetRectf.right) ...
1
404ead25de652e908ead79f4fb6ec526
095a55d5046d79002e845645b0f9898c
Getter for tts_response path. This returns the path for audio output.
String getPathAudio();
1
84daa93cebe6807021c4691dc5135aac
49d29bfccb92a6ea52dee67227335ed1
Should not return other users accounts
acc = Account.objects.create() response = self.client.get('/account/%u' % acc.id) self.assertEqual(response.status_code, 403)
1
76840605f0b8bcaa70520ce471f0eebe
905e0ad563ef4d010e49d6295f3340ea
Setter for <code>bot.GPT_SCHEDULE.SUB_VERSION</code>.
void setVersion(String value);
0
86f7efd045389886bf8e0f9385f813ff
8397ae7039c8f37281a3f2fb59b0f572
Sets the ave commute time.
public class ProvinceDetail extends AbstractModel{ public void setAvgTime(Float AvgTime) { this.AvgTime = AvgTime; }
1