query_id
string
corpus_id
string
query
string
code
string
label
int64
28a10bebbe5d8037834d698aa5a3dd15
12a2f31e1f456f376b1fa65f70204b5d
Test that issuing the status command will attempt to call docker-compose
subprocess_mock): isfile_mock.return_value = True json_mock.load.return_value = {"app_run_id": "123-456-789"} expected_output = "This app does not support the `mlt status` command" subprocess_mock.side_effect = CalledProcessError( returncode=2, cmd="make status", ...
0
5c6ac689a0db41b847677826b2bb188e
a9b750990484dfab30a00845e226f52f
Test by downloading a single file. This sidesteps any issues with running multiprocessing within the unittest environment.
def mock_url_open(*args, **kwargs): return monkeypatch.setattr("urllib3.connectionpool.HTTPConnectionPool.urlopen", mock_url_open) get_ncbi_genomes.download_file( "http://foo", ncbi_args_file_exists_unique["args"], test_dir, "accession", "GenBank" )
1
2ac1bde625630422307091308c476118
1d9e1fd68b4b829914d52f3c26700d84
발사체 세팅 가져오기
namespace nInterface public partial class Form1 : Form private void setSend() { Hashtable tempHs = new Hashtable(); Hashtable smsHs = new Hashtable(); Hashtable mailHs = new Hashtable(); string tempIniKey = string.Empty; string Gubun = "SET"; ...
0
744f6749c280b9d32b0a3c6f19a5599e
c4b52359c021e4ff78767749f9c06f7b
Selects a row of squares, spreading out from the current square.
if (game.getCell(row, col).getMineCount() == 0 && !game.getCell(row, col).getIsFlagged()) { game.select(row, col); displayBoard(); for (int rowCount = -1; rowCount <= 1; rowCount++) { for (int colCount = -1; colCount <= 1; colCount++) { if (row + rowCount >= 0 && row + rowCount < size && col + co...
1
3940b5c84f1f92e75a2e8fe7410eca0f
e84fa30cd0dbaf81d365eb7ebe5344c4
Aggregation: monadic sum. For Maybe<T>, it amounts to returning the first non-empty item, or an empty maybe if they are all empty.
namespace Functional.Maybe public static class MaybeLinq public static Maybe<TR> SelectMaybe<T, TR>(this Maybe<T> a, Func<T, Maybe<TR>> fn) => a.SelectMany(fn);
0
b8aa39595f54ac2303b3aba82398fc6f
62b2f75a42e085e0313e8ac93fda8322
Sets the temporary variable name
class CodeGen: def setTemp(self): self.temp = self.temp + 1;
0
dd12655b6d0c3313256596dc2a66fb5d
2a1ebb8e700e469fb5e1e01502db9cc9
slice是否相等
if sl1 == nil || sl2 == nil { return false } if len(sl1) != len(sl2) { return false } for i := range sl1 { if sl1[i] != sl2[i] { return false } } return true }
1
29a98c79857439fe445ce839d620c671
aff78270e0082e88179d3b7b47cc1527
后插操作,在p节点之后插入元素e
public Position insertAfter(Position p, Object e) throws ExceptionPositionInvalid;
1
6d6b371ea9de4c966449a82897d97569
c825819abe70909ac19ca4ddd0787bc5
Retrieve the Average time for reading an arcticle from the "News Corpus" Dataset
float getAverageMessageReadThroughput();
0
54d71e9a5a9913a09de762c49b4d4f90
19ce29b82d19b65db81807d34d94810b
DES CBC 解密
block, err := des.NewCipher(key) if err != nil { panic(err) } blockModel := cipher.NewCBCDecrypter(block, key[:block.BlockSize()]) blockModel.CryptBlocks(src, src) src = Depadding(src) return src }
1
fe79f7ae987981c315e50f28e0fe6316
a6fa021b82a7d108faba55b99769fa19
Write settings to PlayerPrefs when EditorWindow is closed.
{ EditorPrefs.SetString("XMLSceneName", KSIData.xmlSceneName); EditorPrefs.SetString("BasePath", KSIData.baseFilePath); EditorPrefs.SetString("XMLFileName", KSIData.xmlFileName); EditorPrefs.SetBool("UseFolders", KSIData.useFolders); EditorPrefs.SetString("XMLFolder", KSIData...
1
7fb278d11fde2cb6a46ee87203b92bb1
5ad06bb3ff0ec2fe414c459c0be57773
Should we display download progress?
public class SketchImageView extends ImageView implements SketchImageViewInterface public void setShowDownloadProgress(boolean showDownloadProgress) { this.showDownloadProgress = showDownloadProgress; }
1
6caaaa8b726953c132c515efb8b88449
81cc4ace50b8b745fb71453e611143df
Gets the vertical relative alignment of the image.
export class Visual implements IDrawable, IPlaceable, ISize2d get verticalAlignment(): VerticalAlignment { return this._verticalAlignment; }
1
36f2538d60958fee222b539823c525c4
a6be5b8998d692b5a43912fe750e7155
设置纹理的各向异性程度
class CustomTerrainMaterial extends Laya.BaseMaterial{ set diffuseTexture3(value){ this._shaderValues.setTexture(CustomTerrainMaterial.DIFFUSETEXTURE3, value); this._setDetailNum(3); }
0
adb3b5d7b146afeaa364756435305ffd
8c1057cd78602784fc6fc1cd451d75da
Método para usar el ratón con el movimiento de la mano derecha
{ if (Input.GetButton("RightHandLow") && !Input.GetButton("LeftHandLow") && !Input.GetButton("LeftHandHigh") && !GetComponent<Animator>().GetBool("Idle")) { GetComponent<Animator>().Play("WalkRightHandLow"); RightHand.SetActive(true); RightHand.transform.localPosi...
0
d72d5d39a427b5e4e1262183d4ddce3c
107cf96de6249c2dee0d65a7894c8e09
Retrieve the validation information from disk and save this to memory
res = [] if self.path().exists(): with profile_unpickling(): try: with open(str(self.path()), 'rb') as f: unpickled = drake.Path.Unpickler(f).load() if unpickled is None: self.__invalid = True if isinstance(unpickled, di...
1
260fb2b887e49496b7a4ac7e34a1d358
60d3a634f58f7178797478a09d0fa5e1
Adds two real numbers together.
namespace Entropa.WcfUtils.MockService double Add( double a, double b );
1
e8e8b11d8f6901fdf070e7f5c252c665
13d043ac1e82f8ef6aece35495ff1e03
ユーザ情報変更時の「パスワードの確認」を無効にする
class User extends Authenticatable implements JWTSubject, Auditable public function cancelNeedChangePassword() { return $this->update([ 'is_need_change_password' => false, ]); }
1
e493f3eeeccb4689aac0250f05019b9d
cf470b579e28a20bd8a518269d609339
跳转至微信设置页面
onClickOpenSettingPage() { wx.openSetting({ }) }
1
13525d19de86eeb1211451aa4018650b
c127ca6f0e03db2cc90fb9e31e9fa06d
20151126の各ユーザの合計学習時間とユーザ名
total_time = {} user = User.all user.each do |row| sum = 0 time = Task.where("DATE_FORMAT(start_time,'%Y-%m-%d') = '2015-11-18'") time = time.where(user_id: row.user_id) time = time.select("(UNIX_TIMESTAMP(finish_time) - UNIX_TIMESTAMP(start_time)) / 60 as total") time.each do |time_row| ...
0
f91d2e37a79b8e70a64e8700e1da991f
0aa1d8c190713a77e75e541bc0dc241b
Modifie les boutons et permet de savoir si c'est la fin du jeu.
public class GameActivity extends AppCompatActivity @Override protected void onCreate(Bundle savedInstanceState) @Override public void onFinish() { btn.setEnabled(false); timer.setText(getString(R.string.score, points)); btnRestart.setVisibility(View....
1
5771f4f4440c1bae437d8307d6a38281
438967a23d89be5b8a8fb16e6b8b9123
Test that we get an Index error when we exceed the line number
class TestTodocmd(unittest.TestCase): def test_get_invalid_task_number_command(self): lenght = len(self.com.tasks) with self.assertRaises(IndexError): self.com.get(lenght + 1)
1
0111fde5f8893d88732602d03a520a65
3c271f97b17e35c47796d372248410a9
Hàm xử lý logic xóa chương trình đào tạo <p> Không cần validate
class ProgramController extends AdminController public function destroy($id) { CommonNormal::delete($id); return Redirect::action('ProgramController@index'); }
1
3621754c4f7ea4e85237c1e721dba778
c2d194e1eb447853e1e3b7aefde58786
Returns an edge between {@param u} and {@param v}. If the {@code Graph} is Directed the order matters.
public E getEdge(V sourceVertex, V destinationVertex);
1
c5b37ccf9710c3629c53da8a9cffecb2
477ec86b32d43c0106ffa86be32c48fb
Set this actor's internal identifier.
{ if (!this.IsLocal) { return; } this.actorNumber = newID; }
1
5f8a920c1b214767ddcf0a20e96abf96
ab2c38eb765a2e252cf08f44abd67ae2
# Transformação dos dados recebidos do cliente em dados espaciais
newvars_escenari <- setdiff(names(ds), "ID") dp[,newvars_escenari] <- ds[match(dp$ID, ds$ID),newvars_escenari] newvars_originals <- setdiff(names(do), names(dp)) dp[,newvars_originals] <- do[match(dp$ID, do$ID), newvars_originals] dt <- dp %>% filter(ID %in% ds$ID) ambit <- case_when...
0
3d1744ef44f15e0ba628a52a56e633dd
02e16d5707a6e25845b8854fe6bcb882
取得料盤查詢條件資料(模糊查詢) 查詢條件: 料盤編號
string start_palletTime, string end_palletTime, string start_toWHTime, string end_toWHTime, string palletNo, string roomName, ...
1
ec450b5fa1e9b5b189e813b8e9608bc4
634d5e1b0fdd89547008d97ebf933b68
Gets the RMHRG type HRG out come HRG out come flag by PK.
public boolean getYhrzxx() throws Throwable;
0
743d32c812c0bb949875f87b7491ac5e
2fbb8b6fd2d8e7ddc8a08153f4ad5353
Gets the time it takes for this NPC to respawn.
int Settings::getSpawnTime() const { return spawnTime;}
1
624c90deea2956a85f0435a4423cf491
0105e621d6c2a0e0f5b4d39f7e54c2b0
True if a single integer result will be returned by this pool
public void setSingleResult(boolean single);
1
f0e8c494d1298ff24c7a134ae6df1ff7
ab7b47c21fb8223af41a51bb67f48f2e
Disable the censor
def helpCensor(content): return profanity.censor(content, r'\*')
0
9992a9f71edb8eba7cbcb8f415d5868c
c72cfcc50187bae74c4ad5e4d6a579ff
cust_idを取得します。
public class Buyer extends AIdLnNm implements IIdLna public final DbCr getCust() { return this.cust; }
0
3fe3ee13610adde383c0c81808d47276
b7478ec2a3180ad54b84e3877fbc1a9d
Encode common part of DigestValidationRequest
val randomSpecCode = JNI.genSpecKey() val toBeDigest = "$requestData + $timestamp + $nonce + $rawBase64Key + $randomSpecCode".toByteArray(Charset.forName("UTF-8")) val Hex = MD5.digest(toBeDigest).hexUpper return Hex }
1
45d6857a099746e7061b0f840ecb8fe6
af4a6726382d949be5ff25d8f7e8bb1c
Gibt alle direkten Kunden eines anderen Geschaeftspartners
{ $SQLstring = "SELECT * FROM `mitarbeiter` WHERE KundenID = ".$kid.""; $result = $dbconn->query($SQLstring); $ds = $result->fetch_all(MYSQLI_ASSOC); return $ds; }
0
36cdc1cede09818f474ec00a2938047b
7b32526c631048af42dd2066f1974aba
Draws the most similar patterns sorted.
print '-----' for motif in reversed(sorted(motifDict.values(),key=lambda x: float(x.sigvalue))): print '%s:%s' % (motif.consensus,colorDict[motif.consensus]) for m in motifDict: motifDict[m].color = colorDict[motifDict[m].consensus]
1
56b649ea9ccdc99baeb9d8c4c18f7af5
030df0c0f0b707ae7b14e68d046f33cb
根据学员ID获取账户信息
Optional<Account> findByStudentId(Integer studentId);
1
dc8373c597352d8261d8f30c17b9e604
1e29a5b0f482f52637e10ffb16e1aa83
Saves all group locations.
num = 0 for i, value0 in enumerate(self.locationgroups): for j, value1 in enumerate(self.locationgroups[i]): self.locationgroups[i][j] = num num += 1
0
ddf8803a3ab599d0065959ed17c4226f
9cb27681f129e563ce981bd7d7d67237
Returns the meta object for the reference list '{@link Model.ExtTrans#getInputs <em>Inputs</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EReference getLocalFunction_Inputs();
0
1ef8d7bb301b2b3864bd947d4819bab9
47b52ae61f7daf740c44460a91824a17
Getter for <code>WETRN.V_OFFR_WITH_MS_GIFT.OSL_COST_TYP</code>.
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.7.2" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class VOffrWithMsGiftRecord extends TableRecordImpl<VOffrWithMsGiftRecord> public String getOslCrncyCd() { return (String) getValue(16...
0
931063831544817e7d5f2ae058271374
cc56025eefc257bf2617ef7ad8173152
Removes the Email Address at the given index. Called by ContactAttributeItemVisualizer.
{ for (int i = 0; i < _emailAddresses.Length; i++) { if (_emailAddresses[i].EmailAddress == emailAddress) { SystemUserData.DissociateSystemUserFromEmailAddress(_emailAddresses[i].EmailAddressId, _systemUserId); } ...
0
3965e306c72478c400d8c131d88c8993
60646e16c751e01a51c6257d37790d36
Gets the region from the game we are attached to (0, 'U', 'E');
uint8_t buttonHandler_getRegionNumber() { return regionNumber; }
0
39f9dccf9fb2b434a5101169a8a5a378
80d31c723288a140d7b4079766b3a388
设置强制缓存
class BaseHandler(RequestHandler): # # 通过继承,增加中间控制。 # # http://www.tornadoweb.org/documentation/web.html # def _set_nocache(self): if self.action.nocache: self.set_header("Cache-Control", "No-Cache")
0
69b53336d77038afbde66125fe476c1e
1bb9e90bee28f2b42a4497090d49e7f8
Test property null reference exception when Dependency Resolver is not a Container Provider.
[ExpectedException(typeof(NullReferenceException))] public void Security_NoUserServiceInDependencyResolver_ThrowsNullReferenceException() { mockContainerProvider = new Mock<IContainerProvider>(); DependencyResolver.SetResolver(mockContainerProvider.Object); va...
1
a2cf6e2cb32888bb7e0b929129a17f98
1c0976a828684fdf6f54ce65faf8267b
Default creates default RNN configuration
config = { "n_blocks": 1, "H_coord_conv": False, "conv_i_c": [1], "conv_o_c": [64], "conv_k_f": [3], "conv_k_t": [3], "conv_s_f": [1], "conv_s_t": [1], "conv_pad_type": "zero", ...
0
b8930086bcafbd2449f46443274ca330
3d00449e8be6212a17393782d002d048
(Highcharts, Highstock) The border color for the data label. Defaults to <code>undefined</code>.
final class HighchartsDataLabels implements JsonSerializable public function setBorderColor($borderColor) { $this->borderColor = $borderColor; return $this; }
1
f3622c92f32c3c432b473538e677a4fc
a0bd17361105d1c74d260ea77c37ac79
批量删除年级信息.
Integer deleteByGradeIds(Integer[] gradeIds);
1
87519ca49154c5787df671023b37fa2c
f2c6097a89b61b286bef2ed4c6bc274a
获取所有购买素材。
namespace RM.ServiceProvider.Service public class PurchaseService : IPurchase public List<MMS_PurchaseContent> GetAllInfo() { return dao.GetAllInfo(); }
1
a2a4f50d099f94200d8dac63ec3c50a8
335684b97762b8142b90c285fb6e8dc0
how the player hits the frog (where the boba needs to be for the hit to be 'true')
function insideBunny(x,y,z) { if (x<-1.5 && x>-2.3 && y>0.1 && y<1 && z<-0.5 && z>-1.6) return true; else if (x<-1.3 && x>-1.75 && y>0.75 && y<1.2 && z<-0.5 && z>-1) return true; else if (x<-1.7 && x>-2.3 && y>1.1 && y<1.45 && z<-0.35 && z>-0.6) return true; else if (x<-1.7 && x>-2.3 && y>1.1 && y<1.45 && ...
0
1954954777571b54d95d17c215ba8289
648d92ed0c4ca6c4f3a46e9c9e8ee666
Called when all sensor readings have been processed.
class ISensor(zope.interface.Interface): def finalize(self):
1
0d52f5d6093dfd530de9a1168efc875f
901d8f7ded6d0dab367ad14db47f98ed
判断指定引导id是否已经执行
boolean ifGuidance(Long userId);
0
eb14c8e04ac474865adc41b2bf68eb41
363a46d1286663e307ff6fe665158d4e
Moves to the next element recursively.
$next = &$array[$this->path[$offset]]; // $this->setValue(isset($next) ? $next : $next = [], ++$offset) : $next; if ($offset < $this->end) { return $this->setValue(isset($next) ? $next : $next = [], ++$offset); } else { return $next; } }
1
ef0f463480b989889c9ecc350e2fc9af
fb2bf610785d9bc320227dd71967cbbc
获取目前可镇压次数
export default class SiegeModel get canBuyNum() { let cfgBuyNum = ConfigManager.getItemById(Siege_globalCfg, "challenge").value[0] return cfgBuyNum - this.buyTimes }
1
482d80539bc42edef028b0fb7b860389
3c85df3815e9aac33d51bb998a4387e7
cs.yellow? # => true/false It is determined whether yellow using the color sensor. Returns true or false.
class SmartBulb(SmartDevice): def is_color(self) -> bool: return bool(self.sys_info['is_color'])
0
30d3e4351d6004daf92fe5d4b6cd76eb
3639640d15cf645ade5ef59f913af8e3
"计算共有多少张图片"
function getImages(){ var count = 0 ; var ids = ""; $("#images li").each(function(){ count ++ ; }); return count ; }
1
bed758bf2be0b47a43969ee6cef46494
3efc3f5e38f7e6a1ce14a33faa1bb7a0
APA 102c start of frame: 0x00000000
class APA102: def clock_start_frame(self): self.spi.xfer2([0] * 4)
1
de878f3c4f066ef95d5ee9d9a69f4e16
bdb5e20e049f3e779a2825cbe0491a64
Removes directory from the cache. Also removes all subdirectories and all files in them.
class DfCacheClear extends Command protected function removeDirectory($path) { $files = glob($path . '/*'); foreach ($files as $file) { if(is_dir($file)){ static::removeDirectory($file); } else if(basename($file)!=='.gitignore'){ unlink($file); } } if($path !== $this->cacheRoot) { rmdir($pat...
1
85e3b224452c21f82424fc57fe89d129
47d2a921c961101be3111cee0e183e25
e.g. ABC4-HDb8-8JSJ-KSDj
class BindingData(object): def get_mhckey(self, mhc, peptide_length): name = mhc.replace(':','').replace(' ','-').replace('_','-').replace('*','-') + '-' + peptide_length return name
0
5f33170ae23839b5cbb611315b894192
1dbbc7e3483841d19e85be355a391f90
지점코드 입력해 해당지점 입금대기 주문건 수 반환
public int reqGoodsLocInquiry(InquiryInfo info);
0
9b7997d5dc1c4403d43fdb8e57ab6830
8ae90a795a0a58e42d5619c1f4e57cef
打开之前保存的画布
class drawing pre(cxt) { console.log(this.history); if (this.history.length > 0) { let qingkong = this.history.pop(); this.cxt.putImageData(qingkong, 0, 0); } else { this.history = []; this.cxt.clearRect(0, 0, this.width, this.height); } ...
1
d7fc91f67ec66eb9572c3ea8a798efeb
d0dea8d1ce38683d111d4a7ad137ce0e
Sets the artifact ID.
open class ReleaseTypeExtension(val name: String) fun artifactId() = artifactId
0
2402ee06406c0257c9d762ec20ab48a9
42377d5da7ca3f29049a508c3a829916
Gets the sc 1 fitness per component.
public class Phase1SolutionDecomposition public HashMap<Integer, Double> getSc1FitnessPerComponent() { return this.sc1FitnessPerComponent; }
1
55a47207c82b1455a17a0f548e2f730b
de51caef6ce1d8617857523822f2c468
Get range of the arguments taking in account game screen size.
namespace Griddition.Core.Ui.Screens public class GameScreen : GridScreen private Rectangle GetPlayingGridBounds() { if (GameRoot.Instance.IsPortrait) { return new Rectangle(0, GetTopBarInfoBounds().Height + GetAnswerGridBounds().Height, ...
1
5345ecb1717bb9d02b5481c02351a07a
c03f79bef60851616eb7d9afb95e2b5c
根据单据ID获取相应的资产ID
public String getAssetIdByContractNo(String businessContractNo, UnderlyingAssetPoolStatus status);
1
7c951b96cb1a53f849f6e594a4fb68ab
815e7e19eb94b908039611f07ec57498
Determines if user wants lower case in generated password
class ComputerPasswordGenerator extends AbstractPasswordGenerator public function getLowercase() { return $this->getOptionValue(self::OPTION_LOWER_CASE); }
1
309fdd16324a5567e4da4b0c81564f59
3ed0fa9d1527bc062d20f0dfdbf235b7
覆写的目的将对文章的内容进行markdown渲染
class Article(CreatedUpdatedMixin, models.Model): # uuid_id = models.UUIDField(default=uuid.uuid4, primary_key=True, # editable=False) def get_markdown(self): return markdownify(self.content)
1
8259db411271a8ca2b0c7f653a63f10b
aa8b9623408ec5c726faf095a682a120
下载字典
namespace cspClient.utils class AnalyticJson public static void downLoadDicData() { try { String Address = XmlConfigHelper.GetValueByKey("Address"); String downurl = XmlConfigHelper.GetValueByKey("DownLoadDataURL"); downurl = Address + ...
1
6b5010d49df3588c6169caf9c0e46347
c044edda6960520d22d13c2dc133bf40
Tab SelectedIndexChanged event handler
namespace WinFormTest public partial class TestForm : Form private void tabMain_SelectedIndexChanged(object sender, EventArgs e) { }
1
7b87aa117533967a1afac363d8ecb0d3
c27d1aed0592b0186849b69ebca50fce
弹窗询问是否退出群组
final CommonConfirmDialog mCCDlg = new CommonConfirmDialog(this, "退出本群", "确定要退出本群吗?", "确定", "取消"); mCCDlg.setCancelable(false); mCCDlg.setClicklistener(new CCDlgClickListenerInterface() { @Override public void doConfirm() { mCCDlg.dismiss(); progressDialog = new ProgressDialog(IMRemoveGroupMember...
1
b450ba8cd4942c4fc09d07e14e7279c6
d30b50beec6cabb5f249a1b5258989b3
指定した座標の方向へ大砲を回転します.
{ Vector3 p = new Vector3(rb.position.x, rb.position.y, 1) - new Vector3(coord.x, coord.y, 1); float targetAngle = Mathf.Atan2(p.y, p.x) * Mathf.Rad2Deg; rb.MoveRotation(Mathf.MoveTowardsAngle(rb.rotation, targetAngle, rotationSpeed * Time.deltaTime)); }
1
a2d44ced152ac444563811a9cd6300a8
af27c62540a9fb9b0aaab5ab8a4a1ea4
Returns the current active treatment for an experiment name and identity, taking overrides into account
for (Treatment t : treatments) { if (t.getName().equalsIgnoreCase(name)) { return t; } } return null; }
0
a0b73086857bf87cdafe6a573b62ece1
04958ff550df377a083c3abb1e520ea2
Returns true if the entry was recorded as a short (kingside) castle.
void Position::wShortCastleFalse(){ _whiteCastleShortAllowed = false; }
0
854feb782749a7451a30ef7f5a4fe98e
c0830a4ae17d14d9a8910098178b335f
Returns the url to subscribe a user to a course
def user_subscribe(): link_str = lotify.get_auth_link(state=uuid.uuid4()) return jsonify(link_str=link_str)
1
530624fe38699205ed48ef28a0a4d415
2415addd51ae18eea7df36cd1e24f168
Format the audio stream into the request format.
label, audio_path = sample return json.dumps( { 'audio_filepath': audio_path, 'duration': 0.0 if skip_duration else librosa.core.get_duration(filename=audio_path), 'command': label, } )
1
8a7e89461677409f526e8d18dee50f61
c135279b14b0f3366b86e5ab18e9ba14
Disable back button when locked
unlockLockButton () { if ($("#toolbar_button_security").hasClass("icon-security-locked")) UIUtil.buttonClick("#toolbar_button_security", "icon-security icon-security-locked"); }
0
005a3d06c1db6723cb97c7fea752d70b
1dd461348bde032ef991b7cd746e29e5
根据订单id更改订单状态测试
@Slf4j public class SeniorPayServiceTest extends SpringBaseTest @Test public void updateOrderStatus() { String orderNo = "DWC2020071764632651"; seniorPayService.updateOrderStatusWithMq(orderNo, false); }
1
641efc9d1401968ccd68df9a076f70a4
21926232a8f237dbe0740f7b14e1598b
Sets the alien block position (upper left corner)
point_t get_alien_block_position(){ return alienBlockPosition; }
0
e0b7aafb028e533e9704367e357508a4
4c89e63f1237f5c8db77b5a9b4c04dce
Get results from a live hunt
class InMemoryDBHuntMixin(object): def CountHuntResults(self, hunt_id, with_tag=None, with_type=None): return len( self.ReadHuntResults( hunt_id, 0, sys.maxsize, with_tag=with_tag, with_type=with_type))
0
11a0a44c2e9a3c59bf42f195c064a398
589df6941796b70a98647a99841ed6c5
Creates an array of strings containing the swimming messages each swimmer in the aquarium is generating
void create() { populateAllArrays(); populateWithFish(); populateWithSharks(); }
0
f22d583512c0ccdd91fe474189adb548
d932357d16b2ac4acdfa39446b830995
Provides the config dictionary with json file access.
def config(path): with open(path, 'r') as f: return json.load(f)
1
c87ed53177d6b6f813e8ff2b277ffb73
f11ec522e8b723b2680f9f5ea0750388
Name : GetProductivityTasksByID Params: pID Return: *DOMAIN.ProductivityTasks Description: Get a ProductivityTasks by ID in a ProductivityTasks table
namespace Foresight.DataAccess [Serializable()] [DebuggerDisplay("ID: {ID}")] public partial class Device_Task public static Device_Task GetDevice_Task(int @iD) { string commandText = @" SELECT " + Device_Task.SelectFieldList + @" FROM [dbo].[Device_Task] WHERE [Device_Task].[ID] = @ID " + Device_Task.Defau...
0
cbbd6dfc8cb99b62d41f3238316720e8
322adf081aacda230fe6e4c964a7f043
Method for extracting the last value from a series prior to normalization. This value is then used for denormalizing the set.
{ double retval = NAN; mTimeseriesMutex.lock(); if (!mTimeseries.empty()) { std::map<double, double>::iterator i = mTimeseries.begin(); retval = (*i).second; } mTimeseriesMutex.unlock(); return retval; }
0
0e63fbb6f107780480cfabd8774e1742
eadaa1a257540b93c9b732c98e2394f1
Resets Stamp Palette
function P4stampReset() P4StampOption1 = false P4StampOption2 = false P4StampOption3 = false P4StampOption4 = false btn_stamp13.isVisible = true btn_stamp14.isVisible = true btn_stamp15.isVisible = true btn_stamp16.isVisible = true end
1
574ac0158bf65483455f38bedf98e02d
c583af407435509262536c5550bd6cef
@brief Register a port I/O handler
IOCIOPortIdSet(uint32_t ui32IOId, uint32_t ui32PortId) { uint32_t ui32IOReg; uint32_t ui32Config; ASSERT(ui32IOId <= IOID_31); ASSERT(ui32PortId <= IOC_PORT_RFC_GPI1); ui32IOReg = IOC_BASE + ( ui32IOId << 2 ); ui32Config = HWREG(ui32IOReg); ui32Config &= ~IOC_IOCFG0_PORT_ID_M; HWREG(ui32...
0
08c28316c916999f192054e96aba836c
80e80f8f3332f5f9ef89406e0abf1c98
確認番号を設定する<br> "*"によるワイルドカード検索が可能<br>
public class Apl0004s05ParamDto extends ParamBaseDto public void setConNoSearch(String conNoSearch) { this.conNoSearch = conNoSearch; }
1
b920235dcd78a4313f6bce11dd959a5b
0a1722412387b5b55cb5a19f76791478
gets the magnitude ( length ) of a vec squared
export class Vector2D MagSQ(): i32 { return this.x * this.x + this.y * this.y; }
1
fc87f138e9489ab7f9343b2e5d696825
ee7e0b5fdcaa2bd22f59ec7f47f62c49
Get accessControlItems.
class Employee public function getAccessControlItems() { return $this->accessControlItems; }
1
0a22eb9473317745c69b993de67833ff
36ed5918c2b6a3c2291767f07b320c6b
Create a new repository at path.
def create_repos(path): if not(os.path.exists(path)): os.makedirs(path) run_svnadmin("create", path) os.system('chmod -R a+rw ' + path)
1
afd19c078f29c2bce438ffcc73804b37
53b35c680c243a45aeba5732016a047b
fetches the records from the specified coloumnfamily
namespace POCOGenerator.Cassandra public class ConnectionToCluster public List<ColumnFamilyMetadata> FetchColumnFamilyMetadataDetails(string parent, string child) { try { var cmd = _cluster.CreatePocoCommand(); var columnfamilyfetchquery = ...
1
4ebfb511b04c033bcbb8d15d80845fcd
8c9a58d1a9c078c374ba7bd191cb5fd1
检查是否绑定了 ResponseCreateComplete 事件
protected int checkCreate() { if (ClientCreator.CommandClient.IsDisposed == 0) { if (CreateVersion == ClientCreator.CreateVersion) return 1; } close(); if (CreateVersion == ClientCreator.CreateVersion) ClientCreator.CommandClien...
0
1efb7fe5bf3b06dc4f2ae41adae5ff9b
219352324913751b4c993a6abe69cd1f
Gets petal count
class FilterWheelDriver(SerialDevice): def getPosCount(self): pcount = self['pcount?'] return int(pcount)
1
0392bd1d2325f40da7debf4abf091606
6b2e6882a2c02ba477d7fc302f61e9a9
Create a new network by stacking a few smaller NeuralNets.
self.layers=[] for i in range( len(layers)-1 ): self.layers.append( \ FullConnectedLayer(layers[i],layers[i+1],SigmoidActivator()) )
0
26308bf534e09f3fccf37858053a3697
d539beec203654295b0e60cbfda5b865
删除之后,如果是单页面类型,对应删除 {@inheritDoc}
class SinglePageObserver public function deleted(SinglePage $singlePage) { $content = $singlePage->content()->first(); $content->delete(); }
1
411fe49b20c8075de6b8e513c50f97f3
efdac4280895e84d9fb3dda661357d29
Cria uma conta bancaria de teste.
public void prepareBankAccount() { this.bankAccount = new BankAccount("123456789", false); this.bankAccount.setAccountBalance(100); }
1
6223af3c9a5eee1fc2d0357389f49632
de87b508f08e8d7b8f9d403900c4e15e
Load the initial CSS librarys and metadata to DOM
class Editor loadLibraries() { const script = document.createElement('script'); const link = document.createElement('link'); script.src = "https://cdn.jsdelivr.net/npm/spectrum-colorpicker2/dist/spectrum.min.js"; link.href = "https://cdn.jsdelivr.net/npm/spectrum-colorpicker2/dist/spectrum.min.css"; ...
1
d23eaa3b61a53ad172645f30c1d73542
bb1e72f1f323a9f536b3c9b5172260d8
64-bit floating point signal square root.
static FastSqrtFloat FastSqrt(FastSqrtFloat f) { int32 e; int32 *fi = (int32*) &f + MOST_SIG_OFFSET; if (f == (FastSqrtFloat)0.0) return((FastSqrtFloat)0.0); e = (*fi >> EXP_SHIFTS) - EXP_BIAS; *fi &= MANT_MASK; if (e & 1) *fi |= EXP_LSB; e >>= 1; *fi = (SqrtTab[*fi >> MANT_SHIFTS]) | ((e + EXP_BIAS) << EX...
0
0638263a25f4e613b4acca9239ac0a3c
609931bcf4dcc35fbeb5910b8f0a6d4a
测试通过注解配置角色,只有具有指定的角色才能访问
@Controller public class UserController @RequestMapping(value = "/testRole",method = RequestMethod.GET) @ResponseBody @RequiresRoles("admin") public String testRole(){ return "testRole success"; }
1
4fd5093a69c14606abea1599be0b2dd4
e97659a5cecbdd7dee6323b92ba8a7c6
Inserts the new [profile][com.addonovan.cse3330.model.Profile] into the database and returns the model built from querying the database with its id after insertion.
public class SQLiteProfile public void dbInsert(final SQLiteDatabase db) { ContentValues values = new ContentValues(); values.put(PROFILE_NAME_FIELD, mProfileName); values.put(DESCRIPTION_FIELD, mDescription); long profileId = -1; try { profileId = db.insert(LocalOAut...
0
43e25523f0fbfd93387984be6c35e953
7f4b136b4afb57aa40612a476d82caca
“Remove” the keyboard listener.
clear(); #ifndef CU_TOUCH_SCREEN if (_mouse == nullptr) { return; } _mouse->removePressListener(LISTENER_KEY); _mouse->removeMotionListener(LISTENER_KEY); _mouse->removeReleaseListener(LISTENER_KEY); #else if (_touch == nullptr) { return; } _touch->removeBeginListener...
0
65afd40fcb874a28bf9db49dae7f1a70
ac1e469c02f59347b5c0c08bd21db0b7
all the known property names (in the order they should be shown in a GUI)
public ArrayList<String> getPropertyNames() { ArrayList<String> propertyNames = new ArrayList<String>(); propertyNames.addAll(Arrays.asList(new String[]{"ColorField", "FieldName", "Font", "StyleField", "Text", "TextColor"})); return propertyNames; }
1
582886e3c0275f9b9993b472183ee186
ca0f8a9f6b2b770ce637bade1858731f
删除调单(一干来单设为失效)
@RequestMapping("/financed/invoiceLydel.php") public @ResponseBody BaseResponse invoiceLydel(String id, HttpServletRequest request) { return SoaConnectionFactory.delete(request, ConstantsUri.INVOICELY_DEL, null, BaseResponse.class, id); }
1