query_id
string
corpus_id
string
query
string
code
string
label
int64
a7f2fd9b176c57c3d592e985cb32e852
107bc7dd883e13fcecf21201381e1d27
过滤数据,数据的key必须是表有的字段.
abstract class DM_Authorize_AuthorizeAbstract protected function filterData($data) { foreach ($this->_filter_key as $key) { if (isset($data[$key])) unset($data[$key]); } return $data; }
0
ff39b1f332a0b280504c7cd6a4d41bd6
44cab14714a178f234c69a53a30627c7
Deletes a specific userBankData of a user on the database
class HomeController extends Controller public function destroy($id) { $userBank = UserBank::where('user_id', auth()->id()) ->where('id', $id) ->first(); if (blank($userBank)) { return response() ->json([ 'success' => false, ...
1
38b6d93dbc7a9a3949ec6181cca5284d
bdcfff5f0f97c870e283f5218b35b2fc
Create a tropospheric model from explicit weather data
namespace gpstk SimpleTropModel::SimpleTropModel(const WxObservation& wx) throw(InvalidParameter) { setWeather(wx); valid = true; }
1
990cd55eafa67727a315ced12b2a99f1
4be49cd780e52c46e66f5471fc471cb3
渲染Level Info数据
void CommonPlazaLayer::LevelInfo(void* pData, WORD wSize) { memcpy(&HallDataMgr::getInstance()->m_levelData, pData, sizeof(HallDataMgr::getInstance()->m_levelData)); m_pLabelUserLevel->setString(__String::createWithFormat("%d",HallDataMgr::getInstance()->m_levelData.wCurrLevelID)->getCString()); auto action...
1
011d14d3bc9fbd6ca4a95409823bd722
4864ff5480f21e1386f0e7fd33bda8c3
Test opening a session from an invalid token.
mock_open, mock_isfile, mock_makedirs, mock_json_dump, mock_json_load, mock_create_session, hass): hass.loop.run_until_complete(async_setup_component(hass, 'http', {})) mock_json_load.return_value = {'refresh_token': 'bad_token'} @asyncio.coroutine def get_session(*args, **kwargs): ...
1
e5de099f3d1192e75e60c28296b91a88
d0c5654d21619bdd6fd874d1b06909d1
职业条件
$company=$this->company_model->get_row(array('code'=>$this->_logininfo['company_code'])); $sql = "select job.id,job.name,cpjob.standard_type from " . $this->db->dbprefix('ability_job') . " job " . "left join " .$this->db->dbprefix('company_ability_job')." cpjob on cpjob.ability_job_id = job....
1
dee4df8873147252924b899c14f054a9
3c1708bb427eb3eb2da43c7c6d0fac36
<summary> This approach uses an internal an internal bit array to store the characters seen in the string. If we already have that characters bit set when we see it again, return false to indicate the string does not contain all unique characters. </summary> <complexity> <run-time>O(N)</run-time> <space>O(1)</space> </...
bool problem1_1allUniqueCharactersHashMap(const std::string& a_str) { std::map<char, bool> count; for(char c : a_str) { if (count[c]) { return false; } count[c] = true; } return true; }
0
e3221a3ed33e03d930b2d453d217c572
f784cef2489e7730eb6c5d1dae8f2264
"pulisce" la console, andando a capo molte volte
{ for (int i = 0; i <= console_textlen; i++) { std::cout << "\b" << " " << "\b"; } }
0
934568c9ef705ac2dc2b1154e02252be
983dada0a1235d96cc645e4750baa2e4
funcion que ejecutara la animacion de subir el ascensor.
printf("%ld espero a que llegue al piso.\n\n", pthread_self()); sem_wait(&frenar[destino]); printf("%ld baja en el piso %i.\n\n", pthread_self(), destino); sem_post(&detener); }
0
303fcf3b0edee1d7c055693cff97cd8b
fc97d5d36910bd5ac469c1af80fbb93c
This function returns the associated note
class User(model_interfaces.User): # pylint: disable=too-many-public-methods def get_note(self): return self.model.note
1
12c538d53816a221223a2bb075e0fff2
2067c7c3d3ebc1bcd650d2d8273ad27d
Returns an array of all group ids
function groups() { return Object.keys(allGroups); }
1
7513d5ccd329b72ed1ba2b281fe4824b
8c27726a2b4b7bc0714b6466db6ba3c1
Agrega Candy
function fillBoard() { var top = 6; var column = $('[class^="col-"]'); column.each(function () { var candys = $(this).children().length; var agrega = top - candys; for (var i = 0; i < agrega; i++) { var candyType = genRandomCandy(1, 5); if (i === 0 && candys < 1) { $(this).append('<img src="image/' +...
1
a881a4bf9d768ff5b62a285ea3170455
92937e0270df7761e1c1b8c076ef1310
Set the camera position and size using a rect in world coordinates.
class Level: def set_screen(self, rect, offset=1): rect = pygame.Rect(rect) self.screen = rect self.camera.zoom_offset = offset self.camera.size = rect.size self.camera.reload_zoom(offset) self.camera.instant_target() self.update_group_draw()
1
b57aca3f628ac9a28e1f747fb84bd521
9e9f3513155e59d950143f72079761cf
Returns model root node (QSceneObjectProxy)
def get_root_node(scene): return scene.GetRootNode()
1
650d1b85fb735a65dcf495947455906d
83615567febfff33cb1c34b4e2f6d169
Initializes the algolia client and index variables.
WIKI.logger.info(`(SEARCH/ALGOLIA) Initializing...`) this.client = algoliasearch(this.config.appId, this.config.apiKey) this.index = this.client.initIndex(this.config.indexName) WIKI.logger.info(`(SEARCH/ALGOLIA) Setting index configuration...`) await this.index.setSettings({ searchableAttribu...
1
3aa5dfcff26a60e835e4bba6cc383e03
8820a2ce7846205e3cd233b2b3c424be
是否同一天。同一天返回true ,否则返回false
public class TimeUtils public static boolean isSameDay(long time){ DateTime now =TimeUtils.now(); return isSameDay(now.getMillis(),time); }
1
11c03e11c5fed7f7bb69354d4a6aa65c
9e1aadd54a8e03edc6efdf572aba05d6
Função para incluir um anuncio na lista de desejos
namespace Senai.Wishlist.Desafio.Interfaces void AtualizarDesejo(Desejos desejoCadastrado, Desejos desejoNovo);
0
82dc656b3439ef182823f48d198d8db4
0fe8b9197a0d85209cfbeea9cad0da32
=======================Start Server=============================
int server_start(){ printf("%d: server starting ... \n", getpid()); server_socket_fd=socket(AF_INET, SOCK_STREAM, 0); server_address.sin_family=AF_INET; server_address.sin_addr.s_addr=htonl(INADDR_ANY); server_address.sin_port=htons(SERVER_PORT); server_len=sizeof(server_address); bind(server_socket_fd, (struct ...
1
a2708d7fd38986801e3427f8d146e6ad
d9e3a156592ac19fddb8d5a791933d4e
bring up a file upload window
loading(); var o=$('#show_upload'); var f=$('#show_upload_iframe'); var top = 200; $.ajax({ url: ajaxurl, success: function(res){ loaded(); o.html(res); o.css("left",(($(document).width())/2-(parseInt(o.width())/2))+"px"); if($(document).scrollTop()>200){ top = ($(document).height()+$(document)...
1
f52e6d5d01d7215bc1b6349203aa7cf0
8f66ffea4578c20a8e7148f471d318fb
Receive device certificate from host.
return this.rest .get<ModemCertificate>( API_CONFIG.baseURL + `/devices/${deviceId}/certificate/modem`, this.config ) .then(response => response.data) .catch(error => error.response.statusText) }
1
f67436b54e5d1d040e41de5eb1952547
88657dd15ff958f6fbb4203ee1cdaccc
Функция генерирует матрицу заданной длины со случайными числами
{ Random rnd = new Random(); int[,] matrix = new int[n, m]; for (int i = 0; i < matrix.GetLength(0); i++) { for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = rnd.Next(1, 11); } ...
1
261c27be4040c8ed7268cf6d87743a25
cca10a54b968858ee4d6271faf218687
Configures the maximum packet size that can be used when generating an SNMP request. The desired packet size.
base = self._Cstruct[0] while not hasattr(base, "setmaxpktsize"): base = base.baseclass return base.setmaxpktsize(self._Cstruct, int(size))
1
103bae501a83a9b06db2f9422fec39b6
70ba8aa6633f04c2114bab74ba385624
Проверяет является ли пользователь победителем
export default class GameInfo isPlayerWinner(board, whitePieces, whiteKing, blackPieces, blackKing) { const winStatus = this.evaluateWinStatus( board, whitePieces, whiteKing, blackPieces, blackKing ); return winStatus === this.getUserColor(); }
1
f16be9d67158926a9a4b0d82b32baf92
917e54ec001e18d90151cae4bfd6d377
Enable the hooks for taking screenshots.
class SpotMotionMonitor(QtWidgets.QMainWindow, Ui_MainWindow): def handleTakeScreenshot(self): self.dataController.takeScreenshot = True
1
444c8811b922f160cd53ed963c84e771
d84b2145256b160016c596e17cc3bea0
Sub-process routine that reads packets and puts them to queue. This function is meant to be run in separate subprocess and is in tight loop reading raw packets from interface passed as parameter.
flow_cb (u_char * user_data, const struct pcap_pkthdr *phdr, const u_char * pkt) { int s, af = 0; struct CB_CTXT *cb_ctxt = (struct CB_CTXT *) user_data; struct timeval tv; u_int16_t vlanid = 0; struct ether_header *ether = NULL; u_char *mpls_hdr = NULL; u_int8_t num_label = 0; if (cb_ctxt->ft-...
0
3e77534d3c858518dc9488c9a53ed4d6
e5d501ff18daf7e20b282e79cdd5398a
修改店铺库存预警数
class InvSyncAntiOversoldModel extends TbModel function save_warn_sku($data) { $this->delete_exp('op_inv_sync_warn_sku', array('sync_code' => $data['sync_code'], 'sku' => $data['sku'])); $insert_data = array( 'sync_code' => $data['sync_code'], 'warn_sku_val' => $data['warn_sku_va...
1
953a9fc04610dcdbde928cac7dc43a7c
140a747e9ed989a731f8715781c0d268
TVクリップキー一覧is_forceフラグを取得.
public class SharedPreferencesUtils{ public static boolean getTvClipKeyListIsForce(final Context context) { DTVTLogger.start(); SharedPreferences data = context.getSharedPreferences( CLIP_KEY_LIST_IS_FORCE_TV, Context.MODE_PRIVATE); return data.getBoolean(CLIP_KEY_LIST_IS_FORCE_T...
1
c3c42f8f2f5ed915b6d5728e143f0ed6
33c2c0226ad567ebbcd8e06dcaec6a90
Funcion para extraer datos de un archivo .csv
def loadCSVFile (file, sep=";"): lst = lt.newList("ARRAY_LIST") print("Cargando archivo ....") t1_start = process_time() dialect = csv.excel() dialect.delimiter=sep try: with open(file, encoding="utf-8") as csvfile: spamreader = csv.DictReader(csvfile, dialect=dialect) ...
1
860a08f999233fc060a209efb35fb5ce
722b15982653930397e9ce6b016d82f3
Setter for database-vendor-name property
class DatabaseSettings(object): def vendor(self): return self._vendor
0
2b0dce7b19df3dd93e03b65c0431d83f
7c2f1690781d5d4ddc93306201f1405b
Returns the value of field mail_half
public class Sml180Form extends Sml100Form public String getSml180MailFw() { return sml180MailFw__; }
0
25e01cb27da9182f668e303d5fccd931
450b7c48ad0c58f66b0a0c9166c1d420
事务模板,简化事务
Func<IDbConnection, IDbTransaction, IEnumerable<Task>> func) { using (var connect = GetConnection()) { var sqlConnection = connect as SqlConnection; if (sqlConnection == null) { throw new NullReferenceExcepti...
1
160205473d1b2e0db1daf37192f8a2d7
6ec86536af983b883ace139ada6e9c96
Get default Java SE platform home. <p/>
String getJavaHome();
1
429afd483eec3a1e12af68f00f8850a5
59e2c28c1bf5e18314cbddfef73d1c85
Retourne la valeur minimum du tableau
function plusPetitExo16V2(array $tab) { return min($tab); }
1
138c809af6637f911f54a19e199f51c3
6ab145e28dbc749a123f498202a37854
获取随机日期:最近一年
{ $date = date("ymdhis", NOW_TIME); $date = $date.rand(12345678,87654321); return $date; }
0
1fdb742434e014f2ff1990f76c464375
b969613c823cf2b9677f911c18f46597
Returns the Employee object who's Name matches the username of the currently logged in user.
namespace TimeSheet public class AppContext public static Employee GetLoginEmployee() { return loginEmployee; }
0
deaa9ce47075430c3b16d52314c2d9f4
5a7c4b8e0b2f647b8a08baf52a16d02f
Créez une fonction qui prend un nombre et renvoie TRUE s’il est inférieur ou égal à zéro, sinon retournez FALSE.
int isZero(int x) { return !x; }
0
18e60d0dcc1a556eece7bd635cb4b0b2
c6d691cf13623d4e2b6502d9fb2299de
Get the value of cityLongitude
class User implements ModelInterface, ArrayAccess public function getLongitude() { return $this->container['longitude']; }
0
9dc6de58990efb7316f3cea1d415a956
a3c15e15389b075be3338b20272fab7a
=============== AddFaceEdges ===============
assert_nothing_raised do depth = 100 width = 100 model = Sketchup.active_model entities = model.active_entities pts = [] pts[0] = [0, 0, 0] pts[1] = [width, 0, 0] pts[2] = [width, depth, 0] pts[3] = [0, depth, 0] face = entities.add_face pts loop = face.outer_l...
1
7e379d37acabc08c8934c3e142d79edb
9ac59135db157b17bd24573c0807da0b
Handles the Click event of the AddRoomTypeButton control.
{ int n; int roomTypeId = (int)ViewState["roomTypeId"]; RoomType roomType = new RoomType { Id = roomTypeId, CodeTitle = RoomTypeCodeTitleTextBox.Text, Title = RoomTypeTitle.Text, Description = RoomTypeDescriptionTextBox.Text, };...
1
e498513a4615dbe8d01659b7920cdf1c
3793d2412c0ccbabffec34077d64cd02
Sets the esf partecipant ID of this e s f match result.
public class ESFMatchResultWrapper implements ESFMatchResult, ModelWrapper<ESFMatchResult> @Override public void setGroupId(long groupId) { _esfMatchResult.setGroupId(groupId); }
0
eb9dcb35e314f8c0851c4ea232ffe975
dcff8ad5e3a2355c5443e9ab467bd1c4
Collect migration data from all modules with valid migration scripts found
{ $migration = new App_module_migration($name); if ($migration->to_latest() === false) { return $migration->error_string(); } return true; }
0
12048b55731fcf9b91c14135c04677da
78c1eec1ad390b105c29b058c6bf8d80
Liệu một chuỗi có phải là số nguyên không?
{ Boolean a = true; foreach (char c in str) { Boolean b = (a && !(c >= '0' && c <= '9')); a = b; } return a; }
0
d9b45d99a7f963b9783aaee97fb71910
fa9b08895a7662f3632ee05e073464ea
Se ejecuta al incio de la app. Sirve para establecer configuraciones de la ventana de la app, como el tamaño.
export class MyApp initializeApp() { this.platform.ready().then(() => { this.statusBar.styleLightContent(); this.splashScreen.hide(); }); }
0
efb63c9fb2c2d2660dce2f6c874477b6
3594ccaaef7ba66c337ba4d7fdbb30d3
Store the accumulator at the given address
uint8_t CPU::STA( uint16_t addr ) { bus.writeMemory( addr, A ); return 0; }
1
97590e14976e001958009d0aee939523
e1cf2c8c206f1de7cec7ff6506934ac7
Delete row from a worksheet.
class sheet(): def _delete_row(self, row_number): list_feed = self._get_list_feed(self._key, self.worksheet_id) self.gd_client.DeleteRow(list_feed.entry[row_number])
1
fdc77f6e3feb7c0fa7e1963e0e47ab6b
0952dae57cebd1cab8ee105d5277f2d4
Returns the proper credit types associated with the given product type
public function getCreditTypesForNetworkId(string $networkId): CreditTypeCollection;
0
6a9f3ab45e7f5ad800a888ddb7541e3a
7115e3d7b2a206c22a3a99a13a047716
Check to see if WindowSize property is set
{ return Width > 0 && Height > 0; }
0
39bb7ee2e7fa577708a0a88cf5e4b523
fd4fdc95c2dbf0adfe74218f27697aa5
Broadcasts the given DistanceVectorCalculation to all neighbors. If the router is set to poison, then it will do so here by copying the distance vector from the calculation and applying the poison on an individual basis per neighbor.
for nextHop in self.__neighbor: rtrtable = copy.deepcopy(self.__rtrTable) if self.__PoisonReverse: for dest in self.__rtrTable: if dest != nextHop and self.__rtrTable[dest][ 'nextHop'] == nextHop: r...
1
680f4ab39029151c47fbc6548b088da2
fd71c4edb359639fe81b8db1e624803c
Stop managing any {@link EntityManagerFactory}s This method should only be called when not holding any locks
public class EmojiDAOImpl extends AbstractIdleService implements IEmojiDAO @Override protected void shutDown() throws Exception { occurrenceStatsDAO.close(); entityManagerFactory.close(); }
1
b888a8ffa09942e76896d92239597613
7f1e2a55ddde035e643ba1696bb3070f
Two-dimensional Curve plot.
pather = pero.Pather(fill_color=None, show_cursor=False) point = pero.Circle(fill_color="r", line_color="w", size=8) curve2 = pero.Bezier(25, 50, 170, 50, 20, 170, 150, 150) path = pero.Path.from_bezier(curve) pather.draw(canvas, path=path) path = pero.Path.from_bezier(cu...
1
4cbe4615f83c4478431bf6c14a0370f5
b93d525d75f0c3e5bcc3375350f245c5
Check that values satisfy requirements of matching keys.
class KeySet extends AllOf public function check($input) { $this->checkKeys($input); return parent::check($input); }
0
0ec49cff2feb9c7cdbd9e8538b307415
eb45b70b337cfc1437fe48c3114cab3a
Utility method that returns the parts required to build a link back to the current page.
class LinkBrowserAllowedTabsFilterEvent implements CoreHookEventInterface public function getCurrentLinkParts(): array { return $this->currentLinkParts; }
1
8dc615cbba4772f7fdeb4d4ccc862082
54562331a2f034899df2bd18b99809a2
Used when declaring constructor and namespace properties. Prototype property declarations are similar, but different enough that they didn't neatly fit in this method (eg, redeclaration warnings are stricter).
class Prototype def defProperty(id, description, default = nil) if @properties[id] != nil raise "Property '" + id + "' already defined." end param = OmfEc::Parameter.new(id, id, description, default) @properties[id] = param end
1
8f7a900bc4040e0298f7e371e3cfade6
73e9645b6c327bbbf0b06f039e705e5e
Initiates the asynchronous execution of the ListAPIKeys operation.
{ options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListSSHPublicKeysRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListSSHPublicKeysResponseUnmarshaller.Instance; ...
0
835b8ccd304f84af6c053e510591ad89
241ecf6ebf3558a06681c9eaff3bc7ae
A decorator that allows for dynamic creation of docstrings.
def docstr_applier(func): if isinstance(docstr_func, six.string_types): olddoc = meta_util_six.get_funcdoc(func) if olddoc is None: olddoc = '' newdoc = olddoc + docstr_func meta_util_six.set_funcdoc(func, newdoc) return func ...
1
edd1950bf14b1bed329cddbe576cdbff
43597719355001ef87d00bad77e418cc
遍历所有的按钮
{ if (btns.Length == 0) return; for (int i = 0; i < btns.Length; i++) { string btnName = btns[i].name; btns[i].onClick.AddListener(delegate() { OnBtnClick(btnName); }); } }
1
3caad39a4dec67caea2f3470bb64d7cd
6a2744672e300171f7084265b595b355
Muestra la lista de ID y los nombres de opciones para finalizar la venta de entradas
function llistarEntrades(){ var llista = $('#llista'); var numEntrades = PalabrasIntroducidas.length; for (var m = 0; m < numEntrades; m++){ llista.append("<li id='p"+m+"'>" + PalabrasIntroducidas[m] + "</li>"); } }
0
989266cfbc15d18c3ada8ae70981bef2
0ad5c9240bd96ca8ac7846d7f8ac96d4
Check that a UID in a dictionary is equal to an existing, valid UID.
token_parts = token.split() sys.stdout.flush() for uid in uids: parts = uid.split() possible = True for p in token_parts: if not p in parts: possible = False break if not possible: ...
0
4991dbc28e028f5037ba7b40421a8749
ffff5ecf8448b620b3f30006c5d7c576
Gets the URL of the model's encyclopedia page.
public class WikiPage public String findUrl() { return String.format(PAGE_URL_FORMAT, this.id); }
1
8de4b8ae55b818ca3a65662a30ca9ab7
f33fdf22159e5a4d655179f71475dce2
Get a set of hate data pertaining all states.
{ mapping all_hatred, hatred; string fam; if (!mapp(all_hatred = query("hatred"))) return; foreach (fam in keys(all_hatred)) { if (mapp(hatred = all_hatred[fam])) map_delete(hatred, id); if (!mapp(hatred) || !sizeof(hatred)) map_delete(all_hatred, fam)...
0
f24c07923273d147d518821e6151cfe3
6695da9e4f5ecf313261e33619e3edd5
Grabs unique id number of a specific light source
class geLinkLightbulb extends \ianmaddox\wink\device public function getID() { return $this->deviceData['light_bulb_id']; }
1
6739f3f2b3da27beb6b6860377da511a
a3bd25d1285ba844d17e2c94d3022ff1
@brief Select G726 CODEC
mvs_g711a_mode_type mvs_g711a_mode ) { #ifdef MSMAUD_VOC_G711A #error code not present #endif }
0
d8495e4c432b0a375d6548b575140695
ca0607a7f6d03577f2d1a38e9217a6d6
Returns the general water availability of the garden.
{ double lAvailableWaterCapacity; double lDepth = pDepth; if (pDepth > this.DepthLimit) { lDepth = this.DepthLimit; } lAvailableWaterCapacity = this.GetFieldCapacity(lDepth) - this.GetPermanentWiltingPoint(lDepth); ...
1
fe09b5aee64238683d06bd38aa0cd04d
937dfe640c7f31ab26c773b83171e54d
Read a CF compliant netCDF file containing a grid.
{ size_t start[5] = {0,0,0,0,0}, edge[5] = {1,1,1,1,1}; int ndims = 0; GMT_LONG first_col, last_col, first_row, last_row; GMT_LONG i, j, width_in, width_out, height_in, i_0_out, inc = 1; int *k; size_t ij, kk; BOOLEAN check; float *tmp = VNULL; if (GMT_grdformats[header->type][0] == 'c') return (GMT_cdf_re...
1
17693c71cff8c23711d1f574d934e950
a2ffd6f8d488dca2f908fdc3076b84f2
Since our contract will have different addresses depending on which network it is deployed on we need to load the network ID before we can initialize the contract. This will happen async.
export default class TokenService static currentNetwork() { return web3.eth.net.getId().then(function(networkID){ return web3.eth.getAccounts().then(function(accounts){ return new TokenService(networkID, accounts[0]); }); }); }
1
e5b8b19550d85c7e6a534db278e20b08
b74cf534cf20793313550cad8e709182
Convert HostConfig to 1 or more dicts that Fabric 2.0+ accepts as a "connection context" 1 connection context for each host
def scm_host_factory(user_config, config): hosts = {} default_host = '' for name, value in config.items(): if name == 'default': if isinstance(value, dict): default_host = 'default' else: default_host = value continue if...
0
d793a450476f95b210c20492fa56848f
522b6e55299f3426586190114fe8b3b4
发表攻略
if(request()->isPost()){ $data=input('post.'); $data['updatetime']=time(); if($data['tags']){ $data['tags']=str_replace(',', ',', $data['tags']); } $validate=validate('glarticle'); if(!$validate->sce...
0
5f7d7e48a0b5e8e5716ca001714cf567
a626bf0b17a36d6b5e85ad54e4e5fb00
Determine what type of info: string/float/int is stored in each vector
if len(dims) == 0: return 'scalar', (1, 1) elif len(dims) == 1: if dims[0] > 1: return 'row_vector', (1, dims[0]) else: return 'scalar', (1, 1) else: if dims[0] > 1: if dims[1] > 1: return 'matrix', (dims[0], dims[1]) ...
0
d311953127dbc08031df470be50af63f
1cb0741b9146275e71290bbef2b197f6
开始补花
class GameContent extends eui.Component{ public mendFlower(data:any){ this.userDirection.bnumsTxt.text="剩"+GameData.bnums; if(data.last==0){ data.last=1; egret.setTimeout(this.mendFlower,this,3000,data); }else{ For:for(var i=0;i<GameData.userNumber;i++){ if(data.tid==this.userIcon[i]...
1
a98bb1b005427814d98d22ec1a830584
c23bd374195f6326f32d57e1abe45a88
old style classes or instances
static int isInstanceOrClass(PyObject *nextVal) { #ifndef IS_PYTHON3 if((PyInstance_Check(nextVal)) || (PyClass_Check(nextVal))) { return 1; } #endif if (!PyObject_HasAttrString(nextVal, "__class__")) { return 0; } if (PyType_Check(nextVal) || PyObject_HasAttrString(nextVal, "mro"))...
1
c62cfe083f0a640080a92b6ecda1975a
ecc028c5a2d91e29a2372f2cd8e0e8bf
Add a log item before the command has run
{ DbCommandLogItem logItem = new DbCommandLogItem { Operation = operation, Command = command, IsAsync = isAsync, Exception = exception, Result = result, DurationTicks = durationTicks }; lock (messageBroker) { messageBroker.Publish(logItem); } }
0
b14bca3a0dc24e8dae5519e7360b2c3c
c0ac6ff43e06bd72eb3a4520da602dc7
Send a message to the Lingering ML Toolkit worker instance. @user_msg object: Arbitrary object to be transmitted to the remote end. Object must be picklable.
def send_to_all_ml(obj): base.send_to_all_ml(obj)
1
60b926ffeafeaf8f9df7993d9752c923
a2c81e78741f121b8d11dd16a0a1f8e0
Retourne la colonne si gagnante trouvée ou -1 sinon
int ia(void) { unsigned meilleurs_col[P4_COLONNES]; unsigned nb_meilleurs_col = 0; unsigned max = 0; unsigned col; for (col = 0; col < P4_COLONNES; ++col) { struct position pos; unsigned longueur; if (grille_jeu[col][0] != ' ') continue; calcule_positi...
0
e9e69988a5460a1ac84b045066d5c6da
84ac5242ed1cd2128c102d43d27d5f1f
判断音乐文件是否已经下载
local path = ChatRecordMgr.GetCacheSoundPath(sound_name) local file = io.open(path, "r") if file then io.close(file) return true end return self.record_download_list[sound_name] end
1
d6199e74d43f7b5bc9eafaf529c05883
81d0a07d3393b70ab63fdd5f834a993e
Fire sheet refresh event when sheet name changed
namespace ListProcessingExcelPlugin public partial class ExcelRibbon private void sheet1DropDown_ButtonClick(object sender, RibbonControlEventArgs e) { if (e.Control.Id == "refreshButton1") RepopulateSheetDropDowns(); }
0
4a55fb9be980dc0d433a493669728215
d9623a8420d2ccbce57b62f42ad3c993
keiyakuStatusName を設定します。
public class ContractAmountMaintenanceUploadDomain public void setKeiyakuName(String keiyakuName) { this.keiyakuName = keiyakuName; }
0
3b5edb5715ba0bda6a841049cc8412d5
c24e5518d64a03c5b5baa5e9012fa93a
跳转到抢购页面
onTargetBargain(e) { App.saveFormId(e.detail.formId); wx.navigateTo({ url: '../index/index', }) }
0
f46cf4931a691e91b3fc7cc9f3ddc036
07a058a784062d855ba5ed24b916d776
Constructor for the Controller object.
class TheatreController: def __init__(self, view): self.view = view self.init_controller()
1
dea82453e931851065591de3b5a12e45
efecd35025d19f7f06f325920f720c84
Enables the QAction based on the condition of whether or not the plugin command is currently loaded. **Positional Arguments**
if not self.pluginIsActive: self.pluginIsActive = True if self.dockwidget == None: self.dockwidget = LayerStyleLoaderDockWidget() self.dockwidget.closingPlugin.connect(self.onClosePlugin) self.iface.addDockWidget(Qt.LeftDockWidgetArea, self.dockwid...
0
0c05e56169f2f05ba010b34949701d68
3ecbee9f737d5697f74652eb4f31803a
Check whether the character is part of CJKCompatibility UCS Block Returns 1 if true 0 otherwise
EXTRTMETHOD OSBOOL rtxUCSIsCJKCompatibility (OS32BITCHAR code) { return (OSBOOL)((code >= 0x3300) && (code <= 0x33FF)); }
1
aaee469659f65ee5bf84c235309efa2e
e79ebc386d4f5952ae9e6d4ee44b98bf
初始化邮件列表
{ noMailListImage.SetActive(false); GameObject mailItemGameObject; ItemContainer mailItemContainer; List<PMailBasicInfo> mailList = Singleton<MailMode>.Instance.MailListInfoVo.MailList; int mailListCount = mailList.Count; while(mailItemContainerList.Count < mailListCount) { mailItemGameObject...
1
b5c257958513d5ebbf79ad7c9bb6e79f
76f741753d9590a97e5746dda4543279
Aggiorna lo stato di una sdraio effettuando una richiesta al Database
public boolean soddisfaRichiesta(int codiceRichiesta, int codiceMacchina) ;
0
7f35519ad5545c8570164da0b8e03a21
5b6d0ad8caa97e2307bb235559fbef7f
渡された横幅のコメントが追加された場合の衝突する時間を返す(値が小さいほど衝突しない)
let wrapWidth = this.$elm.clientWidth; let cLeftArrivalTime = wrapWidth / (cWidth + wrapWidth); let collisionTime = (1 - this.minProgress()) - cLeftArrivalTime; return collisionTime; }
1
0cf8fd582b2426f3d6a707cf7a3b391a
1137deaa0f22a6f18a697edbc32f2c97
PersonneController constructor.
class UserAlbumController extends AbstractController public function __construct(EntityManagerInterface $em, PersonManager $manager) { $this->personManager = $manager; $this->em = $em; }
0
c16a24857dbb118fced90fe4480e5a84
9fca23762f88aee9a3adcf51c1c140ea
Проверяет условие трейлинг стопа и подтаскивает его при необходимости
{ if (_trailingStopLossRule == TrailingStopLossRule.None && !_moveToBreakEven) return; var madeNewLow = false; if (_moveToBreakEven && !_alreadyMovedToBreakEven && Symbol.Bid <= BreakEvenPrice) { Print("Moving stop loss to entry as ...
1
6e03a4216ffaddf8a02c5a169cdc0431
f5b11e6f6139f34e9754be59e4f06fbf
clears the price text after adding item to list
{ originalPricetextbox.Text = String.Empty; discountPercentagetextbox.Text = String.Empty; salePricelabel.Text = String.Empty; }
1
2c990242e8953c794db23f2103cfdc0b
7d37c0781eae76abef6d3af62e345239
Classe que representa as conexoes entre os nos (aresta)
class No: def __init__(self, valor): self.dado = valor self.proximo = None self.anterior = None
0
1134de652f32c2a3476f4d05fb95fc99
41a89b301ea354826b53e58e606d8612
Get the originHostHeader property: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides...
class CustomOriginConfig: def origin_headers(self) -> typing.Optional[typing.Mapping[str, str]]: return self._values.get("origin_headers")
0
0a4fb5ca50e96ea185047af6a794b4b6
70f770c4ec586458c8e3f6f8f82fb474
删除用户接口函数
class User extends CI_Controller public function deleteUser(){ $this->load->model('user_model'); $user_id=$this->input->post("user_id"); $delete=$this->user_model->deleteUser($user_id); if($delete>0){ echo $this->json(0,"删除成功"); }else{ ...
1
30a17ce608ae3825f2d95a4e733dcf19
e8b305274b2ba2c7f143b3392d614fa2
Returns all available horoscope providers.
interface WhatsNewProviderService fun getWhatsNewProviders(): List<WhatsNewProvider>
0
13fdbd29f43a2a66bbe9a8497820dddc
78eb906fe223e4ea167e12fbefe7e6ec
添加摄像头事件回调
public class VideoChat_Activity extends Activity implements View.OnClickListener, Connector.IConnect, Connector.IRegisterLogEventListener, Connector.IRegisterNetworkInterfaceEventListener, Connector.IRegisterLocalCameraEventListener, IVideoFrameListener @Override publ...
1
93fe48159b6ef532c3571cdb2083bfcf
167326ed80061a9a905488e0455e4a76
Simulates deleting all Twilio account recordings.
namespace Microsoft.AdvocacyPlatform.Contracts Task<bool> DeleteRecordingsAsync(string callSid, ILogger log);
0
14504e8a1ed20159ccadd7ec2a989568
6c1b6b921cbf9b7545b6dd43f84cee69
Get the SQLException object.
public class SAXException extends Exception public Exception getException() { return exception; }
0
ceeb9d4a51df26444947b3524d470720
9b98225488d73685393ffd425ff9c9e5
Retorna un booleano verificando la existencia del alumno
class HomeController extends Controller public function exist(){ $existDocente=$this->docenteRepo->existsDatosRegistrados(\Auth::user()->id); return Response::json(array('success'=>true,'existe'=>$existDocente)); }
0
b22d42b0067111b89f20cd85afd89dd3
3588a503cf8849c82137406d0bb4f37c
> Test the concatenation of two matrices over their first dimension.
class TestMatrixClass(unittest.TestCase): def test_concat_vertical(self): self.assertListEqual(self.simple_matrix.concat_vertical( self.simple_matrix).data, [[1, 2], [1, 2]])
1
0b87418ed444b871e50e93c222fd3c1f
5d480aa362746b391cc291de50f562c9
Sets up the config class for use
class ORMParser public function __construct() { $this->config = \CB::getInstance()->getConfig(); }
1
2c2819ed85056d4291ac96b07b325d3e
004b93394693575d615d223d795adff3
Lay thong tin cua mot nhom nguoi choi game tu Service cua Me
namespace BUS [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. // [System.Web.Script.Servi...
0
0b4d355601acfa450f6fc692c0772935
e1d741f00fda2df3b6047149b0396d6a
r"""Selector for evaluating whether an object gets stored in a particular content group. A selector is an abstraction for a collection of PIXL expressions.
self.operator = operator self.func = func self.collection = collection t = None if self.func is None else LambdaExpression.parse(func) if not isinstance(t.body.value, ast.Name): raise TypeError("lambda function must select a property") self.node = t.body ...
1
43c91fabb42304f1c2058f8137646035
3eb23c4ed5536befff6f156752b9878b
根据三字码组装中文名
String sreturn=""; if (chinese == null || chinese.trim().length() == 0) { return ""; } chinese = conversionStr(chinese, "GB2312", "ISO8859-1"); if (chinese.length() > 1) { int liSectorCodeS = chinese.charAt(0); int liPositionCodeS = chi...
0
b2b26083a4513f4e277b6ce6222b7838
eda1c77ee9dacbc3dfe3d02d7402accc
Сохраняем файл пакета
def pack_data() -> None: write_file(data) pack_btn.config(state=DISABLED) show_info("Изменения сохранены!")
1