query_id
string
corpus_id
string
query
string
code
string
label
int64
9352aeb3d443b3b016cecd437bfeb028
1b91e45eab45ec10caa94e6b58754551
14.查询所有技能组接口
async function querySkillTypeList(params) { return request(javaServerAddr+'/skill/querySkillTypeList') }
1
01216b6c9c9821bbcdab0ee03ae5a4cd
8161c7dabb01cb146976fd184bf52803
Set the configuration mode display
class ToyBoxManagerView public setConfigMode() { this.editmode = TB.EDITMODE.CONFIGSET; this.sideLock(); this.switched = true; }
1
276e7f75d9cb003e9881806c737e37a1
8cff3ca8cc4a63a458d8f0fd2c20edb3
Get JSON-like JavaScript string
class Command(BaseCommand): def to_js(self, data, indent=0): def js_f(data): def js_v(s): if isinstance(s, str): return '"%s"' % s elif isinstance(s, bool): return "true" if s else "false" else: r...
1
55d825da97f532a255667d0b3bee211f
38a8770cc070ced3aed2c683fae989b8
Get all the server groups in the configuration.
class Connection(object): def server_group_get_all(self, context, project_id=None): return IMPL.server_group_get_all(context, project_id)
1
b4d912b85c368ce1c2c4503767d2e2ff
bf99b64b8eba31ec1d6a67ac56d6932d
Gets all HistoryItems in DB and returns them ordered newest to oldest.
public class HistoriaDBManager public Cursor getAlldbitems(){ return mdatabase.query( HistoriaContract.HistoriaEntry.TABLE_NAME, null, null, null, null, null, HistoriaContract.HistoriaEntry.COLUMN_NAM...
1
fc8b7fc1c977c5b3cfa81bb7b163ab00
b5e5a67dc6209dcb03f93f190dc69047
获取购物车中的所有Menu对象,也就是所有菜品
List<TMenu> getMenu();
0
6f184f1ace3b1f5ab72bd0edaaa807a8
98a0b856f6b6e9cb289cf47a3b71f3ec
allow slice turns as part of the legal moves
try { String move = new String(str); int nSlices = 1; int rotations = 1; if (move.length() == 2) { if (move.charAt(1) == '\'') rotations = 3; else if (move.charAt(1) == '2') rotations = 2; else return false; } else if (move.length() > 2) return false; String letter ...
1
6cee5ce15fb87822ecd19d96b580aa6b
b1147a14fa2f2e178742467c10735ea2
Allocates OpenCl buffers and arrays with traversal information
void congestion_analysis() static void alloc_timing_driven_route_structs_and_arrays() { rg_roots = (t_rg_node **) my_calloc(num_nets, sizeof (t_rg_node *)); rg_sinks = (t_rg_node **) my_calloc(num_cons, sizeof (t_rg_node *)); node_maps = (t_rr_to_rg_node_hash_map*) my_calloc(num_nets, sizeof(t_rr_to_rg_node...
0
14021d9076a84861be27c82d91fd1dda
fe2bad07a5cd40b0998023a4fae7c851
For debugging purposes, prints this tree
print(self.experiment_name, '\t', 'sim: ', ''.join(map(str, map(int, self.sim_filter))), '\n', 'rem: ', ''.join(map(str, map(int, self.rem_filter))) if self.rem_filter is not None else '') if self.left_child is not None: self.left_child.print() self.ri...
1
e2c5974d2cdadfcf4f485554fee007b9
d6bab8c909636297a552c29b052157cb
Return the HTML id of the HTML component representing the widget.
class IFormCanvas(IPrefixable, IFieldExtractionValueSetting, IGrokViewSupport): def htmlId():
1
a7fef28360bf6beffc08dfd6f30122f4
ec3d150e44f456524143a58804ef8ccc
returns same list with temp converted from Celsius to Fahrenheit
temp = self.temp templist = [] for i in temp: templist.append(round(((i - 32.) * (5./9.) + 273.15), 2)) if self.dtype == list: self.temp = templist else: self.temp = np.asarray(templist)
0
3741afbf65147efce3d0558a39e53f13
88b26761a9d467d58bb3873a89764a2a
Returns the number of related SProductImages objects.
public int getNumberImages();
1
9758f3576d95cda6d5428646de728df4
c137c930a0b5b9cb726d4b0b2efd0f2f
déplacement de la caméra
cam.position.x = posX; cam.position.y = posY; cam.position.z = posZ; cam.rotation.x = THREE.Math.degToRad(oX); cam.rotation.y = THREE.Math.degToRad(oY); cam.rotation.z = THREE.Math.degToRad(oZ); rafraichirScene(); }
1
b4e8f44ba7059c6db983bbc6ccd0ff02
2f75b974616b68f22c994ff6ed333b93
Try to determine, whether the input file is readable by the plug-ins parser. If false is returned by the method, it is not assured, that the read method is not called at all. In case of the situation, that no plug-in is most likely to read the input, CobiGen will try every input reader to read the input. Please be awar...
public abstract class ReaderNg public final boolean canRead(final ImageInputStream in) { if (in == null) { throw new NullPointerException("in"); } this.in = in; boolean result = false; in.mark(); try { readPrologue(); result = true; ...
1
cc7964d5d570ca6221015657fb42e65b
d2c6b1718ff7457145e43e1ee81b2cb9
DESCRICION : Funcion que obtiene la lista de movimientos de caja
@CrossOrigin(origins = "*", maxAge = 3600) @RestController @RequestMapping("/api/caja-movimiento-controller") public class CajaMovimientoController @GetMapping(path = "/list", name = "CajaMovimiento: " + NameMethods.MENSAJE_LISTAR) public ResponseEntity<?> getAll() { try { List<CajaMovimiento> listTemp = cajaMovi...
1
4445cfd3609af8feb37e43746b447afd
74e20c2542b302fcb5896503984f5cb0
###### Constructor ####################################################
test_ctor <- function() { message(sprintf("--- test_ctor")) reaction <- getReactionForTesting(5) parser <- ReactionParser$new(doc, reaction) checkEquals(xml_path(reaction), "/sbml/model/listOfReactions/reaction[5]") checkEquals(parser$getXPath(), "/sbml/model/listOfReactions/reaction[5]") checkEquals...
1
0a505448e62e84c8799cf3752c39329a
97a18dcc6e56703acce5bfc92ca7eccc
Assigns item modifier slots.
public class EquipmentManager : MonoBehaviour void SetModifierSlots() { modifierSlots.Add(modifier1Text); modifierSlots.Add(modifier2Text); modifierSlots.Add(modifier3Text); modifierSlots.Add(modifier4Text); modifierSlots.Add(modifier5Text); }
1
d7005e57d6afb14baa3e4869d3299610
983179be51121944c6f4dd36666bb1f9
Set request stack.
{ if (!$container->hasDefinition('hwi_oauth.templating.helper.oauth')) { return; } $definition = $container->getDefinition('hwi_oauth.templating.helper.oauth'); if ($container->hasDefinition('request_stack')) { $arguments = array(new Reference('request_stack',...
1
1a7b8d047786de0c4a9c0ba50325e2bd
b7f4633de3eaec40aae94750858d7593
Custom names and the options key they map to, used for defining shorthands
return { extension_slug: 'slug', wporg: 'to_boolean', type: 'slug', name: 'sanitize_text', slug: 'slug', latest_version: 'version', requires_wp: 'version', tested_wp: 'version', requires_php: 'version', average_rating: 'to_float', support_threads: 'to_int', support_threads_resolved...
1
608a3f2ee9fa561c64ea86e8ed832341
d732ec10118eecedc3eb18ebb8790774
Convert from cubic feet to cubic meters.
def cubic_meter_to_cubic_feet(cubic_meter: float) -> float: return cubic_meter * 35.3146667
0
361f60b14232eb36fd10bfb05b721a26
a0867fb9184f2dcb962843eb600afc2f
Get the ID resource associated with the fragment.
get_fragment() { return this.fc.get_fragment_by_id(this.get_fragment_id()); }
0
e16883f5abcd6a22309aa52382b9feaf
a61208931fc7c4149510a2c8b3069777
通过id,删除单个文件类型
class TypesModel extends Model public function typeDelById($id) { return $this->delete($id); }
1
15ca3aefa4c60504aed0c8689f12abfd
2689c8bc008a40b8f86b9c21d7fa1f52
Ensures that the CSRF cookie set for the decorated view.
class UserLoggingAuthentication(BaseAuthentication): def enforce_csrf(self, request): pass
0
eaf4a4fae9e27e29488ee4db41ef3a70
7988de4c0c2b15ef8c2878fb44f9b7e1
401 无权限
this.msg = { messages: ['没有访问权限,请登录'], status: -401, error: '权限拒绝', timestamp: new Date().getTime() }; this.code = 401; }
1
7364b8a57cc8ca24cc4e9bd4f94fd6fd
b7d4f1dffc22f5e606ca654510f68440
Deletes the partition identified by the specified partition key.
var entityToDelete = Find( partitionKey , rowKey ); if ( entityToDelete == null ) { return null; } return CloudTable.ExecuteAsync( TableOperation.Delete( entityToDelete ) ); }
0
358422857e060141f97430044d843c48
098e80737505ceece7a901f069ab02b9
Function that returns a number from 0 to the number provided, exclusive.
@Guarded public final class Generator @Min(1) public static int number(@Min(0) final int range) { return index(range) + 1; }
0
108d28daaa393c2e314a9a8ba175fc18
f380b461f0af1bb10b658da692d5158f
Fills the variables edgesThroughSCCF and edgesThroughSCCB by storing an edge in the graph for each pair of connected SCCs
std::vector<int> v; std::vector<int> e(graph.size()); int currentEdgeIndex = 0; for (int i = 0; i < verticesCount; ++i) { v.push_back(currentEdgeIndex); auto rangeIters = graph.equal_range(i); for (; rangeIters.first != rangeIters.second; ++rangeIters.first) { e[currentEdgeIndex++] = rangeIters.first->seco...
0
3591849e89d63ebd741ceaa7e8d77fd0
06fe4293ddeba2756436c7560cbadc7f
Show a flavor profile
showFlavor(showFlavorRequest?: ShowFlavorRequest) { const options = { method: "GET", url: "/v3/{project_id}/elb/flavors/{flavor_id}", contentType: "application/json", queryParams: {}, pathParams: {}, headers: {} ...
1
8bc494a6359c8da24601ee55f8f5498d
23a3ced9149003e0143647286e95ff2d
Gets the battery_status of this SystemMsg. # noqa: E501
class NodeStatusBatterystatusNode(object): def status1(self): return self._status1
0
6e89fe91b483f4b12bb43607ecb697b7
5adc330799b708d3e4aa424b0497840a
Get the address of the current persistent node.
public abstract class AbstractCore public final NodeAddress getMyAddress() { return myAddress; }
1
ac4f7be200f67704868058fbf156fdd4
8469197ac10f23fba2aa842e0783dac5
Reads the csv and sets the average size bp for each sample
with open(self.sample_sheet, 'r') as csv_handle: zumi_byte_load = (\ self.offset_pos['diff_offset'] - self.offset_pos['zumi_offset']\ ) - 28 csv_handle.seek(self.offset_pos['zumi_offset']) for line in csv_handle.readlines(zumi_byte_load): ...
0
4b07e0a17a367581eecbc524ac885e56
5f457d4af4915521763c8ff7103bfe0e
POST /api/v1/pessoa_emails POST /api/v1/pessoa_emails.json
@pessoa_fisica = PessoaFisica.new(pessoa_fisica_params) if @pessoa_fisica.save render json: @pessoa_fisica, status: :created, location: @pessoa_fisica else render json: @pessoa_fisica.errors, status: :unprocessable_entity end end
0
74a0d736c3ebca4bd746435aea387062
61ce7aa9d78128338ec380c2bd525ca0
Test encoding a compressed dataset with specified decoder plugin
static void test_stCompression_compressAndDecompress_Lots(CuTest *testCase) { test_stCompression_compressAndDecompressP(testCase, 1000, 0, 100); }
0
a33be4acc4701c721a21de83c9992a34
f0e0adbc84e2efe548b4f269788efb7e
Controls the enemy state based on players actions
public class Basic : Enemy public override void OnUpdate(float deltaTime) { CheckInSight(); if (activeState == EnemyState.Patroling) { if (suspicion > 0.75f) EnterState(EnemyState.LookingAtPlayer); else Patrol(); } else ...
1
96820f358d3a9ab60c4ce3c5a6146b7d
b0467de0c4ed22450b78d8679a82560b
Configures the relationships to the entity types participating in the many-to-many relationship.
namespace LiftOff.API.Data public class LiftOffContext : IdentityDbContext<IdentityUser> protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity<StatisticsUser>() .HasMany(x => x.Flights); modelBuilder.Entity<StatisticsUser>() ...
1
774a081d08aa3a3b520c693cfd4bfa27
fcf75a1cd02c410e68cb0ab6cd39e163
进行预警数量的修改
class Goods extends Base{ public function editwarnStock(){ $m = new M(); return $m->editwarnStock(); }
1
b0adc30ad66defc28ddd79e41777cfa4
fee5ced245fc3e7aab348240d353c2b6
Returns the next task off the priority queue
class Parallel(object): def get_next_task(self): if not self.outstanding: return None return self.outstanding.pop(0)
0
863ba7e964b7a3c64c3108251a1a8d06
f1d28fdc8dbeac1241850a96e94e1325
根据书签名字返回书签 和 索引
namespace FBA public class SysReportXLSX private bool GetBookmarkPoint(string bookmark, out int rowIndex, out int columnIndex) { rowIndex = 0; columnIndex = 0; for (int i = 0; i < BookmarkCount; i++) { if (Bookmarks[i, eSheet] != CurrentSheetNa...
1
22a2312f14cac429f977f8bb2a2827f0
14d7d4b49b02180ac9987d6b93c6a2fa
Get a texture object by name PRIVATE
{ for ( unsigned int index = 0; index < myTextureCount; index++ ) { if ( myTextures[index].name() == name ) { return &myTextures[index]; } } logln( _T("Unable to find Texture:\"%s\""), name.c_str() ); return NULL; }
1
b67e1cc5ce16773b00502a93da5a366c
9626ab022520bb1a12835872e35a9742
Loads a nanoapp at the specified Context Hub. After the nanoapp binary is successfully loaded at the specified hub, the nanoapp will be in the enabled state.
@SystemApi public class ContextHubClientCallback public void onNanoAppUnloaded(ContextHubClient client, long nanoAppId) {}
0
ecda089a2a8231ffbad38d57179713dd
213b96d7e824197579b869533f8afa64
getHenjouTypeHontaikouSelectItem 変状種類(本体工)の選択項目を取得する
namespace Jp.Co.Unisys.Espa.Ap.Bsctl.XA02 public class XA02_D01160BsCtl : CommonBase public DataEntity GetKijiShiireJoho( DataEntity dataEntity ) { SendParameterCheckCmn paramChecker = new SendParameterCheckCmn( dataEntity, this ); string kaishaCD = string.Empty; string shitenCD = string.Empty;...
0
a1bc6f43041929d6b10fc2f9e059e913
9019821a10a5426474f83e74da0d7505
Get table name from App Config
class AppConfig extends \yii\db\ActiveRecord public static function tableName() { return 'app_config'; }
1
d2c3064c847587a1940d3e896ea52463
c84e1907a3791c084cd2ae90b27c5bfb
\brief Perform soft reset or device reset on select ahci port
{ u32 greset; bool wait_for_host_mode = false; dev_vdbg(hsotg->dev, "%s()\n", __func__); if (dwc2_iddig_filter_enabled(hsotg)) { u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); u32 gusbcfg = dwc2_readl(hsotg, GUSBCFG); if (!(gotgctl & GOTGCTL_CONID_B) || (gusbcfg & GUSBCFG_FORCEHOSTMODE)) { wait_for_host_m...
0
55df8a55468ff8965e907bd13feb6b74
797a4075ccda8b4920463fc056499945
Consulta el catálogo de CentroServicios
namespace SafeTransfer.BusinessProcess.Object public class catCentrosDeServicioBSS : BPBase public ENTResponse searchcatCentrosDeServicio(SafeTransfer.Entity.catCentrosDeServicio_Ent entcatCentrosDeServicio) { ENTResponse oENTResponse = new ENTResponse(); try { ...
1
6f0f099438fede4de7fe2e78788d2dc4
dcab6d878f05ed79614d68f8e37c9992
解析机票信息
ticket_info = tr.find_by_css('[class="ticket-info clearfix"]').first train_number = ticket_info.find_by_tag('a').first.text station_info = ticket_info.find_by_css('[class="cdz"]').first from_station = station_info.find_by_tag('strong').first.text to_station = station_info.find_by_tag('strong').last....
0
56c1bd55048d822712e7f48d520355ce
23b8ce67cc2d7e8dd52c31c875e04636
子串定位(模式匹配)蛮力版
{ if (pattern == nullptr) return -1; if (input == nullptr) return -1; int m = (int)strlen(pattern); if (m <= 0) return -1; int n = (int)strlen(input); if (n <= 0) return -1; for (int i = min(m-1, n-1); i >= 0; i --) { int j = 0; while (pattern[i-j] == input[n-1-j] && j <= i) { j ++; } if ...
1
b27c329a55067c1d5b2b8bdb6a885dfa
45076b8387183eb228b4ff046886586f
移动子对象为最前一个
namespace MoveEditor public class SceneTools : EditorWindow public static void Handle_MoveToTop() { gameObjectsList.Clear(); GameObject_SiblingIndex.Clear(); GameObject[] selectionObjects = Selection.gameObjects; foreach (GameObject go in selectionObjects) ...
1
bf1eeae804d314a9fde317bca525d9c0
def6bd790f1f3b689069df1e01d60ac3
Build a menu from the list of availabel presets.
void IAPresetController::buildMenu() { if (pMenu) ::free((void*)pMenu); std::vector< std::string > presetList; pProperty.listPresets(presetList); int n = (int)presetList.size(); pMenu = (Fl_Menu_Item*)calloc(n+5, sizeof(Fl_Menu_Item)); pMenu[0] = { strdup("<not saved>"), 0, nullptr, (void*)0, F...
1
a8236df205fc0d7481c4300e1f3005f3
39343d7b858aa3d7e64f7b91b172f4e2
Move current iterator position to parrent of current element.
void trieIterator::up(){ if(this->depth < 0) return; else { this->nextVector[this->depth] = numeric_limits<int>::max(); --this->depth; this->isAtEnd = false; } }
1
0241621f23b05424bc1a0da51748a000
a81e3e30cd3101502f5b591d217748b5
Remove all breakpoints mapped in the given class.
void jit_debugger_remove_all_breakpoints(jit_debugger_t dbg) { }
1
25abb6340009dce998f7683a4f50ae27
88b93e55f04bc2b361cf2ec101d31c6c
向MySQL中插入抽取会话的详细信息
try { wDB = this.openWDB(); wDB.execSQL("insert into " + TABLE_NAME + "(record, session_key) values(?,?)", new String[] { text, session_key }); } finally { if (wDB != null) wDB.close(); } }
0
9faabf3865c4a5aebe8d0cab1b5926b2
abb94101ae5bdc8e08073649b8bc0eb4
Writes a segment of the stream to a file. This function can only be called when the stream is in normal or readFile mode.
long writeSegment(ZFile zfile, Range range, InputStream in) throws IOException;
1
6cb669d3ecde7530ad251f833cfc2110
cf2112b2e11e1c64bc3298348f2eb9eb
Constructor with no arguments, initializes all number values to 0, number to an empty string, and sample to nullptr
wall_sample_info_t::wall_sample_info_t() { this->clear(); }
0
cf3df5866920365e52cf54a18f78fb5f
170771a45ddbd151ecb2b6467dfeda8e
重定义工厂方法以返回一个ConcreteProduct实例。
public class ConcreteCreator extends Creator @Override protected Product factoryMethod() { return new ConcreteProduct(); }
1
94420e85c4797111c4eeaf622311e04c
75b123490ff57180daea615fa8e468c8
запись в файл массива структур
{ StreamWriter sw = null; try { sw = new StreamWriter(filename); sw.WriteLine(array.Length); for (int i = 0; i < array.Length; i++) sw.WriteLine(array[i]); Console.WriteLine("Данные успешно со...
0
2bf954e49fda70a82fe642b9cab83d4e
f39467ed6d4011f86fdd2d3870612dc3
查询出所有提醒订单,根据发药时间排序
public List<SendOrders> selectSendOrderAll();
0
d93364a971d6a556bb951cd07d299e2a
110d8e95f642dec8bd620f66f936dc30
GUI widgetek szinkronizációja a kapcsolat feldolgozóbeállításaival. (Enabled, Detached, PreviewIdx, Record, FPS)
{ bool active = true; switch( disabledRecordPolicy ) { case QEWidgetProperties::ignore: active = isConnected; break; case QEWidgetProperties::grayout: active = isConnected && ( disa != disv ); break; } updateConnectionStyle( active ); }
0
fc5f3ab436a573f7b3ae32c7cf528772
1ba5d30e1b4345bd091ddee55b38a54d
Return the object ID and document ID contained in the given file name.
def address_docid(catalog, obj): address = resource_path(obj) docid = catalog.document_map.docid_for_address(address) return address, docid
0
1b4b349558456e9d624f7ee9d8bedef6
cc8bf8861ebf4fb8e36fd9f6e625294d
Generates RA, Dec coordinates of events. Sets .ra, .dec. and .dist properties.
with open(self.COORDS_IN, 'w') as f: for i in range(len(z)): f.write(f'{z[i]}\n') os.system(( f'{self.disperse_path}my_dist ' f'{self.cosmo_Om} {self.cosmo_Ol} 0.0 {self.cosmo_H0} ' f'{self.COORDS_IN} out_{self.COORDS_IN} s' )) ...
0
dafb9615b16887a11466672e55ef60cb
4af1d16c85fcbb862a5bea5b273d0fee
recursively refresh the nodes
function refreshNode(node) { node.reloadChild(); }
0
3426d22ee6efb3ced1e4762e71d6ae9f
1cac6aa8e9a2d76cb953baab829e2317
Encrypts the given plaintext with the given key using CipherBlockChaining bytesToUse tells the algorithm how many bytes it has to encrypt bytesToUse = 0 => encrypt all
string AES::encryptCBC(string key, string plaintext){ Key *keySchedule = new Key(key); string ciphertext = ""; string iv = generateIV(); ciphertext += iv; string mostRecentBlockOfCipherText = iv; int plaintextSize = plaintext.size(); int remainder = plaintextSize % 16; int bytesRemaining; for(int i = 0; i < pl...
1
afedeb3a405cf168fd4d78025d8bae1a
56ac58f51be3cc41f763d106e7816ff4
Enable programming mode (to write new application)
void startProgramming() { ledStatus.setLevel(255); progState = PROG_STATE_CODE_ON; #if DH_DEBUG == 1 Serial.println(F("progState changed to PROG_STATE_CODE_ON")); #endif progChanging = false; progTimer.start(); }
1
5e8c29413955b4add3e6fc98579f8079
38708bb494547d26a2aedc151403199b
Returns the elapsed time in milli seconds; does not stop the timer, if started.
namespace Box2D public class Timer public float GetMilliseconds() { return timer.ElapsedMilliseconds; }
1
9d643c84f310afff61aba955268f9db2
ff802a11fc2fd91ed2605da2d0e6d6b2
Called after LayoutHelper::setNode()
function TestNode:setUp() self.nList = { empty = lgp.Node(), simple = lgp.Node("Simple", lg.T_CLASS, 4, 42), } end
0
da96fc9daa343d9f0d236200e6cbf180
3c53465d7f9b420a0618048899eea905
# Get the data if locally absent
function FlightDelayService ($http, DATA_URL, DATA_INFO, $q, $localForage) function getFlightDelayDataLocal () { if (flightDelayData) { return $q.when(flightDelayData) } else { return $localForage.getItem('flightData').then(function (data) { if (!data) { return $q.re...
1
8a191eab6b28553a7ec00ddf71123622
61fb0633a3906f749ea0f1c54eb02998
Schedule a new migration task if this one didn't finish
{ $migrations = DB::select('SELECT * FROM migrations LIMIT 1'); if (!empty($migrations)) { return; } $oldMigrationTable = DB::select("SHOW TABLES LIKE 'schema_migrations'"); if (!empty($oldMigrationTable)) { return; } DB::beginTransacti...
0
96e7c31c3fe61592ba5421b5d354cbb1
908e88699f7ccb93931c7ae9f1dc909d
An action function used to include the reCAPTCHA JavaScript file at the end of the page.
{ if (option::get('loyisa_zhmm_recaptcha_enabled') == 0) { return; } echo '<script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script> <div class="g-recaptcha" data-sitekey="' . option::get('loyisa_zhmm_recaptcha_sitekey') . '" data-theme="' . option::get('loyisa_zhmm_recaptcha_...
1
a68cf5cc3ebd5a272b4c9c172602d9e5
4fbd6c1e2434bcd13bbd2e60e70ec08f
Function to read the register and extract the status bit for human reading
byte AD5933::readStatusRegister() { return readRegister(STATUS_REG); }
0
631dbf240b84cfd9903258dc3708db21
0c723e11a7a8ae668f29c5229cf07449
Checks if the given ciphertext contains two consecutive equal blocks
def is_AES_ECB(cipher_bytes, block_size): ctr = Counter() for start in range(0, len(cipher_bytes), block_size): end = start + block_size output_block_byte = bytes(cipher_bytes[start:end]) ctr[output_block_byte] += 1 result = ctr.most_common(1)[0] return result[1] > 1
0
ee67ef34ac897310e5f098c2713d3afc
bd1702f29d1f5175ba9ec51c8c1c2e95
线程自我中断
public class SelfDefinedInterruptedException2 public static class InterruptRunner implements Runnable @Override public void run() { workThread.interrupt(); System.out.println("interrupt worker success"); }
0
de88cd0876b75dea55546f043a18b772
378f7fc98cbca0b9340fa64f022385be
Deletes an ``AssessmentTaken``.
class AssessmentTakenReceiver(osid_receivers.OsidReceiver): def deleted_assessmenst_taken(self, notification_id, assessment_taken_ids): pass
0
c33f58ef6659e3754d50d5097fd00b23
b4404bed53c95fc1a1ec9914f528ba2a
For a given directory containing a TOC and a data/ directory as, for example, created by joern-demux, create an embedding in libsvm format and save it as "embedding.libsvm" in the directory.
output_file = default_values['run-tag'] t = 'embeddings/' + output_file + '.emb' print('File: {}'.format(t)) learn_embeddings(t, walks, write_walks=default_values['write_walks'], dimensions=int(default_values['n_dimensions']), window_size=int(default_values['win...
0
569260fc710fd50a439ee59362cf31e8
0c7469c8fa1d76297dfeb28fc21c35d6
Permet de notifier le métronome engine que le slider a été modifié
bool OgreRTCApplication::SliderChangedHandler(const CEGUI::EventArgs &event) { const CEGUI::WindowEventArgs* evt = static_cast<const CEGUI::WindowEventArgs*>(&event); SetCallScript(evt->window->getName().c_str(), "SliderChanged"); return true; }
1
f492e9d7a0506dada97611962c2b6523
09473bc30d53c6b3e115a06f600c3b94
Делает первую букву строки заглавной (для кириллицы)
{ $firstChar = mb_strtoupper(mb_substr($string, 0, 1, 'utf-8'), 'utf-8'); return $firstChar . mb_substr($string, 1, mb_strlen($string, 'utf-8'), 'utf-8'); }
1
35ffead71c2ad7e7d700ddec1aba620e
eced87bd9c2c86e84ee005d2e3857885
Registers a single instance that will be returned when an instance of type <typeparamref name="TService"/> is requested. This <paramref name="instance"/> must be thread-safe when working in a multi-threaded environment.
namespace Silent.Tetris.Contracts void Register<TService>(object serviceInstance) where TService : class;
1
991e5eaad329a71d949961303ef1e4d3
cbd78578ed3f3c95b39e9835973418cf
Carrega o DropDownList com os Usuários que possuem o Perfil Selecionado
{ CandidaturaDBEntities1 db = new CandidaturaDBEntities1(); IEnumerable<SelectListItem> generos = db.Generoes.OrderBy(dp => dp.Nome).Select(c => new SelectListItem { Value = c.ID.ToString(), Text = c.Nome, Selected = c.ID == Dad...
0
2d3253e632da97fbf4f1a3124f6f00da
74293b5297840b73ce039964f69bc9fc
Returns the first paragraph of a string passed
para = re.split(r"\n[ \t]+\n", text.lstrip(), 1)[0] if join_lines: lines = [line.strip() for line in para.splitlines(0)] para = ' '.join(lines) return para
1
794d5d7e8b69c89671a11eb0350d4bc1
b5c3745afbfba4c3198ec3d71b33eca1
Allocate a texture with a 'Nearest' filter and RGBA8U/data
GLuint PerfCheckerTexture(GLsizei width, GLsizei height) { const GLenum filter = GL_NEAREST; GLubyte *img = (GLubyte *) malloc(width * height * 4); GLint i, j, k; GLuint obj; k = 0; for (i = 0; i < height; i++) { for (j = 0; j < width; j++) { GLubyte color; if (((i / 8) ^ (j / ...
1
18a8373f8f90e232cb5104c875fbc0ed
51a5f0c0970f91e8a67e5cad07ed3aee
Autorise une requête de tâche périodique
{ if ( time() - self::$data['file'][$task]['last'] < $wait ) { return false; } if ( !isset(self::$data['file'][$task]['options']) ) { return true; } $options =& self::$data['file'][$task]['options']; if ( isset($options['frequency']) ) { ...
1
f5cf70e04d5c15063ec56220ef606043
9fb565f3baaf787b347730b860d44188
验证店铺的最大接单量
purchaseMaxCount(data) { return get('/api/frontend/joint_purchase/super/branch/demand/calculate_max_purchase_num', { data }) }
1
5e94bc307dd0234d410d3cfc59a87d53
1849428c99b91b9ae8188931e346c9aa
获取videos属性的值。
public class ChannelImpl implements Channel @Override public List<Video> getVideos() { if (videos == null) { videos = new ArrayList<Video>(); if (sniPage != null) { pageProperties = sniPage.getProperties(); if (pageProperties != null && pageProperties.containsKey(SNI_VIDEOS)) { String[] sniV...
1
77104d77ccac111a4db9b9c678c8896b
68c2ced77b69a3ca7c240b354b4859b5
Indents every nonempty line of the given code.
function formatCode(code: string) { let lines = code.split('\n'); const indent = lines.reduce((idt, currLine) => { if (currLine) { const currIndent = (currLine.match(/^[\s]+/) || [''])[0].length; idt = idt === -1 ? currIndent : Math.min(idt, currIndent); } return idt; }, -1); if (indent ...
0
b87868ce1b15392cd76d3df89e35f606
6c0d1c30f1fa87d84fadb4e4fa608b04
方式1:数组方式
public class Main public static int[] twoSum1(int[] nums, int target) { for (int i = 0; i < nums.length; i++) { for (int j = i+1; j < nums.length; j++) { if(nums[j] == target-nums[i]){ return new int[] {i,j}; } } } throw...
1
46f32614e4f5e69a84c04c97840fbf16
505703f80a08c389a26a42b046ed1002
Tags with just one string-owning child get the child as a 'string' property, so that soup.tag.string is shorthand for soup.tag.contents[0]
class TestUnwrap(unittest.TestCase): def test_unwrap_single(self): unwrapped = self.soup.header.unwrap() self.assertEqual(str(unwrapped),"<header></header>")
0
b9963baa006c59190a1368dd0aa067a6
fe992a03dac0bbfb72c072e6638fc518
车牌主动付-生成订单redis缓存数据
class Wxapp extends Model public static function SetOrder ($ordercode, $arr) { $userid=Access::IfKeyExists($arr, 'userid'); $goodid=Access::IfKeyExists($arr, 'goodid'); $flag=Access::IfKeyExists($arr, 'flag'); $imuserid=Access::IfKeyExists($arr, 'imuserid'); $out_trade_no=Access:...
1
adb0c7d9e245bb5c6b21a408b2a92799
66290a6768bd4252da4dfe35cdc723a2
查看论坛的帖子详情
public String index2(Long id,HttpServletRequest request) { String pageNumStr = request.getParameter("pageNum"); String pageSizeStr = request.getParameter("pageSize"); String postPageNumStr = request.getParameter("postPageNum"); String postPageSizeStr = request.getParameter("postPageS...
1
608bd98db832ab2b31d0b36c10970526
7f61448ad6da3ef0f9cb03f40c5be655
https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=MagicNumbers
cases like (1)
0
3b250a80caf055f3f196e780c82d761b
783e1607335d9ba1af901179ef3b01f1
判断数字是否为大,大返回真,小返回假
$big=floatval($big); $small=floatval($small); $e = $precision; $ibig = intval($big * $e); $ismall = intval($small * $e); return ($ibig > $ismall); }
1
48d409c069637da63fae3e0e7353ddb3
4545bdfd2db01ab5e8de4d44af76ed5a
Clear the alarm/warning LEDs on base unit and stop siren.
def alarm_off(): RED.ChangeDutyCycle(0) GREEN.ChangeDutyCycle(0) BLUE.ChangeDutyCycle(0)
1
2dc15de4fcf4f42cc537243c6e8a591e
efddfdd231a99fd5bec3a5659fc1923e
This function invokes the Mail Erase command.
{ MM_Element.Empty(); insmm dlg; dlg.DoModal(); if (MM_Element.IsEmpty()) return; ReplaceSelection(&m_buffer, &m_mailtext, MM_Element); m_mailtext.SetFocus(); }
0
a6a58c8e4860bd43a57814e4d5cb788a
8a323813d80a9bd3820cbc7cf84b1b06
Generates the initial values for the Exploder
{ this->generateRandomVel(); this->generateRandomPos(); this->generateRandomRotation(); this->generateRandomEnemy(); for (auto & animstruct : m_explodeAnimations) { animstruct.active = false; animstruct.animator.stopAnimation(); this->generateAnimStructVals(animstruct); } m_sixthHealth = false; m_thirdHe...
1
b4123c7bbbb79322fc96020c10263f88
53c277ee1797c067367e2484474bea8a
重置 `FieldArray` 为初始值,初始值通过 `initialize` 设置;如果初始值不存在就使用默认值
export default class Formly reset () { _.extend(true, this, this.originalData) }
0
cea5b4de91ad371a711d343ed570bf4a
ad26565b66d6c229d7ceb6648d82b94a
根据挂号ID 修改对应数据CaseState属性 1-暂存 2-已提交 3-诊毕
public int updateState(long doctorId);
0
6a9ce7671d6b80791c618dc3221ab6e9
fa0ce3e5a31f3f27af6f4073c77a36af
#returns all the financial records a scout is tied to given scoutID
global $conn; $arr = array(); $sql = "select * from finances where FID in (select FID from scoutspayduesfinances JOIN scouts ON scouts.sid = scoutspayduesfinances.sid where scoutspayduesfinances.sid = ". $sid ." AND sid IN (SELECT sid FROM scoutsintroop WHERE tid = " . $_SESSION['tid'] . "));"; $result = $conn->que...
1
de6e4d72f99f1dec45358a60ff260dc4
8227d7af3bd3ca0753c93c16078e8bd5
Parses an XML file and transforms each element into the correct dictionary format. Writes the transformed elements into a list which is then written to a JSON file.
def xml_parser(root_main, terminologies_left, relation_types, semantic_uri): data = [] members = root_main.findall('./') for member in members: if(list(member.attrib.values())[0]).casefold() == 'http://vocab.nerc.ac.uk/collection/L05/current/'.casefold()\ or (list(member.attrib.value...
1
f2e228fb997eef1801eaf34b259b9b03
c18f053aafd3d32eb1ae9c7fd8eeb4dd
Resample using systematic resampling which is faster than multinomial sampling
def resample_systematic(w): N = len(w) ind = np.zeros(N) N = float(N) Q = np.cumsum(w) T = np.linspace(0,1-1/N,N) + np.random.rand()/N i = 0 j = 0 while i < N: if T[i] < Q[j]: ind[i]=j i=i+1 else: j=j+1 return ind
1
ce595992873f3e960d7d42b43d77dcf1
9a94e8404b53a5131b1756bdb4c35e5c
Gera a coleção do postman das rotas processadas na documentação.
class Postman extends BaseDocBuilder function build(array $annotate_route): string { foreach ($annotate_route as $route) { $name = $route->getName(); if (empty($name)) { $name = current($route->getGroups()); } if (empty($name)) { ...
1
bfe7af2ba3aac13d0a99128fa1851b4a
389538cf6fc1ec434124a3d5332b7fe7
Returns Account Ownership Type. The ownership type of the bank account performing the transfer. The type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`.
class ShareInviteMonetaryAccountResponse extends BunqModel public function getShareType() { return $this->shareType; }
0
4475001cdd91e9b236c28900099bc143
2d4dac753bc546e85333df98c068c476
Create generator for lines
def lines(file): for line in file: yield line yield '\n'
1
81e6a94425a2bfe7d273390b4549198a
5a0bbd90051e7f88b724a37c40d6c61c
Used as a possible factory for known RI types Returns
ietype = (orb(s[0]) * 256) + orb(s[1]) if ietype & 0x8000: return IE_EnterpriseSpecific(s) cls = ietypecls.get(ietype, Raw) if cls is Raw: cls = IE_NotImplemented return cls(s)
1