query_id
string
corpus_id
string
query
string
code
string
label
int64
fc0484f69164aa92b9258b551b7691cd
f08db159d0422c65c63a1670a4b0f97c
设置确认按钮点击事件
public final class CustomDialog extends Dialog{ private void setConfirmBtn(Button confirmBtn) { this.mConfirmBtn = confirmBtn; }
0
ccd7ae2783a28fc764634164d3d8d3b9
0adb1a50d6332842ca9682dd3209ab40
Updates a Document as an asychronous operation in the Azure DocumentDB database service.
namespace Chesterfield public partial class CouchDatabase : CouchBase public TDocument UpdateDocument<TDocument>(TDocument doc) where TDocument : class, ICouchDocument { return UpdateDocument(doc, new Result<TDocument>()).Wait(); }
0
84a45debd80bf64f624920f6e33cd57e
490145fa01dbdf0af22773268cbcb469
Gets all the file documents that correspond to the filenames
namespace DPMS.Controllers [ApiController] [Route("File")] public class FileController : Controller [HttpGet] [Route("FAll")] public IActionResult GetAll([FromQuery] String fileName) { try { List<FileDTO> models = s.GetByFileName(fileName); return Ok(models); } ...
1
974c413ba5fc3b77ece45d46936307fa
b6ce1ea59de5dd3cf816fc9f77766279
some code (eg. winbindd) needs to know what uid we started as
void save_re_uid(void) { saved_ruid = getuid(); saved_euid = geteuid(); }
1
99c72b79f4eb57b379b17ef02b152707
26ab77e9b472180983cfbf44cacd5813
Constructs the guard by taking ownership of the handle. # Safety Be sure the handle must be freed with [`RegCloseKey`](https://learn.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regclosekey) at the end of scope.
impl ProtectGuard pub unsafe fn release(self) { ::std::mem::forget(self); }
0
cb0ee74d50a1dd86efd8d4f3bf55a6f6
2c8a29bb674d8328172908cd8d05e680
Enables or disables emulation of prepared statements
public final class CacheConnection implements Connection, StatementListener, Reusable public void setCachePreparedStatements(boolean cache) { if (cacheP && !cache) { try { flushSparePreparedStatements(); } catch (SQLException sqle) { pool.log(sqle); } } this.cacheP = cache; }
1
984f09079002f47d23f75961e923640c
37164e14cbc78b8a0f6c88f891a03f83
reset the given face component to default value
{ faceblend.SetBlendShapeWeight(0, 0); faceblend.SetBlendShapeWeight(1, 0); faceblend.SetBlendShapeWeight(2, 0); faceblend.SetBlendShapeWeight(3, 0); faceblend.SetBlendShapeWeight(4, 0); faceblend.SetBlendShapeWeight(5, 0); face...
1
c0684da5c8f432f95a84ae4aec6958fc
8f0a97bbd99c003c72407b73a86e263d
Printing out all of the data inside of a .obj file.
void PrintObjModelInfo(ObjModel* model) { const tinyobj::attrib_t & attrib = model->attrib; const std::vector<tinyobj::shape_t> & shapes = model->shapes; const std::vector<tinyobj::material_t> & materials = model->materials; printf("# of vertices : %d\n", (int)(attrib.vertices.size() / ...
1
2490549ec33cace92bd402ed2a229750
58ada6bd40b900ccfa64b613b487703d
Return error if length is not definite
{ $this->invalid = 'Length'; if (is_string($var)) { $len = strlen($var); } elseif (is_array($var)) { $len = count($var); } else { $len = 'unknown'; } $this->message = 'input length : `' . $len . '`'; return $this; }
0
b41b35969c9a51d0b0ddc6fc625d80b8
2a2f240245a18d714ac58306f4e73e38
按收件人删除邮件
$model = M('邮件'); $map['id']= I("get.id/d"); $map['_string'] = "(收件人='".USER_NAME."' AND 收件人类型='".$this->userobj->name."') or (发件人='".USER_NAME."' AND 发件人类型='".$this->userobj->name."')"; M()->startTrans(); $result1 = $model->where($map)->delete(); if($result1){ M()->commit(); $this->success...
1
4fadb1cb6a91ec6173f8c444c26cb77c
c606096de91db0ba82ede897060c4b26
Loading Indicator Directive
link(scope, elem, attrs, ngModel) { let maskEl = $( `<div class="spinner loading-mask"><div class="bounce1"></div><div class="bounce2"></div> <div class="bounce3"></div> </div>`, ); if (attrs.loadingMask !== 'true') { maskEl.hide(); } maskEl.appendTo(elem); scope.$wat...
1
faa4468c93edcda6164e0afcd4355059
85323d381cafc35b2a6a42f262e0a44e
Получить список операций по плановой дате и статусу
{ var result = new List<StorageOperation>(); string query = UrlConstuctor.GetStorageUrl(auth, date, type); var doc = new XmlDocument(); doc.Load(query); XmlNodeList errors = doc.GetElementsByTagName("error"); if (errors.Count == 0) ...
0
1c660b8f62e5a48cc2589162afa4162a
820f7fd599bdf36cc4e83244f921e912
Creates a new Miles object if there isn't one already.
namespace Homework7_1 class Odometer public void SetMiles(double miles) { if (miles >= 0) { this.miles = miles; } }
0
2cf42c58deb13f08d5b97d9d3393ca5d
22d9ac03cc9d47b96b44695cdcf25c57
Returns a new object of class '<em>Contactable</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
ContactMethod createContactMethod();
0
c6e31f789d61a27e71a48377ac117fe2
d9744cd2b6d0ee3995dab59f655a63cc
Notify the user that the account and e-mail were deleted.
const mailOptions = { from: `${APP_NAME} <noreply@firenode1.com>`, to: email }; mailOptions.subject = `Bye!`; mailOptions.text = `Hey user!, We confirm that we have deleted your ${APP_NAME} account.`; return mailTransport.sendMail(mailOptions).then(() => { console.log('Account deletion confirmatio...
1
a5e252a8dd081d96975745ef14cedb8f
2abc2d1a6777a2916d3534e06c6f25a6
Estimates wind speed values at target height based on another measured wind speed at a known height subject to a power-law scaling factor.
def convert_10_2(wspd, height): u1 = wspd z1 = height z2 = 10 p = 0.11 u2 = math.pow(z2/z1, p) * u1 return u2
1
589fb4b5ab1054d7eab822c5aca97bc5
ca1c715f47b453524ce33f7af7f929be
根据采样得到的六维向量,计算出各臂的位置
function IK4(index) local tabRadTh = {0,0,0,0} local posTgElbow = {num,str} posTgElbow.num = { {posElbow[index][1]}, {posElbow[index][2]}, {posElbow[index][3]}, {1}, } posTgElbow.str = { {posElbow[index][1]}, {posElbow[index][2]}, {posElbow[index][3]}, {1}, } local posT0Elbow = {} local ...
0
a6867a86a5e68f63fdcf36dbe8a9b8b6
845962a1fb3ca2b663ee0ba33bd893e0
c_get_win_bits
static dict_T * get_win_info(win_T *wp, short tpnr, short winnr) { dict_T *dict; dict = dict_alloc(); if (dict == NULL) return NULL; validate_botline_win(wp); dict_add_number(dict, "tabnr", tpnr); dict_add_number(dict, "winnr", winnr); dict_add_number(dict, "winid", wp->w_id); dict_add_...
0
c8f69874c43f062f81632b17e76c6391
adb6bb3360f46cc9f67c41a649fce1df
Return plugin for given format type.
$format = clean_param($format, PARAM_ALPHANUM); $classname = 'mlang_'.$format.'_parser'; if (class_exists($classname)) { return call_user_func("$classname::get_instance"); } else { throw new coding_error('No such parser implemented'); } }
1
7c1df8512df1e297c7d4f2f1b5c52cc0
1c907e6687e85cc6824347613c134752
Create a command for building a new station.
class StationController extends BaseApiController public function create() { return 'Not implemented'; }
0
081683d6276d17c7a016ff9044176d07
29c1bd9c1128528df2d86dbf4afd5baf
1- Funcion para modificar la puntacion.
query = {"usuario": user_id} result = list(collection.find(query, { "_id": 0, "usuario": 1, "puntos": 1, "tipo":1 })) if len(result) > 0: result = json.dumps(result, default=json_util.default) points = json.loads(result) new_points = points[0]["puntos...
1
c905a170a462b880b6620cd0880477ad
a1167b4f06ac3b333e3c5f98b46474c7
Стандартна реалізація нерекурсивного пошуку в дереві пошуку
void search_non_recursion(Node *a, int x) { while (a) { if (x == a->data) { cout << a->data << ". " << endl; return; } else if (x < a->data) { cout << a->data << " "; a = a->l; } else if (x > a->data) { cout << a->data << " "; ...
1
8f66024edfaaae6854219ad0417824b8
f4c242cea409526f268bd90cf7de481c
retorna todas as confirmações do banco relacionadas ao perfil
class ConfirmMvp extends ActiveRecord implements ConfirmationInterface public function getResponds(): ActiveQuery { return $this->hasMany(RespondsMvp::class, ['confirm_id' => 'id']); }
0
240d849910712f7d8e33d40a30913bdf
1d3a726900703b4db0b5ba2fc3df5ad2
Should the application auto-discover the requested resources. Valid values are:
class LoadJobConfiguration implements JobConfigurationInterface public function autodetect($autodetect) { $this->config['configuration']['load']['autodetect'] = $autodetect; return $this; }
1
dc4c57052a8166f5246fd5fcd82f3df7
7f61448ad6da3ef0f9cb03f40c5be655
IA VS IA
cases like (1)
0
1b742c5658ed16f350b9237c38beeead
19c6ede7aef0baaf8dfb4f96c3fe1834
Поиск человека по максимальному возрасту
{ struct man *q, *p; int i, m = person->age; p = person; for (i = 0; i < N; i++) { if (person[i].age > m) m = person[i].age; } printf("%d", m); }
1
70b718a6b080519332dc8869a2d5ccc6
9b9535c8501469f273b1bc0d4b837364
Try to wake the specified machine
class LifeReq(object): def freeMachine(self): HTTPRequest.put(self.host + "/lifepoints/jobs/?machine_id=" + MachineID, {'job_state': '0'})
0
19b7d9b28f5d3b1880141eb5a9218583
61f57be6ae7cfe8ff332acb64f8bc1c2
Gets html_body
{ $partialPath = self::partialPath($this->html_path); $this->html_body = static::$client->get($partialPath); return $this->html_body; }
1
525ef8ad4b2eaf696af98cead20b14ca
c68cfddb46ac290d33cf96769f06647f
При клике на автора или тег, запускает поиск вопросов
let element = event.target; while (element.id !== "main-tag") { element = element.parentNode; } if (!element.classList.contains("selected-tag")) { deselectTags(); haltEditing(); element.classList.add("selected-tag"); element.classList.add("selected-tag...
1
f74952a51447b60fcf2844cb4ec6a714
b0d5610c3012577d6f11a0606bb5a2b7
Формируем иерархичную структуру меню по данным из бд
$menu = $this->work_model->getTree($parentID, $this->lang_id); if(!empty($menu)){ foreach($menu as $view){ if($view['id']==$pathIDs) $on_path=1; else $on_path=0; $this->domXml->create_element('main_menu','',2); $this->domXml->set_attribute(array('another_pages_id' ...
1
2362da47d86fa49c1258e3b6c96b0d90
71fbae4682013bc01dfeba853a260c00
Encuentra el nodo mas cercano dentro de un grafo específicado a la posicion inicial dada.
public class GraphInformation public static GraphNode getClosestOf(@NotNull GraphNode[] graphNodes, @NotNull Vector3D position) { GraphNode closestGraphNode = graphNodes[0]; float closestSquaredDistance = Vector3D.getDistanceSquaredBetween(getPositionOf(closestGraphNode), position); for (int i =...
1
46bbd8f8f18bd3070772bb8c85b0f55a
3341160eb076f80421e017bb8c7f077a
Issues ID to a Footballer.
id_team, name, id_user, user, arena, division, group, clasification, streak ): self._id = ObjectId(id_team.zfill(24)) self.id_user = ObjectId(id_user.zfill(24)) self.name = name self.user = user self.arena = arena self.division = int(division) self.grou...
0
3223b3012417ecbe1b365aa4a6a9e876
83f5dc60689816f9255eabd2b07073a5
Elimina il focus dagli elementi correnti, utile per ripristinare la visualizzazione del logo
export class FormulaInputComponent implements OnInit, OnChanges removeFocus() { this.focusedElement = {}; }
1
a6473cf0da48fe9108a8b83be7fd18be
8eb60b027c520e4dd97db2c8fa56013a
Disables steppers
void enable_stepper() { P1OUT &= ~(ENABLE_PIN); }
0
ebf269928713c258f6b4e4d8b9fe0c53
55c2d0fecc130b7a73a0f1c486ead4c3
Returns the File resource representing the rank image.
class PlayerRanks: def create_image(self): CreateImage(self.titles, self.columns, '../extra_files/player_ranks.png', colour=self.colour_columns, convert_columns=True)
0
8fd0898bee4541228cbd8a7d3d26117a
99e6b9307af697e8e7b83be8ef14e6e5
设置资源文件索引
for (int i = 0; i < indexFiles.length; i++) { if (!indexFiles[i].finishFlag()) { cacheSortDatasFile[i].setIndexData(indexFiles[i].getIndexData()); } } }
1
3bf7fa713e2613348e9c81b99280d019
e77fb29d18e9276b1d43b4270aef4995
Register all product routes
class Rest extends Base public function register_routes() { register_rest_route( $this->get_namespace(), $this->get_rest_base(), [ [ 'methods' => \WP_REST_Server::ALLMETHODS, 'callback' => [ $this, 'get_items' ], 'permission_callback' => [ $this, 'permissions_check' ], 'args' => $this->get_item_arg...
0
d1f0292d1007a4a6fd9c3fc987e666c2
c533a341dc1da9d845dcecfd13b84967
下一頁加載之后事件
attached () { this.triggerEvent('new', {page: 0}) }
0
fe172f77bd381f09620dc76ec0f8d8d5
b1d94ee034c7de4dce8e7c5ae9d66581
返回一个被旋转的精灵图
val m = Matrix() m.setRotate(rotateDegree.toFloat(), resource.width.toFloat() / 2, resource.height.toFloat() / 2) try { val bm1 = Bitmap.createBitmap(resource, 0, 0, resource.width, resource.height, m, true) return bm1 } catch (ex: OutOfMemoryError) { } ...
1
40b57e3483fc6c99ebf04346e92621d8
beb5fd60d0f20f85d1a37718e4121bff
Installs VMware Tools on the guest operating system. <ul><li>Installs VMware Tools on the guest operating system. If VMware Tools is already installed, this function upgrades VMware Tools to the version that matches the Vix library. <li>The virtual machine must be powered on to do this operation. </ul>
{ if (installsection.PostInstallOperations != null) ConfigureForXenServer(xenSession, vm); if (installsection.Info == null || installsection.Info != null && installsection.Info.Value.CompareTo("ConfigureForXenServer") != 0) InstallSectionSt...
0
81a840ed6407c5763c6ffda594a24221
abd67700223973ee86668ba52c8c5cb6
Consulta lineas del plan con metas sin avances
{ $sql="SELECT o.name AS carrier, cs.id, cs.vminutes, cs.vrevenue, cs.vmargin, cs.cminutes, cs.ccost, cs.cmargin, cs.posicion_neta, cs.margen_total FROM (SELECT id, SUM(vminutes) AS vminutes, SUM(vrevenue) AS vrevenue, SUM(vmargin) AS vmargin, SUM(cminutes) AS cminutes, SUM(ccost) AS ccost, SU...
0
a69664b103238efec138ae3d39a72957
1fa0180f75620374609b9eb7fe508bcd
图片节目单列表
class Resource extends CI_Controller public function picList() { $this->smarty->assign('action', 'picList'); $this->smarty->display('header'); $this->smarty->display('resource/lefter.html'); $this->smarty->display('resource/righter_pic.html'); $this->smarty->display('footer.html'); }
1
6fe9cba6cf1fec6c4b75f0b2edfd2ad7
809073d1460f7e21003400bf1fb52f79
Remove a Fluid Tag as a valid Coolant source
$sql = sprintf( "DELETE FROM cs_caffeine WHERE cid=%d AND cuid=%d", $cid, $profileid); return (_handle_dml_query($sql) === 1); }
0
8f29a3d5f74c29e3b89601137fac394f
40cc3df6aa0c05c55a1f87aa6200b444
computes poisson probability for the observation with given lambda
def poisson_approx(t,λ): return approx(t*λ,3*sqrt(λ))
0
6d476cbe3864a42c164c1a4d75343fce
af327b6d000c7ac492fba694b2157bb7
获得任务的负责人
LOG.info("获取指定项目的负责人, 开始运行【getLeaders】service..."); List<Long> ids = this.projectStaffRepository.findLeadersByProjIdAndIsDeleted(projId, MdvnConstant.ZERO); if (ids.isEmpty()) { return null; } String retrieveLeadersUrl = webConfig.getRetrieveLeadersUrl(); retu...
1
0da0f4e506a3ff07d478cee8b1d27e89
9bfe35cc7ad40be98478eb5e4a1a6f07
predicting defectiveness of a file/tree : param tree: 2b-evaluated abstract sytax tree : returns: likelihood of defectiveness 0-1
def GetLoss(tree,attribute): if(IntTree(tree)==True): return GetNumLoss(tree,attribute) else: return GetCharLoss(tree,attribute)
0
a7620a1dd53d67af221672b4f8a9a16a
918c2d6160ff27f48aa49dba2ac6b6fd
hdfsReScanForeignScan Restart the scan. Basically close the active resultset, and again execute the remote query.
static void ktReScanForeignScan(ForeignScanState *node) { elog(DEBUG1,"entering function %s",__func__); }
0
f4c100f7f612604829d223d643c09071
221230cbb9a592dbdb2545d3a990df10
Lấy ra một khách hàng khi biết số cmnd
{ string str = "select * from KHACHHANG where status=1 and sdt = '" + sdt + "'"; DataTable dt = new DataTable(); dt = database.Execute(str); if (dt.Rows.Count >= 1) { this.khachHang_tb = dt; return dt.Rows[0]["idKH"].ToS...
0
c39b00d08d3c473f4617f78fe780af64
bdf85f7968f63d9f3ebca6e8b58d0ecf
Returns a implemented culture based on desired "culture names" parameter.
{ var requestCulture = _cultureSelectors .Select(x => x.GetCulture(workContext)) .Where(x => x != null) .OrderByDescending(x => x.Priority); if (!requestCulture.Any()) return string.Empty; foreach (var culture in...
0
8f8389b30680e647fd5bb84b9a953032
e44d0f5049ca823471a550d94ff9fbe7
根据彩种获取开奖结果表名 @author ruizuo qiyongsheng
switch gameName { case "jx11x5": return "EX5_JiangXi" case "sd11x5": return "EX5_ShanDong" case "sh11x5": return "EX5_ShangHai" case "bj11x5": return "EX5_BeiJing" case "fj11x5": return "EX5_FuJian" case "hlj11x5": return "EX5_HeiLongJiang" case "js11x5": return "EX5_JiangSu" case "gxk3": retur...
1
24b970537e182dcc927f45975fee49d3
f8fa0ff206d6b93fb5ddb61242a7e805
Asociar un repuesto a un Activo fijo
{ $fabricante = Fabricante::find($idFabricante); if(!$fabricante){ return resopnse->json(['mensaje'=>'El fabricante no se encuentra', 'codigo'=>'404'],404); } $vehiculo=$fabricante->vehiculos()->find($idVehiculo); if(!$vehiculo){ return resopnse->json(['mensaje'=>'El vehiculo no se encuentra asociado a...
0
91c3b9c13e0b8252ca699b6e4f50f22b
81178b62ac51f635646518027958106a
Regresa el apellido materno del nombre de la persona.
public final class RegistrarTelefonoPeticion extends ObjetoValor public void setApellidoMaterno(java.lang.String apellidoMaterno) { this.apellidoMaterno = apellidoMaterno; }
0
09dc8f4538ef59407557e5e7a537f70d
151c1d1faa3736ec974df23c0cab21be
6. CRF分词
CRFLexicalAnalyzer analyzer = new CRFLexicalAnalyzer(); String[] tests = new String[]{ "商品和服务", "上海华安工业(集团)公司董事长谭旭光和秘书胡花蕊来到美国纽约现代艺术博物馆参观", "微软公司於1975年由比爾·蓋茲和保羅·艾倫創立,18年啟動以智慧雲端、前端為導向的大改組。" }; for (String sentence : tests) { System.out.println(analyzer.analyze(sentence)); } }
1
2a1ccf45a28d16d358032decfdadca92
79f4aca2cb46ea5e9217b8c1aac28f88
根据AdminID里的areakey 获取所有的部门和部门下所有的通讯录人员
{ var userQuery = users.Select(User.BuildExpression()); var query = from a in userQuery join b in deptMembers on a.Id equals b.User_Id where keys.Contains(b.Dept_Id) select new { ...
1
5c0873ef9f0de8b397c60fbfacaaa8b8
fe7caaeb26774cca7b21d09338e2e342
Gets the ticketInfo Ticket details linked to the role eligibility request including details of the ticket number and ticket system. Optional.
public class TicketDataContainer implements java.io.Serializable public TicketData getTicketData() { return ticketData; }
0
17fb7bf352c881d85df3fcab076af0a1
33f2f07cef22413455728b64f3331104
Sets escape processing for this <code>RowSet</code> object on or off. If escape scanning is on (the default), the driver will do escape substitution before sending an SQL statement to the database. <code>true</code> to enable escape processing; <code>false</code> to disable it if a database access error occurs
void setAutoEscaping(boolean on);
1
e087d9812d3acb79af68b8afd0985da6
196ac9ca7b40ad8dda462278dd9f0b8a
ignores the table header row
def get_flight_plan_data_table_rows(table): return table.contents[1:]
1
425b24ecf8bf0dc8ef2f563626ad6efb
9dcb45521cfb6fdfffedde99bad24de8
保存されたキューにプロパティをセットする
class PropertySetter protected function queueValue($value) { $this->entity->queueValueCreation($this->property->id, $value); }
1
3035e2efb972372172f2cb0326b5fd9b
86871b3c30f885d304ad79a809d0ddfa
Dapper may pass a Enum instead of a string
namespace NServiceKit.OrmLite.SqlServerTests public class EnumTests : OrmLiteTestBase [Test] public void CanStoreEnumValue() { using(var con = OpenDbConnection()) { con.CreateTable<TypeWithEnum>(true); con.Save(new TypeWithEnum {Id = 1, EnumVal...
0
e7400a9f4b1550598591419c93c5877d
66bfc34403ddb6dce280015f189d9480
Exit programming mode and reset the device.
void L6470::resetDev() { dspin_xfer(dSPIN_RESET_DEVICE); }
1
1fee3aeabb4256933346c776b373f5f7
644fc87cce437542b9985e0fbf113ba5
描述:充值活动规则列表
class RechargeController extends AdminController public function index(RechargeActivity $rechargeActivity) { $actiArr=$rechargeActivity->paginate(15); return view('Admin.RechargeActivity.index',[ 'acti'=>$actiArr, ]); }
0
15a6db561d280cdc91ffeb6342428766
205bd9bc9bedde76eb299c9ac25224b5
Compute the number of clock cycles required for a multiply operation based on one of the operands.
{ int32 a = a0; int32 b = b0; int32 c = 0; do { if (a & 1) c += b; a >>= 1; b <<= 1; } while (a > 0); return c; }
0
8fe3cac26892a8faad104720157aa44c
d41b9f84c8a9c03e8438b7772abeac80
根据通知设置类型,查询通知设置分组信息
@RequestMapping(value = "/selectByParams", method = { RequestMethod.GET, RequestMethod.POST }) public String selectByName(HttpServletRequest request, HttpServletResponse response){ String name = request.getParameter("noticeTypeName"); Map<String, Object> resultMap = new HashMap<String, Object>(); NoticeType ...
1
2e1b86272ae17f4bd8cbc412568de048
2f8ed6591a11e68eadd93a55ab31a688
统计活跃用户,一周内登录过的用户
class CountActive extends Model private function _weekActiveCount($action,$today) { $startTime = $today-7*24*60*60; $map['action_id'] = $action; $map['create_time'] = ['between',[$startTime,$today-1]]; $users_num = Db::name('action_log')->where($map)->count(); $data['num'] = ...
1
61e429fa690c006fa3481d0391f62f70
d2c365884441fba0b735800fb8f0024a
根据UaClient连接相应OPCUA服务并调用启动订阅的功能
namespace EFWCoreLib.WcfFrame.ServerManage public class DistributedCacheClient public static void Start() { SubscribeServiceObject ssObject = new SubscribeServiceObject(); ssObject.publishServiceName = publishServiceName; ssObject.ProcessService=((ClientLink _clientLink)=...
0
3b06713817b822e7dbfda534ffc2f4a3
5aab3edc476f111e43df00fb4f6caf6c
Get the name of the current state that the business process is in
public String getCurrentState();
1
5d157de75b8de9307a7254ff1dbed871
1e06d9713c59d52dcf44ac3ed83aa85a
Cria a primeira geração de indivíduos
math.randomseed(os.time()) for i=1, TAMPOPULATION do POPULATION[i] = math.random(0, TAM_AMBIENTE) end for x=1, TAMPOPULATION do F[x] = Base.FxEq(POPULATION[x]) end end
1
70b9d3857a0c3573052e0cd3038c98b1
309f0c6b31736779a845031644c96d6a
Gets IDs for query filtering depending on the accession technology.
if to == 'accession': term = '{0}[accession] AND {1}[organism]'.format(identifier, organism) else: term = '{0}[gene name] AND {1}[organism]'.format(identifier, organism) details = {} url = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi" params ...
1
c381709c7e00aac33ff8884772aaaa50
864e53816a5b7cb047deb672dc7480df
Run `*args` in a subprocess, piping its output to stdout. Additional `**kwargs` are passed to `Popen` Subprocess errors are captured and raised as `CmdError`s
creation_flags = kwargs.get("creationflags", 0) creation_flags |= 0x8 kwargs["creationflags"] = creation_flags with popen_lock: return subprocess.Popen(*args, **kwargs)
0
21ea7dd8c3ed4df5137cbf81d989a1db
9be3f35a5e362d8112ef981ddd1f3eb8
Method to make a single square
class buildPattern(Mode): def drawSquare(mode, canvas, row, col, cellColor): canvas.create_rectangle(mode.margin + mode.cellSize * col, mode.margin + mode.cellSize * row, mode.cellSize * (col + 1), mode.cellSize * (row + 1), outline=cellColor, fill=cellColor)
1
de7404bcc563c1648c8f939bd122b3cb
4975a190e0d454d638c5a2e5c5a400bd
Time in nanos which need to wait until bucket will be fully refilled to its maximum
val now = System.currentTimeMillis() return 2 * TimeUnit.MINUTES.toSeconds(1) + TimeUnit.MILLISECONDS.toSeconds(max(nextFreeTicketMillis, now) - now) }
0
dc53f693f81b496adc6bd4ce1ab5aada
3d87347f91d13aee31996bd666f9263e
Loads the progress.
public class SaveManager : MonoBehaviour public void LoadProgress() { if (File.Exists(Application.persistentDataPath + "/saveData.dat")) { BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Open(Application.persistentDataPath + "/saveData.dat", FileMode.Open); progress = (Progress)bf.Deserial...
1
b15f2a824fcff9e7281961b89cd838b6
7a2f0d0f6e94df7c724b0ef83c564f9e
indicating whether the debug build warning was already shown
public class PrefsUtils public static boolean wasDebugWarningShown(final Context context) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); return sp.getBoolean(PREF_DEBUG_BUILD_WARNING_SHOWN, false); }
1
15c430cee44a923917a736307e96ba9c
171fad3fecf5187a1452a4c39d072aa1
prints the filenames of each node in the SLL
ListNode *traversalPtr; traversalPtr = head; while(traversalPtr != '\0') { cout << traversalPtr -> s.getTitle() << " By: " << traversalPtr -> s.getArtist() << " " << " Size: : " << traversalPtr -> s.getSize() << " MB" << endl; traversalPtr = traversalPtr -> next; } }
0
8fbb23a53a2cc22479787bb9974c5cad
14aca1d9a816b80240f97d5ce4a06ff4
Called after <see cref="Preprocess" />.
namespace PresetMagician.VendorPresetParser.AIRMusicTechnology.Tfx public abstract class Tfx public virtual void PostProcess() { }
1
a578a82b617813a4f3171d72a45a1787
e073aca6c701e8dfbc329479ce9b0f06
Behaves like \ref syntax_do "do", but evaluates the entire body atomically, i.e. without switching to another process, as long as you don't use the pausing functions \ref fn_receive "receive" and \ref fn_run "run".
void exeBlock(AST *body) { AST *stat = body; int idpsave = idp; while(stat != NULL) { exeStatement(getList(stat, 0)); stat = getNext(stat); } idp = idpsave; return; }
1
b37819d95b8460d21278566172aa00d0
158a59278302e52e758f6f403e8cc23b
Transform context file name.
class FileSystemContext implements Context public function transformFilenames($filename) { return $this->scheme . $filename; }
1
d563c633a4ef34e3b43d70aea440f441
9a123c5fcb542a0695bf9f2b44a6621d
Returns the value of the '<em><b>Brick Width</b></em>' attribute. <!-- begin-user-doc --> <p> If the meaning of the '<em>Brick Width</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
int getBrickCount();
0
8b449cc5cdd5d1e5cc10676e29e3dd01
6e9535ee9145de384dc434d10cc59e8c
Returns the percentage of ones in the binary dataset.
return Percent( summary_stats.true_positives + summary_stats.true_negatives, summary_stats.true_positives + summary_stats.true_negatives + summary_stats.false_positives + summary_stats.false_negatives)
0
efeb82d2b5fe09c9c762925cbe19b9c8
2803208b8ce5acf45efc5969ec4ba274
ボーンのローカル拡大率を設定する
void setLocalScale(float x, float y, float z);
1
aafc2c59a6723bee79da39be10b328e9
6675b5e91086ab97f0424f354d9ea259
Sets the flatness. Flatness: sets the maximum permitted distance in device pixels between the mathematically correct path and an approximation constructed from straight line segments.
public class Network public static void setFlatSpot(double flatSpot) { Network.flatSpot = flatSpot; }
1
75cca164a62f3c6794aafb18083be6ba
8c788b15156f39fd823516e3ab711b13
Function: load_game This function opens up a dialog box with a list of games in the shelf file 'boggleshelf.db' If a selection in the list is clicked, load the game with load_from_save
namespace Tinsel void InvLoadGame(void) { int rGame; if (cd.selBox != NOBOX && (cd.selBox+cd.extraBase < cd.numSaved)) { rGame = cd.selBox; cd.selBox = NOBOX; if (iconArray[HL3] != NULL) { MultiDeleteObject(GetPlayfieldList(FIELD_STATUS), iconArray[HL3]); iconArray[HL3] = NULL; } if (iconArray[HL2] !=...
0
9e9d0f1f958682f82737058a88f015ee
a41d1090f2dbd05471fdb2166d39875a
Ændrer bools i array, afhængig af checkbokse
class App extends Component readCheckboxes(array) { const topRowButtons = document.querySelectorAll(".top-row-btn"); const bottomRowButtons = document.querySelectorAll(".bottom-row-btn"); const topArray = []; const bottomArray = []; if (!array) { for (let i = 0; i < topRowButtons.length; i++) ...
1
3d62048534a69af1423cd311d5ede296
8783d34c29982fe9e4a5c39c5b78e306
Devuelve el nombre del elemento principal XML.
public class XmlMapping public String getElementName() { return this.elementName; }
1
03406de74161ef07d81fcb2069c24b0f
a6a9e5a183c2a058a57136aac9913c62
function to perform the readout operation at the end of the gntk calculations according to du et al. (2019) to get a final theta value
def choosing_final_time(qubit, sigma): deriv1 = np.abs(qubit.splitting_derivative(1)) deriv2 = np.abs(qubit.splitting_derivative(2)) deriv3 = np.abs(qubit.splitting_derivative(3)) Gamma21 = (deriv1*sigma) / (math.sqrt(2)) Gamma22 = (deriv2 * sigma**2) / (math.sqrt(2)) Gamma23 = (deriv3 * sigma**...
0
e26e3575a250d38566d079c8856e0216
48db99776fda44073f556bb1750907eb
如果下一个token是t,那么跳过并返回真
public class AnalyzerUtil public Token nextIf(TokenType tt) throws UnknownTokenException{ if(this.peek().getType()==tt)return this.next(); else{ return null; } }
0
4493bf8070ee33f2c783fa5d090ad1dd
5ddc6cb34b428615c90dcfed84e866ec
get activated countries for a specific payment option as an array
public function getBillingCountryIds($paymentMethodId);
1
cb539021620902a57ce0ef72857245a7
23062d2e958c2d698833585a839ae288
1 判断士兵是否有枪
class Soldier: def fire(self): gun = self.gun if gun is None: print("%s 还没有枪,无法开枪...") else: if gun.bullet_count == 0: gun.add_bullet(10) gun.shoot() print(self)
1
561148e634198b7f54d40b5cdb5f2d2e
35190409bc25e722b364178fdb6c136e
查询订单类型为银行卡支付的类型的订单
Order querypendingPayment();
0
bc140c2985f19f00e97c75b552ceb926
f2487e04e917cf5527c430cdf14023d3
Set the values of the corners to random values
void Triangle::InRandom() { x1 = randomValue.Get(); y1 = randomValue.Get(); x2 = randomValue.Get(); x3 = randomValue.Get(); do { y2 = randomValue.Get(); } while (x1 == x2 && y1 == y2); do { y3 = randomValue.Get(); } while ((x3 - x2) * (y2 - y1) == (y3 - y2) * (x2 - x1)); ...
1
43ce66c00f7dfba0d5c9a97b5c29e186
7f61448ad6da3ef0f9cb03f40c5be655
ref: https://blog.csdn.net/fuxuemingzhu/article/details/81017965
cases like (1)
0
c304cecc8f5aea84e05f33dd4244eb3c
13f7d6376a32086dd02bf0e0a50149ff
Retrieves process definitions filtered by process id or name
export default class ConfigServiceApi listProcesses(body) { return this.listProcessesWithHttpInfo(body) .then(function(response_and_data) { return response_and_data.data; }); }
0
195f9649d72f4f9b6b6729db4c8b1c09
83d4e026fa882f60705a12b09fa29279
Adds a new line to the map with a user-defined color.
def addLine(map): folium.PolyLine( locations = [x for x in map_location], opcaity = 0.5, color = 'red' ).add_to(map)
1
b68cbd9566f17f71fedc1e28d5132737
eccdb26a1a70a8b10f9b355df8360956
产品价格排序
var array_sort = this.self.state.trendingProductsData; for(var i = 0; i < array_sort.length; i++){ for(var j = 0; j < array_sort.length; j++){ if(parseInt(array_sort[j].price) > parseInt(array_sort[i].price)){ let _single = array_sort[i]; ...
1
f933ac44cf640ac4722f16a963517c04
5a9591b16f98d2a58a74809d1a12c65c
Function to modify the homepage
const url = "https://cfw-takehome.developers.workers.dev/api/variants" const response = await fetch(url) const data = await response.json() const variants = data.variants const URLRandomizer = Math.floor(Math.random() * 2) const webpage = await fetch(variants[URLRandomizer]) let manip = await webpage.text...
1
5abb8d13084fee37cade9673b8c8387a
aab4c5761872f98e4bb37f375e8cc1ef
Creates a new access token that duplicates an existing token. This function can create either a primary token or an impersonation token.
namespace SACS.Common.PInvoke [SuppressUnmanagedCodeSecurity] internal class Win32NativeMethods [DllImport("advapi32.dll", EntryPoint = "DuplicateTokenEx", SetLastError = true)] internal static extern bool DuplicateTokenEx( IntPtr hExistingToken, uint dwDesiredAccess, ...
1
416a5e05a44b49c75d9e63efaec75ca7
b6444fb248f613638bae4770f6222ea6
Stop all timers attached to this object. We can get away with this because all object pointers are unique.
virtual void Uninitalize(void) { m_handles.clear(); m_pServer->KillTimer(100); m_pServer->KillTimer(101); }
1
57dba8075541cacdecfc03d1c6c44a05
6cb4989f9d344662b1944ee1a9550c75
Initialize the python list. Non-public data.
class PyListStack: def __init__(self): self._data = [] self.temp_list = []
1
9b87971ca0bd7249da3cebc024075c73
b5d8ace406db0c3aaa8155364406b2b4
Set whether the dispatch target is specified as a full path or a logical name (e.g. ActionForward). Whether the dispatch target is specified as a full path or a logical name.
public class BusinessResult public void setDispatchIsPath(final boolean newVal) { _dispatchIsPath = newVal; }
1
a3072ffcd6036d63a78e04fac395de4e
ce70226b7c93bf1f1010857f4816f4cf
初始化Iconify
if (ICONS.size() > 0){ final Iconify.IconifyInitializer initializer = Iconify.with(ICONS.get(0)); for (int i = 1; i < ICONS.size(); i++) { initializer.with(ICONS.get(i)); } } }
1