query_id
string
corpus_id
string
query
string
code
string
label
int64
64178cd7da1c4d62149d5092186ace0b
7115bce1b74476f5c5a0fa57fc2a6d6f
校验是否是Window系统
public class PdfUtil private static boolean isOsWindow() { String osName=System.getProperties().getProperty("os.name"); if(osName.toLowerCase().indexOf("win")!=-1){ return true; } return false; }
1
dde4dc017a02e00267013cc1791d3a02
11fac672034ae7636851286126553c3f
Filter to add extra fields before log the record. @alternative: https://docs.python.org/2/library/logging.html#loggeradapter-objects
class COMasterLogAdapter(logging.LoggerAdapter): def process(self, msg, kwargs): ip_address = self.extra['comaster'].ip_address return '[%s] %s' % (ip_address, msg), kwargs
1
e93cde5ab775d60134b3888092bdef37
5354833e0758aef59f6e661273eaa8d2
GET: ModifyQuizzes
{ if (string.IsNullOrEmpty(Convert.ToString(Session["UserName"]))) { return RedirectToAction("Login", "Home"); } ViewBag.ClassID = new SelectList(db.ClassTables, "ClassID", "Name"); ViewBag.ProgramSessionID = new SelectList(db.ProgrameS...
1
13f99347146fa41e8ca450056c917d93
702e6927d2142669f15c37bfd6042785
prüft, ob eine Größe eingegeben wurde und ob der Wert annehmbar ist
$validator = new tx_auxo_VALIDATOR(); $validator->addRules(tx_auxo_VALIDATOR::RULE_SIZE, 'bad size', array('max' => $size)); return ($validator->validate($value)); }
1
f7c2a69146d367b707902bce4fb1a005
be33e4a81ebf143ce729ad273c1733a6
教室信息管理页
class ClassroomController extends Controller public function index(){ $s1 = $this->getCate(1); $s2 = $this->getCate(2); $si = $s1[0]; $si1 = $s1[1]; $sii = $s2[0]; $sii1 = $s2[1]; $this->assign('sii',$sii); $this->assign('sii1',$sii1); $this->assig...
1
e0bc9c2a2034f487c1ca9d2eb27e02f4
4c5f5bb80a20838d1b6ea0a4f047f06b
Body部のテキストがセットされているか確認し、セットされてない場合はBody部の文字列をセットします。
class MyWxPayData extends WxPayUnifiedOrder public function IsBodySet() { return array_key_exists('body', $this->values); }
0
3285d1c2a18d7b943afb9ba76df4823a
7f63e2a24c1475d5fad104e856e585af
Add routes to permission table
{ $permissions = [ 'role-list', 'role-show', 'role-create', 'role-edit', 'role-delete', 'user-list', 'user-show', 'user-create', 'user-edit', 'user-delete', 'ticket-list', ...
0
d11ba45b086ddd28103c6dae2317a550
1e2dceb8369c4571a7fb28cd8a224c3d
创建具有SingleTask启动模式作用的Intent
void startBySingleTask(SupportFragment toFragment);
0
0d49cba63ced6622f08ee07d919f3998
da8c5b3812d7022eef714678ea56a63e
Assign product to store
$response = array('status'=>'failure'); if(!empty($_REQUEST['store_id']) && !empty($_REQUEST['product_id'])) { $store_id = $_REQUEST['store_id']; $product_id = $_REQUEST['product_id']; $account_dbobj = $this->account_dbobj; $associate_id = $this->user_sess...
1
bc55d04f185f82e9a7ca96f1f14caf69
09f70dff7ba0e1d4814000a572c48bfe
Avança para próxima linha de leitura.
namespace MBF.IO public class MBFTextReader : IDisposable public virtual void GoToNextLine() { do { Line = _reader.ReadLine(); LineNumber++; } while (SkipBlankLines && Line != null && string.IsNullOrEmpty(Line.Trim())); ...
1
788240c6d26a960d8fbe2a96ac50d628
cdd0f6e0f959a254eddc0287d5145b83
Send a new transactional message through Mandrill.
class DjrillBackend(BaseEmailBackend): def post_to_mandrill(self, payload, message): api_url = self.get_api_url(payload, message) try: json_payload = self.serialize_payload(payload, message) except TypeError as err: raise NotSerializableForMandrillError( o...
1
043ffe686cd4427d30488615bd5402b7
9e2219456c94e9163b15f50801f747de
Replaces quotes, double quotes and a lot of other characters that can be problematic or requiring escape with underscore.
{ name = name.Replace("<","_"); name = name.Replace(">","_"); name = name.Replace("&","_"); name = name.Replace("\"","_"); name = name.Replace("\'","_"); return name; }
1
9a4520f26ce5fa51cc1ebe8428e0f190
733d178e901f560b7f791c82d588f332
create contact by assigning parameters into key/value pairs within an object.
function makeContact(id, nameFirst, nameLast) { return { id: id, nameFirst: nameFirst, nameLast: nameLast }; }
1
0f6313cf8aec81675388669c9cc564ae
b99741095d8bca5fd37fbd3c8b04e4b6
Returns four coordinates of the corners of the flag centered on center. They are in clockwise order starting by the top right-hand corner.
vector <pair<double, double>> corners; pair<double, double> pair1; pair<double, double> pair2; pair<double, double> pair3; pair<double, double> pair4; if (centerPt.second > 0) { if (centerPt.first > 20.125 && centerPt.second < 51) { for(int i = 0; i < 4; i++) { ...
1
0aeb846b77bce2d098cb1d873c3c2b25
ae80a24222b1481fb4c8f9cabe5d6854
Customized argument parsing for the BeatsDROP evaluation script
parser = argparse.ArgumentParser() parser.add_argument("-p", "--parts", type=int, default=0, help="""The number of streaming partitions to the dataset. If the dataset is static, 0. Default = 0""") parser.add_argument("-o", "--overlap", type=str, default="...
1
cc5d5bd1c4fd0aad64a014d08723c847
a1d406ab5dd3f9c970e01ebc134a968f
Toggle the active state of the row
export class MultiselectComponent implements ControlValueAccessor, OnInit public toggleRow(item: IDropdownItem) { item.selected = !item.selected; this.onChange(this.cd.viewModel); }
1
d7923e2ed55bbd611e87704e63f7e08f
9c57696c5b8e27ace49eabcd40446037
返回当前节点后代元素的数目
class Tree getChildCount() {}
0
9a02af7cfd245a238c6095ec206f2a3e
28995c3309b6f7eaafacd339b56ff13a
根据后缀得到最大上传大小
$maxsize = get_cfg_value($cfg); if (empty($maxsize)) { $maxsize = $size; } return $maxsize * 1024; }
0
9f11a8e7f1885ee0fc15839684978e62
a00b680df0b42544ea8b4adb6f16b6a9
通过字段名,获取这个字段对应值的数组
class DBAccess public function GetFieldValue($fieldName, $pKeyValue=0) { if (empty($filedName)) { return null; } $query = "SELECT {$fieldName} FROM {$this->tableName}"; if (!empty($pKeyValue) && is_numeric($pKeyValue)) { $query = $query . " WHERE {$this->primaryKe...
1
04220443935281d3e9ea24ae29143337
a08308da6f06e5cb59aef7c826175d59
Turn ON all the LEDs
class GridThread(threading.Thread): def TurnOnAllLEDS (): Write(self.PORTA, 0xFF) Write(self.PORTB, 0x00)
1
41d557b4df27c4ad2a6b73339904f2fc
a6dcea66c176ff6b08370da6df0ecf08
QR - шаг со сдвигом Уилкинсона Литература: Уоткинс, Основы матричных вычислений - '... находим собственное значение наиболее близкое к a_nn ...
n = len(A) q = np.random.uniform(-1e-6, 1e-6, (n, n)) np.fill_diagonal(q, 1) q = A.transpose().dot(q) A = q.dot(A) B = q.dot(B) x = np.zeros((n, 1)) converge = False k = 0 count = 0 while not converge: x_new = np.copy(x) for i in range(n): s1 = sum...
0
d11f0183c23283aa5699f662d6878636
b302dd6855ecd371e7b46837829350f8
浏览器准备完毕 该方法有终端调用,在触发NoticeAppReady方法后终端会进行初始化,初始化完毕后会调用该方法。 该方法首先会初始化页面的缩放比,将宽度控制在1920实际宽度中,与真实页面进行缩放,详见zoomPage方法。 然后初始化系统参数和工具组(主要是页面中的单选按钮初始化)、系统操作函数 然后关闭导星曲线图(开始的时候因为需要初始化曲线图的Canvas大小,所以曲线图是打开的,初始化完毕后关闭曲线图) 然后初始化系统,该步骤用于从服务器中获取全量配置信息,并调用各部分的内容初始化将内容Put进去,各部分的内容初始化方法将视情况是否启动各模块。 然后,有写东西没有翻开反法写,就写到了最后嘛,设置不允许打开右键菜单、显示...
$('#appContainer').css({ width: screen.availWidth + "px", height: screen.availHeight - 70 + "px" }); componentDidMount && componentDidMount(this); }
0
7611f29a1bec46a97afd9c1a870e8236
f24018b8d06051ef115bfae411b035bf
Creates the backup copy of the user account preferences data in the new backup table.
{ if (!inTxn) { this.backupData = this.entityData.Clone() as UserEntityData; inTxn = true; } }
0
87f737477e1d9c5a2981dcc336d55d80
1603d72f321a15594c3418c8e2a9d628
Returns a list of index pairs of reactions forming equilibria. The pairs are sorted with respect to index (lowest first)
class EspressoParser(BaseParser, IonicDataMixin, ElectronicDataMixin, ReciprocalDataMixin): def reaction_coordinates(self): neb_dat_file = self._find_neb_dat_file() return self.txt_parser.reaction_coordinates(self._get_file_content(neb_dat_file))
0
a66594163094e6c20e2ca6f6a5686813
07623fafae9baca3cfb31389a24180b1
<p> This method puts all the entries from the source into the symbol table. </p>
public boolean parse(List<Symbol> symbols);
0
27df0748a9350934e1f6a083f350721f
a55c3ca6781699b341fd8dab1b807775
Retrieves the corresponding static preinitialized data field by looking at various attributes
class ClassDataItem extends \Kaitai\Struct\Struct public function staticFields() { return $this->_m_staticFields; }
0
7a687440940da16278d70a28de1a2ca7
0773bd16905305af22e14a55b03e9cfe
Gets the <code>soldDate</code> attribute value.
public class TransactionDetail extends com.matisse.reflect.MtObject public final java.util.GregorianCalendar getSoldDate() { return getTimestamp(getSoldDateAttribute(getMtDatabase())); }
1
a89078a094e29efbc6ff4636a0b36b6d
28533d1915832595ea64c811ed537353
Logs a warning (yellow colored) to the console with default prefix (CraftEra Suite).
public logWarning(message: string): void { warn(`[${gutil.colors.cyan(this.name)}] ${message}`); }
0
b8d9e73d52a868d8893edeaf6c9ec66b
e1c36fa650f23f26344918329f449f44
下载计划指标模板
class NewDownloadProgramPlanTask(TvMaoTask): def __init__(self): TvMaoTask.__init__(self) self._threadCount = 20 self._proxies = None self._bindingIps = None self._loadSettings("./conf/tvmao.setting") self._download_fail_tasks = [] self._no_date_tasks = []
0
7667256d6960d2c2489064553f091190
9909c028679e83381a5032ec2bbc2b1e
The function responsible to notify when the animation should stop.
if (!animationStopped) { animationStopped = true; alarmIntervalActuallyAnimated = lastElapsedTime - lastAlarmSetTime; } }
0
5937cf52a9095f6827cc6dd293ffd9dd
f82eaa5e037b0e1958b8d18b9116ccb2
Adds a OR $column IS NOT NULL clause.
public function orWhereNotNull($column) { return $this->forwardCallToQueryBuilder(__FUNCTION__, func_get_args()); }
1
e3e2957a7c7f00547889a59ade5980b6
e24b6a12786cf4ed85c778587e4a4084
Test whether paper has DBLP authors.
class Tests(unittest.TestCase): def test_citation(self): system = ihm.System() c1 = ihm.Citation( pmid='25161197', title="Structural characterization by cross-linking reveals the\n" "detailed architecture of a coatomer-related heptameric\n" "mo...
0
f008854230491362560b1fbfb37807aa
6fa98d404d4a6b0b3ecacb3dde840db9
### x is expected to be a numeric vector ### function returns the mean, sd, min, and max of the vector x
c(MEAN = energetic.mean(x), MIN = min(x), MAX = max(x)) }
0
dc9d7f7c34eaf56167b4948620a921d3
79bc78d88e9b5351a9fa0e254ff822ec
Create the signature to send to Pagamastarde.
ts = (datetime.utcnow() + timedelta(hours=1)).isoformat() b64cert = b64encode(self.cert.as_der()) hash = hashlib.sha256() hash.update(self.cert.as_der()) hash.update(ts) digest = hash.digest() signature = self.key_pair.sign(digest, 'sha256') return dict( ...
1
2ce48db3797895f11f7c1d1935795660
e5c46f77e5e64c247cfff65350ede5cd
蛇身的运动
const tail = Snap.select("#tail"); setInterval(function () { tail.animate( { d: "M660,400 C680,405 675,405 670,408 C665,400 670,400 685,400" }, 300, function () { tail.animate( { d: "M660,400 C680,395 675,395 670,400 C665,390 670,39...
1
be8fb9a342c2ab94204b2ae5596d99ee
80513c002b4e008f193c3a2b3606a1bd
Create fake data for tracks
coords = np.random.normal(loc=50, size=(100, 2)) time = np.random.normal(loc=50, size=(100, 1)) track_id = np.zeros((100, 1)) track_id[50:] = 1 data = np.concatenate((track_id, time, coords), axis=1) Tracks(data)
1
6a259b027953e742552f000eacb69ba3
1f55908d11f2a61a43f17f4fd9f2f4dc
Удаляет все квадраты
for (let i = 0; i < 9; i++) { let square = document.getElementById(String(i)) square.style.backgroundImage = '' } selectedSquare = []; }
0
b7a9922b6b0840c021cb59d2e64260ac
bced854610f158894e6b59c3b241e67c
Gets the average block write time
public double getAverageLockTime();
0
88b21518360c8a5ec9a1a0ffa3dded44
bb3de6e10344b51b9838818a8496a863
Decode a text-encoded long integer.
{ int result = this.DecodeInt(); if (result < 0) { this.DecodeLong(); result = -result; } return result; }
0
6230c1280aef8af585be7348cc1cdb08
fc73a84b876aa27e338ae9f3276658fa
ReadTag returns the string version of the given tag sequence.
for i, tt := range []struct { tags map[string]string result []byte }{ { tags: nil, result: nil, }, { tags: map[string]string{"foo": "bar"}, result: []byte(`foo|bar`), }, { tags: map[string]string{"foo": "bar", "baz": "battttt"}, result: []byte(`baz|foo|battttt|bar`), }, { ...
0
ac07c20aafc528705efba617805a6431
c0d3af61fd4508e573c4e29075b1b73a
Taken from MSDN: http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
{ DWORD dw = ::GetLastError(); if ( dw == 0 ) return true; DWORD dw_count = ::FormatMessageA( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, null, dw, MAKELANGID( LANG_ENGLISH, SUBLANG_DEFAULT ), LPTSTR(buf), bufSize, null );...
1
b0069f0f8c7ed511c49ff5613573a907
ca50cf2d23022328f58a77dc6abf0750
创建满二叉树函数
void CreateBiTree(Bitree *T) { TElemType ch; ch=str[ind++]; if(ch=='#') { *T=NULL; } else { *T=(Bitree)malloc(sizeof(BiTNode)); if(!*T) exit(_OVERFLOW); (*T)->data=ch; CreateBiTree(&(*T)->lchild); CreateBiTree(&(*T)->rchild); } }
0
604a108d055269d6444f0b3ac107dc53
d728021a55dc1500b00f7b44ab69a822
Returns true if the password field is read only, otherwise false.
function isReadOnly(self){ return self.options.readOnly; }
1
a9e0d5f96ba24155c43d1af5e05543fa
a41c727e19d6610dbce0eb0718d1b15d
指定した2つの座標間の点を、距離を指定してList形式で取得します
namespace BesmashContent.Utility public class MapUtils public static List<Point> getRay(Point p1, Point p2) { return getRay(p1.X, p1.Y, p2.X, p2.Y); }
0
e2b5382b9330eca9392937b3e854c4ba
7cdb9dd26ff169e9cc2fb433676288a0
set pivot as the an element between the most smallest and most largest to avoid the worst case. Somewhat random in nature.
def selectPivot(A, n): i = int(round(np.random.rand() * (n - 1))) A = swapArrayElements(A, i, 0) return A
0
efc4c6c8aab656ddd82dfcd1496841ec
4b7a4732b784d64fadb2d2a582fd59ae
Поиск персонажей для определённого мира.
class CharacterController extends BaseController public function findCharacter(string $name, ServerRequestInterface $request): ResponseInterface { $name = trim($name); if (mb_strlen($name) < 3) { return $this->withJson([]); } $currentOnly = $this->getQueryParam($request, ...
0
dd9edfd8ddfbdf2a999c99508fe01b96
a473eca4fac400f9b7f222019a0ef242
Returns a dict of names of Megabus stops, keyed by ID. These IDs are used to set the start and destination of a Megabus search.
mobiles = [] mobile_library = 'Mobile 1' pages = [1, 2, 3, 4] dates = { "Monday": "2019-05-20", "Tuesday": "2019-05-21", "Wednesday": "2019-05-22", "Thursday": "2019-05-23", "Friday": "2019-05-24", } for page in pages: stop_list_html = requests.get...
0
e00cb12f7a578437be7d6c14768d37b4
4ab2deab7cb153badfc9f525cc73f6fb
Returns the earnings on a big bet (11 - 17) dice sum
switch(ye){ case ONES: return getDiceSum(dr,1); case TWOS: return getDiceSum(dr,2); case THREES: return getDiceSum(dr,3); case FOURS: return getDiceSum(dr,4); case FIVES: return getDiceSum(dr,5); case SIXES: return getDiceSum(dr,6); case THREE_OF_KIND: if(getLongestMatch(dr) < 3) ...
0
6834570901d896a6376e5713570707b8
f3c99cec4c918d4ac92f85e0b7ee5d77
Returns an Array of Hashes listing the properties for every type of _Sobject_ in the database. Raises SalesForceError if an error occurs.
class Configuration def fields! @schema.fields! end
0
990f1a7a829c1f5b551c64648542a513
69249c1cd45bd6937f00c1db53585d01
联系人timer回调函数
void timer_fn(struct timer_list *t) { struct hello_char_dev *hc_dev = container_of(t,struct hello_char_dev,t1); hc_dev->buff+=sprintf(hc_dev->buff,"%9ld %3ld %i %6i %i %s\n", jiffies, jiffies-hc_dev->prej, in_interrupt()? 1 : 0, current->pid, smp_processor_id(), current->comm); if(--hc_dev->loops)...
1
1580205dcbb2dfcffa4ccb2e95a0ac64
d36caf5d25685d848f9d8684e65686ec
@brief Esta función configura la iluminación del escenario. Asi como la posición del foco.
camX = centroX; camY = centroY; if(lienzoAnchura > lienzoAltura) { aspectRatioH = lienzoAnchura / lienzoAltura; aspectRatioV = 1; } else { aspectRatioH = 1; aspectRatioV = lienzoAltura / lienzoAnchura; } campoVisionH = (tamanyoCampo...
0
3f99b82e17cf8e05b89fddc12de4afce
db395e9a3d024fa409ff79ec2e4c37df
对资源进行分级,方法3 只要local的属性大于等于dc的属性1以上,使用local
List<DcRule> findDcAreaOrderByPriority(Area area,List<Long> dcs);
0
f16b9e0237b2fa801a9dbe88bd7e9de1
b51d7083c9b5e82a817b0131fc69540e
GUI プロダクト名の描画を行います
public class ProductRandomPosition private void RandomProductName(Transform child) { UnityEngine.UI.Text childNameText = child.GetComponent<UnityEngine.UI.Text>(); childNameText.text = "Product" + temp[productID - 1].ToString().PadLeft(4, '0'); }
1
ce7d03c9c4afaed00c433f732c8686d3
7d2f8b9a8cc62998d50b2e050b126cb5
多張QR生成
if(isset($_POST['subs'])){ $num = (int)$_POST['nums']; if($_POST['is_unique_code'] == 'true'){ $is_unique_code = true; } if($_POST['is_unique_code'] == 'false'){ $is_unique_code = false; } if($num == 1){ $data = array( 'action_name' => 'QR_CARD', 'expire_seconds' => $_POST['...
1
7ae4dd3e83abb4456d3789721e005437
41deda894482285a5605d8d21348ab5b
Delete everything before the specified string
class Prepper: def delete_lead_data(self, stop_string): while self.temp[0] != stop_string: del self.temp[0]
1
4558d8ee403948d2906746fd88e7cce0
54983b7d7037cbd832f45a14f9a989dd
Retrieves the time limit that will be enforced for searches performed using this client connection. performed using this client connection.
public class LDAPConstraints implements Cloneable, java.io.Serializable public int getTimeLimit() { return m_time_limit; }
1
ec24ef101a535ebc19ca766038200c52
8c75074d7b68cd3c7bc1dff537d624e4
Creates an upgrader for GRS SQL Server databases.
public static class SqlAnywhereExtensions public static UpgradeEngineBuilder SqlAnywhereDatabase(this SupportedDatabases supported, string connectionString) { var builder = new UpgradeEngineBuilder(); builder.Configure(c => c.ConnectionManager = new SqlAnywhereConnectionManager(connectionString)); ...
0
bc7d93a95c15f86b9b2e85521a8fba53
e9d6fbd9b30c40bbad441254708c9bf1
通过工序id和状态id判断他是否有下一道工序
R_xiaordertab statusQueryXiaId(int status,String kuaikeId,String xiaId);
0
e08ac12f0cff9fd27f3c3c9ebae538d3
c7771cf463dbeb9a201f5120529a375a
Convenience method for generating an EXTRACT minute expression. <p> {@code Object} -&gt; {@code Expression} conversions handled by {@link Converter#toColumnSqlObject(Object)}.
public final class DateHelper public static long minuteExpression(String express) { return timeExpression(express, TimeUnit.MINUTES); }
0
7fe622e985a1785133d1565256a15fd7
dfa608d795c40d0fa2f6ca6e07f217e8
@brief Send the Mode Sense6 Command to the device
static uint8_t formModeSenseResponse(uint8_t *buffer) { memcpy(buffer, (uint8_t *)&modeSense6Response, sizeof(ScsiModeSense6Response_t)); return sizeof(ScsiModeSense6Response_t); }
0
84342dbb20ab23a55dd3bf746ace65d4
42b0958590197f06b3952932085863fa
Metodi ainoastaan hakee tiedon luokan private muuttujasta
public class Solmu public char getMerkki(){ return this.merkki; }
1
adbf632e9ca847f6bf386807cbdf51fd
b00b0881fef875b1d6e32244babc03f8
获得输入的数独
{ int[,] b = new int[9, 9]; for (int i = 0; i < 9; i++) for (int j = 0; j < 9; j++) { int rowOfB = i / 3 * 3 + j / 3; int columnOfB = i % 3 * 3 + j % 3; b[rowOfB, columnOfB] = Convert.ToInt32(tbAr...
1
b74b67a399348d796d425d96489a055a
589d1efe5debba0deceb050a826a022d
markElect 将评论标记精选
$params = ['msg_data_id' => $msg_data_id,'index' => $index,'user_comment_id' => $user_comment_id]; $url = "https://api.weixin.qq.com/cgi-bin/comment/markelect"; return $this->post($url,json_encode($params,JSON_UNESCAPED_UNICODE)); }
1
4aa7488a9b986ad797b1efd1a1eca415
c12d3a2c71da3549f3eb60d126acb64c
处理get请求过来的数据乱码
public class MyRequest extends HttpServletRequestWrapper @Override public Map<String, String[]> getParameterMap() { Map<String, String[]> parameterMap = request.getParameterMap(); if (flag && !parameterMap.isEmpty()) { for (Map.Entry<String, String[]> m : parameterMap.entrySet()) { ...
1
8667cda7e7114bdc66d954691ede28c4
e14154a225c90feeafe926c8964c77b4
最小出借金额
public class LoanInfo public String getBorrowAmount() { return borrowAmount; }
0
13726c54f934d6f05c9b451589cc6909
2c0ea9ddc3221fee58b1a12c5f6f8415
下载班级内导入教师模板
@RestController @RequestMapping("/student") @Slf4j public class StudentController @GetMapping("/downloadExcelTml") @ResponseBody public void downloadExcelTml(HttpServletRequest request, HttpServletResponse response) throws IOException { Long deptNo = Long.parseLong(request.getParameter("deptNo")); ...
0
8d032b6eb6cbd98e1506e377924b435c
84b6e0854b935e5d9e93c473098bdee7
draw and position all the aura frames
local s = module:GetSpells() self.progress = 0 local iconIndex, keySort = 1, 1 for i,info in ipairs(s) do if (info.type == "spacer") then keySort = keySort + 1 else local name, rank, tex, count, auraType, duration, endTime = customUnitAura(info) local icon = self.icons[iconIndex] if (not i...
1
614af7f1e5f53367e0212df3dccdc9a3
72c6c68ba90127155286b5633aaa91de
Exit a parse tree produced by Java9Parser#constructorDeclaration.
void exitConstructorCall(SwiftyParser.ConstructorCallContext ctx);
0
2759f4f8e8b4749ddddc1b287178d687
f8f2790053df831fe539f66316e6ad10
return a dictionary of the count of letters (lowercased) in the given string.
def letter_count(text): letter_dict = {} text = text.upper() for letter in text: if not " " in letter: if not letter in letter_dict.keys(): letter_dict[letter] = 1 else: letter_dict[letter] += 1 return letter_dict
0
d317687ddc029eef37c1c5234ec8e3fd
0d59c125b30fb1e444dbca75b9415988
Currently, makes note that a given section was seen.
class StorableReader: def seen(self, sv): self.aseen.append(sv) return sv
1
2cdf649a3374ad0dc034a5ecd049cabc
d9b7eba0e0164ba8bd427650f7401252
初始化请求所有订单列表
let pData: any = { page: 1, itemsPerPage: 10 }; if (pageNum) { pData.page = pageNum; } this.orderService.getOrderList(this.orderReq, pData).subscribe(res => { let data = res.json(); this.orderList = data.rows; this.pageOpts = { total: data.total > 0 ? data...
1
12cd2c744ebcb0082a6ec08d9f79c555
e53e9c519e81334f2ac02de83749daad
Funkce, ktera prevede typ tokenu na index do precedencni tabulky.
int getPrecedence(TokenTypes token) { switch(token) { case TOK_OP_NOT: return 14; case TOK_PUNCT_NOT: return 17; case TOK_OP_MOD: return 17; case TOK_OP_ADD: return 16; case TOK_OP_SUB: return 16; case TOK_OP_MUL: return 17; case TOK_OP_DIV: return 17; ...
1
b09f76d92dc58600efb2b5be4fb3d671
541fd8df080c77eb667829ff2162fe9b
Function to get next cbline number id
{ if (lbd_vide(lbd)) return 0; return lbd->queue->id + 1; }
1
64ac6aed3ebdf1faf8ca1d16e7ee016d
98373578dff58cab38023a785046cef1
display current tip total
class View{ constructor(){ document.getElementById("totalTip").style.display = "none"; document.getElementById("each").style.display = "none"; this.latestData(); }
0
2b8edd4cb90b3c3b944b09a93f3acc75
db7f2779c0672e966b0d7626118750f7
Устанавливает максимальную ширину колонки.
class Column public function setMaximumWidth($maximumWidth) { $this->maximumWidth = $maximumWidth; return $this; }
1
3d69567e922be78bd6fa965e7918ceff
9722f60dc13dcceb5dd3d4fe50595bcb
funcion que valida que sea un numero la entrada
{ char aux[256]; getString(mensaje,aux); if(esNumerico(aux)) { strcpy(input,aux); return 1; } return 0; }
1
e0b5140d1fb3c7d28914706f87fa5871
78d962bb09322465b969a3dd63490019
Create all FOHM upload files, upload to GISAID, sync SFTP and mail reports for all provided cases
class FHFPlan(): def main(self): self.hohle_verfuegbare_plaene() self.hohle_lokale_plaene() self.vergleiche_online_offline() self.hohle_neue_plaene() self.loesche_alte_plaene() self.cleanup() self.upload()
0
03dfc0382bec421f1fd289d846df82c1
27ca0f138d33e15fbd64c7925a677644
设置报名人数,true为++,false为--
@Service public class InfoService public void setRealNameInfo(String real_name, int[] realNameInfo) { if (real_name == null) { realNameInfo[0]++; } else { realNameInfo[1]++; } }
0
61e071a3f03d07d0896a774c5b8d56d1
472d32bedc82936c6cdc184911cede8a
Возвращает строки (со связанными объектами) и их количество.
{ $sql = "SELECT SQL_CALC_FOUND_ROWS `ob`.`id` AS `id`, `st`.`name` AS `street`, GROUP_CONCAT(DISTINCT CONCAT(`hs_odd`.`number`, `hs_odd`.`letter`) ORDER BY `hs_odd`.`number` ASC, `hs_odd`.`letter` ASC separator ', ') AS `houses_odd`, ...
1
43e43a89b901bfd644f0db24aef6639a
b4a5aaf64351097ec1fedef3b0d32582
Возвращает список ссылок на баннеры, закрепленные за текущей записью
class Ab_model extends Model public function show_block_rel($count, $images, $images_variation) { $time = mktime(23, 59, 0, date("m"), date("d"), date("Y")); $cache_meta = array( "name" => "block_rel", "count" => $count, "lang_id" => _LANG, "element_id" => $this->diafan->_route->show, "images" => $i...
1
f014ed1abeb6d2522cb2ff39ce6dc90f
9a51c3d2e8070db417a6ec17315eacb9
Processes send events.
namespace Deveel.Data.Protocol public abstract class Processor : IDisposable protected abstract void SendEvent(byte[] eventMsg);
1
f8ee4f4fcdf08eab2facd1588c50f569
c798f479b2c0c85392e2b5ab9690dbd7
入荷作業集約作業No.を取得します。入荷作業集約作業No.は8桁の文字列で表されます。(例:00243070)
public class AfT507ShisetsuEntity extends DbTableEntityBase<AfT507ShisetsuEntity> implements IDbAccessable @CheckForNull public YubinNo getYubinNo() { return yubinNo; }
0
40978883e0166a8077026d87465ab646
89eb003a9004efeb2b3c6d4084bf8249
Creates a new path with sub dir node.
val parentID = getFile(disk, parentPath)!!.entryID return addDir(disk, parentID, name) }
1
9a6bd05dc35cad26e08b972a9c08160d
1ca334acad65cb01a7be9198b1ef3a41
Returns number of open slots for cards
class Row: def remaining_slots(self) -> int: return self.get_max_cards() - self.get_current_length()
1
259527df2b7ed28158d555434d53a956
3a3d9ed45786b5c3fae40d73bf74cce4
Apply delayed (parented) world transforms now
void iObject::Transform() { if( _pParent ) { _pParent->Transform(); if( _pParent->GetModified().Contains( ETT_APPLIED ) ) { if( _pParent->GetModified().Contains( ETT_POSITION ) ) _modified.Add( ETT_POSITION ); if( _pParent->GetModified().Contains( ...
1
d4fff45270628880f991bd719a858e14
1df34275d9a9021c1804c0246367ae5c
通过UserId查询此技术员应有的记录
{ if (tecahnicianAid <= 0) { return null; } return GetModel($" technicianAid={tecahnicianAid} and state>=0"); }
0
d3248b724299320a29caf7e52faed3aa
2a59e47aba7bd1b443d503b765fb04ec
Sets the path to the alternate deployment descriptors in the application archive
public class Settings public static void setPathDeFiles(String pathDe) { getPrefs().put(PATH_DE_KEY, pathDe); }
1
b97ba319444d9e8391428b1846a243c2
3373e8946bb8090794423deede10f5d1
会话ID已更改.
namespace MSK.Core.Module.ESAPI.Http void ChangeSessionIdentifier();
1
640cb0a5da66f087732e2f3346c5ef70
bf30a605c574100f474972521655faa1
No one should be allowed to call this method.
class DataTable_DataRow_ColumnEntry private _DO_NOT_CALL__ForceUse_ClassConstructor() {}
1
ebf49efc1f7e3c5c411bb6517da70d93
7f28c057dd200984234effd4d0916e5c
Applies a well known set of security requirements to a default set of security settings.
namespace DotNetOpenAuth.OpenId.RelyingParty void ApplySecuritySettings(RelyingPartySecuritySettings securitySettings);
1
1d72bd5832887e560eae0dad8cfbfdaf
bd395017688a8e26bac0c75fa3ce6b4e
使用回调来使用池子中的资源,无需手动释放 回调有 1 个参数:$instance(操作实例对象) 本方法返回值为回调的返回值
{ DB::beginTransaction(); try { $status = $callback($this); DB::commit(); } catch (\Exception $e) { DB::rollBack(); throw $e; } return $status; }
1
238de08977dacafaf47870ab3d3b9955
31e7ad7ed2053271a08a364b068d18b2
Gets the generic properties for DAO Connection Factory.
@Repository("tAlgmntPubStatusDAO") public class TAlgmntPubStatusDAOImpl implements TAlgmntPubStatusDAO public GenericDAO getGenericDAO() { return genericDAO; }
0
b1ebeaf650354a60e2148b98e004cca2
4e9624ea420697af4eb0126a342ec144
判断是第一次进入,默认是 如果第一次进入则把本地联系人插入到数据库UserVO
SQLiteDatabase db = dbHelper.getWritableDatabase(); if (db.isOpen()) { db.insert(UserDao.TABLE_NAME, null, setContact(user)); } }
0
80f13c1ec76dcd9be540d570396a0d1d
adc5ed5995f8e25da905fd9d35f6461d
Из набора текстовых файлов, содержащих задачи создается один xml-файл, с набором тегов:
generateTags(); Random random = new Random(); for (int i = 1; i <= demoProjects.length; i++) { Project p = new Project(demoProjects[i - 1]); for (int k = 1; k < 4; k++) { Task task = new Task("Подпроект " + i + "-" + k); task.setDescription...
0
e5a679eb082ddfef5a675dc9d991f272
56b6a48b77b6efa735606ddeb1415ad8
微信奖品中弹窗里的配置页
class WeixinAction extends BaseAction public function cardConfig() { $isEdit = I('get.isEdit',0); $prizeCateId = I('get.prizeId',''); $cardId = I('get.card_id',''); $batchId = I('get.batchId',''); $index = I('get.index',0); ...
1
cfaa7dfc8bb0f2fdeafa4917aedda45e
baad75d77bede672f9ea133701494ab1
新添加模块生成相应模块编码接口
function add (data) { return post("/Module/Create", data, commonUrl); }
1
67a67ae4f5963517643ee0efb2033f0d
795e53637e073954508a48c9982fa27f
Sortiert das übergebene Array vom Index start zum Index end mittels MergeSort.
int merge_sort(int *data, int start_index, int end_index){ if (start_index < end_index){ int split_index = (start_index + end_index) / 2; merge_sort(data, start_index, split_index); merge_sort(data, split_index + 1, end_index); merge(data, start_index, split_index, end_index); ...
1
9430bf5512eb2ecb9d9a544882c6f19a
271ff1e7b191dd898975e7334a3cc870
Limpiamos los datos del genero
this.selGenero.reset(); this.selEstadoCivil.reset(); this.selNacionalidad.reset(); this.selTipoDocumento.reset(); this.txtDPI.reset(); this.txtPasaporte.reset(); this.selMunNac.reset(); this.selMunCedula.reset(); this.selDeptoNac.reset(); this.selNoOrden.reset(); this.txtNoCe...
1
08024f9112b3f1accdac98eb42764b55
d0ce5d374ce62c2b6261284e5d77ea61
replaces short output names from date() with long Danish names
$eng = array('january', 'January', 'february', 'February', 'march', 'March', 'april', 'April', 'may', 'May', 'june', 'June', 'july', 'July', 'august', 'August', 'september', 'September', 'october', 'October', 'november', 'November', 'december', 'December'); $hun = array('január', 'Január', 'február', 'F...
0
0246c2f4922feadc8a32f9feb466c9a9
823ecf17e216b959a125087dd5bc2c08
Display matches, upon selection: pellet (correct) or timeout (incorrect).
const selector = document.getElementById("selector"); selector.style.display = "none"; eraseQ = eraseQ.concat(matched); eraseAll(); matched = []; playGame(randomLevel()); }
0