query_id
string
corpus_id
string
query
string
code
string
label
int64
51d7c292536d5cea8190cc02511e8e06
729e61d4493303d1b6c4bf275dbb67c6
Gets the class of the curve.
class OKPKey extends Key implements ECDHKeyInterface public function getCurve(): string { return $this->data['crv']; }
1
de8bf677d6773d0036aa5b283a436047
4f913c91e722244b16f75b1e5f64fc7f
Sorting by score, in descending order.
public class SuggestMatch extends AbstractMatch @Override public int compareTo(Match o) { return Double.compare(o.getScore(), this.getScore()); }
0
62aac5ceb06a4a9dc592693a0bc4bdfe
d4221a97814e4c0f3ffea057048d406f
only add graphs that aren't in the legend already:
debug = False if len(keywords)==0: return key = '' for k in keywords: key += k if keywords.index(k)<len(keywords)-1 : key += '__' n = 0 if debug: print 'gangGraphs: key',key,'graphs:' for g in self.Graphs: title = g.GetTitle() ...
0
799e15e7beab10b21bcfe8feeb7a7fb0
2fcd21ef1c31fff280f1117d9a6f704a
Returns the autotracking sum value for the specified item.
$q = (new QueryBuilder())->table('custpricehistory'); $q->field($q->expr('COUNT(*)')); $q->where('sessionid', $sessionID); $q->where('itemid', $itemID); $sql = DplusWire::wire('dplusdatabase')->prepare($q->render()); if ($debug) { return $q->generate_sqlquery($q->params); } else { $sql->execute($q->...
0
d5b5ff189bff543cc2394e7a3b708391
feb2e45c6267978ca704d448d2419096
Función que permite consultar la información de las ventanas de unas gradas almacenadas en el sistema.
class controlador_consultas{ public function consultar_informacion_ventana_gradas() { $GLOBALS['mensaje'] = ""; $GLOBALS['sql'] = ""; $m = new Modelo_consultas(Config::$mvc_bd_nombre, Config::$mvc_bd_usuario, Config::$mvc_bd_clave, Config::$mvc_bd_hostname); if($_SERV...
1
ad3e2e70357d93219bf11a3dbd995176
4bcd524db02f501c04c8b7d4761e4448
set stop mode(decelerate to stop, suddenly stop) on error
int32_t errors_emergency_stop(void){ h_bridge_disable(); emergency_stop = 1; motion_emergency_stop(); vregs_write(VREGS_EMERGENCY_STOP, 1); return 0; }
1
31b79e27917585133a9389fce1bb5717
01a9e9d1a91e26b1ced36e4ab08a32ce
有些时候只select几个字段,而不是全部 这里创建一个争对具体字段select的tableSource
namespace MySoft.Data [Serializable] public class SourceTable : DataTable, ISourceTable public SourceTable Select(params string[] names) { SourceTable st = this.Clone(); List<string> namelist = new List<string>(names); namelist.ForEach(p => p.ToLower()); f...
1
794493919301f28de213b3ebdace3ae6
91173769b4a418bb459b816ab3c26644
Draws logo centered.
{ PImage startLogo = loadImage("logo.png"); float x = (width - startLogo.width)/2; float y = (height - startLogo.height)/2; image(startLogo, x, y); }
1
212002b4290dbfc90fcba8388132dcdc
e02773aed6c7848f9f682d41c2f632d8
Gets the total productive time of all routes.
{ double sum = 0; for (int i = 0; i <= 13; i++ ) { if (i == 12) { continue; } sum += pathway.WellToProductResources().ElementAt(i).Value.Value; } return sum; }
0
0b2eb7be1d48fae319973b1d004c973a
c5e2d9a2353944d14ca9d46388d373ec
generate parameters based on received parameters
{ parameters.filter_type = filter_type; parameters.bandwith = BW/2; if (G < 0) { parameters.gain = G*3.75; } else { parameters.gain = G*1.75; } parameters.frequency = f_0/2; }
1
47cb8625e4563477cd71b378985642b9
a0eb6fa20fbf5492f7d069f0775ea11a
Label internal callback
protected String labelForInternal ( FileshareSecurityPolicy obj ) { return obj.getLabel(); }
1
55ff1c9b19245b8236ef728a844f4bc6
6abb77278ae6a590cca91728ac589a4c
此函数用于自身二聚体检查(严格模式),主要筛查全匹配可双向延伸类型自身引物二聚体,即自身3端序列为回文序列 例如:5'-nnnnnnnnnATGCGCAT-3' |||||||| 3'-TACGCGTAnnnnnnnnn-5' 检查通过序列本身是否等于序列本身反向互补进行判断
class HDR: def _guide_strand_same(self) -> bool: cut_at = self.cut_at pam1 = self.target_seq[cut_at + 3:cut_at + 6].upper() pam2 = self.target_seq[cut_at - 6:cut_at - 3].upper() is_for = pam1.endswith('GG') is_rev = pam2.startswith('CC') assert is_for or is_rev, (pam1, pa...
0
bcb50bbe6caf70d24afad0e739fc828b
8d7381c2032df1d5e99a8867a092fcd5
得到胃黏膜血清检查一次就诊中最高的次数
@Table(name = "HISVIEW") public class Hisview public String getMzys1() { return mzys1; }
0
bee46f546e817634b26dcd9be40f7946
c586bbfc0881baac99e8d24ca925311a
(y,x) : (int,int) connect: int return : list of (int,int) Takes a coordinate, and returns a list of the coordinates within connect spaces of (y,x) that could be attacked by a Queen (in chess) sitting in space (y,x)
if(x==self.max_x): adjac_list = [(x-1, y)] elif(x==0): adjac_list = [(x+1, y)] else: adjac_list = [(x-1, y),(x+1, y)] if(y==self.max_y): adjac_list = adjac_list + [(x, y-1)] elif(y==0): adjac_list = adjac_list + [(x, y+1...
0
21b866f459896318e8d685abf8e8a831
4e39719ddb4a062698faf2c87a209c90
Set File Separator.
{ if ( !isset( $this ) || get_class( $this ) != 'sys' ) $obj =& sys::instance(); else $obj =& $this; return $obj->file_separator; }
0
ddea3e8d0dd403af325913c271ae502b
4a227e5481f78c1ac4a462f3a47880df
Decorator doing lax type checking of methods and function arguments. The decorator has, as arguments, as list of types or tuples of types. None can be in the tuple, in which case None will be an accepted value for the argument.
def accepts(*types): def check_accepts(f): @functools.wraps(f) def accepts_wrapper(*args, **kwargs): if types[0] is object: base = 0 else: base = 1 for i, (a, t) in enumerate(zip(args, types), base): if t is None or None...
1
52fa5dd50f4684ab15e0200f127b78d7
c291940e75d4219d8f1f2e1514d7b16b
Method to set if the TAC must be shown
public abstract class BaseActivity extends AppCompatActivity public void setIsShowsTate(Boolean isShowsTate) { this.isShowsTate = isShowsTate; }
1
bb120c25c7bfb3ab1794faad6eee3f71
b45c0972396642506a95f15dd94a624e
This function looks up a namespace URI in the context stack
final Stack stack = (Stack)_namespaces.get(prefix); return stack != null && !stack.isEmpty() ? (String)stack.peek() : null; }
1
4cb79e51c958f47a931732392f3f7554
5c815017c76c929f804001481a74ac14
replay completion of split operation
void preRollBackSplit(final ObserverContext<RegionCoprocessorEnvironment> ctx) throws IOException;
0
461a186d348cc6d11129d8969ca9e60a
4e8548ae1c53c74ab8fd02d653c77c94
Get project-relative path (never null)
@NonNull String getProjectPath();
1
8527239d4df77ba10a5f6580e0056869
d7b9313cc2222f21b9303b80678726a4
This returns the multiplier of the current combo.
float Score::getMultiplier() { return multiplier; }
1
cbff2292c80164b2970f83365e4012cf
b4f6d1d4169ee36b14e5ddba9d3fa5fe
初期受信リトライダイアログの表示
String retryContent = call.argument("retryContent"); String retryUrl = call.argument("retryUrl"); RetryUpdateTipDialog.show(retryContent, retryUrl); }
1
695ef752040e9e15413f070594c9ec30
2853fcff7f4f234f708257cdf1b74f70
获取患者文书中指定页码记录的打印数据
List<Map<String, Object>> getPrintData(Map<String, Object> parameters);
0
cc259e05f1b028a6571896bcc8d9b29e
f45046a646e752aaf8028658cab3250d
Gets the metadata for the object value type for object values.
public TypeMetaData<M> getModelObjectMetaData();
1
c1e5e0bc89589e967180301ae8ad99ef
451251e65dbe0cb60141ebbdc2978c29
Syntax : static void Hssl_lResetKernels(void) Service ID : NA Sync/Async : Synchronous Reentrancy : NA Parameters (in) : None Parameters (out): None Return value : None Description : local function to reset all available kernels
{ memset(nb->kernel_ener_noprune_ptr, 0, sizeof(nb->kernel_ener_noprune_ptr)); memset(nb->kernel_ener_prune_ptr, 0, sizeof(nb->kernel_ener_prune_ptr)); memset(nb->kernel_noener_noprune_ptr, 0, sizeof(nb->kernel_noener_noprune_ptr)); memset(nb->kernel_noener_prune_ptr, 0, sizeof(nb->kernel_noener_prune_p...
1
3dc0c1eddd1b589e7e15f45acbbc1fac
9886a4f558c7f5b0a4e57b6fa84398f3
calculate time-dependent dead time function returns average deadtime over whole run
def empirical_deadtime(band,trange,verbose=0,retries=20,feeclkratio=0.966): model = {'FUV':[-0.000386611005025,76.5419507472], 'NUV':[-0.000417794996843,77.1516557638]} rawexpt = trange[1]-trange[0] gcr = gQuery.getValue(gQuery.globalcounts(band,trange[0],trange[1]))/rawexpt refrate = model...
1
4d70a10c7471d77faba018e350966b7e
076d795003c3ce710d360f442d3c05ea
生成器模板文件创建Validate
try { ClasspathResourceLoader resourceLoader=new ClasspathResourceLoader(); Configuration cfg=Configuration.defaultConfiguration(); cfg.setStatementStart("@["); cfg.setStatementEnd("/]"); cfg.addPkg( "com.hsd" ); GroupTemplate gt=new GroupTemplate(resourceLoader,cfg); gt.registerFunctionPackage("...
1
af7910e3406c7cf0be08cc482ba4d58d
e8deecd4307ed08302086b8272b60198
商品データの読み込み
{ $pdo->beginTransaction(); try { $data = array(); $statement = $pdo->query("SET NAMES utf8;"); $statement = $pdo->query("SELECT item.*,stock.stock FROM item INNER JOIN stock ON item.id = stock.id"); while ($row = $statement->fetch(PDO::FETCH_ASSOC)) { $data[] = array...
1
5e0aedb6cbbdb0d3d3417cb59bca8de1
da64745b6f89d9ddb270713686b89257
No error but do-nothing
local function nothing() end
1
b0d42dab5b96526d0bb899c56e784331
65f10447ec4ba80691b61ae97930fda6
设置音频播放信息。
{ AUDIO_PRINT(AUDIO_DEBUG_LEVEL_DEBUG, "[%s] \n", __FUNCTION__); return MDrv_AUDIO_SetWmaInfo(infoType, param1, param2); }
1
f39f16c0901d7770a8993096bb393df3
69ba794bb4b2584f623dd135ae73fa17
Calculate time-dependent and time-mean energy budget due to dissipation. Make sure to use full u, v and h fields. Contribution from background terms will be removed after time averaging.
class WRFEnviron(object): def DE_z(self,nc0,nc1,t,energy,lower,upper): U0 = nc0.variables['U'][t,...] U1 = nc1.variables['U'][t,...] Ud = U0 - U1 V0 = nc0.variables['V'][t,...] V1 = nc1.variables['V'][t,...] Vd = V0 - V1 if lower or upper: P0 = nc0.var...
0
ba79ba399f7354cc8b4c78b72fffb756
18a95224fb8da5635a10984bc06265b3
检查data_url中的内容是否合法
{ if (!self::isEmpty($data)) return false; return preg_match(RegexHelper::URL, $data) ? true : false; }
1
1282a0209bfab9797ead90333c457cc9
94efb624401ce14650d15c5f101872fa
swap the ith bit and jth bit
{ *result = x; if (((x >> i) & 1) != ((x >> j) & 1)) { EPI::ull bit_mask = (1ll << i) | (1ll << j); *result = x ^ bit_mask; } }
1
75aa6f87eee073f5d56c353d9b4ee7b1
d7a7b5f4b7df2e0038f603ebbbbf431a
Puts a mark on the line at the current position of the sim character
{ ScintillaControl sci = Globals.SciControl; Int32 line = sci.LineFromPosition(sci.CurrentPos); MarkerManager.ToggleMarker(sci, 0, line); }
1
99bc6fe192f8a4f5d087b457761a6f60
5fe56e093d9d0984af836b05650b3bdf
获取全部父级权限
class AuthService extends CommonService public function getAllLevelAuths($id = 0){ $auths = $this->getChildAuths($id); if(empty($auths)){ return array(); } foreach ($auths as $key=>$auth){ $child_auths = $this->getAllLevelAuths($auth['id']); if(empty($...
0
309ab50ccedb490949c4c781447742d9
e8db74c96306b4c79276b28e87e808c9
Gets the appliedDateTime property value. The timestamp when the approval decision was applied.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't applied the decision or it was automatically applied. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC...
public class BdFeedBackEventImpl extends ExtendedDataObjectImpl implements BdFeedBackEvent public Date getAppDate() { return DataUtil.toDate(super.getByIndex(INDEX_APPDATE, true)); }
0
90fa5f3d89efd8198df4db5f8b82e3e5
e63f742585c0bfaad7d1b20196fd42c0
Prints the time on the screen.
function printTime() { var d = new Date(); var hours = d.getHours(); var mins = d.getMinutes(); var secs = d.getSeconds(); document.body.innerHTML = hours+":"+mins+":"+secs; }
1
d14f98a9b191cf084b00a2b0970e0caf
a385965bb05862b83616acfe9bb9678e
Initializes the service by doing tasks such as setting up request handlers.
namespace EmsApi.Client.V2 public class EmsApiService : IDisposable private void Initialize() { m_cleanup = new List<Action>(); m_authCallbacks = new List<Action<string>>(); m_exceptionCallbacks = new List<Action<string>>(); m_authHandler = new Authentication....
1
f31dfd781bbc41c6bc3e657b687b4f0f
eb0c32183cdeeff9bb9269fbf9022039
Updates the attempts left in the current game session
public static class GameGlobals public static void UpdateAttempt(int value) { liftTrackerState[attemptOn] = value; attemptOn++; }
0
819ece0dec962ea8ae672858533d1b93
218eebe7a22a463fd379ef8c5d58960d
AI factory, takes string of AI name and returns that AI. To add new AI, include it at the top of this file, then add an if statement following the examples
randomAI = RandomAI() self.menu.add.button(randomAI.name, self.AI_play, randomAI) astar = AStar() self.menu.add.button(astar.name, self.AI_play, astar) zstar = ZStar() self.menu.add.button(zstar.name, self.AI_play, zstar)
0
7ca5d84ef90a56a7492637e3b433b341
828946df6fb0dd1cd884672fb7513886
获取子分类的所有SKU
{ $allCate = app('api')->goods->get('cate/lists'); $isFirstMenu = false; foreach($allCate as $key=>$val){ if($val['id']==$cate_id){ if($val['pid']==0){ $isFirstMenu = true; } break; } } ...
1
961a1d73fbff9a636d4da057b33b8797
62bdf1e65a3f7f785c91d97adf12c616
Method to get slack user information by their slack user id
def get_user_id(email): url = "https://slack.com/api/users.lookupByEmail" querystring = {"email": email} response = requests.get(url, headers=headers, params=querystring) return response.json()["user"]["id"]
0
1936550768da6731e0dd27525ffc23e5
4f9a298f4354763a1b961c1e053cae64
diagonal traversal ===================================================================================
class Solution vector<int> spirallyTraverse(vector<vector<int> > matrix, int r, int c) { vector<int> arr; int top = 0, right = c-1, bottom = r-1, left = 0; while(top <= bottom && left <= right){ for(int i=left;i<=right;i++){ arr.push_back(matrix[top][i]); ...
0
6149c17cfc2490b08b3d686a154cddc1
84892cba135210a45a0d51547a5b4c53
Set calibration date of the Tag
int32_t _calendar_set_date(struct calendar_dev *const dev, struct calendar_date *const p_calendar_date) { uint32_t ul_date = 0; ASSERT(dev && dev->hw); ul_date |= ((p_calendar_date->year / BCD_FACTOR / BCD_FACTOR / BCD_FACTOR) << (RTC_CALR_CENT_Pos + BCD_SHIFT) | ((p_calendar_date->year / BCD_FACTOR / B...
1
c751712895b941c8e630b7bd2c79bc01
ef2c436909507efa1263e8e203731838
Enables GL lighting effects
{ glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_LIGHT1); glShadeModel(GL_SMOOTH); GLfloat lightIntensity[] = { 0.7f, 0.7f, 0.7f, 1.0f }; GLfloat light_position[] = { 10, 9, 8.0f, 0.0f }; glLightfv(GL_LIGHT0, GL_POSITION, light_position); glLightfv(GL_LIGHT0, GL_DIFFUSE, lightIntensity); GLfloat light...
1
2561614004e86faa8a38d36b04fa2003
8a0d0d8fd7acb973123622009c6eee48
Modify the config and start up the DataNodes.
LOG.info("Starting server") var txnLog: FileTxnSnapLog? = null try { txnLog = FileTxnSnapLog(config.dataLogDir, config.dataDir) val shutdownLatch = CountDownLatch(1) val zkServer = ZkServer(txnLog, config, shutdownLatch) this.zkServer = zkServer ...
0
d5952ab68b37191187c58e3152407a59
ed0a2cd135d55ca8b5dbc70ee5fa587a
导出全部学校管理员
class Educator extends Model function export() { if (Request::input('range') == 0) { $userIds = (new Department)->userIds( Request::input('id'), 'educator' ); $ids = User::with('educator') ->whereIn('id', $userIds)->get() ->pluc...
0
cf3fd3fff480fd617d5f13ea2771b661
db5fa309d18fab54613438737c406de7
Метод, возвращающий всех получателей
class SmsRuProvider implements SmsDeliveryInterface public function getSenders() { $url = $this->protocol . '://' . $this->domain . '/my/senders'; $request = $this->sendRequest($url); return $this->checkReplyError($request, 'getSenders'); }
0
09488186c9cc1c11f6cafff428a0b600
bd9e986f114960b53f390910f2586178
Scopes to the friends the passed in user has. Takes logged in user if none are passed.
{ if(is_null($userId)) { $userId = $this->loggedInUserId(); } return $query->whereHas('followers', function($q) use($userId) { $q->where('user_id', '=', $userId); }); }
1
1f2632f75a8bc4d9106ed22ab2ffe3c9
8cd6de42ea08364139fc34fedd24acb9
Returns the value-service from the resource type input.
SingleValueResource getValueResourceType();
0
1eb33b2e6559a97b433b7734cc2364d1
2235f8c4389f859cd00c24d3f80b29a5
判断2个长整型是否相等
public final class StringUtil public static boolean isEqualValue(long long1, long long2) { return long1 == long2; }
1
fb4ec58fef7872c577fc4099ea4cefaf
4ffc988e5216b88d2c9898eec40b20fe
Gets the Active Tcp Listeners on this machine.
{ IPGlobalProperties ipGlobalProperties = IPGlobalProperties.GetIPGlobalProperties(); IPEndPoint[] ipsTCP = ipGlobalProperties.GetActiveTcpListeners(); IPEndPoint[] ipsUDP = ipGlobalProperties.GetActiveUdpListeners(); TcpConnectionInformation[] tcpConnInfoArray = ipGlobalProperties.G...
1
fbf78d19900232cf009ad220b4a047c2
746b9557a336dc181d99f2d12b2e480b
円と交差する点のリスト Verify: http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_7_E&langja
result = [] [x0, y0], [x1, y1] = p_list x_mid, y_mid = round((x0+x1)/2), round((y0+y1)/2) a, b = round(abs(x1-x0)/2), round(abs(y1-y0)/2) x, y = 0, b d1 = ((b * b) - (a * a * b) + (0.25 * a * a)) while (b*b*x < a*a*y): result.append([x+x_mid, y+y_mid]) result.append([x+x_mi...
0
6bcbfde32ed092c59ba7d67a001a47dc
a8b30b9f9879eab48024d83a931aa9d4
GET: Universidad
class UniversidadController extends Controller public function index() { $universidades = Universidad::all(); return view('universidad.index',compact('universidades')); }
1
56ab9f4e4018d3b137a9acf26182b52c
ae4469f3015bb3fd78116008c50c64c3
Finds the average of the percolation thresholds
public class PercolationStats public double stddev() { return StdStats.stddev(pthreshold); }
0
d7221b23bdebf42bdda93e92cb70280c
2b7362be363287e88720c574135d7ff1
Sets (as xml) the "bransje" element
class BrfAddress extends DomainObject function setBrf($a_oBrf) { $this->_iBrfId = $a_oBrf->getId(); $this->_oBrf = $a_oBrf; }
0
d3731c7125a519b13a632a898566516c
b6cdf22d1aaadf801b8d04cdcab43b0e
将一个日期型转换为'yyyy-MM-dd HH:mm:ss'格式字串
public class DateUtils public static String dateConvertToStr(Date date){ return dateConvertToStr(date,"yyyy-MM-dd HH:mm:ss"); }
1
c2643b7819d44d4d3c37a07b59012919
9be0c799aa5c515ec153a3f42a3f1f60
Set B.Partner Flat Discount. Use flat discount defined on Business Partner Level
{ if (DropShip_BPartner_ID < 1) set_Value (COLUMNNAME_DropShip_BPartner_ID, null); else set_Value (COLUMNNAME_DropShip_BPartner_ID, Integer.valueOf(DropShip_BPartner_ID)); }
0
518f2667b534e2025ee4506dd2765699
908433193eda8a4bfc8a2e20c904771a
Utility to read the training set file names.
class BaseStructure: def get_train_labels(cls, dataset_path): return _get_file_list(dataset_path, cls.train_labels, cls.label_ext)
1
7b9956f190aab7dae5d44e5bfb580909
86d8688d5c820d76cb1da7dda07a15ab
Searches all Neutrals that are in the field, and locks in to the nearest one.
public class Player : Entity bool searchEnemy() { Targetable[] enemies = FindObjectsOfType<Targetable>(); if (enemies.Length == 0) { return false; } Targetable closest = null; float? oldDistance = null; foreach (Targetable e in enemies) { float newDi...
0
52064100c5150d61b91a39fe545c4451
878b7a237cbf729b233d8ddbe226fdad
获取json报文头
class GetData: def get_header_for_json(self, row): if self.get_req_header(row)!=None: for_json = OperationJson(filename="../dataconfig/header.json") req_header = for_json.get_data(self.get_req_header(row)) return req_header else: return None
1
a92ddf4fa566cb6d7ee0cc4051f6d963
b871b71bc7c8b0b1a6029bad6adaeeec
Permet de charger un paramètre en local sur le Karotz
String leFichier = System.getProperty("user.dir") + fichier; FileInputStream fileInputStream = new FileInputStream(leFichier); Properties config = new Properties(); config.load(fileInputStream); String tmp = config.getProperty(key); fileInputStream.close(); leFichier...
1
cb8d2d6ad32c384b3402aa11fddf124b
63a9c65ac323ee354649e8eac7da05b9
按页获取已经处理过的ReportUser
Pager<ReportUser> getUncheckedByPager(Pager<ReportUser> pager) throws BusinessException ;
0
199cd7a32f843b99f482f5ecfdd032e5
0be2cee4fec8e76b8fed1ce343fc5094
tests inserting duplicate elements in a List and a SortedList
def test_sorted_list(aList): l = [] rng = random.Random() for i in range(0, 100): record = IntRecord(rng.randrange(-100, 100)) aList.add(record) l.append(record) for i in range(0, 200): record = IntRecord(rng.randrange(-100, 100)) assert(aList.contains(record) == ...
1
4ec3edb4aa6c6532186fce6917b6aec0
4ac42977440190fc88658c2ac48e10e0
Activates the tab which is representing the specified file. The name of the model (This is intended to be the full path name of the PNML file represented by this model.)
public class SWTEEFBot extends SWTWorkbenchBot public SWTBotEditor openActiveModel() { IFile file = EEFTestsResourceUtils.workspaceFile(activeResource); return openFile(file); }
0
14c1f8ed0f9c91f7727e266d0a9aec3e
1f841807bb53eb4b0b8569fb163d2617
提款类型的标题头
public class MyOrderActivity extends BasicActivity implements MyItemClickListener, MyItemLongClickListener private void HttpTitleData() { HashMap<String, String> hashMap = new HashMap<>(); String unitType = GlobalApplication.getInstance().getPerson(MyOrderActivity.this).getUnitType(); if (unitTy...
1
a806d62be89d415d6c4b6c219089742a
e218bdd1135d0297368086bfce9ec58a
Updates widget position/size.
class Frame(Widget): def _update_position_horizontal(self) -> None: xleft = 0 xright = 0 wcenter = 0 for w in self._widgets.values(): align, vpos = self._widgets_props[w.get_id()] if not w.is_visible(check_frame=False) or w.is_floating(): conti...
1
eeaad747d37d2001cb2d47f8cea7063c
5d4c4785beab711b6edc2cad91cb0210
Display MessageBox when the About menu item is selected
namespace CS1400_Assignment02 public partial class Form1 : Form private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { MessageBox.Show(aboutMessage); }
1
0a08edafa7c2a7b5b58fbaea1242cd63
3765b2713bb8f0fb92f121164e8b09e2
只要有可能優先move至角
void move2lowest(int n) { nearpoints[0].total = nearpoints[0].grativity + nearpoints[0].landform + nearpoints[0].poison; Point lowest = nearpoints[0]; int flag = n; for (int i = 0; i < n; i++) { nearpoints[i].total = nearpoints[i].grativity + nearpoints[i].landform + nearpoints[i].poison; if (nearpoints[i].to...
0
b369743a45130a772d6f1276c7a132f2
e419b7a7bfbf081dcbd6ec800da98a38
Starting the game that brings the loading screen up and then loads the next level
public class LevelLoader : MonoBehaviour public void LoadStart() { StartCoroutine(LoadLevel(1)); }
1
8d018557e7ef04c0b8f6659042a24fa6
9a49e304c78269477ba4afa101b9b5d0
Delete the posting of a draft document being deleted
const id = this.getDraftId(assignId, userId, siteId); if (typeof this.drafts[id] != 'undefined') { delete this.drafts[id]; } }
1
4f5b4d06d1ea62ac92ac49a2db48982f
40e4a06fae124a36729818c4d6d4593e
**************************************SIGNUP INTERFACE*********************************************
function signup() { $request = \Slim\Slim::getInstance()->request(); $data = json_decode($request->getBody()); $email_id=$data->email_id; $first_name=$data->first_name; $password=$data->password; $mobile_no=$data->mobile_no; $user_status=$data->user_status; $last_name=$data->last_name; ...
1
753efe723e546d5fc0f5aa07a2c7b05c
64866b212998edb045b6845de416f740
event listener for audio test button
int AudioTest(void) { char answer[1]; ConsoleUtilsPrintf("\n**************************************************************\n"); ConsoleUtilsPrintf("\n AUDIO TEST \n"); ConsoleUtilsPrintf("\n**************************************************************\n"); ConsoleUtilsPrintf("\nLoading...
0
4d29d15edca4d07378f8761d95230fa0
69da66f72ef60c1e7ed78c36cfcf12e9
Calcula a**n recursivamente
if(n < 1) return 0; if(n == 1) return a; if(n % 2 == 0) { n /= 2; return Pow2(a, n) * Pow2(a, n); } else { n = --n / 2; return Pow2(a, n) * Pow2(a, n) * a; } }
1
6ff13c2d27ba46a470ff24929b7996d8
6a1eb64e533f103454b8f72bfd4f42a6
グローバルナビを表示するかどうか
export class ReportNavigation public get ShowNavigation(): boolean { return this._showNavigation; }
1
214525363ad770f7b119a4feafdb7341
401976d8a5a8f6338fe67cf7efc2ce63
Gets the word used to invoke the help
public class HelpCommand extends CommandBase public String getName() { return "help"; }
1
b066949bba929ecd1a1ee3c4ee346414
f8b1932cbb305bb819f92f8ceaabf766
Monitor all lines executed
def monitor(execution): with click.progressbar(length=100, label=execution.status) as bar: while not execution.isComplete(): execution.checkStatus(sleepSecs=1) bar.label = execution.status bar.update(max(execution.percentCompleted, 1)) if execution.isSucceded(): ...
0
c51859fb5e9bd83aea61c0607fb4c1d2
7a27059667039226e104d84be3cbcdc3
生成一个不大于maxNum的随机整数
function randomNum(max){ return parseInt(Math.random()*max); }
1
14d4350e7e44e54590402b6c0fe8f85b
8a687966daa4b3a6cd87442b84cbdc3d
Test if string contains a valid date value in format YYYY-MM-DD
if not re.match(r'^\d{2}/\d{2}/\d{4}$', data): self.errors[f'{date_name}'] = f'Input "{date_name}" as dd/mm/yyyy' return False return True
0
484a2ecdbc44fa7099d65c1b0c09b2fb
6777a7fa0a9fc8c117ff462574c91d12
通过新浪接口获取IP地区数据
$class = new \Org\Net\IpLocation('qqwry.dat'); $data = $class -> getlocation('114.215.159.214'); dump($data); }
0
fb880e50a536370ea65efcdd25092711
cad5d7e4ebbf22b44678a4d1f901272e
Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. The method is simply here for completeness and should not be used for any c...
public sealed partial class MappingLimitSettingsDepthDescriptor : SerializableDescriptor<MappingLimitSettingsDepthDescriptor> public MappingLimitSettingsDepthDescriptor Limit(int? limit) { LimitValue = limit; return Self; }
0
443f0259c794fce046a666d596a3b4f5
5cb54df25d190a286a7e40c862f4f8f7
Set the value of [mission_email_optin] column.
global $wpdb; $table = $wpdb->prefix . self::$table; $value = (int) $value; $sql = " UPDATE {$table} SET {$flag} = {$value} WHERE email = '$email' ;" ; $result = $wpdb->query...
1
662630f540c5fe8de9f608861994e568
f03f708522de888508213111a7eb3bf8
Return the total number of pages for a specific job sort
url = 'https://careers.homedepot.com/job-search-results/?keyword=engineer&location=United%20States&country=US&radius=15&pg=1' soup = self.get_url(url) num_results = int(soup.find(id = 'live-results-counter').get_text()) total_num_pages = math.ceil(num_results/10) return total_num...
1
c767a0486c91760cbed8b7782bfc4099
cd9eb6fcc923a4657cc15fb7b54211be
Asynchronous end method for the <see cref="BeginBroadcastPing"/> method.
{ try { var client = (Socket)asyncResult.AsyncState; int bytesSent = client.EndSend(asyncResult); _sendDone.Set(); } catch (Exception) { throw; } }
0
5d871c8fd67cbd8914520d220c1bb882
afbf161efe47e5912e2aaf9859390609
根据优惠券id查询商品id
public List<Goods> searchCouponGoods( @Param("pageNumKey") int pageNum, @Param("pageSizeKey") int pageSize ,@Param("couponId") String couponId);
1
0d31b4501730ed7ec3f0f5c2d95f954c
854f8bf9bc8c321e6c42fed2a7e265c8
[公共] 给定日期对象是否在今日日期之前
@SuppressWarnings("serial") public abstract class DateUtil public static class DateTime extends Date public boolean beforeOfDay(Date date) { return this.before(date, Calendar.DATE); }
1
b59796bb4ade802c16ade236f653c34a
cdf8e7bae7007d7809ca4e3b5435374b
根据ip和站点获取访问记录
AccessIP getAccessWithIP(String ip, Integer blogId);
1
506d3e980a49d3bf2e67df403849d3b6
50ac76b1d86c0cd390afcaab42086509
Скрывает для пользователя раздел видеокаталога.
export class VKApi extends BaseVKApi public async videoDeleteAlbum(params: MethodsProps.VideoDeleteAlbumParams): Promise<Responses.BaseOkResponse> { return super.call("video.deleteAlbum", params) }
0
a6cc3b529604cd249ca0b067c5c8e725
1c984abcc5d10b015d165d369ffbd04c
DocumentGenerator constructor.
class GenerateApiDocumentationsCommand extends ConsoleCommand public function __construct() { parent::__construct(); }
0
4827edf17d67cd67b6a6b114b8779d77
867fc904e607ff302ce9db0ad40eedc7
Get the HTML-code wich represents a form to select how many items a page should contain.
{ $ret = array(); $options = SHIN_Core::$_config['input']['item_per_page_values']; foreach($options as $k=>$v){ if(!is_int($v)){ $options[$k] = SHIN_Core::$_language->line($v); } } $nedded_libs = array('help' => array('form')); SHIN_Core::postInit($nedded_libs); array_push($ret, form_dropdown($...
1
d8f138a1f574ef9a672e4d5c8ad6a241
2efbd106cd3ecf09f546a3ec918fc782
点击人员状态
$.ajax({ "dataType" : "json", "type" : "POST", "sync" : false, "contentType":"application/x-www-form-urlencoded; charset=utf-8", "url" : "queryuserinfobyid?userid=" + userid + "&date=" + new Date().getTime(), "success" : function(aDataSet){ unbindClickToCancel...
0
90f6366937eaae817b6a8e77b8b3308d
79800b986de32ebfb8e3021b85785ff3
对消息做进一步转化,当MsgId==1时,替换消息开关的真实用户名 @894e0c4caa27eeef705efaf55235a2a2:<br/>...
r = re.match('(@[0-9a-z]*?):<br/>(.*)$', msg['Content']) if r: actualUserName, content = r.groups() chatroomUserName = msg['FromUserName'] elif msg['FromUserName'] == loginInfo['username']: actualUserName = loginInfo['username'] content = msg['Content'] chatroomUserNa...
1
a88ddfc2929cf296267516c5720d2f8f
252509d691c10a706ab7237e542db58c
Whether an instruction is a texture instruction
namespace Vim.DataFormat public static class DocumentExtensions public static bool IsTextureExtension(string ext) => TextureExtensions.Any(t => string.Equals(ext, t, StringComparison.OrdinalIgnoreCase));
0
95e8369e5cf5355aa65ca0c523976e4c
79edac0b81220eff2b13fede69834f52
Print AST logical not expression.
{ checker_tok_t *tlnot; int rc; tlnot = (checker_tok_t *) elnot->tlnot.data; checker_check_nows_after(scope, tlnot, "Unexpected whitespace after '!'."); rc = checker_check_expr(scope, elnot->bexpr); if (rc != EOK) return rc; return EOK; }
0
32f9d170f84a917c6676e5b71824d6f1
0049620707e2c4c816bd888d79d0c46b
@brief Zeigt die pro Spieler gebrauchte Zeit an.
void GameView::updateTime(int time, Game::Player player) { if(player == Game::WhiteP) ui->whiteCount->display(time); else ui->blackCount->display(time); }
1
51d3ea2ac073d73b0a02604938012fbf
7e21b32ac9c8378b1ad7dfb4d6a5aaa8
Subtract two clock measurements and convert difference to seconds, excluding measurement time.
class Action: def __sub__(self, other): td = (self._start - other._start) return int(td.total_seconds())
1
1879955b40e795ed229709c05590297f
efa1a2c7bc09dc005246b9a1991d5152
修改一条参加学生活动的绩效记录
@Controller @RequestMapping("/personalMessageUpdate") public class personaluserUpdateHandler @RequestMapping(value="/personal_Update_performance_awards",method={RequestMethod.POST}) @ResponseBody public int Updatepersonal(@RequestBody Personal_performance_awards personal_performance_awards){ if((persona...
1
b2efb024f2bdeb822d3bda4031a592bb
abc0af7054d055a99ce5a41a9cc3054d
Установить почту получателя
class Email public function setRecipient($email) { $this->recipient = $email; }
1
b096f6b1acec06d65671f5ac39a56612
b6a45553f0b8a409cbfc9f983544ba82
라벨이 클릭 될 때 호출되는 함수
namespace Voice2 public partial class welcome : Form private void label2_Click(object sender, EventArgs e) { clicker(); }
1
b03cde931862da4edb89c4b6da590e29
9a67443409441bfde634fafc198ba65c
Get the Nics info of a server. This query the Nics info of the specified server.
class Status(VapiInterface): def get(self, server_id, ): return self._invoke('get', { 'server_id': server_id, })
0