query_id
string
corpus_id
string
query
string
code
string
label
int64
ad76799986aa490d088ab7609a04e115
3903ba70e146832fe085edb51e75137a
Method called instead of execute for caching SOAP calls.
if($this->isLogin()) { try { $client = $this->getSoapClientInstance(); $res = $client->__soapCall($methods, $arguments); return $res; } catch (Exception $ex) { $this->_soapFault = $ex; } } return null; }
0
540cafff6718b8d65f0886fd14bb0ea3
594c5fea03553819f1f10a65bd8517d9
Returns sim main event queue.
public class GameData public ConcurrentLinkedQueue<String> getMainFeed() { return (ConcurrentLinkedQueue)mainFeed; }
1
be1d503ab815a227e4436fcd18e35b88
cc1c48b47b10611afd176b8199b5c21a
Set or remove the custom hotline for the server.
class Settings(commands.Cog): async def server_charsign(self,ctx,*,arg=''): await self.charsign_root(False, ctx, arg)
0
1568440f472b2bbcefa6315aa7a1b974
ec3d7879d9603d0fddeb9302120a73fe
DECODE state; monitor `radio` and manage packet decoding.
class Dot11APHY(CSPHY): def DECODE(self, fsm, pkt): r = self.radio assert isinstance(r, Radio), "[DOT11A]: Cannot find radio in DECODE!" assert self.isbusy, "[DOT11A]: Carrier sense *not* busy in DECODE!" while fsm.active(): yield self.RXD.recv(fsm, 1, \ ren...
1
ac1e79a2c6477857d47106435357dd7e
e9a65741d0929d08c9b110071a9deb7a
扫描课程试题表
zhizhi, maxRows, maxCols = self.__zhizhi row = 2 while row < maxRows: cell_value = zhizhi.cell_value(row, 1) if cell_value is None: continue search = self.__re_study.search(cell_value) if search: ...
1
bed7823c67390e793bca20e0d6e99280
5e3b72df4101b33388b8dc924c83f566
@brief Generate the header(start) for the model class file
class PolynomialGenerator(object): def write_header_file(self, header_file, total_terms, number_of_variables): header_file.write("""#ifndef POLY_MODEL_H #define POLY_MODEL_H namespace mb_system {{ struct poly_model {{ static const unsigned n_vars = {1}; static const unsigned size = {0}; static doubl...
1
fd9c651a71f5a6f1cce2b9281a532742
356c6c3c5d93ce71d93a40c0a58772be
获取账户全部委托单信息
class TradeController extends CommonController private function getEntrustList($map, $number) { $count = $this->entrustModel->where($map)->__call('count', array('id')); $page = pagination($count, $number); $show = $page->show(); $list = $this->entrustModel->relation(true)->where($map...
1
9ff44c4d0529717e4fa79f590e0a1c17
071541cbbb71a21fead3f0c514ae54f9
##combines user-specified filters with those created from supplied ##transcripts_ids
VCFByTranscript <- function (geneInfo, strains=NULL, tidy=TRUE, dataOnly=TRUE){ if (is.null(strains)){ strains <- readRDS(system.file("extdata", "strains.rds", package = "r1001genomes")) } transcript_ID <- as.character(geneInfo$transcript_ID) regionString <- as.character(geneInfo$regionString) fName <- te...
0
37529d8e09ee2753698b4356c64f5083
ea18aa860400e6cdddb216723fd39953
根据pid,id,name查询,默认只根据pid查询,name是模糊查询 1.根据pid查询 默认为root 2.pid 与 id 搭配查询 3.pid 与 name 搭配查询 4.pid 与 id 与 name 搭配查询
HigherResponse<ProductListVO> queryProByNameOrId(String proName,Integer pId,Integer pageNum,Integer pageSize);
1
3c8f27b8c88ba91aa626aeefadfb3885
3daa9e5eb17f15c59562b05e1ed078fe
printScript formats a disassembled script for one line printing.
int scriptArrayIndex = 0; int col = sizeof(scriptArray) / sizeof(scriptArray[0]); int row = sizeof(scriptArray[0]) / sizeof(scriptArray[0][0]); if (!(sysVal.currentLine % LINES_IN_PAGE)) { initCharArray(&scriptArray[0][0], col, row); initCharArray(&typingArray[0][0], col, row); i...
1
3c3f1cb5dd9b5f30ac6b5b0f6c08a97f
96683395e29545b757b88ebef2d727ca
Set's the helper set instance.
class ApplicationRunner public function setHelperSet(HelperSet $helperSet) { $this->_helperSet = $helperSet; $this->_progressHelper = $this->_helperSet->get('progress'); $this->_tableHelper = $this->_helperSet->get('table'); $this->_dialogHelper = $this->_helperSet->get('dialog'); }
1
b07835f2eebba8aa7b128d7836e7a1db
3328fcc2f406cb1f18c1a8714d5a0d90
現在のプロセスの有効なグループ ID を返す <p>現在のプロセスの有効なグループ ID を返します。</p>
pub unsafe fn getgid() -> gid_t { syscall0(SYS_GETGID).expect("getgid() failed") as gid_t }
1
f87fbe4841621ec8c3a68e95a7479265
01842c015f398b7725c4bdbc074ff04e
Falling sphere on boxes
var scene = new BABYLON.Scene(engine); var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(10, 10, -30), scene); var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0.8, 100, new BABYLON.Vector3.Zero(), scene); var box = BABYLON.Mesh.CreateBox("Box", 6.0, scene); var box2 = BABYLON.Mesh...
0
2cac0b35b46f33281c92fdf32d255893
df7791ad1a024c3b9912de95aa1c15ea
Moves a directory. Files that already exist in the destination directory are overwritten.
namespace Kadena.AmazonFileSystemProvider public class Directory : AbstractDirectory public override void Move(string sourceDirName, string destDirName) { this.Move(sourceDirName, destDirName, 0); }
0
82151810acaefd8e873aaac85916b6b8
6c6fd07e65f3e2e819410daafc3f0a3d
Converting Rotation angle to positive and within the range [0, 360]
{ double result = a; while (result < 0 || result >= 360) { if(result < 0) { result = result + 360; } if(result >= 360) { result = result - 360; } } return result; }
1
4c8c5db6188eb0130c130c32277c8b62
a3772f07618b28a765939a1f9beffa94
This function is used to ReInitialize an Rx MSDU in preparation of a future reuse. On a MiniportReturnNetBufferLists, we will need to reinitialize the Rx MSDUs so that we can reuse it for indicating other frames in the future. \sa MpAllocateRxMSDU
{ XDpRxSs *DpRxSsPtr = (XDpRxSs *)InstancePtr; Xil_AssertVoid(DpRxSsPtr != NULL); if (DpRxSsPtr->DpPtr->Config.DpProtocol == XDP_PROTOCOL_DP_1_4) { DpRxSsPtr->ltState = 0; DpRxSsPtr->ceItrCounter = 0; DpRxSsPtr->prevLinkRate = 0; DpRxSsPtr->prevLaneCounts = 0; } if (MCDP6000_IC_Rev == 0x2100) { XDpRxSs_M...
0
3fb2258366d8491a4f480bc8b23c89c8
cd99615876821862025d606504c0ea0f
フォーム処理をオーバーライドしてログイン保持の時間を長く書き換える
class Front::Authentications::SessionsController def create params[:user].merge!(remember_me: 1) super end
1
7ac0094a2bfe23dcb3a9a29054e091f5
6e9f77e2b7fb680bdaf0c486920171d4
Wait for completion of a playback on the mixer.
class WinPlayer(object): def wait_until_finished(self, callback): self.play_thread.call_when_finished(callback)
1
2bac832b0dee1f4c47c305d34cef1f9b
1817e234d6835ed3c9673cc7b21ed9b1
tweetオブジェクトを渡すと,そのツイートがリツイートされた回数を返す.
class tweet(): def _get_retweets(self): return int(self._tweet['retweet_count'])
1
43df52cf9edc0371bd5cee56a218412a
39c2a00cb665518158737ab49fa0e003
需要保证聊天室和直播间的主播均不是当前用户
{ $flag = true; $user_room = LiveRoom::getUserRoomId(); if (!CommonHelper::isAdmin() && !array_key_exists($room_id, $user_room)) { $flag = false; } return $flag; }
0
9002315a1d097b99d5dce627cdae74a8
248fbd797b9403c550cdf5318ca2054b
Api_Client_Base constructor.
class BaseController extends Controller public function __construct(ApiContract $apiClient = null) { $this->api_client = $apiClient; }
0
ab76a2a15eec53fdbe2d2a400f25b927
b3bc4076fdab8fbcc9181e03eb45bae3
Manages back btn pressed. Sends user back to customer view.
public partial class FeedbackComplete : System.Web.UI.Page protected void btnBack_Click(object sender, EventArgs e) { Response.Redirect("CustomerFeedback.aspx"); }
1
cdbe4c67a8daa819f3ec1630c760146a
8c015f637d5edd73e849ab1b9c01a033
Lista feltöltése és döntési pont ahol ki lehet választani, hogy milyen típusú legyen és mivel töltsük fel a listát.
public class Main public static void main(String[] args) { System.out.println("Nacist cisla ze vstupu (0) nebo ze souboru (1): "); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { switch (br.readLine()) { case "0": { ...
1
171dc4f33501af7a0b10ce3dd7fcacc0
a7892b08315171486ae55e6a3545637c
Gets the currency to week end map.
return [ 'mon' => [ 'start' => $this->getMonStart(), 'end' => $this->getMonEnd(), 'active' => $this->getMonActive(), ], 'tue' => [ 'start' => $this->getTueStart(), 'end' => $this->getTueEn...
0
55f41d90635486fce4f2e9eb1a79b6c1
34908791da8db6627fad33356ba2e245
При падении мастера слейв становится мастером
void onMaster();
0
b105116e7b04e9a158071509719b7026
6b3a0f62f6464f6779f51b514dd32d7e
Currently Spring Data JDBC does not support all SQL types. With this definition the default is extended with custom converters.
Map<JdbcType, TimestreamConvertFunction<?>> conversions) { conversions.put(JdbcType.TINYINT, (data, callback) -> Byte.valueOf(data.getScalarValue())); conversions .put(JdbcType.SMALLINT, (data, callback) -> Short.valueOf(data.getScalarValue())); conversions .put(JdbcType.INTEGER, (data, call...
1
3c2f4edf885b41a6f9e934a6e0f46df4
cbf0c78b8d962beb2e640b45f71be191
! ------------------------------------------------------------------------------------------------------------------ @brief This function should disable interrupts. This is called at the start of a critical section It returns the irq state before disable, this value is used to re-enable in decamutexoff call
decaIrqStatus_t decamutexon(void) { decaIrqStatus_t s = __HAL_GPIO_EXTI_GET_FLAG(DW1000_IRQ_PIN); if(s) { HAL_NVIC_DisableIRQ(DW1000_IRQn_TYPE); } return s ; }
1
df065be96738257b97a5ebce8b8680be
4562aa4054065e98790d348e885cc1a7
(Boolean) Datablock is tagged for recalculation
class PMV(ComfortModel): def isReCalculationNeeded(self): return self.__isRecalcNeeded
1
fc49a4a7c8a820729bfbd71883ef71e7
60830143d4f42b750224c94c73658b10
Extracts the default value from a default value spec of the form "'some value'::character varying" or "'2000-01-01'::date".
class OracleManager extends DBManager public function getDefaultFromDefinition($fieldDef) { $type = $this->getFieldType($fieldDef); if ($this->isTextType($type) && isset($fieldDef['default'])) { return " DEFAULT rawtohex({$this->quoted($fieldDef['default'])})"; } return p...
0
6dfeb153c0e52268e9b4ab09ed54d7b5
a9b7acc0999c28e5dec1809417707e94
查找待扣款明细表需要计算罚息的待扣款记录,当还款日小于当前日期并且明细状态不为报盘中
class loan_contractModel extends tableModelBase public function getContractUnPaidPenaltyList($contract_id) { $contract_id = intval($contract_id); $sql = "select * from loan_penalty where contract_id='$contract_id' and state != " . qstr(loanPenaltyHandlerStateEnum::DONE); $rows = $this->reade...
0
b031d85ba5e4fbac7f767d38c43d8928
8846a0f9a66d8053270bad18b7fd94d4
列出所有i位到j位词
r = '' for i in range(i, n+1): r += chr(97 + i) + '-' r = r[:-1] return r[::-1] + r[1:]
0
1b2b7557d897335144b0f52dbe1c32d9
2d5b4360638693643e61a004818600a5
Populates the image view models based on the images in the safety check fault data model
{ if (axisNo < MAX_UI_LIMIT_CNT) { if ((fault & (int)SafetyControlMasks.ACSC_SAFETY_LL) != 0) m_lblLeftLimit[axisNo].Image = Properties.Resources.Error; else m_lblLeftLimit[axisNo].Image = Properties.Resources.Off; if ((fault & (int)SafetyControlMasks.ACSC...
1
69be30665c78e6d586d5ebb50293101f
beae2d113649c9ac15430022857ee64a
Returns enum constant.
abstract class AbstractEnum implements JsonSerializable, Scalarable public function toScalar() { return $this->getConstantName(); }
1
fd2c76a892730759020acaf2c20aa7aa
48a69eb99fb3b88a6069c88aadcdac0d
Returns a String with the latitude and longitude Keyword arguments: self -- The caller, the instance Returns: This function returns a String with the coordinates
class GeoPosition: def __str__(self): return '<%8.4f, %8.4f>' % (self._lat, self._long)
1
cfcb3ff28e43641c9979f4e054208e6e
5de75d4c8c2ad29008c2d4d041e5beb9
Из числа преобразует в структуру хранения данных флагов операция обратная операции get_digit
class Func static function bit2source($nSum) { $str = strrev(decbin($nSum)); $nLength = strlen($str); $arr = array(); for($i = 0; $i < $nLength; $i++) { if($str[$i]) { $arr[] = pow(2, $i); } } return $arr; ...
1
d7da4e8f4255962174a951b9ae008c90
915a3a592f2f28fea7abf7303c1e32fb
Get a deep copy of the group and all filters contained in the group
copy = super().copy() copy._name = self._name copy._is_group = self.is_group return copy
0
ef839ce73b6d2400ea3c243c98de972d
00aa5728f78af6bc206c987bac9a68a3
根据层数获取所需等级
let lv = 0; for (let i in this.m_pBuildInfos) { if (this.m_pBuildInfos[i].type == type) { if (lv < this.m_pBuildInfos[i].level) { lv = this.m_pBuildInfos[i].level; } } } return lv; }
0
6e505096495bebf356b95b91061f8a49
41fd9f942c9e7d220b6fb419ca465ce7
Draw a triangle with a depth of 1
void drawTriangle() { glPushMatrix(); glTranslatef(-1.0f, 1.0f, 0.0f); glRotatef(-30.0f, 0.0f, 1.0f, 0.0f); glPushAttrib(GL_ALL_ATTRIB_BITS); glDisable(GL_LIGHTING); glBegin(GL_TRIANGLES); glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.0f, 0.0f, 0.0f); glColor3f(0.0f, 1.0f, 0.0f); glVertex3f(1.0f, 0.0f, 0.0f);...
0
f59a5f6345b001903ddb97f25801a666
5ab402282b2bc94e3a1da51a20a0d8b7
Sends the pose to the communicator. Sends the x and y coordinates and the heading.
class RobotController(): def send_command(self, ls, rs, t): self.ch.write(struct.pack('fff', *[ls, rs, t]))
0
66acb8eba2684db7142f02bfae0206b0
f07c08157b8571285d637aa1b3b2b430
社区玩家更新数据(手机号&QQ号)采集
M.UpdateCollectInfo(msg.gather_num, msg.gather_stop_time,msg.is_family_add) M.UpdateMoveInfo(msg.shift_num) M.UpdateInspireNum(msg.inspire) M.UpdateCellsInfo(msg.shift_history) M.UpdatePlunderHistroryList(msg.plunder_history) M.UpdateGoodsList(msg.goods_list) M.UpdateNightRoundList(msg.latti...
0
8afe6df92cc819e2695e632057949c47
789c2bde72070f55e398ac9eeb6a8b97
Convert a Morton number to an x,y coordinate
assert(hashcode <= dim * dim - 1) x = y = 0 lvl = 1 while (lvl < dim): rx = 1 & (hashcode >> 1) ry = 1 & (hashcode ^ rx) x, y = _rotate(lvl, x, y, rx, ry) x += lvl * rx y += lvl * ry hashcode >>= 2 lvl <<= 1 return x, y
1
fa8dcfc9fa7b43cdf78d30e6748e7a2f
e2c71f48e8762fc7f942da51c70f80ee
Returns the keyValue of the element
class APQ: # ********************************************************* # Initialise the binary heap # ********************************************************* def get_key(self, element): return self._binaryheap[element._index]._key
1
23f4998a3d91e1c75dbbe0b74cdde8db
d10debb549d831ea7f1d76b0534b9309
Get the value of Previous Block Hash.
string Block::GetPreviousHash() { return this->mPreviousHash; }
1
db4460ce99eb91279ae79f9193fdac11
8159e0ae6ba737ad175893cb955f375e
The method to set the value to deleted_by
public void setIsDeleted(String value);
0
1095c82e9c6986852c6645e28dbd721f
f2330469e6eb6d90d781fa1d8d56315e
Posts message in slack channel inside the thread.
access_token:, channel_id:, attachments: nil, blocks: nil, text: nil, link_names: true, markdown: true, parse: 'full', reply_broadcast: false, thread_ts: nil, unfurl_links: true, unfurl_media: true ) return if attachments.blank? && blocks.blank? && text.blank? p...
1
4016100b26233245a3d72c50897880b9
872e24773a4cb24db89d5991d7304864
Makes necessary adjustments to display the create student interface
namespace AddStudentTestDialog public partial class AddStudentDialog : Form private void AddFacultyDialog() { this.Size = new System.Drawing.Size(470, 280); courseListListbox.Visible = false; courseListLabel.Visible = false; graduationYearLabel.Visible = false...
1
1d3bd99201431fed0c72318952c506e0
12665b7363fd40cfca9342f02bdc1c79
Return whether list_, or any nested sub-list of list_ contains value.
def has_(value, _type): return any(isinstance(elem, _type) for elem in value)
0
eceddb48bd082c7487163c2dbeca68b8
eebe8a42881cfc1fcce1642a8fee9985
Get size of fragment (in bytes).
namespace MyTorrent.FragmentStorageProviders public sealed partial class VirtualManagedFragmentFileStorageProvider : IFragmentStorageProvider public async ValueTask<long> GetFragmentStorageSizeAsync(string fragmentHash) #pragma warning restore CS1998 { EnsureStorageProviderWasNotDisposed(); ...
1
bde684fef3116433902f56f7c3e3e79b
4cd3111178f2dbef7345cf01a222e8a2
Total Number of Pieces in the solved image Returns (int): Total number of pieces (both with expected puzzle id and wrong puzzle id(s))
number = 0 for block in self.blocks: if block.state in [9, 10, 11]: number += 1 return number
0
e81ef42c012d21e1f10bb7e89c9e05e4
be6432d1c16f3e9dc802f93986df70ed
Checks out the specified document.
final String password, final String siteId, final String fileName) { Session session = getCMISSession(userName, password); return checkOut(session, siteId, fileName); }
1
2370bc29a11b16de4635341643f4979e
17a73e049de05faa2226ef6b3551761a
This method is responsible for providing the main production variable
public function getProduction ($level = 1);
1
f4dfa64e8fc978a2c3db31a553c48575
cdff077bf2bcd581f66d190eef073eb9
Fungsi ini akan dipanggil sebelum proses delete
class t_kurikulum extends AbstractTable{ public function beforeDelete($id) { }
1
599e3c02cbf65985bffb39468860bd9b
58798a57803b1c52467dfb80e528ff5a
Computes an l2 loss for predicted-vs-gt insidedness at samples.
class SOLOv2Loss(object): def __call__(self, ins_pred_list, ins_label_list, cate_preds, cate_labels, num_ins): loss_ins = [] total_weights = paddle.zeros(shape=[1], dtype='float32') for input, target in zip(ins_pred_list, ins_label_list): if input is None: ...
0
cd72aea9af83ee8bc322af75955f251a
b8788fb1e797770e5ec6359cdf265c8c
Inverse of an Insert is a Detach that starts before the leftmost node inserted and ends after the rightmost.
prevChanges := []obj.Change{obj.NewChange("insert", 1, "a"), obj.NewChange("insert", 2, "b")} newChange := obj.NewChange("delete", 0, "c") expChange := newChange transformedChange, err := TransformChange(newChange, prevChanges) if transformedChange.Equals(expChange) == false || err != nil { t.Errorf("Expected %v...
0
96b58c14277fae9a799fd7b626fdbf8b
0290fbc210cd1d07214f54f31670ccae
returns false or the length of the suffix it had to remove to find the string
int k = m - 1 - j; if (suffix[k] != -1) return j - suffix[k] +1; for (int r = j+2; r <= m-1; ++r) { if (prefix[m-r] == true) { return r; } } return m; }
0
c60be15fdf27264cc9f1cd3299a2d35e
429f44eb68828e6cac5556bc4d679e71
Spawns the projectile .5 units from the character in the direction of its target
namespace Wynalda public class EnemyController : MonoBehaviour public void ShootProjectile() { Vector3 dirToTarget = (attackTarget.position - transform.position).normalized; Quaternion rot = Quaternion.FromToRotation(Vector3.right, dirToTarget); Instantiate(bulletPrefab, ...
0
ba937a123848633fc049d463d080878d
3b40e0c3566acbf666a32bda3743f278
This function displays the search items available in the tickets.json file.
public class Menu private void displayTicketInfo() { Iterator<Ticket> iterator = ticketList.iterator(); while(iterator.hasNext()) { Ticket ticket = iterator.next(); System.out.println(String.format( "ID: %s\nRequester ID: %s\nStatus: %s\nType: %s\n" + "Priority: %s\nCreated At: %s\nSubject: %s\n", ...
0
ed5ba1fff1803960cd93b29a411717b8
ffcfff585192824d50fe8b27decbadc4
Check if the bottom notifications warning appears that you are not allowed to annotate 1.0 syntax pages
assertElementIsNotPresentByXpath(".//li[contains(.,'" + this.properties.get("treeForumAdmin") + "')]/ul/li/*/a[contains(.,'" + this.properties.get("treeDontTrack") + "')]", this.properties.get("exceptionTrackingCanBeDisabled"), 0); }
0
e29523a59da98631257367b070aadbac
20be4fbf05b6227c03d35d28a42209b2
插入一个联盟
@ResponseBody public CSResponse addAlliance(Alliance alliance) { String affiliateAccountName = alliance.getAffiliateAccountName(); String affiliateAccountLogo = alliance.getAffiliateAccountLogo(); Integer userId = alliance.getUserId(); if (null == affiliateAccountName || null == ...
1
97024e41197de3ca428d717401065533
a858c9a25546cbf1c23579df6ba32c3b
Get the sql column definition for the given field.
namespace ServiceStack.OrmLite.SqlServer public class SqlServerOrmLiteDialectProvider : OrmLiteDialectProviderBase<SqlServerOrmLiteDialectProvider> public override string GetColumnDefinition(FieldDefinition fieldDef, ModelDefinition modelDef) { if (fieldDef.IsRowVersion) return $...
1
40ea8c1f6a8ab5f17a294bab811e7343
ef06112152685fd1167f57bd9c257bbe
Replace the value in this Node with the specified value Return the original value that was replaced.
void replace(V val);
0
fee703abe30cc3703562f49f715891bc
158f67d1596806afc153ff58a8d068d1
\brief Evalua si se trata de un texto valido(Letras numeros simbolos)
{ int retorno = 0; if(name != NULL && validacion_Letras(name,strlen(name))) { retorno = 1; } return retorno; }
0
c57fb95792919f9ea1ddc261a954b412
e67f6567e50099dfcd3516b5e20c3d41
Function to implement brute force string matching
{ int i=0,j=0,flag=-1; while(i<strlen(s) && j<strlen(c)) { if(s[i]==c[j]) { i++; j++; } else { i=i-j+1; j=0; } if(j==strlen(c)) { flag=1; break; } } ...
1
5512dc7c75b95d341352796d013f8b69
e1a1ad8f673492c16db997a73c8e8b43
Get all optionally available fields.
class PostFields public function getAll() { return array_merge($this->optionalFields, $this->requiredFields); }
0
1227385abad0e037a2ae2e64ad6d5f2c
f4d62a1a713f536f49748269393b8a4f
Notifies registered record store listeneres about record store change
public void notifyQueueChange(StorageQueue storageQueue, ClusterNotificationListener.QueueChange changeType) throws AndesException { }
0
2322892de7106000db6b9d4ab32211b0
bb958d7973a3d88ea240b67f015d8d31
Get results based on datatable in Business Requests list page
{ $business_name = Input::get('business_name'); $entity_type = Input::get('entity_type'); $status = Input::get('status'); $data = array(); $status_txt = ''; $companies = $this->company->searchCompany($business_name, $entity_type, $status); foreach ($companies ...
1
67759f131577b3faf82fd5a60497ae6c
ac80ffdaf4baa6d3595fa654320aa52a
Rotates code point inside given bounds.
const rad = Angle.toRad(degree) const cos = Math.cos(rad) const sin = Math.sin(rad) if (!this.relative) { const ct = this.bounds.getCenter() const pt = Point.rotateEx(ct, cos, sin, center) this.bounds.x = Math.round(pt.x - this.bounds.width / 2) this.bounds.y = Math.round(pt.y - ...
1
6397211424e194fcf8430b55d002a8c2
39409d27b5bb4b8c9f779c557fbce7a2
idEquals returns a scope that will find the item by id.
func filterById(db *gorm.DB, id uint) *gorm.DB { db = db.Where("id = ?", id) return db }
1
e5214bb47e03c5cb3fa8253e0c0eeb2d
f08def40465516a72e5d949b5ecb2454
Creates new Trip.
namespace AdventureWorks.ViewModel public class TripViewModel : ViewModelBase internal void NewTrip() { showDelete = false; Trip = new Trip(); }
1
c9fe2f724f41fc820ae50485dcd78604
de92da0347c5203e5207c47832180713
Se asigna la documentación predeterminada y se comprueba que no exista previamente
void test_definir_definido() { DiccString<int> d; d.Definir("hola",42); ASSERT( d.Definido("hola") ); ASSERT( !d.Definido("casona") ); ASSERT( !d.Definido("casa") ); d.Definir("casona",13); ASSERT( d.Definido("hola") ); ASSERT( d.Definido("casona") ); ASSERT( !d.Definido("casa") ); d.Definir("casa",6); ...
0
e9298b14b8fd288fa327d8374c493004
de8381605626540a49ac4a12495111f2
アイコンをチェック状態を解除する
public class RectangleController : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDragHandler, IPointerClickHandler, IPoolObject public void UncheckRect() { _image.sprite = null; }
1
1382238e945e36bb43fd030d20099508
b3d2bffead21e967d494028f9600365e
Hide the video view, remove it, and show the non-video view
public class FloatingCursor extends FrameLayout implements MultiTouchObjectCanvas<FloatingCursor.FCObj> public class WebClient extends WebChromeClient implements OnCompletionListener, OnErrorListener public void onHideCustomView() { if (mCustomVideoView == null) return; mCustomVideoView.setVisibility(Vi...
1
db250222fce712223aaed740f4befc4a
61c2320c425d189207b34a81ddd77701
Gets the es common index name.
public class ElasticSearchUtils public static String getEsIdxName(String contentTypeName) { return REPLACEMENTS.matcher(contentTypeName).replaceAll("").toLowerCase(); }
1
cf129abddb6e1b8482f16927bd2e8813
f4e1e2c2dd8af9dabc23e6d0acbe3cfc
Abandon an ongoing LDAP operation.
ropenldap_result_abandon( int argc, VALUE *argv, VALUE self ) { struct ropenldap_result *ptr = ropenldap_get_result( self ); LDAP *ldap = ropenldap_conn_get_ldap( ptr->connection ); int res; res = ldap_abandon_ext( ldap, ptr->msgid, NULL, NULL ); ropenldap_check_result( res, "ldap_abandon_ext" ); return Qtrue; }
1
af028eabc8b93c0369ec4efbecc7f924
4824b94b5c291c3221e8ba3bd520b36f
設定類中指定變數名的值,如果改變量不屬於這個類,將throw一個exception
class Papi_Base public function __set($key, $value) { throw new LogicException(get_class($this) . " dosen't have '$key' to set."); }
1
13ed1fdc413f023f003f1791ca0369ac
e9c2e30fc06f9888e777fc95d8b88fd9
修改订单发动机信息
namespace UniCloud.Application.PurchaseBC.TradeServices [LogAOP] public class TradeAppService : ContextBoundObject, ITradeAppService private void UpdateOrderLine(EngineLeaseOrderLineDTO line, EngineLeaseOrderLine orderLine) { var material = _materialRepository.GetFiltered(m ...
1
4d50c0e1a032372e547598f98d7f1597
1c65f547bc482f447e6ebdafebc18e51
Joint petrophysical modeling operator.
Modelling.__init__(self) self.fop = fop self.petro = petro self.jac = pg.MultRightMatrix(self.fop.jacobian()) self.setJacobian(self.jac)
1
f28b8c8fa51a0017ed22078dd175b812
7dbe394b0fe4133910dc68473c4008b1
获取等待时间(随机)
function getWaitTime() { return DELAY_MS -((new Date()).getTime() %DELAY_MS); }
0
1a6f218cb2705dffd5c1807f660bc69b
8123f9c5c4f5ad51b9c39e173b402e48
Removes the element from the delete notification list.
export class Notifier delete(id: number | string): void { if (this.exist(id)) { this.notifiers[id].complete(); delete this.notifiers[id]; } }
1
bcf1ffb47767296cf54c1ef8a6d4e9c2
7b82e10cd4ca63a430ea869a44c2e784
Get the number individuals to evaluate in each round
class GenomeData: def get_n_indiv(self): return self.n_indiv
1
fda1d099aaee5f89f51ff47287a51ed6
2318da8dc05d36ab2d9377a467e20172
Method used to initialize the runners spinner
spinnerStartTime = (Spinner) viewToDisplay.findViewById(R.id.spinnerStartTime); spinnerEndTime = (Spinner) viewToDisplay.findViewById(R.id.spinnerEndTime); spinnerStartTime.setEnabled(enabled); spinnerEndTime.setEnabled(enabled); }
0
37c5048016911926ee60ef340452da08
c8443bce49f61c9e141abbfaa546c0d2
坐标旋转 (x0,y0)旋转中心;(x,y)旋转值 a 旋转弧度 逆时针为正
namespace QSHP.Com public static class RotateMath public static PointF PointRotate(PointF center, PointF p0, double arc) { PointF tmp = new PointF(); double x = (p0.X - center.X) * Math.Cos(arc) + (p0.Y - center.Y) * Math.Sin(arc) + center.X; double y = -(p0.X - center.X)...
1
33e4a662d427af1792a3d648ac43b165
f34c6435757f55c421887cc9f6554324
coupure de phrase
function repeter3(chaine){return chaine+chaine+chaine}
0
c8398fcbaeeed38df1150ed0fad53423
26ebd77d06657ee16f98c4c61ce9708d
Compute optimal force bias. Uses rotated Green's function.
gamma = self.curve.gamma dgamma_by_dphi = self.curve.dgamma_by_dphi[:,0,:] dgamma_by_dcoeff = self.curve.dgamma_by_dcoeff d2gamma_by_dphidcoeff = self.curve.d2gamma_by_dphidcoeff[:, 0, :, :] arc_length = np.linalg.norm(dgamma_by_dphi, axis=1) s...
0
564e08fafc2870fbf9e7920958edc2eb
613619dc5b91f6874869047045b663d8
Filter the query on the hpkgrootte_verbandlengte column Example usage: <code> $query->filterByHpkgrootteVerbandlengte(1234); // WHERE hpkgrootte_verbandlengte = 1234 $query->filterByHpkgrootteVerbandlengte(array(12, 34)); // WHERE hpkgrootte_verbandlengte IN (12, 34) $query->filterByHpkgrootteVerbandlengte(array('min' ...
abstract class BaseGsVoorschrijfprGeneesmiddelIdentificQuery extends ModelCriteria public function filterByHpkgrootteVerbandlengte($hpkgrootteVerbandlengte = null, $comparison = null) { if (is_array($hpkgrootteVerbandlengte)) { $useMinMax = false; if (isset($hpkgrootteVerbandlengte['...
1
23c3bbece21a428e780a59e5c7b9cde6
c7a80e2370aac6657d3fd1e256f5026c
通过shopId和type查询相应的商铺或者公共服务场所
void serviceFacDetail(String typeId, String rentOrFacilityTypes);
0
48fed20380fd58a3a6dca4a5cdd3a071
e0582d14f0fa1cf707174b0c69cdb2f9
Returns a genbank file.
return { "id": id, "metadata" : { "genbank" : {}}, "rules": {}, "components": [], "sequence" : { "sequence": sequence, "features": features } }
0
79bf0d57e2c7f7695355b86eb345add4
8d55a2dad84132afbb4c7754a480f1d3
Greedily connects the closest terminals by combining them into trees, forming a minimal Steiner tree approximation.
dists = gen_dist(graph) n = len(dists) C = {} for k in range(1, n): C[(1 << k, k)] = (dists[0][k], 0) for subset_size in range(2, n): for subset in itertools.combinations(range(1, n), subset_size): bits = 0 for bit in subset: bits |= 1 << b...
0
833ae2d0bb59ea51b13a4f30d5c05c7c
11927bdbe0562909ea2f69f620a61e40
Press any provided button for "count" times.
class CustomCommon(JoycontrolPlugin): async def button_ctl(self, *buttons, p_sec=0.05, w_sec=0.05): await self.button_press(*buttons) await self.wait(p_sec) await self.button_release(*buttons) await self.wait(w_sec)
0
d98c0162099320adf4200d9910286918
933813872f31b3cda5110ebde064ab45
Evaluate the Finite Line Source (FLS) solution using the approximation of Cimmino (2021) [#FLSApprox-Cimmin2021]_.
def finite_line_source_approximation( time, alpha, dis, H1, D1, H2, D2, reaSource=True, imgSource=True, N=10): dis = np.divide.outer(dis, np.sqrt(4*alpha*time)) H1 = np.divide.outer(H1, np.sqrt(4*alpha*time)) D1 = np.divide.outer(D1, np.sqrt(4*alpha*time)) H2 = np.divide.outer(H2, np.sqr...
1
34582386c6f4304ddff02dfbd3952322
ae0d1a77d281a9b34b43cbe10653f686
Perform any bookkeeping needed after a response is sent.
static void on_response(krb5_error_code retval, const krad_packet *reqp, const krad_packet *rspp, void *data) { request *req = data; size_t i; if (req->count < 0) return; if (retval == ETIMEDOUT && req->remotes[++req->current].remote != NULL) { retval = kr_remote_send(req->re...
1
2b31a55bb7a41e2f3bfb777685e6268c
a96c2608b8a388b4859b0e93ff796376
竖直拼接多张图片
public class OperateImage public BufferedImage joinImageListHorizontal(BufferedImage[] images, String type) { try { int len = images.length; if (len < 1) { System.out.println("pics len < 1"); return null; } int[][] imageArrays = new int[len][]; for (int i = 0; i < len; i++) { int width = im...
0
fd47d2a61451e94fbb7c4476ed3bed74
ee7060fa8109705384b1cc4331a0bc7c
class. name - A report name as a String. Returns the report class. Raises a NameError if the class does not exist.
class Report(): def __init__(self, report_name): self.path = dirname(realpath(__file__)) self.env = Environment(loader=FileSystemLoader( join(self.path, "../template"))) self.report_name = report_name if ".html" not in self.report_name: self.report_name += ".html"
0
28cde2b0c5fbed82884632635fb523bf
3837364924e68c7c57a86cd2748fb954
dyadic verb handler
self.encoder.encode(CallPacket( unidirectional = verb.unidirectional, postref = verb.postref, payload = verb.payload )) self.proxy.start_writing()
0
d510a076ee0df66daf42117c6628e8a3
5ac745385d2bdeb54f15d1ed44e99de0
Returns the number of batches you can make given a recipe and a list of ingredients. Returns 0 if none can be made
stock_required = {'FUEL': fuel_required} is_finished = False while not is_finished: sku, sku_quantity_required = next((sku, sku_quantity_required) for sku, sku_quantity_required in stock_required.items() if sku_quantity_required > 0 and sku != 'ORE') ...
0
efc30c674ece0cfa38cf0439a649ec43
f97b5b3ba01870bf7c80fa05c1e07342
外部プログラムjuliusをコマンド付きで起動
open_jtalk=['open_jtalk'] mech=['-x','/var/lib/mecab/dic/open-jtalk/naist-jdic'] htsvoice=['-m','/usr/share/hts-voice/nitech-jp-atr503-m001/nitech_jp_atr503_m001.htsvoice'] speed=['-r','1.0'] outwav=['-ow','open_jtalk.wav'] cmd=open_jtalk+mech+htsvoice+speed+outwav c = subprocess.Popen(cmd,s...
0
e5bf11fa357e15114884b6b4dd335108
91fdf1bb18793c0d466031327b35ae21
Returns the meta object for the containment reference list '{@link Automata.StateMachine#getStates <em>States</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EReference getStateMachine_StateMachines();
0
a7a0c9862d53db3f028ccec8c16ec946
028e3c266e0b6564efa1cd79ba34c1e1
Read a bigmod CSV file Returns * attributes - Pandas Dataframe of the various metadata attributes in the file * data - Pandas dataframe of the time series
def load_bigmod(fn:str) -> (pd.DataFrame,pd.DataFrame): import pandas as pd import re import io text = open(fn, 'r').read() r = re.compile('\nEOC,*\n') first_header, remaining = r.split(text) attribute_names = first_header.splitlines()[-1] lines = remaining.splitlines() n_cols = int(lines[0]) attrib...
1
23b1140b28fe3c7e96563e132009058d
6e9e8e3db14f0f1a21f09e6ba15a488e
学生マスタの読み込みが終了した際に呼び出される
if ( ! option.result.ok ) { _searchError( xhr, status, null, option ); return; } data.component.searchMsg.$element.text( "" ); if ( response.resultList[0].code === _prop.getProperty( "common.apiResponse.overflow" ) ) { } else { data.component.searchMsgParent.$element.prop('hidden', true); } if ( ...
0
62713db97776c2b1626bf8a7ce908618
4552224639c214c463e9a3895b482065
Get insight and properties for one specific story
public class DocspublicApi public void getStoryIndividual(Integer storyId) throws ApiException { getStoryIndividualWithHttpInfo(storyId); }
1