query_id
string
corpus_id
string
query
string
code
string
label
int64
2fbf35fca305a0439374ce11d04c781b
935a2cf47a171ed35786a0b064750411
获取ais数据原始报文,数据源:洋山
def ias(msg): d = util.hex2bin(data(msg)) ias = util.bin2int(d[13:23]) return ias
0
72b93f65f9d221e855adb29249d90f97
973ae41fdb08e72b45d3ba7b5aa45612
Will run after all the tests have finished </summary>
namespace aoc2020 [TestClass] public class day_01_01 [TestCleanup] public void TearDown() { Console.WriteLine("Runs after each test. (Optional)"); }
0
44c58e69054b4835f92fc1e142949ba4
fa19c7c2624a5e75124e7d7e76a78fe4
Returns the loaders for a given stage.
Loader loader = loaders.get(name); assert loader != null; return loader; }
0
6f9e590f0d9cee748f79956b861a764e
6e1fe042db1ddb3f1abb1d7c1f46a688
找出视野范围内最弱的敌人
{ var enemys = GameObject.FindGameObjectsWithTag(tag); Transform t = null; float minMagnitude = float.MaxValue; foreach (GameObject e in enemys) { var vp = Camera.main.WorldToViewportPoint(e.transform.position); if (vp.z > 0f && vp.x > 0f && vp.x < 1f ...
0
3c8fe44af9ba459891b44b3ef51d27d8
1b4e3882f83d9752ab45a2a124d77b75
runs after main play function (after deal is clicked). Hides the deal button, etc.
$dealButton.removeAttr("disabled"); $(".bet button").removeAttr("disabled"); $hit.removeAttr("disabled"); $stay.removeAttr("disabled"); $(".head div").remove(); $dealerCardArea.empty(); dealerScore.length = 0; dealerStay = false; addScore("dealer"); $dealerScoreBoard.hide(); $playerCardArea.empty(); play...
0
8c90bc927cb188687dc0324926d9a59b
c78ad1f2d46c33048f9ccc1729943b92
方法1:中序遍历成list,再顺序遍历计算每两个相邻数值之差
vals = [] def dfs(node): if node: vals.append(node.val) dfs(node.left) dfs(node.right) dfs(root) vals.sort() return min(vals[i+1] - vals[i] for i in range(len(vals) - 1))
1
5e1e35def6f9ee1526599ee9e8fd50db
d5e23ff1566c577726d0f9bc4c53ba3e
Alter an index on a table.
$doc = new DOMDocument(); if (!$doc->load($this->sourceFile)) { throw new coreException("Can't load xml: " . $this->sourceFile); } $xpath = new DOMXPath($doc); if (!$index = $xpath->query("//table[@name='{$tableName}']/indexes/index[@name='{$indexName}']")->item(0)) { throw new coreException("Can...
1
caa7a2a0c914c0492b687ea0a410b2b9
d1250d5e48022e6dff895016e80ea4e1
Compute the marginal moments of a batch using numerical integration
def get_z_moments(z, value_ndims, name=None): value_ndims = spt.utils.validate_enum_arg( 'value_ndims', value_ndims, [1, 3]) if value_ndims == 1: z = spt.utils.InputSpec(shape=['...', '*']).validate('z', z) else: z = spt.utils.InputSpec(shape=['...', '?', '?', '*']).validate('z', z) ...
0
f903720740cd5a00de594e4e4121ba95
24914d41962867cfc28ee593b01082f4
ScreenFlip 実行時にVSYNC待ちをするかどうかを設定する
public class MainActivity extends AppCompatActivity implements MyBroadcastReceiver.MyBroadcastListener, DialogInterface.OnClickListener void setWaitScreen(boolean set) { }
0
7bade659d7c0234090219e9e1379fe48
06411950eb50b351d87727bc8045034a
This generic method retrieves a pool manager for the type specified.
{ int index = IndexOfManager(typeof (T)); if (index == -1) return default(T); return (T)_customsGoManagers[index]; }
1
cd68af59021b900cc707137234896381
c60952a6bbaccbb73306d37f60864f5c
Rank the neighbors from each point
n = [] r = [] for j in range(len(p)): if j != i: d = dis(p[i], p[j]) r.append([j,d]) orderedR = sorted(r, key = operator.itemgetter(1), reverse = False) for j in range(k): n.append(orderedR[j][0]) return n
1
4d1d81153c5535f8d102c8fb337c91fc
06b0cb038fce6bba1823ec9268342d95
Removes last action.
public class MCTSNode extends GenericNode<Object> public void removeFirstAction() { if (!path.isEmpty()) { path.remove(0); } }
0
9caed958c52cce9f36f39669b99eb576
bad6c85ea0bd754159080ea8aa6d8b2e
根据不同入口切换注册页面
console.log(activeKey); if (activeKey == "tab.register") { this.setState({ action: "register" }); } else if (activeKey == "tab.login") { this.setState({ action: "login" }); } }
1
0ed5df1a6909010ace99db66a7d2762b
32042ac9ec55fc1302da6bd443eb256f
增加会议申请
@Service public class MeetingRecordBiz extends BaseBiz<MeetingRecord, MeetingRecordDao> public int addMeetingApply(MeetingRecord meetingRecord) { boolean flag = meetingApplyTimeConflict(meetingRecord, "ADD"); if (flag) { return 1; } this.save(meetingRecord); return 0;...
1
67fff4ba3abf6d691e9e07815a14b64a
efaadd13d2a5b48640987cb1a2ef01d6
PostCreatedEvent constructor.
class PostEvent extends Event public function __construct(Post $post) { $this->post = $post; }
0
5199f2765693dd84fa7f90a2a7982490
1ca370af230a72dd0af4a3a4a7b80959
等钻平均时长报表明细报表sql
String query = null; String queryTail = " from job_info jobInfo " + " where jobInfo.service_name like :service " + " and jobInfo.start_time_date >= :startDate " + " and jobInfo.start_time_date <= :endDate " + " and jobInfo.code=8 " + ...
1
597dc925c8c2ccc6658650fb213a7799
cac471ff8b15cf1fc1863e314afd7ff5
Recomputes the timetable's dispatchable graph.
var cids = u.stringSet.members( this.needEnforcing ); if (cids.length > 0) { if (this.planner.plan( this.sgraph, cids )) { this.sgraph = this.planner.getSGraph(); this.topo = toposort( this.sgraph, this.planner ); this.planner.setOptionals( u.reversemap( this.topo.vids,...
1
5ca10005c010ea6102a755de6056d8ac
509c85b4fad2f559c176d8bcce518ee7
@brief This fonction write NDEF file from data given in the geo structure
NFCSTATUS phLibNfc_Ndef_Write( phLibNfc_Handle hRemoteDevice, phNfc_sData_t *psWr, pphLibNfc_RspCb_t pNdefWrite_RspCb, void* pContext...
1
3f53bdbe2306bc48371d63ac2b8c1ade
c40f84bd941c349819dc76217a48a1df
Méthode exportant le GraphDot vers un {@link data.Graph}
public class Graf public String toDotString() { String dotStringGraph = "digraph g {\n"; for (Map.Entry<Node, List<Node>> entry : adjList.entrySet()) { int nodeFrom = entry.getKey().getId(); if(entry.getValue().size()==0) { dotStringGraph += " " + node...
0
d1ddf08dee772fc66e1a258e91d14ffe
6c70e15068c90cedc71bd4900a41907d
The timeout (in minutes) for creating the cluster.
class ClusterArgs: def maintain_time(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "maintain_time")
0
be99114b05eb196722b1638141f59c52
ad17bfd3b609ae5071b5d5ef5d833698
Handles events for my custom thumbnail gadgets.
function Showcase () { Showcase.prototype.addGadget = function (url) {} Showcase.prototype.deleteGadget = function (gadgetId) {} Showcase.prototype.updateGadget = function (gadgetId, url) {} Showcase.prototype.tagGadget = function (gadgetId, tags) {} Showcase.prototype.addInstance = function (gadgetId) {} ...
0
e13b2437835bc23ff94694443c1f1625
9b7a11e5ec75f9ba09e0de77311dc990
@brief Function to read humidity level from htu21d.
{ uint8_t buffer[2]; if(HTS221_ReadReg(HTS221_HR_OUT_L_REG, 2, buffer)) return HTS221_ERROR; *value = (int16_t)((((uint16_t)buffer[1])<<8) | (uint16_t)buffer[0]); return HTS221_OK; }
0
101ff23f1cd585681390338166fee44f
78eafa98d7ca3fcf1fe788f1f4cf297a
Publish a container's port to the host. Can be used multiple times.
export class DockerComposeService implements IDockerComposeServiceName public addPort(publishedPort: number, targetPort: number, options?: DockerComposePortMappingOptions) { this.ports?.push(DockerCompose.portMapping(publishedPort, targetPort, options)); }
1
d5328ae71ac5bf97340d7d4ada0d1674
fb64d532224c46199135b099ba6552c6
Test getting the next message off the queue
$q = new Queue($this->fakeUrl, $this->channel, true, true); $get_response = $q->getMessage(); $this->assertEquals(false, $get_response["response"]); $this->assertArrayHasKey('error', $get_response); }
1
7ab9f31c4d6484bffe90793629471de2
c83c40975effb8fd60e9d340777faea9
Get the password from the EEPROM
int i; for(i = 0; i < PASSWORD_LENGTH; i++) { EEPROM_readByte((PASSWORD_INITIAL_LOCATION | i), &(data[i])); delay_10xN(10); } }
1
874fb0c1c92a504d45e12f6003c458fc
355b12dcb2f678e060cddc9b69a5255e
Appends cumulative reward to player cumulative reward history
rewards_state = state.rewards_state agent_id = state.identifier reward = rewards.lookupR(rewards_state, board_state, agent_id) rewards.backupR(rewards_state, state.last_board_state, reward, agent_id, state.alpha)
0
b814a6a074ae112126cf8eecd0b614fe
525bff7951eb9c569f3fd12072a3b555
@brief CONEXIO 920MHz Module Allocate Packet Function @brief CONEXIO 920MHz Module のパケット生成 関数
{ packet_t *pkt_ptr; mem_node_t *mem_ptr; if (PacketMemList == NULL) { pkt_ptr = (packet_t *) malloc(sizeof(packet_t)); MaxAllocatedPackets++; } else { pkt_ptr = (packet_t *) PacketMemList->item; mem_ptr = PacketMemList; PacketMemList = PacketMemList->next; ...
1
c2bdc0e0ac32a45f96159d8e48de6f99
a5d7aec1eb7d2aac8b25f20f94260edb
creates collapsable values selection list
async function addValueSelection() { document.querySelector("#filtersDetailed").innerHTML = ""; for (let i = 0; i < selectedFilters.length; i++) { let data = ""; let filterValues = await fetchAvailableDetailedValues(selectedFilters[i].filter); let collapsable = `<button type="button" cla...
1
439934a32995b9243059e86f5529714e
5a83923fa6a13d842266cafcb9090e38
The chiral configuration of the atom that is a chiral centre.
class Atom( NTtree ): def proChiralPartner( self ): if self.isProChiral(): return self.residue[self.db.proChiralPartnerAtom] return None
0
d4f19690af754ffb6d91a19fbf333bd1
c1aca35f89ca07390405d821b14e39d4
Zernike quaternary astigmatism 0°.
def quaternary_astigmatism_00(rho, phi): return (10 * rho**2 - 30 * rho**4 + 21 * rho**6) * e.cos(2 * phi)
1
931a0943306047729f6ff750955738e1
20677ddd986d89b1de1021e033cd16ff
Generates a flash message for when a subscription has successfully been created or removed.
function flashMsg($msg, $alertType) { return "<div class=\"alert {$alertType}\" role=\"alert\">{$msg}</div>"; }
1
faee47582470ed90a092bd5ab3d9d962
2181912b273834d8bdb1c539d47b1287
Returns the partner link URI
public class AeInboundReceiveDetailBean extends AeAbstractAdminBean public String getPartnerLinkName() { return getDetail(0).getPartnerLinkName(); }
0
f35c40410318cf35674f40f751b6b674
860e3e2cf6c6be031b1f455ce8312be2
校验蓝牙权限 Android6.0 蓝牙扫描才需要
if (!this.activity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) { return false; } final BluetoothManager bluetoothManager = (BluetoothManager) this.activity.getSystemService(Context.BLUETOOTH_SERVICE); BluetoothAdapter bluetoothAdapter = bluetoot...
0
011a9d8e061d5c7d33c750485244fcae
ea78c4df0e36051896b1ce791363a248
根据map查询用户部门关联表信息
String content = " "; if (mapData.get("usertype") != null && mapData.get("usertype") != "") { content = content + " AND a.flag = '" + mapData.get("usertype") + "' "; } if (mapData.get("userid") != null && mapData.get("userid") != "") { content = content + " AND b....
1
97df3e8ed20c976ed28193ba5ec83143
1e59033b2cbb1533bf6dfe5552e567c3
@brief Checks whether `data_type` `type` supports relational comparisons.
fn can_read_from(data_type: DataType) -> bool { Self::PHYSICAL_TYPE == data_type.physical_type() }
0
5d994e0adee4d42051e411301221514a
38a656255495ba11d54dae2e5faee51f
查看某个Order是否被取消
{ var one = await client.For<Order>().Filter(s => s.OrderNo == OrderNo).FindEntryAsync(); if (one == null) return JsonConvert.SerializeObject(new { ErrorCode = 200, ErrorMessage = "OK", check = "false" }); else return JsonConvert.SerializeObjec...
0
447921c83543907fa58ee56570ff0a50
e02dbebb24311329f2868d36050ab588
A file storing mapped signal data in an HDF5 file. This function opens either a per-read or batched HDF5 file for storing signal mappings.
class SpectralLibraryStore: def __init__(self, file_path: str) -> None: self.file_path = file_path self.hdf5_store = None
0
eef832060209497190705e4fbdfc1066
2ba737ac1ef017f79260c39dd743c4bb
Sets the foundation location
namespace JourneySorterAssembly.Transportation public abstract class TransportProvider protected void SetFoundationYear(DateTime foundationYear) { this.foundationYear = foundationYear; }
0
9ad52ae39922a6f47b951bf6790fadcf
f71d93d17f2517ff17d7fdc7f87ba540
See if you are standing in a cell.
msg = self.malmo.getWorldState().observations[-1].text observations = json.loads(msg) grid = observations.get(u'floor3x3', 0) standingOn = grid[4] self.env.goal_test(standingOn) return standingOn
1
b5848f77cc4b372ae5161e4e13e1685b
c7b99836d5eec26586e1ca173127f23b
Obtiene variante en Centry.
class CentrySDK public function getVariant($variant_id, $params=null){ return $this->get("conexion/v1/variants/" . $variant_id . ".json", $params); }
1
d30d58a0fcc9b3d905a65d49cd35bfd1
bdc87fcde4c4bed253b6c6e9ea7aa253
Correlation matrix computed from the covariance matrix Returns
corr = np.copy(cov) corr[:,:] = 0. nrow = np.size(cov[:,0]) for i in np.arange(nrow): idiag = cov[i,i] if np.abs(idiag) > 0: for j in np.arange(nrow): jdiag = cov[j,j] if np.abs(idiag) > 0: corr[i,j] = cov[i,j]/np.sqrt(idiag...
1
0ae2916b4f7e186c07a4f635d18d8814
f66272b82b29e59d36f242c9e7c0034c
A fingerprint is a 64 bit number that represents the state of the dictionary at a given time, it's just a few dict properties xored together. When an unsafe iterator is initialized, we get the dict fingerprint, and check the fingerprint again when the iterator is released. If the two fingerprints are different it means...
void dictReleaseIterator(dictIterator *iter) { if (!(iter->index == -1 && iter->table == 0)) { if (iter->safe) iter->d->iterators--; else assert(iter->fingerprint == dictFingerprint(iter->d)); } zfree(iter); }
1
d43b7835f41c3a344756c7c35357ee4e
e66052594496f6b87e0b62c27e7462bc
2.4 获取充电桩计费规则(新)
class PaySendActivityModel extends BaseModel public function getCjRule($where, $field) { return $this->getData('tcj_rule', $where, BaseModel::SELECT_TYPE_ONE, $field); }
1
f7a3c822e35e7e8df8d7278f6199d1d3
bebb6bb81fadfa1fe2886776ab34230a
Придумываем студенту дату зачисления.
{ if (AdvRnd.PrsChanse(40)) { registration = new DateTime(AdvRnd.random.Next(Date.found_date.Year, Date.current_date.Year + 1), AdvRnd.random.Next(1, 13), AdvRnd.random.Next(1, 29)); } else if (AdvRnd.PrsChanse(50)) { re...
1
fa26acab4b3ec28fde7dc78ef7c6322b
26c4cfa3bc4b8a294735dc06ffff2bbb
添加生活志点赞
class CommentController extends BaseController{ public function passliveb(){ $id=$_POST['id']; $t=D('comment_liveb'); $row=$t->where('comment_id='.$id)->find(); $mvp['uid']=$this->getRandomString(11); $mvp['tid']=$row['tid']; $mvp['liveb_id']=$row['liveb_id']; $mv...
1
80fbd41754149641b67f61f09cd03d24
c383a5f266d97729d11dfd8c8708294e
save the expand/collapse state of the trailer and review sections
{ var collapseAllImage = document.getElementById("collapseAllImage"); var expandAllImage = document.getElementById("expandAllImage"); if (imageItem == null || collapseAllImage == null || expandAllImage == null) return; noReentry = true; var imgElements = document.getElementsByName("toggleSwitch"); va...
0
bb7192a5cceb2016b1c20205ce67fefc
f608e2b0ec559d10cd138a2a90fb2c30
Gets the OrderGuideInfoData object represented by the pOrderGuideId.
public OrderGuideInfoData getCatalogItems (int pOrderGuideId) throws RemoteException, DataNotFoundException;
1
0476a88e73c6c118368fddf900495d50
1eb0a145a18d1f92d942be0388ea1281
Returns assignedEmployees as UniqueEmployeeList
requireAllNonNull(attendees); UniquePersonList newList = new UniquePersonList(); newList.setPersons(attendees); return newList; }
0
ae730c30254b37f4a8936ddcae4ff123
6d59628fa0051f07956d5ee5cc14b4db
Determine whether the recommendation should be displayed based on whether the display time is within the given range of weeks Does not depend on properties that need to be initialized. Override if there are other constraints on whether the recommendation is displayable.
$display_intervals = $this->get_current_weekly_intervals(); foreach ( $display_intervals as $interval ) { if ( $this->is_future( $interval['end'] ) && $this->is_past( $interval['start'] ) ) { return true; } } return false; }
1
46fa78a15fed49d452a769d64c85694e
d1ebc5c2b3224a98af7f14737d79f3f6
Called upon finishing the async API transfer operation.
STATIC void _transfer_done_cb(tuh_xfer_t *xfer) { _xfer_result = xfer->result; _actual_len = xfer->actual_len; }
1
c7b6551e2bd4a34b3a9eae906e0d99f4
62e7e8498025894b3a74c72e0be1e599
Returns self's full name
class GraphicsItem(QGraphicsItem): def get_full_name(self): return self.get_display_name()
1
afb0c2586b533c6c1622fb0145107bd8
91df8bdec53fcb72358483141e14509c
Function Name: pwmBuzzer_ReadDeadTime This function reads the dead-band counts from the corresponding register None Dead Band Counts
{ #if(!PWM_6250Hz_DeadBand2_4) return (CY_GET_REG8(PWM_6250Hz_DEADBAND_COUNT_PTR)); #else #if(PWM_6250Hz_DEADBAND_COUNT_SHIFT) return ((uint8)(((uint8)(PWM_6250Hz_DEADBAND_COUNT & PWM_6250Hz_DEADBAND_COUNT_MASK)) >> ...
1
5d7de0f96e9d12a183fde45cefc7b175
2c6afed22fcbfe69715daf15fa78811b
Returns maximum Bfactor value
class FreqResponse_Results(): def f_max(self): return self._Gf_max_df.xs('f_max',axis=0,level=1)
0
991b08ed759648c96fd82c2112959e3f
c453073ad4afe139a387bd6e1c9346ca
构建des加密的key,如果长度不是8的倍数,则补齐成8的倍数
namespace MyFrameCore.Common public class Encrypter static byte[] GetDesKey(string key) { if (string.IsNullOrEmpty(key)) { throw new ArgumentNullException("key", "Des密钥不能为空"); } if (key.Length > 8) { key = key.Substr...
0
22fabfe59e5307cf153acdd2dd5fb0cb
5853cb0dd2c726888210d9589230d272
更新区域平均点
namespace NiceBiz.Services public class RecommendService public void UpdateRecommendArea(RecommendAreaInfo area) { if (area == null) throw new ArgumentNullException("area"); _recommendAreaDao.Update<RecommendAreaInfo>(area); _cache.IncVersion("RecommendAre...
0
e461656d5a2c9d145b29d314e4771cba
e467804150c1b5404bd8e728f0edd3ac
@brief Retrieves the address of the front element from vector Note that the address (pointer) of the element type is returned, be sure to cast the return of v_front to the pointer type of the element, then dereference the casted v_front to yield the element itself.
class arm_Vector T& pull_front() { try { if (size_ == 0) throw(ENUM_EMPTY_VECTOR); } ENUM_CATCH_ERROR return buffer_[0]; }
0
ab0b4cbbdbb66e75de78ab2c84c4a226
977d222f3ab5f66421db4c6560ee1929
View change does not occurs when backup's primary is disconnected
node = backup_instance_faulty_processor.node node.config.REPLICAS_REMOVING_WITH_PRIMARY_DISCONNECTED = "quorum" instance_to_remove = 2 instance_not_removed = 1 nodes = set() msg = BackupInstanceFaulty(node.viewNo, [instance_to_remove, instance_not_removed], ...
1
54c0d9c8fa42b33ee72a0744de7a1d0f
b1d50e4538ed8320b99ca920ac8cdc36
Initialisation of MODIS EVI long-term average data product. Initialises the MODIS EVI long-term average data product. Creates the implementation object which does the actual work of generating config file sections.
self.TSEB_MODEL=configdata['TSEB_MODEL'] self.lat,self.lon,self.alt,self.stdlon,self.z_u,self.z_t=(float(configdata['lat']), float(configdata['lon']),float(configdata['altitude']),float(configdata['stdlon']), float(configdata['z_u']),float(configdata['z_t'])) self...
0
2b9aabfb94635a6270f92767805be309
21e04d354260760addb3616c17eb4f38
Test of getRootNode method, of class Response.
public class IMenuModelTest extends TestCase public void testGetRootList_fixture_1() throws Exception { IMenuModel fixture2 = getFixture(); MenuItemList result = fixture2.getRootList(); assertNotNull(result); assertEquals("(0) null", result.toString()); assertEquals(null, result.getMenuItem()); assertEqua...
0
ad7db37f1e23f9973aa5075d12a59511
09eec4aaee66ecd4418d3d50ebd7dcb9
当遇到赋值语句时,获取右边expr的值存储到变量表中
static CRB_Value eval_assign_expression(CRB_Interpreter *inter,char *identifier, Expression *expression) { CRB_Value v; Variable *left; DEBUGPRINT("execute assign expression;"); v = eval_expression(inter,expression); DEBUGPRINT("iden is %s,int is %d;",identifier,v.u.int_value); left = crb_search_variable(identifi...
1
04de6d1528bdc221793bb435f1bc3ab0
dd6da1d42ac935c867a954cc5e4fd304
Builds a flow graph for a list of source files.
public class ControlFlowGraphBuilder public List<ControlFlowGraph> build(ASTNode node) { Visitor visitor = new Visitor(); node.accept(visitor); return visitor.cgfList; }
0
d4fbb3a2d10027f85173004c8ffaec7e
f1b4013ba4d3842966aff123594f467a
读取指定Key的t_global_s数据
public class HConfigReadData extends GConfigReadData @Override protected void readGlobal(BytesReadStream stream) { global=new HGlobalReadData(); global.readBytesSimple(stream); }
0
a8e2fc89fc0a0b77d31799e716e63c58
e02941ce81f954fbd8144b012d28bec8
Função para a listagem das comissões de apoio cadastradas
class ComisionController extends Controller public function index() { return Comision::all()->load('usuarios'); }
1
28e609e36bc6782ac2a2784c2b96f6fe
cd432f4cfeff53703d3dbb457b223861
For Darwin-64, simulate the linktime GOT by using the same non-lazy-pointer mechanism as 32-bit mode.
init_pltgot(Obj_Entry *obj) { if (obj->pltgot != NULL) { obj->pltgot[1] = (Elf_Addr) obj; obj->pltgot[2] = (Elf_Addr) &_rtld_bind_start; } }
0
333451503bca851e9b3beb3e08a62d15
7d62244ef400123982bf8f1ab36ce2df
Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.party.party.Affiliate#getPartyId <em>Party Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EAttribute getVendor_PartyId();
0
3ed3417a8c838543c47746eb489d580a
ce035923204353677c4e34ffd7552fe1
Initialises class, model lattice and figure
graph = False, FullStateMethod = False, stats = False, seed = 0, x = 0, multiplier = 7): self.height = height self.width = width self.dt = 1 self.threshold = threshold self.runtime = runtime self.sig_st = sigmoid_strength self.coupling = pow(coupling, 1/2) ...
1
d0e66b5231a1f0861a27d7b6c2b71138
854862af5635a717ce87ae0dd5fea344
Reads all the CPU percentage in total from psutil
Userinfo = re.findall('User.\d+%', data) Systeminfo = re.findall('System.\d+%', data) if Userinfo: total_cpu_list.append( int(Userinfo[0].split()[1].replace('%', '')) + int(Systeminfo[0].split()[1].replace('%', '')))
0
508da9e696cbcf6306da7b256f0b021b
054e68fb611153daa0a6bcc7fae34d3c
加载已上传的固件升级包列表
class Download_firmware_model extends core_model public function get_firmware_list($condition, $fields, $page, $limit, $language, $keyword = '') { $start = ($page - 1)*$limit; $firmwareList = $this->get_list($limit, $start, $condition, "orderid DESC", $fields); foreach ($firmwareList as $key => ...
1
19e2a9392c584f2af7673b577410c9e3
8cc353393afb6a5ee5821a87848929a4
grdQCSegment ROW 추가시 PLANTID, ENTERPRISEID 자동 입력
namespace Micube.SmartMES.QualityAnalysis public partial class AuditSchedule : SmartConditionManualBaseForm private void View_AddingNewRow(Framework.SmartControls.Grid.BandedGrid.SmartBandedGridView sender, Framework.SmartControls.Grid.AddNewRowArgs args) { args.NewRow["ENTERPRISEID"] = UserInfo...
1
3875e06aed9de34155180aa44eae7ecf
c939dd0d4bd359c10d2f7d667c8f6527
Scales a glyph vector uniformly by a specified scale.
{ result.X = v.X * scale; result.Y = v.Y * scale; }
1
a0c3d3fe28e83e952cadc7d0d039b744
266484126f096b8c39037626f4606c14
Import table (if rows are not existing) and set IDs for replacement
function importTable(tableTag) { $(S_SERVER_TABLE).empty() $(S_SERVER_TABLE).append(tableTag); var groups = []; $(S_SERVER_TABLE_TR).each(function(i) { if (i == 0) { $(this).prepend('<td><input id="' + S_COMMON_CHECKBOX.replace('#', '') + '" type="checkbox"></td>'); } else {...
1
0e81718ce31bf91f6ffb47b0ef70479e
fef91d62623f77666be5141f6cf9a3a5
Write the array of staff to the DOM
if (typeof staff !== 'undefined'){ $("#staffName").text(staff.name); $("#staffUid").text(staff.uid); $("#staffDepartment").text(staff.department); $("#staffTeam").text(staff.team); $("#staffTitle").text(staff.title); $("#staffTop").text(sta...
0
24f06dca3b8502a895653814e2938aae
28bf99c54eef796302df9fca7e4149d2
Pushes all the unsynced ensures to the server
class Database public function ensureFullCommit() { return $this->client->post($this->name .'/_ensure_full_commit')->getData(); }
1
f453565677fa161a80ee4a1eff85db39
d9d3fb396b863c1c9ad6f32e0c0e3ab4
Выбирает категорию в соответстви с распределением вероятностей
{ float total = 0; for (int i =0; i < probs.Length; i++) { total += probs[i]; } Random.InitState(System.DateTime.Now.Millisecond); float randomPoint = Random.value * total; for (int i= 0; i < probs.Length; i++) { if (randomPoint...
1
6c5352a42f671a276df5bbf7c2319a88
c839dd7dd8d596af837c1c2e23dac216
Updates a vendor attribute
{ VendorDAO dao = (VendorDAO)CreateDAOInstance(); return dao.UpdateExisting(base.Fields, base.Transaction, updateRestriction); }
1
e256d547270444a9efa7093c4144a091
1a5ec12a7cf9f54db4abb619fc6f58ce
get the result of a previously queued command
namespace vimrid namespace dicom AsyncDicomResult *DicomTcpClient::GetResult(void *taskIdPtr) { return getTask(taskIdPtr).GetResult(); }
1
05cdbd49ab81fa7b7374e4155e0bb7b4
5f7962aae7cadd465fc797713eac7afc
Set the value for the ClientSecret input for this RefreshToken Choreo.
class RefreshTokenInputSet(InputSet): def set_ClientSecret(self, value): InputSet._set_input(self, 'ClientSecret', value)
1
3ca261c2007df64248c821d9599a7fe3
ce72bf37f446681fac4451d072a2c0a6
Code here will be called immediately after each test (right before the destructor).
class SetTest : public ::testing::Test virtual void TearDown() { }
1
ec24957ff7d0a00c8a2e6071fab3deba
0c1e77e08a033741b3d6321d2cf24a46
Local Function to Exit Initialised Advertising State
static void leAdvertisingManager_ExitSuspendingState(void) { return; }
0
c999df8194fb6437f9c1f2dba63e4557
bb19dd28ba79ee050e83423ec475af47
Returns the text between two entity mentions.
return getEntities( MessageEntity.Type.CASHTAG, entity -> text.substring(entity.getOffset() + 1, entity.getOffset() + entity.getLength()) ); }
0
49ec9c439ed9f8853b87c8d549353cb6
12fef0f1dd3e8da8ee0a8691fd39406c
生成Update语句的SET部分(不包括SET)
class BuilderBase protected function _build_update_data(): string { if (!$this->param) { return ''; } $set = ' SET '; $count = count($this->param); $i = 0; foreach ($this->param as $key => $value) { $fill = ($i == ($count - 1)) ? ' ' : ' , '; $set .= ' ' . substr($key, 2) . ' = ' . $key . $fil...
1
e9e4f82eb9a90395cc56bc229669e3d9
104bc9ead069aab7b09c85c890f80426
设置可信域名
@SuppressWarnings("unused") public class MinaCodeSupport public static void setDomain(String token, DomainBean domains) throws WxErrorException { String url = URL_MODIFY_DOMAIN.replace("ACCESS_TOKEN", token); domains.setAction(DomainBean.SET); WxHttpUtil.post(url, domains); }
1
778f680bf84f0f5bcd28c57caa0e3a7c
bbe39196d09848d3c4e7d0571d811e75
값이 100이상이면 100을 가지게 한다.
if ((parseInt(data) > 100)) { this.biddingCreateData.accept_line = '100'; } }
1
94b348096cfb43a25d03044a117059b7
0ddfc18accf83a27b7d2aba3be8036ef
Gets the species S
public String getSpecies();
1
15eb88d3f9014bba86f955bba898135e
05f5801d8902dab1b338839d413ea5f6
Limited conversion of a PB::Edge to edge_t. The conversion is minimal and should only be used to follow up with edge value iterators.
auto key = edge_key(); auto res = _edge_struct.search(key); if (res.status == OK) { return res.value; } else { return 0; } }
0
717ac3c8c676971b19ad2dd58709888d
6a5277cd19b7b1e2630205ee4f998f2a
Add recipe to the panel
public class SelectRecipe public void addSelectedRecipesToPanel(ArrayList<Recipe> selectedRecipes) { if(currentRecipes.size() > 0) { currentRecipes.clear(); currentLabels.clear(); } for(int i = 0; i < selectedRecipes.size(); i++) { currentRecipes.add(selectedRecipes.get(i)); } for(int i = 0; i <curre...
1
62b779d67af0b1b298e1d6e164d3607d
ebb9a3bf3ab310fb283dc27d21bdb881
是否是通话中
public class MtcCall implements MtcCallConstants public static boolean Mtc_SessHasTalk(int iSessId) { return MtcCallJNI.Mtc_SessHasTalk(iSessId); }
1
1a2e0bb97bfabce4455d6a6f2734137a
36512df91e7ce8543a3f3e06327ff705
Builds body copy HTML - fired when build_html_button is clicked
async cphBodyBuild() { let strReturn = ""; let backendHTML = ""; let oudRecord = this.oudRecord; let objParentTableLevel1 = this.objParentTableLevel1; let objParentTable = this.objParentTable; let resultsUsersTypeListing = this.resultsUsersTypeListing; let res...
1
5a121b140716c52c332060909261cdd5
2d7f866a933873af52e3a62518ec4dfd
LoadSource is equal to Conf.LoadSource(source, force...).
func Load(l Loader) error { globalConfig.loader = l return globalConfig.Load() }
0
5b4add9b733b6491af4359269c85e727
21b80d2c19d26ac4a244452a58ac50fb
Ensures draw aalines's kwargs are not order dependent.
for parameter in ['color', 'linestyle', 'label']: if parameter not in kwargs: kwargs[parameter] = getattr(self, parameter) return kwargs
0
d9327ba0158932dc3a5fd8f8d4ca3aa8
8db28ea28f82cf55f87f409a0dc6e75f
The headers of the MIME entity inside the encrypted or signed message.
class IPWorksEncrypt_SMIME public function getMessageHeadersString() { return ipworksencrypt_smime_get($this->handle, 16 ); }
1
67aeae11650881a01740ecad5e73b7a4
348fb6922266bd530bba7a0771f72cb0
Возвращает список схем определенных для составления речи
{ $default = array(self::SYSTEM_DEFAULT); switch ($this->getLang()) { case self::LANG_RU: return array_merge($default, array( self::SYSTEM_ISO_R_9_1968, self::SYSTEM_GOST_1971, self::SYSTEM_GOST_1983, ...
1
e23530d0e5c29f88eadebe1626e76da2
65177f74442bfc7fe43f822b5d625359
设置标题的位置:1-靠右,2-水平居中
public class TitleBarBuilder public TitleBarBuilder setTitleLocation(@Titleloc int titleLocation) { this.titleLocation = titleLocation; return this; }
1
98f471e9ef27a97ed2304dca2d281dbf
72dbbee167cba5eec6964aa007a250e3
An alias for HTML preformatted paragraph publishers.
class HtmlGenerator: def p(self, content, **kwargs): self.body.append(markup.HtmlParagraph(content, **kwargs)) return self.body[-1]
0
7f2642ebc2fea5bdcfffd5dc32b367eb
3cab67e9cb5c374e2beca900e4e00c11
Validate general merchandise receipts.
if not eventObject.IsKindOf(acm.FSettlement): return False settlement = eventObject if settlement.Currency().Name() == 'ZAR': return False if settlement.MTMessages() != '103': return False if settlement.CounterpartyAccountRef() is None: ...
0
aa7812ad4e7d9bce8be08b86e2933666
bf28867da53b2b916a71c8d400cdd49a
Get autolootExpire
int getDropExp();
0
57e05ba997cce20eb4fbce3a9c79d464
2dec49eb3c46db710a770baf9e57f270
Setter for <code>mobsters.task_history.end_time</code>.
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name="ReservationRequest", namespace="useraccesspoint.autobahn.geant.net", propOrder={ "startPort", "endPort", "startTime", "endTime", "priority", "description", "capacity", "userInclude", "userExclude", "mtu", "maxDelay", "resiliency", "bidirectional", "proce...
0
0959715a0767f57d8168d5d66ae49f90
03a0f63df1cab6fdc54a51cfcd220aa8
开始传输时回调
startUpload(){ }
0
ed7d85079eb6db6cece28451b560fc71
1a418ba7f257fad3dc2c4ecb95f6859a
<br>[機 能] 別ウィンドウで表示するかを返す <br>[解 説] <br>[備 考]
public class SHH_Module extends Module public boolean isBlockedWindow() { return blockedWindow; }
0
505a31dfb01a89366dc50f05852b8fb1
060b451f45805f64ebc6da7c6d9fb26c
Send Post create issue call to validate for missing required fields
response = Mock() response.json.return_value = {"key": "FOO-42"} requests_post.return_value = response self.assertEqual(("FOO-42", ""), self.issue_tracker.create_issue(self.ISSUE_SUMMARY))
0