query_id
string
corpus_id
string
query
string
code
string
label
int64
82fb9dc38b5393fae2132bf96c173380
0d342b7c1e5d2c8f61eac66d3f940a92
Get the request push URL.
class Infobip_sms_message public function getPushUrl() { return $this->_pushurl; }
1
07cd8ee972537a5589b5a13c19b3a0e3
736dbae35e4918279a2d80f75487c15e
检查字符串是否为正确的二级域名头,字母数字和中横线组成,且不能以中横线打头
{ $ok = FALSE; if (strtolower(substr($domain, strlen($domain) - 2)) == 'cn') { $ok = true; } elseif (stripos($domain, '.中国') !== FALSE || stripos($domain, '.公司') !== FALSE || stripos($domain, '.网络') !== FALSE) { $ok = true; } else { $ok = FALSE; } return $ok; }
0
ffefc4ddeaed68f838ffe7726a2417f8
90eddc7d1bf94da686971d805a05efe6
****************************** Description: This is to cleanup all the ObservableCollection to reduce the size of the collection to the specified GraphTimeRange (X axis) ******************************
namespace SparrowWpfApp public class MainWindowModel : Screen public void ClearScopeData() { ScopeCHACollection = new ObservableCollection<DoublePoint>(); ScopeCHBCollection = new ObservableCollection<DoublePoint>(); }
0
fdada723df13b375b8521cebbb2cd3b7
fbecfa91c368316cc35bb2cab6a602aa
计算下行的最低层
plt.figure(figsize=(15, 10)) barn_name = '上河湾分库_1号罩棚' base2 = Base('127.0.0.2', 'root', '2333333', 'barn3', 3306) times = base2.get_times(barn_name) lengend = [] for layer in range(layers): lengend.append('第{}层'.format(layer + 1)) layer_times = base2.barn_times_layer(barn_name,...
0
66b792a0bdf6c653926a389397ba0077
4c97ae490da984d28dc6410a92309818
建立右上角的菜单
class SIcon(QSystemTrayIcon): def r_menu(self): menu=QMenu() exit=QAction('退出(&x)',self,triggered=self.app_exit) menu.addAction('制作密钥') menu.addAction('加密') menu.addAction('解密') menu.addSeparator() menu.addAction(exit) self.setContextMenu(menu)
1
650ded5834d988e9fb606268b3017f5c
ef1d1c1b3e4ac21a5b7edc73a17da69f
Funcion para Insertar Solicitud de Pasaje
function anadir() { let inputs = document.getElementsByClassName("inpts"); let fecha = document.getElementsByClassName("fecha"); let x1 = fecha[0].selectedIndex; let x2 = fecha[1].selectedIndex; let x3 = fecha[2].selectedIndex; let fecha_final = `${fecha[0].options[x1].text}-${fecha[1].options[x...
1
0079763f63c33b935654a3350e3d6a57
5afa9bc70571810cc56a15f22bcef62e
跨天调整时间
String str = GetUTCTimeUtil.getUTCDateTimeFromLocalDateTime(getNowDayTime(localTime)); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()); try { Date today = format.parse(str); String tomorrow = format.format(today.getTime() + 24 * 60 * 60 * 1000); String[] str2 = tom...
1
ed5f6f6be12b34b50fef97858c0e2a84
ceb02e0b36e6131ace313ccf3a323bb4
mutiply big number without BigInteger
{ bigInteger tmp; int num1[500] = { 0 }; int num2[500] = { 0 }; int result[500] = { 0 }; for (int i = 0; i < obj1.length; i++) num1[i] = obj1.data[obj1.length - 1 - i]; for (int i = 0; i < obj2.length; i++) num2[i] = obj2.data[obj2.length - 1 - i]; for (int i = 0; i < obj1.length; i++) ...
1
3bf03cdd28d9cf078dd45a290c718c60
fd5165048ab5e84bacd5be51cddd6570
Verificamos si personaje puede unirse al grupo
if user.musician? "#{user.name} desea unirse al grupo" else "#{user.name} desea que te unas al grupo" end end
0
926d29ab155dd41f21cb6da078642044
b8596138f8fbae0341551822c0d29d6e
登录协同服务器,最多重试3次
{ int count = 0; while (true) { StopConnection(); if (EstablishConnection() == 0) { Log.log.Info("Connection success"); break; } else { Log.log.Info("Connection fail,try again"); count++; } if (count >= 3) { ReportError(new ErrorInfo(ReportInfo.Err...
1
c567d136c36a42b0642dd25c7e4daf9a
abc0e2eb23959591bcd07815845ebac1
打印__new__方法中的相关信息
class ListMetaclass(type): #我们传入关键字参数metaclass时,魔术就生效了, #它指示Python解释器在创建MyList时,要通过ListMetaclass.__new__()来创建 def __new__(cls,name,bases,attrs): print(cls,name,bases,attrs) attrs["add"] = lambda self,value:self.append(value) print(cls,name,bases,attrs) return type.__new__(cls,nam...
1
a1e80ed453f49157d6abc30564269488
48d7dbeb6823b3810b25c94564e01336
Метод редактировния записи заявки на регистрацию учетной записи
class Registers(object): def editRegister(self, register, number): self.registerList[number] = register
0
3cbc235b8cb9eac0d3550600449e3647
583bf83f818bbb3cfc5dfdfb22f3c242
Check if filename is supported by GDAL
class SpectralImage(Spectrum, Image): def is_supported(self, fname): for ftype in self.file_types: if ftype in fname: return True return False
0
0e548509e1092f227dc1672026b20845
cd6728e31d9e9c78d6a222c7612f7058
recursive function to do the powers
{ if (var > 0) { return var * Recursive(var - 1); } return 1; }
1
39c3004c61c337ff07be2c6e9216a890
a5aceaaf250146d4a0e088a0dcc77f8c
Set the count of break loop. {INTERNAL METHOD}
public class WMLElement implements MessageWriters public abstract static class Applicator public final void setBreak(boolean inBreak) { this.inBreak = inBreak; }
0
1650fb6e85724094275b89e2c5798f42
012253e7ea395f26b8f6591303a2c26f
Writes a null-terminated string to the blob.
{ if (v == NULL) return; volatile unsigned char *p = v; while (size--) *p++ = '\0'; }
0
4c9fcb2433bb3e99a7a3f4e44152b637
3e7f0c8f9617e232abb14ba07f87726c
Event handler that reacts to incoming sensor data from arduino by plotting points
namespace AsciiArt class Class2 private void btnPlot_Click(object sender, RoutedEventArgs e) { int i; double x, y, xIncr, f; double xOld, yOld; FormattedText fmtxt; winWidth = imgPlot.Width; winHeight = imgPlot.Height; System.Windows.Me...
0
ce3d1e335a12b954e040fdec5b6f73d0
3e7eca9ffd7780188f9a88b5474d47ab
@brief Initializes the transceiver MAF AMI0 interrupt This function sets the microcontroller specific registers responsible for handling the transceiver MAF AMI0 interrupt
static uint8_t amsc_init(struct prf_task_env* env, uint16_t* start_hdl, uint16_t app_task, uint8_t sec_lvl, void* params) { uint8_t idx; BLE_FUNC_ENTER(); struct amsc_env_tag* amsc_env = (struct amsc_env_tag* ) ke_malloc(sizeof(struct amsc_env_tag), KE_MEM_ATT_DB); env->env = (prf_env_t*) a...
0
2339ea062dbf6c5c28e3ab120f783256
d6deca5094e5dfceb270a23f84e71f48
Return the compact representation size
{ return m.buffer + m.hashsize + m.auxhash_size + tornado_compressor_outbuf_size(m.buffer) + (compress_all_at_once? 0:LARGE_BUFFER_SIZE*2) + (m.hash3?1*mb:0) + (m.match_parser==OPTIMAL? OPTIMA...
1
8a7bd9006bd1a402c39da88835f89805
2d438430600d928a28aeb7e98eab1a5c
Returns green (hyper)rectangles
rectangles_sat = [] if len(self.region) > 2: print("Error while visualising", len(self.region), "dimensional space") return elif len(self.region) == 2: for rectangle in (self.rectangles_sat_to_show, self.rectangles_sat)[show_all]: rectangles_sa...
1
e878359a5bfde51476af80a4e800bd03
af4d55d62b5928aa30bd87e96ca2ea58
This methods returns the list of documentIDs which contain the word query.
List<Integer> getDocIdByKeyWordList(@Param("keyWordList") String keyWordList);
1
c05d331429b4dfc20e9366276bea41ca
4e1a387bbb2960db47b739061b28028a
获取长期计划未提交数量
namespace DAL.FlightPlan public class CurrentFlightPlanDAL : DBHelper<CurrentFlightPlan> public int GetCurrentSubmitNum(int userId) { var linq = from t in context.CurrentFlightPlan where t.Creator == userId where t.PlanState != "0" ...
0
be327ea8fbcc7cc224a0e3c7f8142f4b
8ef3847b7c5609aa272b7f77303b2239
If a notebook with the specified ID does not exist, respond with a 404, otherwise respond with a JSON representation.
func HandleByID(res http.ResponseWriter, req *http.Request) { for _, i := range req.Header["Accept"] { if i == "application/json" { if req.Method == http.MethodGet { res.Header().Set("Content-Type", "application/json") params := mux.Vars(req) id, err := strconv.Atoi(params["id"]) if err != nil { ...
1
084392519828152d38d0ab452b5f75ef
ab946c7dc8a1653870cfacff07dd1e61
Calcualte which shape can be visualised given the size of the encoded layer.
if inpshape is None: inpshape = self.inpshape if not self.encoderactive: return inpshape if checkinput: assert inpshape[(1 if self.inpdim == 4 else 2)] == self.fmapsin or \ inpshape[(1 if self.inpdim == 4 else 2)] is None, "Number of input c...
1
d7e2f7dba0b714eab940f55d134aabf4
5e44279a59b6217360dcd989602299be
Add types and constructor's information to dictionary
void G__cpp_setup_typetabler_Dict() { G__search_typename2("Char_t",99,-1,0,-1); G__setnewtype(-1,"Signed Character 1 byte (char)",0); G__search_typename2("UChar_t",98,-1,0,-1); G__setnewtype(-1,"Unsigned Character 1 byte (unsigned char)",0); G__search_typename2("Short_t",115,-1,0,-1); G__setnewtype(-1...
1
95dc861f7815d32b2ce4337960d39721
0f91f601094029b9f81d58f96483476f
Prevents addition range falling below the default range
namespace BDArmory.Misc public abstract class EngageableWeapon : PartModule, IEngageService public void OnRangeUpdated(BaseField field, object obj) { if (engageRangeMax < engageRangeMin) engageRangeMax = engageRangeMin; }
1
b5655d833540a6bb0fb50f8a5802a2ef
8b8b36b1ba7fc922bd71d78fc3de7707
Remove an account vertex from AML typology member candidates
class TransactionGenerator: def remove_typology_candidate(self, acct): self.hubs.discard(acct) bank_id = self.acct_to_bank[acct] del self.acct_to_bank[acct] self.bank_to_accts[bank_id].discard(acct)
1
d7c8819ac8725d973896839a2bd5d8d2
12accc9a17bf9ba7a394b302b53d71e0
Confirming whether EMIF service recovery execution is required or not.
def emergency_recover_states_from_failure(): _emergency_state_check() _emergency_iobuf_extract()
0
4a3312035b411a3859d490edcca5c919
714731dde49a60e5fc9d1763079a3b6f
Optional. Pass <c>true</c> if you require the user's full name to complete the order.
namespace FluentCommands.Interfaces.MessageBuilders IInvoiceOptionalBuilder NeedsEmail(bool needsEmail);
0
6d03cdd97dcc6a73edfa7a77fc91875a
dec82a15e38997eb414574b960350516
Loads new proxies. Returns promise, which resolves into an array of proxies.
class ProxyService function extractNewProxies(OutputInterface $output = null) { $proxyorg = new ProxyOrg(new Browser()); foreach ($proxyorg->getProxyList() as $proxy) { $domain = $proxy['domain']; $status = $this->addNewProxy($domain, $proxy['country'], $proxy['type']); ...
0
0d848bde6ca63695866d5705b1ad61aa
2f2821ce8105344ed6760ce5d870459c
Cancels the blob upload, deleting any data uploaded and removing the upload itself.
uploadId: string; uploadStatusId: string; path: string; fileManager: FileManager; dataStore: DataStore; }): Promise<void> { try { await params.fileManager.cancelMultipart({ path: params.path, uploadId: params.uploadId, }); return await params.dataStore.deleteM...
1
600cf4fd51ba0082301e95e73e020441
1430ac1f0da76e39e486fee6d4518e2e
hitung nilai untuk norma panen OER BJR
{ self::$proses = self::bobotDikaliMatrikNormalisasiProses(); self::$hasil = self::bobotDikaliMatrikNormalisasiHasil(); return $this; }
0
e3598a31bdea26f7224d6d3689b2b16a
578bafe952261d7fa261d3d006e1ed44
Returns the article history ID of this article history.
public class PointHistory implements Serializable, WebshopEntity public Long getPointHistoryId() { return this.pointHistoryId; }
0
3204e39049219170be56a249b3c00d4f
e8004b57bc5cb3a73e1b53f20dabdec5
we never determine wether operation can be performed as it is optional ;-)
class DBWeatherCache implements StrategyInterface public function isPossible() { return true; }
1
3f8702490a5e2dee8843e2bb9349e94d
190c15ccf0ce5523103f30620d45af5e
返回点pa和点pb之间的距离
class datmo float distancePoints(geometry_msgs::Point pa, geometry_msgs::Point pb) { return sqrt(pow((pa.x - pb.x), 2.0) + pow((pa.y - pb.y), 2.0)); }
1
107184285a8a32606a97ae6cc2240dce
a59c68a3c97242237dad24bcb0641707
Generic yes/no
class CommandLineClass def YesNo prompt = _("yes or no?") ui = UserInput(prompt) yes = _("yes") no = _("no") while ui != yes && ui != no ui = UserInput(prompt) end ui == yes end
1
193e73ab44f63813807f1e2072a286a2
8b3814a7a692bb0f8acd5f6032453b95
Atualiza o preço no banco
{ var registroAtual = await DbSet.AsNoTracking().FirstOrDefaultAsync(x => x.Id == servico.Id); if (registroAtual.Preco != servico.Preco) return registroAtual.Preco; return 0; }
0
f31c184f4cce8982fcf4474c04d5d374
b980ad1f73c1948b8db872fcae6bb11e
Calculates all the amount after giving overall discount in tender window and updates the new values in text boxes
{ var Name = serviceTypeSelected; var tat = document.getElementById("txtTurnAroundTime").value; var rate = 0; if (tat == "5" || tat == "0") { if (Name == "Standard Editing") { rate = 0.035; } else if (Name == "Advanced Editing") { rate = 0.06; } else if (Name == "Substantive Editing") {...
1
e50d78dc988e1ec4626a0f666faf9d73
dc05c142ce26e195e5b74db043b6add3
arr의 start부터 end까지 숫자들 중에서 pivot보다 작은 값들을 result에 채우는 함수 또한, 피벗의 왼쪽에 있는 원소들의 갯수를 반환
i = st + 1 count = 0 piv = arr[st] while i < len(arr): if piv > arr[i]: count += 1 arr[i], arr[count] = arr[count], arr[i] i += 1 else: i += 1 arr[count],arr[st] = arr[st], arr[count] return count
1
4f9c11d61e39dc0f82d499e16b09b9be
a8a7706dd62806ef3caf76bb0a5e0ac5
Create a plot comparing the duplicate pairs for the given star.
def plot_im_star(ini, img, x, y, mag, err, title, filename): ny, nx = img.shape fig = plt.figure(figsize=(nx/50.0, ny/50.0)) ax = fig.add_subplot(111) d_m, d_s = meanclip(img) ax.imshow(img, cmap="gray", vmin=d_m - d_s * ini["plot_img_lowsigma"], vmax=d_m + d_s * ini["plo...
0
f408e07da1071f09aa23c37f86f2b7f8
3efd629c1abc268b61128ae3e4de2cff
Returns the meta object for the containment reference '{@link it.csi.mddtools.datagen.DataAccessObject#getPkGenerator <em>Pk Generator</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getdataGenerator();
0
71a787b4f63e3d851db363d1ee9e072f
88c7d368eaea02a8c915f637f87b836c
获取商户添加商品所需的数据
return this.fb.group({ merchantName: ["", [Validators.required, FormValidService.nameValid]], merchantPhone: ["", [Validators.required, FormValidService.mobileValid]], merchantAddress: [ "", [Validators.required, Validators.minLength(6), Validators.maxLength(50)] ], ...
1
1b9d86508f90229bba979fe9c9649f72
fd467f2bfe6908911bafe24ff542edf1
处理定时器任务的实际函数
function routine(){ jihou(); setNextTimer(); }
0
5439255c4b0ef0454edde3d480225921
470941465576793246dfe5e3fd4165a6
EarliestOffset set Offset to Earliest
decimal? EarliestByOffsetAllowNulls(Func<TSource, decimal?> selector);
0
08c71681bc7e2c3518d357f3f85a2d61
bb3e05299b3c9fc70f1e91e686186881
说明: 根据主键设置多条数据删除状态为1
{ List<S_SMSMsgContent> list = new List<S_SMSMsgContent>(); foreach (var item in this.GetListByIds(list_ids)) { item.isDel = true; list.Add(item); } try { this.UpdateByList(list); ...
1
262c5be7e1f3f8161b7c18ad4479687f
a965cc2a3660bd8743b77ab2c41f3eb4
b.中序遍历 中序遍历递归解法 (1)如果二叉树为空,空操作。 (2)如果二叉树不为空,中序遍历左子树,访问根节点,中序遍历右子树
public class TreeNodeTest public void midOrderRecursion(TreeNode root) { if (null == root) { return; } midOrderRecursion(root.left); visit(root); midOrderRecursion(root.right); }
1
b4ef3d45d073fba346a112f591f8856c
1bbdbece5411b81493ee533daa0c46c6
Unsupported enums throw errors.
class TypeInfoTest(test_lib.GRRBaseTest): def testTypeInfoEnumObjects(self): a = type_info.SemanticEnum(rdfvalue.PathSpec.PathType) self.assertRaises(type_info.TypeValueError, a.Validate, 9999) self.assertRaises(type_info.TypeValueError, a.Validate, None) a.Validate(rdfvalue.PathSpec.PathType.OS)
1
ac63b86f68ea23548e989fd990b592fd
23c8908282c19d90fc16515f7bd181c0
<p> Lists all managed policies that are attached to the specified IAM user. </p> <p> An IAM user can also have inline policies embedded with it. To list the inline policies for a user, use the <a>ListUserPolicies</a> API. For information about policies, see <a href= "http://docs.aws.amazon.com/IAM/latest/UserGuide/poli...
export class Client extends AbstractClient async ListAttachedUserAllPolicies( req: ListAttachedUserAllPoliciesRequest, cb?: (error: string, rep: ListAttachedUserAllPoliciesResponse) => void ): Promise<ListAttachedUserAllPoliciesResponse> { return this.request("ListAttachedUserAllPolicies", req, cb) }
1
5616f92880f78252b12944a16c9548d0
03ee77f622b80befb9258a639df3de6f
批量更新link状态
public class FuncDetailActivity extends AbsBaseActivity implements LocationControlListener, SubmitDataListener private void updateLinkSubmitState(int parentId) { List<Submit> linkSubmitList = submitDB.findSubmitByParentId(parentId); if (!linkSubmitList.isEmpty()) { submitDB.updateSubmitStateByParentId(parentId);...
1
edab3342c3533e1a53dce44fce399b84
6d7b1c329a18da48b960a2dbc4aa902c
判断C2和C6是否能发生双分子反应
boolean hasC2_can();
0
38f169851667ea345ba9d95a1f8741df
028f74429d8f043967cab0efd80206cb
Добавляет триплет в буфер обработки
void mglVertex3(MGLfloat x, MGLfloat y, MGLfloat z) { if (!started) MGL_ERROR("Wrong, Gen by mglVertex3"); MGL_Ver newOne(x, y, z, Color); newOne.Vec = Mat_Ver(MMatrix[MGL_MODELVIEW], newOne.Vec); newOne.Vec = Mat_Ver(MMatrix[MGL_PROJECTION], newOne.Vec); VertexChain_Buffer.push_back(newOne); if (poly == MGL_TR...
1
bf0c2dfc880a6524528c38b0228d1cea
94c5fb44e280b4cbd9e26a7096bc5f2b
add animation for selected button
function animatePress(btnColor) { $("." + btnColor).addClass("pressed"); setTimeout(function() { $("." + btnColor).removeClass("pressed"); }, 100); }
1
99fd467fc082ebc90720bebc5529977a
b579c0b014238c62cf71cc51e5183515
Compares the output of the BPF instruction generating functions to hardcoded instructions.
class InstructionTestBase(TestBase): def verify_against_reference(self, inputs, reference_fn): def process(): for input in inputs: if isinstance(input, tuple): in0, in1 = input yield self.dut.in0.eq(in0) yield self.dut.in1.eq(in...
1
7a70fa54abad1973841550be7f4f3116
d998e667c54f1dd052211d6f74c9c735
Get the script cloud variables of given object. Only available to Admin.
class View extends DataObject\ArrayWrapper public function getScriptVars($getJson = true) { if ($getJson) { return json_encode($this->_jsVars); } else { return $this->_jsVars; } }
0
61e96216db8dc2e5cad84e021d4c1f86
3fefcff142c9ac9cf588f5cde58ab165
Count the number of ‘@’ mentions in each tweet
def count_mention(text): pattern = r"""@[A-Za-z0-9-]+""" return len( re.findall(pattern, text, re.MULTILINE | re.IGNORECASE | re.VERBOSE))
1
0a8cb92093c0b48367ab22d21d4950d4
6569a676798107881a5223c08442b8c5
モグラをクリックしたら、モグラを消す
Destroy(gameObject); showText(0); FindObjectOfType<AudioManager>(). GetComponent<AudioSource>(). PlayOneShot(FindObjectOfType<AudioManager>(). onMiss ); GameDate.GagePoint -= 5; if(GameDate.GagePoint < 0) GameDate.GagePoint = 0; gageHandler.setGage(GameDate.GagePoint); }
1
1881598a2a52a1c2b9b2cd4353e65f09
bd0884e0f8c3bf14d9c2d4e003e36edf
计算三点围成的有向面积
var dx: number = p1.x - p2.x; var dy: number = p1.y - p2.y; var p1Len: number = Math.sqrt(dx * dx + dy * dy); dx = p2.x - p3.x; dy = p2.y - p3.y; var p2Len: number = Math.sqrt(dx * dx + dy * dy); dx = p3.x - p1.x; dy = p3.y ...
0
15723be85c775b4f8e7f4f76b942bfa6
fbff1430b6c02695e62659353ec210c2
prepares a new speech recognition job, sending the proper headers including the audio data header
transcribe = boto3.client('transcribe') mediaUri = "https://" + "s3-" + region + ".amazonaws.com/" + bucket + "/input/" + mediaFile print( "Creating Job: " + "transcribe" + mediaFile + " for " + mediaUri ) response = transcribe.start_transcription_job( TranscriptionJobName="transcribe_" + uuid.uuid4().hex + "_" + ...
0
7d5ea18f6c4c9334d3222cef616f3f47
ef6102b5295a503dcf86951194d296d1
Creates a frame for close messages in the WebSocket protocol.
{ $frame = new Frame('ACK'); if ($transactionId) { $frame->setHeader('transaction', $transactionId); } $frame->setHeader('message-id', $messageId); return $frame; }
0
3f8275e5d17a721817369955cf83e102
13de8d88e26182048ecda665fcca2115
返回JNDI上下文工厂.
abstract public class AbstractJmsSender extends AbstractSender public String getJndiContextFactory() { return jndiContextFactory; }
1
e33b85c8c2fe065d458ea977eb1a60fe
dbf47224d8eac2c0c24f08d9661ccfa7
非递归的快速排序
def quickSort1(arr): if not arr:return stack = [(0,len(arr)-1)] while stack: l,r = stack.pop() if l<r: index = partion(arr,l,r) stack.append((l,index-1)) stack.append((index+1,r)) return arr
1
a0e8832e0f28c77594323d7244923fe2
5bf2a6342c6d2ccd72a5639468ad5a37
从key的set中删除value,返回值代表删除是否成功
if redisType.GetType() != KRedisSet { return 0, RedisSetTypeErr } return RedisSetRemoveByKey(conn, redisType.GetKey(), values) }
1
5047bb71d991eb5f2d73c66fad5f56e5
2f6e8ddbd149918ffe6ac5450102884b
delete tanaman sesuai ID
{ HasilPanen::where('id_responden', $id)->where('kateg_modul', \Config::get('constants.MODULE.KERAMBA'))->delete(); BudidayaKeramba::where('id_responden', $id)->delete(); Biaya::where('id_responden', $id)->where('kateg_modul', \Config::get('constants.MODULE.KERAMBA'))->delete(); Hasi...
0
edec348705cf339bea482659945b013c
e55db6334c72714d90e381949ffb40bf
Returns true if the solver is generic and false if it is custom.
public boolean getIsGeneric();
1
e592f494ba1b278455446f461d7edcd1
c9910062874be1af5e3a20e6680a0e60
Testa se joga a exceção caso salve uma entidade sem chave
{ $this->expectException(PersistenceFailedException::class); $this->expectExceptionMessage('Entity save failure. Found the following errors (field.0: "Some message", multiple.one: "One", multiple.two: "Two")'); $entity = new Entity([ 'foo' => 'bar', ]); $entity->s...
0
222969cb07304dfc85bd81c3affc0fa6
75d4a02506efa241d252c78b42cefe95
add/edit an service category
$data = $request->input(); if ($request->hasFile('icon_url')) { $deleteimage = ServiceCategory::where('id', $data['id'])->first(); $image_path = $deleteimage->icon_url; $s3 = \Storage::disk('s3Images'); if($s3->exists($image_path)) { $s3->d...
1
04c6a4bd4b0a08b4f272562cecf30bd4
0a13c8055612854a58effd1876b7cb69
当前的下载任务结束
boolean allFinished = true; for (DownloadThread thread : mDownloadThreadList) { if (!thread.isFinished) { allFinished = false; break; } } if (allFinished) { threadDAO.deleteThread(mFileInfo.getUrl()); mTimer....
1
7db38aff3a1f089274feed3a4e251f4f
cbd6daed5af07b1936b0d8c3cdc790e6
Calculate the conversion from pixel to meter
public class Game extends com.badlogic.gdx.Game public static float CONVERTTOMETER(float pixelValue) { return (pixelValue/PIXELSPERMETER); }
1
0ce0d380107408a91cf4079727a61255
a176eb0d270cd8e3a5e7d86fc0cf2b85
获取其他金额理由
public class Settlement implements Serializable public java.math.BigDecimal getMoneyOther() { return this.moneyOther; }
0
8450841418370bbd79222a786ac26079
d22dc4a64dc84ff29ddda04c1162a925
Check that a list of weapons is correctly encoded into their names
self.check_output_equality( "one photograph, fifteen hairpins, Twenty-five quarks", ["1 photograph", "15 hairpins", "25 quarks"] )
0
53984d7d69c14bca28a28b6f896005c7
a2c78be507f55836df2c06d09079af60
Returns the promotion amount of this online promotion.
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "hotelId", "hotelName", "hotelDestination", "hotelDestinationRegionID", "hotelLongDestination", "hotelStreetAddress", "hotelCity", "hotelProvince", "hotelCountryCode", "hotelLocation", "hotelLatitude", "hotelLongitude", "hotelStarRating", "hotelGue...
1
3dd2554752fce12481e4cffdceba5d2d
4523adb665ed1b678ff8f9dbcea24469
Initializes the add photo button action
class MainActivity : AppCompatActivity() private fun initAddPhotoButton() { addPhotoButton.setOnClickListener { when { ContextCompat.checkSelfPermission( this, android.Manifest.permission.READ_EXTERNAL_STORAGE ) == PackageManage...
1
105ff0dc5ce9a39c9fa87844810df520
fc44cd98821908380f24403171eeff2a
! This function is responsible for erasing the target that was drawn by the last call to draw_cal_target.
class EyeLinkCoreGraphicsPsychopy(pylink.EyeLinkCustomDisplay): def erase_cal_target(self): self.display.flip()
1
e5cb09ab6072ce2eef44496cc5ba092e
063aa3ec3885fb9c8e47c94f2a9b4aed
Read distance from the side sensor placed in the rear.
class DistanceSensorAdapter(): # Konstruktor # -------------------------------------------------------------------------- def getDistanceRightBack(self): return self._getDistance(SENSOR_RIGHT_BACK)
1
60a393ed6618ba3de3309c552b80f3af
273cf78685b4c51a25f22ea9d8075806
Retrieves one UserBook from Firestore
public class Go4LunchViewModel extends ViewModel @NonNull public Task<DocumentSnapshot> getUser(@Nullable final FirebaseUser currentUser) throws Exception { if (currentUser == null) throw new Exception("FirebaseUser is null"); return this.mUserRepository.getUser(currentUser.getUid()) ...
0
bc38a35e5651563e486d50414f204d47
c9ff8be334085a5c260c5a2873ddd70e
Modify listener for role name textbox.
function OnGetSelectedRoleName(name) { selectedRoleName = name; }
0
894d0eb2ac674da5db68eed200f8fad6
34662be2665b249d198e321cd9c3030d
@brief Configures the LED dead width and clock width .
void LED_BasicConfig(uint8_t Clock_Width, uint8_t Dead_Width) { LED->DISCOM = Clock_Width; LED->LEDDZ = Dead_Width; }
1
92645f2eb9706f8e1172069fe0842318
30533838639352ebf0fec7bc5e4ac78d
判断单位是建筑
class BuildingInfo(object): def is_mansion(self): return self.basic_id == int(float( data_loader.OtherBasicInfo_dict["building_mansion"].value))
0
05c8eb7f7def79ca85603ecd7c0b3ec5
0479cc84851070bb0e2fbee3d098a93d
Metadata.xml XPath method reference: path="/api/package[@name='com.baidu.mapsdkplatform.comapi.map']/class[@name='A']/method[@name='onDoubleTapEvent' and count(parameter)=1 and parameter[1][@type='android.view.MotionEvent']]"
export default class JSMapView async setDoubleTapListener() { try { await MV.setDoubleTapListener(this._MGMapViewId); } catch (e) { console.error(e); } }
0
b58de9ea3a42cbafb1c222e1b6289a7d
7373c0ace52e9d143b2fa7ad601c2eac
Método abstrato, sem implementação
namespace Conta.ContaOO class ContaBancoInvestimento : ContaBanco, IContaInvestimento public void VenderAcao(string acao) { }
0
4d4310de46024535009c1e5635a349b4
5816f0fed4b38502cb4c21bfaeb81ea6
@brief Walk adjacencies on a link with a given v4 next-hop. that is visit the adjacencies with different link types.
mpls_adj_walk_cb (adj_index_t ai, void *ctx) { mpls_tunnel_stack(ai); return (ADJ_WALK_RC_CONTINUE); }
0
998fc5c2cb1e00120f2375ede9b05481
f4dc428f2fc3d47acbb70188d25baca0
Send any queued messages without dispatching events
namespace Prosics public class ClientProxy public void DispatchMsg() { lock (_msgQueue) { if ( _msgQueue.Count > 0 ) { NetMessage msg = _msgQueue.Dequeue (); if ( eventNetMessage != null ) eventNetMessage (msg); } } }
0
afe02106a55e0242efceb528bee38a9a
95148069a4d5ef715115f78eca3c978c
add(value) -> update Tree if is a new value\n Add a new Tree Node with given "value" as a leaf Tree Node on it\'s right place depending on the passed "value" and current Tree organization
class Tree(): def append(self, value): self.__append(['left', 'right'][value > self.value], value)
1
aa09d7b3c639bf2db8dc494fe4b79bc3
753318bfae7a2c686dcdd004acba81dd
\brief Sets minimal points count for spin image computation. spin-image. If at some point the support contains less points, exception is thrown
{ if (degree > 4) degree = 4; estimate->degree = degree; if (size < degree) size = degree; estimate->size = size; estimate->r.resize(0); }
0
4b5017056c7229aed81202efbc79d8e0
56a6bf899f05012eb6be4fd53c7b59ed
Call Trade Order Frame 6
class T64TD(T61TD): def __init__(self, **kwargs): super(T64TD, self).__init__(**kwargs) self.code = '6.4TD' self.cof = None
0
6e323a0c5164c9559120e734040e5767
db79c1460d03852b9ce411f80a48fc53
向数据表customers中插入Blob字段
public class BlobTest public static void InsertBlobTest() throws Exception { Connection connection = JDBCUtils.getConnection(); String sql = "insert into customers(name,email,birth,photo)values(?,?,?,?)"; PreparedStatement preparedStatement = connection.prepareStatement(sql); preparedSta...
1
31c3cb98c80ebd1441acdc97d2acfda5
574dc09e276e6a63ca9e8583bb7e1611
정수 74를 각 진법으로 표현하기
int main() { int n = 0x7F; decToBinary(n); return 0; }
0
66232bb5dd55e0d3b682e31270739394
1e60c540e8f6312fa74668a674ee5781
User hook for extracting additional columns from the photometry output file.
def extractPhotometry(l, f, filters, silent=True): nFilters = len(filters) phot = numpy.zeros(nFilters) for j in range(0,nFilters): phot[j] = filters[j].getFlux( l, f ) return output
0
37a077ccf1db3d59a8e677b5e5fc3930
50428cff89feba929bb17a5908af019f
Lambert W function on branch -1. Refer to http://en.wikipedia.org/wiki/Lambert_W_function and https://github.com/chatziko/location-guard/blob/master/src/js/laplace.js#L45
if (x == -1.0) { return Double.NEGATIVE_INFINITY } if (x == Double.POSITIVE_INFINITY) { return Double.POSITIVE_INFINITY } return if (x > 1e-6 || x < -1e-6 ) { val xpa = 1 + x val xpb = -(xpa - 1 - x) ...
0
273fb34d2928d7a52b0321d40ac22d59
f0026826a938b1f777c8bbfc8ef6d92b
@brief Converts predefined element for Tizen.
{ Emit(mold, GET_MOPT(mold, MOPT_MOLD_ALL) ? "#[T " : "make T ", value); }
0
d95e73f6779b97465bec232dc77f1884
82389dc30eee533d8156f6f3ce959410
Joins a collection by specified separator and predicate
public static class StringCollectionExtensions public static string JoinToString<T>(this IEnumerable<T> list, string delimiter, Func<T, bool> predicate, ITypeConverter<T, string> converter, Func<T, T> replaceFunc = null) => JoinToString(list, delimiter, predicate, converter.To, replaceFunc);
1
e442ebf8e889656d1b2541304f2b0ebe
dac938059300e18b61fed983c3582977
写入流方式上传到七牛云存储
class QiniuAdapter extends AbstractAdapter public function writeStream($path, $resource, Config $config) { list(, $error) = $this->getResumeUpload($path, $resource, $config)->upload(); return $error ? false : true; }
1
9b20162b7eee85db6dcc3a595cf84daa
e781e589da7eb0048a9bdf69ba2226e7
例如:字段名是tohOrgId则返回 OrgId,注意第一个字母是大写
if( value == null ){ return null; } String field = value.toLowerCase(); String[] values = field.split("\\_"); StringBuffer b = new StringBuffer(value.length()); for (int i = 0; i < values.length; i++) { if (i == 0){ b.append(values[i]); } b.append(firstCharUpperCase(values[i])); } return...
1
c3816224d09991f5f69eed5a16c8e342
d83c41b474272bba8a82eac189d76681
Makes the customer let the cash register know that they will be the next one paying
namespace UtilityWarehouse void NextCustomer();
1
f6869df936dcb334268721ef48d3fe89
48008a4040ec6760da622c6144f072ed
判断 某个理财客户 是否有理财合同, 主要用在 删除 VIP的时候做一个判断
@RequestMapping(value = "/mfCusCreditContract/checkCreditByCusNo") public List<MfCusCreditContract> checkCreditByCusNo(@RequestBody MfCusCreditContract mfCusCreditContract)throws Exception;
1
9d9671c287861014605e30414c19790e
962fc149e6e11ea8814ba0bd0c5f88e0
根据多个属性查询用户
public List<SysUser> fetchSysUserBySameProperties(@Param("sysUser") SysUser sysUser);
1
4b444fa94bd8c9d1664605c57282a363
018cb55c87deff96826ccf094475f391
Notify all listeners that a record was updated.
class Tracker(TrackerMixin, dict): def notify_updated(self, *args): e = self._get_entry(*args) e.track(*args)
0
659835699af6c8918698a2111d07805c
855f70b921e7959a0abd1fdd675569af
Updates the specified DlpEvaluatePoliciesJobResponse using PATCH and returns a <see cref="GraphResponse{DlpEvaluatePoliciesJobResponse}"/> object.
{ using (var _result = await operations.UpdateWithHttpMessagesAsync(jobId, jobUpdateParameter, jobUpdateOptions, null, cancellationToken).ConfigureAwait(false)) { return _result.Headers; } }
0
5697804c5829acb7301b088a1ce503c0
5494e228f41705cdf7a27d19156b0cc9
This tests checks the right return of the method getSpecialAbility of the LeaderCard class.
public void SpeicalShouldBeEmptyByDefault() { Tyrannotea t = new Tyrannotea(); Assert.Empty(t.Special); }
0
f2f934662320f7a7ba298c30d5b24338
b683d8311e682d97a05908ab7a1ffd00
创建时间<br> 对应数据库表字段:ODS_TMFX_PECULIAR_CATEGORY.CREATE_TIME<br>
public class SNOdsTMFXPeculiarCategory implements Serializable public Date getCreateTime() { return createTime; }
1