query_id
string
corpus_id
string
query
string
code
string
label
int64
480804ca64dd77823cabb2ad65ab4634
3e42f1b9220c0ced4271e40dbb2aa3de
fonction pour cacher les boutons initulisables dans certaines opérations
function AffBouton(bouton) { document.getElementById("start1").classList.add('d-none'); document.getElementById("start2").classList.add('d-none'); document.getElementById("grp3").classList.add('d-none'); document.getElementById("start4").classList.add('d-none'); switch (bouton) { case 1:...
1
34eb39f501bdf5927f6d53f7283e0fa8
5751423b768a27ccce1d3aeccad2a82c
This method is used to parse a 'fill' instruction, defined according to the project guidelines.
{ if ( strcmp(lArg2, "")) { if (err_print) printf("Error code 4 at line %d: unnecessary operands %s\n", lineCounter, lArg2); exit(4); } if ( !strcmp(lArg1, "")) { if (err_print) printf("Error code 4 at line %d: missing operands (Fill_in_16bits_Num)\n", lineCounter); e...
1
e4f11402fcae8735ff337216e8218474
5cc4427243814d35021d5236f05ad6a0
Add a Point and a Polar_vector to get the displaced Point
x = self.x + dis * math.cos(angle) y = self.y + dis * math.sin(angle) return Point(x,y)
1
d4b58c43ea214fec5c655c927f86a429
be4e9e03063e41e0f04b22182ba9f071
线性加载动画
public abstract class BaseFragment extends FragmentActivity public RelativeLayout showLoadingDialog() { RelativeLayout linearLayout = new RelativeLayout(m_Context); RelativeLayout.LayoutParams layoutParams_0 = new RelativeLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutPar...
1
aed87fd5b86bd09fbe01053a210e4d90
df313a276c9f2498beca2d0bc2652047
Removes a small amount of structural integrity from real estate building.
{ ResidentialProperty1 prop1 = new ResidentialProperty1(10000, "Mildew Motel", 4, 4); for(int i = 0; i < prop1.numOfRooms(); i++) { ArrayList<Person> p = new ArrayList<Person>(); p.add(new Person(randPersonName(), randInt(50), randDouble(1000))); p.add(new Person(randPersonName(), randInt(50), randDoubl...
0
7046f9137acb0ca631895170662e1201
98d5c265e111f5d974e7098cef0debd8
Build series-level datasets from the instance-level test data
study_dict = {} for study in self.studies: series_dict = {} for series in study.series: instance_list = [] for instance in series.instances: instance_list.append(instance.instance_uid) series_dict[series.series_u...
1
735477c7c6fcf17d2c74ed06363a8ee5
f0f429c8fe7ce4e363168b9ec46e18db
Esta función calcula los padres de cada nodo y los guarda en el vector parent de la estructura
def calc_parent(tree): n = tree.tree_.children_left.shape[0] c_left = pd.DataFrame(data = {"idx" : np.arange(n, dtype = np.int), "c" : tree.tree_.children_left}) c_right = pd.DataFrame(data = {"idx" : np.arange(n, dtype = np.int), "c" : tr...
1
ad40346934b9ce8aa40f5d6f3fef58ed
88224e6d5e9c0c0aae9d509de36b78e1
Testcase when generation of secret is unsuccessfull.
{ $this->getFunctionMock('\\Amghost\\Services\\Nodes', 'str_random') ->expects($this->once())->willReturn('random_string'); $this->repository->shouldReceive('create')->with([ 'name' => 'NodeName', 'daemonSecret' => 'random_string', ])->once()->andReturnNul...
0
9cf4ddf2d223ecc3dfaed66c172b1c11
69a28e1ebaedf77f9e02a77841e4a6bf
连续关闭N个界面,关闭到指定的uiId
namespace UIFrameWork public class UIManager : MonoBehaviour public void CloseUIForms(string uiFormName) { BaseUIForm baseUiForm; if (string.IsNullOrEmpty(uiFormName)) return; _DicALLUIForms.TryGetValue(uiFormName, out baseUiForm); if (baseUiForm == null) retu...
0
45c40aeed3e1ea70c5d57547937a7de7
30b31cd5b6a58b3fb8a949088342b5d1
获得图片永久素材
def get_MT(request): try: response = wechat.download_media('7-LSg0N_iFq-s6atji5NWe_i_0ED4_Wioi1vVNUQ1xBoXaVUA0SZGVKM45A09Bpk') with open('E://11.jpg', 'wb') as fd: for chunk in response.iter_content(1024): fd.write(chunk) return HttpRespon...
0
2ceadb7b0ca76f6fc0fe589f39feb9e5
993cc54b618faa410b7c688bf56038b5
Récupère une clé primaire fiable dans la BdD en appelant une procédure stockée qui incrémente une valeur prise dans la table CLES
class WRA{ static function getnewkeyimpr($table){ $result=1; $wd=new wra_db(); $wd->query='select value from '.WRA_CONF::$db_prefix."keys where tablename='$table'"; $wd->executereader(); if($wd->error==''&&$wd->rows_count!=0){ if($u0=$wd->read()){ $result =$u0[0]+1; } $wd->query = "SELECT GetNewK...
1
29a17766f7164a031c42bc384578071c
88802a9d2d1f5528609e3f2655c931ca
Fisher-Yates (Durstenfeld-Knuth) in-place shuffle
void shuffle(int *arr, int n) { for (int i = n - 1; i > 0; --i) swap(&arr[i], &arr[randIndex(i)]); }
1
bc363988652891a099d1fcca00f16e0a
377c3c5031536b4c1df7624eb640a4e3
Determine classifiers quality functions.
classifiers = [('LogReg', LogisticRegression(max_iter=1000,n_jobs=-1)), ('LinSVC', LinearSVC(random_state=123)), ('KNN', KNeighborsClassifier(n_jobs=-1)), ('SGD', SGDClassifier(random_state=123,n_jobs=-1)), ('Gauss', GaussianNB()), ...
0
8936ca6dd96462e25bc42064c66696bd
0128ec913aa7af8f0e1129593dba565f
Get the text for all lines.
class ValidityCollection: def text(self): if not self.lines: return None return '\n'.join(self.lines) + '\n'
1
34aff354de9ce3feadf794286efd56dc
b35aa2bf216cf9e3821a47eec4ba5346
Getter for <code>broadway.users.user_phone</code>.
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.7.3" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UsersRecord extends UpdatableRecordImpl<UsersRecord> implements Record15<String, String, String, String, String, String, Integer, ...
1
95cf6030429a36e63c2cba8ae702a8e4
ad8e8e1dda41194288d5439ee088f651
Function Name: TCPWM_3_ReadCounter Reads the current counter value. None Current counter value
uint32 TCPWM_5_ReadCounter(void) { return (TCPWM_5_COUNTER_REG & TCPWM_5_16BIT_MASK); }
0
eadfb49e2fb65a885562c22bb58deeea
244e0978609c1445f619ac0c110710c0
添加氢致延迟开裂项目数据
@RestController @RequestMapping(value = "/provider/ProjectDustEmission",method = RequestMethod.POST) public class PcProjectDustEmissionApi extends BaseController @PostMapping("/projectDustEmissionAddSave") public AjaxResult projectDustEmissionAddSave(@RequestBody SbProjectDustEmission sbProjectDustEmission) throw...
0
64dbf68856f109ebb8a8c7dfb95f7841
5f631c4839270169079bc531ff5c6543
レスポンスのボディへのファイルを設定する.
public class MutableRequest extends Request public void setBody(final InputStream body) { this.body = body; }
0
5d4476833f8c9fd277670a4ab2848752
49ba050765914fbf988adc014c94893b
获取阀门状态
List<BsEqptValveState> getTaskStateEqptValve(@Param("taskStateId") Long taskStateId);
1
853a1fa0860d5bc9d5f1ec956e540ae5
29741fb5bb0d01e45e48224f896bddec
Toggles the player between Stealth Mode and Normal Mode.
void do_cmd_toggle_stealth(void) { if (p_ptr->stealth_mode) { p_ptr->stealth_mode = FALSE; p_ptr->update |= (PU_BONUS); p_ptr->redraw |= (PR_STATE); } else { p_ptr->stealth_mode = TRUE; p_ptr->update |= (PU_BONUS); p_ptr->redraw |= (PR_STATE | PR_SPEED); } }
1
23cd8551726b65f54894ccaa7dc41aa5
22a135c932c266370f1daf202560e6c5
Chama a tela de cadastro;
namespace CadastroForms public partial class TelaMenu : Form private void btnCadastro_Click(object sender, EventArgs e) { TelaCadastro cadastro = new TelaCadastro(); cadastro.ShowDialog(); }
1
4f6c459e39cc26a046fe4a7997754a05
bb5134fa9b1a20ff7be09154b8084a6c
Get the current language from the URL
function GetCurrentLanguage() { $selfURL = GetCurrentURL(); if ( stripos($selfURL , "ja.") === 0 ) { return "ja"; } else if ( stripos($selfURL , "en.") === 0 ) { return "en"; } return "ja"; }
1
1f82b04e9fd3ecca1acdd0c37506fc47
9951210824c8db8846bb2b0d74854ec2
Method starting the IDA* algorithm used to solve the N puzzle
def IDA_solver(board, goal, n, h): if h == 2: bound = h_misplaced(board, n) else: bound = h_distance(board, n) path = [] path.append(board) while True: t = IDA_search(path, 0, n, h, bound, goal) if t == "FOUND": return path, bound if t == math.inf:...
1
6455b4bd7c89ebc9b100582132d93707
9d05369fdb1416ef3a11c0fe1d69b540
The method that will calculate a sum of expenses from a given list
totalExpenses = 0.0; ListIterator<Double> listIterator = amountList.listIterator(); while(listIterator.hasNext()){ totalExpenses += Double.valueOf(listIterator.next()); } return totalExpenses; }
1
0b107659e07c3c74359c4578a69fc6e0
9874ad97ae21844b241c168ddd338c21
根据组织的uuid更新组织成员状态
void updateOrgState(Store store)throws Exception;
0
f471959bd90aa1674c5d29bffe1797f0
77860248cc97f20e2fde437a229e7612
printing subsets via single dimensional array
for (int i = 0; i < cur; i++) { cout << A[i]; } cout << "\n"; int s = cur ? A[cur - 1] + 1 : 0; for (int i =s; i < n; i++) { A[cur] = i; print_subset(n, A, cur + 1); } }
1
6ea071ee716277ec726a96e0a0a68e91
b814ea145ad8053f9ed3729ce80cb189
魔石拾い
public class Buttons : MonoBehaviour public void Gacha() { SoundManager.PlaySe(Variables.SE.SeName.system_dec); StartCoroutine("MoveScene", "Gacha"); }
0
cdfdaa600d6a67f6b727a7557fb3eb8a
2ff8581619f22d796fbd3bbd25da9e01
Возвращает количество документов
class Services_HyperEstraier_NodeResult implements IteratorAggregate, Countable public function docNum() { return count($this->_docs); }
1
52b5588ce9ae644730b63aa8140e302a
d7c37dcbea5e29bf975a1218e5488349
Return true if the connection has not been closed by either side
class Connection def open?; @state == :open; end
1
125aab7e69bc2b6c1f7f5e1e5f67c1e1
490e3863aa7b5cd414d567ea61a7749c
Setter for state info if content of VCS ignore file should be replaced or not.
public void setIsReplace( boolean value );
1
00619c4bb1e76c02c85a7d5f6b1b2fc8
e136a614146e45052b2debd596a13e11
Changes melody to a new one or increases playback speed
stopTone(); melodyFrequencies = frequencies; melodyDurations = durations; melodyLength = length; melodyLoopCount = loopCount; melodyTimestamp = millis(); playMelodyTone(melodyIdx); }
0
fb87c998240198f3821e0a62e736c388
e3a8760224337c15cbb9a0ab510cf21a
Returns the meta object for class '{@link org.abchip.mimo.ui.widget.WidgetToolbar <em>Toolbar</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getTool();
0
a8d69d82f7ab1b5ba2f8aa7219e8cd67
016c59644f6446a4428955b6b4ec93da
Avslutar spelet
public void eindeSpel() throws RemoteException;
1
1396c728634e488d16d1f6a44789ae36
b78f6f05211bf40af5a5d1509090907b
验证是否存在issuenumber
namespace LotteryData.Business.Domain.Managers.HBK3 public class HBK3_Manager : LotteryEntityManagement public int QueryHBK3_ZHIssuseNumber(string issuseNumber) { this.Session.Clear(); return this.Session.Query<HBK3_ZH>().Count(p => p.IssuseNumber == issuseNumber); }
1
376c5a79049f07462b2909f5c60d889c
35b5cf7d774ca28cadf674c50c789b38
转出机构编号
@Table(name = "t_time_node") public class TimeNode public String getSendOrgCode() { return sendOrgCode; }
1
974abe2cc29c3ad38ada09f24a97d29a
116a416d4de3682cd8078cdcd15ac2d7
Check to see if ManualSnapshotRetentionPeriod property is set
namespace Amazon.Redshift.Model public partial class ModifyClusterSnapshotRequest : AmazonRedshiftRequest internal bool IsSetManualSnapshotRetentionPeriod() { return this._manualSnapshotRetentionPeriod.HasValue; }
1
8be3033cc9a3bd80a5e45b5e631b622f
4d8f16a27c45b83546f25a162eaf0ac4
设置表层被销毁处理器(当播放器被销毁,或从前台进入到后台时触发)
public class SDLSurface extends SurfaceView implements SurfaceHolder.Callback{ @Override public void surfaceDestroyed(SurfaceHolder holder) { Log.v("SDL", "surfaceDestroyed()"); WlPlayer.handlePause(); WlPlayer.mIsSurfaceReady = false; WlPlayer.onNativeSurfaceDestroyed(); }
1
2bd7b2fa294208785be8210912b0805f
cfee95d260db85f1525a55a544b1f047
基準点を元に描画するメソッド
class GosperCurve03Drawable: MyDrawable() override fun draw(canvas: Canvas) { if ( this::imageBitmap.isInitialized == false ) return canvas.drawBitmap(imageBitmap,0f,0f,framePaint) }
0
4c26bc7cac06baf98913bc2ca20b16cc
e6d1b21eab3bb49eecb0f9c3d7470d24
Genera un fichero .arff en la ruta indicada.
def save_arff(data, dest): args, _sufix = arff_saver_parser() saver = Saver(classname='weka.core.converters.ArffSaver', options=args_to_weka_options(args, _sufix)) saver.save_file(data, dest)
1
6aa530b75b43521083b2b0f1191d09e4
19ddeb5987d0e3f5ce2004468fd8050f
根据指定配置和actor的名称获取actor的引用(基于根节点)
ret = [] for node in actorNodes: if ActorNode.getName(node).find(actorName)==-1: ret.append(ActorNode.getName(node)) return ret
0
5633dd663e6ba6d999dd843bb8530815
91b246df26190f882e06c5e107ea6ce0
Should show past date time with almost two years.
public class BasicTest extends BaseTestHelper @Test public void SelectPastDate() { String methodName = Thread.currentThread().getStackTrace()[1].getMethodName(); log.info("Started test ==== " + methodName + " ===="); WebDriver driver = openBrowser(); driver.manage().window().maximize...
0
f2b2c600623d98bbd40885c77b574937
f52d3d6014d38246ba9dd2758fb6b18c
Returns the intersect of two sets of times.
public class DetermineClosestApproachBetweenRoutes public static SortedSet<Long> alignTimes(List<WayPoint> route1, List<WayPoint> route2) { long startTime = Math.max(route1.get(0).getTime(), route2.get(0).getTime()); long endTime = Math.min(route1.get(route1.size() - 1).getTime(), route2.get(route2.size() - 1).getT...
1
4e6d27dad791b3af84a3682e36af5d59
64fa24c3fd07201870c912d951192cdc
设置没数据时view是否可见
public class CheckedQuestionActivity extends BaseActivity private void showNoData(boolean isShow) { if (isShow) { listView.setVisibility(View.GONE); llNoData.setVisibility(View.VISIBLE); for (int i = 0; i < llRoot.getChildCount(); i++) { View child = llRoot.g...
1
71f9d8ef753f3c9f01637a7b53db7c6e
f61883339452203122c7444707be444b
POST: Donation
namespace Give.Controllers public class DonateController : Controller public ActionResult Index() { return View(); }
0
a9edbbe4f6fd53d5d265734534424e7b
b33565d84683431d720775a17609b62e
POST: Answers
namespace Gamification.Controllers public class AnswersController : Controller [ValidateInput(false)] public ActionResult Create(int id , string QuestionText) { ViewBag.QuestionText = QuestionText; ViewBag.QuizId = db.Questions.FirstOrDefault(q => q.Id == id).QuizId; ...
0
9555e8e95b1427da74a88f3438036777
1d49c76447b02d13ed2818f0d4214693
hide search layout
class MainMenuFragment: Fragment() private fun startSearch() { isSearching = true binding.txtSearchLayout.endIconDrawable = ContextCompat.getDrawable(requireContext(), R.drawable.baseline_close_black_24) }
0
a81b52239641dfb079325afe2fd48d86
cb4bd5b307f7a5ca6bf1b8a7c4e92805
Pressure thickness of vertical levels given interface pressures.
def theta(tair, pres): p_0 = 100000.0 if tair.ndim == pres.ndim: p_axis = pres else: zaxis = tair.shape.index(pres.shape[0]) slice_idx = [None] * tair.ndim slice_idx[zaxis] = slice(None) p_axis = pres[slice_idx] return tair * (p_0 / p_axis) ** KPPA
0
024645b5cb7b7d95cd8e66af2f5029ac
a8f21d34d404a2ee029bbbb7e521974d
Construire les tuiles d'animal
{ for($i=0;$i<10;$i++) { for ($j = 0; $j < 10; $j++) { new CasesVide($this,$i,$j); } } for($i=2;$i<=3;$i++) { for($j=4;$j<=5;$j++){ new Lacs($this,$i,$j); new Lacs($this,$i+4,$j); } ...
0
75bfe8c642ed522b56cfeec4e3844c88
4cca8596b7889c0437a24c3f7895f2bd
сохраняет спектр в формате JSON
void SpectrumHelper::saveToFile() { QDir qDir; if (qDir.exists(AUDIO_PATH) == false) qDir.mkdir(AUDIO_PATH); qDir.cd(AUDIO_PATH); if (qDir.exists(AUDIO_PARAM_PATH) == false) qDir.mkdir(AUDIO_PARAM_PATH); qDir.cd(AUDIO_PARAM_PATH); QFile file(qDir.absolutePath() + "/" + dev_id + ".dat"); file.open(QIODevice::...
0
fde8033c07f4b5a3f90513c44ff10518
8520389505f11271bfe3484ddaf0c0dc
Retrieves sensor info structure by box id
{ string[,] resultArr = null; DataSet sqlDataSet = GetSensorsInfoByBoxId(boxId); if((sqlDataSet != null)&&(sqlDataSet.Tables[0].Rows.Count > 0)) { resultArr = new string[sqlDataSet.Tables[0].Rows.Count,sqlDataSet.Tables[0].Columns.Count]; int index = 0; foreach(DataRow currRow in sqlDataSet.Ta...
1
3eedd074403b591a28b050152a02c494
feeee9cda5fe3d860fb2eb54c61f2872
read message content by content-length
http_conn::HTTP_CODE http_conn::pares_content(char* text) { if (m_read_idx >= m_content_length + m_checked_idx) { text[m_content_length] = '\0'; m_string = text; return GET_REQUEST; } return NO_REQUEST; }
1
2f448e0a0218cc6ca0fc5d60488f76c5
f39dd8b75f1aea51ccb65645a930b6fc
C3P0测试
public class C3P0 @Test public void testGetConnection() throws PropertyVetoException, SQLException { ComboPooledDataSource cpds = new ComboPooledDataSource(); cpds.setDriverClass("com.mysql.cj.jdbc.Driver"); cpds.setJdbcUrl("jdbc:mysql://localhost:3306/test?useSSL=false&serverTimezone=Asia/...
1
3229f53604129ed55c311a8baff77300
610b79153b6cb2da52e3cbab0c3f846e
指定されたランキングテーブルの2つ前までのレコードを取得する
{ $param = array( $pp_id, $view_datetime ); $sql = "SELECT * FROM ut_user_achievement_rank " . "WHERE pp_id = ? AND date_created > ?"; return $this->$dns->GetAll( $sql, $param ); }
0
892b2d84220f7fcd0076397011f53e04
83c6e6b859e0b6c487f05b4b77da625f
jaune
color("#000000", "#A9D18E") trapeze(x=-172, y=299, petite_base=340, cote=135, grande_base=580, fill=True) triangle(x=170, y=300, base=230, angle1=153.4, cote=124.5, angle2=52, cote2=124.5, fill=True) triangle(x=-400, y=300, base=230, angle1=154.8, cote=131.9, angle2=51.8, cote2=125.5, fill=True)
0
4c10bda9fdef7b73a40a23afa691933e
d9f236de9de139fcbf840e2d8805d33e
Hier wird mithilfe eines SQL-Befehls der Name des Autors übergeben und in die Datenbank eingetragen, dabei wird der Wert aus der Textbox genutzt
$sql = 'CALL `author_insert`("' . $name . '")'; $db = new DB(); $db->query($sql); }
1
61bc6b00f24f3e45d3f07f40799cedee
740b52223d9bf496b379bcd8e48b0a4d
Count the number of triangles between 2 nodes V and U, where V < U
sub_graph = g.subgraph(g.neighbors(u)) nodes_count = sub_graph.number_of_nodes() edges_count = sub_graph.number_of_edges() if nodes_count < 2: return u, [nodes_count, edges_count, 0.0] return u, (nodes_count, edges_count, (edges_count*2.0/(nodes_count*(nodes_count-1))...
0
0a80e83e88d9a8445c8a789a9c25ca55
cd2dcd124d8d98da4744cee4ea2e46dd
Sets the pax lists.
{ if (!$item instanceof \Maseuropa\Booking\StructType\SAParamPaxWSDO) { throw new \InvalidArgumentException(sprintf('The paxes property can only contain items of type \Maseuropa\Booking\StructType\SAParamPaxWSDO, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $...
1
53eec3c045ce217427d4d126030eca02
fab897407db046333f35838bb8b252be
**************************************************************************************************** generation of the IoT devices (users) ****************************************************************************************************
var template = document.getElementById('template16').innerHTML; textile = Hogan.compile(template); context = { 'devices' : devices}; tpl = textile.render(context); return tpl; }
0
9e74d2d7d04001dad0b815a3e05acb33
be62bad4b5ebb8d79bc835c8e9312453
タグからタグマップを取得する
namespace Nssol.Platypus.DataAccess.Repositories.Interfaces.TenantRepositories IEnumerable<DataTagMap> GetByTags(IEnumerable<Tag> tags);
1
2b29a67fcbde7f659f18cc1c455722b3
37ada368ea764c122443a80c9ffdfbd7
Tear down something after EACH test method
class TestClient: def teardown_method(self):
1
561cd1577c227e883f80702b98567960
c951159f86954c39634ddc31fcacd576
This method is executed when the pattern finder is used as part of a data profiler. It returns a list with dictionary serializations for the patterns that are discovered by the find method.
class PatternLoader(IPatternLoader): def load(self): pass
0
461522aa8cf7d64c7ea799e4add3d58b
c68e850a09a1ecced29232bfc9da7d13
Changes text to HTML entity numbers
class Parser: def _ent_numeric_repl(self, word): return self.formatter.rawHTML(word)
0
e224ac52938b19425447868dd45d3dc4
9f294bb7cc9e4ae444ecb30829d5bedd
! \brief enable FMC interrupt only one parameter can be selected which is shown as below: \arg FMC_INT_END: enable FMC end of program interrupt \arg FMC_INT_ERR: enable FMC error interrupt \retval none
{ #if MCI_DMA_ENABLED LPC_MCI->MASK0 |= ((DATA_END_INT_MASK)|(ERR_TX_INT_MASK)); #else LPC_MCI->MASK0 |= ((FIFO_TX_INT_MASK)|(DATA_END_INT_MASK)|(ERR_TX_INT_MASK)); #endif return; }
0
129093da3b80b49a4581c30ee9dd03cb
65cf4ce01edf30c1be2eb69c9fab5075
判断是否有遥信遥测数据
{ string sql = "select Count(*) from ROSO_DeviceState where DeviceID=@DeviceID and VatID=@VatID and Convert(varchar(10),[DAQTime],120)=Convert(varchar(10),getDate(),120)"; SqlParameter[] p ={ new SqlParameter("@DeviceID",deviceID), new SqlParameter("@VatID...
1
0fc36f31a8c48530cf6b5928f4b67401
257366c9864ad0139e76b09278b59b21
Prepares the host storage for disk images or direct testing on the host.
log.info("Preparing boxes for %s Openstack" % topology) log.info("Preparing virtual machines for lab=%s" % LAB) url = IMAGES_REPO + DEVSTACK_DISK local("test -e %s || wget -nv %s" % (DEVSTACK_DISK, url)) local("python ./tools/cloud/create.py -l {lab} -s /opt/imgs " "-z ./{disk} -t {topo} ...
1
70935e801a9a1ad91e5dbd97fc4fd3b8
60d8f7d163b7966799aca29562388c00
Recupera lista de Alíquotas de IR
{ try { ACBrECF.CarregaAliquotas(); } catch (Exception ex) { TrapError(ex); } }
1
95a16d42816260e6ab4a8699122c8b4a
423b2d6c1e16c51644be584631180eb8
Returns the current position of write head.
class AbstractDataWriter(object): def tell(self): pass
1
241edb489d5c4abcbbaa95e7d789f7f1
c868186b42820f75fc5072ca49239392
Atualiza a quantidade da palavra.
class WCCommandLine(QLineEdit): def update_word(self): all_text = self.text().split() self._word_count = len(all_text) self.change_word_count.emit(self.get_world_count())
1
8f0cf280c3879582867e82685972f76e
c8dfe4e1e8e849aa0f52a913723d6b89
Entry function:
def main(): key = 'not-so-random-key' plaintext = 'Good work! Your implementation is correct' ciphertext = encrypt(key, plaintext) print 'plaintext:', plaintext print 'ciphertext:', ciphertext ciphertext = '2D7FEE79FFCE80B7DDB7BDA5A7F878CE298615'\ '476F86F3B890FD4746BE2D8F741395F884B...
1
ea4fe9cc3d7072cb4a2f3888d5f1ba23
a119d5a25d30905045026aa35d9e2ad7
将一个DataFrame类型对象的columns1,和columns2两个字段的数据连接组成一个新的字段的数据,并将新的字段添加进原DataFrame对象中;
def merge_direct(): result = pd.merge(df1, df2) print(result)
0
d51cd618142f791250160ecf2334d416
8d024d3f1f9ba403272e2799cdc4acbd
SET_CLIENT_POOL ioctl()
__P ((int __fd, int __name)) {}
0
3495f5a764f3d8d56fa7ce8310bb5eb8
180182b7a08a641a4a2e3d557ac8d52c
Changes the text edit to use the big-size font.
namespace PocketNotepad public partial class formNotepad : Form private void menuItemTextSizeNormal_Click(object sender, EventArgs e) { this.textBoxDoc.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular); }
0
37b8fc298219f825f30eef356366e46a
9cc3754223a10f87f7efe7af26c6e7b5
检查数据库中存在的表
class my_sql(object): def sql_exists(self): tablename_list = [self.table_user,self.table_dict,self.table_record] for i in tablename_list: sql = "SELECT table_name FROM information_schema.TABLES WHERE table_name = '%s';"%i self.cur.execute(sql) _ =self.cur.fetchone() ...
1
f0e8c5b6f24403b2ab46ed2a930e5ca7
c8c40b8582f992c0ae5718e549dc99e0
获取本地流通货币信息
interface BuyService @GET("otc/buy/getCurrency") fun getCurrency(): Flowable<Result<MutableList<MainCurrencyBean>>>
1
eadeb109882bcd650571df6367221be0
c59005ca54b6d401773322a5766bf7bd
Retrieve analysis templates based on the specified criteria. By default, all analysis templates in the specified Asset Database are returned. Users can search for the analysis templates based on specific search parameters. If no parameters are specified in the search, the default values for each parameter will be used ...
{ var options = new InvokeOptions(); options.RequestMarshaller = ListAnalysisTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAnalysisTemplatesResponseUnmarshaller.Instance; return InvokeAsync<ListAnalysisTemplatesResponse>(request, options,...
1
cef4458d4b18ab60443f577cd25e9956
546ebc5292c82d49de44359db3331da6
Return the container for the given containerID from the given DN.
void __cdecl M_VOL8_GetContainer(LPDIRECT3DVOLUME8 pd3dv, HRESULT* phr, LPGUID pguid, void** ppContainer) { *phr = pd3dv->GetContainer(*pguid, ppContainer); }
0
c6d92aa018032af086b78f38283335e9
4f366c95e9010a471142fb6f0a742582
Assign Object to a specific group. it creates a new group if the group doesn't exist.
public class SecureObject extends AbstractImpl public void addOwningGroup( org.opencrx.kernel.base.jmi1.SecureObject obj, org.opencrx.security.realm1.jmi1.PrincipalGroup group, AclMarshaller marshaller, short mode, List<String> report, Map<String,Set<String>> filter ) throws Serv...
0
1632ded6ee34f228a993e773a34cc7fd
8d39ced4d448fd17dfc63abbe235399c
convert pdf into image and extract text from the image using tessract and return invoice information in dictonary
def pdf_data_extract(filename, currency): seller_report = {'latest_share_capital': None, 'second_latest_share_capital': None, 'client': None, 'establishment_of_relationship': None, 'revenue': None, 'revenue_currency': None, 'trade_receivables': None, 'cash_and_bank_balance'...
0
7c29d8ca88dcd0bef81a45a88bf4ee51
28035e91010597cd8042917aebe386d2
Set the _Cutoff value in the transition shader. @params : floating point number
void Spotlight::setCutOff(GLfloat cutOff) { _shader.setFloat(_spotlight + "." + _cutOff, cutOff); }
1
4bf445e70211096923f20daff5bb7aaf
a15e98873c1fc65a25aa094b267ac4d0
alternative way of initializing
func main(){ var empOne Employee empOne.Firstname = "Tom" empOne.Middlename = "K" empOne.Lastname = "Jeff" empOne.Age = 51 empOne.Height = 5.8 empOne.Address = "89 Cathey Dr, California" empOne.Role = "Software Engineer" fmt.Println(empOne) var empTwo Employee fmt.Printf("%+v\n", empTwo) e...
1
ede392939e211f8e71dd54f752c23f41
c1c4398fb79b24a958c036109abdac24
Retrieves Opponent Player's game choice.
public final class TwoPlayerGameDataViewModel extends ViewModel implements GameData @Override public @Nullable GameChoice getLocalPlayerChoice() { return localPlayerChoice; }
0
8cbe2f2dc3b5915ee2334ae53a55470f
2d9f5f2a1e950734ae723ce5352dba0f
通过jdbc type 获取java数据类型
public class GeneratorUtils public static String toJavaType(String jdbcType) { if (jdbcType.equals("CHAR") || jdbcType.equals("VARCHAR") || jdbcType.equals("LONGVARCHAR") || jdbcType.equals("TEXT")||jdbcType.equals("LONGTEXT")|| jdbcType.equals("VARBINARY")) { return "String"; } else if (jdb...
1
130ff9c524da71bfe773fafa750942c2
0c492cbe8da93ee8a3fff350779e9041
@brief Validates if Length field of AD structure is correct.
{ if ((length < 0) || (length > MaximumLength)) { throw new TlvException(ExceptionMessages.TlvUnsupportedLengthField); } }
1
bca29986b7252cdf55a99aee14de4165
2239a616fbbcd4200851b8ca7d805e5a
Starts this manager instance.
class NodeManagerBase(DROPManager): def start(self):
1
c732753ac9a57d8fe8891fc5fd837576
742e59584724ecff0de972c972eec168
Returns an array of all the focus listeners registered on this container. or an empty array if no focus listeners are currently registered
public class VaadinWindow extends VaadinUIComponentContainer implements UIWindow @Override public Iterable<UIPrespectiveListener> getPrespectiveListeners() { return listeners; }
0
e58868c57331794d554606531094c7b7
731f68027a3eeed4cc6db651a91f4d8a
Checks that the node correctly returns the private data if the data access is set to unprotected.
class EntityAccessTest extends UnitTestCase public function testForbiddenAccess() { $node = $this->prophesize(NodeInterface::class); $this->fieldId = 'node.article.field_content_visibility'; $this->fieldValue = 'public'; $this->fieldType = 'entity_access_field'; $this->accountId = 5; $this->node...
0
fe9ddface93fbd85a04fb88d78939ab2
3fa1c597cff8981b2a7ec705099a4263
获取书本介绍
public class BookDTO public String getDescription() { return description; }
1
dda5935d3af6ced674c762ed7cd154d9
09b9091dd82613679d81aeba0dcd96cf
получить не проверенные запросы
List<Request> getAllNotDoneRequests();
1
456edffe527b21ac7f3307563e4f1719
db6ee157c5fddfefd12841c6fef3769e
辅助函数:检查一行3数(非空)相等状态
class Board(object): def equal3(self, a, b, c): return a == b and b == c
1
c727b7aaab89cd234074b03a26c9f5d1
03f67ea020f7b94a0a759a93364edf67
Since the repo list actually modifies the live list, on cancel we simply restore the last list
if (this.getLastActiveRepo() === oldRepo) { this.setLastActiveRepo(newRepo); } let reviews = this.getCodeReviews(); if (typeof reviews[oldRepo] !== 'undefined') { reviews[newRepo] = reviews[oldRepo]; delete reviews[oldRepo]; this.setCodeReviews(reviews); } }
0
ea349c20c5f3439e625edef7bff8e7b9
fe15e9fc4f977e7d5a324b5136100ed2
Asettaa ohjaimet
public class Attack_of_8bit : PhysicsGame private void AsetaOhjaimet() { Keyboard.Listen(Key.Left, ButtonState.Down, AsetaNopeus, "Liikuta mailaa vasemmalle", maila, nopeusVasemmalle); Keyboard.Listen(Key.Left, ButtonState.Released, AsetaNopeus, null, maila, Vector.Zero); Keyboard.Listen(Key...
1
451db6e9399106f8b0f208bc367919b0
0d705d76a841b659d9d6267ee6c75a34
Sets the value of the '{@link bam.blipzAppMaker.AbstractApp#getIsAbstract <em>Is Abstract</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
void setAbstract(boolean value);
1
40d9e06f403ad8c663d80c09f1d31a73
3aefba9d7dea1d12f33ada4fcc4aac3a
Listens for attacks to be completed.
{ if(lstParticipants.SelectedIndex > -1 && initiativeManager.InitiativeRolled) { ClearAttackList(); PopulateAttackListFromRemainingAttacks(); DisplayActive(); } }
0
4876e97c5892d26ee2162ac1a9be590e
59613a13c843fbc093d3cb9c9a4398ad
Manages location and bluetooth callbacks
mLocationCallback = object : LocationCallback() { override fun onLocationResult(locationResult: LocationResult) { super.onLocationResult(locationResult) mCurrentLocation = locationResult.lastLocation mLastUpdateTime = DateFormat.getTimeInstance().forma...
0
6f545ba383a2c129f94e1083c001fd54
875426a9789e383aa6369a636b90dc4b
載入時自動檢查與建立UDT
public class ndb_hmf102a: WIT.Template.Project.n_dbbase protected override void uf_InitializeComponent() { this.ds_Data = new d_hmf102a(); this.uf_Initialize(); }
0
94ca6de9963f22118b5ab70d0cfc992d
2230e3959c533f555d6ab131f144de62
поиск обратного маршрута
global kol_ver closed = [] parent = [0,0,0,0,0,0,0,0,0,0,0] f_score = [0,0,0,0,0,0,0,0,0,0,0] g_score = [0,0,0,0,0,0,0,0,0,0,0] came_from = [-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1] counter = 1 open = [] open.append(start) parent[start] = start while (len(open) != 0): local_...
1
7d2c4d1bc94d75c3d69b3ac3e7b502cc
9503b93a62b6eb49c3127d397edce647
获取已经使用的命名空间名称
$strNameSapce = ""; $intPos = strpos($strContent, "namespace"); if ($intPos > -1) { $intStartPos = $intPos + strlen("namespace"); $strNameSapce = substr($strContent, $intStartPos, strpos($strContent, ";", $intStartPos) - $intStartPos); } return trim($strNa...
1
9b08f7d063bba62ae77c10d922eefb00
d6be7b24513d87e8304cf9bd6ed74967
重置用户端口
layer.closeAll(); var loadT = layer.msg('正在处理...',{icon:16,time:0,shade: [0.3, '#000']}); var data='port=' + port; $.post('/ftp?action=setPort',data, function(rdata) { layer.close(loadT) layer.msg(rdata.msg,{icon:rdata.status?1:2}) setTimeout(function(){ window.location.reload() },3000) }); }
1
43a1babec245c2fd5aaaa7c467b83dd7
4a88a11b082b40d31cb9699716fe6e49
Test case for get_price_recommendation_stats_vendor_v2
class TestProductsApi(unittest.TestCase): def test_post_offer_statistics_vendor_query(self): pass
0
2ded0147a1589ad9a71d732b3f91ea8f
9df7c4dcd7fc4dff7fece88603280751
获取一个没有数据时显示的view , textview
class WrapRecyclerView extends RecyclerView public View getEmptyDataView() { return mEmptyView; }
1