query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
d563123b6afed2548b8e6f04d0618ab8 | 5478a3258300bb06d9dd7532c645c99c | Process one object call from the stack | {
if (this->_objectStack.IsEmpty())
{
return STATUS_INSUFFICIENT_RESOURCES;
}
*object = (this->_objectStack[this->_objectStack.Count() - 1]).object_;
this->_objectStack.Remove(this->_objectStack.Count() - 1);
return STATUS_SUCCESS;
} | 1 |
81032fa9737e9928b60a5eba62ff838c | 6c6322c8d455830b1b06a779656afef8 | Füllt die Liste der verwendeten und nicht verwendeten Schnittstellen auf, damit diese auf
der Oberfläche zu sehen sind. | public class ClientGUI extends JFrame
private void refreshDetails() {
massenInfoClient = cSteuer.getMassenInfoGrenzList(false);
struktInfoClient = cSteuer.getStruktInfoGrenzList(false);
fillMassenTable(massenTableDetails,massenInfoClient);
fillStruktTable(struktTableDetails,struktInfoCli... | 0 |
c123756610038788f2c70b1bf4a7a694 | 2757f538f2f23c4da1bf37affdd87801 | 更新数据库的SQL语句的统一方法(参数是ArrayList)
SQL语句
参数list | @Override
public void update(final String sqlName, final List list) {
try {
if (list != null ) {
this .getSqlMapClientTemplate().execute( new SqlMapClientCallback() {
public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException {
ex... | 1 |
97eeae374f9432ac00c19142874fa66f | a91f3ca61b041a59e0fd9e30b9a958d4 | 获取岗位下的课程ID | try:
user_id = int(class_id)
except ValueError:
return APIResult(code=False)
if user_id <= 0:
return APIResult(code=False)
@dec_make_conn_cursor
def main(conn, cursor):
try:
cursor.execute("""
SELECT
career_course_id
F... | 1 |
95a7af93995d4b1c4c0db0fa65777ec4 | 2287a82133984133a14900332ed921e1 | Returns True if the component is contained in this pocket | for (int x = 0; x < size(); x++) {
Pocket pocket = elementAt(x);
if (pocket.getName().equals(pocketType)) {
return pocket.isEmpty();
}
}
System.out.println("Pocket not found");
return false;
} | 0 |
1d7922ad01bc8c21947623467f0c579c | e8de60e6cc5e0e64232c655e13ce11d3 | Check inputs of data for SVM testing generator | class KnnClassifier(object):
def _check_test_parameters(test_images, test_labels):
try:
if test_images.shape[0] != test_labels.shape[0]:
raise ValueError("Parameters test_images and test_labels have different lengths")
if test_images.shape[0] == 0:
raise V... | 0 |
2a173f9ce4dfd5542eb4771cd842d4d0 | d39ba17666742ace4b1f86fc80efde38 | Removes all the vdoc fields from the database. | @ProviderType
public class vdocOrgUtil
public static void removeAll() {
getPersistence().removeAll();
} | 1 |
41a562b5f348b5e7c247263d99a61e92 | 265b4071ddd8941ad650a2d13b986cac | Проверка, не зарегистрирован ли уже данный дефект | namespace JMP.BLL
public partial class jmp_defect
public bool Exists(int d_id)
{
return dal.Exists(d_id);
} | 1 |
d0255a8b218b6a44a1260a0fad3c76ee | df0cea3ca364d756114d9907033de64f | Shows all items in the database | async index({ params }, res) {
let allItems = await Item.findAll(db);
res.json(allItems);
} | 1 |
3ec2b4dc9c3ea795cea1bd6c3521cfff | f3ec831c5c8f80df7846d8c84ca042e2 | Tells you if a group exists with the specified handle | class AccountManager:
def group_exists(self, gname):
abstract() | 1 |
8591384dd0b9fce0eef0a0ee708f91d0 | bb2e8bb7070c3474ba1ff52d649420be | 群组信息和成员有变动,同步到ROL(合作分析)(传递GroupPsn对象) | void updatePdoAndCorrectGroup(WrPdoInfo wrPdoInfo); | 0 |
a7f4284b47fd08011f5a5efc46972108 | eb3cd5e1b7723cf99f9e366a8e368b4f | Navigate to NetworkInformationScreen From Home Screen | namespace network_toolkit
public partial class MainPage : PhoneApplicationPage
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
panorama.DefaultItem = panorama.Items[(Application.Current as App).homescreen];
g... | 0 |
ea407c01c2a54c11c894826483e5f9e8 | 0b08a32e26bd587d3548faded4eba5eb | 获取一个iframe元素 | var iframes = parent.document.getElementsByTagName('iframe');
for (var key in iframes) {
if (iframes[key].contentWindow == window) {
return iframes[key];
}
}
return null;
} | 1 |
f2ea94795f3ad6efb7c1e1e9d945d1f0 | 3d2f2396056c7a709b4d0b5cef8292aa | 客户端同步计算测试 | func ClientAsync(client *srpc.Client) {
var in InputParam
var out OnputParam
in.A32 = 500
in.B32 = make([]uint32, 50)
for i := uint32(0); i < 50; i++ {
in.B32[i] = i
}
done := make(chan *srpc.Result, 1)
client.CallAsync("Add", in, &out, done)
result := <-done
if result.Err != nil {
log.Println("call metho... | 0 |
bc0c59db31b92e34c3846b85b85fcd69 | 27b429f520b4d159b7f785502ad33761 | Gets the value of the groupable property.
possible object is
{@link Boolean } | @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "entityDocument", propOrder = {
"alternatedDocumentCode",
"alternatingDocumentCode",
"alternativeDocumentId",
"appliedPoint",
"area",
"areaId",
"attachment",
"builtGroup",
"chiefId",
"code",
"commentContent",
"confirmT... | 0 |
75f67f1d828726ab125d17346abb0d79 | fee232ba367572a15f41f664299e94a0 | 获取当前系统的计算机密钥。 | public final class CredentialUtil
public static long getComputerCredential() throws SocketException {
long credential = 0;
final Enumeration<NetworkInterface> netInterfaces = NetworkInterface.getNetworkInterfaces();
while (netInterfaces.hasMoreElements()) {
final NetworkInterface net... | 1 |
3270701a7b8f5921237b5e61e771bc72 | b3d4855213bc0d344266f1bb5d3f89cc | Deletes all rows from the WARRANTY2 table. | public int deleteAll()
{
int ret = -1;
ret = jdbcTemplate.update("DELETE FROM " + getTableName() );
return ret;
} | 1 |
60d99e81e53bf3f3edeba71ac16d0a6c | 20406601b0b36e2d8dabdd8146d86aa7 | 验证上传文件的文件头信息 | if ($file['error'] !== 0) {
$this->error($file['error']);
return false;
}
if (! $this->checkSize($file['size'])) {
$this->error = '上传文件大小('.$file['size'].')不符!';
return false;
}
if (! $this->checkType($file['type'])) {
$... | 0 |
3d322a5c8757c5bb6ad22c861bb0b3a2 | 1fe55f6015216d065f2135efe4df5f5c | 万为单位 | if (value >= 10000)
return (1.0 * value / 10000).toFixed(2) + '万'
return '' + value
} | 1 |
f63f16f177edf8cb4ddd55d79e95470c | 71b88be5a7117ed338867291f391716d | Устанавливает одноразовость клавиатуры | public class Input
public static void setRepeatEventsEnabled(boolean repeatevents) {
Keyboard.enableRepeatEvents(repeatevents);
} | 0 |
5c0c188fb5cc2f41558d46e2fcd7584c | 8750cceeda08ef86c0bfb2920b86db52 | Test_ListClustersUnauthorized tests listing clusters with a 401 response. | def test_list_zones_no_authorization(shared_zone_test_context):
shared_zone_test_context.list_zones_client.list_zones(sign_request=False, status=401) | 0 |
5b34042de606a6e3d7db5445a219773d | d0864e1868eed89a262a23bde55b7044 | Remove an action listener from the menu item. | @JavaBean(description = "A popup window containing menu items displayed in a menu bar.")
@SwingContainer
@SuppressWarnings("serial")
public class JMenu extends JMenuItem implements Accessible,MenuElement
public void removeMenuListener(MenuListener l) {
listenerList.remove(MenuListener.class, l);
} | 0 |
b6ec382def00c70487d8c9422f79b363 | f53404d794fb4cbd06e00c8dfe1cf640 | 找到与目标用户兴趣相似的20个用户,为其推荐10house | def getRecommendation_status(data,customer):
result = []
for user in data:
sum = 0
for food in data[user]:
time = data[user][food]['esti_time']
time_text = ''
if(time>4 and time<10):
time_text = 'morning'
elif(time<15):
... | 0 |
6fdef9e46639d7c44d47a802d362c496 | ec6fcc84b46ba7ab34b77380b0c0dadf | получает количество досок, минус один, так как последняя не доска | public class BoardHelper extends HelperBase
public int getBoardsCount() {
return wd.findElements(By.xpath("//*[@class='icon-lg icon-member']/../../..//li")).size() - 1;
} | 1 |
0bc25cface735fbb025506c6041a4395 | 847de670f419a188f370640ad00c3ce7 | Called once the amount input field is edited and changed. | public class MainActivity extends AppCompatActivity
@Override
public void onTextChanged(CharSequence s, int start, int before, int count)
{
try
{
billAmount = Double.parseDouble(s.toString())/ 100.0;
amountTextView.setText(currencyFormat.format(bi... | 1 |
55c89dfd35e0569196f96bbf29efea6f | 4c4d510c616897664661655e976b8077 | コンストラクタテスト。
Serviceに正しい値が設定されること。
Service以外のプロパティの初期値がnullであること。 | namespace Nec.Nebula.Test
[TestFixture]
public class NbOfflineObjectTest
[Test]
public void TestConstructorNormal()
{
var s1 = NbService.Singleton;
NbService.EnableMultiTenant(true);
var s2 = NbService.GetInstance();
s2.TenantId = "s2_tenantid";
... | 1 |
49d53678aa4c3d7c2e3a29db7cfdbb9f | dccea10ee60170ab8bd9fa2344b7d0a3 | Add custom styles to the input fields that are not valid | inputClassNames(forField) {
return this.checkoutSchema.isFieldValid(forField) ? "" : "inputError"
} | 1 |
dd9034d467a9f085fafc42fac08e6d51 | 14c2679116b6bb15857367166be610e5 | Returns Integer EPOCH time of last submission. | _path = "/v1/posts/update"
_params = {"format": "json"}
_response = self.do_http.request(path=_path, params=_params, do_raise=False)
_json = _response.json()
return dtf.epoch(_json["update_time"]) | 1 |
bcf3989969b956aea9da5071eb7abade | 3f1bd69e33007ef0c19ed31db531a86c | Display all necessary elements when resets the game. | class gameStatus(gameElements):
def _reset(self):
self.__showScore.update(self._score)
self.__showLife.update(self._lives)
self._resetElements() | 1 |
5f3f49f155f6c517428b7605087e377d | 63f30dd177cd79f0aec267dc996062e9 | Converts pixel position (x or y) to chart coordinate | export default class Chart
convertToPixel (value, finder) {
return this._chartPane.convertToPixel(value, finder)
} | 0 |
77a6ccd84e297ca17c37be380df614ce | 26311e6b3e40bda51fb2965ce86d85ed | 设置这个月有多少天 | int year_num = newValue + START_YEAR;
if (list_big
.contains(String.valueOf(wv_month.getCurrentItem() + 1))) {
wv_day.setAdapter(new NumericWheelAdapter(1, 31));
} else if (list_little.contains(String.valueOf(wv_month
... | 1 |
202638c1681b659e2e2679de8bdd67e7 | c553ce7d35318ad618f7ac0cd56787a2 | Sets the strumento evento persistence. | public abstract class SegreteriaServiceBaseImpl extends BaseServiceImpl
implements SegreteriaService, IdentifiableOSGiService
public void setStoricoStatoRiunionePersistence(
StoricoStatoRiunionePersistence storicoStatoRiunionePersistence) {
this.storicoStatoRiunionePersistence = storicoStatoRiunionePersistence;
} | 0 |
6b745c597f405a8775b3269bf0b7621a | 7b4f6a2ef1bed86e2d2c538305a3fb51 | Metodo ausiliario che conta le occorrenze degli elementi singoli del campo codice istituto | Integer getNumInstituciones(String camposOrden, String tipoOrden,
InstitucionDTO insDto); | 0 |
da42f8c29c632606275a7e5b5a40d04b | e7918cb72f6f5cc3038532c9ac740541 | Fetches a password by a browser fingerprint | class Password(Resource):
### !! we put the parser at the class level - so
## single PoC
#parser = reqparse.RequestParser()
#parser.add_argument('price', type=float, required=True)
def get(self, UniqueID):
password = next(filter(lambda x: x['UniqueID'] == str(UniqueID), passwords), None)
... | 0 |
855d07f889791619e6db0c7a4bea6949 | 677200e965cdb68af96bbd5ccffd0c5e | get order of tree (maximum number of children) | public class BTree<Key extends Comparable<Key>> implements Graphvizable
int getOrder() {
return 2 * m_ + 1;
} | 1 |
4218ddbc260745ff7567b2beb85b8a10 | 17d8057bcec2cb659c2c464a9efc86cd | Tests whether constants passed to custom operations don't cause exceptions. | public abstract class OperationTests extends AbstractTest
@Test
public void testIntegerMODopConstants() throws IOException {
reasoningTest("integerMODopConstants", 0);
} | 1 |
7728c92a5c6bd51ccd78b14cce5357a3 | 2ea21558477eba6c1b3a1785f85b5f3d | Test get "feel like" algorithm type. | class FacebookPipeline(object):
def process_item(self, item, spider):
def get_feeling(max_min):
feeling = ['great','ok','bad']
feeling_great_max = self.feelings['great']['max']
feeling_ok_min = self.feelings['ok']['min']
feeling_ok_max = self.feelings['ok']['max']
... | 1 |
fd0164d69d380500f94ba4a3a3611266 | 63cee3c4fc74443126d031018172fd45 | A reference to the client the bank information refers to | class ClientBankAccount extends \AppBundle\Entity\ClientBankAccount implements \Doctrine\ORM\Proxy\Proxy
public function setClient(\AppBundle\Entity\Client $client = NULL)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setClient', [$client]);
return parent::setClient($client);
... | 1 |
0c774d09322f48afb87744f3d0ceb31a | 4952c7aa1b9b67de603e9fc0d9e05902 | This function gets the value that will be multiplied times the
incoming source value. | public class ConversionPanel extends JPanel
public double getMultiplier() {
return sliderModel.getMultiplier();
} | 1 |
237149640ab0b8178d0fe61a1cf8a66f | 81f297570c16e945a5f24a21c288f652 | 判定每个节点是否选择了签批用户
步骤:1.找到该工作流实例对应工作模板中的所有节点,在handle表中判定是否有对应签批用户信息,有的话进行下一步check,否则提示直接返回 | public Result getNextUserTask(String instanceId,List<String> deptCodes){
Task task=taskService.createTaskQuery().processInstanceId(instanceId).singleResult();
if (task==null){
return Result.error(400,"流程未启动或已执行完成");
}
HistoricTaskInstance historicTaskInstance = historySer... | 0 |
97b9d5bdbca9164b33f52a0a54fee83c | 2d4667b084b41256e8863fc7143cac3e | 格式化金额,将金额四舍五入 | public class NumberUtil
public static Double moneyFormat(Double money) {
String result = moneyFormatString(money);
return Double.parseDouble(result);
} | 0 |
3d93944989b28f041ad5ce81589522ff | 0b9ee1e1e55c3c3991ccf506436364c7 | 获取波段需求列表 | namespace IMClass
[Serializable]
public class Jo
public DataSet Get_Mfg_JoRlseDemandList()
{
ComDB db = new ComDB(_db_type);
StringBuilder strSQL = new StringBuilder();
DataSet ds = new DataSet();
strSQL.Append("SELECT ... | 1 |
adc812732982759d5f5a5c36e7ea3651 | 056b3fb30c466398d85817536b819a1d | Bubblesort-Verfahren, um die Einsätze zu sortieren | void bubbleSort(Data array[], int size)
{
Data temp;
bool swap;
do
{ swap = false;
for (int count = 0; count < (size - 1); count++)
{
if (array[count].Ins > array[count + 1].Ins)
{
temp = array[count];
array[count] = array[count + 1];
array[count + 1] = temp;
swap = true;
}
}
} ... | 1 |
b50cb432c130705b0792674f19392ed1 | fd77429d8f85a446ff646cd6c208c0ad | The method <c>ValidateApplicationDate</c> edit checks the application date for the enrollment transaction.
The date is required and in a yyyymmdd format. | {
if (entity == null)
throw new ArgumentNullException("entity", Localize["NullParameterErrorMessage"]);
if (entity.LeavingDate == null && (entity.TransferType != null || entity.DestinationSchoolID != null || entity.DestinationName != null))
ValidationDicti... | 0 |
d2443d227749df6cd52672381f2f2347 | ecade57a683305947983db7077b834d1 | Sap xep mang theo thu tu giam dan | int i, j;
PMH temp;
for (i=0;i<n-1;i++){
for (j=i+1;j<n;j++){
if (thanhtien(pmh[i]) > thanhtien(pmh[j])){
temp = pmh[i];
pmh[i] = pmh[j];
pmh[j] = temp;
}
}
}
} | 1 |
cd3ef0a4ab10855c4cb0e2f24f2d4f31 | 45e34b608cdb4c48ad20ad79a013f7fa | Ask user all question on exam and track score | {
while (!inProgress)
{
int tScore = this.NumberOfQuestions();
this.targetScore = tScore;
GetQuestion(this.questionsList, this.targetScore);
}
if (Input.GetKeyDown(KeyCode.E))
{
OnQuizEnd();
}
} | 0 |
3de0fbc30dfb065f2a92a5901f27439b | 01d457c019a41a7f473bb7509b26e22b | Returns the logical block (sector) size from a block device file.
The underlying call is BLKSSZGET. An alternative command is blockdev,
but that needs root permission even if we just want to get sector size. | def get_dev_block_size(dev):
block_sz, cmderr = utils.execute('blockdev', '--getsz', dev,
run_as_root=True)
return int(block_sz) | 1 |
1ae61859cf336c538f5e6817a79fbd6d | 7b56044a11b7a3e2048496d36e4981c2 | "dyi/dt" in formula, Calculates change in neuron at each time step | class neural_network():
def dsigmoid(self,y):
self.dans=y * (1 - y)
return self.dans | 0 |
cafd8b1f64b0bfe986eab76502d39a90 | 56eac592826f50c46a0e1ad7f270fccb | dohvataju se id svih sastojaka | public class Sastojak implements Serializable
public int getKolicina() {
return kolicina;
} | 0 |
971c086e2c66a5493a388ad535fb26e5 | a82266030e65784ccbfccd2fd419e538 | 生成oauth2.0 token与refresh_token | if self.__has_user_auth:
from .oauth import refresh_access_token
self.__user_auth_token,\
self.__user_auth_refresh_token = refresh_access_token(self.__user_auth_refresh_token,
self.app_id,
... | 1 |
96eca84a0d050e76f081cee48a234b0b | 5307c46cd35fc755313bb607ac20f80b | ANCHOR: block_on_each | fn many_wakers() {
block_on::block_on(async {
let mut futures = FuturesUnordered::new();
let wake1 = Rc::new(RefCell::new(None));
let wake2: Rc<RefCell<Option<Waker>>> = Rc::new(RefCell::new(None));
let woken = Rc::new(RefCell::new(false));
{
... | 0 |
133dace81b991ede893f062c923498e7 | 7515f6bea90ef18fd77193c2bb64fd48 | Bluetooth 経由でネットワークに接続されている IP v4 のアドレスを持っているか確認します. | public function hasIpV4() : bool; | 0 |
6b35be56b905cee6b72bcb5e524b84ad | fb601f9f772b041c303c3a9f5e9abd5c | Ensure we unblock any code waiting for initialization, and surface the error to the caller. | DldInitialize( )
{
ASSERT(!DldpIsInitialized());
DldpRegisterComponent();
DldpAssertDelayLoadFailureMapsAreNotSorted();
__pfnDliFailureHook2 = DldpDelayLoadFailureHook;
DldpSetInitialized();
} | 0 |
3170ce7e61bfac75f637da2f2f456ae1 | 2a46e0db6e9789823d7e310987e24c37 | Returns an array containing elements at indices in the specified [indices] range. | public ReadOnlySpan<T> GetIndexArray(Span<byte> source, int offset, int count)
{
return this[source, offset, count];
} | 0 |
e9613f906d71b484fb2c43e8a92e7902 | 1a39067069577d504985aa06247a7b20 | initialize with the target Sprite sheet,
along with the dimensions of the sprites | class SpriteSheet:
def __init__(self, filepath, rows, columns):
self.rows = rows
self.columns = columns
self.sprite_sheet = pg.image.load(filepath)
self.width = int(self.sprite_sheet.get_width() / columns)
self.height = int(self.sprite_sheet.get_height() / rows) | 1 |
7597b102167270e7040ec1c13ed6f1e7 | b0317581a7db04f7e0851e09bc216b38 | 查询部门下所有班组信息 | {
string sql = "select DtGroupId,DtGroupName from DtGroup where DtId = (select DepartmentId from Department where DepartmentName = '{0}')";
sql = string.Format(sql, DepartmentName);
return SQLHelper.GetDataSet(sql);
} | 1 |
9e41ec2db51d3c57a89db2483bb933bc | 623f3df061089af66cee380e0074577a | 申明联合主键 | namespace LunhuiApp.Models
public class CoreDbContext : DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Gongde>().HasKey(g => new { g.ObjID, g.eventID });
} | 1 |
26413764213bd1c2083afb99f23463d1 | d5153c44bdf512305e13796e7363a5fe | Cache compiled regex as a property. | public final class Regex
public static Regex compile(final String pattern) {
final Regex cached = regexCache.get(pattern);
if (cached != null) {
return cached;
} else {
final Regex re = new Regex(pattern);
regexCache.put(pattern, re);
return re;
}
} | 1 |
2dc11dd1191d057e37c3a90ac4512cd9 | 84cb28e95bccf23be1b69d134e65edc3 | 按时间降序查询 | AdminEventQuery orderByAscTime(); | 0 |
6407bb48af6b8f3401e09147cd99ea93 | d8e6800cf5dc2ee3b2fd150be8bf00ae | Non-local Means denoising algorithm based on block matching and weighted average of grouped blocks | int calculate_gldm(int *image, char *mask, int *size, int *bb, int *strides, int *angles, int Na, int Nd, double *gldm, int Ng, int alpha)
{
size_t Ni;
size_t i, j;
size_t* cur_idx = (size_t *)malloc(sizeof *cur_idx * Nd);
size_t a, d;
int dep, diff;
size_t gldm_idx, gldm_idx_max = Ng * (Na * 2 + 1)... | 0 |
36ce25559b5d79f4b56ecb9993c36519 | 74f6e9abfc68387014fa25edbe79a385 | Processes the receipt of a chunk. Returns true and sets the message stream if a full message has been received. | {
this.lastChunk = Encoding.ASCII.GetString(this.Buffer, 0, bytesRead);
if (!lastChunk.Contains("\r\n"))
{
this.currentData.Add(lastChunk);
return;
}
List<string> messages = lastChunk.Split(new char[] { '\n' }, StringSpl... | 0 |
19f9220ecf76a5fdab84a2aebdf19143 | 3367daa614665f7f4842bc1015190c52 | Runs the menu as a sub menu | class Menu():
def menu(self):
if self.run_menu:
self.run_menu = False
else:
self.run_menu = True | 0 |
bf599fbd4bc1da7ff0e6ef126e05b65e | 90b95dabaa9df5cfaf776185c9b50457 | 初始化SDK,并配置SDK配置文件存储路径 | super.onCreate()
SDKInitializer.initialize(this)
SDKInitializer.setCoordType(CoordType.BD09LL)
val kits: MutableList<AbstractKit> = ArrayList()
kits.add(DemoKit())
kits.add(TestSimpleDokitFloatViewKit())
kits.add(TestSimpleDokitFragmentKit())
val mapKits: ... | 1 |
cb2c052a2301e99bd49683874202db9f | f860c7ca0614427aedbd7e2329320bb2 | Unsets the "Ean" element | public class SellerRefundOrderLineImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.cdiscount.www.SellerRefundOrderLine
public void unsetEan()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EAN$0, 0);
}
} | 1 |
7e37bd6d2b746e2892d3421a5794dd4f | 673fde3bdff3a2aef3442d5f14b0f4fd | Function to calculate scores for both regression models and classifiers. | predicted_train, predicted_test = get_most_probable(pred_train, pred_test)
train_confusionmatrix, test_confusionmatrix = calculate_conf_matrix(
predicted_train, predicted_test, data_dict)
train_f1_score, train_g_score = calculate_f1_score(train_confusionmatrix)
test_f1_score, test_g_score = calc... | 0 |
392aad8ad5badda3bc549a15aff8f386 | d07293ce7acdc6863c6c4ee76beb61c0 | @brief WWDG Initialization Function | void InitWWDG(void)
{
ConfigWWDG(0X7F, USER_DEFINE_WWDG_WR, USER_DEFINE_WWDG_FPRER);
} | 1 |
5ed7a2f38c0925f997a961ddeb3b279b | 452ec0707a2f2b6bd5d4717cef5e4de3 | Insert a App in the database. If the App already exists, replace it. | class AppPage implements AppPageInterface
public function insert($AppPage) {
return $this->dao->insert($AppPage);
} | 0 |
8f68a7871c975c889f9d440a2c4d887e | ab2752002d37b961f46251d6b21b8578 | <pre>
参数n转换为二进制之后1的个数
</pre> | int count = 0;
String str = Integer.toBinaryString(n);
for(int i = 0; i < str.length(); i++){
if(str.charAt(i) == '1'){
count++;
}
}
return count;
} | 1 |
bc45f63705d04ae01eb3fc1062a4bb36 | fa4217e4dea4780b4753736d4976a114 | Расчет пермутированной важности признаков. | class RFGVBaseForest():
def _permutation_importance_Breiman(self, X, y, sample_weight, group_idx, random_state, n_repeats, scorer, estimator):
random_state = check_random_state(random_state)
X_permuted = X.copy()
scores = np.zeros(n_repeats)
shuffling_idx = np.arange(X.shape[0])
... | 1 |
68c9ad8915319a9a98fce0fb1c6b6abc | 3a7d81e395aeb536cc4b93f6894c7363 | Calculates the code position of the calling Log.XXXX method. | StackTraceElement stack[] = (new Throwable()).getStackTrace();
int ix = 0;
while (ix < stack.length) {
StackTraceElement frame = stack[ix];
String cname = frame.getClassName();
if (cname.equals("java.util.logging.Logger")) {
break;
... | 1 |
843a6308c186a1da5f06c25b4752147d | e64d84acc83d54fd242292fe1de01a1c | Добавить о ноде историю блоков в SQL | {
pdbalias = ( pdbalias == undefined ? a.valueof("$sys.dbalias") : pdbalias );
var datum = ( pDateNew == undefined ? a.valueof("$sys.date") : pDateNew );
var toInsert = new Array();
var i;
var histcols = new Array("historyid", "relation_id", "entrydate", "medium", "direction", "subject", "date_new",... | 1 |
73338358ca35c87259538ff9c44a0075 | 3bc32cc9d66bf3fad0828a8f748bb575 | Remove the data value designation from the glossary term. | MetadataCorrelationProperties correlationProperties,
String glossaryTermGUID,
boolean forLineage,
boolean forDupl... | 1 |
4eb2ab5b409293cde684a80be2c611b3 | dec8908a2dbf9e0e92f42452d3423079 | Get a list of running processes and order them by their name | class IOsConnection(metaclass=abc.ABCMeta):
def get_running_processes(self) -> list:
raise NotImplementedError | 0 |
ac60d75bdbd3d07b83d56c3fe7749e05 | 3da7d81d5ef0352fdfb31af2e08dc36d | Get the cable's rated current. | public class ServiceDeliveryPoint extends IdentifiedObject
public float getRatedCurrent() {
return ratedCurrent;
} | 1 |
a52f88970f7d44341b23e024b21a4c93 | d89901c62806e4f915234d401bce3066 | this method executes kicking the ball in the opponent goal center
(much could be improved here; center is not always the best target) | class BasicRule(systemRule):
def corner_goal_kick_player(self):
if self.player_last_touch_ball() is not None:
player = self.player_last_touch_ball()[0]
if self.in_ball_out(self.ball[0], self.ball[1]) == 1:
if player[:3] == "red":
return "goalkick conce... | 0 |
8a15fcf3d1ae02421a37b9473905b16f | 40e7d98400a5dbe0f4aee79362b00930 | reads from stdin
and writes to stdout | void readStdin(){
char* line = NULL;
size_t len = 0;
ssize_t read;
while((read = getline(&line, &len, stdin)) != -1){
processLine(line);
}
} | 0 |
1f7013288a2be66bd00e917e726ad322 | a9e5f1a330b36f0f6a00c1b38c9424e4 | Gets the grouped channel prototypes. | namespace Discord.Rest
internal class DiscordRestClientAbstraction : BaseDiscordClientAbstraction, IDiscordRestClient
public async Task<IReadOnlyCollection<IRestGroupChannel>> GetGroupChannelsAsync(RequestOptions options = null)
=> (await DiscordRestClient.GetGroupChannelsAsync(options))
... | 1 |
b4062bc937657b8fcca02ce148424626 | 39ce22fbcab880218f20d98f5ead5f96 | create and populate a hex string input/output field | QWidget* CItemDelegate::createEditor ( QWidget * parent,
const QStyleOptionViewItem & option,
const QModelIndex & index ) const
{
QLineEdit *editor = new QLineEdit (parent);
QRegExp hex_in ("[0-9A-Fa-f]{0,8}");
QValidator *val... | 1 |
0152880067593c9ecdacd083c9893e9e | 1e7478ba9fcf6ce14da7972f38b2753b | @brief Permet de rajouter un dislike dans la table | function dislikePost($db, $newPostID, $newUserName)
{
$sql = "delete from PostLikes where postID = '$newPostID' and userName = '$newUserName'";
$db->query($sql);
$sql = "insert into PostDislikes values (null, '$newPostID', '$newUserName')";
$db->query($sql);
} | 1 |
1f3f07fd6b885c82060a4555c885be3e | da0f1eff58fd09e7dbf086b19017702e | returns a coloured username link for a phpBB user | if(typeof serveur == "undefined") {
serveur = ze_serveur;
}
return '<a target="_BLANK" href="http://' + serveur + '.fourmizzz.fr/Membre.php?Pseudo=' + pseudo + '">' + pseudo + '</a>';
} | 0 |
2d4f93a0fd9602de69163c28b751b0aa | ea2cdabd9f0fe8f6b663241709fafa1c | 所有便签 | {
$notes = new notesModel;
$data = $notes->getLists($this->request->param());
$class = NotesClass::field('id,title')->cache('notesclass_all', '3600', 'admin')->select();
$author = Member::field('id,username')->cache('member_author', '3600', 'admin')->where('type','neq','0')->select()... | 1 |
7c6fb45fc94e1db49cea1c2eefe10c24 | f4a0778d8c081af2af4597e789cf62ce | Get user profile information.
https://developers.line.biz/ja/reference/messaging-api/#get-profile | @Suppress("ComplexInterface")
interface UsersMethodGroup
fun getProfile(authToken: String): io.hndrs.slack.api.group.users.UsersGetProfileMethod | 0 |
6b9b661bcaa3f662a411fed91e5db116 | 8d9fb70fc8ac200aabdaa68dba063887 | Create an instance of {@link SetConfigProperty } | @XmlRegistry
public class ObjectFactory
public SetAudioSourceConfiguration createSetAudioSourceConfiguration() {
return new SetAudioSourceConfiguration();
} | 0 |
44c251521cfb3f7ebb715ca0c76b3a94 | 6ad080770cdf954bfbe8c2dc0b5c9726 | Preenche a tabela 'planejamento_aulas' de acordo com os dias letivos configurados para o plano | {
$horarios = HorarioClase::where('Horario_clase.rol_id', '=', 2)
->get()->groupBy('dia');
$fechaPorDia = getFechasDeSemanaEnFecha("today");
foreach ($horarios as $horariosEnDia) {
foreach ($horariosEnDia as $falta) {
$asistencia = Asistencia::where('h... | 0 |
39709665619d1dc4f7bb9dcbbeda7f8e | bbd346fc81f6961cded7d456f8b832d5 | function to get the synonyms | this.contextSyn = [];
this.editContextService.getContextSynonym(this.contextval)
.subscribe((res)=>{
res.map((data)=>{
data._fields.map((syn)=>{
if(syn.labels[0]==Config.component.Synonym){
this.contextSyn.push(syn);
}
})
})
}, (dataError)=>{
... | 1 |
c5d57e439982e2b6647b29077c13a7a2 | fdd602ac59267464539d9fd18064dd0f | Cuenta la cantidad de lugares vacíos que quedan en el tablero | int Juego :: contarEspaciosLibres ()
{
int espaciosLibres = 0 ;
for ( int i = 0 ; i < tab.filas.size() ; i++ ){
for ( int j = 0 ; j < tab.filas[i].size() ; j++ ){
if ( tab.filas[i][j].getValor() == " " ){
espaciosLibres++ ;
}
}
}
return espac... | 1 |
ec7ce712636b039d563657242b6e044f | 4498cfcb96bac4f2364063e554d614fb | Phase shift all profiles to match profile at
basis index. | static int pswitch(bb_t *bb)
{
int i, j, id, i2, j2, id2, n, nh;
double tmp;
n = bb->bins;
nh = n/2;
#define PSWAP(arr) \
for (id = 0; id < (n*nh); id++) { \
i = id / n; \
i2 = (i < nh) ? (i + nh) : (i - nh); \
j = id % n; \
j2 = (j < nh) ? (j + nh) : (j - nh); \
id2 = i2*n+j2; \
tmp =... | 0 |
6b1e771890c35c5e010a2c13239c7883 | db407da740b5cdbd4b5102bfb4bc81c8 | Cette méthode modifie le nombre de compagnie possédés par le joueur
Le paramètre indique le nombre de compagnie possédées par le joueur | public abstract class Personnage implements Serializable
public void setArgent(int n_argent) {
argent = n_argent;
} | 0 |
f491b66214e0a44aa81437cf3e302dfa | ca5144db55ec7551dc1fffc7f80eb398 | get recent inserted member details | class Pp_RaidPartyManager extends Pp_RaidManager
function getPartyMemberNewest( $user_id )
{
$param = array( $user_id );
$sql = "SELECT * FROM t_raid_party_member WHERE user_id = ? ORDER BY date_created DESC LIMIT 1";
return $this->db_unit1_r->GetRow( $sql, $param );
} | 1 |
a3094439f7b8642abb8b5380b1cf6447 | b7ecf8b5d123f8c77ba9f48b85e5f9d2 | Get the suffixes used by this library, in order
Features are given names of the form <prefix>_<suffix><number>.
An example of which would be "cell_haf11" where the prefix (defined
by the preprocessor) is "cell", the suffix is "haf", and the number
is "11". This function informs the calling framework what all of the
suf... | public function getSuffixes(): iterable; | 1 |
ebd74fe348c56cfdd3bd196be2454a22 | e32ae62e891254055329a7d251aaad93 | 匹配 != | if match_action is None:
return self._java_ref.notEqual(expr1, expr2, match_case)
else:
return self._java_ref.notEqual(expr1, expr2, match_case, _j_match_action(match_action)) | 1 |
cb464bfedda8bb494d02bdff3e511448 | cfe685857dbcf03bf5751a38a5c29767 | procédure qui met à jour les éléments html et css correspondant l'emploi du temps en mode Line | "use strict";
var event = event || window.event;
var Element = event.target.parentNode.parentNode;
var Container = Element.parentNode;
var duration = 500;
if (!Element.hasAttribute("style")) {
animationCall(Element, duration, 0);
var indicator = window.setTimeout(function() {
Element.remove();
dynamicHe... | 0 |
5e7ff883306c740a5abc521df96fd4dd | 49441c7c4b768b55721b21f5234138bc | 返回可用物理内存(以 MB 为单位) | namespace FXC.Core.Utils
internal static class PerformanceInfo
internal static Int64 GetPhysicalAvailableMemoryInBytes()
{
var pi = new NativeMethods.PerformanceInformation();
if (NativeMethods.GetPerformanceInfo(out pi, Marshal.SizeOf(pi)))
{
return Conve... | 0 |
7f5671a7dd7516f32ebef32bbb24a95b | 65a7b6359cc956ba54dacab1d142fce3 | 可通 | bool CanJoinOpenList(LNode* cur)
215 {
216 if (cur->x > -1 && cur->y > -1)
217 {
218 if (!isExist_closeList(cur) && !isobstacle(cur))
219 {
220 return TURE;
221 }
222 else
223 return FAULT;
224 }
225 return FAULT;
226 } | 1 |
6e15d59d3c61d852efd09538b2640ae6 | 518787d373b69c99d63ee4e00c4cf7b1 | Get the raw options. | class ListOptionsProvider implements MultiSelectOptionsProviderInterface, SelectOptionsProviderInterface
public function getOptions($context, $fieldDefinition): array
{
return $this->getRawOptions();
} | 1 |
dad028baf4692d4c73cbe1c4e434564d | 25956e1a302cb80ee051aa4f6cc7a4ea | Связь с моделью документа "Счет" | class GlJtemplateDet extends \yii\db\ActiveRecord
public function getAccount()
{
return $this->hasOne(GlAccount::className(), ['account_id' => 'account_id']);
} | 1 |
e47b1d8eb39746292901a2bfd493ed33 | 1fbd86ef9619d188d01637440e004518 | Function Name : usb_cstd_RelBlk
Description : Release a memory block.
Argument : uint8_t id : ID number (mailbox).
Return : USB_ER_t : USB_E_OK / USB_E_ERROR | qmdcsrelevtbk( struct qmdcsevtblock *eventbkp )
{
if( eventbkp->qmdcsevtmemfreep!= NULL )
{
mmbufrel( eventbkp->qmdcsevtmemfreep);
}
mmbufrel( (swi_uint8 *)eventbkp );
} | 0 |
327d8abe5cbd601f89f05c6b37c70c23 | b5c504c2d6f8ff6a163cc9132baab95b | Removes invalid/empty data from DTO | for (let propName in data) {
if (
data[propName] === null ||
data[propName] === undefined ||
data[propName] === ""
) {
delete data[propName];
}
}
if (data) delete data.eTag;
return data;
} | 1 |
ac7dbbc3d630cdb1dde653432658a5b1 | 85e0860df2234048f5d0fc94790d17dd | Retrieves list of specific type from R variable | JNICALL Java_org_rosuda_JRI_Rengine_rniPutList
(JNIEnv *env, jobject this, jlongArray o)
{
SEXP t=R_NilValue;
int l,i=0;
jlong *ap;
if (!o) return 0;
l=(int)(*env)->GetArrayLength(env, o);
if (l<1) return SEXP2L(CONS(R_NilValue, R_NilValue));
ap=(jlong*)(*env)->GetLongArrayElements(env, o, 0... | 0 |
4854479c40ec675883ae74f418b60105 | b7422a19a68e0fc1461af5b26a45b714 | 视差背景效果 | namespace VultrMgr
public sealed partial class MainPage : Page
private void initGlass(UIElement glassHost)
{
Visual hostVisual = ElementCompositionPreview.GetElementVisual(glassHost);
Compositor compositor = hostVisual.Compositor;
var glassEffect = new GaussianBlurEffect
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.