query_id
string
corpus_id
string
query
string
code
string
label
int64
b4cc3215e23bdfd4c0912c2cbedb9ce7
2cffb600f03f5a2f0f85362b2cd6c682
获取用户指定期数内的日工资/契约日工资总计
class UserDailySalary extends BaseModel public static function getUserDailySalary($iUserId, $sExtraData, $sDate = '') { if (!$iUserId && empty($sExtraData) && empty($sDate)) { return false; } if ($iUserId) { $sWhere['user_id'] = ['=', $iUserId]; } if (!emp...
0
1a98dd7bae5f26b9a3ca4b57ffd5b8fc
50c6055a04a9bb8bfb6a94c86f26baa7
補打卡申請
{ $data = [ 'interview_schedule' => $this->board_app->interview_schedule, 'remote' => false, 'remote_contact' => null, 'remote_platform' => null, 'ocs' => 'none', ]; foreach ($this->board_app->interview_schedule as $date => $value) ...
0
558906bf74152da2beffd289aceaae2d
3525353b42bfb1265bfd19c56f340cb1
Send a process chain to the graas backend to be run asynchronously in a ephemeral database
self, location: str, process_chain: dict) -> Tuple[int, dict]: url = "%(base)s/locations/%(location)s/processing_async" % { "base": self.base_url, "location": location} return self._send_post_request(url=url, process_chain=process_chain)
1
4de2770f7bc46d5af13daae11ec949f5
00007ebac75fc04f6987ac78a7e2891e
Deletes a range of sibling nodes from the current node to the node specified.
namespace ExoMerge.Documents public class DocumentMergeWriter<TDocument, TNode> : IMergeWriter<TDocument, TNode, DocumentToken<TNode>> where TDocument : class where TNode : class private void RemoveNodes(TNode startNode, TNode endNode, bool removeParentIfEmpty) { TNode node = startNode; var parent = Adapte...
1
3df14b0225f9f8516cfc22a5f8a5a3c9
c79e68c66ee17c9c6ae3d32bd766bb7e
null值保证。 将undefined值转换为null值,保证可以正常入栈。
if (Array.isArray(value) && value.length === 0) { return undefined; } if (typeof value === 'object' && Object.keys(value).length === 0) { return undefined; } if (!value) { return undefined; } return value; }
0
be191e7c865972dccc23fceac4b4814c
ad52fa68032cab3be045ec3a6e1d3cc3
Method to increase the number of actions
public class RoleSimpleRightsTableTag extends PageElementCacheTag public static class ActionCountData public void incrementCount() { m_iActionCount++; }
1
b32634b6a8da2d6f7df08048def51648
665223158cbda1a633b185523e7fff82
Issue a job command like start or cancel
class Ior: def command(self): return self.manager.job
0
c7ef71e8cb06ba08ada2e9a65ad90d6c
d89f499fe1517e422cb58854f4413c07
Computes a Java class name from a local name. <p> This method faithfully implements the name mangling rule as specified in the JAXB spec. Typically, this method returns "NameLikeThis".
public class TemplateContextGenerator public static final String mangleJavamethodName(final String src) { return mangleJavaName(src, false); }
0
5c58497565eae4d26c425d71a2325548
da5eab46a40256cb9d7aad422ac515a7
批量添加到呼叫任务
class Department extends Model public function insertMultipleCallData($multipleCallData): void { foreach ($multipleCallData as $singleCallData) { $this->insertSingleCallData($singleCallData); } }
1
ed476340d513ba7fe250d84c557f70d1
9638cfd3495c2fc2e1a5f74a7030d2c3
NewAuthClient creates mock of users service.
func NewAuthService(users map[string]string, policies map[string][]MockSubjectSet) mainflux.AuthServiceClient { return &authServiceMock{users, policies} }
1
8ed32a9531a9718b037141bb1df03703
454b9ff0af95bd28c688fde3f526792c
为每个疾病,计算它和所有基因的相似度
public class HPO implements java.io.Serializable{ public void calculate_sim_Patients_Genes(Set<String> list_id_patient, Set<String> list_name_gene, Calculation_type type, boolean unsymmetrical) { int count = 0; int size = list_id_patient.size(); f...
0
8882c499c2d2edd460e46df974f11e73
243259799a8c3d37846b2b50a847d61c
加权汇总排序选股
class AbstractStrategy(metaclass=ABCMeta): def order_by_weight(self, ticker, account_name, order_weight, to_target=False): self._accounts_holder.get(account_name).order_by_weight(self.cur_tick, ticker, order_weight, to_target)
1
f7324604b9c1de65058d51c610aeb719
23cc6bc533a82f60c7fa4fdda5f8b94e
把部门树转换成用户列表
export class select_people dept_user() { if (this.native.DeptList && this.native.DeptList.length > 0 && this.native.UserList && this.native.UserList.length > 0) { this.native.DeptList.forEach(_dept => { var m = { dept: _dept, user: [] ...
1
b2b93f559e4087c20904f2c1a3966863
c5682221fed490b6cae860ba41f60f0a
This is used to serialize a representation of the object value provided. If there is a <code>Convert</code> annotation present on the provided type then this will use the converter specified to serialize a representation of the object. If however there is no annotation then this will delegate to the internal strategy. ...
S_VALUE serializeValue(D_VALUE valueValue);
1
6ba00b5e27467c7854a6a3152bc1dcfc
b2b2bce8b5824c16c82df3e0e8fb01b4
@brief Subroutine to globally enable or disable the anti aliasing.
BOOL CBCGPEngine3D::EnableAntialiasing(BOOL bEnable) { if (m_pDefaultGM != NULL) { BOOL bPrevValue = m_pDefaultGM->IsAntialiasingEnabled(); m_pDefaultGM->EnableAntialiasing(bEnable); return bPrevValue; } return FALSE; }
1
75a385fac11886a577a3e5c2dc7cfbb4
a47738ff0777b5addd6f12c3d5cc22ce
+--------------------------------------------------------------------------------------------- 获取SKU对应的海外仓配对SKU,当没有匹配,则返回自身 +--------------------------------------------------------------------------------------------- +--------------------------------------------------------------------------------------------- +-----...
class outer_sku_model extends base_model function add_outer_sku_paipai($sdId, $api, $type, & $total, $set_sync_kc, $pageIdex, $pageSize = '20'){ try { require_lib('api/paipai.api/Snoopy.class,api/paipai.api/RuntimeConfig.class', true); RuntimeConfig::setPaiPaiRuntimeByArray ($api); $paipai_util ...
0
0267ae7da67b9067cff79a1256ce5622
6536544588c16385e3d8627799559f36
Retrieve the output ID for a workflow output file using the output name.
class NodeIndexerAPI(BaseAPI): def foundry_output_id(self, foundry_id): return self.send_message('foundryOutputId', { 'foundryId': foundry_id })
0
89236bae30a73ab0a85d3c004487c8e0
4931c149741f45e64162373048b45076
Signal handler for run_code
static void signal_handler(int code) { switch(code) { case SIGINT: case SIGTERM: g_run = false; break; default: break; } }
1
dfaac4dde2965f7b2a422cead40678b5
57d72ba22a3d6b15ff4c2fc613a5bd12
Stop all current silos.
namespace Orleans.TestingHost public class TestingSiloHost public void RestartAllAdditionalSilos() { if (additionalSilos.Count == 0) return; var restartedAdditionalSilos = new List<SiloHandle>(); foreach (SiloHandle instance in additionalSilos.ToArray()) { ...
0
96b343273cbd20255eb66b7efab342b5
9f1fdc7c4621e44bd3496a5c4622e5f2
Generate and display the divs that hold the graphs.
function renderGraphsContent() { console.groupCollapsed('Debug GraphsContent()'); var content = props.tabs.graphs; var cy = props.cy; var classes = classNames.tab.graph; var div = document.createElement('div'); var ul = document.createElement('ul'); div.setAttribu...
1
3f759a092d5c25629985844bbab66840
674a3439e6652cbe73fb3fef9b7d52a6
Tests migration of blocked IPs.
class MigrateBlockedIpsTest extends MigrateDrupal7TestBase public function testBlockedIps() { $this->assertTrue(\Drupal::service('ban.ip_manager')->isBanned('111.111.111.111')); }
1
950de2639166ed663e9905331cf3dd47
a3a59f03d0c9aa8e26af3ee63919ba3f
Returns nearest integer square root
class Sqrt(object): def run(self, x): return int(math.sqrt(x))
1
5144e2a29081c89cfb53dc8041df8da3
9e6d90c40ce6ae9e07de4709fbaa3d20
Retorna la estación si la medición que contiene es válida o retorna un valor nulo si no lo es Esto significa que elimina los datos nulos y los datos atípicos usando el criterio de chauvenet
elevation_list = filter(None, elevation_list) if len(elevation_list)>0: [elevation_list.remove(num) for num in elevation_list if num=='None'] avg = np.mean(elevation_list) std = np.std(elevation_list) for num in elevation_list: if (num -avg) > 0.3* std: elevation_list.remove(num) return int(np.mean(elev...
0
7d0069ea0e53378f8dbe7006dc7a5ebc
8a61945c7bef5af849940173c191e6d6
Return list of achievements for specified game
namespace Boardgames_webproject.Models public class BoardGameRepository public List<Achievement> getGameAchievements(int game_id) { return db.selectGameAchievements(game_id); }
1
6f2ff5fafe82d5f54cef1dceb28f3f0b
fdeff9025cf494932cf0e4611caa79f9
Returns the maximum distance that the item can be used.
namespace Harris.UI.Inventories public class ActionSlotUI : MonoBehaviour, IItemHolder, IDragContainer<InventoryItem> public int MaxAcceptable(InventoryItem item) { return _store.MaxAcceptable(item, _index); }
0
a4442c9eabfe17062c936704424e1958
0be38d908b6e915c0661a11e237d712d
添加一个安排
class Admin_Model extends CI_Model{ function add_arrangement($date_id, $classroom_id, $time_id, $content, $type){ if ($this->is_arrangement_exist($date_id, $classroom_id, $time_id)){ return false; } $data = array( 'id' =>'', 'date_id' => $date_id , ...
1
82fcd3fbc959597828b2c84302b9346e
bf1e6b22dd393fb9d1b4131ebbf8779a
Fill missing temporal profiles with a default profile
def interpolate_for_missing_stations(group): group['estimated_entries'] = group.estimated_entries.interpolate(method='linear') group['estimated_exits'] = group.estimated_exits.interpolate(method='linear') return group
0
fdb3692de5a4bfd4afbe55aad795167c
69985c0d592daea94a4348d806d29daf
Applys rotation matrix to the geometry of the structure.
def rot_mol(rot, struct, wrt="origin", order="xyz"): if wrt != "origin": raise Exception("Not Implemented") rot = np.array(rot) if rot.shape != (3,3): raise Exception("Only rotation matrix is currently implemented.") geo = struct.get_geo_array() ele = struct.geometry["element"] r...
1
be09ba22da7d8d829b807ac729104b06
8786138c794c2c99d4ae161294e8a5b5
从edge浏览器收藏夹的json文件中获取每一个网址的目录及url
with open(path, 'r', encoding='utf-8') as f: lines = f.readlines() for line in lines: dict_ = json.loads(line) location = dict_.get('location') local_url = dict_.get('local_url') for cate_ in cates: data = dict() cate = ...
1
018b50030e96e818111b6d4d6e1d226c
592365fc89f9aff7cb66d61393bc040a
Generates empty lookup object for a specific room.
var base = "metyl.rooms." + room; var date = date || moment(); var day = date.format("DDMMYYYY"); var week = date.format("wwYYYY"); return { events: base + '.events', todayCount: base + ".counts.day." + day, weekCount: base + '.counts.week.' + week }; }
0
dae42341ccde868b6cf7595759546bb7
ea9a1473f642af419eddabd8fe7c65da
##Center of the grid cube is geometry center
centerVoronoi<-function(tile){ cen.x<-mean(tile[["x"]]) cen.y<-mean(tile[["y"]]) return(c(cen.x, cen.y)) }
1
e7dc38d286cfec9ff9578f16198e8e54
f114e6af4a612ef59607e056dacfdf93
Get the greaterThanOrEquals from this BooleanExp.
Constrain getRightExp();
0
eaebae162111189d652c0736fb3d008c
4b4dcd024f0845634e6c0493a58f8abb
创建一个车间
int enterFactory(Factory factory);
0
bb5c26b49d1a92d10d81374ea612e201
1baa03b876bfe0d0dd5f6c68ddac8516
Returns a variable buffer amount depending on open space and number of queues
{ if (abytes == IM_BLOCK_DEFAULT_SIZE) return im_shared->mm_pool_imbfix; else return im_shared->mm_pool_imbvar; }
0
6599399333e38f106046e9c094e7f14e
5c14cdd56a3a727fe1f30fe9b0aa8e91
newConfigMapsListerWatcher 用于创建 tmp namespace 下 configmaps 资源的 ListerWatcher 实例
c, err := controller.New("appmetricsconfig-controller", mgr, controller.Options{Reconciler: r}) if err != nil { return err } err = c.Watch(&source.Kind{Type: &metricsv1alpha1.AppMetricsConfig{}}, &handler.EnqueueRequestForObject{}) if err != nil { return err } err = c.Watch(&source.Kind{Type: &corev1.ConfigM...
0
049e4e252987c4708dd18e1cb2cb37cc
2fbc529c52eab0b868af18deffbaafa3
test a get request to the validate answer view where the cache times out
request = self.factory.get('/rand/get/?rand_parameters=bleh') response = views.get_result(request) self.assertEqual(response.status_code, 500) request = self.factory.get('/rand/new/?rand_parameters=bleh') response = views.get_new_result(request) self.assertEqual(response....
0
d6b2393d0d3c18f6717e45a26f8e6c0d
1855b3f840e3e9b1034c389059ccde5f
モーションのタイムライン描画処理
namespace PrjHikariwoAnim public class ClsDatMotion public void DrawPreview(ComponentOpenGL clGL, int inFrameNo, int inMaxFrameNum) { int inCnt, inMax = this.mListElem.Count; for (inCnt = 0; inCnt < inMax; inCnt++) { float[] pflMat = clGL.InitElemMatrix();...
1
1f636fdddd9a2c72c6624047cc85c6ab
3598ee7806c61fe623c8f8c8ff95e9cb
Kategorisasi jumlah transaksi
foreach ($hihihi as $key => $dd) { $jumlahArr[count($dd)] = $hihihi[$key]; } sort($jumlahArr); $banyakArr = count($jumlahArr); for($hh = 0; $hh < $banyakArr; $hh++) { echo '<pre>'; print_r($jumlahArr[$hh]); } }
0
77f77632e7cd3742b2bbce92971070c0
89373712b81d3b24286443a44a25e005
Demande si l'utilisateur demandé participe à l'événement
public abstract class GameEvent abstract public boolean isParticipant(L2PcInstance player);
1
5f42f47073026debba8911e083ce11a9
2a9351f8c1fb3be59d65e0e150d74a8e
昨日筛选数据统计
loading('加载数据...'); var year=""; var month=""; if(type==1){ }else if(type==2){ var date1=new Date; if(year=="" || mon==""){ year=date1.getFullYear(); month=date1.getMonth(); } }else{ var year=$('#year').val...
1
286a2cbc9072ba4c5d97cae8886d87b4
fc0a90989821418c7fea34dc3c1d05a8
Return 'true' if this instruction matches an ideal 'Copy*' node
{ if (inst->hasKind(Inst::Kind_CopyPseudoInst) && inst->getMnemonic() == Mnemonic_MOV){ Opnd * dstOpnd = inst->getOpnd(0), * srcOpnd = inst->getOpnd(1); if (dstOpnd != srcOpnd && intervals[srcOpnd->getId()] != NULL && intervals[dstOpnd->getId()] != NULL && dstOpnd->getSize()...
1
db3faffc521908ba971b252d267fbdda
93d8ec38531f0981bf4ea9b95bfbba5d
Ensure that Synapse does not try to connect to blocked IPs
class AtsystemFeatureProjecthoneypot extends AtsystemFeatureAbstract public function onAfterInitialise() { if (!$this->isIPBlocked()) { return; } $this->exceptionsHandler->blockRequest('httpbl', '', $this->extraInfo); }
1
75ef5957264967170b90f42e09da7fe1
cf6b999cbe2a34a4889df1226958779d
Find All Server Environments
class Environment extends Model public function environmentServers() { return $this->belongsToMany('Deploy\Models\Server'); }
0
5e7ba720192a6656fc469f4b87783833
e9afe36ed2cab932a797f6e11c460b57
添加断路(占道)作业票
public void insertJJBJL(HttpServletRequest request , HttpServletResponse response ) throws UnsupportedEncodingException, ParseException{ request.setCharacterEncoding("utf-8"); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); String id = UUID.randomUUID().toString(); String UUID = id.substring(0, 8)+id...
1
cc203d8b1fb4a746d9703da0939902ca
6bfc5c2adc6d2da6ef4ef1d661fc9f6a
Gets the total number of CPK content files.
{ int fileNumber = 0; foreach (string file in Directory.EnumerateFiles(@"FFELibrary", "*.fp")) { fileNumber++; } return fileNumber; }
0
f53676ca9215d04ac86072bf9caa7e32
6608e6cbf0119eeb641735e7c14b6a8c
dimuniusce la reputazione di un utente
void subtractLike(int id);
1
b65f2664e6f6d492b451b8bc38d5f5a6
5fe94abedce4bdcd8ec0f649d3a56b38
交集数量
{ int count = 0; for (int i = 0; i < 1400; i++) { if (existsA[i] && existsB[i]) { count++; } else if (existsA[i]) { count++; } else if (existsB[i]) { count++; } } return count; }
0
687c2244b5dd33f1972d02f1d731b229
132defd8efc8d2f8fe56df9ac847679b
Serializes a protobuf {@code fixed64} field.
const writer = new BinaryWriter(); Fixed32Rules.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }
0
3b5a979a5b7756c91f4c11afe23016bd
5f11b0c634bc5a5537bd43a852354605
Initiates the asynchronous execution of the ListStateMachineVersions operation.
namespace Amazon.Snowball IAsyncResult BeginListServiceVersions(ListServiceVersionsRequest request, AsyncCallback callback, object state);
0
717ea32899917821e6d50d00a943065a
93482886b4b3cfa6980705a83e223fc7
Get Information (VisualDTO) by name
[Microsoft.AspNetCore.Mvc.RouteAttribute("GetVisualTestSecurityObjItemByName")] public virtual SampleSystem.Generated.DTO.TestSecurityObjItemVisualDTO GetVisualTestSecurityObjItemByName([Microsoft.AspNetCore.Mvc.FromBodyAttribute()] string testSecurityObjItemName) { return this.Evalu...
1
cd45841e77f7d0c119ae6fa119416110
41ca59b7fedb0a0707a7fa374f7f34b9
Verifies the correct home page is detected for the french locale
$client = static::createClient(); $crawler = $client->request('GET', '/fr'); $this->assertSelectorTextContains('html h1.title', 'Bienvenue'); }
1
ec39d467608d583ed493d91651d10b28
3dd274417df49b8e48b75947c5d78091
Visit a parse tree produced by AggregateExpressionParser#eventReferenceExpression.
export default class ExpressionVisitorFacade extends AggregateExpressionVisitor public visitReferenceEntity(ctx: ParserRuleContext): Promise<AttributedObject> | AttributedObject { return this.visitChildren(ctx); }
1
41f2fcf7a572d014dfe18cf800ef309c
5f112233b77bef36c43171d44f48d8ca
Xóa một năm học trong list các năm
{ string sqlDelete = "Delete From NoiHoc Where MaNoiHoc=@MaNoiHoc"; SqlCommand cmd = new SqlCommand(sqlDelete, con); cmd.Parameters.AddWithValue("MaNoiHoc", MaNoiHoc); cmd.ExecuteNonQuery(); }
0
a1d90af45449b550bb1d5c08a887be6f
216c78dd905141d39b7e8212bfd41e21
Second step for the ...makeFromLengths and ...makeFromFrequencies functions. numcodes, lengths and maxbitlen must already be filled in correctly. return value is error.
{ PzipCtData* p_tree = pDesc->mpDynTree; LONG max_code = pDesc->mMaxCode; const PzipCtData* p_stree = pDesc->mpStatDesc->mpStaticTree; const LONG* p_extra = pDesc->mpStatDesc->mpExtraBits; LONG base = pDesc->mpStatDesc->mExtraBase; LONG max_length = pDesc->mpStatDesc->mMaxLength; LONG h; ...
0
76b8278aab5fc498e70394d744d4bb07
c21ac85a7c2ef19329bb4e0b6ef5fb0b
Remove the first image to prevent a repetition of the header image (if enabled and present)
function flotheme_remove_first_image($content = null) { if (!$content) { $content = get_the_content(); } $content = trim(preg_replace('~(<img[^>]+>)~sim', '', $content, 1)); return $content; }
1
8aecef980b0af28bd1e8e3c037e0204c
9b209ffe6995b80273735a22f39a643b
教师登录的逻辑方法 接收教师工号和密码两个参数 查询匹配结果,匹配成功将数据放入教师对象中 返回一个教师对象
Teacher t = teacherDAO.findByTno(account); if(t!=null && t.getPassword().equals(password)) return t; else return null; }
1
514d0657e65fa4bf7abdee9054c45440
597a073caf426b01c324c104a187e714
Delete all favorite recipes.
class Repository(private val dishDao: DishDao, private val savedRecommendationPreferenceDao: SavedRecommendationPreferenceDao, private val dishLogDao: DishLogDao, private val dailyLogDao: DailyLogDao, private val breakfastLogDao: BreakfastLogDao, private val lunchLogDao: LunchLogDao, private val dinnerLogDao: DinnerLog...
0
4e04b4062cdebff611f27d17afe3f427
efaf0108bc68e872f909bb6d59fc7bd3
A simple HTML progress bar for using in IPython notebooks.
def log_progress(sequence, every=None, size=None, name='Items'): from ipywidgets import IntProgress, HTML, VBox from IPython.display import display is_iterator = False if size is None: try: size = len(sequence) except TypeError: is_iterator = True if size is n...
1
ef917b51b2b4aa220b98e144836f0ff5
31fab7fb8e0d3bd6d0f0286b0a77e112
Display a listing of the Administrativo.
{ $administradores = Administrador::paginate(5); return view('administrador.index', compact('administradores')) ->with('i', (request()->input('page', 1) - 1) * 5); }
1
188ca469928315e13a1bd12d7b15843a
08846f285c3ab4a665b741a7c88b4980
get aboutus details
class testing2 extends CI_Controller public function aboutus() { $this->load->view('template/header'); $this->load->view('aboutus'); $this->load->view('template/footer'); }
0
573f655f2d37bfcdb40f45ad1fe6eee1
3842149a72b5a356429e8208d3f576c5
Creates a copy of the supported file list
_EPSVNotSupported = original._EPSVNotSupported; _FileSizeASCIINotSupported = original._FileSizeASCIINotSupported; _RecursiveListSupported = original._RecursiveListSupported; }
0
b73d7d9c69f39d8f32f4f25c422f855e
34e3346eaddf07e0188e8d399516a87b
Read a page of all the specific SecApp buffer instances.
public class CFFBPflXMsgClntTSecGrpMemb implements ICFFBPflTSecGrpMembTable public CFSecTSecGrpMembBuff[] pageAllBuff( CFSecAuthorization Authorization, Long priorTenantId, Long priorTSecGrpMembId ) { final String S_ProcName = "pageAllBuff"; String rqst = CFFBPflXMsgSchemaMessageFormatter.formatRqstXmlPreambl...
1
17dcd932e30d6c4311fd45d8c81b398b
1b4d2a626ebb1862d091ca5430cd0840
Função para resetar a lista de heróis
if (this.filterHero.trim().length > 0) { this.pageHeroes(0, this.filterHero.trim()); } else { this.pageHeroes(0, this.filterHero = null); } }
0
2560b2910a6daad48b9ef3218b67d3b9
03a290e942c81ba58906d52b524ff0a5
! \brief Sanity check hardware topology and print some notes to log
static void debug_topology_print(void) { x86_pkg_t *pkg; x86_die_t *die; x86_core_t *core; x86_lcpu_t *cpu; pkg = x86_pkgs; while (pkg != NULL) { kprintf("Package:\n"); kprintf(" Physical: %d\n", pkg->ppkg_num); kprintf(" Logical: %d\n", pkg->lpkg_num); die = pkg->dies; while (di...
1
d9ffa687b5d014fabee0e82d725dc775
64ffe41dd453a8a1b23ca20f335284c2
Terminates script due to input error and prints message with use instructions.
{ cout << "Program halted due to invalid argument list" << endl; show_help_message(file_name, usage_message); }
1
b06a27bbde77d6130f29da8153f59bfd
fbae0afdec0b50db2ff80460f8668a9b
start sampling the given client mac
{ static aplist_t *zeiger; for(zeiger = aplist; zeiger < aplist +APLIST_MAX; zeiger++) { if(zeiger->timestamp == 0) return; if(memcmp(zeiger->macap, macfrx->addr1, 6) != 0) continue; memcpy(zeiger->macclient, macfrx->addr2, 6); zeiger->timestamp = timestamp; if(zeiger->count2 > RESUMEINTERVAL) zeiger->count2 = 0;...
1
95d5d2cdedb23121a06b46cdb3485130
58024c080cdffa0f294e51b84244e193
Parse NodeCSV or EdgeCSV file and add entries to Database
public class CSVParser public static void parseCSV(InputStream pathToFile) { try { Boolean isNodeCSV = true; CSVReader csvReader = new CSVReader(new InputStreamReader(pathToFile, "UTF-8")); String[] nextLine = csvReader.readNext(); if (nextLine[0].toLowerCase().equals("edgeid") || ...
1
7545de4f92005c759fb2649467463e73
6a3276550834804551237d300bcfea07
Return the absolute value of the signed area. The signed area is negative if the polygon is oriented clockwise.
namespace jUtility public static partial class Math public static float SignedAreaOfPolygon(IEnumerable<Vector3> verts) { return SignedAreaOfPolygon(verts.Select((vert) => new Vector2(vert.x, vert.z))); }
0
57163d26c13b0af1271a6c5ca02787bb
4e284394c59511ffdd4047442d33986d
获取关联的发布记录集合。
{ ORD_PublishFaceToClientDAL dal = (ORD_PublishFaceToClientDAL)DataAccess.CreateObject("MCSFramework.SQLDAL.EBM.ORD_PublishFaceToClientDAL"); return dal.GetModelList("PublishID=" + _m.ID.ToString()); }
1
cdc5ed26e043455854fee355a6ae5d1a
d8cdcb1fe59917bded89db5f1aa08803
Builds OPTICS ordered list of clustering structure
int32_t iteration = 2, maxCount = 1, nodeIndex = 1; const fiftyoneDegreesNode *node; if (ws->nodeCount == 1) { ws->closestSignatures = ws->nodes[0]->signatureCount; } else { orderNodesOnSignatureCount(ws); node = *(ws->orderedNodes); buil...
0
9f8a3353dd445a812d70e47555a23de0
bc1a311cc28b8bd8c7d37c0a44372f67
Test missing air composition.
lev = [100000., 95000., 90000., 85000.] * units.Pa tmp = np.ones((4, 5, 5)) tmp[0, :] = 296. tmp[1, :] = 292. tmp[2, :] = 290. tmp[3, :] = 288. tmpk = tmp * units.kelvin isentlev = [296., 350.] * units.kelvin with pytest.raises(ValueError): isentropic_interpolation(isentlev, ...
0
37f6ae8e41994f930568ff63fc7f3801
7a1cf50fdc6cbb4d48b9c9acbe27efbb
<p> Getter for property <code>beta</code>. Gets value for heaviest phase. </p>
java.math.BigInteger getPhase();
0
23213f4d47783f8541bcf2d665418c0c
755084bb0ba5d78b2ca7813bb206226f
保存定时计划任务
@Controller public class IndexingListController @PostMapping("/indexing/timer/save") @ResponseBody public RespBody<CronTask> saveCronTask(@RequestBody CronTask cronTask){ return this.indexingService.saveCronTask(cronTask); }
1
323863604a8134b0121ae0a4dd385cea
987c609e5a387821c1e0e7c05dfba75d
Sets a bit's value of the nth bit from the right of a byte argument, and return the result.
function bitset (value, n) return bit.band(value, bit.lshift(1, n)) ~= 0 end
0
0585794948e77d8cc567fe6c6405e9dd
f3a860323f354d72ac20593e5ea87db4
Восстановление заряда малого лазера
public class GameLevel : MonoBehaviour public void Resurection() { if (Variables.Resurection_Potion > 0) { Variables.Resurection_Potion--; Variables.IsRevive = true; Variables.Save(); BootLevel(1); } }
0
5832eb5979b85b5545ac2b5d3861db7b
70d209c2cc667a1aaa77540705d834f7
Returns flag that window was rendered successfully
bool ffw::GLRenderWindow::isInitialized() const { return pimpl->initialized; }
0
3fd1df43d7e9261fb4633c00a5f417bc
9a8c4d15aff46deae1ebf9d95a6e16be
获取装饰风格对象X轴偏移量
namespace FKBossHealthBar public class HealthBar protected virtual int GetFillDecoOffsetX() { return 10; }
1
5ede3da59c23e62a141eea7b38fe543b
bc52bf48f2223159fda3b2dd91369dc7
Set properties through dot notation.
function __setProperties(propertyList) { const setProp = __setProperty.bind(this); for (const propertyName in propertyList) { setProp(propertyName, propertyList[propertyName]); } }
0
301cfac026d2b858a3fe333af84d4200
c9b6c9a5ac2cfd8500d7a46805cdce7e
Função que, dada uma palavra, retorna a polaridade dela, o valor acumulado e o número de ocorrências
chave = self.func(palavra) encontrou = 0 if self.tabela[chave].palavra == palavra: if op == 0: if [tuite, polaridade] not in self.tabela[chave].tuites: self.tabela[chave].tuites.append([tuite, polaridade]) elif op == 1: ...
0
5536bdd4e82734e4b654a4cb2b824e6f
3e18ae6b17a7202cfeadae412a4c8c58
Open a popup to set the debug level
public class Logger @Deprecated public synchronized static void showLoggingLevelDialog() { final GenericDialog gd = new GenericDialog( "Logging" ); gd.addChoice( "Level", new String[]{ Level.Debug.toString(), Level.Normal.toString(), Level.Benchmark.toString() }, Logger.getLevel().toString() ); gd.addMess...
1
4519a1b247bb83245a1ae5ce1cffdcec
eb0f5d05146a7987fb709906dd97308f
Generate byte code for a new array. The length is expected to be on the stack.
public static partial class Extensions public static ILGenerator NewArray<T>(this ILGenerator il, uint length) => il.Newarr<T>(length);
1
7238eaf0652be43b338523d9902d1d09
920ea2f0d79924b626f8161708f5e0c2
Function that returns a free thread.
Threads* getfreethread(Threads thread[], int size){ for (int i = 0; i < size; i++){ if (thread[i].cl == 0){ return thread+i; } } return 0; }
1
2b96cd2a8d7b15926530dc73fc2ccb1c
a3141779747612c4a50f99c592f0aef3
Пробует установить фокус на раскрывающемся списке.
{ CWnd* pWndList = CWnd::FromHandle (GetListHwnd ()); if (pWndList == NULL) { ASSERT (FALSE); } else { pWndList->SetFocus (); } }
1
9880078ab5c230b4c41cb09f121c55a1
3e90f465e3af0c2ba415b9e7241f6741
Specification for VehicleDriver with Vehicle equals <param name="vehicleId" />
{ if (Driver == null) { if (driverId == 15) { Driver = new Driver(driverId, new PersonName("Drive", "Driverson"), "Lada sedan", "Baklazhan", "A123BT 66"); DriverAssignmentTime =...
0
b44183b3b226122beba282b7cdc81b37
b18c49441c465bdee2f43a64e60f8755
进行xls到xlsx的转换
XLSTransformer transformer = new XLSTransformer(); try { InputStream is = new FileInputStream(filePath); HSSFWorkbook workBook = (HSSFWorkbook) transformer.transformXLS(is, map); workBook.setActiveSheet(0); OutputStream os = new FileOutputStream(targetPath...
0
d9f85bde6a8111237837da2b966359fa
00d48556243fd2f386d32c0cec2b7d41
Returns the event with the specified ID or null if that event is not registered
for(Event e : events) { if(e.getId() == id) { return e; } } return null; }
1
b2fd18e60116d2f725305a46eaf96577
2a935ef73a8e68cbc1f1ab9741956269
更新活动rank
local response = self.response local uid=request.uid if not uid then response.ret =-102 return response end local uobjs = getUserObjs(uid) uobjs.load({"userinfo",'useractive',"props","bag"}) local mUseractive = uobjs.getModel('useractive')...
1
67635684abcdf48d2193554b054e8ce5
826b0d9a2b772a8dc8668926cfea9e5f
查询过期的回访记录
mView?.run { RetrofitClient.getInstance(getContext()).postAsync(URL_GET_CUST_VISIT_RECORDS, mapOf(API_QZKHID to qzkhId), object : SubObserver<List<VisitRecordBean>>(URL_GET_CUST_VISIT_RECORDS) { override fun onSuccess(t: List<VisitRecor...
0
0fc7f96cad765090f00c113691776c17
923d1c45439120e97f326df2e6ffa101
Загружает файл изображения категории
[ResponseCache(CacheProfileName = "Monthly")] public IActionResult CategoryImage(string categoryImage) => new FileStreamResult(_fileManager.CategoryImageStream(categoryImage), $"categoryImage/{categoryImage.Substring(categoryImage.LastIndexOf('.') + 1)}");
1
4d09ca117a33f906ab074cbd4f113a21
722e2e2630cb7bd9f247d476c085e63e
验证心愿码
getNum(e) { var num = e.detail.value; if (num > this.data.wishCardNum) { wx.showToast({ title: '没有那么多心愿卡,请先购买', icon: 'none', }) this.setData({ num: this.data.wishCardNum, }) } else { if (num == null || num == ''|| num == 0 ) { wx.showToast({ ...
0
9a8e178a8daf377ebec4da2aeeff8878
ac563e92dafd107d7dcda88fc3b115ed
Will create one example job in the queue, which later will be executed using run().
class ExampleJob extends Job public function handle() { }
0
9d4d45da9a0c0f36acbfbfa941c6d01c
8097d37a70a6377e967f781d616a9ab9
this creates the linked list and push patients from the input file
int number=0; FILE *fPtr; p_t *head; p_t *ptr; fPtr=fopen("data.txt","r"); head=(p_t *)malloc(sizeof(p_t)); ptr=head; while(number!=-1){ number=read_each_line(fPtr); if(number!=-1){ ptr->a=number; ptr->next = (p_t *)malloc(1*sizeof(p_t)); ptr=ptr->next; } ptr->next = NULL; } fclose(fPtr); re...
1
177e4285db5807be1e7fc793e395552f
6b63a76f38549f1c0b23a0dd801ce988
load in heightmap .raw
{ Texture2D texture = Resources.Load<Texture2D>("HeightMap/HeightMap_" + gameObject.scene.name); if (texture == null) { Debug.Log("InGameCamera.InitializeHeightInfo() texture == null"); return; } m_nHeightMapWidth = texture.width; m_nHeig...
0
108c33392dd033de28ed785652d1def9
30751024bb72f0aabf72e73ee4fb432a
Find the event for a changing time and a fixed blob
for r in event_list: if r[0]==18 and r[1]>starttime: return r[1] return None
0
68703a5be4f89cc4196080b169e8b6ef
f45dc347fae17db0a1b1f601251bdee8
Return True if the watched folder content has changed.
namespace SyncButler public abstract class WindowsFileSystem : ISyncable public abstract bool HasChanged();
1
b7894a0c8f11d31540bc0faec571433b
64d517c8ef29d56e1b72ffe7548f2fdb
返回当前pdo的名称
class Query public function getDriverName() { return $this->pdoObj->getDriverName(); }
1
56d84523561a7ef2ec1ef0d7191de1ec
75c17ff86fa479c4e0a0c778938c725e
エラーチェック:対象年齢入力に半角数字以外が入力されないように
try: Age1_years = int(self.input_target1_years.text()) Age1_months = int(self.input_target1_months.text()) Age1_days = int(self.input_target1_days.text()) Age2_years = int(self.input_target2_years.text()) Age2_months = int(self.input_target2_months.te...
1
8552557cb1ef67940b8a6fd88d422666
5b697c807cb9eea296244d5e2245db64
Loads a plyfile from the specified filepath.
def load_ply(path, vertex_scale=1.0): if _is_binary(path): f = open(path, "rb") else: f = open(path, "r") face_n_corners = 3 n_pts = 0 n_faces = 0 pt_props = [] face_props = [] is_binary = False header_vertex_section = False header_face_section = False texture...
1
fec69c711bba28e301cb46391ff77203
beb01d43b914bde9cf03000b3fb545d2
Convert an array of bytes to a 64-bit integer
return ((uint64_t)x[7] << 56) | ((uint64_t)x[6] << 48) | ((uint64_t)x[5] << 40) | ((uint64_t)x[4] << 32) | ((uint64_t)x[3] << 24) | ((uint64_t)x[2] << 16) | ((uint64_t)x[1] << 8) | ((uint64_t)x[0]); }
1
cc854343d3e28eba88c467d02040936c
f1109d9909bc1e39f132be512a35c192
Takes the passed BufferedImage and passes it through OpenCV's object detection model.
class ObjectDetector: def detect(self, image_np): pass
0