query_id
string
corpus_id
string
query
string
code
string
label
int64
a619bee6a57eedb25f064523295d7d8f
e2619a189a5be1770abf8d3b7b58740e
Borrow contents of this cell mutably (read-write). Only one `TCell` at a time can be borrowed from the owner using this call. The returned reference must go out of scope before another can be borrowed. To mutably borrow from two or three cells at the same time, see [`TCellOwner::rw2`] or [`TCellOwner::rw3`].
unsafe { let r = &mut *self.0; r._ref(); r } }
1
368d334c09185079ce2431d793fe674d
df2980b38e6340bf51b07fa1f83270c6
スピナーを閉じたときにコールバックされます
namespace chat_winForm.Forms public partial class UserConfingForm : chat_winForm.OuterForm private void FinishSpinnerMode() { SpinnerBox.Visible = false; UseWaitCursor = false; }
0
1e457e838d0c66bde90e3cfaced68eaf
b7ed3cb3529730c354e778e6ee83e88a
Magic method to implement the equality operator(==)
class MyClass: def __eq__(self, y): return self.x == y
1
a6c7d07e14debd18323cd4aabe2f9483
fd4ea3c705faf57683482cb3bc9f17d6
스트링을 지정한 길이만큼 자른 뒤 지정한 문자열을 추가한다. (한글처리) 대상 문자열 자를 길이의 최대값 뒤에 추가할 문자열
int lenleft = len - source.length(); if (lenleft < 0) { lenleft = 0; } return (source + strAdd(chr, lenleft)); }
0
ec27089a4e2f7d2cb12f433397b576ff
97a7220b08bdc5fe49bdc70191a633c8
我们在这里配置MA策略使用的均线窗口大小和账户对象信息
class SimpleStrategy(CtaTemplate): def onInit(self): self.setArrayManagerSize(self.barPeriod) self.prepare_data() self.putEvent()
0
8364243cc209c4497cefda67f343d59e
096019c03b9c3c39a9e24b29245a24da
This will spawn the turret at the spawn point
public class csTurret : MonoBehaviour void Start () { }
0
cb1e487cc284bc69ddbcb4bf746e818d
f348d61980247643125a19a123c40eab
on return will hold actual length of @bin_data. Convert a buffer with hex data to binary data.
int gnutls_hex2bin (const char *hex_data, size_t hex_size, void *bin_data, size_t * bin_size) { return _gnutls_hex2bin (hex_data, hex_size, (void*)bin_data, bin_size); }
1
2351a0d4668c296d868e9cbadf661f5c
1bb19ecd1d050aea9d95a199422ca42a
Creates a set of simulated responses for a learner.
count = 0 cards_seen = [] responses = [] time = start_time score = 0 while learner['learned'] < max_learned or score != 1: card = choose_card(cards, cards_seen) score = get_score(learner['learned'], card) responses.append({ 'learner': learner['name'], ...
1
6f1b8f174d69294c9cefc5721700a118
c90081587c1b0edde1f06ed7da45e11e
Are two strings the same length?
export class Check public static equalLength(s: string, len: number): boolean { return s && s.length == len; }
1
0490d4ec99fbe318593134deaac0d6f6
36c1af3ea06e32aae6cfd775e4cf4d30
현재 씬의 씬매니저 반환 함수
SceneUser* BuildManager::getOwner() { return m_owner; }
0
6c94116c51cc84ba5f5f2c8751934b9b
711244f03c1b3a11d1b82423d08cec91
As soon as the component is ready, fetch all clubs from server
class EditStudentContainer extends Component componentDidMount() { this.props.fetchAllCampuses(); }
0
8c6d95c5d65b310e09701afe9fcce7d0
ce5943bb87cf5176194c33d1e34466c7
Restric the set of publications to those which are created by specific authors.
class ReferenceForm(forms.Form): def clean_publication_authors(self): return [pyrefdb.Author(author) for author in self._split_on_semicolon("publication_authors")]
0
3a13ba19a19140f685c39fa378679931
58617da0e1a95600afbf10c065f3a2e0
取得两个日期的日期差,返回分钟数
public class DateUtil public static int diffMinutes(Date date1, Date date2) { return (int) Math.abs(diff(date1, date2, 60 * 1000)); }
1
57e0edba815547ea92e4107659b4b9a5
9720f2b6f3782fc200ebb699ca7e06fb
Prepares this Submission Queue Entry as a write.
{ if (!TryPrepareReadV(fd, iov, count, bgid, offset, flags, userData, options, personality)) { ThrowSubmissionQueueFullException(); } }
0
2343e4ff02feb3d15ca44dc87329172c
c35deb009a292695e35c37656050eb53
Bean(VO)类包路径
public class CreateBasicDaoVo public String getPackageName() { return packageName; }
1
f5bcfe5399fb3d5491cb20f25fc1a1ca
7a9b3f9f2c1defe1eabd4243c2cae743
Tests edge case for concat when both lists are empty.
l1 = [] l2 = [] l = merge_sorted_lists(l1, l2) self.assertEqual(l, [])
1
5b6597528dfc09c5ded984b21c99919a
b334d0db5598d71a5c02947d1631c2af
Read the node style from the configuration file.
_file = open(cfg_file, 'r') text = _file.read() self.style_config = json.loads(text)
1
aaffddbbc3680fae1b04cf6b16e9e532
702eadabfab8923a8d190f897a1de912
quita espacios al inicio medio o final
while (strText.substring(0,1) == ' ') strText = strText.substring(1, strText.length); while (strText.substring(strText.length-1,strText.length) == ' ') strText = strText.substring(0, strText.length-1); return strText; }
0
d032e4841e96c247a471fb4729cb7477
483b1502969ac2a853c8d1634a957a50
Tells if the standard port for the given scheme is used
boolean supports( String scheme );
0
a5406537f7288644a43692236d4700c6
f864c319803aa5f7361cfe84b7f0ed73
豌豆荚回调
class CallbackController extends BaseController public function dianjoy_android() { $log = array(); $log[0] = 'dianjoy'; $log[1] = Input::all(); Log::info(json_encode($log)); $key = '77a0cf7fb08151b066da774a4cc84e32'; $dianjoy = Array(); $dianjoy['snuid'] = Input::get('snuid'); $dianjoy['device_id'] = ...
1
28fd1584c0517541159c509a392ab839
583781b5e0fe9dbb1af9e035b74a4665
Lazily applies updates to the indexes defined on this grain The lazy update involves adding a workflow record to the corresponding IIndexWorkflowQueue for this grain.
$workerId = uniqid(); $workerTimestamp = Zend_Date::now()->getTimestamp(); $this->db->query("UPDATE " . $this->getStoreTableName() . " SET worker_id = ?, worker_timestamp = ? WHERE (crc_current != crc_index OR ISNULL(crc_index)) AND tenant = ? AND (ISNULL(worker_timestamp) OR worker_timestamp < ...
0
bba2a48ca5d7e238b7e2ae3f1912f809
b981d8ff81809544b25a5466649f9a68
Хэндлер отработки для указания населенного пункта для отправления заказа
namespace MyTelegramBot.Bot.AdminModule public partial class OrderProccesingBot : BotCore private async Task<IActionResult> SendOrderAddressOnMap() { var Address = OrderFunction.GetAddress(OrderId); if (Address != null && Address.Adress.House!=null) { Loca...
0
29e1e59d92f52c4f11a25027ed50bfbd
7617851a9738a8a2c5f6a7b4b1a2c2df
\brief map glhck shader constants to OpenGL shader constants
{ if (VertexShader_) static_cast<OpenGLShader*>(VertexShader_ )->addShaderConstant(Name, Type, Count, Location); if (PixelShader_) static_cast<OpenGLShader*>(PixelShader_ )->addShaderConstant(Name, Type, Count, Location); #ifdef SP_COMPILE_WITH_OPENGL if (GeometryShader_) ...
1
9fa0a3a09a967a6ce47dde686dd12afb
f86839ff1070137104f7ca260cc4d09d
Single required argument, No return
if TOTAL_ARGUEMENT == 1: pass else: print("There is need of exacly one Arguement.") print("You sent : {} .".format(TOTAL_ARGUEMENT)) sys.exit(0)
1
325fbe09d5ea0ef20705901de28e7d00
f61f511a2402cf765540f7bc9b2c9c0c
Helper function to assign or remove permissions as needed
function runtimePermissions($type = '', $value = '') { switch ($type) { case 'task-edit-checklist': case 'lead-edit-checklist': return ($value === true) ? 'js-card-checklist-toggle' : ''; break; case 'lead-edit-title': case 'task-edit-title': return ($value === true) ? 'card-...
1
a1b52a335c5e6721e47655ba8ee58eaf
386439dd397cb5035b042d5ea0050c6b
Query DB table <tt>MB_PLAN_LTECELL_INFO</tt> for records. <p> The sql statement for this operation is <br> <tt>select record_time, cell_id, city, contry, min_distance, projectphase, cover_type, high, longitude, latitude, ISCHECKTYPE, NETGRNAME from mb_plan_ltecell_info where (record_time = ?)</tt>
public MbPlanLtecellInfoDO getPlanCellByTime(Date recordTime) throws DataAccessException;
1
802c7aea9d5d51e52f6fe6e4e82de3a7
9680cd312719a8bcf8b288d29fa77ea7
Sets the minimum amount of required arguments in order for this command to run.
@SuppressWarnings({"unused", "WeakerAccess"}) public class BCICommand<C extends AbstractCommandContext<C, T>, T extends AbstractTabContext<C, T>> public int getMinArgs() { return minArgs; }
0
f3abd0edf894ba6a3c78591c33f8464d
102a5c3a5ecf0fd5ab79d1e90cbcc3e4
Populate array with ascending numbers, then shuffle
var array = makeIncrementArray(max); shuffle(array); var result = Array(num); for (var i=0; i<num; i++) { result[i] = array[i]; } return result; }
1
784576dcdf916e74cfdbe18ad0279da3
3521e14ce3d84177372d72f3a1b7d134
Creates an instance of the settings window.
def init_settings_window(): settings_win = TkWindow(root)
1
a74eb4cbd02b0f306f544b6653f88a7c
cb27c73cf67a30bccb5f034fb3608dc7
RPCServer subclass that uses ZeroMQ REQ/REP to communicate with clients.
bind_and_activate=True): self.__addr = addr self._commands = {} self.__auth_disabled = False self.__configured = False self.__shutdown_request = False self.__active_requests_lock = threading.Lock() self.__active_requests = [] self.__reques...
0
d0f62302b053a091e71c6eecc01696b7
71f80eb9d870b37b586e43a87620da88
Test updating via WS.
async def test_ws_create_update( hass: HomeAssistant, hass_ws_client: WebSocketGenerator, storage_setup ) -> None: assert await storage_setup(config={DOMAIN: {}}) client = await hass_ws_client(hass) await client.send_json({"id": 7, "type": f"{DOMAIN}/create", "name": "new"}) resp = await client.rece...
1
7a5b8d8320b8bc7f540b166b45964b96
b80bfd1e75776260f900bf9ed4c725e3
Returns the value of the '<em><b>Pais</b></em>' attribute. <!-- begin-user-doc --> <p> If the meaning of the '<em>Pais</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
@ManagedBean public class RegistroBean implements Serializable public String getPais() { return pais; }
1
1faff451f9be41be5df6c67694833ffc
b73a95566ff9c018af5de91ca84617b8
Given I have checked out files they should be loaded into lists
def test_load_files(): site = combine_tools.Site(Path("data/raw/COBRE")) assert isinstance(site.SCANNER01.freesurferData, NDFrame) assert isinstance(site.SCANNER01.participants, NDFrame) assert isinstance(site.SCANNER01.iqm, NDFrame) assert isinstance(site.SCANNER01.pred, NDFrame) assert isinsta...
0
72773b735f9c3a154c84ce3aa51567af
2a708222470157313050b84fe2a94114
用户驾驶证是否存在
{ string dbname = "bis_visitcar"; if (type == 3) { dbname = "bis_visitcar"; } else if (type == 5) { dbname = "BIS_HAZARDOUSCAR"; } string sql = string.Format("select count(id) as cou f...
0
301acabd14fc72792919895ed2407240
b6a9ec7d702270f1a13d60eb067c6370
executes all registered events
class Bengine_Game_Model_Collection_Event extends Recipe_Model_Collection_Abstract public function executeAll() { $this->load(); foreach($this->getItems() as $event) { $event->execute(); } return $this; }
1
1e597912c384a173a712262719393f11
c44d8f0f8d83bf4c34c165dc003edb99
Evaluate a provided value to create a renderable React element.
class Html extends Element implements Component public function render($value): string { $callback = is_callable($this->callback) ? call_user_func($this->callback) : $this->callback; return <<<HTML <div {$this->toElement()}>$callback</div> HTML; }
0
ca34edca00aa972d520f561dcf82630a
52fa6ef8806472542bd6d306c79608a8
問題\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 空白で区切った複数の数字からなる文字列(例えば "5 7 9 2 3")を引数として受け取り、 その合計を計算して結果の数字を文字列として返す関数 calc_sum を作ってください。 それを使って「合計したい数字を半角スペース区切りで入力してください > 」と表示して入力を受付け、 計算結果を表示するプログラムを作ってください。 今後の改善点\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\...
item_num = $stdin.gets.to_i price = 0 item_num.times { price += $stdin.gets.to_i } puts price end
0
414e69da678eb7b3d0e737e81a6fa151
d5648e228bf6c758a84d8fd94cf318d8
Notification that the user has canceled the rating.
public class OpinionActivity extends AppCompatActivity implements IOpinionView @Override public void ratingCreated(Rating value) { onBackPressed(); }
0
29b212e0902a59ed8391f7b1d42f96c0
4828fd7cfe670f0445bf68ab03a94653
Return an informative version string. This usually is the actual release version number or a git commit description. This string has no fixed format and can change any time. It should never be parsed by code.
def release_string(): return version_info.release_string()
1
5fd1906b64f4575b345dd8acfc1cb0c7
db93c264d4c4e4ee1402ecb1ffbb1fca
Convert string containing non-digit chars to integral.
def get_int(string): return int(''.join([d for d in string if d.isdigit()]))
1
d15e32d80a31b611e2608f74b583ae4c
549cf9fccf55dafc8652346bc887dadb
Returns true if there is a data ready to be read.
DataPool::isDataReady() const { qint64 pos = m_buffer.pos(); m_buffer.seek(0); qint64 available = m_buffer.bytesAvailable(); m_buffer.seek(pos); return available >= m_chunkSize; }
1
c16087bec7b611f80011863cd969af5b
b2ddbd605ec9bb6323b761c00d7e7b13
It returns the instance of the event producer for the StreamEPS.
@XStreamAlias("default-event-handler") @AdapterComponent @ComponentProfile(summary = "Sends MessageLifecycleEvents to the specified location", tag = "base,events") public class DefaultEventHandler extends EventHandlerBase public AdaptrisMessageProducer getProducer() { return producer; }
1
92c4bf578652b264765307cf4c074749
eceb55e80c6ef193eff0eca203d56d58
Returns all the d l record logs.
Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_DLRECORDLOG); count = (Long)q.uniqueResult(); } catch (Exception e) { thr...
0
bca32ad23be59d6d0b60be5734ab2ec2
0911d7bef105740fcb1b527c1c84b986
Creates a new pipeline using a file path as a source.
slug: str, file_path: str, unpack: bool = False, *args, **kwargs ) -> RemotePipeline: return RemotePipeline( slug, Document.from_file(file_path, unpack), *args, **kwargs )
1
448c7ca6fcbf8ff6c7fcce1554bba285
e149bb9fcbb2ee42630e6a8efdc668d0
blank check cycles through the vector to check if anything occupies that point
bool cycle_presence_check(int source_vertex, vector< vector<int> > &adjacency_list) { visited_vertex[source_vertex] = true; for(int index = 0; index < adjacency_list[source_vertex].size(); index++) { int adjacent_vertex = adjacency_list[source_vertex][index]; if(!visited_vertex[adjacent_vert...
0
b352534c609e6680f71f0846f1a837e5
7f61448ad6da3ef0f9cb03f40c5be655
can not cache
cases like (1)
0
30470afd8ac4767c3a75802f5c82e75b
f583b418a6dc789984676ae2d7898818
Génère des erreurs si le nom du groupe est vide
{ if (! $this->_data['name']) { return new PwError('USER:groups.info.name.empty'); } return true; }
1
ac5eddcb7e7f171c9b3f2757415c3104
d7e2ad78e30ee079844e4c84b0f71cd5
匹配乘客乘坐的车次号
train_no_list = [] json_text = json.loads(train_no_json) data = json_text['data'] result = data['result'] for r in result: list_temp = r.split("|") if list_temp.__contains__("预订"): train_no = list_temp[list_temp.index("预订") + 1] train_no_list.append(train_no) ...
1
658091b970ce0e6190291fc4bdbc5d04
1a68801d3d1cb5ff136f9af020cb03b7
The getDNS method, getter method for property $dns.
abstract class AbstractSiteEntity extends EntityAccess public function getSiteDns() { return $this->siteDns; }
0
39bf1d35954e7a8a6a1cbd11480530c8
ed0099b574972310fd3f4728cf91bf67
Authenticate to the POP3 server.
class IMAP4: def authenticate(self, mechanism, authobject): mech = mechanism.upper() self.literal = _Authenticator(authobject).process typ, dat = self._simple_command('AUTHENTICATE', mech) if typ != 'OK': raise self.error(dat[-1].decode('utf-8', 'replace')) self.state...
0
afd85534c777b172e4e9b0db9cab2f92
3b54bbbdb2783b792b3a3113f4beb2ce
<p> Accuracy test for the method <code>setComputationDate(Date computationDate)</code>.<br> The value should be properly set. </p>
public class AccountUnitTests @Test public void test_setComputationDate() { Date value = new Date(); instance.setComputationDate(value); assertSame("'setComputationDate' should be correct.", value, TestsHelper.getField(instance, "computationDate")); }
1
c8faaa8bb1e2f1dd1f6a3f4a3b8d78a8
9c130233248a3bec8b86f2d27ec59b7d
Procedimiento genExp genera código en un nodo de expresión
struct internals * _ptrInternals = (struct internals *)__ptrInput->internals; int _flagChanged; struct Closure *_ptrClosure; _flagChanged = 1; _ptrClosure = (struct Closure*)Create_Object(CLOSURE); _ptrClosure = _ptrClosure->init(_ptrClosure, _ptrInternals->Grammar, 0); _ptrClosure->AddItemToClosure(_ptrClos...
0
45fe76c819fb3153ef712bba113beb0e
9d56b0e14adf3d01cf11e98219cbf1fa
Retry the activity associated with the passed location path or its enclosing scope.
public class DisplayHandler implements Parcelable public void continueOnNextActivity() { UAirship.shared().getInAppMessagingManager().continueOnNextActivity(scheduleId); }
0
e02c8a531c32fd7527cda2534c480758
991f300be111af253123bd08b3197e92
增加一条数据[sz_minganci]
class ps_models_psdwh extends Common_Model_Base public function savePsspMingX($psdscbh){ foreach ( $_POST ["#grid_mingxi2"] as $grid ) { $data ['QYBH'] = $_SESSION ['auth']->qybh; $data ['PSDH'] = $psdscbh; $data ['CHKDBH'] =$grid [$this->g3idx_CHHBH]; $data ['SHPBH'] = $grid [$this->g3idx_SH...
0
9979d072560007fa23d4744de9164fa0
8cd2aa0deb1b5743de069487cc83f219
# Make an evaluation expression of a form: var1 + var2 + ... + varn
"%+%" <- function(...){ paste0(...) }
0
25243c66946731ca2bd6a8a727b887a3
0445263855d2b506d21b3bed310eeec5
get latest motion status from file
status_filename = os.path.join(self.path, 'max_brightness') with open(status_filename) as status_fp: result = status_fp.read() status_text = result.strip() try: status = int(status_text) except ValueError: return status_text return stat...
0
3a6da8a32459d502c1d93eadae760312
210034e411f8e1378903cd66bdb611de
if want to test with different port, can pass through command line arguments, else takes default port 43626
public class FileServer public static void main(String[] args) { if (args.length > 0) { try { int port = Integer.parseInt(args[0]); if (port < 1024) { System.out.println("Invalid port:" + args[0]); new FileServer().launch(); ...
1
de8cddfc85539ff875a4cb58fae11841
259b28760ddcca88cd259a99e36c8540
GET: AcaoUsuarios
public IActionResult GetAction() { var usuario = _usuarioRepository.Listar(); return Ok(usuario); }
1
ebd64ad4e7fe5809e2456e06ac95920a
46b74412e034adb2c2c73d32b49e2210
计算市场容量指数
def indexWMS(sd, indDay) : sdEndPrice = list(sd.end_price) rtnData = [] i = 0 up = 0 while i < len(sdEndPrice) : if i < (indDay - 1) : rtnData.append(50) else : k = i up = 0 for j in range(0,indDay) : if sdEndPrice[k] - ...
0
f3b8ee6e5b682e8f9c488c8131bf19de
20c0b64708b6627aafa816200dcdc625
set the overall height of this craft (from surface)
public class CombatProjectile public CombatProjectile setEndHeight(int endHeight) { this.endHeight = endHeight; return this; }
0
10f9b20f651bc27cf9a747e991ef941d
270d1d8c3f02637668aad60f3279ca8b
Put your initialization logic here
{ lw.Open(); lw.WriteLine(" "); lw.WriteLine("Inside My CSharp Init Callback"); lw.WriteLine(" "); return 0; }
1
c9c472165414fdc67d76ef1383d98d6a
0e61e64c25b14b8d834405182d01ac9c
Peek returns none on empty priority queue.
void *priqueue_peek(priqueue_t *q) { return q->front; }
0
b3b29ec7115f3d92de204980df9e2af5
d510f83a00b7fb96e64234f4b3b64517
Load a user into the main admin area. Populates the formular elements after this.
class Benutzeradmin extends MY_Controller public function userForm($user_id) { $this->requireRole('admin'); $formAction = $user_id > 0 ? 'Benutzeradmin/editUser' : 'Benutzeradmin/registerUser'; $this->addData('formAction', $formAction); $this->M_user->fetch($user_id); $this->...
1
78875f181c5d1930bc840fe330c7d0ec
3583974a50690439a131f58d66874afd
Registro obrigatório para discriminar os itens da nota fiscal de serviço emitida pela pessoa jurídica ou por terceiros. Não podem ser informados para um mesmo documento fiscal, dois ou mais registros com o mesmo conteúdo no campo NUM_ITEM.
public class ItemNotaFiscal public void setNumItem(Long numItem) { this.numItem = numItem; }
1
a2c4623a167f527a9cb7d257f6d5b006
00310271a982a8a28417f10feeaf7799
Gets the parcel exporter path.
public class WebInterface extends QDBukkitPlugin implements ActionListener public String getParcelExporterPath() { return parcelExporterPath; }
1
a2fb3140e55f95b2f0777ddae8ecc26e
233c210eeed86a4a3dc201545a1692ba
Generate ISN_STORE_THIS - store value in member of "this" object with member index "idx".
int generate_STORE_THIS(cctx_T *cctx, int idx) { RETURN_OK_IF_SKIP(cctx); isn_T *isn = generate_instr_drop(cctx, ISN_STORE_THIS, 1); if (isn == NULL) return FAIL; isn->isn_arg.number = idx; return OK; }
1
67db24956aa12893e422e7604e1de28f
443783641c5707ccced9d84be88ff2e2
<summary> Returns OpenGL viewport values. Origin is bottom left, so mouse coordinates in the window need to be converted using WinY=viewport[3]-mouseY </summary> <returns>The OpenGL viewport in the four elements of a vec4 as min x,min y,max x,max y</returns>
public class ZSCore : MonoBehaviour public void GetViewportPosition(out int x, out int y) { zsupGetViewportPosition(out x, out y); }
0
a382e9334a178f234427c02ff15f50f1
14929e9ce5cc9a36fad631aac99d8bb8
function uses OnlineRF class to construct a forest and return a field of trees each tree is represented by a matrix. each row in the matrix is a node in the tree this version of the function will build the ORF from the parameters given
List ret; List hpList = orfModel["hyperparameters"]; Hyperparameters hp = listToHP(hpList); List featList = orfModel["featRange"]; Eigen::VectorXd minFeatRange = featList["minFeatRange"]; Eigen::VectorXd maxFeatRange = featList["maxFeatRange"]; double counter = orfModel["n"]; double oobe = orfModel["oob...
1
63eef6bbb9169542e7d933e8d5e1c997
bf6c5b19206e2edf48e555fed76b41db
Ensure that we can get the list of bars associated with a user
from relayr import Client token = fix_registered.testset1['token'] c = Client(token=token) usr = c.get_user() items = list(usr.register_wunderbar()) assert len(items) == 7 for item in items: item.delete()
0
1107054a898936a918ba8934801ab163
e8b54aa0787474c2621b41d23fa5fb54
InInts reports whether v is in vs.
func ContainInt32(vs []int32, x int32) bool { for _, v := range vs { if x == v { return true } } return false }
1
f56b01147a236b77d48475876cf6851f
803f6c0b23972b86c862a507d3d0dec8
Informs the tracket that non-semantic completion failed and therefore should switch to semantic
{ this.Dispatcher.Invoke(() => { this.lastSentence.Text = Properties.Resources.NoWordsRecognized; this.lastSemantics.Text = ""; }); }
0
9df6755a44f06954c5ae547eac4b7c3f
4684dfd808facb0d2881f9e266f1d089
Main function to apply Machine Learning Pipeline: 1) Extract data from SQLite db 2) Train ML model on training set 3) Estimate model performance on test set 4) Save trained model as .pkl file
download_file_from_url(files.LOANS_DATA_URL, files.LOANS) today_str = str(datetime.date(datetime.now())) mlflow.set_experiment(files.MLFLOW_EXPERIMENT_NAME) with mlflow.start_run(run_name=today_str): if bool_dict["load_and_split"]: logging.info("*********** 1/5 Loading and splitting ...
0
ce3b7847abd2639929f46a1119557fc5
5402c031a77921f871f5b765aeb78e8d
Test that a HashingAlgorithm object can be constructed with a valid HashingAlgorithm enumeration value.
{ $factory = $this->getHashAlgorithmFactoryForTesting(); $this->assertTrue($factory instanceof HashAlgorithmFactory); $this->assertTrue($factory instanceof AbstractFactory); $tmp = $factory->create(HashAlgorithmFactory::MD5); $this->assertTrue($tmp instanceof Md5); $t...
1
2c11e6db73490db939de089669b4f28d
a0953ae1caf04f8cabc4ca8638738836
Returns the value of the '<em><b>ESuper Class</b></em>' reference. <!-- begin-user-doc --> <p> If the meaning of the '<em>ESuper Class</em>' reference isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
Entity getSuperClass();
1
0a3f709c7732220b243fd545718745e1
5a7ade67368da0183280f5ba127e291c
Gets the length from the parsed token.
class Token(AbstractObject): def __len__(self): return self.lex_meta.length
1
5488dc961da774fda1d257294da13a0d
c08a276af6422de665e0a4844847a50c
移除页面并返回移除的所有导航记录
namespace FreshMvvm void RemoveFromNavigation<TPageModel> (bool removeAll = false) where TPageModel : FreshPageModel;
0
7c03264b8bc4a125e5312d9463b3d4d7
6d52d89764693bdd7765fa039daec9b1
Test the model on dev set. Inputs: - devel_set = numpy array. - devel_lab = numpy array. - params = dict. Trained parameters. No Outputs.
X = np.squeeze(to_numpy(X)) y = np.squeeze(to_numpy(y)) X1,X2 = self.unpack_X(X) dl,device = self.setup_eval(X1,X2,y,self.use_cuda) res = eval_model(self.model,dl,device,self.model_type,"Testing") if verbose: print("\nTest loss: %0.04f, Test accuracy = %0.02f...
0
fdfbb296aeb19ef5053b80c25e7a42bc
22490beabd987954bd98ef1e7a68ab39
Reads all records from xml file.
{ CsvController csvHandler = new CsvController(); try { allRecords = csvHandler.readAll(); } catch (Exception e) { Debug.WriteLine(e); } }
0
f9f336720f10383c7ecfa04f381fe7b0
7c08e7581d969c29d84a35e800a3c3da
Gets the name of the currently selected deck
public class Player public String getSelectedDeck() { return selectedDeck; }
1
e9a3e934c088c40ecce22b9d87839416
8d277393f45aec2593b07ea6b19d09b7
Executes the specified asyncronous action thread safe.
public static class SynchronizedExtensions public static Task<TResult> ExecuteAsync<TResult>(this ISynchronized? synchronizable, Func<TResult> func) => ExecuteAsync(synchronizable?.SynchronizationContext, func);
1
18ba08bf218b4341412ddb953c171ae0
7bfd494d8d17de03ddbf748a66cb78fa
Check if the given world has any configured groups.
{ return this._worlds != null && this._worlds.Count > 0; }
0
7c3d8e6af1b3c3c539feb9a34affb8af
d43083050b0d1a9c26d829fa251e17e5
New Create a new instance of Echo
func New() *echo.Echo { e := echo.New() e.Use( middleware.Logger(), middleware.Recover(), middleware.BodyLimit("2M"), middleware.CORSWithConfig(middleware.CORSConfig{ AllowOrigins: []string{"*"}, AllowMethods: []string{http.MethodGet, http.MethodPut, http.MethodPost, http.MethodDelete, http.MethodOption...
1
93a19a0a03eda211a5e3767fdf644f46
f6d808bfd1f069a51bb3b0ec97d696f9
魔法值消耗,攻击时执行
class Monster : BadCharacterSkill override fun magicAttach() { }
0
ed13a39f4dbffdbbad7e43030180ab6a
116e0be1bb5ae2d340d622753b2cc811
Description: Given bounds of raster and shapefile, returns True if their bounds intersect.
class ShapeReader: def shapefile_bounds(self): pass
0
bb302729969966b5749a7a92b35a53ab
02a10f5588196879131bda72fb4a4bc1
<p> Focuses the view of the map on Maple Ridge </p>
LatLng rmitLoc = new LatLng(10.7296, 106.693); CameraPosition cameraPosition = new CameraPosition.Builder().target(rmitLoc).bearing(90).zoom((float) 16.8).build(); mMap.moveCamera(CameraUpdateFactory.newCameraPosition(cameraPosition)); mMap.getUiSettings().setRotateGesturesEnabled(false...
0
ddcab89f0069075f930dd8a94626630c
1c8430793a87cd6e625e5c942ded4b07
Returns whether the value of the '{@link org.bimserver.models.ifc2x3.IfcOpticalMaterialProperties#getVisibleReflectanceBack <em>Visible Reflectance Back</em>}' attribute is set. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_IfcOpticalMaterialProperties_VisibleReflectanceBack_feature"), getString("_UI_PropertyDescriptor_description", "_UI_IfcOpticalMater...
0
d101cee583ba33b60b91da01a68fa901
11221809a3a9bc2e2b72d9c51062077d
Tests access to System Control Block Registers
static void sschecker1(void) { ckrbrd_hs_dr_pio_test(IND_CONTIG); }
0
412b0e077c7dc611feafed0f19b9a2cd
399e573fc0ec1ea07269f201f7328dd6
Test the normal functionality of build() function of the `TaskBuilder`.
res = subprocess.run( 'python -m build_magic --verbose --plain ' '--runner docker ' '--environment alpine:latest ' 'echo hello world', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, ) output = res.stdout.decode('utf-8') assert res.retu...
0
b4f799b08dae967e8737c83c5b8b3f06
53059cd188ce3f8ac68137ea5afb2ae9
Reads water stats from an NBT object.
public void readFromNBT(NBTTagCompound nbtTagCompound) { super.readFromNBT(nbtTagCompound); if (nbtTagCompound.hasKey("Rev")) { this.tfInput = nbtTagCompound.getFloat("TfIn"); this.wholeTfInput = nbtTagCompound.getFloat("TfInW"); } else { ...
0
cdc19e585e997e1faa3eb0cb16cbae4d
1dac10d99317a4e6cf10609a5411836b
Sets the look-and-feel object that renders this component.
public void setCSS(final CSS css);
1
99d9306c912c798c30b003f3a034bbb2
818298f469a3231f660f96da47b78ae6
众筹资讯查询方法
public class ChuanYun_JieXie_YanCang_Activity extends BaseActivity implements OnClickListener private void queryInfo(final String url) { loading.show(); final Message msg = handler.obtainMessage(); new Thread() { public void run() { try { TreeMap<String, Object> params = new TreeMap<String, Object>(...
1
199f0b9243314e9609284c94f34f4510
bb5b2f095846b9dd6be49d29de843d04
(Stolen forward from rails 3.1, BUT has slight differences??)
def current_page?(options = nil, check_parameters: false, **options_as_kwargs) unless request raise "You cannot use helpers that need to determine the current " \ "page unless your view context provides a Request object " \ "in a #request method" end ret...
1
ec9e2ace1d1362648f4ead8a4eef40c9
e88c0101819451c2af41f075126daa30
查询需要再次爬取的链接的数量
cursor = self.conn.cursor() sql = "select count(*) from scb_crawler_cy_ip" result = cursor.execute(sql) return cursor.fetchmany(result)
0
296b8dbe2b3edbaba7cff19f941fb240
94653157f9a9cd8af51360d50e64cd5c
Removes a connection from database manager.
void deleteConnection(String id);
1
0d7432aebd2084cb17b30719725c485d
9365d0a8acae63ad89555f1c57125287
\brief Nastaveni typu nove hry a herniho typu Zahodi stary herni typ a vytvori novy podle pozadavku
{ if(mode == PVP) game = new GameModel(PVP); else game = new GameModel(PVE); }
1
4622ede818fbbe95250875c431a5002d
f09d95720be4ba281c03f26ad3e6d657
在构造函数中,初始化指向业务逻辑的成员变量
class RoleListLogic extends BaseLogic public function __construct() { parent::__construct(); }
0
19aaac99a285082da3b3504b3fa30f5c
f37d5d4d8b25d67658452f73739ddfa0
曾用过的地址
var useCity = localStorage.getItem("useCity"); if (!$.isNull(useCity)) { useCity = useCity.split(","); for (var i = 0; i < useCity.length; i++) { if (useCity[i] == city) { useCity.splice(i, 1); break; } ...
1
4d634a041899fe8dd59b7461b4a815a5
a5d8fffccbffea885aac8c57319c6f2b
Load model from .onnx file in /Assets/... and create model instance
def from_onnx(onnx_string_or_file): converter = FromOnnx(onnx_string_or_file) crypten_model = converter.to_crypten() if len(crypten_model._modules) == 1: crypten_model = crypten_model._modules.popitem()[1] return crypten_model
1
7d30437b145e3e6ead657f352306d81b
4d70bfda24c37a57aec142b743ef7806
Sets the designated parameter to the given boolean.
void vo_taskSetBoolParam (handle_t tp, char *paramName, int bval) { }
1
0908f8e1200bf934e76f3232909b53a5
7cdddf6225bb745012d822aada6873be
获取中心提示时间
@TableDefine(title = "闹铃表(Alarm)") public class Alarm extends BaseTenantEntity public String getATips() { return this.ATips; }
0