query_id
string
corpus_id
string
query
string
code
string
label
int64
ae12128d3415e7b1291d6d338a9c2e2e
416bfe084385182a9cfb8204c7429b44
Get subscription statuses for a contact
{ $endpoint = "/email/public/v1/subscriptions"; $queryString = $this->buildQueryString(['portalId' => $portal_id]); return $this->request('get', $endpoint, [], $queryString); }
0
0fe87645aef6d6ab17fc13d0b431da6b
5f3bfc9f0d495f89ba598ed183bd9ebd
Gets rows from the datasource based on the primary key PersonCategoryAction_PK index.
{ if (transactionManager.IsOpen) GetBylast_modified_by_person_id(transactionManager, null, last_modified_by_person_id, 0, int.MaxValue, ds, tableName); else GetBylast_modified_by_person_id(null, transactionManager.ConnectionString, last_modified_by_person_id, 0, int.MaxValue, ds, tableName); }
0
49438fc9f72fad230cdc3adfa0269171
ab0500a80529f6bfcb92618857d63894
Simple symmetric encryption, uses default crypto key.
namespace Nana.Framework.Cryptography public class Cryptographer public static string Encrypt(string plainText) { return Entlib.Cryptographer.EncryptSymmetric(SYMMETRIC_PROVIDER, plainText); }
1
12b507f4e95625694159f6f2dc867ecb
53f6b2e12cbf07312216fd098f077922
Overridable hashcode generation for invoice lines. Lines having the same hashcode will be grouped together if the journal has the 'group line' option. Of course a module can add fields to invoice lines that would need to be tested too before merging lines or not.
class AccountInvoice(models.Model): def inv_line_characteristic_hashcode(self, invoice_line): return "%s-%s-%s-%s-%s" % ( invoice_line['account_id'], invoice_line.get('tax_line_id', 'False'), False, invoice_line.get('analytic_account_id', 'False'), inv...
1
8c333d3f87c763e256ca44add7926318
ed857d5bb78704553ca7204a7e610ad8
账号数据是否变化
{ bool result = false; result = result || entityData.UserId != _originalData.UserId; result = result || entityData.UserName != _originalData.UserName; result = result || entityData.PassWord != _originalData.PassWord; result = result || entityData.QlnsId != _originalData.QlnsId; result = result || en...
1
839df382cf66a75f17830957d05d179b
f1925f8b18ed15c1bbdefd8061446ce8
The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network.
class InsightFilters(dict): def resource_details_others(self) -> Optional[Sequence['outputs.InsightFiltersResourceDetailsOther']]: return pulumi.get(self, "resource_details_others")
0
b02eafa490ad294e89a0ef6d793b227a
eebcee0b92d1d7f64b9b87f6b4c7eb59
RegisterOpaque registers an opaque handler for a specific statement type.
ret_ad, args = jitter.func_args_stdcall(["StatementHandle"]) raise RuntimeError('API not implemented') jitter.func_ret_stdcall(ret_ad, ret_value)
0
b96f4fd62b35ea5a1690b0ddbf61e74d
3291c22d227f59dc259689b7f928f87b
Make a ref point at another ref.
{ this->_x -= Ref.getX(); this->_y -= Ref.getY(); return *this; }
0
4e831d6bf15dd4ed45125a96ec09eaab
6285d21cfafb5e9f84fcab0d3b7da30a
Tests the <see cref="ICollection.CopyTo"/> method of the <see cref="IDictionary{TKey,TValue}.Keys"/> collection passing a one-dimensional destination array with a lower bound other than zero.
namespace System.Collections.Concurrent.Tests public class BlockingCollectionTests [Fact] public static void Test21_CopyToExceptions() { BlockingCollection<int> blockingCollection = ConstructBlockingCollection<int>(); blockingCollection.Add(0); blockingCollection....
0
7780eec14ea49872f62164b4db36732a
729caac272eb7d234c885c82ae989e7f
功能描述:给上级发放极差奖
{ if (level <= maxLevel) { Model.Member bdmodel = DAL.Member.GetModel(member.MTJ); if (bdmodel != null && bdmodel.MID != bdmodel.MTJ) { if (level >= minLevel && bdmodel.MConfig.EPXingCount > 0) { ...
1
21b9230736e57ebfca8ee25bf80690c7
cd19acf6039294c61550612792c658a5
Reset light color to original light color
void resetstribe(uint8_t *lightdata) { struct color24bit color; color.blue = 0x00; color.green= 0x00; color.red = 0x00; setfullcolor(color, lightdata); }
0
5b1de2a576ce0fb98f9a4cee28c48032
ffd743b86a8ae68e8d487fef2be9bc7a
根据经济类型查询人员列表
public class PersonDaoImpl implements PersonDao @Override public List<Map<String, Object>> queryPersonBySubsidy(int type) { SqlSession session = SqlSessionUtils.openSession(); List<Map<String, Object>> list = session.selectList("person.queryPersonBySubsidy",type); session.close(); re...
1
892a9a620eed36d0cd097621fce9b361
e4578ed2f7af71f8b6f5cf90453d3fd2
获得粉丝增长率,(最近一周 减去 上一周)/上一周 * 100
namespace Service public class ReportQyService public string GetHomeryyrhb(string yybh, int ddly) { string sqlold = "select count(1) from dd_jbxx_new where yybh='" + yybh + "' and ddly=" + ddly + " and ddzt in (2,3,6,7,9) and yykssj>='" + DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd") + "' an...
1
47c7b608a89c8ca6099f365d34461f1b
7ab13fea1481acbd431cf364569f9907
checks every entity for collision with every entity in a given container, calling the given callback with the each entity as the arguments - note that this function assumes both containers only have entities with a valid _rect property
function actionContainers(action) { for (let container of getContainers()) action(container); }
0
c78ee3d701fa28fdd2c15affcd6be20e
5ec623adbf1bb5c4dee9003d98fc365d
当前节点是否是最后一个节点
@Slf4j public class TestNode @Slf4j static class Node{ public Boolean isLast(){ return nextNode == null; }
1
a10ee7b4fc73bb5e6cbc9dcd2acd547a
d59131c601249c54048a1c6b54a6948d
设置RadioButton文字颜色
inline fun RadioButton.setTextColor(context: Context, color: Int) = this.setTextColor(ContextCompat.getColor(context, color))
1
01e9d0041887a8d7dbcaa35f91da9ec3
89a88efa4cee8a53e0ad4e7dc47e1b7a
Convert binary UUIDs to text
void my_uuid2str(const uchar *guid, char *s) { int i; for (i=0; i < MY_UUID_SIZE; i++) { *s++= _dig_vec_lower[guid[i] >>4]; *s++= _dig_vec_lower[guid[i] & 15]; if ((1 << i) & ((1 << 3) | (1 << 5) | (1 << 7) | (1 << 9))) *s++= '-'; } }
1
5e28d43cc3c05006e818c60ffb8ac5bd
4e999f2452281f92be347488389f06d4
y-co-ordinate of the particle
int Particle::pos_y() const { return _pos_y; }
1
461879af0e2db66572210ba3d67d3772
cc5c574ad315bcb6aca2e33cf94b0856
Return the {@link NlComponent} matching the id of the <code><Constraint></code> tag.
String getComponentConstraints();
0
c38e88191a703e3d9097d7b5e7c85ac0
3e89f82d17cc9693eed87834dd5cf700
Check is user turn on CardDAV synchronisation for entities(accounts, contacts or company etc.),
class SigninManagerImpl implements IdentityManager.Observer, SigninManager private static class SignInState boolean shouldTurnSyncOn() { return mShouldTurnSyncOn; }
0
34f500031a10561913b2361967631f8b
aed5709da1dfab4ec8454c6740c74016
Returns true if the las file is of wrapped variant and false otherwise
public class Transcript public boolean getLascComplete() { return lascComplete; }
0
20f05b7c295c7fae9b643fbb0eb6362a
ef2eed8a102ec98416751505d0134e2f
相应ajax的请求,发送json数据
$.ajax({ type:'post', url:Url, async:true, data:datas, dataType : 'json', success:fun, error:function(){ console.log('系统故障 未能请求后台'); } }); }
1
38bfdd52bffa90bfeeb11ed72f3817d8
dd5740705416b94f8fe739baf2c12400
sorts the dictionary using selection sort
void selectionSort(){ }
0
6c45dc356e5690ebcfc01df8c99ab224
ba57ecffc6f14869102fc617ea5e1393
导出系统配置数据
class SettingController extends CommonController public function siteExport($filename = ''){ if(IS_POST) { $setting_db = M('setting'); $data = array('type'=>'setting'); $data['data'] = $setting_db->select(); $data['verify'] = md5(var_export($data['data'], true) . $data['type']); $data = base64_...
1
07e22fcfa85b1b295df452d83f678fdf
083e0479dd3c757a6be735d3a6e4cab8
Creates a ConfigSpace.ConfigurationSpace containing all fidelity parameters for the XGBoost Benchmark
cs = ConfigSpace.ConfigurationSpace('sklearn.ensemble.GradientBoostingClassifier', seed) imputation = ConfigSpace.hyperparameters.CategoricalHyperparameter( name='columntransformer__numeric__imputer__strategy', choices=['mean', 'median', 'most_frequent']) loss = ConfigSpace.hyperparameters.Constant(...
0
d8d4fcbe298d04443bd5afbc77b0e5c1
76dc8332e832d312f76b621d85798bd5
Set a custom {@link AmqpHeaderMapper} for mapping request and reply headers. Defaults to {@link DefaultAmqpHeaderMapper#outboundMapper()}.
@DataObject(generateConverter = true, publicConverter = false) public class HttpRepositoryOptions public HttpRepositoryOptions setCustomHttpHeader(CustomHttpHeaderOptions customHttpHeader) { this.customHttpHeader = customHttpHeader; return this; }
0
ef039a8d9d41a3f54ba0bfda4791daa3
9eeca810afe1f8f6d2ae2df0b066ae20
function will prepare K, Q, V and M for attention layer.
with tf.variable_scope("attention_weights"): params = {"W_u_Q":tf.get_variable("W_u_Q", dtype=tf.float32, shape=(2*atten_size,atten_size), initializer=initializer()), "W_u_P":tf.get_variable("W_u_P", dtype=tf.float32, shape=(2*atten_size,atten_size...
0
a7b8ae58d44ee0a8df1050346cf96beb
a76771a9bfdb520b0a76a355e5144277
Calls ``BeginTransaction`` on Datastore.
if self._tx_state.tx_id is not None: return _utilities.wrap_result_in_future(self) return self._driver.future( _begin_request_factory(self._session_state, self._tx_state), _apis.TableService.Stub, _apis.TableService.BeginTransaction, _wrap_tx_b...
1
c1eb84aa573b32adce0032c5f763c785
0523797993b79c78a7068254fd7685b3
释放链表和图像等占据的内存
{ CLogFile::write(tr("ReleaseImage"),OperationLog); for(int i = 0 ; i < m_sSystemInfo.iRealCamCount; i++) { delete m_sRealCamInfo[i].m_pRealImage; m_sRealCamInfo[i].m_pRealImage = NULL; } for(int i = 0 ; i < m_sSystemInfo.iCamCount; i++) { delete m_sCarvedCamInfo[i].m_pActiveImage; m_sCarvedCamInfo[i].m_p...
1
b1931841085d913c48a9be614772ce25
2f88c3e2303136499832c14b27e1a394
Highlights the menu.
public abstract class MenuPanel extends Panel public void menuMouseListener(final JMenu menu) @Override public void mouseEntered(MouseEvent e) { if (!menu.isPopupMenuVisible()) { menu.setBorder(GlobalBorder.MENURAISEDBORDER); } }
1
e4b72ca118700f1918dd6e836ce145bb
29a93a04a26172a75b6025705f79c1ea
Verifica daca userul cu tokenul tokenString este sau nu admin
export class UserService isAdmin(){ return this.jwtService.getToken('Bearer_lar'); }
0
f0e365fdac63693e22c763e57a8f4e93
c8e5ba3124e319491647acfde16f74e1
清除指定员工的所有授予的角色
class ActiveRecordManager extends BaseManager public function revokeAll($userId) { if ($this->isEmptyUserId($userId)) { return false; } unset($this->_checkAccessAssignments[(string)$userId]); $authItems = $this->getAuthItems(); $ids = ArrayHelper::getColumn($authI...
1
a310cb03f6d391742b082abc73dc97f5
eae2ac6b332b151ab3fdfed138d14ca6
Binds the overall validation of a ViewModel to a specified View property.
namespace ReactiveUI.Validation public class ValidationBinding:IValidationBinding public static IValidationBinding ForViewModel<TView, TViewModel,TViewProperty>(TView view, Expression<Func<TView, TViewProperty>> viewProperty, IValidationTextFormatter<string> formatter = null ) ...
1
f24944384916027f887c33e6ef603eb8
6ea692e60d55dda3e70cd4fa55913baa
The number of times the IoT hub attempts to deliver a message on the feedback queue, between 1 and 100.
class FeedbackPropertiesResponse(dict): def max_delivery_count(self) -> Optional[int]: return pulumi.get(self, "max_delivery_count")
1
599ee667bc97e918fa585a38496add19
9e3fae653081498df3a3dc4c1498523c
Count the number of matches and filter by criteria
class JobManager implements JobManagerInterface public function countBy(array $criteria) { $qb = $this->getJobRepository()->createQueryBuilder('j'); $qb->select('COUNT(j.id)'); foreach ($criteria as $field => $value) { $qb->andWhere($qb->expr()->eq("j.$field", $qb->expr()->litera...
1
29618a2a5adb0e72556f93d24bb3ddf3
4b4c993ab41e4975752c8a5a6d19ec7d
读取子文件夹中的数据
{ Debug.Log("遍历文件夹 " + folderpath); string sourceDirpath=folderpath.Substring(0,folderpath.LastIndexOf('/')); DirectoryInfo dirInfo = new DirectoryInfo(folderpath); foreach (FileInfo fileinfo in dirInfo.GetFiles("*.*",SearchOption.AllDirectories)) { if (fileinfo.Extension == ".meta") { continue; ...
1
c3e5ab0ea946aaee022514dae92df9aa
85d6aba47678a297d0422e820f096c7d
Tests the downloadAction() method.
$this->generateNc('TestFiles.TestDownloadComponent'); $uploadBasePath = \CakePlugin::path('Files') . 'Test' . DS . 'Fixture' . DS; TestAuthGeneral::login($this); $this->_testNcAction('/test_files/test_download_component/index', array( 'method' => 'get' )); $pass = [ 'photo', ]; Current::$current[...
1
246afcbfb7e76698b3bcc632ecb0665c
511bd3b1abde2de0a435b2be057e0af2
Check if caster exists.
{ if (InstanceMap* instance = GetCaster()->GetMap()->ToInstanceMap()) if (instance->GetInstanceScript()) if (instance->GetScriptId() == sObjectMgr->GetScriptIdOrAdd(DSScriptName)) return true; return false; }
0
91c317ae45b2407af5a85ab901d4350d
82f5f1e3b8df2d4a6a9dd50926800f0e
Compute the value of global GV, which is a symbolic value. Inputs: - Mem (controlling type variable): Any type that can be stored in memory - GV: A global value. Outputs: - a: Value loaded
Z80MCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { assert(!MO.getTargetFlags() && "Unknown target flag on GV operand"); return AsmPrinter.getSymbol(MO.getGlobal()); }
0
d274bf9ccbe80180597233b397cfe4c1
7001e2486a54f14c1e657f57567c7593
删除超出限制的节点
void CSOINN::RemoveUnnecessaryNode(void) { int lastNode = ((int) m_nodeInfo.size() - 1); for (int i = lastNode; i >= 0; i--) { if (m_nodeInfo[i]->m_neighborNum < m_eta) { m_nodeInfo[i]->SetIsNodeRemoved(true); } else { m_nodeInfo[i]->SetIsNodeRemoved(false); } } for (int i = lastNode; i >= 0; i--...
1
045272b882502f0ebe380ee8512ed1b1
c15a16bf46749b174010b19dbf1300af
Function to initialise the node and subscribe to the keyboard topic
global image_sub rospy.init_node('listener', anonymous=True) rospy.Subscriber("TopCell", String, callbackTopCell) rospy.Subscriber("TopHeading", String, callbackTopHeading) rospy.Subscriber("TopCellProb", String, callbackTopCellProb) rospy.Subscriber("TopHeadingProb", String, callbackTopHeadingP...
0
cbc2759caa4c32bae25ed4dfb10abe3d
2c4f2a7cc369f35b7ae9c2662d49a839
Obtains an event for the component-wise pose error calculator.
class TwistSynchronizer(object): def pose_error_cb(self, msg): self.pose_error = msg
0
00a57b3e0433f284b64ee04c649e2ac2
bf0c7d5d91ac15ece92a6a597a8e33b6
Add a todo via the API and then adds it to the page. Displays an alert if there is an error in the request.
class Controller addItem(title) { this.sendAjax("addTodo", Controller.POST, "todo-title=" + title, function (event) { this.view.clearNewTodo(); this._refresh(true); }); }
0
c6b2a391588f516aa82af05ae5e34281
704e5397f92b29c4ccdd051b47f5918e
Gets the facility structure ddl data.
{ try { IUser theLocationManager; theLocationManager = (IUser)ObjectFactory.CreateInstance("BusinessProcess.Security.BUser, BusinessProcess.Security"); DataTable theDT = theLocationManager.GetFacilityList(); DataRow theDR = ...
1
a47e9e322852530452b83c826dd2375e
7bcbc36e6c14523df45a59c2ab63c897
Provides the format used to save and load keybinding resources.
class _FASOutputFbx(File, Cacheable): def cache_fmt(self): return build_cache_fmt(self.path, level='project')
0
c0d4cd9b3d6b424b735e7f264bfb375e
94931cfceff308516a3c41985efe0f59
Inizializza i messaggi globali
if (!isset($_SESSION['messages'])) $_SESSION['messages'] = ''; if (!isset($_SESSION['globalViewContent'])) $_SESSION['globalViewContent'] = ''; }
1
61a58085be2b646057621126d683651b
7e49b34525e3c6f2170c868680cad0d0
Begins an asynchronous request to synchronize the items of a specific folder. Calling this method results in a call to EWS.
function FowardNow() { var soapToGetItemData = getItemDataSoap(); Office.context.mailbox.makeEwsRequestAsync(soapToGetItemData, soapToGetItemDataCallback); }
1
b017bc63e297b03de2adb93dab410b5c
61a3893e139484a6f3ad1201ff415fce
扫描数据库上下文并对所有已实现ILuceneIndexable的对象,并创建索引
{ $indexResult = new IndexingResult(); $currentSnapshot = null; try { $rep = new HSCodeReportRepositoryImpl($this->getDoctrineEM()); $rows = $rep->getList(); if (count($rows) == 0) { throw new \InvalidArgumentException("No input not given")...
1
bb2d85d28449b4a3192c260d6645d12f
eddbef5782492e2c770ff12c379542f9
Devuelve un string con el número en el formato de número predeterminado.
public class NumberFormatter implements InitializingBean public static String getNumberAsStringDefaultLocale(Number inputNumber, String typeInstance, Integer maxPractionDigi, Integer minPractionDigit) { NumberFormat nf = getNumberFormatStatic(typeInstance, Locale.getDefault()); nf.setMaximum...
1
82371b10cd722c1c85b0287668c79434
74121d68ce0da1d4dd336b5becdcd9d9
Get an ArrayList with all search types from input.
namespace DotNetNuke.Services.Search.Internals public class SearchQueryStringParser : ServiceLocator<ISearchQueryStringParser, SearchQueryStringParser> , ISearchQueryStringParser public IList<string> GetSearchTypeList(string keywords, out string outputKeywords...
1
31da0079527963dd1a569a448c34f1e4
d6d05d65a1b21fce01a45818cf24eb66
Use this to restore your parameters from this memory block, whose contents will have been created by the getStateInformation() call.
public class VMProcess extends UserProcess public void restoreState() { Lib.debug(dbgVM, "\tRestore state!\n"); }
0
96a4cba2412fe3f03c9e4d9dd6ad27f0
a792c3bfb117a6062a61878f41021d70
Gets the current row's raw CSV data.
class Data(): def get_raw_row(self, rowIndex): return self.raw_data[rowIndex]
1
f91bce879d829db29966c5f8b75aee6f
8b64dba46fd88118a155c832e3e92671
Осуществляет поиск группы, к которой относится сотрудник, по Id группы.
namespace AccountingPerformanceModel public static class Helper public static StudyGroup GetStudyGroupById(Guid idStudyGroup) { return _root.StudyGroups.FirstOrDefault(item => item.IdStudyGroup == idStudyGroup); }
1
9a05dc47591af47689dcd3d9aefe65d9
a882e5db3942e971db5d2f6b1566dfee
Returns a filtered list of MenuLinkGroup rows.
ObservableList<Group> getFilteredGroupList();
0
fee9fbcbb17f4ffecd09f578c44f3a7f
84d4b5200cf0b87c74965d3fe7e31468
prints a rotating spinner
spinner = '|/-\\' sys.stdout.write('%s \r' % spinner[self.last_spin]) sys.stdout.flush() self.last_spin += 1 if self.last_spin > len(spinner) - 1: self.last_spin = 0 time.sleep(.2)
1
a2040c684a0910f1d0aa5ec5ef49a712
cbef5891a0762705da4ebd41747e350d
The method responsible for TCP reassembly on live traffic
struct sctp_ulpevent *event) { struct sk_buff *pos; struct sctp_ulpevent *cevent; __u32 tsn, ctsn; tsn = event->tsn; pos = skb_peek_tail(&ulpq->reasm); if (!pos) { __skb_queue_tail(&ulpq->reasm, sctp_event2skb(event)); return; } cevent = sctp_skb2event(pos); ctsn = cevent->tsn; if (TSN_lt(ctsn, tsn)...
0
f957a7f0b46fee86f8e9e1a960f40e2c
8a6d7c634f374ffaf7bc36fde19b9fe5
convert table to image
{ $w = $this->col(); $h = $this->row(); $img = imagecreatetruecolor($w, $h); for ($i = 0; $i < $h; $i++) { for ($j = 0; $j < $w; $j++) { $color = intval($this->matrix[$i][$j] * 255); if ($color < 0) { $color = 0; ...
1
0bebf00a0c7c964ed59c8167f425d3a4
88f3f10c1f5c27f61d7f4ce212185434
Metoda nechá nastavit článku, zda byl přijmut nebo zamítnut. Poté zavolá přesměrování zpět na administraci tohoto článku.
class ArticleController extends AdminController public function setStatus($model = 'article') { return parent::setStatus('article'); }
0
4602bf55ba5e11e69646660ab7c7cad1
d6dd21e0fb2a5609ca3fb80d0574c5a2
Event to signal that a measurement is ready
static void prv_current_measurement_data_ready_callback(void *context) { PowerDistributionCurrentStorage *storage = power_distribution_current_measurement_get_storage(); power_distribution_publish_data_publish(storage->measurements); }
1
71384952ffec6f3ef6288fb067e6e366
feca365c7b60d2d884a635ed7247c9ad
default minphys routine for siop based controllers
{ sfi_registers->control.bf.go = 1; while(sfi_registers->control.bf.go == 1) {;} return sfi_registers->rd_data.bf.val; }
0
b2e2e517fb050cc4e23b24dbe7558728
6771f433cefe807a303a9944b7bf718e
从阿里云API接口获得最新省市区信息
public class MyAddressActivity extends BaseActivity implements OnSuccessListener<ArrayList<AddressModel>>, OnItemClickListener private void initAreaInfo(){ IPageCache cache = new IPageCache(); String strMD5 = cache.get(CacheKeyFactory.CACHE_FULL_DISTRICT_MD5); mAjax = ServiceConfig.getAjax(Config.URL_FULL_DISTRIC...
1
2b2edc94efd7a862a6758873417298cf
550a878213ea4f2771387fe302a97db9
判读str是否为数值型的字符串,包括正负、整数、小数
Pattern num = Pattern.compile("^\\d+$|-\\d+$"); Pattern decimal = Pattern.compile("\\d+\\.\\d+$|-\\d+\\.\\d+$"); Matcher isNum = num.matcher(str); Matcher isDecimal = decimal.matcher(str); if (isNum.matches() || isDecimal.matches()) { return true; } ...
1
4f956bfd591b5741d92f8aa5aadcc6be
ce1b61127950b66e9249016234252397
Sets the polygon out tangent.
public class Intersection implements Serializable{ public void setOut(ArrayList<Segment> out) { this.out = out; }
0
842fb8fe629720d35e64b9295dd73b91
8e1fe4d03cd2c8a3faeb3d1faa978c58
add a click event to each table row to bring up more information
var thead = item.getElementsByTagName("thead")[0]; var ths = thead.getElementsByTagName("th"); for (var i = 0; i < ths.length; i++) { ths[i].onclick = function() { clickTable(this, this.cellIndex+1); } } return item; }
0
a1357d4286de486bd4010f39cb1c7a7b
2f4c3f869c518af663481e2a6288ae56
Get information for a render model. <h5>C Specification</h5> <p>The {@link #xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB} function is defined as:</p> <pre><code> XrResult xrGetRenderModelPropertiesFB( XrSession session, XrPath path, XrRen...
namespace Autodesk.Forge public partial class DerivativesApi : IDerivativesApi public ApiResponse< dynamic> GetModelviewPropertiesWithHttpInfo (string urn, string guid, string acceptEncoding = null, List<int> objectIds = null, bool xAdsForce = false, bool forceget = false) { if ( urn == null ) throw new ApiExce...
0
7e6f48917a92f3bcdffab479c45f5384
23a2198f46ca35b2df18125ae9f9ab98
检测账号在条码中是否存在
namespace padSoft_e class DBHelper public bool existsBarcodeOutTable(string barcode) { SqlCeConnection connet = new SqlCeConnection("Data Source =" + sqlPath); ; connet.Open(); string sqlSelectText = "select * from OutTable where inBarcode = @inbarcodeValue or " + ...
0
7001d9005e8735bca04403a47c0d2895
280ae867a3e44913d43e973bd0fbdc1f
Function to sort the letters of the string in ALPHABETICAL order
public abstract class Text public static String sortLetters(String input) { char[] d = input.toCharArray(); Arrays.sort(d); return new String(d); }
1
d77fe9337637ae9bcd2b06afe5c6e1b1
6356cb1897037448e826e543a69454a8
calculate resistance by delta v/delta I
def calc_rset(dac_max_v, i_out_max): return dac_max_v / i_out_max
1
aeed542680916df035a4374f0c3dc762
dc3bcb29f2a8da65c679b5ebcb26c9c0
浅复制 如果输入为null,返回一个空的集合
public class ListUtils public static List copy(List l) { if (l == null) { return null; } List result = new ArrayList(l.size()); for (int i = 0; i < l.size(); i++) { result.add(l.get(i)); } return result; }
0
549503f0509da665430e0603cfbeb67d
eb046c4a90e8f356a08a64ad9fe1fcdf
Método encargado de devolver información sobre una materia
{ $materia=Cache::remember('materias',15/60, function() use ($id) { return materia::find($id); }); if(!$materia) { return response()->json( ['errors'=>array(['code'=>404, 'message'=>'No se encuentra una materia con ese identificador.', ...
1
84d2166e2e6fff9946817d10b5d6969a
2d05ebb8a6233cd0125477bacbf3a60a
Returns the MetaType information for the given bundle symbolic name
{ if (this._imp != null) return ((MEIPackage)this._imp).FindDataType(typeName, typeStereotype); else throw new MissingImplementationException("MEIPackage"); }
0
18b08ee792e77f3930f0621d638d3c4c
23a0fb18011b17b3e7eb51d4e665d7d5
功能:获取所有训练模式的信息 返回:二维数组
class ErrorModelLearner(Learner): def get_training_information(self): return self.training_infomation
0
2e5ab12ae3d1d28e9877c305eb0a831f
eacec529e395f46a155853397cde4648
打开盘点窗口
$this->workground = "finance_center"; $base_filter['confirm_status'] = $confirm_status; $params = array( 'title'=>'盘点损益确认', 'use_buildin_new_dialog' => false, 'use_buildin_set_tag'=>false, 'use_buildi...
1
410a124dcfae677150a18f4c2f3cfff1
ed94074efadfd1cd986eded9918940e2
推送不同市场分区的交易对信息
{ while (ChinaMarketValue.isStartMarket) { try { object obj = ChinaMarketValue.blkMarketInfo.Take(); if (obj is TDFMarketData) { TDFMarketData data = (TDFMarketData)obj; ...
1
84ae7e2286e00073c6d27514a7b5a6d2
17e4dc27f3026dd70f023f8fde94ed44
检索指定展览下的地图
public final class Exhibition public static void GetExhibition(String code, Callback<Exhibition> callback) { ServerTask task = new ServerTask(code, callback); task.execute(); }
0
a29cf6cb78ecfc1d32259394b684ba78
bac0f7ffb33ef08f3e96399d43a05deb
Get Latest Post Comments
class PostCommentController extends Controller public function index() { $post_comments = CommentPost::with('post')->latest()->get(); return response()->json($post_comments, 200); }
1
ea019d3ae93c1e04548348a23056030f
179f2b2cb73740a6e88336cd26384125
ツーペアを判定する
class PokerGame def two_pair?(hash) hash.values.count { |v| v == 2 } == 2 end
1
53d890316e0970c05d1cb60665e34a69
97387497c4ca39477f1017739f7b7dfa
Getter method for enabled, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/ip_profile/dhcp_params/enabled (boolean)
class yc_state_openconfig_interfaces__interfaces_interface_state(PybindBase): def _get_enabled(self): return self.__enabled
0
7d55d1f69fbb3ae948e5e425813488be
aced306b3a869f7c0424e7b2f970ce28
Attempts to schedule the specified packet to send through the specified link at the specified time.
_lastTrySendPos = posIdx; boolean ok = ((_currentOutPacket == null) && (_outQueue.size() > 0)) || ((_currentOutPacket != null) && _currentOutPacket.isReadyForTransmission()); if (ok && !_willSendACK && !_pendingCS && !_pendingACK) { AirState airState = (AirState) getNode().getLayerState(LayerType.AIR); ...
0
c9ce318b8ae535fae36a4af25b3ded38
5ec72d47d65de8f15d79dd9f811d5112
Makes a list of units sorted from closest to farthest.
const std::vector<int> &ids = getAllMyUnitsForType(-1); std::vector<sEntityForDistance> result = std::vector<sEntityForDistance>(0); for (auto & unitId : ids) { cUnit aUnit = unit[unitId]; double dist = map.distance(aUnit.getCell(), cell); const sEntityForDistance &entry = sEntityFor...
1
6147062a0a16250c0fcb11e763dd1847
83a4798be6982140cb250dd28b71d417
get list of files, load first one as preview
if (files.length - 1 == currentPreviewID) { currentPreviewID = 0; } else { currentPreviewID++; } if (files[currentPreviewID].url.length < 8) { previewerNext(); } else { preview(files[currentPreviewID].id, false); } }
0
f7092e158f34459ef8ee99ffb1b75381
f595ced8566d96f5a463ea9dc247a57c
public accessor method - get the two norm value
public double norm2();
0
59a5e07a953eb3bc5dfd767201dd02c9
27a273d6f755e13f564805bcff3041a8
Pretty-print available models.
class Models(object): def list(self, count=10): import IPython data = [] for _, model in zip(range(count), self.get_iterator()): element = {'name': model['name']} if 'defaultVersion' in model: version_short_name = model['defaultVersion']['name'].split('/')[-1] element['defaultVer...
1
7a58a4fcd58d575d8649181826d29d38
38c9ee3ae2fd1745f231a4379e98735a
Returns nonzero if the given sets are identical (same proj and dd)
gboolean ipset_is_equal(ip_set_t *set1, ip_set_t *set2) { return (set1->set_bdd == set2->set_bdd); }
1
a41581331bd9577ffc02040c8d6dbcd6
339e3a7a197c217af95384f6ce9cb816
Constants
ConstantField() : Ex(0.0) , Ey(0.0) , Ez(0.1) , Bx(0.0) , By(0.0) , Bz(0.0) {}
1
d87014ffff100752be77d7e08e095680
32550e1a57c16326e3c01e3c0170b1c0
updates the portraits and decks based on what the user chooses
public class VehicleSelection : MonoBehaviour public void changePlayerPortrait (int piPlayer, int piChoice){ transform.FindChild("Players").GetChild(piPlayer).GetComponent<Image>().sprite = transform.FindChild("Vehicles").GetChild(piChoice).GetComponent<Image>().sprite; }
1
4d2b7cf1e64f511c10c4a85a51aeb7cd
accf87a4a8f4747e62edc07b6056bac6
Method to send a message with auctionResult to a parent-agent
boolean sold = possibleWinners.size() > 0; AuctionResult auctionResult = new AuctionResult("", auction.getCurrentPrice(), sold, getAID()); if (parent != getAID()) { ACLMessage inform = new ACLMessage(ACLMessage.INFORM); try { inform.setContentObject(auctio...
1
b001fe43380601912215009879d278e5
217c2af5963990cbff1c22ba87c0bb8d
Change the button image when mouse enters (graphics)
public class InteractiveSplashHandler extends AbstractSplashHandler private void createUIListenersButtonCancel() @Override public void mouseEnter(MouseEvent e) { fButtonCancel.setImage(CacheImage.getCacheImage().getImage( IAppconstans.APPLICATION_ID, IImageKey.LOGIN_CANCEL_BUTTON_LIGHT_IMAGE)); }
1
8e9b3b8153199c9b38a62e8d5d203558
dd2a0a2411b9c3a590a652c39b99c7ca
制动控制算法
public class ControlRST implements IControl private void exec_LINECTRL_ALGO_PID() { double kp = 0.387; double ki =0.00001; double kd = 0.0000001; int speedconst = 35; leftMotor.forward(); rightMotor.forward(); e = this.lineSensorRight - this.lineSensorLeft; double x=currentPosition.getX(); double ...
0
cd712040a84030ac5809cb07f52cd90b
97f1e1d12c72daf8e94f449a914ec309
部分ロードか?
namespace serial bool isPartLoad(const crc32_t name_crc) { return isPartLoad() && isLoadTarget(name_crc); }
1
9c2fef5cb52cc998d1a8b074d238e700
d980666457c6c9cc73c21fdb52e09a71
Render clean facet link to series
path = path_for_facet(facet_field, item) val = facet_display_value(facet_field, item) content_tag(options.fetch(:tag_name, :li), :class => "facet-label #{type_class(val)}") do link_to_unless(options[:suppress_link], facet_display_value(facet_field, item), path, :class=>"facet_select") end + render...
1
a942c7a9baff9e08565e0d9f1b2bed74
86df37c298d1fe0221d815f8fd47c58a
加入輸入提示和輸入框
public class ChatSettingActivity extends MineBaseActivity private void showInputDialog(int hintStringId, View.OnClickListener listener) { edtContent.setText(""); edtContent.setHint(hintStringId); btnConfirm.setOnClickListener(listener); mEditDialog.show(); }
1
22db456d127dee78e8d4a9e385c8c248
8199084b4aa1b51a7bfa889e07aee28c
Find a Questionnaire by a campaign id
{ var campaign = Context.Campaigns.SingleOrDefault(c => c.Id == id); return campaign; }
0
07016aea886b426e22afb3ae1cfe4d45
d30fa9dc68674423fb8fa7afd4836f37
dummy test to give travis something to do
def test(): return 666
1
77c35d3056392eb658509f13034c43ae
d09fa9d9c4c4ae9d174f9aaf89c0ef0e
Download chunks of data, process them, and write to files.
n = 0 res = [] features = [] num_k = -1 for file in files: if len(postnum_recorder) != 0: num_k = postnum_recorder[n] * (chunkid + 1) / chunknum title, text = get_input_data(file, path) text, postnum, feats = process_posts(title, text, num_k) res.append(te...
0
eb3f7e1b107d801b4c1be4dff3e1cb58
979cb1500c4f4386f65a9b8fb5363e1d
构造函数 - 私有
function public:constructor() end
0
5920c28aa169ecdc6bd36c0efbfcabb6
6217d375ce6efb40a558451288cde803
Fonction lors du clic sur le bouton de nouveau salon
void FDemarre::SNouveau(void) { FCreation* fc = new FCreation(); fc->show(); }
1
2060184c19d2bc1c0b87f334b29c2454
06c2e194c054ea817cc0c605f8746110
When the application is launched, the current exchange rates are read from the European Central Bank website using the XML parsing service
URL url = null; try { url = new URL("https://www.cbr-xml-daily.ru/daily_json.js"); query = new CBR_query(); query.execute(url); } catch ( IOException e) { e.printStackTrace(); } }
0
d9af042071f05380982e96b68e3c1d3a
f5071bf765262fa211e971c7ef0e9ec9
Metodo para obtener el apellido del administrador
public final class Administrator public String getLastName() { return lastName; }
1
7b1c4e987e3a75cf09d6de3c8fe6c5d6
13d3d2531c20386720ffc176a8982dba
各プレイヤーの順番を引数で受け取り、そのプレイヤーの初期手札を返す
{ $playerHands = []; for ($k = 0; $k < count($players); $k++) { $playerHands[$k] = []; for ($j = 0; $j < $numCards; $j++) { <<<<<<< HEAD $playerHands[$k][$j] = $shuffledDeck[0]; unset($shuffledDeck[0]); $shuffledDeck = array_values($shuffledDeck); } ==...
0