query_id
string
corpus_id
string
query
string
code
string
label
int64
27b542e55c304bceb09e14e3fece0dc4
747dcda9a5b74112b2963234d5b33ea9
Loads output controller.
class MainWrapperTask(luigi.WrapperTask): def load_output(self): pass
0
c4714bc8d589db1b9b137f4a096ccf3c
6799ebeee86d0e4267e71d15b2a64705
Handler for incoming MIDI AFTERTOUCH event
vector<unsigned char> message; message.push_back((channel & 0x0F) | kMidiMessageAftertouchChannel); message.push_back(value & 0x7F); sendMessage(&message); }
0
8db2894754b17e557715d34c11a30bdf
6770d2274f8409129ae8ff553a8e2201
Gets the visible state of component (wtAttachNewDocumentLink2)
namespace ssCaseConferencing.Flows.FlowCommon public class ScrnPopup_AttachDocument: OSPageViewStateCompressed, IWebScreen, INegotiateTabIndexes, IBookmarkableURL public bool btn_Button30_isVisible() { return true; }
0
0f4cd4302483f4a9c79ad3de5dee1251
4fce8d3092d99922d30365dc3eca86f2
Runs a task in the background, returning a job handle which can be used to get the status of the running task.
namespace SIL.FieldWorks.Common.FwUtils object RunTask(Func<IThreadedProgress, object[], object> backgroundTask, params object[] parameters);
0
4baa8c34b21646f63ecaa91e9a154dd4
0a4ea6db6c0e5c1fb852823cbcab7a72
Creates all HTML for countdown timer
countdownActive = setInterval(() => { const now = new Date().getTime() const distance = countdownValue - now const days = Math.floor(distance / day) const hours = Math.floor(distance % day / hour) const minutes = Math.floor(distance % hour / minute) const seconds = ...
0
a0948c9c60153f732a0879409374f00f
17bbb5dbfb94c22791580dcb795099fb
Rebuilds index from scratch using specified data files.
String destinationPath) { try { buildIndex(getEntities(seedDirectoryPath), destinationPath, seedDirectoryPath); } catch (final IOException e) { e.printStackTrace(); } }
1
188993d6f0431cffbbcaa41d1cfa7be7
8552c51be185730637f936991daf973b
this function is called when we want the sweeper to sweep
bool CQLearningController::Update(void) { uint cDead = std::count_if(m_vecSweepers.begin(), m_vecSweepers.end(), [](CDiscMinesweeper * s)->bool{ return s->isDead(); }); if (cDead == CParams::iNumSweepers){ printf("All dead ... skipping to next iteration\n"); m_iTicks = CPa...
1
0aad31463a869cef714bb0636609cd44
ac5786b7ea7295daabb8bd6d0aacd906
移除'出发时间'控件的'readonly'属性
class ActiveBrowser(object): def removeReadonly(self,ele): self.driver.execute_script("arguments[0].removeAttribute('readonly')", ele) self.outPutMyLog("移除input元素中readonly属性,使其可编辑")
1
e4b5d09a45f56ca5b072bff833f5cb04
ee2dfaa1ee649657e0bd4a61ce252a4d
Show the settings page if settings button is pressed
namespace PressYourLuck public partial class StartScreen : Form private void settingsButton_Click(object sender, EventArgs e) { set.ShowDialog(); }
1
88a560b65afdc7895caf2f46ab284652
51fc4f843b03f6425d9b453dfe695de2
Check whether the provided upload edge pixel's RGB components match the initialisation colour.
int rgba[4]; for (int i=0; i<4; i++) rgba[i] = -1; components(c, rgba); return rgba[0] == r && rgba[1] == g && rgba[2] == b && rgba[3] == a; }
1
e19d3f947505e65ca79080ff974e06f0
b11909204f7d0c3ec1f8ed96d8a2a945
# Transforma os dados em um grid para cada classe
for i in range(len(dados_salarios)): dados_salarios[i][1] = descobre_classe(classes, dados_salarios[i][1]) return dados_salarios
0
20f76297f0052371d3be8f4564e2a26c
06fd7f95817266313fb08d8cb8194aeb
Activate a standard set of debugging hooks.
assert_options(ASSERT_ACTIVE, 1); assert_options(ASSERT_WARNING, 1); assert_options(ASSERT_BAIL, 1); if (defined("E_STRICT")) { error_reporting(E_ALL | E_STRICT); } else { error_reporting(E_ALL); } ini_set("display_errors", "1"); }
1
9f86acafb3d9996b58c21c8be6f53e5c
3b977fcabd74617bed3a7ed1219e1a4b
Returns true if the first value is greater than the second.
function isGreaterThan(operand1, operand2) { return operand1 > operand2; }
1
9a8c43e9b283b6e5690e6d11471e6433
b526829bc4bfcbc1772284256ba750eb
Compares two enumerables item by item
namespace i18u.Authorizr.Core.Util public class SlowComparer public bool Equals<T>(IEnumerable<T> a, IEnumerable<T> b) { var equal = false; var lengths = new List<int>() { 0 }; int? aCount = null; int? bCount = null; if (a != null) { ...
1
cc4833eda69941f33b1e93aedbbdba65
5bed9ea9172195e7b94327c9b313e913
以前有过选择属性的,返回以前选择的属性,否则返回1
function CGoodsProperty.getAttr1(self) return self.attr1 end
0
65e655efb99be710feb8679e1b6a1c47
0f53f74945695184446d67eb22a26321
Sets the teacher position.
public class Admin private int getTeacherPosition() throws ClassNotFoundException, IOException { System.out.println("enter first name:"); String firstName = in.nextLine(); System.out.println("enter last name:"); String LastName = in.nextLine(); for (int i = 0; i < list.size(); i++) { if (((list.get(i)).get...
0
87df902b9b4a997b01695a14d05e6c3e
390a448406d7432530b91436e0ba3d27
@brief funcion para leer puerto serial celda de carga
unsigned char buf; size_t s; do{ s = port_c_read(port_c, &buf, 1); } while(s < 1); return (int)buf; }
1
802ae887fe6ef4c14da9c253a02f55f6
e835e8068b6d3cd63d5c45135dbbaba2
商品残数0の場合必ず落選 (リトライ)
public partial class VGI_VGI022 : WUI.BaseSecurePage private bool checkNeedRemove() { string strONHDX_QTY = string.Empty; string strST_ACCEPT_QTY = string.Empty; int intONHDX_QTY = 0; int intST_ACCEPT_QTY = 0; int x = 0; int y = 0; for (int i = 0; i < GridView...
0
88e42903856a1c475386059758df6638
dbd536b95592a28579ce30529f1ca146
La función nos devuelve el identificador a partir del identificador de un usuario y la fecha de insercion de la partida
class classUsuario public static function getIDFromUID($uID, $dbConn){ $uidBusqueda = mysql_real_escape_string($uID, $dbConn); $queryString = "SELECT idUsuario FROM USUARIOS WHERE uid_Clave = '$uidBusqueda'"; $rs = mysql_query($queryString, $dbConn); ...
0
01f63cb12bc766443082be90499162f6
f2dd25213285c1a70cda1a400030389d
Returns new [NodeBase] representing filter: value of `this` vector property is not empty ### Sample ``` XdUser.query(XdUser::details.isNotEmpty()) ```
class FilterDto extends \DrSlump\Protobuf\Message public function hasNot(){ return $this->_has(2); }
0
470cabccabd0c8a20cf327578f2c366f
8b8a3029e56512bf43704594cedb726d
Gets the list of measurements for this interface
public FixedVariableList getMeasurementsFromSystem();
1
1e66038956fc29602cbf622aaf46a48e
0ffccbd1bace705066de958d1782f6d8
アーティファクト生成のiuse処理
public useIaf() { return false; }
0
713ca77f47550dd2bbefc3288dc45d9b
5b48395e16ad386252c572655d606f3f
设置角色到指定位置
namespace TGG.Module.Fight.Service public partial class Common public void PositionUpdate(ref tg_fight_personal matrix, int location, Int64 roleid) { switch (location) { case 1: { matrix.matrix1_rid = roleid; ...
1
4e7b377653795b27eb4706ab80040819
0a312a295fa64855023817c371707a4a
根据联盟名称获取联盟信息
Alliance getAllianceByLoginName(@Param("loginName")String loginName);
0
170a0448c8efa3bb6ecc48e3bd22bc67
4c38a41209ab29251ab59d3ebbaafcd9
dpcm编码
def DPCM(block): tmp = [block[0][0][0]] leng = len(block) for i in range(1, leng): tmp.append(block[i][0][0] - block[i - 1][0][0]) return tmp
1
b7cf5a640742412e55dcc96d57f6f470
f95e97d31d1d6d5673a0a2fb86ca04d6
Set loading indicator styles
{ { Set("ArmyEditableTextBox", FEditableTextBoxStyle() .SetBackgroundImageNormal(FSlateNoResource()) .SetBackgroundImageHovered(FSlateNoResource()) .SetBackgroundImageFocused(FSlateNoResource()) .SetBackgroundImageReadOnly(FSlateNoResource()) .SetP...
0
6f4aafb53b2ae03ddbb7cb466c3f2db3
072e40de5893db5bac6723a0c46f346f
Returns a new mutable string containing a substring of the current one.
class StringSpl extends StreamSpl public function substr(int $length, int $start = 0): StringSpl { return $this->setString(substr($this->__toString(), $start, $length)); }
1
2fcf09f2c76893babd017f13854c9ae1
1c16aa67c8314980d19a3702f742e0c8
获取具有指定名称的网站。
namespace AsimovDeploy.WinAgent.Framework.WebSiteManagement.IIS6 public class InternetInformationServer : WmiObjectBase public WebSite GetWebSite(string serverComment) { ObjectQuery query = new ObjectQuery("SELECT * FROM IISWebServerSetting WHERE ServerComment = '" + serverComment + "'"); ...
0
069a4950a768bd0230e970e8a2586e8b
5521f16ebebb4c34c84f89c10d233b49
Преобразование урла в хеш
class Request protected function createUriHash() { $this->uriHash = explode('/', trim($this->getPath(), '/')); return $this->uriHash; }
0
5e2b7dcc4885bd4e27a5b273a1693c78
6e0ad3d2e60af0c22d23c70e96bb27f6
增加一条专项联系缓存数据,如果存在则修改,如果不存在则增加
WhgMajorContact contact = new WhgMajorContact(); Example example = new Example(WhgMajorContact.class); Example.Criteria c = example.createCriteria(); c.andEqualTo("entid",entid).andEqualTo("type",1).andEqualTo("majorid",mid); List<WhgMajorContact> list = this.whgMajorContactMappe...
0
e207262d949433ec818ab1a35e83c861
65e15989bb21d857f4f6729ce002fc7a
function that loads dead screens when character dies
public class player_move : MonoBehaviour void diesence() { SceneManager.LoadScene("Die"); }
1
8b4201787a809332f728d65a5fcabad9
76fb7fa98e6e1b8ec1a453817ef2cf95
Given a screen descriptor, a buffer, and coordinates, this function draws the glyph corresponding to the given character on the buffer. wonkiness is because I'm trying to avoid multiplication.
struct font *font, gfx_color_t color, gfx_color_t background_color) { const uint8_t __progmem_arg *glyph_data; uint16_t glyph_data_offset; uint8_t scale = font->scale; uint8_t char_row_size; uint8_t rows_left; u...
1
722ae623198f06defe9b3631f995d25d
b856fc6038ad6a1d597493734bb50c8c
Returns the wind sped in Knots.
class KNXWeather(KnxEntity, WeatherEntity): def wind_speed(self): return ( self._device.wind_speed * 3.6 if self._device.wind_speed is not None else None )
0
67a06e42005dd25bf1d8b003398e6b08
88262b52508e46d3a241123cf975b654
Verifies that the candidate is a local minimum
{ boolean valid = true; try { if (Double.parseDouble(candidate) <= this.minimumValue) { valid = false; } } catch (NumberFormatException e) { valid = false; } return valid; }
0
8d630fc5315babf7a05afecc2fc2465d
b96554c49ce60cad2a1ef29c62e61815
Piilottaa tuplausvalintapainikkeet
{ Keyboard.Listen(Key.Left, ButtonState.Down, LiikutaPelaajaa, "liikuta pelaaja1 vasemmalle", pelaaja1, new Vector(-5000, 0)); Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, "liikuta pelaaja1 oikealle", pelaaja1, new Vector(5000, 0)); Keyboard.Listen(Key.Up, ButtonState.Down, ...
0
2b612c80f35ef1af2ec72f64aa46d289
c9fad3bd51ed66a811b85f742d920da1
Grab the last message on the service.
{ if (_func == null) { throw new YoctoApiProxyException("No I2cPort connected"); } return _func.get_lastMsg(); }
1
a3039a0148594fd324db928f67493839
4381347a4259cced360a2bd99d3b40de
Gets the value of member variable contactFax
{ synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlString target = null; target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CONTACTFAX$46); ...
1
fd0715da73daaae71a99ca18f817a2a4
eeaf0b4861812f360a52213b6cd48e08
zero-inflated negative binomial log-likelihood function
def ZINB(pi, theta, y_true, y_pred, ridge_lambda, mean = True, mask = False, debug = False): eps = 1e-10 scale_factor = 1.0 nb_case = NB(theta, y_true, y_pred, mean=False, debug=debug) - tf.log(1.0 - pi + eps) y_true = tf.cast(y_true, tf.float32) y_pred = tf.cast(y_pred, tf.float32) * scale_factor ...
1
8d7b341b7cfd01ef009e591b2c898bc3
1b3b568a9438af5aef36af3c784d4023
WebStoreの取得要求
function requestStoreInfo() { return ShredzAPI .getStore() .then(onStoreInfoLoaded); }
1
7347691fc9490e1146535ceea88326ce
92f9a4c6faa233cc264509482096063a
Test to verify that a valid API method name with special characters generates a MethodNameInspection error.
class NewRelicDaoTest extends \PHPUnit_Framework_TestCase public function testImproperApiMethod() { $this->getConfiguredDao()->fetchImproperDataName(array( 'appId' => '1290733', )); }
0
288d1d9bd62c36f0693e85c8de51f127
5bd05e7a96eb01351814ae6b51741149
Перезагружает данные модели, вставляя результаты поиска новой локации
{ try { foreach (Country SearchResult in SearchResults) { var country = DataBase.Countries.Where(x => x.CountryName == SearchResult.CountryName) .FirstOrDefault(); ...
1
65fe8a8cf82f75ff9e801ef555c673a3
b44a049247e76b5b13f877d7dc147610
NewAlibabaWdkTradeOrderSuccessCreateRequest 初始化AlibabaWdkTradeOrderSuccessCreateAPIRequest对象
func NewAlibabaWdkTradeOrderSuccessCreateRequest() *AlibabaWdkTradeOrderSuccessCreateAPIRequest { return &AlibabaWdkTradeOrderSuccessCreateAPIRequest{ Params: model.NewParams(), } }
1
65983b1170e39aa082f1500ba96d6677
f90ee6180e7082dc4ef0e3ffa3143cc9
Force a load from streams so we don't lock the files on disk. This way we can test shadow copying without leaving a mess behind.
protected void processFiles( CopyActionProcessingStreamAction action ) { super.processFiles( action ); }
0
98896b17bae5b6cf219ed862782dba43
889fad9f02f71b5d3ce0b15031fa000c
When shutting down the flask server, make sure any subprocesses are also terminated. See issue #2408.
werkzeug_server_shutdown = request.environ.get("werkzeug.server.shutdown") if werkzeug_server_shutdown is None: raise RuntimeError("Not running with the Werkzeug Server") werkzeug_server_shutdown() logging.info("Shutting down…") return "Shutting down…"
0
0854123750b7fbc3742242e03a24b839
85637653eb5506934e2b618df71a503c
Constructs an instance of the DataTable class.
this.tableContainer = document.getElementById('data-table'); this.tdClass = 'data-table__cell'; if(!this.tableContainer){ this.tableContainer = document.createElement("div"); this.tableContainer.id = 'data-table'; document.body.appendChild(this.tableContainer); } }
0
19110e25970678d4f19d38a1361643e9
40524981153f9916ecd7d551c3e159d7
Gets a string containing the location's full address in one line
class ReportLocation: def getAddress(self): return self.fullAddress
1
bb89cea0964517a5c955a8fecc82a02f
cf729f374dcb0bf687dc66080da162c3
检查某流水号消费是否已被兑换成积分
@Service(version = "1.0.0", interfaceName = "com.okdeer.mall.order.service.TradeOrderItemDetailServiceApi") class TradeOrderItemDetailServiceImpl implements TradeOrderItemDetailService, TradeOrderItemDetailServiceApi @Override public TradeOrderItemDetail checkConsumeHasExsit(String storeId, String consumeCode) { ...
1
f5a5d012692b07a8457b780efa17a98b
817df4bc0acab34da8433d4685054c59
Retrouver le login de quelqu'un qui cherche a se loger Reconnaitre aussi ceux qui donnent leur nom ou email au lieu du login
{ if(stripos($data, '@')){ return static::findByEmail(trim($data)); }else{ return static::findByUsername(trim($data)); } }
1
66233b15a515d0c39fa6af732c6bb326
78dfe7719b07f1f74240c178ef350dc6
CONSTRUCTION OF THE FICHERA CORNER FROM A CUBE - SUBDIVIDING ITS - AND DELETING A RIGHT TOP CUBE SON
REAL co[8][3] = { {-InitialL,-InitialL,-InitialL}, {InitialL,-InitialL,-InitialL}, {InitialL,InitialL,-InitialL}, {-InitialL,InitialL,-InitialL}, {-InitialL,-InitialL,InitialL}, {InitialL,-InitialL,InitialL}, {InitialL,InitialL,InitialL}, {-InitialL,InitialL,InitialL} }; int64_t indices[1][8] = {{0,1...
1
18496de72b95692d4b532bb803fa1a6b
61fdab9e718162c53659370c0448900b
This function loads a model that helps us extract the synonyms into the words of the question. This is to better retrieve!
with open('./data/synonym_forest.dict', 'r', encoding='utf-8')as f: synonsym_forest = json.load(f) return synonsym_forest
1
d0c792b06d4deaad25b9a0be99d03623
a03967d1ed5b61cccf9c26063bed4067
父进程创建通道,这里其实是创建一个客户端并尝试连接服务器(子进程)
int sock = tcp_server("127.0.0.1", 50000); pid_t childPid; switch (childPid = fork()) { case 0: sleep(3); std::cout << "child is running" << std::endl; tcp_client(50000); default: int clientFd = accept(sock, NULL, 0); char buf[100];...
1
1e3b49618a16927567dbe7606af91c27
8e870500cb8d92142535affb6bc2ca37
Set the growth direction of the widgets layout.
class _AnimatedMixin_(object): def set_layout_direction(self, in_layout_direction: LayoutDirection) -> None: self._layout_direction = in_layout_direction if in_layout_direction == LayoutDirection.horizontal: self._show_animation = animations.create_combined_property_animation( ...
1
c02be684265b46a854822f4431b18d6d
128ecb6f8fbfdfe8ec11c15438df8406
Returns the meta object for the container reference '{@link umlClass.Property#getDatatype <em>Datatype</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getDatatype();
1
fe39c583c7195e73d6362ecd62833687
4015f41853edd03895298a57bf253b4c
Creates an instance of IssueDetails.
if (data) { obj = obj || new IssueTransition(); if (data.hasOwnProperty('expand')) { obj['expand'] = ApiClient.convertToType(data['expand'], 'String'); } if (data.hasOwnProperty('fields')) { obj['fields'] = ApiClient.convertToType(d...
0
f3469a4bbd1ed33bd970fe485107ef8d
ada512568b9101fc9aa160bd67e5b86a
Creates immutable dictionary instance with given keys and values.
public IConstructibleMaterializer<ImmutableDictionary<TKey, TObject>> ToImmutableDictionary<TKey>(string keyColumn, DictionaryOptions dictionaryOptions = DictionaryOptions.None) where TKey : notnull => ToImmutableDictionary<TKey, TObject>(keyColumn, dictionaryOptions);
1
387ae58e6aa40aeeac6c2e1c325805f1
4a22d4f37e47da6ce0db60c7cd5c3b54
Hiển thị các kiểu hợp đồng được định nghĩa
class ContractTypeController extends Controller public function index() { return view('admin.contract-type.list', ['contractTypes' => ContractType::orderBy('id', 'DESC')->get()]); }
1
7ba30baf90521cb125adbcb986ad822a
eb1104b097ea30a2c6cae01f2885ff28
Encode an integer as a fixed of 32bits with sign.
def encode_int(x: int, signed: bool) -> str: return bytes_to_hex(x.to_bytes(32, 'big', signed=signed))
1
79a5fa3dbd9da302ff01f32bffff64cc
d741b10867d6f1cddb38ea90328a2512
Base attribute definitions for Memory Space
class Webtexttool_CoreModel extends BaseModel public function defineAttributes() { return array( 'id' => AttributeType::Number, 'entryId' => AttributeType::Number, 'wttKeywords' => AttributeType::String, ...
0
3b5f1d41c9209ed6ab9baeead350533c
27eb6050a1a681a4c0bfa73e22077995
获取往期彩票中奖号码
{ $log_date = TimeUtil::getNowDate(); $sql = "select * from ps_lottery_cash where log_date = '{$log_date}' and lottery_id = {$this->lottery_id} and type = 4"; $result = Yii::app()->db->createCommand($sql)->queryRow(); return $result; ...
0
750b5d2264f9de40cc354c8da527fb8d
f0b500aa7a0d0d8a788b325051d84083
Deletes an existing contrast type object
namespace Fujifilm.Synapse.DAL.Implementation.Query.DCM internal class ScopeClaimTypeQuery : LookupQuery, IScopeClaimTypeQuery public bool DeleteClaimType(long claimTypeId) { return DeleteObject(claimTypeId, "SSO_SCOPE_CLAIM_TYPE"); }
0
f2e9816bf823486d8453c4eca4c130a9
d9822549a988833bd763798d747f006b
만약 player가 검은돌이라면, 인공지능은 1이 연속된 것이 있는지 확인해야 합니다.
function check(r, c,player) { row = r; col = c; kururi = 0; flipCount = 0; board[row][col] = player; for (let i = -1; i < 2; i++) { for (let j = -1; j < 2; j++) { checkReverse(row, col, i, j); } } board[row][col] = 0; if(flipCount>0) return 1; return 0...
0
dc23a9a229290dcae5cbb88d7a184637
11f76bc0046a3f6c787bc2e9767a9399
Function that handles the initial placing of all the regular apples
for i in range(len(items.apples)): x = items.apples[i]["x"]*Const.CELL_SIZE y = items.apples[i]["y"]*Const.CELL_SIZE cnv.create_oval(x, y, x+Const.CELL_SIZE, y+Const.CELL_SIZE, outline=items.appleColor, fill=items.appleColor)
1
e11a9c457b61b2207c35a249ccf81c42
12a54d0b6768ab218be03b3fd753b512
Best按钮被touch,切换bestMode
$user = User::checkLogin(); if(!$user){ return $this->redirect(Url::toRoute('user/login')); } if($user->admin == 1 ){ $e = Equipment::findOne($id); if($e->bestone ==0 ){ $e->bestone = 1; } else{ $e->bestone = 0; } $e->save(); return $this->r...
1
09e12b4dc7ed758ba35738c3ba087902
eddd6d3d5cffb1c918a577f6136674ad
Save an identifier.
@Override @Transactional("identifierRedisTemplate") public void saveIdentifier(@Nonnull ProfileName name, @Nonnull Instant timestamp) { if (this.identifierValueOperations.setIfAbsent("name:" + timestamp.getEpochSecond() + ":" + name.getName().toLowerCase(), name)) { this.identifierRedisT...
1
319b0a454ce8ca094a717fb655897ec8
07fdf2f4e0fbb4260f5ce40f04f5036c
Reads an comment segment.
m_pos += 4; ReadOnlySpan<char> span = m_str.AsSpan(m_pos); int charsLeft = m_str.Length - m_pos; char newline = s_newLineChar; ReadOnlySpan<char> searchChars = stackalloc char[] {'-', newline}; int charsRead; while (true) { ...
1
6f4850c5cf2acb819ab8c4f721d062c9
940b762fe40b92815695fb8dfbf0ac2e
returns list of available weapons from character inventory
if weapon_type and weapon_type in self.type_to_weapons: return list(self.type_to_weapons[weapon_type]) return list(self.weapons)
1
6af97fddaf429924b7f93abf11423ffe
84504cf3acc672c99e6a94447770fb47
Returns number of volumes
class AceArchive: def volumes_loaded(self): return len(self.__volumes)
1
334d67a8e866717409fe200fa93c2dd0
1fd4b60f2d729097d83661dfd0dc7584
Gets the kubernetes url.
namespace JenkinsNotification.Core.Communicators.WebApi string GetUrl();
0
f768e56e52c8025d6ecfb5bbeb780a39
5e05b110a9db0fa025e7c794c6a54e2a
Return the total number of albums for the search query - regardless of the interval requested at creation. If this value is larger than the interval specified at creation of the search object, more search results are available. To fetch these, create a new search object with a new interval.
class SpotifyAPI(object): def totalResults(self): return self.xmldoc.getElementsByTagName('opensearch:totalResults')[0].firstChild.data
1
84a657d5b051e0d3cebeabb77b4dba2b
1f2c38dda3ff27fd74b732a4410d2e1f
Create command pool to avoid unnecessary allocations during rendering
class VulkanExample : public vkx::ExampleBase void createComputeCommandBuffer() { computeCmdBuffer = device.allocateCommandBuffers({ cmdPool, vk::CommandBufferLevel::ePrimary, 1 })[0]; }
0
806bcf6e1db6cf755e9e9b222744a835
5ac2e3daf722efed6f2750c362407a16
Function to update the header and to close a browse control file
{ switch (msg) { case NativeWindowCommon.BFFM_INITIALIZED: if (this.selectedPath.Length != 0) { NativeWindowCommon.SendMessage(hwnd, NativeWindowCommon.BFFM_SETSELECTIONW, 1, this.selectedPath); } break; ...
0
387386c6e0181493e28cdbcd563fb4e5
28173d6ee6315647d631a2366d196af6
The first array represents the rows in the table, the second one the columns
class Table function sizeRC(&$mat) { return array(count($mat),count(current($mat))); }
1
7fd6854d11f057f679f5d873b0011dc7
0659c94f4fcdd8006317e4bad5248a7b
Free GPU/CPU resources associated with specified light
namespace MultiRes3d public class PointLight : IDisposable protected virtual void Dispose(bool disposing) { if (!disposed) { disposed = true; if (disposing) { Marshal.FreeHGlobal(unmanagedMemory); } } }
1
4717978c62e3333efa1dcb9ba7e6823c
1f01f4a5f86928adc9e3cb3ac4331e87
This test verifies that the validate method returns false if the constraint does not validate.
$value = 'some value'; $stub = $this->create_stub(); $stub->expects( $this->any() ) ->method( 'is_valid' ) ->with( $value ) ->will( $this->returnValue( FALSE ) ); $this->assertFalse( $stub->is_valid( $value ) ); }
0
931cdf235f960127ecfa87238a969507
a0a1eec5a4680b225a0551f5470a8b69
Verifica si el pixel esta dentro del area requerida para el petalo
class Pieza verificar_p(mX,mY){ if (mX >= ((this.posx)-((this._shape[0].length*this.longitud)) ) && mX <= ((this.posx)+((this._shape[0].length*this.longitud)))) { if (mY >= ((this.posy)-((this._shape.length*this.longitud))) && mY <= ((this.posy)+((this._shape.length*this.longitud)))){ ...
1
c9f726d71d41b4239e748de96187f74e
dedef1fee2bfe6ae1d0634a6b1952f26
交互式添加标注
function addInteraction() { styles = []; styles.push(drawStyle); draw = new ol.interaction.Draw({ source: source, type: (typeSelect), style: styles }); ...
1
7bfd8381b142bfce71742f20fae15ee6
801fdbf3f1cf4fc1767c680ca03f843e
Test the method to tell if an obj is a standalone function
def _is_unbound_function(obj): return (isroutine(obj) and (not ismethod(obj)) and (getattr(obj, "__self__", None) is None))
1
0ec082f692a067096c969d8cc60c4c15
8c45021e811fcb55ac9eeed7c791c123
Enter a parse tree produced by MySqlParser#selectExpressionElement.
class MySqlParserListener(ParseTreeListener): # Enter a parse tree produced by MySqlParser#simpleSelect. def exitSelectFunctionElement(self, ctx:MySqlParser.SelectFunctionElementContext): pass
0
6ba8e934b5ae181065c43947440dd2a4
ffdcebcfd09027d50bc1eb56c2e85ae0
Gets the port text box component
port_field.setMaxWidth(100); VBox port = new VBox(20 , port_label, port_field, port_btn); port.setAlignment(Pos.CENTER); BorderPane pane = new BorderPane(); pane.setCenter(port); return new Scene(pane, 400, 300); }
0
030ac93f8938e1aa38c4aa5e426e8ce5
1bf7a190c476a4f2fb66b01b1b11923a
we aren't displaying route information
public class BenchmarkAgent implements PlanningAgent @Override public Boolean showInfo() { return false; }
1
7ead4b8c3fe00b0d653a894cfd2fd036
e4e5b34c225895567eef26c8cf517f19
Loads the direct children only. It is used for fast initial loading where we don't require changes handling.
public class LazyTreeItem extends TreeItem<OperationData> public void reloadChildren() { childrenCount = -1; hasLoadedChildren = false; loadChildren(); }
0
e1caf65ecd53cb059500eb06fb317a83
f42bee43802935eddfde6ec85c2470bb
영업점 발주요청 페이지
public String shopRequestPro(ShopRequestProCommand shopRequestProCommand, Model model) { return "shop/shopRequestPro"; }
1
c52a239b6200c0b179375b6be05716ec
2b09317753633f9afda234262227046b
https://stackoverflow.com/a/39637749/937377
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
a6c53c9a67f7af92b09382b616da037a
3f060013526e08a82633b8a749066e96
This adds a property descriptor for the Faculty feature. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CourseOfStudy_faculty_feature"), getString("_UI_PropertyDescriptor_description", "_UI_CourseOfStudy_faculty_feature", "_UI_CourseOf...
1
6cddaf70586952a1c484106e6a3b0137
6c46c004581129c644db39a732c5d1e8
Will inject the advice code for the different join-points based on sorted join-points
@Aspect public abstract class AOPAllianceAdapter @Pointcut protected abstract void targetJoinPoint();
0
b0e0a28bdc0b9c5d4f367e1bb025b9f0
83b2288f7f80479539299bf6f79f5fba
For testing purposes only ~ Used to view all possible chat dialogues of an NPC.
async def getDialogue(ctx): DIALOGUES = read_json("DIALOGUES", filename) index = random.randint(0, len(DIALOGUES)-1) await ctx.send(DIALOGUES[index])
0
0e9a67aa4cba2d7e3e8dda2a1aa0bea5
76bedc4d5c70b3a7be554006137b59ff
Update dictionary after entry key has been changed. After the caller modifies the key of an entry, they need to call this function so that the dictionary can update itself accordingly.
void CSC120Dictionary::update(int old_key, int new_key, DataRecord new_data) { del(old_key); insert(new_key, new_data); return; }
1
e3838ca5ad139cef723ea164fa3708d0
2cd978a0df0d8a1782079505d26ccc59
Generate random color palette
{ for (int i = 0; i < 16; i++) { currentPalette[i] = CHSV(random8(), 255, random8()); } }
1
388ca90c92276cbc1eb82678baf05415
a8c95e648db3aee4b8883a6b44eb9bc6
直線をax+by+c=0で表すときのc
class Line{ private double constant(){ return (-1) * this.vector().y * this.start.x + this.vector().x * this.start.y; }
1
c65c2f153da54135de0ee725a931fbac
dbedd06f1904b70ecba08b6459813d29
设置用户下载速度
export class SsidConfModel set downSpeedLimit(value: number) { this._downSpeedLimit = value; }
1
b8ad8822c097c24b66a61adbb30dc7b6
b1ba9f89a9e1b7358fca82f483fb4cb9
initialize the SQLAlchemy Engine to communicate with the RV database.
global _engine if not _engine: alch_args = dict() for k, v in config.config.configMap["global"].items(): if "sqlalchemy" in k: alch_args[k.split(".")[-1]] = v dburi = alch_args.pop('dburi') if not dburi: ...
1
be4a45bfa6fe8d3d7e5a9332151d91a2
e66c82ca4622e781a61ecbdb8259d27e
Возвращает данные для обработчика для указанных пути и метода запроса. Если обработчик не определён, возвращает null.
{ return isset($this->handlers[$method]) && class_exists($this->handlers[$method]) ? $this->handlers[$method] : null; }
1
d240f0305d430fc0ad230938a928b3a4
b3b4653e9ab1287be6538695e6ad76a4
设置是否使用协议提额极速到账,用来接收checkbox的状态 。 0:页面上出现了checkbox,但未被买家选中,表示不走极速到账交易,走支付宝担保交易 1:页面上出现了checkbox,且被买家选中,表示走提额极速到账 参数示例:<pre></pre> 此参数必填
class Watt_Session{ public function setIsTq( $isTq ) { $this->_isTq = $isTq; }
1
300988b4ab03a29e57199e7a6015d2e8
b2aba55ead5a5b151731fd3c755ff5fa
Loads the events into event drop down list and map.
namespace LxiEventManagerSampleApp public partial class LxiEventManagerSampleApp : Form private void LxiEventManagerSampleApp_Load(object sender, EventArgs e) { EventIdComboBox.Items.Clear(); EventIdComboBox.Items.Add(LxiEventId.LAN0); EventIdComboBox.Items.Add(LxiEventId...
1
4c2327a13a03cfdd525e77c2ef910c84
e72c7f1a050b6a8146ebd8120530e75c
Вызывает форму для удаления группы
class Groups(Resources): def delete_group__form(self) -> None: self.groups_form.delete_group_button.click() self.deletion_modal.wait_for_component_to_be_visible()
1
2df38481942812d7654a3d0cca24a49a
ef297e5ce1987362e8a502899b90f2a2
图片暂停旋转
{ if (!document.body.filters) { if (num == -3) { $("#pic").css("transform", "rotate(0deg)"); num = 0; } else { $("#pic").css("transform", "rotate(" + 90 * (num - 1) + "deg)"); num--; } return; } var index = 0; var img = document.getElementById("pic"); var tmpFilter = img.style.filter; var img...
0
a76aa64689b34d83d0f6b744c5b4db51
5e1869fcbab90a50f9eee3541ea68780
lista os alunos de acordo com a melhor media
func media() { fmt.Println("Aluno-1: ", aluno01, "media: ", media01) fmt.Println("A média do Aluno-1", aluno01, "foi", math.Round(media01*100)/100) fmt.Println("Aluno-1: ", aluno01, "ficou acima da média?", media01 >= 7) fmt.Println("Aluno-2: ", aluno02, "media: ", media02) fmt.Println("A média do Aluno-2", aluno0...
0
9392d8e0243572b196ecc987bebc2fb1
a896d40f04c82852680197bbfb5f7063
Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
function compareInteger(a, b) { return a - b; }
1
c83021c20da816a43fa2532f439baa26
54bd4648acca336f4c755477366ed08e
Handles a freezer when freezer mode is activated, including checking when to freeze and when to leave freezer mode
namespace A2B public class BeltTeleporterComponent : BeltComponent protected override void DoFreezeCheck() { }
0
648ed52ba78052189196480dcbfd8a5c
ae6887b4b0fedec7a53999f5b6b23f2d
Shopgate sends the credit card expiry year with 4 positions. This functions trims the year to just the last 2 digits. The month gets a leading zero in case the length of the string for month is just 1.
export class CheckoutComponent implements OnInit getExpiration ( expiration: string ): string[] { const EXPIRATION = expiration.split('/', 2); if ( EXPIRATION[1].length === 4 ) { EXPIRATION[1] = EXPIRATION[1].substring(2, 4); } return EXPIRATION; }
0