query_id
string
corpus_id
string
query
string
code
string
label
int64
5a5d8e3db84af8f487bf540b2460b820
f8b2910d7fca7bfee54b9a4ca85ac1c5
获取JD运单号
if (!isset($data['customerCode']) || empty($data['customerCode'])) { $data['customerCode'] = $this->customerCode; } $result = $this->request_send('jingdong.etms.waybillcode.get', $data); if (PHP_VERSION >= 5.4) { $return = json_decode($result, true, 512, JSON_BIGI...
1
5b9411b23f8e9e2f48d8d98d4a86deeb
facbf4be4a1dbc19fb900bf096adf9a5
Set whether the GtkText widget can be edited by the user or not. This still allows you the programmer to make changes with the various GtkText functions.
class QtComboBox(QtControl): def on_action_set_editable(self, content): self.set_editable(content['editable']) self.widget().update()
0
575e1b1babee647503a5e9051fe9877c
cfdcfd95997f9eb40c23986a7b90dcf2
rotating the magnetometer's value using accelometer's quaternion
{ float ax = Acc->X; float ay = Acc->Y; float az = Acc->Z; float gx = Gyr->X; float gy = Gyr->Y; float gz = Gyr->Z; float norm; float vx; float vy; float vz; float ex; float ey; float ez; static unsigned char i = 0; static float Angle_Pit_Sum = 0; static float Angle_Rol_Sum = 0; if(ax*ay*az==0) { ...
0
c922fede71e07f0db1d4e05252a24ca5
1bd81fbafc76574615b955d7861a0fbe
Check to see if DelaySeconds property is set
namespace Amazon.MediaPackage.Model public partial class DashPackage internal bool IsSetSuggestedPresentationDelaySeconds() { return this._suggestedPresentationDelaySeconds.HasValue; }
1
720d06a45f2a13297a4e99325d9d83a4
dfc504627623774d015a4b3855425ffe
수정일 경우 입력불가 항목 비활성화 처리
var aFieldsCanNotChange = ["CREATETIME", "SEARCHCODE", "UPDATETIME"]; if (aFieldsCanNotChange.indexOf(formFieldObject.getFieldName()) !== -1) { formFieldObject.getInput().prop("disabled", "disabled"); formFieldObject.getInput().css("cursor", "not-allowed"); formFieldO...
1
b9874046271a1fa383aee72aed020726
c9ab51a309b5e8ceac4fa29b98c80a6f
@brief BLE Watcher Device Updated Callback. Called when a device is updated.
static void ble_on_conn_update_complete_event( rsi_ble_event_conn_update_t *resp_conn_update, uint16_t resp_status) { rsi_6byte_dev_address_to_ascii((int8_t *) remote_dev_addr_conn_update, (uint8_t *) resp_conn_update->dev_addr); if (resp_status != 0) { LOG_PRINT("\n RSI_BLE_CONN_UPDATE_EVENT FAILED : %d \n", ...
1
a815dc84ebdcdce85fe0d67edd8c2829
7e276398e4e3a8632bd5f584fb38949a
Gets the shipment weight. Calculated by adding the weight of each item to the weight of the package type. The shipment weight, or NULL if unknown.
public function getTotalWeight();
1
4c0528d531e002d651a7ea9c410fc067
d4f9502974e8c70ce8be0d7106e9fdf3
Certificate revocation date. Attributes: non-creatable, non-modifiable
class DefenderDefender(object): def certificate_expiration(self): return self._certificate_expiration
0
a5ea482ffdc6f2cfcda08a38b9b03ff1
41da3013149d7979ce8def9d26f3098b
Переключение на основной документ
namespace KP.Pages public partial class User : Page private void main_Click(object sender, RoutedEventArgs e) { frame.Navigate(new Uri("Pages/Main.xaml", UriKind.RelativeOrAbsolute)); }
1
b5ed293b6aa4ff03d13a3ca0d0ebf912
d87dd91c40352940bb60f1d4cd3a64f0
Move all changelog entries from the CHANGELOG.md file for versions prior to the provided version to the changelog archive. Versions should be used to determine which entries are moved to archive as versions are the most accurate piece of context found within a changelog entry to determine its relationship to other chan...
async function updateChangelog( version: string, cwd: string, pkg?: string | { pkg: string; pkgShortName: string; needScope?: boolean }, isDryRun?: boolean ) { let pkgName = "", pkgShortName = ""; let needScope = true; if (typeof pkg === "string") { pkgName = pkg; needScope = true; } else { pkg = pkg ||...
0
e699b264c655b37926b3d87cfda2e7c0
ffb12ac5928a0a1293bdd662e52cad3a
Tell Tor to clean the circuit and get a new identity.
class Token(VaultApiBase): def tidy(self, mount_point=DEFAULT_MOUNT_POINT): api_path = f"/v1/auth/{mount_point}/tidy" return self._adapter.post( url=api_path, )
0
437ebe50bd62b0034d2620dd91bf385a
22cf36b79644268f8808d0f5d2f9a2fd
Destruir el objeto al entrar al trigger del jugador
public class ItemPickup : MonoBehaviour void OnTriggerEnter(Collider otherCollider){ if (otherCollider.gameObject.CompareTag("Player")){ Destroy(gameObject); } }
1
13c63dc7f8da43ef0367803e5afdc1e3
c5ae33ae3d29f6cfee0fcc147825489d
for each word in word_features checks if appears in document
def Word2Features(document,word_features): words = word_tokenize(document,language='english') words = set([w for w in words if w not in config.stopwords]) features = {} for w in word_features: features[w] = (w in words) return features
1
a6830c17fa5149534d99d3c20f621299
4b97aabd5f714460fd9ad25d4bf67e0c
Called when got it button is clicked.
public class MainActivityFragment extends Fragment implements callBackTask public void gotData() { Intent intent = new Intent(getActivity(), JokeActivityMain.class); intent.putExtra(JokeActivityMain.JOKE_KEY, myJoke); progress.setVisibility(View.GONE); startActivity(intent); }
0
e1ac2e77a44fed542c48c1adac35f122
9dfa06014a0af4184a418dca42430657
判断是否是即时频道
if gf:isAndroid() and self:getChannelNO() == CHANNEL_NO["leiting"].channelNo then return true elseif gf:isIos() and self:getChannelNO() == CHANNEL_NO["leiting"].channelIosNo then return true end return false end
1
f8a8f3cd6a7e9c0a275b37707da7a40b
b8e52644a81de6b0ac3c038d03ad4ce9
获取放大的view
Mode mode = chooseMode(view); if (mode == null) { return null; } Bitmap target = Bitmap.createBitmap(mode.mWidth, mode.mHeight, mode.mConfig); Canvas canvas = new Canvas(target); if (mode.mWidth != mode.mSourceWidth) { float scale = 1.f * mode.mWid...
1
bfc2009e5b135acc274bf04c15118f50
e349a9b8168f7843e2334d7f84a27cf5
Plays the audio using HTML5 audio object.
try (InputStream newInputStream = audioContents.newInput(); AudioInputStream ais = AudioSystem.getAudioInputStream(newInputStream)) { playAudio(ais, volume); } catch (UnsupportedAudioFileException | IOException | LineUnavailableException e) { log.error(e.getMessage(), e); } }
0
d3528ebfe695d26d70bd9256f21c85d9
ba231098d99bfc975dde419830f2c698
Rotate menu items with the menu itself
for ( var i=0; i < menuItems.length; i++ ) { var item = menuItems[i]; item.style[ transitionProp + 'Delay' ] = ( i * 75 ) + 'ms'; item.classList.toggle('is--moved'); } }
0
80162cf5817a6e2a5238c9e62f2a79f3
4d1996e316267e6d133b1895e02c90be
Morris 中序遍历,时间复杂度 O(n),空间复杂度 O(1)
public class Code01_MorrisTraversal public static void morrisPre(Node head){ if (head == null){ return; } Node cur = head; Node mostRight = null; while (cur != null){ mostRight = cur.left; if (mostRight != null){ while (mostRigh...
0
503395a7b8797dd67c4163780e9a5b6e
f9693849bde33e5cb573189a941abe5f
first prepare the arguments on the stack we evaluate them right-to-left (seems natural here)
static void argument_stack(char **parse,int count,void **esp){ int i,j; uint32_t argv[count]; for(i = count-1; i>=0; i--){ for(j = strlen(parse[i]); j>=0; j--){ *esp -= 1; ** (char**)esp = parse[i][j]; } argv[i] = (uint32_t)(*esp); } *esp = (uint32_t) (*esp) & 0xfffffffc; *esp -= 4; memset(*esp, NU...
1
209c9730a1b92242c6fda33cbab56f61
d98b4e89554f2c5e4b69b8e81e468b83
Build the actual execution Graph for each Plugin. This method dertemines the order in which the Plugin has to be executed
class PluginHandler(BaseComponent, PluginHandlerInterface): def InitExecutionRegistry(self): self.ExecutionRegistry = defaultdict(list) for Target in self.Scope: self.ExecutionRegistry[Target] = []
0
852ed22c8984c42287833e7fa9c15b90
d979465e97715b26eaa17b9a6ceb53fb
接口:获取武将
function TeamData:getKnightDataByID( id ) if(self._knightDataDic == nil)then return nil end local key = KNIGHT_KEY..tostring(id) return self._knightDataDic[key] end
1
dec6f9e5c032f13ca557c59e283b0b99
9d7cd21da4dedd379ea299da21fc2506
Таймер повторной отправки смс
export default class SendSMS extends PureComponent countDownTimer() { this.setState({ codeAlreadySend: true, seconds: 60, }); this.timerInterval = setInterval(() => { if (this.state.seconds === 0) { return clearInterval(this.timerInterval); ...
1
e41e70fc1ac4355f174b3d2831141a4d
372b450823019298141409dc8a3112a8
Retrieves the first element from the queue and returns it; returns `null` if the queue is empty.
export default class Queue peek() { if (this.isEmpty()) { return null; } return this._elements[0]; }
1
32e6f42ad58329eac7d13564c6547d33
57c80fe52d428d3c36bb6896112d952f
Process Numeric Errors responses from the server.
class Client implements ClientInterface, \IteratorAggregate protected function onErrorResponse(CommandInterface $command, ErrorResponseInterface $response) { if ($command instanceof ScriptCommand && $response->getErrorType() === 'NOSCRIPT') { $eval = $this->createCommand('EVAL'); $ev...
0
bf2751df89cf458aba2c7db4e9dd39d5
0c082ab68feacb05ace841fc7e900031
Init mutex to avoid conflicts between tasks on a same ressource.
init_mutex(void) { int s; pthread_mutexattr_t attr; if ((s = pthread_mutexattr_init(&attr)) != 0) errExitEN(s, "pthread_mutexattr_init()"); if ((s = pthread_mutex_init(&conns_mtx, &attr)) != 0) errExitEN(s, "pthread_mutex_init() conns_mtx"); if ((s = pthread_mutexattr_settype(&attr, ...
1
e1f2e97e50dade3e66ba0fa6b8c155c0
19e5b4aefe611a8d570e1957d451d712
添加任务到任务队列 <p> 如果队列满了,则会被阻塞直到队列有空间时再添加. </p>
public class SimpleThreadPool extends Thread public void submit(Runnable runnable) { if (isShutdown) { throw new IllegalStateException("current thread pool have been shutdown"); } synchronized (tasks) { if (tasks.size() > taskSize) { refuse.refuse(); ...
0
954fd82c3661fe8aba970d715a110cd7
573a18772061483e0ef138f15aca4970
send nack to the i2c device after a read action
void rda5807::i2c_write_nack(uint8_t data) { uint8_t i; for(i=0;i<8;i++) { i2c_scl_lo(); short_del(); if(data & 0x80) { i2c_sda_hi(); } else { i2c_sda_lo(); } short_del(); i2c_scl_hi(); short_del(); wait_del(); data= data<<1; } i2c_scl_lo(); sh...
1
c21a326e3d8e4bec375b5f68a0b0c7b8
6513306aebd70e1b645818a9d7d20cb8
Casts a ray from an origin point toward a direction for a maximum distance. Returns true if it intersected any hex column, and if so 'out's the hex-grid coordinates
Vector3Int result = new Vector3Int(); HashSet<Vector3Int> existingHexes = new HashSet<Vector3Int>(); bool found = false; foreach (KeyValuePair<Vector3Int, Hex> hex in hexes) { existingHexes.Add(hex.Key); } for (int i = 2; i < 25; i++) { foreach (Ve...
0
c0f476378706969205aad5c01fa15eeb
a985e3e7cd2de77945eaa5c8fd47e57f
Sorts the key in the output of 'collect' method by their values.
class CollectionUtil(Util): def sort_by_value(self, d: dict, is_descending: bool = False) -> dict: return {k: v for k, v in sorted(d.items(), reverse=is_descending, key=lambda item: item[1])}
1
3ceac56b1c3dbd467014fa3af3c0d03c
b872ee658cac822d41158d472f037255
Get the statement that is executed if the condition is false. This clause is optional and returns null if there is none.
public class WoolIfCommand extends WoolExpressionCommand public WoolNodeBody getElseClause() { return elseClause; }
1
d26693ecc972511e2fa622ef00d55657
3a320ff8600dbdd4cc6204f5ca67cda3
Retrieve SortDirection for field: CreateDt (ACCOUNT_BALANCES.create_dt)
public class AccountLocateObjectFilter extends BaseFilter implements Serializable public boolean getDateActiveSortDirection () { return this.DateActiveSortAscending; }
0
49ff9d439113944b1402b5d9ccb5e23c
185391e84bc5836b665ac40e7b462103
Flag to test if the terminated event is delivered.
void test_interrupt_event_terminate(void) { }
0
2aa1f11bb1924bb19eeda310a0a9b0c2
98a24a6b513f68ef8f63b9900a527ff2
Plot lower bounds with sampling times.
class BayesianOptimization(): def af_lower_confidence_bound_srinivas(self, predictions=None, hyperparam=None) -> list: if predictions is None: predictions, _, _ = self.predict_list(self.unvisited_cache) if hyperparam is None: hyperparam = self.af_params['explorationfactor'] ...
0
21123a935878364519d2293dfd1dc0fa
f50d3dda8da3cafac557d6d437619164
克隆演员
function MyCloneplayer(obj_key,arr) { var Tom = new Player; var obj_p = {}; if(obj_key.mesh.skeleton) { obj_p.mesh = obj_key.mesh.clone(arr[14]+"@"+arr[0]); obj_p.mesh.skeleton=obj_key.mesh.skeleton.clone(arr[14]+"@"+arr[0] + "0"); obj_p.skeletonsPlayer = [obj_p.mesh.skeleton]; ...
1
75d7941f2d88a961d621ed06bb71fe43
f76c70ccd40d7a605b6fde4b57112e71
Deletes all Portfolio's from the database as an admin Needs a userID
{ $post_data = array( 'token' => $this->token, 'pid' => $this->pid ); $result = $this->process($post_data,$this->apiURL.'removeAll.php'); return $result; }
0
6fac4b542d37693b5bd8c4b3904aa4bd
6657964fb2b3d54c6d8e9b18aa36445a
Returns the prduct of the pythagorean triplet with the sum sum_abc
def pythTriple(a,b,c): aSq = a ** 2 bSq = b ** 2 cSq = c ** 2 if a<=0 or b<=0 or c<=0: return "False -- you need positive integers!" elif (aSq + bSq == cSq) or (bSq + cSq == aSq) or (aSq + cSq == bSq): return True else: return False
0
92562a372dde614fa6a2d01a67db05be
58a698cd964986c8b16f4bf77a954eb4
Return informations about the last operation.
class Redis public function xinfo(string $operation, ?string $arg1 = null, ?string $arg2 = null, int $count = -1): mixed;
1
72b1af76a2480c7a369c69924cb8b6cd
7d723fda6d07786a4e3cde809c3db6b4
Returns the meta object for the '{@link it.unibz.inf.ontouml.xtext.xcore.DerivationAssociation#getSource() <em>Get Source</em>}' operation. <!-- begin-user-doc --> <!-- end-user-doc -->
EAttribute getAssociation_SourceRole();
0
29a98107b467131fedb16092890b9847
a50b794f415de8b3c6e4618300943f7b
递归获取指定名字的子对象,根几点为UI文件场景的节点对象
{ Transform ret = null; int count = target.childCount; for (int i = 0; i < count; ++i) { Transform c = target.GetChild(i); if (c.childCount > 0) { ret = FindObject(c, name); if (ret != null) break; } if (string.Compare(c.name, name) == 0) { ret = c; break; } } return re...
1
fa9baf1f0d053edb9fbfef9438639d29
75724488729bee3f2a03d7cdcd8f2ed2
Create and return a new logger object. This method will be called no more than once per subclass: the resulting logger object will be stored as a singleton.
class Stats: def new_logger(self, name): tsl = self.TimestampLogger(name, self.queue, self) return tsl
0
e570a2ddd253307a39ca5594bc7ac520
08e361d388b7860c01a977a05a03aa57
Marks a running task as finished in the database.
class AbstractSchedulerDatabase(): def finished(self, task_id): return
0
f69215675ccac6c86968acb3fd88caee
24a9b332c8a5f732c27ad817e148c9d9
使用thenApplyAsync()方法异步转化future
public class CompletableFutureTest public static void thenRun(ExecutorService executors) throws Exception { CompletableFuture<Void> future = CompletableFuture.supplyAsync(new Supplier<Integer>() { @Override public Integer get() { try { Thread.sleep(100...
0
56bffe2bf30e307e4403f25becec8d6b
e82e74e54a17eb705eb45f6b3b49bb2a
获取所有会话创建监听器
public class SessionListener implements HttpSessionAttributeListener public static List getSessions() { return sessions; }
0
822e0046d839836b5e99338fc622e99f
59857ffcf26085c90715c49056b886c0
Prevents two event horizons from annihilating one another. Specifically prevents event horizons from consuming themselves. Also ensures that if this event horizon has already been consumed by another event horizon it cannot be consumed again.
public sealed class EventHorizonSystem : SharedEventHorizonSystem protected override bool PreventCollide(EntityUid uid, EventHorizonComponent comp, ref PreventCollideEvent args) { if (base.PreventCollide(uid, comp, ref args) || args.Cancelled) return true; args.Cancelled = !CanConsumeEnt...
1
513443367d6d1b5dd0eed79fa861a874
c7b7745403f5e00d5f499de898e4042c
Get the correlation matrix of all parameters
class Chain(dict): def corr(self,params=None): return get_correlation(self.matrix(params), self["weight"])
1
52623c44fb441ca23b4712255627dc00
170cfea2dd7e9058860391676e986e78
Unarchive a user's project. Note: Affects only Todoist premium users.
class Client public function ArchiveItem($request) { return $this->makeRequest(__FUNCTION__, $request); }
0
6ca340205a289bde00707f9ddff2eb43
ef6182ce3f0fd1996de6f69ea7cb2c3b
Calcula os pontos para o plot da curva de equilibrio com base nos compostos da mistura binária.
{ float homogeneidade = 0; for (int i = 0; i < McoLen; i++) { for (int j = 0; j < McoLen; j++) { if (mco[i][j] > 0) homogeneidade += mco[i][j] / (1 + (i - j) * (i - j)); } } return hom...
0
36c341eaf114070f973d3b2d65f31d09
9b5e3c980f607883aaba685804275e19
密码加密 采用hash_hmac,防止对框架的针对性破解
function pass_crypt($string){ if(hook_check(__FUNCTION__)) return hook(); return md5($string); }
0
c39c5be4848dd801f3179220ac8b7da2
b2fdb371526f81b99451059ca1da6163
Deletes a range from a slice, returning the new slice
func DeleteRange(data []byte, start, end int) []byte { return append(data[:start], data[end:]...) }
1
582cd074ff0c84ae0cb3c687f6a47739
726e19781d29d736386c670ff3f0559b
updates current location of client window.
class EDAData: def update_current_window(self): self.current_window_left, self.current_window_right = self.get_window_margin(self.current_window)
0
8a40a1a81640633f2c93d078a6434dab
d8398cfa0f5938194f43cabd1e13cc28
Mechanical Turk tests.
hyperparams = { "n_layers": self.n_features, "n_samples": self.n_samples, "interface": interface, } benchmark_machine_learning(hyperparams)
0
3de93ca0df6b5904d48647c6052b8463
0bd3c6a5624286514fb7e159f1731900
Reproduce el sonido al presionar un botón.
Hablando = true; switch (cancion) { case "0": SoundPlayer sndplayr = new SoundPlayer(Properties.Resources.Button1); sndplayr.Play(); Thread.Sleep(tiempo); sndplayr.Stop(); ...
1
c1cd9056a172cdf01a5c7014b580098f
a742bbf5904049dab4eaf158798a9465
返回MySqlDataReader类型的数据
{ MySqlDataReader reader = null; MySqlCommand cmd = new MySqlCommand(sql, dbConn); reader = cmd.ExecuteReader(); return reader; }
1
c40357f2da76ee8cab7e93b98cd8184d
2ebb2a7e5c3d28a29716cf429bbd6528
Shut down ONOS cluster
def stopAll(): os.system('sudo mn -c') os.system('sudo killall sshd zebra ospfd')
0
b47795ae6c2b791f6b126465094a11d6
c3cd99696f83bc2720d0ead3fbb9db47
When font changes we need to redraw some buttons.
LRESULT CBCGPDurationCtrl::OnSetFont (WPARAM wParam, LPARAM lParam) { BOOL bRedraw = (BOOL) LOWORD (lParam); m_hFont = (HFONT) wParam; if (bRedraw) { Invalidate (); UpdateWindow (); } return 0; }
1
db01acc0ad6c3ba73b3f906295616d00
f84dbc3c66e9438e5c003ce756ff2a16
Initializes the window for playing a sudoku game
class Sudoku: def on_init(self): self.win = pygame.display.set_mode(self.size) self.draw_grid() self.draw_numbers() pygame.display.set_caption("Sudoku")
1
71b30ffb0f89288dd6a584bf675d474d
505646f69448f70694d183355d3a00fe
Setter for <code>WETRN.BRND_GRP.LAST_UPDT_TS</code>.
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.7.2" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class BrchrLineNrUpdRecord extends TableRecordImpl<BrchrLineNrUpdRecord> implements Record16<BigDecimal, String, BigDecimal, String, Big...
1
1ec06e6646d54ce9313df95cfe109d7a
28092b42d7d8305225da86df46405eea
read uncompensated temperature value: send command first
self._device.write8(self.BMP085_CONTROL, self.BMP085_READTEMPCMD) time.sleep(0.005) raw = self._device.readU16BE(self.BMP085_TEMPDATA) U.logger.log(10,'Raw temp 0x{0:X} ({1})'.format(raw & 0xFFFF, raw)) return raw
1
58fbc7daefd7b32697775437cb38a1b0
f7a477aaba34c508adbd4eed3515c4e4
Returns the value of the '<em><b>Protobuf</b></em>' containment reference. <!-- begin-user-doc --> <p> If the meaning of the '<em>Protobuf</em>' containment reference isn't clear, there really should be more of a description here... </p> <!-- end-user-doc --> extendedMetaData="kind='element' name='protobuf' namespace='...
public function getXmlProt();
0
b9ba865fec061c9706d2fd7ce49c0cc7
884983ff28327de47ebbf1612c822581
Purple
class Console public function setColorPurple() { $this->sendEscape(self::ESC_COLOR_PURPLE); }
1
c126ff0a35246a6e5b605c2c41a4faed
c6599fde2feacd37a7690d349391397a
Remove a few fields from the reviews.
class ReviewService extends BaseService public function handleData($review) { unset($review['id']); unset($review['order_id']); unset($review['order_num']); unset($review['product_id']); unset($review['is_approved']); unset($review['member_id']); $review['images'] = $this->imageHa...
1
76cd96c49bf441f1d0099f1242c4effa
b41efc38bacde961a5695dd823686016
<p> Sets the functional description of the asset. </p> <p> The acceptance region: any <code>String</code> value or <code>null</code>. </p> <p> </p> the functional description of the asset. Should not be null or empty when updating or creating an asset.
if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000020; onChanged(); return this; }
1
7b00cd1b19cccc3d39732f1d501a5ae1
05607986944e5f44fdb984ddebb32d83
The king doesnt have any material value. The method return 0, so if someone tries to call the function in their calculation it wont do any different.
public class RemoveSpecialMove implements IMove @Override public int getScore() { return 0; }
1
5933f4d5f2016774f71eed0c46a5574e
f8977433be3ba56c8c972c2005262964
Sets and gets the overlay coordinates.
public class OverlayItem public void setPoint(Point2D point) { this.mPoint = point; }
1
3a1b72fbda2aa48ed81073bb22701647
a2e4b6bc6a04d870cabb39f884f3eff1
Description : Not processed as the functionality is provided by R8A66597(ASSP). Arguments : none Return value : none
{ hw_msm_id_type msm_id; hw_platform_info_type info; HWIO_OUTM( MSM_RAIL_CLAMP_IO, HWIO_FMSK( MSM_RAIL_CLAMP_IO, VDD_APC_CLAMP ), 0x0 ); HWIO_OUTM( A11_RESET, HWIO_FMSK( A11_RESET, POR ), 0x0 ); if ( HWIO_IN( CHIP_MODE ) != 0x1 ) { #if ((!defined(FEATURE...
0
a679fab1e593264cc40bb2b5671091aa
0f49f902acae0ebbc35079af73908b8d
全屏显示远程桌面
class DrcDevMgrPage(HomePage): # 填写DRC_ID def full_screen_click(self): full_screen_link = 'xpath=>/html/body/div/div/div[3]/div/div/div/div[2]/div/div/div[1]/div[1]/div[' \ '2]/div/button ' self.click(full_screen_link)
1
7aaf963fa89eff0b9fa207b07f5f1f5b
91723d288758843851aaa2bcff73285a
绑定多选按钮的点击事件
var cks = [...D.gets("tbody input")] cks.forEach(function(item){ item.onclick = function(){ sum(); obj.selAllC.checked = cks.every(function(ele){ return ele.checked; }) } }) }
1
17499db1085f70f2d6b63c4b4b703537
741ef08d0c30c30e50b880fd788a49cb
私有方法用于检查字段是否在列表中存在
class Validate static public function inArray($_key,$_fields) { return in_array($_key,$_fields) ? true : false; }
0
dc871021968834f30e3cad67974c5a9b
330700e8c83ae285150b4d9f73f817d8
从xml中选出电表电量数据
dates = [] values = [] lines = open(xmlFile).readlines() for line in lines: try: dates.append (datetime.strptime(line[13:29],'%Y-%m-%d %H:%M')) values.append (float(line[31:38])) except: pass return {'dates' : dates, 'values' : values}
1
8f8cc61134dc9c70fc11b3abc1a38f73
6dd5167246cd087a294169504b294a40
soap方法测试
class privateMod extends commonMod{ public function testSoap(){ $selectMethod = '<select name="selectMethod" id="selectMethod">'; $selectMethod .= '<option value="1">'.Lang::get('SelectMethod').'</optioin>'; $selectMethod .= '<option value="2">'.Lang::get('UpdateMethod').'</optioin>'; $selectMethod .= '<option ...
1
528c239d6832dbb719b0853d55355118
d129c8ca20c431d78d2695ef426c4588
将下载状态设置为正在下载
setIsDownloading(state, flag) { state.isDownloading = flag; }
1
54e5e9f70799a7916b62b854697b4c71
ad242c9e2ae9efe451e5b55d7faecf3b
tests the no_questions view to make sure it displays the correct web page
class QuestionIndexViewTests(TestCase): def test_two_past_questions(self):
0
5194f1038ec7bcbd03c4d7019240229b
794dd164edeb366efa9b3ff02bd8ac70
Регистрирует обработчик выбора способа оплаты при оформлении заказа в 1 шаг
{ $builder ->add('oney_payment_choice', ChoiceType::class, [ 'mapped' => false, 'choices' => [ '3x' => 'oney_x3_with_fees', '4x' => 'oney_x4_with_fees', ], ]) ->addEventListener(FormEv...
1
cb17521df4e4a35b81869cf33e04d6d6
2cb6baf41528f9ff99630ae7a1fdcbf0
Führt die Kontextanalyse für die Parameter der Methode aus.
{ SymbolTable tempScope = new SymbolTable(scope, MethodInfo); NodeUtils.Analyze(tempScope, Params, diagnostic); ReturnType.Resolve(tempScope); }
1
4949f57b11900f35570d09ec7edd7f74
af6ff3e4dc1d087f95f455c56b9ee02b
Renvoyer si l'auteur du sujet fait partie du personnel
wrapper = getSAWrapper('clpsbw') session = wrapper.session query = session.query(Institution) query = query.filter(Institution.institution_auteur_fk == auteurPk) query = query.all() auteurHasInstitution = False if query: auteurHasInstitution = True ...
1
e6ef2cb3bcd6b2cb19dafdf6e17226f0
98b28eb121bfe23b70ef81a460d5ac44
formating to be determined
class Record: #create a constructor: def format_date(self, date_format='default'): if date_format == 'just-date': return self.time_stamp.strftime('%m/%d/%Y') elif date_format == 'just-time': return self.time_stamp.strftime('%I:%M:%S %p') elif date_format == 'minute': ...
1
29d53927274f6dc46aa56c0b4da9a7f1
cec766bb5f5fc3bfd10fd41ef3c9644b
Set the IP Access Control name.
class AMI430Server(DeviceServer): def conf_ipname(self,c,name): dev=self.selectedDevice(c) yield dev.write("CONF:IPNAME %s\r"%name)
1
d7bd091869445581e473a2af5af8955b
9bba480c908fedb7db3d88b50ac5b61d
Ajoute les Catégories associer au fichier dans la table d'association file-catégories
class Paragraphe function associerFichier() { mysql_query("INSERT INTO if_para_fichier (numpara,numfichier,libelle,ordre) VALUES ('$this->numpara','$this->numfichier','$this->libFichier','$this->ordreFichier')"); }
0
2444811279a03840745c48e6ef62c55f
288d1eb5749d8928e70c87a3a99403a3
Shows signed sale & lease deed agreement forms.
class AgreementController extends ProtectedByAuthorizationSessionActionControllerAbstract public function agreedAction() { $agreementId = $this->getAgreementIdFromRequest(); $this->signAgreement($agreementId); return $this->forwardToDelegation($this->getToken(), $this->getFacilityId(), $this->ge...
0
770d738c5f988e54786e21966802ec92
db88f9c5dff95c800071525cfb974fe2
フレーム番号から表示するオブジェクトを決定
namespace Osaka public class FieldNode : MonoBehaviour private GameObject GetModeObj(MainMode mode) { switch (mode) { case MainMode.SetItem: return setItemObj; case MainMode.Normal: return fieldObj; }...
0
ddbdc8adb10b5a7657d23f9ac6a93674
1d1b1da99ae34aec848377cb76fbf0f0
connects the exit of the first part to the inlet of the second part, essentially sharing the state between the parts.
{ next.In[nextIndex] = old.In[oldIndex]; next.In[nextIndex].ToUnit = next; Connect(newInput, newInputIndex, old, oldIndex); }
1
ee0cb76068b5f259770a1c3520572bf2
ff7190f5c0c1cfb2cd6b27b669cec9f2
Findet den ersten Zustand mit 'markValue' Besuchen. Dies ist der Zustand, wo alle Pfade ausgehend von einem Startzustand aus enden. Entspricht dieser Zustand dem Startzustand, so gibt es keinen kleineren Subgraphen als den kompletten Graph selbst (der zyklisch ist).
public abstract class UnlabeledIntDaciukAlgo int findConfluence(TIntList states) { for(int i = 0; i != states.size(); i++) { if(isConfluence(states.get(i))) return i; } return -1; }
0
594da3765210a74190046437d5372562
1ea1a288236ea4108f4b4fada6010817
initialize the material properties list with x count of materials
class PMDMaterials: def __init__(self): self.offsets=[] self.mat_paths=[]
0
3b30d27421f44192d77c5ceab7291bdc
71bbd96f4fe801ed99fdfba8ddf0ecc2
Get all repositories in a workspace.
ListWorkspaces(new ListWorkspacesRequest { ParentAsRepositoryName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), PageToken = pageToken ?? "", PageSize = pageSize ?? 0, }, callSettings);
0
5bf5a75c221cab7853d318bdb8664f0e
037fa93e3d7dd732b822e807a50ee4a9
Allow the model's full_clean method to handle the unique together validation.
class ResourceChunkModelTestCase(AssertValidationErrorsMixin, TestCase): def test_unique_together(self): chunk = ResourceChunk(resource = self.resource, name = 'Chunk 1', amount = 500) expected_errors = { '__all__': ['Resource chunk with this Resource and Name already exists.'], } ...
1
6c45c7242c2deb97cad5a27c0b30fcd7
13b3903465323ad4d77e4240f2684f32
so the rotation when dying is around the center
transform.RotateAround (collider.bounds.center, Vector3.up, 6.0f * 10.0f * Time.deltaTime); float angley = transform.rotation.eulerAngles.y; Vector3 newpos = transform.position; newpos.y = (Mathf.Sin (angley * 3.14159f / 180f) + 3.0f) / 2f; transform.position = newpos; }
1
538b556fede138db97f18dcca782e322
b9ff0c871ee5842881805b07fa21eaa7
Get an instance of the Plugin Repository
{ if (static::$plugins === null) { static::$plugins = new Storage\PluginManager(); } return static::$plugins; }
1
0a6bf6efb10767f5ba7de3c3afea9de1
fede49280d391a03ee0688a5ea3bc0a5
获取切面声明顺序
@Data public abstract class AdviceExecutor abstract int getOrder();
1
1aa3812febe080bdd4fff10cfe0c364f
bb1d2399da44139af8a3edd92a2b48f0
Concatenate two quaternions. We use Hamilton's quaternion multiplication.
{ QuatData out; int ret; out.a = q1.d * q2.a + q1.a * q2.d + q1.b * q2.c - q1.c * q2.b; out.b = q1.d * q2.b - q1.a * q2.c + q1.b * q2.d + q1.c * q2.a; out.c = q1.d * q2.c + q1.a * q2.b - q1.b * q2.a + q1.c * q2.d; out.d = q1.d * q2.d - q1.a * q2.a - q1.b * q2.b - q1.c * q2.c; ret = renormali...
1
e930e01acbe1a5ee57eed9bb3f2242ec
4eb72a52e1a8d4321a3941926ea39860
GET: Add developer dialog
{ DeveloperInformation info = new DeveloperInformation(); info.Name = "Jason Lohmer"; return View(info); }
0
7a53e5582086a1dd2f0f215fbf04c266
b0f3f072a14c00c29b90b2cf3c15856e
┌────────────────────┐ 체크박스 선택시 전체선택여부 └────────────────────┘
function allChk(bool){ $(".chk").prop("checked",bool); $("input[name=chk]:disabled").prop("checked",false); }
0
7df0151f36615c122d47e8d8912b6fe9
00f8db31a00936fa0561a5feeec199c5
随机生成n位数字字母组合的str字符
def random_str(num): source = list(string.ascii_letters) for i in range(10): source.append(str(i)) code_str = "".join(random.sample(source,num)) print(code_str) return code_str
1
f0fdc3932e3eea0a8382db78e4e8a8c1
ae35f06ecc05630510f6cd4e56c669cf
Calculates optimal path to the given point. If one is not found, return null.
public class PathFinder public Array<Point> getPathTo(int x, int y, double maxDistance) { if (map[x][y] == INACCESSIBLE) { return null; } Array<Point> path = new Array<Point>((int) map[x][y]); Point start = bmap.getTile(xi, yi).getPosition(); Point target = bmap.getTile(x, y).getPosition(); Direction dir...
1
046b7e73c10d09c2b4e64066b3c8e12f
b9f40cbc59a0b4229bb3ed3706178f26
Конвертирование Uint8Array в файл
const blob: Blob = new window.Blob([data], {type}) saveAs(blob, filename) }
1
ba5e8b446985e4c2186ae1db9057598c
e0547f51417a03c48e138accd45c0415
在财务中心录凭证页面输入相关的科目并且按回车
class BackStageManagement(Base): # 继承Base类 def input_sales(self,text): self.send_keys(self.sales_loc,text)
0
1ace3d8a08e8f4c145f116d84a035b31
5093dad58599279e92ad1666b3eb4efc
Prompts the user to choose the location where the results file should be saved.
def select_output(self): destination = askdirectory() + '\\' self.fieldB.delete(0) self.fieldB.insert(0, destination)
1
c3ca4f2429f41de193f61307bdb9b280
bf8412583e21af8956e040cd4e0d6ff0
Counter for completed tasks to ensure that all required asynchronous tasks are completed before continuing to the app.
class Query @computed('_promiseTask.performCount') get counter() { return this._promiseTask.performCount; }
1
37b46768347267d39203ee923f2d208d
8a7c8196a52874585d28695d833f778a
Récup la liste des modeles pour une marque passée en paramètre le tout dans la table Voiture pour peupler la dropdownlist dans la vue _filtre
{ if (String.IsNullOrEmpty(brand)) return Enumerable.Empty<CarModelDto>(); return await _dbcontext.Set<CarRecord>().Where(p => p.VendorName == brand).Select(p =>new CarModelDto { Name = p.CarName, Slug = p.CarName }).Distinct().OrderBy(p => p).ToListAsync(); }
1
46c129f01b8910f37cfb842f78d8f431
24d8b57e8158d45371d26d8011a02904
Returns the value of the '<em><b>Spacing</b></em>' attribute. The default value is <code>"0"</code>. <!-- begin-user-doc --> <p> If the meaning of the '<em>Spacing</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
String getSpacingMode();
0