query_id
string
corpus_id
string
query
string
code
string
label
int64
c98bbcd58d8fe83514f802e50c37ced6
1c407f969f0859c7af694c6d5cc54ac9
construct training and evaluation datasets according to the config dict. returns also the index (dates) for the eval data
total_data_day_count=self.config['testing_set_day_count']+self.config['training_set_day_count']+self.config[ 'validation_set_day_count'] raw_data_try_start_date=self.today-timedelta(days=2*total_data_day_count) raw_trading_days=self.data_adapter.get_trading_date_coordinate("SZSE", raw_data_try_start_date, self...
1
ace037b21bd4ee2893884f355e72406b
a8e84b0ff7c9458c4a8a5732928e61f9
Объединяет прикладные и служебные опции компонента, если это необходимо. (Например для compound-контрола)
{ if ($this->options === null) { $this->dispatch(new BuildOptions($this)); } $topOptions = array_get($this->getConfig(), 'top_options'); if (!is_array($topOptions)) { $topOptions = array_filter(array_reverse(explode("\r\n", $topOptions))); } fo...
1
8476bb2d6b8086fe0b6e377f95cff179
aab1fe7962967bc71d9a1b891fb80d6c
verifica se o ciclo de vida da activity que vai exibir o feedback permite mostrar o feedback
$this->SeekUsuarioGrupo(); if ($this->feedback['code'] === '30011'){ return true; } return false; }
0
9045485811ec3169e1dc234f5a45a0b3
c0dc5dacd27f9ef9832cc836aa797b81
OPAC登録処理
{ $validator = Validator::make($request->all(), [ 'title' => ['required'], ]); $validator->setAttributeNames([ 'title' => 'タイトル', ]); if ($validator->fails()) { return ( $this->create($request, $page_id, $frame_id, $opacs_books_id, $validat...
1
eb1387e8cf37b25ef147654b6ffc8758
db67bc7498233b3458bc72771601a056
Blur an image with a given sigma and kernel_size
def blurImage2(in_image: np.ndarray, kernel_size: np.ndarray) -> np.ndarray: gaussian_kernel = cv.getGaussianKernel(kernel_size, -1) blurred_img = cv.sepFilter2D(in_image, -1, gaussian_kernel, gaussian_kernel) return blurred_img
0
45e380bd177c38b5ec79e095cebcc21c
d165b0d8499aee74970258f5708a5f94
TaskGyro
void hrt_sensor_data_task(void *pvParameters) { int16_t gyro = 0; uint8_t gyro_id =0; uint32_t gyro_val[2]; bool threshold_exceed = 0; while(1) { if (xSemaphoreTake(xSemaphore_hrt, (TickType_t )portMAX_DELAY) == pdTRUE) { readFloatGyroX( &gyro,gyro_val); gyro_id = gyr...
1
291a92fb7725c221fe990ccf5555e688
b270ec6479bd9dc0f9693d579bb9210e
设置最大录制时间,设置小于0无效,使用默认 提示时间时10秒前
class RecordUtils(private val callBack: RecordCallBack? ) : RecordListener, PermissionListener fun setTime(startTime: Int) { this.startTime = startTime callBack?.onRecording(startTime ,0) }
0
31e5cc78afc6d2e0c93a5878340d091d
a7b709dbf166b23c6792451624cb2866
Copy a root node to another language
{ if (empty($labelSrc) || empty($labelDest) || $labelSrc == $labelDest) { return ExtenderFacade::execute([static::class, __FUNCTION__], null, func_get_args()); } $themesDir = __DIR__ . '/../../design/'; foreach (glob($themesDir.'*', GLOB_ONLYDIR) as $theme) { ...
1
29434221859e7956837a15f8729c8e4a
4160172887dfecb457029feca92f67dc
Set the job execution server name.
public function setServerName(string $serverName) { $this->serverName = $serverName; }
1
c25f127eb4b7725c6a8f3af996f578c4
1eb2b6140b378b126b66ec65ed7efdea
Sets transition time minutes field.
public class JDecInputPanel extends JApplet public void setMinutes( int i ) { minuteInput.setText( mdf.format( i ) ); }
1
abe6c76af4fc436b4876a3950d8a8439
4a81b3c5db741e02b7a6af35bdf37a8b
Handles the Click event of the OkButton control. Checks to see if valid info was entered
{ try { lblError.Text = string.Empty; if (string.IsNullOrEmpty(txtCustomerName.Text.Trim())) { lblError.Text = Resource.CustomerNameEmptyErrorString; return; } if (stri...
1
7b132c6b8f7520503c3ff5b9623693ad
5b7c7784479f5dccab78831773505a3f
Compares {@link JSONString} provided to the expected {@code JSONString}, checking that the {@link com.paypal.JSONString#toJSONString()} are equal.
public class JSONAssert extends Assert public static void assertEquals(String expected, JSONObject actual) { assertEquals(null, expected, actual); }
0
8479e2dffe1b25b29ddb90556a55d8b4
9ddd9c31284cd4c51a0f2ff6701ec04f
円柱を生成する
{ const unsigned X = 0, Y = 1, Z = 2, W = 3; #ifdef USE_OSG osg::Cone* cone = new osg::Cone; cone->setRadius((float) _radius); cone->setHeight((float) _height); osg::Geode* geode = new osg::Geode; geode->addDrawable(new osg::ShapeDrawable(cone)); osg::Matrixd T; T(X,X) = 1.0; T(Y,X) = 0.0; T(Z,X) = 0...
0
8abb67bcf81719984c979e5140100b3f
bf435c031e750c287982dba0a21f6f27
查询指定日期后的新闻
$tom_date_string = $date_string + 86400; $mysql_obj = MysqlObj::getInstance(); $query = " SELECT id FROM liv_contentmap WHERE pubdate > $date_string AND pubdate...
1
a022fcd99001fd1e3914fbdba91d2cd0
1a2488365703aee515091337211923a1
Initialize Extent report before test starts
namespace PageObjectModel.Utils.Hooks [Binding] public class Hooks [AfterTestRun] public static void FlushExtent() { _extent.Flush(); System.Diagnostics.Process.Start(pathReport); }
0
3d372967e08920ef5056d5f96aeceaf5
818d66394db53e33647b3f34ba591405
Returns the auditoria perfilador local service.
public abstract class ValorCuotaLocalServiceBaseImpl extends BaseLocalServiceImpl implements ValorCuotaLocalService, IdentifiableBean public void setAuditoriaCajaSorpresaService( AuditoriaCajaSorpresaService auditoriaCajaSorpresaService) { this.auditoriaCajaSorpresaService = auditoriaCajaSorpresaService; }
0
617ec927d96b76f9d8ef787186c5ea4e
e19c78f198fe9dd727c75fcb4ab36134
Gets the value of the medicationDispense property. possible object is {@link MedicationDispense }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Resource.Inline", propOrder = { "diagnosticOrder", "imagingStudy", "adverseReaction", "practitioner", "patient", "conceptMap", "alert", "orderResponse", "specimen", "relatedPerson", "immunization", "documentReference"...
0
859d2cbcb628e57ff13e01cc0b9419c2
ba67081a6e34552d6f89ad7d33844c03
Decrease the number of accesses of a specific card by one
void gdev_access_end(struct gdev_device *gdev) { struct gdev_device *phys = gdev_phys_get(gdev); if (phys) { gdev_lock(&phys->global_lock); phys->accessed--; gdev_unlock(&phys->global_lock); } else { gdev_lock(&gdev->global_lock); gdev->accessed--; gdev_unlock(&gdev->global_lock); } }
1
010c04a32674b16fa5c26f95e512930f
95ed8da74583100829c229b1a9fd5e76
Fuses two {@link Structure} together. They must be adjacent to each other
self.__root1 = structure1.pop('root') self.__structure1 = self.__purge_roots(structure1, self.__root1) self.__structure2 = structure2
0
b9f484427a612a8ccfd5fd7bf1286ace
3471115ea1971cb411d1e9fb2cf6b79f
出庫実績エリアNo.を設定します。
public class RetrievalOutParameter extends OutParameter public String getRetrievalResultAreaNo() { return _retrievalResultAreaNo; }
0
0ccb028c0f7b93251dc033c943efc9aa
f9693a3416ec9e761907bd6a2a62a33f
鍵スイッチ状態をboolで返す
class Actor(object): def get_state(self): return bool( self.box.homeautoswitch("getswitchstate", self.actor_id) )
1
71685f4b77b85778027f5229a07865fd
4a9063caf8d7fa11814963f047fd1d95
(Yaf >= 3.0.1) 设置模板的基目录, 默认的Yaf_Dispatcher会设置此目录为APPLICATION_PATH . "/views". 成功返回TRUE, 失败返回FALSE
class DwooView extends View public function setTemplateDir($path = VIEW) { $old = $this->_sv_template_dir; $this->_sv_template_dir = $path; return $old; }
0
c879cc7257a7302038a3d405c618e101
6c7b976fe90dc18ab0150fb238fa86fe
Output: printed instructions
def print_instructions(): print("Run the Risk!") print("Each turn, you can risk some of your cash to win rewards.") print("Will you be:") print(f"- conservative ({CONSERVATIVE_WIN_CHANCE}% chance for a +{CONSERVATIVE_REWARD_PERCENTAGE}% reward),") print(f"- aggressive ({AGGRESSIVE_WIN_CHANCE}% chanc...
1
b053201d0304aadcfabc3c8b62724ff0
93d7d48e58e537f9d227c5b7b891db26
Test getting 3D cell face orientation.
class TestCoface(unittest.TestCase): def test_cell_isCoface(self): self.assertTrue(self.cell1.isCoface(3)) self.assertTrue(self.cell1.isCoface(2,1))
0
7d89ac7331996a442a48ee2a155d998b
d150fbe71172cee103e67037b3dd43cf
Cr�e un processus parall�le qui s'occupera de la communication. Lance des �v�nements PropertyChange pour signaler son �tat.
threadComm = new SwingWorker(){ @Override protected Object doInBackground() throws Exception { System.out.println("\nLe fils d'execution parallele est lance"); int compteurFormes = 0; while(isConnected()){ try{ Thread.sleep(DELAI); ...
1
8bf323c96322c5c729a9bb41614d46a2
4e0657ff5b4dc791262b9aaf87d046d1
This method perform the assembly process of the structural FEM matrices. Returns
print("Calculation start for matrices L, S and F") N = self.NG*self.NR self.L = lil_matrix((N, N)) self.S = lil_matrix((N, N)) self.F = lil_matrix((N, N)) print(self.geom) for g in range(self.NG): g_NR = g*self.NR for i in range(self.NR)...
1
aeeacb2dda3936b83e2a6bff7ee907ea
8148e50d7024e873f4260e7e641999bf
Исследует незахваченные зоны
Summon[] summon = GameObject.FindObjectsOfType<Summon>(); foreach (Summon script in summon) { SummonZones.Add(script.gameObject); if (script.gameObject.transform.parent.name.Contains("Player")) { PlayerSummon.Add(script.gameObject); ...
0
696a8389dbb6e644b5375483a9728c4a
948de3ef2eb33d8d9dab82f874540b83
Close Indeo5 decoder and clean up its context.
{ AC3DecodeContext *s = avctx->priv_data; ff_mdct_end(&s->imdct_512); ff_mdct_end(&s->imdct_256); av_freep(&s->fdsp); av_freep(&s->downmix_coeffs[0]); return 0; }
0
3d7f1c4c4c0a8dc5f8f46bf108f00315
36fb116f82b964f9693005e91dc8bbf4
Execução da soma da matriz A pela matriz B
sizeLA = len(matrizA) sizeCA = len(matrizA[0]) sizeCB = len(matrizB[0]) matrizR = [] for i in range(sizeLA): matrizR.append([]) for j in range(sizeCB): val = 0 for k in range(sizeCA): val += matrizA[i][...
0
4207e75943222aea1657c036ba7b77fe
f66faaa0b1a35293aeabad366f15b5c0
Sets allow tipping field.
namespace Square.Models public class TipSettings public bool ShouldSerializeAllowTipping() { return this.shouldSerialize["allow_tipping"]; }
0
aba33be8f4974805db81923e91ac853a
aecbf3f404cc22a0158f83e532f7c8ae
Create a named constant value.
class ModelBuilder(object): def new_constant(self, value): return self.new_var(value, value, False, '')
0
9c803a5b2dba64bb10da1f323f545e3e
91742ee05ab86fc022d6c17021db46a5
IP地址校验,校验通过返回true
fun checkIpAddress(@NonNull str: String): Boolean { val pattern = Pattern.compile("^(1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|[1-9])\\.(1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\\.(1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\\.(1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\$") return pattern.matcher(str).matc...
1
b75eb731a4179d7e6ae2ed4d54b456e5
93fd1f634974105700688fc4f23dcaff
期货当日成交查询过滤条件
{ string cond = ""; ClsQuyStrUtil quyStrUtil = new ClsQuyStrUtil(); quyStrUtil.addQuyCon("C_DA_CODE", "C_DA_CODE", "ZQ", ClsConstant.SQL_RA_HYPHEN_LIKE, ClsConstant._LIKE_MARCH_LEFT); if (this.txtSecMarketCode.Text.Trim().Length != 0) { ...
0
12707560e95c37d05592966a31f8ace5
0c59ac4a6f802a81470da80d097f704a
判断年龄阶段
if (age < 0) { return 'wrong' } if (age <= 3) { return '婴幼儿' } if (age <= 10) { return '小屁孩' } if (age <= 18) { return '少年' } if (age <= 28) { return '青年' } if (age <= 40) ...
1
b07b8b0936d4a4169b4186f0dac52e6d
992e80cb562a6798d61d72458fc45ef5
@brief Load the values from the .ini file to the form
void CFG_Load(wxConfigBase &IniFile) { wxString s; IniFile.SetPath(_T("/Config/INTERFACE")); IniFile.Read(_T("InterfaceType"), &Config.pic_interface_type, Config.pic_interface_type); IniFile.Read(_T("SupportFile"), &s, wxEmptyString); _tcsncpy(Config.sz255InterfaceSupportFile, s.c_str(), 256); IniFile.Read...
1
473bbaf208ddeb7e80cb60a8149aced8
a6be81bdcb22937673fd1763178c77cc
Retrieves a list of {@link Character} for the comic matching the specified id
export class ComicsDetailComponent implements OnInit getComicsCharacters(id:string){ this.comicsService.getComicsCharacters(id).subscribe(data =>{ this.comicsCharacters = (data as any).data.results; }); }
1
59bdf31d3eb4a80ce89edf99a13601de
424ec8b1884f0c324a534fa9450d3efa
Get staff uuid
Byte getStaffId();
0
cfbcabd84e188ab44f8653cd32fec65d
739749ca356ca3d3423e2893dbe2e6b7
Do nothing if topping is already on this pizza Validation that topping is valid must be done elsewhere
var validate = parameters.validate; var size = parameters.size; var crust = parameters.crust; var toppings = parameters.toppings; alert("not implemented"); }
0
1d2f567a249ffb44a6eb13438e4b2f9f
4a3fc854f9f89487d6f3315eae7e2a9f
Method calculates the total intensity of the peaks
double getTotalIntensity();
1
d25d28ffc77bbdf25e8a74095269df89
dce5ed9c1cd5af1bfd87a98d8ec250ce
Process a single Jenkins run and record metrics accordingly
ci_run_re = re.compile(ci_run_patt, re.MULTILINE | re.DOTALL) ci_job_v1_patt = '^- (?P<proto>.+)?://(?P<jenkins_path>.+)?/job/(?P<name>\S+)/\d+/ : (?P<result>\S+) in (?P<time_h>\d+h )?(?P<time_m>\d+m )?(?P<time_s>\d+s)(?P<non_voting> \(non\-voting\))?(?P<the_rest>.*)$' ci_job_v1_re = re.compile(ci_job_v1_...
1
293f4bfa34ad6a1866f30d7e0a991f50
0526d8f385d31458143d4fceec32a772
获取已订阅的栏目名称+父栏目名称
class Service(object): def get_father_and_son(self, name): try: father = self.dao.getCategoryByName(name) category_list = self.dao.get_all_category() son_list = [] self.find_all_son(category_list, father.id, son_list) father_list = self.dao.get_blog_he...
0
1e295a39de38a5d5418feb8b483a6710
cf6d1802d81ffcba9230c651c4fdadb6
Read graph from file in pickle format
class DGState(object): def read_graph(self, graph_file): pass
0
b42d01838497072b12372ded5be2fd24
82b84e60b9f46a88ade1137387064e2a
Signals that there is no committable any more.
void toLastCommitted();
0
15581e04eca153fb5e8da281c035dbfe
c734ca27c74705b11c7251af0df2d772
https://atcoder.jp/contests/atc002/submissions/9878231
n,q = map(int,input().split()) s = input().replace('AC','01') c = [0] for si in range(n): if s[si]=='0': c.append(c[-1]+1) elif s[si]=='1': c.append(c[-1]+1) else: c.append(c[-1]) c = c[1:] ir = list(list(map(int,input().split())) for _...
1
682553060d2b344df01dc11081c37180
1df326d99d8cfbbb6f514d9794f7b267
Get session data by id 53003
class DBSession implements SessionHandlerInterface public function read($id) { $tableName = $this->db->parseField($this->tableName); $sessionID = $this->db->parseField('session_id'); $result = $this->db->query(<<<SQL select * from {$tableName} where {$sessionID} = %s SQL ,array($id)); if(isset($result['data'])...
1
6b0db8d8f7c4b02cb5735a0cce8e68c8
c9127f9abf2feec6755c7cc2276cac95
This method implements the command to read a library. It is interactive, and pops up a dialog box.
public final class MenuCommands public static void openLibraryCommand() { String fileName = OpenFile.chooseInputFile(OpenFile.Type.ELIB, null); if (fileName != null) { URL fileURL = TextUtils.makeURLToFile(fileName); ReadELIB job = new ReadELIB(fileURL); } }
1
e8224c5261d15634df7d59a23219ea5c
d49300c7686174ebb92692833fb72332
리뷰가 등록 된 영화의 평점 컬럼 수정용 메소드
@Repository("ReviewreDAO") public class ReviewreDAOImpl implements ReviewreDAO @Override public int updateReviewre(ReviewreVO reviewre) throws RuntimeException { return sqlsession.update("kr.capa.acip.Reviewre.updateReviewre", reviewre); }
1
44515e00151952c7cd011033b7e93b02
5d5a6666c0bf03d5a013b0bb4e1a7ca4
Returns a file mask that will match import files with the correct extension
public class UtilityProvider public static FileNameExtensionFilter getExportFilter() { return exportFilter; }
0
917f089412f828d522058ac988e59b3c
ea208e365891232ad1454d08a58fd2f3
@brief Вычисление истинного звёздного времени.
{ static const ::u8 days[] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int16_t iYear, iMonth, iDay, iHour, iMinute, iSecond; iYear = lpUd->st.wYear; iMonth = lpUd->st.wMonth; iDay = lpUd->st.wDay; iHour = lpUd->st.wHour; iMinute = lpUd->st.wMinute; iSecond = lpUd->st.wSecond; if (...
0
e60a0a337c083108355368ab74b4c159
8511ea6b7ea8fb0ec64e366a1d48aad2
通过话题 ID 来获取对应的动态
col, closeFun := easygo.MongoMgr.GetC(MONGODB_NINGMENG, TABLE_SQUARE_DYNAMIC) defer closeFun() queryBson := bson.M{} queryBson["TopicId"] = topicID queryBson["Statue"] = DYNAMIC_STATUE_COMMON queryBson["TopicTopSet.IsTopicTop"] = true queryBson["TopicTopSet.TopicId"] = topicID m := []bson.M{ {"$project": bson...
1
44134cc60aa10a3c2cbf702b8bab434d
693128cbd515e4ae5e4f5262fbf04aa3
给自己发牌
{ $temp_card = 255; $this->WashCard(); for($i=0; $i<$this->m_rule->player_count ; $i++) { for($k=0; $k<ConstConfig::BASE_HOLD_CARD_NUM; $k++) { $temp_card = $this->m_nCardBuf[$this->m_nCountAllot++]; $card_type = $this->get_card_type($temp_card); $card_key = $temp_card%16; if(ConstConfig...
1
f36ae2d749d537e36be93e23f3ae262c
12c3b0c1a18a4c91be4c0732f868cb12
Test highlight value for denominator sibling and multiple versions. In this case we are testing if output value of highlights in all_detials is affected if geography structure is different for versions. Geography structure for versions: - version - v1 : ROOT > CHILD1 & CHILD2 - version - v2 : ROOT > CHILD1 & CHILD3 For...
refFile = os.path.join(self.base_path,'ref/test_DVGeometry_10.ref') with BaseRegTest(refFile, train=train) as handler: handler.root_print("Test 10: Basic + Nested FFD, local DVs only on parent, global and local on child") DVGeo,DVGeoChild = commonUtils.setupDVGeo(self.base_path) ...
0
f421ff3c4171349771c6e263f2a8329d
11dab1a7d0616dede64d368a80305245
初始化管线的方法
class Pipe init() mounted(){ let container = this.$refs.graphContainer.$el; let outline = this.$refs.outlineContainer.$el; this.init(container,outline); }
1
0e5a8505be0a392f8b2a2c298aad5a8d
d5419707d2ebd17ac695880fbb09bab1
Entfernt alle Eventmarker aus der Ansicht
for (MarkerWithEquals marker : allMarkers.keySet()) { marker.marker.remove(); } allMarkers.clear(); }
1
b9515df96a52892db44baf9cf33cd657
50ee0aa27f42cb2f357f26b44ea56c25
creation du canvas et remplissage du tableau de bulle avec un certain nombre d'instance
var max=Math.floor(Math.random()*100)+50; var nb=0; max=parseInt(max) for (lop=0;lop<max;lop++){ nb=Math.floor(Math.random()*10000); myTableau[lop]=nb; } }
0
db1fb9d964a3c7dea8496727fd5a4d23
1e0d8441da6b9b36956304e91e4c5078
Act after a subscriber is updated.
class Campaigner_ext public function on_user_edit_end($member_id, Array $member_data, Array $member_custom_data ) { $this->unsubscribe_member($member_id); $this->subscribe_member($member_id, TRUE); }
1
0c3382e725699682d76d9fc93e5dde01
fb98770f153b0a5cfb7b304e735e905f
https://github.com/gopherjs/gopherjs/issues/1083
func main() { if gopherjs.Global != nil && gopherjs.Global.Get("window") != gopherjs.Undefined { js.Main() } else { cmd.Main() } }
1
c8fa0ce3c70da90961cd2ca83d24a8fe
1cced80180766722a277d9ecf621898c
Run over a JSON compatible Ruby data structure and change any list containing just a single nil to be an empty list. The object is changed in place (as indicated by the !).
class RDF::List def normalize_value(value) case value when nil then RDF.nil when RDF::Value then value when Array then self.class.new(subject: nil, graph: graph, values: value) else value end end
0
43f26792b7da5c5345a75f99f4d07eb3
c655f3c259d2f52996b3c647e9031e45
Gets a request builder for the TaxArea collection
[ProducesResponseType(typeof(PagedData<AreaTypeDTO>), 200)] public async Task<IActionResult> Get([FromQuery] PagingRequestModel model) { return await _GetPagingRequest(model, null); }
0
b9393d61642ef7552f89c7318cc2a431
ff6241328b4be490631d0449cb29fe05
Method to draw a grid on the floor (xz axis)
namespace Tactica public class MapEditorSceneView public void DrawMapGrid () { for (int x = 0; x <= mapEditorData.MapSize.X; x++) { Vector3 startPoint = new Vector3 (x - 0.5f, gridYOffset, -0.5f); Vector3 endPoint = new Vector3 (x - 0.5f, gridYOffset...
1
91f82b44e68504fe4d583fa704e58657
dcc1cb01d6103cfeae9d5aa48143f328
Sets the active leg of this OAD* planner.
class RobotClientMX(RobotClient): def set_lid(self, value, callback=None): return self.run_operation('set_lid', value=value, callback=callback)
0
71531c32cf3be2b411f4919252d4adb2
1c93b2916bd0866c8d11ed4393762b58
Gets the value of the week property. possible object is {@link Integer }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TOTAL_VALUE_OF_LIQUID_ASSET", propOrder = { "fridayWeek1", "fridayWeek2", "fridayWeek3", "fridayWeek4", "fridayWeek5" }) public class TOTALVALUEOFLIQUIDASSET public BigDecimal getFridayWeek1() { return fridayWeek1; }
0
f2fc30db71cde40d3ae7376c51f49049
1f4421330445a1d6838ff9b50e9548a3
Returns: tuple: - the decoder's features of shape `(batch, tgt_len, embed_dim)` - a dictionary with any models-specific outputs
class FairseqEncoderDecoderModel(BaseFairseqModel): def extract_features(self, src_tokens, src_lengths, prev_output_tokens, **kwargs): encoder_out = self.encoder(src_tokens, src_lengths=src_lengths, **kwargs) features = self.decoder.extract_features(prev_output_tokens, encoder_out=encoder_out, **kwargs)...
1
c992d48e5cd5ef4a584fe87daa1c03ff
f21b798814036fbcd2f624c90d855dd8
Remove all rules and cases with this pagename.
abstract class PageCache implements FlushableInterface abstract public function purge(ConcretePage $c);
0
a6d230b1e2c75e6cfb0901ebcf1b5b55
8fdea0dc1da1327e6714c63d3416264e
Получить все данные из всех таблиц
function Get_all($table_name, $fields = "*", $where = "") { $query = "SELECT $fields FROM $table_name $where"; $result = Db\Connection::getInstance()->query($query); return $result->fetchAll(); }
0
c6468aa23ddf47780bcd88fbad6e1cb0
fafac449d5657f913191d3c9687f434a
Fetch list of domain that provide a specific service.
try { String requestUrl = buildUrlWithPath("/suggestions/hosts/", encode(serviceDescription)); String requestDescription = "suggestions hosts"; DtoNamesList dtoNamesList = clientRequest(requestUrl, requestDescription, new GenericType<DtoNamesList>(){}); return ((d...
1
8b36a8e9daf9f589446e1768b5c71e9a
f802cb72ae56cfa93e354fd0c7ba652e
switches the operator mode back to "inactive"
namespace PatternCalculator public class Calculator public void UnSetActive() { LastCommand.Restart(); active = null; passive = null; LastCommand.Stop(); }
1
4dbcb82db68b119b685cd48b5d62f24f
f648ec0100190266d7f92faee9e5a87f
Insert cancel refund deposit fee transaction after cancel credit note.
class CancelRefund extends Action public function execute() { $creditmemoId = $this->getRequest()->getParam('creditmemo_id'); try { $creditMemo = $this->creditmemoRepository->get($creditmemoId); $this->refundCancel->process($creditMemo); $this->messageManager->add...
0
4b5c35ccfa80f4226f800e9fcfeb5f8f
6c6bd6220287cb9a31311e4bc46ffc26
根据bRID得到一条借阅记录
namespace DAL public class BorrowInfoDal public BorrowInfo GetBorrowInfo(string useGuid) { string sql = selectSql + " where useguid=@useguid"; SqlParameter pms = new SqlParameter("@useguid", useGuid); SqlDataReader reader = SqlHelper.ExecuteReader(sql, CommandType.Text, p...
0
3d2c57601f4bcbee81d43b42d889a256
4f270d5e22d825cd7d8e26acec417111
Tests that the generated graph is a dag for all graph types.
rows, graphs = zip(*lda.Lda.ExtractGraphs(classify_df[:3])) assert len(rows) == 3 assert isinstance(graphs[0], llvm_util.LlvmControlFlowGraph) assert isinstance(graphs[1], llvm_util.LlvmControlFlowGraph) assert isinstance(graphs[2], llvm_util.LlvmControlFlowGraph)
0
5ae82b79ae6a2ebd633f5f7d5e8e614e
c3edb807852118a30b27308c15ccafa6
Get userstamp field names from the userstamp array
{ if ($i == 0) { return "user_username"; } elseif ($i == 1) { return "user_join_date"; } elseif ($i == 2) { return "user_last_login"; } elseif ($i == 3) { return 'group_name'; } elseif ($i == 5) { return 'listing_modified'; } elseif ($i == 6) { return "listing_price"...
0
1fd6887333fb853aa6ee93989760dd62
1c0208e87747f8a49bc6cf7b18a15463
得到单子上的食物
class Help public static fruitTwn() { let fruit = new eui.Image() if (SceneManager.instance.landId == 1) { fruit.x = 398; fruit.y = 605; } else if (SceneManager.instance.landId == 2) { fruit.x = 350; fruit.y = 800; } fruit.w...
0
8b9c8dee735de9e32609e711778100a9
ad0e1959c43b05f01f18ac063313e3b4
Unsubscribe to notification of ALDB record changes.
public class MfRecordsAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> implements MfRecordsRepository.OnRepositoryChangedListener, View.OnLongClickListener public void destroy() { mRepository.setOnRepositoryChangedListener(null); }
1
0285ea636aa95ef6e332848652bb7f31
fde56566f6a8a65a7f1f4f5f22151e35
Enregistre le manager d'une assocation
{ $ident = strtolower($manager->getName()); $this->managers[$ident] = $manager; return $this; }
1
7390d237f7425b5d4134339f2c917f1b
99de68608407e652ed79f1b889b94eac
PUT /service-providers : Updates an existing serviceProvider. or with status 400 (Bad Request) if the serviceProvider is not valid, or with status 500 (Internal Server Error) if the serviceProvider couldn't be updated
@Timed public ResponseEntity<ServiceProvider> updateServiceProvider(@Valid @RequestBody ServiceProvider serviceProvider) throws URISyntaxException { log.debug("REST request to update ServiceProvider : {}", serviceProvider); if (serviceProvider.getId() == null) { throw new BadRequestA...
1
1868b950438b66422aec821068c9ba0f
dcea7c603afae71d399573dbc1948195
convert globs to regex to use as the designator
function convertGlobPaths( _globs ) { _.each( _globs, ( glob, key ) => { if( _.isArray( glob ) ) { glob = convertGlobPaths( glob ); return; } _globs[ key ] = path.join( glob ); } ); return _globs; }
0
9ef75b7becc716eae18efb3e50c1a71a
827695a9df60696944d13672b6119a5c
return the distance value list according to the pivot index in the parameter of this function
vector<double>& CMVPLeafNode::getDataPointPivotDistance(int pivotNumber) { return distance[pivotNumber]; }
1
f98c61a78cd1fe202dc4aed9499d256c
ed3b0a1adf2627b3e8919c8b5b741d61
Checks whether a student is authorized to participate.
public boolean isApproved(String studentId);
1
bec5cc567a079e6294c0a52c117e4e84
677ca439da28b5a06cd93f23461f72cb
Gets the maximum expected value for limit. Default to null.
@JsonAutoDetect(JsonMethod.NONE) public class JsonValidator public int getMax() { return max; }
0
309bb70176399854f6cf28f21ddf5d74
02d8d976cda74869249e8b4c43db477f
Converts document to destination format with detailed settings and saves result to storage.
namespace PassportPDF.Api Task<PdfSaveDocumentResponse> SaveDocumentAsync(PdfSaveDocumentParameters pdfSaveDocumentParameters);
1
56640fcc677b01215b97d4582030b3f8
4a5451c5c0e4b0601fb512d0586fce8e
Get uy_molde_conciliadet_id_bk.
public class X_UY_Molde_ConciliaTot extends PO implements I_UY_Molde_ConciliaTot, I_Persistent public int getuy_molde_conciliadet_id_bk () { Integer ii = (Integer)get_Value(COLUMNNAME_uy_molde_conciliadet_id_bk); if (ii == null) return 0; return ii.intValue(); }
1
9cb724515562d8de03b01f6c2b5ff455
b780ddcf809ff338fcb9ec5297fe8996
Sets the interest policy (really subscription attributes).
public class SubscriptionAttributes implements DataSerializable, Externalizable @Override public String toString() { return "InterestPolicy=" + interestPolicy.toString(); }
0
8f749e774a0628c3035b3c3d4e345ebf
d5cace0b88c3edbc053efd3a49069211
Returns a random noun from file.
f = open('noun_acc.txt','r') noun = f.readlines() f.close() s = random.choice(noun) return s[:-1]
1
80180e088ca5cf0ba55c56ab29ef7455
cf5be15e914659b28c1ea735493c3b24
abre la pagina de ejercicio de sistemas
class EjercicioController extends Controller public function index() { return view('ejercicio'); }
1
c6bcd0eb0c2bb8856ffa3a3d1a23204b
192194fd9bc635c9cc9ce8060d111cad
#### hypergeometric test
i <- !is.na(p) k <- sum(i) cors <- cors[i,i] x <- cors[upper.tri(cors)] ePsi <- 2*k varPsi <- sum(3.263*x + 0.710*x^2 + 0.027*x^3)*2 + 4*k f <- ePsi*ePsi/varPsi c <- 0.5*varPsi/ePsi newP <- sum(-2*log(p[i])) / c pchisq(newP, df = 2*f, lower.tail = FALSE) }
0
ef2ecb34d6a3d3fd558175a71c6eabb4
3fcd2b7c76789017e453dbfbd5db5855
查询缓存判断用户是否已经登录
public class CacheUtil public boolean isLogin() { if (null == context) { return false; } SharedPreferences sp = context.getSharedPreferences( PARKING_CACHE, Context.MODE_PRIVATE); return sp.getBoolean("is_login", false); }
1
79dff4865d1ec4008dd29303a5da6178
0af56a534e325281715a04e2b2cbb5db
Gets the size of the ellipse containing the image.
public class SketchyEllipse implements SketchyShape, Saveable public Point2D getSize() { return _size; }
1
2e3736e73b7843ba8c1b26b191a6c287
aa0f17cb28b087a5c094096f160f026a
Gets the number of pixels the scrollbar handle is able to move along its track from one end to the other.
public abstract class ScrollArea extends Panel public float getScrollLength() { return scrollLength; }
1
1e35c3c28f1f4c539aa08454d8d08ad3
5e39f415547405576b070860f4669d6c
takes two x,y pairs and some x data. calculates parameters of a linear function returns corresponding f(x) for the given data
def fit_linear(x, p): return (p[0] * x) + p[1]
0
fe3eced7aa95f9cc48f441d6be790286
f69cdaafdad362207e88d0de3dbc6f73
Получение головного элемента стэка.
namespace MyStructs.Stacks public class ArrayStack<T> : IStack<T> public T Peek() { if (_count == 0) throw new StackException.EmptyStackException(); return _array[0]; }
1
5552d5e5628a2b257af78d469e229220
6515f35d1a85e6206a1004e6971f4ee3
we want the real base: sometimes there are many layers of inheritance
public class BSClassImpl extends ClassDeclImpl implements BSClass @Override public TypeBuilder baseType() { if (supertypes != null) { TypeBuilder super1 = supertypes.getFirst(); super1.reorderTypeTree(); if (super1 instanceof TypePowerSet) { super1 = ((TypePowerSet) super1).getChild(); } if (super...
1
966515652663aa9551bd8ef4724d6450
305e1e7e15698e56907447c35a9467c0
Method to raise event PositionChangedEvt.
[Handler(typeof(Splitter.IHandler))] public class Splitter : Container protected virtual void OnPositionChanged(EventArgs e) { Properties.TriggerEvent(PositionChangedEvent, this, e); }
1
f6686a52d5c3911c980ed29e8b0f528d
2b09317753633f9afda234262227046b
https://stackoverflow.com/a/57111228
async function buffer(readable: Readable) { const chunks = []; for await (const chunk of readable) { chunks.push(typeof chunk === "string" ? Buffer.from(chunk) : chunk); } return Buffer.concat(chunks); }
1
f9fa700c178333f8b0f44fb8d9628bf6
3083c62db637a411baf1229d89b6b748
京东金豆签到
params = { "id": "dsu_paulsign:sign", "operation": "qiandao", "infloat": 1 } data = { "formhash": self.formhash, "submit": 1, "qdxq": "kx" } res = self._requests("POST", params=params, data=data) prin...
0
1235efdc581af4c4246b9fbec3b6b252
3777a9b21a86d2c9328c6ee32f9b58dd
Generate ground furniture onto the ground
GameObject Ground = new GameObject (); Ground = (GameObject)Instantiate(BackGr, new Vector3(Block.transform.position.x *0.5F, 0, -1), Quaternion.identity); Ground.transform.localScale = new Vector3 (Block.transform.position.x +3, 16, 1); Ground = (GameObject)Instantiate(BackGr, new Vector3(-1, 0, Block.transfor...
1
5dfb98b270ceeaebb1a84d08578c41fa
eaab384a781e779163454f1a47bb7d46
initialize gradient with flame colors
{ double x{v}; if (x < 0) x = 0.0; if (x > 1) x = 1.0; flames = x; return true; }
0
c04d778f3a81b71288a1dae72ad5c9df
7c912f0472ee76cd23f44d300972d96f
liste des dossiers partagés
{ $ajax = $this->_getParam('ajax', null); if($ajax != null) { $layout = Zend_Layout::getMvcInstance(); $layout->setLayout('vierge'); } $idDir = $this->_getParam('dir'); $this->view->idDir = $idDir; $infosUser = Zend_Auth::getInstance()->getStorage()->read(); $idUser = $infosUser->id; $tableDi...
0
196bcd270faafab382560eb62053b9a1
82c95539bd1ecacad12280d2edf21b60
从dataloader中提取图像数据和便签数据, 再组装成torch.Tensor返回.
tf_dataset = tf_dataset.map(lambda *x: (self.preprocess_tensor_4d(x[0]), x[1])) train_dataset = TFDataset(tf_dataset, self.train_session, num_images) dataloader = torch.utils.data.DataLoader( train_dataset, batch_size=self.train_batch_size, shuffle=True, drop_...
0
a61314cfdfa66aacf4ebe28a5e756c12
cd7d55d9e18f0904b39db48d1982f7b6
Método que valida se uma valor é igual a outro criptografado com SHA-256
{ var c = StringComparer.OrdinalIgnoreCase; return (0 == c.Compare(compareString.HashSha512(), hashString)); }
0
67e54710c2846592325a37db13972d98
025d59b59af7e5376456f88acc79a856
Creates the block of memory, and fills the IBO
{ pBlock->device = device; pBlock->allocator = allocator; pBlock->descriptorPool = descriptorPool; pBlock->descriptorLayout = descriptorLayout; pBlock->pMemory = new int8_t[sizeEntry * maxNumEntries]; pBlock->maxNumEntries = maxNumEntries; pBlock->sizeEntry = sizeEntry; pBlock->dirty.resize( ...
0