query_id
string
corpus_id
string
query
string
code
string
label
int64
89b2e5d2f2d633840608b782346d5cbf
a4f2c902460d9aeb341e6b5801f438fc
Denne metoden setter igang simuleringen.
simulationIsRunning = false; simulationIsRunningFast = false; simulationIsRunningForward = true; taskSimulate.pause(); updateDateTimeAndPanels(); }
0
b5c1b63cd8a007bfed31de2569410dd9
56a4eddc6b930a280bb55436e3e16dd8
Retrieve the waiting list of students for a course.
public class Student implements Serializable{ public Map<String, Integer> getCoursesWaitlist() { return CoursesWaitlist; }
0
dc1755325c2d1998eb236fac3c0ae68b
a61563197a76c5c19e5b10e3251dabd3
Plays the current song If the current song is paused it resumes the song If no songs are in the queue, it does nothing
if self.loop: self._play_song(self.current_song) else: if len(self.queue) > 0: song = self.queue.pop(0) self._play_song(song) else: self.current_song = None
0
912758dfe833f397e73ab3d47c89d389
25f6930785ea562e8f2a9c1d25f884cf
Check if tensor is a 1D vector.
class BackEndTensorFlow(BackEnd): def is_scalar(self, arr: array_like) -> bool: return np.isscalar(arr) or len(arr.shape) == 0 or (arr.shape[0] == 1 and (len(arr.shape) == 1 or arr.shape[1] == 1))
0
1300b593cc5aa9d4760b57fd8cd07090
2d4b2bea0d0235e4fe47fc4dc3e9dde4
off - no change
void Instrument::amidiNoteOff(byte chan, byte n, byte vel) { if (chan > 15) return; if (n > 127) return; if (vel > 127) return; talkMIDI( (MIDI_NOTE_OFF | chan), n, vel); }
0
77e008f46d11dbe6a90230f127bb1142
e2e1739e851adaf2066cdb97e5316ebd
returns the static text item corresponding to the curr selected menu item
{ std::map< UI16, createEntry >::iterator r = itemsForMenus.find( itemNum ); if( r == itemsForMenus.end() ) return NULL; return &(r->second); }
0
e5bc5890ca91e8f2cd3205761a8a907c
046ef66fc39c29ac422838446707c5dd
Creates a new gc_contas_a_pagar
class c_Pagar extends Controller{ public function create() { }
0
07ff7655db34cdd6ff95a009384ce4ed
64d563b7a6ad15ed8e92995d270c2892
Reads client token from device store.
class AuthenticationReader extends DataObject public function hasClientToken() { return $this->hasData(self::CLIENT_TOKEN_KEY); }
0
2fbc617c5e38e951a43da7194888156d
edf8cd627e84538b8bb55bbb41b8da86
Configure this reader to target this kind of entry.
int getEntryKind();
0
fcaf110b789ddb9d60e08795223ff451
3d054bb7519c1fac75d352f78abed06d
| Genel Kullanım: Deflate bir dizgenin sıkıştırmasını açar. | | |
{ int i,nRet; UINT32 code_slice; unsigned char data; int byte_count; int bytes_remain; nRet = OpenDecompressedFile(d_file_name,"rb"); if(nRet) return nRet; nRet = OpenCompressedFile(c_file_name,"wb"); if(nRet) return nRet; fseek(dFile,0,SEEK_END); byte_count = ftell(dFile); fseek(dFile,0,SEEK_SET); if(byte...
0
6ee0a496eec6041ad3d9bb9a199f652c
69f687cd1975ff0e45b00f05666f3fd3
Sets the current in-focus window.
interface imgui_window fun setWindowFocus() = g.currentWindow.focus()
1
323a9310be92313b14a699271a35471b
f10e592420d0687dbecc8d57d50d0546
将一些元素写入到BloomFilter中,并将其写入到文件中
void URLTest::addToBloomSet(string str,int a) { struct timeval tv; DbManager_Singleton::instance()->writeDB(0,str,&tv); }
0
9e7d67394d0ed3402b33c3e4294a79c2
ecd1e38653d03333e94cf9e30abf6094
The osu! file format being used
class Gpx def file_extension return "gpx" end
0
3a5537c4fb9fc1c8fdbdf13b4cfdf34b
91eb30fa51eb3bb2d6e11450393095ed
绘制MACD区
macd_dif, macd_dea, macd_bar = talib.MACD(self.df['close'].values, fastperiod=12, slowperiod=26, signalperiod=9) self.graph_MACD.plot(np.arange(0, len(self.df.index)), macd_dif, 'red', label='macd dif') self.graph_MACD.plot(np.arange(0, len(self.df.index)), macd_dea, 'blue', label='macd dea') bar_red = np....
1
377db2e216baa95b12cc9ac21b27bbea
5cf67bbf1347111603b390341dd4432a
Event handler:
public class SpeakButtonListener : MonoBehaviour public void HandleOnClickEvent() { print("Hi, I've been clicked!"); }
1
fa19491a2d38ba36151db2f4c460a0a8
e8d7dc6a24651110d91960bb95487ba7
在Awake里面设置requestCode和ActionCode
public class LockScreenService extends Service @Override public void onCreate() { super.onCreate(); mIntentFilter = new IntentFilter(); mIntentFilter.addAction(Intent.ACTION_SCREEN_OFF); mLockScreenReceiver = new LockScreenReceiver(); registerReceiver(mLockScreenReceiver, mIn...
0
815d5e6f8be21838299ffa474d3943b1
5c1da3b685361d8664ed162c2982e482
通过获得当前的录入的code 进行判断,如果符合规则,显示托盘管理详情,否则不显示;
class Batch extends Controller public function show_tray(){ $warehouse=self::$stafss['warehouse']; $search = ''; $data=input(); if(!empty($data['name'])){ $name=$data['name']; $search = 'warehouse.name like ' . "'%" . $name . '%' . "'"; }else{ ...
0
c17c53fb3a88a3e5e0212d42a08fa903
1f416acadff94cc174e32f97ea71d36b
判断是否选定设备
{ foreach (LocateRecordAddedEntity dev in LocateRecordModel) { if (dev.isSelected) { return true; } } return false; }
1
2430cd57f865c971edc3b0d896600c65
55f46861b4127cb9a0c42b3d81995bc1
Sets the client's Sasl stream.
{ if (!connection.IsAuthenticated) { if (_saslMechanism != null) { var result = _saslMechanism.Authenticate(connection); if (result) { Log.LogDebug("Authenticated {0} using...
0
3f61b0043e23cd14195b8cb32fba8298
ab434ac6564b67b81b5e61c11b26fd56
加载理财业务信息
function subinfoload_busi() { $.showPreloader('加载中...'); $.ajax({ url: '../NewSubscribeList_busi.aspx/NewQuerySubscribeInfo', contentType: "application/json; charset=utf-8", type: 'post', dataType: 'json', cache: false, async: false, success: function (da...
1
c37e00f1eb353e6f8814f4aa6e29b4da
8826ff82ac1b7678d689e3a59e9e0b7b
This method will wait for login page to load
public class LaptopsPage extends BasicPage public void waitForPageLoad(){ WebElement pageLoad = webDriver.findElementByXpath(pageLoadXpath); }
0
cedcdeed06c299297acca43635acdddc
4898d9982e04bc8b4c38a2f997efa52a
Add scroller button to TinyMCE Editor.
class WC_Smart_Coupons public function smart_coupon_add_tinymce_button( $buttons ) { $buttons[] = 'sc_shortcode_button'; return $buttons; }
0
ec27a9ba9348fda123597f93daf6f858
7f0a5f31df8de62602069c9d6a4ac268
Configure GPIOs (and other pin functions) that vary with present sub-board. The functions of some pins vary according to which sub-board is present (indicated by CBI fw_config); this function configures them according to the needs of the present sub-board.
{ const struct gpio_pulpino_config *cfg = DEV_GPIO_CFG(dev); cfg->gpio_cfg_func(); return 0; }
1
6d6ddf0d1c2332591f7ef5532ddb2681
dee5b59e6e92cc5a30dd5bd51b5ccf1e
Decision that starts a child workflow executing.
namespace Neon.Cadence public abstract class WorkflowBase : INeonLogger protected async Task<ChildWorkflow> StartChildWorkflowAsync<TWorkflow>(byte[] args = null, ChildWorkflowOptions options = null, CancellationToken? cancellationToken = null) where TWorkflow : WorkflowBase { return...
1
9c6f19c0db3820ebc9f2de3731a601be
f7902c6e78c1e9e26112b93d1bbf04e9
Sorting by birth date
int cmp_by_date(void *a, void *b){ if( ((REGISTER*)a)->birth.year < ((REGISTER*)b)->birth.year) return -1; else if( ((REGISTER*)a)->birth.year > ((REGISTER*)b)->birth.year) return +1; else if( ((REGISTER*)a)->birth.month < ((REGISTER*)b)->birth.month) return -1; else if( ((REGISTER*)a)->birth.month > ((...
1
87decc31ca93047ea6682460ea262dde
5e98fc2d4f4605d6d25364dff0d6d876
A signal emitted when an inspector's orientation is toggled.
{ EventHandler handler; this.ResizeComponents(); handler = (EventHandler)this.Events[_eventOrientationChanged]; handler?.Invoke(this, e); }
1
3805bd5fd0ed838915dca046c0c4c6f8
d1053b4efc085fa5c18e96b57871dc4f
自己本轮下注总筹码
local totalChip, totalGcoins = 0, 0 local totalChipReward, totalGcoinseward = 0, 0 local data = self.aloneBetData_ if self.curSelectedMode_ == 2 then data = self.groupBetData_ end for _, v in ipairs(data) do totalChip = totalChip + v.chip totalGcoins = totalGcoins + v.gcoins totalChipReward = totalChipRew...
1
8993c941ab06b88bd568b72c151a10c9
ccf06c4daa19abd9e93d638b14912eee
This MUST be two floats separated by a semicolon
public void SemicolonInValue() { string[] res = core.tools.CsvParser.Parse("\"val;ue1\",value2"); Assert.AreEqual("val;ue1", res[0]); Assert.AreEqual("value2", res[1]); Assert.AreEqual(2, res.Length); }
0
a52aae6ab6821f760bd1c2c82874e424
096b8dae493e41107bc05853d1f97e1e
Closes current frame and opens the starting frame
public class PuzzlesFrame extends JFrame private void backButtonActionPerformed(java.awt.event.ActionEvent evt) { MainFrame f = new MainFrame(this.getX(), this.getY()); this.dispose(); }
1
d636d34ec28266653c696102c4909fb2
0da879aeb5f6588604a20c272b5afccd
页面防止重复提交,检测随机数
class JiazhengModuleSite extends ComVerControl public function repeatSubmit(){ global $_GPC; ComFunc::startSession(); if(isset($_GPC['token'])) { if($_GPC['token'] != $_SESSION['token']) { $_SESSION['token'] = $_GPC['token']; return true; } else { message('抱歉,数据不能重复提交!', $this->cr...
1
14e07004dfb915c591c9e01b165e0962
afb0cd7fb65a8f40b38fa4b01b16f16f
设置货道库存
if (!isConnected){ MyApplication.getInstance().getLogBuHuo().d("补货设置货道价格 机器主控失联"); return "1000/机器主控失联"; } if (toVMCPara == null) { byte[] resp = new byte[13]; resp[0] = PC_HEAD_ONE; resp[1] = PC_HEAD_TWO; resp[2] = PC_HEAD_...
0
0d0402c81b82aa9a1a1ace785103c42b
2d7308e36852be8ffe09b7aa4dcb1ec0
vérifie que la longueur des colonnes et des lignes sont égales dans les deux tableaux
{ if (Rows == B.Rows && Columns == B.Columns) return true; return false; }
1
26bf82f52c6fee9389f981ba45d6e835
d6e4e1e1d0e6c523e1b8939f2ce756b8
提交服药记录
{ try { string msg = string.Empty; Delivery newDelivery = PharmacyDatabaseService.GetDelivery(out msg, Delivery.Id); newDelivery.DeliveryStatusValue = (int)DeliveryStatus.Accepted; newDelivery.DeliveryTime = dtDeliveryDate.V...
0
892e4a9c77cb4c0a8cb8ff1b8a60ad57
218bec9c98b9dcd663f6d9a77ad1231e
This method is responsible for validating the values passed to the setAdditional_Benefits_Coverage_Data method This method is willingly generated in order to preserve the one-line inline validation within the setAdditional_Benefits_Coverage_Data method
namespace Atlas.BenefitPlan.BLL.Interfaces List<Message> ValidateBenefitConfiguration(PopulationGroupPlanBenefitPackageVM itemToValidate);
0
02afd6d2a55dfe554beaa2a85994c043
acfdf1062041b0bb3dbd41d6ab28e792
Samples the observable sequence at each interval.
namespace Linq2Azure public class LatentSequence<T> public IObservable<T> AsObservable() { return Observable.Defer(() => AsTask().ToObservable()).SelectMany(x => x); }
0
79ed9a87df34cbc628a0af7a92aae4c5
4c4b7129249b0b26fa8163a2f621f298
Создает юнита-рабочего.
{ Vector3 newRedneckPosition = GameData.terrainLayer.CellToWorld(coordinates); GameObject newRedneck = Instantiate(GameData.WorkerPrefab, newRedneckPosition, Quaternion.identity); Worker newWorker = new Worker(coordinates, newRedneck); listOfUnits.Add(newWorker); }
1
03adde4d6f84654105ff65fa74565bad
d22f359fe8f71fc984a3f3d94bd2a4e2
Backwards topological sort, breaking cycles to get a full ordering
function tsort(graph: Graph): { sorted: Array<string>; recursive: { [key: string]: true } } { const sorted: Array<string> = [] const visited: { [key: string]: true } = {} const recursive: { [key: string]: true } = {} Object.keys(graph).forEach(function visit(id, ancestors: any) { if (visited[id]) { re...
1
dd510c391b11a660accedef37641ca39
eb8f4990256b4a5c784347956f4834fb
获取字段contactMobile的值,该字段的<br> 字段名称 :联系人手机<br> 数据类型 :varchar(20)<br> 是否主键 :false<br> 是否必填 :false<br>
public class ContactEntity extends BaseEntity{ public String getMobilePhone() { return mobilePhone; }
0
a205260fed848ecd258231cf31610082
3f3751d92dc87419e7ae654350af5a06
通过msdb获取影片信息
{ List<MovieSettingsEntity> settingsList = _dataBase.Select<MovieSettingsEntity>( "SELECT * FROM [MovieSettings] WHERE [MTimeUrl] IS NOT NULL AND [MTimeUrl] <> ''"); return settingsList; }
0
648130dd45b8bc254be21bb9d1b45333
8c3523daa0c7544636a7267b4ac8c451
Define the real buyer contribution.
public class ComissionBidsDetails extends com.matisse.reflect.MtObject public final BuyerClient[] getActual_buyer() { return (BuyerClient[])getSuccessors(getActual_buyerRelationship(getMtDatabase()), BuyerClient.class); }
0
98b70bb16e788b7f139b09860d6c99e5
79d7647cc12f8297645aec6d5fa9fca6
1-获得图片在屏幕上的位置坐标,左上角(x, y) 2-获得img的size(w, h) 3-得到图片的左上角(x,y)和右下角(x+w, y+h)
img = self.wait.until(EC.presence_of_element_located((By.CLASS_NAME, 'gt_box'))) sleep(1) location = img.location size = img.size top, bottom, left, right = location['y'], location['y'] + size['height'], location['x'], location['x'] + size['width'] retur...
1
87f7cdead239144586118f2f3a664236
c71a6ae28f6b87e29a76698a1d354fed
时间戳转换为以s为单位
@Component public class CommonUntil public String timeStampChage(long timesource) { String t = String.valueOf(timesource / 1000); return t; }
1
b14c2605472a0809c4ed2083bc8ae4f9
c31c5feec06cae45e4988ed9ebdb401b
查找第一个大于target元素的位置
public class BinarySearch public static int upper_bound(Comparable[] arr, Comparable target) { if (arr == null) throw new IllegalArgumentException("Arr can not be null!"); int l = 0, r = arr.length; while (l != r) { int mid = l + (r - l) / 2; if (arr[mid].compareTo(target...
1
efac64087e73a6534731d0f672883d8b
3ce4cf0b9a792cad2c01990251a537de
获取 screen列表
{ $this->paginate = Movie::select(['id' , 'name' , 'home_cover' , 'score' , 'hit' , 'show_time_first']) ; $paginate = $this->screenCate($screen['cate'])->screenSortType($screen['type'] , $screen['sort']) ->paginate($this->averageNumber); $data['page'] = Page::getPaginate($paginate); $data['movies'] = $thi...
0
d56bb6ef93942ee1f6c5b68e6a971ee8
fd6b11d2151e758137c5c2797dd8e9c5
游戏结束上报
var gameTime = (new Date()).getTime() - start_game_time var gameResultData = data BK.QQ.reportGameResult(gameResultData, function (errCode, cmd, data) { if (errCode !== 0) { callback({ statusCode: 1, status: errCode }) } else { callback({ sta...
1
2e2a44eaa80f94b9547f6150a74ff825
d382e3d260ef702d219a45f4cfe18fb7
Method to get passenger counts based on current booking ID
namespace OnlineTrainTicketBookingApp.BL public class TicketBookingBL : ITicketBookingBL //Class implementing an interface of TicketBooking BL public int GetPassengerCountByID(int bookingId) { return ticketBookingRepository.GetPassengerCountByID(bookingId); }
1
27b02dc479706ecf57181b435ade0564
5dc33f67dc1b2f41bb820dde2f5ea4d6
アルファベットを含むか
impl Ascii pub fn is_alphabetic(&self) -> bool { (self.chr >= 0x41 && self.chr <= 0x5A) || (self.chr >= 0x61 && self.chr <= 0x7A) }
1
6a8d4ef92dc842672636724a9d52f993
046c10f2716cfb30fe455e8d06e55eb8
Convert the right handed coordinates to left handed coordinates used by Unity (NED --> NWD)
def convert_xyz_from_right_to_left_handed(location): location = np.array([location[0], -location[1], location[2]]) return location
1
8d89404b6b42039cf9994d8be4d02259
03b1c05155d0f124fbe7498de54e6979
Set the character encryption key
class Encrypt public function setKey($key = '') { $this->encryptionKey = $key; }
1
d4e1f9f2df6fffc47169d8095dc01b3e
32569ebdc29f0154c82b4372605cbcc8
Given a collection of arrays, find the values that are common to all arrays in the collection. Ex: self::intersect( array(1,2,3,4), array(2,3,4,5), array(3,4,5,6), ) would return array(3,4)
var argumentsArr = Array.prototype.slice.apply(arguments); return argumentsArr.reduce(function(prev: any[], cur: any[]): any[] { return intersect(prev,cur); }); }
1
9b1c5f42b7896436596e6709f52cbe18
f21ca27bc311cfc88334c0e0775d9f50
Description: this function receives and prints the result of a request for directory contents to the server. Preconditions: a request for directory contents has been made to the server and the connection on which it was requested is passed to this function. Postconditions: the function receives the results and prints t...
int i; int count, total = 0; char buffer[MAXLEN]; if(send(sockfd, &msg[0], strlen(msg), 0) <0) handle_error("send() in send_request()"); i = recv(sockfd, &buffer[0], MAXLEN,0); if(i==-1) { handle_error("recv()"); } else { fwrite((void*)buffer, sizeof(char),i, stdout);...
1
fdf2cd0cdac3f77aa192b332a93257fe
4b7784a997da2a02be87d61b32db31da
============================================================ <T>设置理财师绩效总计的数据内容。</T> ============================================================
@ASourceMachine public class FStatisticsFinancialForecastUnit extends FLogicUnit public void setInterestTotal(double value){ _interestTotal = value; }
0
d9ede4211f2ca2dd398179dde8d26557
5fea77a4393d9f044d9573635097fd5b
工具方法:对于mssql数据库来说,需要清理查询结果中ROW_NUMBER数据
{ result = result.Replace("\"", "'"); result = Regex.Match(result, "(?<='number': ').*?(?=',)").Value; return result; }
0
2d52c3d2de3201a01804270e4e5ffabd
622fdb556eb37fe537a3552283ed3ac5
Get 包年包月购买时长,单位:月
public class RateLimitTemplateDetail extends AbstractModel{ public Long getPeriod() { return this.Period; }
0
9fd624a4475891c6613fc6f98f5f3c71
fddb5f8f871957e572263222d29a7cf4
Merge a list of source values by aplying the groovy expression sent as the first merger parameter. <br />
public Merge merge(String... sourceFields);
0
d8f8954adcdc309aa91d156009bb36e9
be688a6477f59498a850012dcb9bb953
清除时间列表
clearTimeDown(){ this.data.intervalList.forEach(el => { clearInterval(el); }) }
1
5f8cbdba6d306816f20e9134b23b35bc
139f414ebede8389523741806a95f8a4
Implements template_preprocess_HOOK() for theme_menu_tree().
function minima_preprocess_menu_tree(&$variables) { $variables['attributes_array']['class'][] = 'nav'; if (!empty($variables['tree']['#attributes'])) { $variables['attributes_array'] = array_merge_recursive( $variables['attributes_array'], $variables['tree']['#attributes'] ); } $variables['t...
1
8153cdf3ac48fbfe46f29fd8cc8aaeda
bbab509d57c9f79cc291bed4302e528d
Retorna o numero de pilhas usadas
class Table: def getNumStacks(self): return len(self.__playingArea)
1
940e1d7b7696a1c98a542f7c7ebcb0bc
388059810e07a1ac40841b7c0eb635b5
Get couchdb runtime statistics.
dbStats = mongo_admin_cloud_app.db.command("dbStats") labels = [] values = [] for shard in dbStats['raw']: labels.append(shard[:3]) values.append(dbStats['raw'][shard]['objects']) return dumps({'success': True, "labels": labels, "values": values}), 200, {'ContentType': 'application/j...
0
0ce05ecb6121ee2e5d25a6323ad04233
9c16d4c0f66a481d5247ef1459ce78e9
Obtains a paginated list from a canonical collection, the page number and the total number of records.
namespace Foundation.ExtensionMethods public static class EnumerableExtensions public static IPaginatedCollection<T> ToPaginatedList<T>(this IEnumerable<T> source, int page, int pageSize, int count) { return new PaginatedCollection<T>(source, page, pageSize, count); }
1
e570c0c9c16596d89ce9bf7cdb5cc6a8
0719a0d6f17d5903c75560814260cccc
BucketsCommand retrieves a list of all buckets.
func buckets(db *Database) { buckets, err := db.Buckets() if err != nil { fmt.Printf("[-] Could not read buckets: %s.\n", err) } for b := range buckets { fmt.Println(buckets[b]) } }
1
57f316b761735242bd33bce54180a88d
5d1ddaec08be6f859cb081e9344ace27
触发飓风
local t = GetExpiredTimer() local u = LoadUnitHandle(YDHT, GetHandleId(t), 0) local i = LoadInteger(YDHT, GetHandleId(t), 2) local loc = LoadLocationHandle(YDHT, GetHandleId(t), 3) local l__ut = nil local g = CreateGroup() GroupEnumUnitsInRangeOfLoc(g, loc, 325, Condition(IsFuMoEnemy)) l__ut = GroupPickRandomUn...
0
c93b15785a1d3529cb81faec9f7b0d02
12d07170f4fbdb22a62908a744c74502
Change the title of the page to show the current date range the user is viewing.
{ this.today = $.datepicker.formatDate('MM d, yy', new Date()); $('#date_today').val(this.today); $('#date_accident_report').hide(); $('.quote_console_open').hide(); $('.hour_selection_container').hide(); $('.quote_blur').hide(); getLocalStorage(); }
0
506d952a2751132ae280f86062c2f6db
e50f59e61ffa234fcc335d9ca513479f
Check the data data for the image type If unknown or no data data is present, null will be returned
if (in == null) { return null; } try { byte[] bytes = new byte[8]; in.read(bytes); return getImageType(bytes); } catch (IOException e) { return null; } }
1
8976d0c1ec56b07372641c4fb6400534
b317e49b4e38ca22f72773046bc6ab2a
读取二进制版本号
try: with open(self.version_file, 'r') as file: version_json_dict = json.load(file) self.old_version = version_json_dict['version'] except: print('read version file failed.') sys.exit(0)
0
a7cf02dfe2320e4b31f413ebbb8e6908
cfabb67dad6786156330d62be6e4f6dd
Compute the TF-IDF scores based on the entire corpus but only return the first numX documents, as those have labels to be used for evaluation
list_of_tokenized_docs = [tokenize(doc) for doc in documents] X = np.zeros((len(documents), self.top_n)) return X
0
3e8399e69a2ef838fcd3faad070f143a
fd62f7626df1e6f120f1106d8da3cb23
Constructor method for getTSBDataV3Response
class BasicResponse extends \PKIX\Message protected function init( $data ) { try { $this->_tlv = ( new \lyquidity\Asn1\Der\Decoder() )->decodeElement( $data ); $tbsResponseData = $this->_tlv->first()->asSequence(); $dateTime = \lyquidity\Asn1\asGeneralizedTime( $tbsResponseData->getFirstChildOfType( Unive...
0
b45e68b1d63c42d4ac0f39fbd4b13596
3a71f7d1346cacc750470a6782948128
Reverses the normalization applied on an image by the :func:`utils.reverse_normalize` transformation. The image must be a `torch.Tensor <https://pytorch.org/docs/stable/tensors.html>`_ object.
def denorm(img_tensors): return img_tensors * stats[1][0] + stats[0][0]
1
bbe44a50794c8ddba265167bb6f45847
c7572aea91986d14cb3a09b18d49e490
删除系统日志.
public void deleteLogs(String dbName, String dateStr, String systemName, String level) throws Exception;
1
2e463c49e2706ac30e1a5c906f931f34
a45b1872ef04a5bef79dbe1c0cdee9d4
캐릭터를 자연스럽게 움직여준다.
{ Vector3 targetPosition = Character.TransformPoint(_transformPointPosition); transform.position = Vector3.SmoothDamp(current: transform.position, target: targetPosition, currentVelocity: ref _velocity, smoothTime: _smoothingTime); }
1
221f0a34db0e54554b842ac61dd073ba
4fd344590e98dd325dbd1e2f20a6221a
生成DaoManager实例
DAO dao = dataSources.getDAO(DS_MANAGER); if (dao == null) { throw new IllegalStateException("Manager DAO is null"); } return dao; }
0
71fcd84515fa5cfb014b8e8226919da2
8d555cb0a1acad9fc47d3431b5f51706
Create an SQS message for a web resource.
content_encoding=None, headers=None, properties=None): properties = properties or {} properties.setdefault('delivery_info', {}) properties.setdefault('priority', priority or self.default_priority) return {'body': body, 'content-encoding': content_e...
0
8cebbb96e8869e1e30da3b4110c4b2ee
02b635983d8fafbcbed335963c41519c
给OleDbParameter数组赋值
namespace ClassLib4Net.Data public sealed class OleDbHelper private static void AssignParameterValues(OleDbParameter[] commandParameters, object[] parameterValues) { if ((commandParameters == null) || (parameterValues == null)) { return; } if (commandParameters.Length != parameterValues.Length) { ...
1
586858b3a56b23df9d4a94d91e8e74b7
844badfd81dc9b936c4c197f6ecd6207
Initialize using optionally given dictionary of coefficients
if len(X.shape) != 2: raise Exception( "X should be a two-dimensional array of shape (N,D), N = number of samples, D = number of dimensions. " "Current shape of X is " + str(X.shape) ) self.X = X if self.standardize_samples: sel...
0
b730657dab1a010e368278992a7c93aa
72d2fe898e5c339d0e7cd3be4baf1c13
<summary> Data layout descriptor for reading fluid particle data from the SDK. </summary>
{ mPos = (Vector3DF*) malloc ( m_numFluidParticles*sizeof(Vector3DF) ); mClr = (DWORD*) malloc ( m_numFluidParticles*sizeof(DWORD) ); mClrNorm = (DWORD*) malloc ( m_numFluidParticles*sizeof(DWORD)*2 ); mNorm = (Vector3DF*) malloc ( m_numFluidParticles*sizeof(Vector3DF) ); mNormLine = (Vector3DF...
1
b0b554730066eac197c43aa1d9d3e1d2
adde965e2a473940736c8624e94652a4
Create menu for Contacts Manager
function onOpen(e) { SpreadsheetApp.getUi() .createMenu('Contacts') .addItem('Authorize', 'authorize') .addSeparator() .addItem('Sync contacts', 'confirmSync') .addItem('List contacts', 'list') .addToUi(); }
1
74a32be4fcff30364b5b16979d733d65
d8323660f775bffa2efe74d9b9a83b11
Delete the application with `application_id`.
class ApplicationService public function deleteById($appId, array $queryParams = []) { $this->api->applications()->deleteById($appId, $queryParams); }
1
5d9157f72ad7b4f425df77278de718e4
8c50b1f566d19602f6903ae0b4be2250
住院费用明细录入函数
void MainWindow::on_action_24_triggered() { Fees *h_f = (Fees *)malloc(sizeof(Fees)); Fees *p_f = h_f; p_f->next = NULL; p_f->f = NULL; p = head; while(p->next) { strcpy(p_f->dormID, p->dorm.dormID); p_f->f = (Fee *)malloc(sizeof(Fee)); strcpy(p_f->f->y, "2015"); ...
0
1527f1712437a6a70e817a3145e3d4a3
50a13fb059e4010d5a28beedc0c45c10
给定一个子树的根节点, 不断沿着它的右孩子向下找, 直到找到最后一个右孩子, 返回之
if root is None: return None while root.right is not None: root = root.right return root
1
265dfc9f6e05372e2713651431663526
affac002e7e932ff0feb4a9639611d23
The main component, this component is what shown in the opening screen.
const {t} = useTranslation(); const dispatch = useDispatch(); function showLoaderAndNavigate() { dispatch(setAppLoader(true)); setTimeout(()=>{ dispatch(setAppLoader(false)); navigation.navigate('ComponentScreen'); }, 300); } return ( <Touchabl...
1
bc87251db339d0f27db6117fdca996fb
37dbfab74c24261d6e171e9d28d85e02
个人伤害排行榜
class GuildCopyLogic public static function getRankList($uid) { Logger::trace('function[%s] param[%s] begin...', __FUNCTION__, func_get_args()); $guildMemberObj = GuildMemberObj::getInstance($uid); $guildId = $guildMemberObj->getGuildId(); if (empty($guildId)) { throw new FakeException('not in any guild o...
1
0a4a3daeff6bd785babe844f72a301de
dc5e28a845c231f924ab44b4455d7fa2
收起全文
expandSummary() { this.setData({ isFold: false }) }
0
2026817f3e70b43c6367ce672d7d58af
155293002637a356b9c7c969bf6a0341
取得不包含的文件列表
class FileManager protected function exceptFiles($directory) { if (!is_dir($directory)) { throw new \Exception("Directory not exist $directory"); } return array_diff(scandir($directory), $this->config['except'], ['..', '.']); }
1
d40be4872582b835bd0acb3dfab40112
aa828149dd8e596834c524f9d419a17f
从返回的网页源代码中获取到验证码的url
String checkCodeUrl = null; Pattern checkcodePattern = Pattern.compile("data-src=\"(.*?)\""); Matcher m = checkcodePattern.matcher(content); while(m.find()) checkCodeUrl = m.group(1); Scanner sc = new Scanner(System.in); System.out.println(checkCodeUrl); ...
1
a6fdd648e64674e8689db6e4e66afcd2
7bdf1222427862d6452337a99aa6bdb4
Find all use statements.
while ($token = $token->next()) { if ($token->is('T_USE')) { $token = $this->useLine($token->toNext('T_STRING')); } } }
1
7e4eb75c5ce30bd66b8b89ebf7bebb66
71fcffb579430e6e615cf28d1268f803
Inverts all eye directions within this trigram.
namespace WM.Framework.Monogame public class Camera3DPerspectiveOffCentre : Camera3D public void Invert() { float f = top; top = bottom; bottom = f; f = left; left = right; right = f; }
0
71cbf824dae214fb71453162f2d3e018
313325c40423777677a89275f6a2550a
Returns true if the {@link frc.subsystem.Cargo} subsystem should intake cargo from the left.
boolean tempLeft = mWasLeft; mWasLeft = false; return mLeft || tempLeft; }
1
b4637e19e793fef35e80edb61236b9c6
2525deb00a957e2a7fc2849ae74e2f24
忽略为序列号重新提交配置的testoldconfigreplay测试,该序列号不是更新的。
self.CANEngine.load_config('tests/configurations/conf_replay_uds.py') self.CANEngine.edit_module( 2, { 'pipe': 2, 'services': [ {"service": 1, "sub": None}], 'mode': 'UDS', 'range': [1, 2] ...
0
391a079d76a011a02c34a88aa85e2830
92ca27519524d4e5f32328c58bd1cb76
递归生成公式f的合取项
assert(_fml); if(_fml->formula_type == CONJ) { divideFormula(_fml->subformula_l, _result); divideFormula(_fml->subformula_r, _result); } else { Formula new_formula = Formula(_fml, true); _result->pushBack(new_formula); } }
1
3a59190bf71ef3f2df3f6f438eda8f3f
8f51851ff7f0df64a77ed6e2e49029ce
This function sets up the home screen for the staffer
class Frames: def home(self): self.homeFrame = LabelFrame(self.master, text='Add An Entry') self.homeFrame.grid(row=0, column=0) webLabel = Label(self.homeFrame, text='Website') userLabel = Label(self.homeFrame, text='Username') passLabel = Label(self.homeFrame, text='Password') ...
1
16f89eadc339610004561b7ca29d160a
a6e60acedc70ce4d0220f282d6651b8b
제목검색 카운트 전담 함수
if(scope.isValidNumber(cnt)){ scope.total_count = cnt; scope.subTitle = "모두보기 (" + cnt.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") +")"; } }
0
9d091578d395ac200e9d5008ba592d36
cef9a31f8f0bfe8e5e131fc79080e3c3
Set 离线缓存配置。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
public class OssindexClientConfiguration public void setCacheConfiguration(@Nullable final CacheConfiguration cacheConfiguration) { this.cacheConfiguration = cacheConfiguration; }
1
2af565c53b01c6e2952a0467fd6949ed
14c7c23dedbd5e2b8b223fc0a8f20f39
The create time stamp of the SLB.
public class LoadBalancerDetail extends AbstractModel{ public String getCreateTime() { return this.CreateTime; }
1
b1d5173b95d261981254294deddefcaf
b441fc326da56e91f4ce93502cf66877
サービスの開始時に、条件式を評価してみるかどうかを判定する。<p>
boolean condition(Config config) throws InterruptedException;
1
99956cc7419af2ca6172b981e6e009fa
3328432b59cc063bdee34c8aab25f6bb
Method to check the Avid publish was successful
setBody(getResponse().getBody()); setContentType(getResponse().getHeaders().getContentType()); int count = 0; boolean result = false; List<Object> publicationYears = JsonPath.read(getBody(), "$..facets.publicationYears"); count = verifyThatVariableSetInResponse(count, pub...
0
7c6d0580ada652a1865d4b5073002eeb
dab45a68bbdfd292ecba1408f2e34c0d
calculates the 2-sample KSD statistic for the the two samples stored in arrays a1 and a2
def ks_2samp(data1, data2, binned=False): if binned == True: cdf1 = np.cumsum(data1) cdf2 = np.cumsum(data2) n1 = cdf1[-1] n2 = cdf2[-1] cdf1 /= n1 cdf2 /= n2 ndf = data1.shape[0] else: n1 = data1.shape[0] n2 = data2.shape[0] ndf = ...
1
aff6003459b34705e0c60f04db286365
cba0e62644e35a2dd13cc6f8b4b76411
Skip all «white» characters until next non-white one. Currently only spaces are considered as white. Returns nothing.
static inline void skipwhite(char **s) { while (iswhite(**s)) (*s)++; }
1
b9c3879426184945487c6fa6dbaed450
02cf34f0ff78ff4c23bb831e6a65583e
Standard error of mean over replicate values. The standard error of mean is computed as: sem = (unbiased standard deviation) / sqrt(N replicates) Returns: (float) of the standard error of mean Raises: ZeroDivisionError if there are either 0 or 1 replicate data entry.
def semi_std(ret): return ret[ret < 0].std(ddof=0)
0
15ee068cc37d401a90fc7ef3398447f1
9d1710d9395d9f8e752ef9ec33db8b99
Returns if the item is a square shape(Matching height/width)
class Info implements JsonSerializable, Serializable public function isSquare() { return !$this->isLandscape() && !$this->isPortrait(); }
1
e7e1f351f8bf9a5a2b9396d7711624dc
b22eec1eb098b59c44394dc3de497765
Find the "CLEAR BROWSING BUTTON" on the Chrome settings page.
calabash.wait_for_animations 100.times { smart_progress_loading_message.wait_gone break if [recommend_campaign, browsing_history_label].any?(&:exist?) flick_with_params("* id:'content'", {x: 50, y: 40}, {x: 50, y: 20}) calabash.wait_for_animations } browsing_history_label end
0