query_id
string
corpus_id
string
query
string
code
string
label
int64
59c39be7a95501cbffce8e0ea772e590
7bdff38396c17565d29c46cc7e929797
根据目标id删除目标及下的任务
public boolean deleteTargetAndLowerTargets(String targetCode) { Map<String,Object> target = this.findTarget(targetCode); String targetParentCode = null; if(target.get("targetParentCode") != null) targetParentCode = target.get("targetParentCode").toString(); String delTargetSql = "DELETE from TARGET WHERE TA...
1
ba40a4e71a0a159b49bdab516b1283e0
492d380eadfd5ccb69a78cf74f5c5dd3
根据dataIndex查找gridPanel中的column集合
let arr = []; for (let i = 0; i < layer.numChildren; i++) { const grid = layer.getChildAt(i); if (grid) { if (typeof index === 'undefined') { if (grid.name.indexOf('grid') > -1) { arr.push(grid); } ...
0
ea88948262f6d202d818d4d4ee1d9b7c
facf3c036393aca62db105d0a1a96cdb
Tokenizes value of given attribute.
{ if (\count($tokens) === 0) { return null; } if (\count($this->tokens) === 0) { return null; } foreach ($tokens as $t) { $i = \array_search($t, $this->tokens, true); if ($i === false) { continue; } ...
0
e4c9e1b1ac87877e4261b12c9d829589
7ec8bbb7d1a571902ba6e1af973ce9d3
retorna formulario de nuevo pqr.
class pMigrarProductoController extends Controller{ public function getFormNewPMigrarProducto(){ Obj::run()->View->render("formNewPMigrarProducto"); }
0
a9fa2f34c9f7428701ce1570c199b0ab
9700ef28502845afacb470466c479fd6
Compute the orientations histograms.
self.compute_centroid() nose_positions = self.keypoints[:,:,0] centroid_origin = nose_positions - self.centroids x = centroid_origin[:,0] y = centroid_origin[:,1] self.orientations = np.arctan2(y, x) * 180 / np.pi
0
e254b178e47c4c44ff07b27b8b6fbced
0a60a7d3f55c4d6a90cf7867e9e2c0e5
调用微信收入接口前处理数据,包括sign验证等
class Query private function prepare($out_trade_no) { $encpt = new WeEncryption(); $data = array( "appid" => Config::getConf("WECHAT_APPID"), "mch_id" => Config::getConf("WECHAT_MCHID"), "out_trade_no" => $out_trade_no, "nonce_str" ...
1
6dd85dac5f36be9587e839a1e800bd7d
2b2ff8195042e1fcfd20dd6b418dd735
Free hook unlinks the HOOK structure from its hook-list and removes any hmod dependencies on this hook. It also frees the HOOK structure. 01-31-91 DavidPe Created.
{ int i; char *p; char *out; STRUCTPRM *prm; STRUCTDAT *st; PVal *pval; FlexValue *fv; fv = (FlexValue *)HspVarCorePtrAPTR( in_pval, in_aptr ); if ( fv->type != FLEXVAL_TYPE_ALLOC ) return; prm = &hspctx->mem_minfo[ fv->customid ]; st = &hspctx->mem_finfo[ prm->subid ]; p = (char *)fv->ptr; if ( fv->clonet...
0
c053274e715ebf7c60b9b982af1078a8
206a560ce99c1a5ea5815ee69fee7cf2
Returns whether to exactly count the results that match with the category facets.
public final class MetadataCategoryGetMetadataCategoryPropertiesRequest public static final class Builder public final Boolean strict() { return this.strict; }
1
ad37d3a1cbf7c94d5fe647bd05b67644
ad8bc5c272dffac93c3707b64d1aaff8
returns true if music is paused, else returns false
abstract class BaseRecorder abstract fun isPauseMusic():Boolean
1
2c722ce56192c5575bbe3818f6a35e4f
75f9ec990a36e63175a18ca00781685b
Returns the methods available to the current application
abstract class nglFeeder extends nglTrunk final public function __whoami__() { $aMethods = ["__destroy__", "__me__", "__whoami__"]; $reflection = new \ReflectionClass(__NAMESPACE__."\\".$this->class); $aThisMethods = $reflection->getMethods(\ReflectionMethod::IS_PUBLIC); foreach($aThisMethods as $method) { i...
1
7a82da2711a8a8745b23a9129e4e4834
424e88f27decb4abc5359d8e5415658a
Sums a segment of the array.
class SumSegmentTree(SegmentTree): def sum(self, start: int = 0, end: int = 0) -> float: return super(SumSegmentTree, self).operate(start, end)
1
7fdde5223fc5874938ca04e446b1b395
9b99ce076beae1d544ed40f3ddfaa428
This method isn't expected to be called multiple times
public class DefaultMapRowMapper<K,V> extends AbstractMapRowMapper<K,V> public void existingObject(Object currentValue, ResultSet resultSet, int position) throws SQLException { throw new SQLException("Can only map a key once; if you need to map it more than once override"); }
1
d923e4bec6fc2e2fabd6f3a8b1869926
02b64eadcf6e5f4c6f8ab4db8c186e87
POST: api/QuestionInfoes
{ ViewData["QuestionId"] = new SelectList(_context.Questions, "Id", "Id"); return View(); }
0
8b402c7f42e69c8301e7cee74c16a0ad
b15f275327ee8c82452fe8e445cbceb6
@brief This routine is used to generate simulated key press events It is called at KeyPressSimulationTimer expire time Used on boards without buttons
{ kbi_stat_sim = (uint_8)((kbi_stat_sim << 1) & (uint_8)0x0F); if(kbi_stat_sim == 0) { kbi_stat_sim = 1; } kbi_stat = kbi_stat_sim; StartKeyPressSimulationTimer(); }
1
03f920dd2876c7abe8ab4e79d75b13e0
656f1e3cb8a52998f16e7d13d2fcfb6b
保存教学管理队伍结构数据前 对录入数据进行校验
namespace Tanita class DbUtill public bool SavaTeacherCheckData(TeacherCheckData data) { OleDbConnection myConn = new OleDbConnection(conStr); myConn.Open(); string strInsert = string.Format(" INSERT INTO measure_data_member ( Id,memberId ,memberName ,memberAge,memberSex,...
0
e5652a3f887f32c76aa702f1623c234e
878c657acca7630e665f0e266d4f2fd7
recode a M05 instruction
{ if( strcmp(mnemonic,"ADD") == 0 ) { if( operand1[0] == 'A' ) { if( operand2[0] == 'B' ) fprintf(ptrOFile,"01 "); else if( operand2[0] == 'C' ) fprintf(ptrOFile,"03 "); else fprintf(ptrOFile,"15 %s 01 ",operand...
0
644c8129324a88911d93cf74b7b362e2
83d9fb790cae82e2638121fba635e6ef
Test if given parameter is unsupported
{ $input_parameters = ['param1' => 1, 'param2' => 'test']; $supported_parameters = ['param1', 'param2']; $unsupported_params = Utility::getUnsupportParameters($input_parameters, $supported_parameters); $this->assertEquals([], $unsupported_params); }
1
2015a8be627b3800a5fd69c10b7726d6
fd169f2114332d26e8d297c4ff3e91c0
Removes the newline character from a string
void removeNewline(char *str) { str[strcspn(str, "\n")] = 0; }
1
5667ce7aeecd879307016f286cf08299
298f0cfb829de94c8972b4544d52bfc1
sets the list of columns requiring autofit width
abstract class Writer extends WireData public static function setColumnsAutowidth(Worksheet $sheet, int $columncount) { for ($i = 0; $i < ($columncount); $i++) { $index = Coordinate::stringFromColumnIndex($i); $sheet->getColumnDimension($index)->setAutoSize(true); } }
1
c614fd9f541bbcaafcbe6b548a866756
24f837de4f8b49e91b0035a1b6810625
Controleert de token van een formulier of deze overeenkomt met de eerder gegenereerde token.
$_token = Session::get($_name); if ($_token === false) { return false; } elseif ($_token === $_form_token) { $_result = true; } else { $_result = false; } if ($unset === false) { Session::uset($_name); ...
1
3788e7efd282d5cf80bc4154e1622530
5d0f2941e4136ff9e9d0a437a4f3e21b
Navigates to opponent's flag, captures it and drops it off while avoiding obstacles
{ double lightS1=0; double lightS2=0; boolean left=false, right=false; navigation.turn(100,100); while(left==false && right ==false) { lightS1 = lspoller1.getLS(); lightS2 = lspoller2.getLS(); if((lightS1 < 43) && (lightS2 <43)) { navigation.stopMotors(); left=true; right=true; }...
0
7ef7ba16f83a2c5241f7c71a1c7777a2
4e2b0495307c07f5aec088a6a071fa5f
Carrega els productes a la vista.
class ProducteController extends Controller public function index() { $productes = Producte::orderby('nom')->paginate(10); return view('productes.index', compact('productes')); }
1
be1e146cbf69bdcc7b20416bf9d86059
a1c072212d206db897da4d293ce0433b
Gets the input name to which a mouse/joystick button, keyboard key or joystick axis is bound (at given index)
namespace PaddleSdk public class PaddleFluidCLib [DllImport("paddle_fluid_c.dll")] public static extern IntPtr PD_GetInputName(IntPtr predictor, int index);
0
a7a426be12e7ff7e0c8bf9dd089d0ed0
24d937a27ef70ae2afffff005b8c08a7
是否可用积分购买
{ $funds=new Fund(); $info=$funds->where('user_id',$request->user_id)->first(); if($info->available_integral >= $request->tuobi) { return response(['return_code'=>true]); }else{ return response(['return_code'=>false]); } }
1
f4660f8424c85b7e06aca9b1726fe4c3
a18f2917fe553d924f14e344456446f9
随机匹配
interface MatchAPI @GET("v1/match/random") suspend fun randomMatch( @Query("gender") gender: Int, @Query("type") type: Int, ): RResponse<Match>
1
f3ea4f55cb1fef8a2c05b2eb4e384b20
3000bb908b9ac52343969736703611ec
获取消息列表,其中包含未读、已读、回收站三个列表
getMessageList ({ commit }, params) { return new Promise((resolve, reject) => { getMessageList(params).then((res) => { if(res.data.results.length > 0){ const { unread_count } = res.data.results[0] commit('setMessageCount', unread_count) } commit('setMessageList', res.data.resul...
0
8d50c29a3f71c050b1f05b3208f729db
3ca2b3cef3d7ef3ceb1a88be112db0b1
https://leetcode-cn.com/problems/prime-number-of-set-bits-in-binary-representation
if n < 2 { return 0 } m := map[string]bool{} for a := 2; a <= n; a++ { aBig := big.NewInt(int64(a)) for b := 2; b <= n; b++ { p := big.NewInt(int64(1)) for i := 1; i <= b; i++ { p.Mul(p, aBig) } m[p.String()] = true } } return len(m) }
0
ce5dea068b2528dd86581fd8676ea04d
b3b2503dfac6fa90e633817df8707f4e
Inserts a Node<T> at the specified position in the child list. Will * throw an ArrayIndexOutOfBoundsException if the index does not exist.
if(index < 0) { index = getIndexOfChild(node, child); } if(node != null && child != null && index >= 0) { TreePath tp = new TreePath(getPathToRoot(node)); int[] ai = { index }; Object[] ac = { child }; fireTreeNodesInserted(new TreeModelEvent(this, tp, ai, ac)); } }
0
36f532365c0ce680c2241b3888195cd9
65cbb1505b9cf3f6692b79c4c1c8be7b
переход на начало пакета
{ int pIndexStart = packet->data.indexOf(NET_PACKET_START); if(pIndexStart < 0) { return false; } packet->data = packet->data.mid(pIndexStart); SocketPacket tmpPacket; tmpPacket.data = packet->data; tmpPacket.data.remove(0, QByteArray(NET_PACKET_START).size()); if(tmpPacket....
1
2ca27b714597f7e9802319041d6b01da
9414c5d810b7dddafb130d26451fd1c3
Search for a qualified name in each enclosing namespace
class ParseTemplate: def _SearchNamespaces(self, obj, name, attr): if hasattr(obj, 'ns'): obj = obj.ns if hasattr(obj, name): return getattr(obj, name) elif hasattr(obj, attr) and hasattr(getattr(obj, attr), name): return getattr(getattr(obj, attr), name) for child in obj: if child.elementType != 'n...
1
e75f75a711652d2df8f2e3117ce2c86a
2b1fd024f80069f2a4df986aac271399
stagger each character
void LightingCues::juggleStagger() { fadeToBlackBy( leds, NUM_LEDS, 11 - lightSpeed); byte dothue = 0; for ( int i = 0; i < lightSpeed + 5; i++) { leds[beatsin16(i + 7, 0, NUM_LEDS, timeOffSet, 0)] |= CHSV(dothue, 200, brightness); dothue += 256 / 8; } }
1
bb7a30968389ae5fb36f335232936ef1
874ca59959cc2fe521339572d1885e4b
Find message struct corresponding to the message number.
namespace Google.Protobuf public class ProtoMgr : TFW.IProtoMgr public static ProtoMessage GetProtoMessage(uint id) { ProtoStructBase structBase; if (!mIDMessageMap.TryGetValue(id, out structBase)) return null; return structBase as ProtoMessage; }
1
118a5e8c65c5e2d87d106ce70c4a2d37
c5d73a427064b4832d4a073514bdfa76
Save the setting in the CONNECT dialog
settings = QtCore.QSettings() conStrings = ["{0}:{1},{2}".format(con.host(), con.port(), con.enabled()) for con in connections] settings.setValue("connections", QtCore.QVariant(";".join(conStrings)))
1
2101c0ebfd7aaeed5efd7064e4986c42
4d74247e0de8110a4046f68a1f106613
Hardware calibration of the Gyro sensor. <br> The sensor should be motionless during calibration.
public class SensorLib public static class CorrectedMRGyro implements HeadingSensor public void calibrate() { mGyro.calibrate(); while (mGyro.isCalibrating()) { try {Thread.sleep(100);} catch (Exception e) {} } mGyro.resetZAxisI...
1
7f240b6a271e0b46250a4fd292ad2b2c
f3eda84a94e97ea4fada8e2a942cd387
Устанавливает значение ячейки равным <tt>data</tt>.
class TTableCell extends TWebControl implements IDataRenderer public function setData($value) { $this->setText($value); }
1
3b1822a6e5fba5cb7e2ea512a7669d03
b76b09e7cdd134d0fe7a03e9313ca7c6
create a balanced binary search tree
from bst import BST new_bst = BST() new_bst.insert(30) new_bst.insert(60) new_bst.insert(40) new_bst.insert(50) new_bst.insert(45) new_bst.insert(10) new_bst.insert(8) new_bst.insert(15) return new_bst
0
13006abff4456fcedb08bcf2c9f69195
63dd3404562bd3cd3d6b489e63eb3924
converte de um formato brasileiro para um formato americano
function dateBRToUSA($data) { $troca = str_replace("/","-",$data); return date("Y-m-d",strtotime($troca)); }
1
21b1d2c45fb56ada4474f7fd3951f819
8d57b6bfaadeb98d463f9e31e6cacfac
Clears the long-term deletion log.
class System(base.Endpoint): def gc(self): return self._put_no_response_body(['gc'])
0
785b74213a32d956e1750e7d678bddbd
5196b281830757012776f17ade82ae05
@brief callback for selling clothes
global sellRecycler, indexForRecyclerPlacementCheck, recyclerStatus global greenCoins recyclerStatus[indexForRecyclerPlacementCheck] = 0 greenCoins += recyclerSellPrice[indexForRecyclerPlacementCheck] sellRecycler = False status = "Recycler sold, $%i coins returned." % recyclerSellPrice[indexF...
0
11946c222f362ab1f83f9986007a3a23
39b0320f0b1106ee77244d856ded52c4
zelf aangepast:
class I18N(): def resourceLanguageGerman(self): self.title = 'Python Grafische Benutzeroberflaeche' self.title = 'Python Grafische Benutzeroberfläche' self.file = "Datei" self.new = "Neu" self.exit = "Schliessen" self...
0
7872be57b1785e5a268c1a9a74731ccc
b408395b9c40b823e6788536342ae491
Returns the right number of harmonized trait encoded value ids.
public function getProvable(): int;
0
4a296dfec9684abb7da41380006dbb0a
d0fdc0d1e3615e91a776a64b6b734e45
Automagically sets the configuration item according to the value stored in the session while the HTTP request overwrites the session.
public function setSessionItem(string $name, mixed $value): void;
0
13908eaf4b21c3d604477ee0ee5907f8
a9bd8f06a97e08037f50465352265302
Converts world coordinates to ismetric view coordinates.
{ Point2DInt retPt = new Point2DInt(); retPt.mX = (int) (( (mViewXMax - mViewXMin) / (mWorldXMax - mWorldXMin) ) * (worldX - mWorldXMin) + mViewXMin); worldY = mWorldYMax - (worldY * mWorldYMax); retPt.mY = (int) (( (mViewYMax - mViewYMin) / (mWorldYMax - mWorldYMin) ) * (worldY - mWorldYMin) + mViewYMin); ...
1
2f31e7f34ffd83aa4d631e7f3d4ec2f3
db0534d55e3ed8c4e6a51a69b06ab2ac
Removes all comments from specified event
namespace Es.Udc.DotNet.PracticaMaD.Model.EventService List<Comment> FindCommentsForEvent(long eventId);
0
78005fea979e85623a1db1b6094581be
2e8d9df00fd9f0a42f891f783595368c
Method used to sell stock. Adds money gained from selling to overall cash after transaction.
export class StocksInMarketComponent implements OnInit doMoneyTransactionSell(moneyToReceive: number, moneyInBalance: number) { this.setNewMoneyBalanceSell(moneyToReceive, moneyInBalance).then(() => this.displayOrderPlacedNotification()); }
1
d41bfccc79ddc036aab6157acb9833d8
c18142e4091792e29b5ac6d757bbedc3
Wraps a private key in a PrivateKeyInfo structure
fun objectToPrivateKeyPem(privateKey: PrivateKey) = objectToPemString(privateKey)
0
9e23af2531f5dfdef6d74db82d466d0c
ef327641731a2c5ce52034db50aeee83
gets the xDim coordinate of the square that the agent occupies
public abstract class Character public int getDimX() { return dimX; }
1
d3db2a080e0e15c7fda41ddf004420e1
f2e20c81ef8e6d74ab55355ac2676d12
归档工程,生成 .xcarchive 文件
def archive(CODE_SIGN_IDENTITY,PROVISIONING_PROFILE,ipaname,xcarchive_name, confi): os.system('xcodebuild -workspace %s/***.xcworkspace -scheme *** -configuration %s archive -archivePath %s CODE_SIGN_IDENTITY="%s" PROVISIONING_PROFILE="%s"' %(projectPath,confi,xcarchive_name,CODE_SIGN_IDENTITY,PROVISIONING_PROFILE)...
1
c6c58a93745c5b7609a17b23aa020a29
0e57d56eb3a10dd8b0dcfef777510096
The `EntityKey` of the `Group`.
class DistributionTrustedKeyGroupItemArgs: def key_group_id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "key_group_id")
0
2cea4353e5daa541901a5b4b1df65d45
ed497f857e65478f55c43f7008d44590
Find spectral centroid
def cog(img): import numpy as np y_cent,x_cent = np.indices(img.shape) + 1 y_centroid = (y_cent*img).sum()/img.sum() x_centroid = (x_cent*img).sum()/img.sum() y_centroid -= 1 x_centroid -= 1 return np.array([x_centroid, y_centroid])
0
01a13f713d7e7119d8243694dc68fb7b
fdc072edb1dde6afa238c748415746ac
Exclui menu PagSeguro
class PagSeguroModulo14 extends PaymentModule public function uninstall() { return true; }
0
c55fc2dd35902cae2f8ea37aeeb7a587
aac330dd4b4831fc9d1efa04be9be8d4
Update the specified superhero
{ $superhero = Superhero::find($id); if ($superhero === null) return redirect('/'); return view('superheroes.show')->with('superhero', $superhero)->with('hero_pictures', $superhero->heropictures); }
0
8d69e3bdd431948f771b732405db62d9
1369c2d06e89dda15619b63b8575ccd2
(j.fouts 2013-03-14 12:18) - PLID 52907 - Disables/Hides controls that should be hidden for EMR Template Prescriptions
class pr_qrprg extends cl_rbase implements MouseListener private void exeOPT_DSB1() { try { lblPMR.setVisible(false); lblPCT.setVisible(false); lblPSC.setVisible(false); lblPAF.setVisible(false); lblPPD.setVisible(false); lblPPT.setVisible(false); lblPCC.setVisible(false); lblPCS.setVisible...
1
3bb7755c2d9c18fd33e051c76bc38b99
fe730ae04eee0ce1adf4c9ee6ecb515a
Devolve um tuplo das posicoes das celulas nos cantos do tabuleiro.
res = () for posicao in ('1','2','3'): for posicao2 in ('a','b','c'): cria = cria_posicao(posicao2,posicao) res += (cria,) return res
0
6011580827b229763dc2b9355a6fe813
4c276fed6ac0f27baee28d190aab2fa2
将对象数组转为json字符串
@SuppressWarnings("all") public class JsonUtil public static String getJSONFromObjectArray(Object[] objectArray) { JSONArray jsonArray = JSONArray.fromObject(objectArray); return jsonArray.toString(); }
1
1abf1060297cade3a969f5132391ccb9
3c4b5d369866d4ea559ff09642065e12
获取一个category_id的所有子category_id,不包含本身id
$data = $this->recursive($cat_id); $ids = array(); foreach ($data as $key => $value) { $ids[] = $value['cat_id']; } $ids[] = $cat_id; return $ids; }
0
9624257156e67456eb78d6bc05dd9e6c
809ed178ebf809fd61ae85923af4a2b6
Sets that the password will require 'special' characters for better complexity.
class Site def password_require_special @attributes[:password_require_special] end
0
0205430c1020d5423832cc5e04e37b0a
979d57aea588e6a59e13bd9d0262cbc9
Ingest tweets.
self.candidate_tweets = [] Log.record('\tWill Read From Config') self.readFromConfig() Log.record('\tWill Log into Twitter') self.loginToTwitter() Log.record('\tWill Fetch Tweets from Twitter') timeline = self.api.home_timeline(count=self.tweet_count) Log....
1
2e36addee4179ffc10d63b08a242e602
eeae8d2d93dd28441d5d80c26c8b2140
\brief The "sync" command, syncs the servers clock
uint8_t buf[48] = {0}; buf[0] = (3 << 6) | (4 << 3) | 3; #ifndef MG_SNTP_NO_DELAY_CORRECTION uint32_t sec; sec = htonl((uint32_t)(mg_time() + SNTP_TIME_OFFSET)); memcpy(&buf[40], &sec, sizeof(sec)); #endif mg_send(c, buf, sizeof(buf)); }
1
e8deeebcb23e34abdb72d831794a8253
21c65d591fc4b988c3c25de28e107452
\brief This sets the text, unless the string is blank, in that case the time is looked up and set as the text instead.
void tglWidgetSetRadioText(TglWidget *tw, char *text) { if (text != NULL) { if (tw->text != NULL) free(tw->text); tw->text = strdup(text); } else { if (tw->text != NULL) free(tw->text); tw->text = NULL; } _paintRadio(tw, false); if (tw->isRegistered...
0
dff460db68eecdcd500083876fe0655d
1d6ca286b3cf2804b1908048d41abe37
Adds an allocation to the list of actions. Returns the string which can be used later in the list of argument names for kernels.
explicit_bounds = self._explicit_bounds ctx = event.comput.ctx zero_out = '{} = {}'.format(ctx.base, '0.0') if self._openmp: zero_out = _FORTRAN_OMP_ZERO_PRELUDE + zero_out + '\n' \ + _FORTRAN_OMP_ZERO_FINALE if_alloc = ( self._heap...
1
4c8818b50e503cd9fb98fb75f401c00e
449fc14c1f41e637282ad88c4d1532a1
获取当前所有可见项
namespace TinyTasksKit.Worker.Preferences public class PreferenceSet public IEnumerable<IPreference> GetVisible() { return GetAll().Where(preference => preference.Visible); }
1
cd2efe242b65efcd5acf746f7f3cb9c0
b55515bd96a78fd7fdc9ce95bc902eb0
将mysql中的壁纸信息写到本地
con = self.pool.connection() cur = con.cursor(pymysql.cursors.DictCursor) cur.execute("INSERT INTO usplash_wallpapers(`type`, `page`, `url`,`content`, `created_at`, `updated_at`) VALUES( %s, %s, %s, %s,%s, %s)", (data["type"], data["page"], data["url"], data["content"], tim...
0
350889bce65f48202101768c752949c6
1c8aa1cd523041e32a9e784f36258cc7
daisyChain(input, [e1,e2,...,en]) ==> input -> e1() -> e2() -> ... -> en()
if len(functions) > 1: return lambda x: chained(functions[1:])(functions[0](x)) else: return lambda x: functions[0](x)
1
e5efab73c709123e11befbcc036341b2
4be0f0b59c78206a882488c69ef083eb
returns the token following the one currently in question
string CodeReader::getNextToken() { this->index++; return this->codeTokens[this->index-1]; }
1
f2e06d82fdeecef0ec0c78b877eceb74
a293574ee2a9ef584cd33521d0b13c22
Salva tecnico na base de dados
namespace Rh.Service.Contracts TecnologiaDto Add(TecnologiaDto dtoTecnologia);
0
3ec3f99cceb1e5dc752919f31020f189
22089a7774683b4b4be7a3ed0a4652e8
下载最新Config回调
local function downloadFinished() loadAllConfigureFile() runtimeCache.firstIn = 1 if _isNewer then runtimeCache.opAniStep = userdata:getVipAuditState() and 16 or 1 if platformType() == PLATFORM_TYPE["9158"] then end CCDirector:sharedDirector():replaceScene(CCTransitionFade:...
1
1f06a1d5f59f53886f421beec12ad65e
1c7135db6dad5cd5c854baf026cc856c
Merges the entries of the ACL spec into the existing ACL.
{ IEnumerable<AccessControlEntry> nativeCallResult = r_Instance.SetAccessControlEntries(AccessControlEntryWrapper.GetInstance(accessControlEntries), merge); IEnumerable<IAccessControlEntry> wrappedCallResult = AccessControlEntryWrapper.GetWrapper(nativeCallResult); return wra...
1
ca5341d2e9668b4720c5a2653d9fd7b0
46e71854581d657cb8ce8427705016ad
Implementing classes should call this method when they detect that the component's value changes; this method attempts an edit of the value in the <tt>Binding</tt>. <p> Note that this method may do nothing, if or not it performs anything is controlled through the {@link #setSyncComponentValue(boolean)} method.
public abstract class Binding<V, M> implements PropertyChangeListener protected abstract void updateView(PropertyChangeEvent evt);
0
91a73d37dabfad49c34e54961436dcc4
3a02b9f39f2f6320024e10f9c9ef4eba
Retourne la derniere session de ce User dans cette Activité
class yaMultipageHandler public function getLastSessionId(sfSecurityUser $user = null) { $user = ((null == $user) ? $this->getUser() : $user); $arOption = $this->getManager()->getOptions(); $pageSessions = $user->getAttribute($arOption['user_attribute'], array()); uasort($pageSessions, create_function...
1
9ee2c64bca67ffea61bebc06b0622ed0
aafefe9cc484129e3d319b62b893e8ad
Reset the ball list
public abstract class Level2 : Level public override IEnumerator Reset () { Level2_DB.BALLList.ForEach (go => go.Original (false)); CT2.useL2DB.Compare = true; CT2.useL2DB.start = true; yield break; }
1
4cb06777f65c8f210c5ccc187783e551
aafa69ac50dbc538e46ce42626dd3f9a
检验单位添加
$('#dlg4').dialog({ title:'选择单位', iconCls:'add', closed:false, top:$(window).height()/4, left:$(window).width()/2.5, width: 200, height: 400, onClose:function(){ closeUnitAddDlg(); } }); $('#unitDg').datagrid({ onDblClickCell:function(rowIndex,field,value){ $('#unit').val(value); $('#dlg...
0
46b1c47623851dfb9c7c116d5b557955
f5913182739360e71dbc65dab60cd4d0
Determines the total revenue the player will make after selling his goods.
double price = 0; if (inventory + numSold <= 0) { return 0; } price = static_cast<double>(static_cast<double>(totalPaid) / (static_cast<double>(inventory) + static_cast<double>(numSold))) * 1.25; return price; }
0
581ca238ce49baa74e4319c2192d0f5c
eafa2d1214ada1fe0e6c1bf62d937af8
Write the data to the outfile with uniform case.
if listToWrire: if all(x[1][0] == x[1][1] for x in listToWrire): for i in listToWrire: i[1] = ['N', 'N'] for el in range(len(listToWrire)): listToWrireP = '\t'.join(str(i) for sublist in listToWrire[el] for i in sublist) fileout.write("%s\n" % listToWrireP)
0
c953a03cf63af0742ddedccedad8ca46
cabad92a19279121fc6f83d654fac82b
===================================================== Description:generate tag index -- 6 characters =====================================================
$return=''; $defaultLink="http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']; $tagArray=$this->generateTagsFromText($string); $count=count($tagArray); for ($i=0;$i<$count;$i++) { $return.= $this->generateTagCloudFromString($tagArray[$i],$defaultLink,rand(0,9)); } return $return; }
0
5f5113641018beb1a2834d60b92aa8f0
4db79c9e76a20b575fc450ee5fa1c7da
returns fn_pretty_desc of ldata (NOT the fn_pretty_desc of get_ldata)
void FieldIO_LIME::load_lfn(LimeReader *reader) { off_t nbytes = limeReaderBytes(reader); vout.detailed(m_vl, "limeReaderBytes: %lu bytes to read.\n", nbytes); off_t nbytes_alloc = (nbytes + 1) + (block_size - ((nbytes + 1) % block_size)); char *buf = (char *)malloc(nbytes_alloc); if (!buf) { vout.crucial...
0
627afce61c417181635db7c433b3ba91
9ba3d71805f0a49bd95d9c88b585db4a
Grossly inefficient but for now return a copy of the pins so the offical board cannot be manipulated by clients.
class Board(object): def digital_pins(self): return self.filter_pins(DigitalPin)
0
48e6b8a8b409ad87a87f0f52272623fe
34df6570a5d9ed30b46231f160db539e
Tests that a property change calls the binded callback
def test_subscribe(exposed_thing, property_fragment, event_fragment, action_fragment): def subscribe_func(*args, **kwargs): return exposed_thing.subscribe(*args, **kwargs) _test_td_change_events(exposed_thing, property_fragment, event_fragment, action_fragment, subscribe_func)
1
ed6ffe4d63ea2ed244970c1e0a9eee28
56b9d4e469fcc165ffc5a91ee8e8c2d8
z Rotation Matrix for angle phi in radians
c = cos(phi) s = sin(phi) return matrix(((c, -s, 0),(s, c, 0), (0, 0, 1)))
0
af1a43aa80637d0d7633b0c34f198848
30325cdd90c3cdaa90419935360fe4d2
获取能见度,默认单位:公里
public class WeatherMeasurement public double getVisibility() { return vis; }
1
c04f225d12a47a5dd9b22f48be5674f6
99234f76ccbc22f93d6790aeef18a05f
GET: api/retiros
class RetiroController extends Controller public function index() { $retiros = Retiro::all(); return view('retiro.index', compact('retiros')); }
0
6ad74e668c2eaa6760c006d4e66ad98b
2ef0005a9fd793c8410e6f748e45b182
Basic script execution routine - any runtime exceptions are caught and passed back into the engine to display.
public void handle(Event arg0) { MapScene scene = visualizer.getScene(); Map<String,NodePrefs> nodePrefs; Map<String,LinkPrefs> linkPrefs; Set<MembershipPrefs> membershipPrefs; GlobalPrefs generalPrefs = new GlobalPrefs(scene, writer); if (scene == null){ nodePrefs = new HashMap<>(); linkPre...
1
c606a3f3adf2b234c314cfc0af61ff64
4bf84bc1c434837f323bbf1fb5dfef1d
@brief memcpy/memmove when you need one, and libc fails
void *my_memmove(void *memTo, const void *memFrom, size_t size) { if(memTo==NULL || memFrom==NULL) return NULL; char *tempFrom = (char*)memFrom; char *tempTo = (char*)memTo; if(tempTo<=tempFrom || tempTo>=tempFrom+size) { while(size--) { *tempTo++ = *tempFrom++; } } else...
1
e4a6a8b1aa40a9c2afd7cd84086f721e
dc5ae3c85efb616926b14497a1ae1407
Searches the swapi people for the given text.
namespace PersonFinder.WebApi.Controllers public class PersonController : Controller [HttpPost] [Route("api/person/search")] public async Task<ActionResult<IEnumerable<Person>>> SearchPerson([FromBody] PersonSearchQuery personSearchQuery) { if (personSearchQuery == null) ...
0
ee779a915595e84404f168d711e6e4ac
60216a7ff4128703838b306c4b943fc1
Tests that the algorithm forms the correct number of clusters
def test_number_of_clusters(data, k): medians, labels = KMedians(data, k) assert np.equal(np.size(medians[0],0), k)
1
f8a3afe7b132022fe9946f70cfb47c0e
ed82447f2ea2363eb699f9e2f278a368
Test opening and closing of `FTPHost` objects.
try: data_store.suite["ftpController"] = FTPController() Messages.write_message("create ftp object successful") except: Messages.write_message("error creating ftp object") assert False results = data_store.suite["ftpController"].connect(host) Messages.write_message(result...
0
f7727e866cd40bd048ae110baa5812f4
161352da312ae0b51fad6bfc9af8183d
メニューウィンドウが開かれている状態で押されたら、ウィンドウを閉じる
namespace KyoeiSystem.Application.Windows.Views public partial class SRY22020 : WindowMasterMainteBase public override void OnF11Key(object sender, KeyEventArgs e) { this.Close(); }
1
3488209f97bce439bea3c265bfe21201
c54b0ab51b35416eddd0bdaa30418a79
# Get all the text strings for each font in the document.
class MyDocx def all_text @document_xml.xpath("//w:t").map do |t_node| t_node.content end end
0
69b2aa2cd2318a553d65f92086d6f54b
48dd47492370db6568219da307142859
查询更改单每月平均处理时间
{ if (mysql_version.IndexOf("5.7") > -1) { string title = "Avg Query Time"; string query = "SELECT schema_name,SUM(count_star) COUNT, ROUND((SUM(sum_timer_wait)/SUM(count_star))/1000000) avg_microsec " + "FROM performance_schema.events_s...
0
9cda630c519a60f70debca3b79c2b1c3
24355234bb3b99d55ca77415d422d258
跳转至initDc,提取globalRepeatSubmitToken和key_check_isChange
*initComponent({payload},{put}){ yield put({ type:'doInitState', }); const {applyId,recordId}=payload; if(isValid(applyId) && isValid(recordId)){ yield put({ type:'keepIds', payload, }) yield put({ type:'getAuditRecodeData', ...
0
1b96ad8545072936835532ee25f289d9
c550c628f9d3ef9973af43198a0302b2
get the card data (if any) associated with this graph
std::shared_ptr<cross>& PathGraph::vertexData(int i) { return v_map[i].data; }
0
8d9a11a97fdb583f2885f4b30486f749
65646d5b53975e4a74704e15fe6e21b4
This function scans the squares to the north east of the active piece and returns legal moves.
{ add_vector_moves(start_square, 2, 1, 1); add_vector_moves(start_square, 2, -1, 1); add_vector_moves(start_square, -2, 1, 1); add_vector_moves(start_square, -2, -1, 1); add_vector_moves(start_square, 1, 2, 1); add_vector_moves(start_square, 1, -2, 1); add_vector_moves(start_square, -1, 2, 1); add_vector_moves(...
0
9d67239c50664bb18f45e316935f844d
b2e3c569cc7542964e8c4539769e56de
This operation transitions the user to the status of `PASSWORD_EXPIRED` and the user's password is reset to a temporary password that is returned.
class DropletActions(Resource): def password_reset(self, wait=True): return self._action('password_reset', wait)
0
f69978f626c23857e0a34f4c2e3bcbf8
b93d859f5d7437f223682cf2c9dd43a3
# logistic regression with lasso penalty 7 using Bigrams
wlogreg <- function(x0,y,initwml=FALSE,const=0.5,kmax=1e3,maxhalf=10) { library(MASS) x0=as.matrix(x0) p=ncol(x0)+1 p0=p-1 sigmamin=1e-4 zz=elimna(cbind(x,y)) x=as.matrix(zz[,1:p0]) y=zz[,p] n=nrow(x) print(n) x=as.matrix(cbind(rep(1,n),x)) print(rep(1,n)) y=as.numeric(y) if (initwml==T) { hp=floor(n*(1...
0
8ec593c5eb0d3f696e3dd4996ad0ba81
56036cacede6fe64031707e7dbe380b3
是否有修改公文元素的权限,集团管理员,企业版、政务版中的单位管理员
{ if (AppSession.IsAdmin) { return true; } CapModel4WS capModel = AppSession.GetCapModelFromSession(ModuleName); ICapBll capBll = ObjectFactory.GetObject<ICapBll>(); if (IsAccountManagerPage || !FunctionTable...
0
4628c24812bcf06a1bd6ef2896da9e0f
de4093a2954bb8e4e7e35fb91afce45b
新建应聘者(文件导入)
{ $form_data = $request->request->all(); $form_data['name'] = htmlspecialchars(trim($form_data['name'])); $form_data['nation'] = htmlspecialchars(trim($form_data['nation'])); if (empty($form_data['name'])) { return $this->json([ 'status' => 0, ...
1
e5248904fc62d04e4973dc94f7d2305b
1a1c51d601a1421ba534980772a67078
Get WhseInfo
class Warehouse extends CActiveRecord public static function getInfo($id) { if ( ! $id) { return array(); } $model = Warehouse::model()->findbyPk($id); $model = self::formatInfo($model); return $model; }
1
ffd0033f74ed28d2a09d489aa4fe6b7e
df529656ca6ecbc095f10bc284616e5c
Tests if the add row functionality works correctly with several tables.
public class _XNamedRanges extends MultiMethodTest public void _addNewFromTitles() { boolean bResult = true; log.println("Creating a small table."); try { XCell cell = null; XTextRange textrange = null; for (int i = 1; i < 4; i++) { cell = oShe...
0
92f5695e47c2af2037aaa41224f89296
a14f9ef8600b739ca31de5c76ed33a94
sets user data of presolver; user has to free old data in advance!
impl<N: RealField> Collider<N> pub fn set_user_data(&mut self, data: Option<Box<dyn Any + Send + Sync>>) -> Option<Box<dyn Any + Send + Sync>> { std::mem::replace(&mut self.0.data_mut().user_data, data) }
1
00f8c9d7265cd1ac4da077261ba49b70
149cf099ce96420233b8a303a3d956a3
Test case for setasprimary Set secondary server as Primary on a specified Server # noqa: E501
primary_conn = MongoClient(mongo_host, self.primary_p) self.conn['test']['test'].insert({'name': 'paul'}) while self.conn['test']['test'].find({'name': 'paul'}).count() != 1: time.sleep(1) while len(self.solr_conn.search('*:*')) != 1: time.sleep(1) kill_mo...
1