query_id
string
corpus_id
string
query
string
code
string
label
int64
2b0dce7b19df3dd93e03b65c0431d83f
c0dfd2e4802b46b17dbe5da749b3618f
Returns the value of field mail_half
public class Sch095Form extends Sch100Form public String getSch095Smail() { return sch095Smail__; }
0
25e01cb27da9182f668e303d5fccd931
813343606284f724305e6ff88a08bb99
事务模板,简化事务
public class MybatisTest extends LeetcodeApplicationTests @Test public void transactionTest() { transaction.transaction2(); }
0
160205473d1b2e0db1daf37192f8a2d7
32067c20d930d7e19ff53717ba4e41fc
Get default Java SE platform home. <p/>
String java_home = ""; try{ java_home = System.getProperty("java.home").replace("\\jre", ""); }catch(Exception ex){ } return java_home; }
1
429afd483eec3a1e12af68f00f8850a5
5c9f10610ca3ba09ef79903be3851b1f
Retourne la valeur minimum du tableau
int comparateur=tab[0]; for (int indice=1; indice< tab.length;indice++){ if (comparateur<tab[indice]) { comparateur=tab[indice]; } } return comparateur; }
1
138c809af6637f911f54a19e199f51c3
25271cc2ef3a82180cff28833c78eb8c
获取随机日期:最近一年
def get_random_date(): start = datetime(2020, 1, 1) end = datetime(2020, 10, 28) random_date = start + (end - start) * random.random() return random_date
0
1fdb742434e014f2ff1990f76c464375
c495937e2339253b8b6d9aeb7344518e
Returns the Employee object who's Name matches the username of the currently logged in user.
{ if (HttpContext.Current.Request.IsAuthenticated) { var user = GetCurrentUser(); return EmployeeName(user.EmployeeNumber); } return null; }
0
deaa9ce47075430c3b16d52314c2d9f4
7248f445a2b3a73b9aed038a6d9d6732
Créez une fonction qui prend un nombre et renvoie TRUE s’il est inférieur ou égal à zéro, sinon retournez FALSE.
function isEntier($nombreATester) { return floor($nombreATester) == $nombreATester; }
0
18e60d0dcc1a556eece7bd635cb4b0b2
5393873d4242ff035a0dadb4f5c788be
Get the value of cityLongitude
class Hostal extends \Mytrip\AdminBundle\Entity\Hostal implements \Doctrine\ORM\Proxy\Proxy public function getLongitude() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLongitude', array()); return parent::getLongitude(); }
0
9dc6de58990efb7316f3cea1d415a956
ef2097f35903aeaf260c02fdb2e76616
=============== AddFaceEdges ===============
CFace3d *pFace2, CFace3d *pFace3) { m_pFace[0] = pFace1; m_pFace[1] = pFace2; m_pFace[2] = pFace3; }
0
7e379d37acabc08c8934c3e142d79edb
9a01a16337c91d3a2bc1006b6221c522
Handles the Click event of the AddRoomTypeButton control.
namespace Project.Views.Setups public partial class SetupsView : Form private void toolStripButton2_Click(object sender, EventArgs e) { Type_RoomsViews(); }
0
e498513a4615dbe8d01659b7920cdf1c
bc836a6dc5db78dadffe271ca1a72baf
Sets the esf partecipant ID of this e s f match result.
public class ESFMatchResultWrapper implements ESFMatchResult, ModelWrapper<ESFMatchResult> @Override public void setCompanyId(long companyId) { _esfMatchResult.setCompanyId(companyId); }
0
d84d97f3d9e00a0522ce95cc2a201e37
5569ab5f9de1c4ffc580678682af8c15
@brief Calculate the water temperature for different levels in the lake.
{ float SNHC, SHC, CHC, TS, AL, TAVG_v; SNHC = RHOW * W * CS; SHC = RHOG * DE * CG; CHC = SNHC + SHC; if(UB <= 0) TS = UB/CHC; else { AL = UB /(RHOW*HF); if(W > AL) TS=TO; else TS = (UB - W*R...
1
2401e42182e6ba718096329edf274eeb
aa229f2aa03e92d72c173f4dcf90b84b
Trashに触れたら指定ポイントに再設置しY軸上昇
{ if (col.gameObject.tag == "Trash" || col.gameObject.tag == "Plastic_cup") { Tscript = col.gameObject.GetComponent<TrashMove>(); Tscript.TrashChangeY(0.008f); Vector3 pos = col.gameObject.transform.position; col.gameObject.transform.position = new ...
1
d9b45d99a7f963b9783aaee97fb71910
bce4e21825b4dfca6e7d3053fc71a3c3
Se ejecuta al incio de la app. Sirve para establecer configuraciones de la ventana de la app, como el tamaño.
export class MyApp initializeApp() { this.platform.ready().then(() => { this.statusBar.styleDefault(); this.splashScreen.hide(); }); }
0
efb63c9fb2c2d2660dce2f6c874477b6
78b8b90b5c6de37e3f43abf172debbe6
Store the accumulator at the given address
{ if(inst->operand_address != AC_ADDRESS) vm->memory[ inst->operand_address ] = vm->AC; }
1
97590e14976e001958009d0aee939523
4c370edfd494283ff7a0ea4c7df006c8
Delete row from a worksheet.
public class DeleteMovieInSpreadsheetTask extends GoogleSpreadsheetTask private void deleteRow(int rowNr) throws IOException { BatchUpdateSpreadsheetRequest content = new BatchUpdateSpreadsheetRequest(); DimensionRange range = new DimensionRange(); range.setDimension("ROWS"); range.setSt...
1
fdc77f6e3feb7c0fa7e1963e0e47ab6b
b2d476614066c9cb65033636442568ab
Returns the proper credit types associated with the given product type
class Price extends \Magento\Catalog\Model\Product\Type\Price public function getPrice($product) { $creditType = $product->getData('credit_type'); $price = 0; switch($creditType){ case CreditType::TYPE_FIXED: $price = $product->getData('credit_price'); ...
0
6a9f3ab45e7f5ad800a888ddb7541e3a
66d8de944c627fe7e6ea684e384571f3
Check to see if WindowSize property is set
function IsWindowResized(): bool { return false; }
0
39bb7ee2e7fa577708a0a88cf5e4b523
6c7b561868701d6bef50f5a6cceff220
Broadcasts the given DistanceVectorCalculation to all neighbors. If the router is set to poison, then it will do so here by copying the distance vector from the calculation and applying the poison on an individual basis per neighbor.
for i in self._distance_vector: if (i is self._router_num): continue possible_entries = [] for n in self._neighbors: if (self.get_cost(n, i) != -1): possible_entries.append(VectorEntry(next_hop=n, cost=self._neighbors[n] + s...
0
680f4ab39029151c47fbc6548b088da2
a7607c62f5e27bcde8c272289417e252
Stop managing any {@link EntityManagerFactory}s This method should only be called when not holding any locks
public abstract class ConnectionUtils public static void closeEntityManagerFactory(EntityManagerFactory entityManagerFactory) { try { entityManagerFactory.close(); } catch (Exception e) { System.out.println("EntityManagerFactory didn't close. " + e); } }
1
b888a8ffa09942e76896d92239597613
259feb2ec69164b713d4e151ac3d61d3
Two-dimensional Curve plot.
def sampleCurves(k): X = np.linspace(-3., 3., 500) X = X[:, None] mu = np.zeros(500) C = k.K(X, X) Z = np.random.multivariate_normal(mu, C, 20).T df = pd.DataFrame(np.concatenate((X, Z), 1), columns=['X'] + list(range(Z.shape[1]))) print(ggplot(pd.melt(df, id_vars=['X'], value_var...
1
44f5bda61317c3a0652926c3e4eebba2
073abb036e69c545ff26f1e7cdb8151e
data是方程系数矩阵(增广矩阵),startLine是开始行号,仅计算右下角的部分方程, N是整个方程组的阶数
int_32 ComputeEquation::elimination(int_32 startLine, int_32 N ) { int_32 i = startLine; for( ; i < N - 1; i++ ) { if( elimLine(i, N ) != 0 ) return -1; } return 0; }
1
0ec49cff2feb9c7cdbd9e8538b307415
c590f0153f8c2e3972f5bc7d0e30a266
Utility method that returns the parts required to build a link back to the current page.
const buildLinkToPage = function (pageNumber) { return { pathname: location.pathname, query: Object.assign({}, location.query, { page: pageNumber }), }; }; return { currentPage: currentPage, nPages: nPages, goToPage: pageNumber => goToPageActio...
1
8dc615cbba4772f7fdeb4d4ccc862082
dcec12d416294649bdc8db963aef07fd
Used when declaring constructor and namespace properties. Prototype property declarations are similar, but different enough that they didn't neatly fit in this method (eg, redeclaration warnings are stricter).
class AnalyzePrototypeProperties implements CompilerPass private class ProcessProperties implements NodeTraversal.ScopedCallback private @Nullable String getPrototypePropertyNameFromRValue(Node rValue) { Node lValue = NodeUtil.getBestLValue(rValue); if (lValue == null || !((NodeUtil.mayBeObjectL...
1
8f7a900bc4040e0298f7e371e3cfade6
3fb013af7d55941740d92f0c86fc4844
Initiates the asynchronous execution of the ListAPIKeys operation.
{ var options = new InvokeOptions(); options.RequestMarshaller = CreateAPIKeyRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAPIKeyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); }
0
835b8ccd304f84af6c053e510591ad89
4cd71089a1e0cf95bd780cc88e26257d
A decorator that allows for dynamic creation of docstrings.
def modify_docstring( func=None, prepend: Optional[str] = None, append: Optional[str] = None ): def decorator(f): sig = inspect.signature(f) @preserve_signature @functools.wraps(f) def wrapper(*args, **kwargs): bound_args = sig.bind(*args, **kwargs) bound_...
1
edd1950bf14b1bed329cddbe576cdbff
0c00c8cedff1768ba39ff3722a2cc87b
遍历所有的按钮
while (buttonArr.length) { let item = buttonArr.shift(); item.isTouchable(boolead); item.children[0].children[0].turnColors(color); } }
1
3caad39a4dec67caea2f3470bb64d7cd
305851228b6b2e4171711bb98a57d89f
Muestra la lista de ID y los nombres de opciones para finalizar la venta de entradas
class Itemlist{ public function mostrar_intro($codigo){ }
0
989266cfbc15d18c3ada8ae70981bef2
b7d2c7e609d2fcbba3badcb8b0af3b09
Check that a UID in a dictionary is equal to an existing, valid UID.
class MacUserTestCase(TestCase, LoaderModuleMockMixin): def test_chuid_same_uid(self): with patch('salt.modules.mac_user.info', MagicMock(return_value=self.mock_info_ret)): self.assertTrue(mac_user.chuid('foo', 4376))
0
4991dbc28e028f5037ba7b40421a8749
357dd320722bb33b072bc88af27a48f5
Gets the URL of the model's encyclopedia page.
class PubMedSummary extends PubMed protected function getUrl() { return 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi'; }
0
8154508b636c9ec6af1d6a0507c871b6
1b4934e582a18940582530c3dde12a29
获取字典数据格式字符串(支持字典嵌套)
function getDictData(dictId,type,str){ var dictData = nui.getDictData(dictId); var arr = nui.encode(dictData).split("},"); var strArr = new Array(); if(str.indexOf(",") != -1){ strArr = str.split(","); }else{ strArr.push(str); } var dictStr = ""; if(type == "str"){ for(var i = 0;i<arr.length;i+...
1
f24c07923273d147d518821e6151cfe3
e034bff1db061f1a9eff5355f1f7bf43
Grabs unique id number of a specific light source
class AmcrestFloodLight(DahuaBaseEntity, LightEntity): def unique_id(self): return self._coordinator.get_serial_number() + "_flood_light"
1
371e71128079fbb75f94d1a6591445d0
5026f95160a2932b522626df502a559d
Replace lon lat coordinates with archive specifications.
grid = np.array(np.meshgrid(self.lats, self.lons)).T.reshape(-1, 2) igrid = np.array(np.meshgrid(ilats, ilons)).T.reshape(-1, 2) self.data = griddata(grid, self.data.ravel(), igrid, method='nearest') self.data.shape = (ilats.size, ilons.size) self.lats = ilats self.lons =...
1
d8495e4c432b0a375d6548b575140695
f6a79891af9f466b6ad1c922b1d952a4
Returns the general water availability of the garden.
class Beaker public double getWater() { return water; }
0
fe09b5aee64238683d06bd38aa0cd04d
75316902fb074f9eafef702885c4b385
Read a CF compliant netCDF file containing a grid.
cfdm.LOG_LEVEL("DISABLE") self.filename = os.path.join( os.path.dirname(os.path.abspath(__file__)), "test_file.nc" ) f = cfdm.read(self.filename) self.assertEqual(len(f), 1, f"f={f!r}") self.f = f[0]
1
17693c71cff8c23711d1f574d934e950
adbd78421f85580e186ebb02a5e9b3f1
Since our contract will have different addresses depending on which network it is deployed on we need to load the network ID before we can initialize the contract. This will happen async.
return new Promise((resolve, reject) => { const artifiacts = require(`../smart-contracts/build/contracts/${contractName}.json`); web3.version.getNetwork((err, networkId) => { const address = artifiacts.networks[networkId].address; const contract = web3.eth.contract(artifiacts...
1
3bdb5f2c1506992736f71b8d53939857
9c67a03bdf0184c63b084800b81d290d
Handle the 'textChanged' signal on the widget.
class QLineEditBinder(PQSFieldBinder): def signal_autoupdate(self): return self._gui_field.textChanged
1
292584a28c0853da559714c348c1dd3c
c750aa0df69bdd452ece6b401155d33b
Convenience method for equality of ValidFrequencyBase
return (self._frequency == other._frequency and self._amplitude == other._amplitude and self._duration == other._duration)
1
5f7d7e48a0b5e8e5716ca001714cf567
8203fbfcb018f785f1c19c53df47fcf6
Determine what type of info: string/float/int is stored in each vector
int blockLenghts[3] = {1,1,1}; MPI_Datatype types[3] = {MPI_INT,MPI_DOUBLE, MPI_DOUBLE}; MPI_Aint disp[3] = {offsetof(Info,numPoints),offsetof(Info,x),offsetof(Info,y)}; MPI_Type_create_struct(3, blockLenghts, disp, types, infoType); MPI_Type_commit(infoType); }
0
d311953127dbc08031df470be50af63f
8149eed70dcb76eb58b75a485b161c14
开始补花
function JinHuaPKAnim.startScatterFlower(position) resetPos() armature:setPosition(position) armature:setVisible(true) armature:getAnimation():playByIndex(0) PKLayer:runAction(CCSequence:createWithTwoActions(CCDelayTime:create(2.0),CCCallFunc:create(scatterFlowerOver))) end
1
a98bb1b005427814d98d22ec1a830584
6ad21895ad3a12946f5a8720a46e2981
old style classes or instances
class TestNamingInstanceMethodOldStyle(unittest.TestCase): def test_class_argspec(self): original_argspec = getfullargspec(OldClass1o.function) function_argspec = getfullargspec(OldClass1d.function) self.assertEqual(original_argspec, function_argspec)
1
8fb72c6714cf9bf1c750cd5c5c52ec87
82f98e90e0f7f3dd092a77ceb7f9c6a5
获取职位发布信息转换为Excel
def excelWriter(result): if type(result) != type({}): raise TypeError workbook = xlwt.Workbook(encoding="gb18030") worksheet = workbook.add_sheet("worksheet1") worksheet.write(0,0,"Job Title") worksheet.write(0,1,"Salary/month") worksheet.write(0,2,"Company Name") worksheet.write(0,3...
1
b14bca3a0dc24e8dae5519e7360b2c3c
f1b138c1ca70a4e4a366e553d8417385
Send a message to the Lingering ML Toolkit worker instance. @user_msg object: Arbitrary object to be transmitted to the remote end. Object must be picklable.
def sendToUser(msgpack, userId): pass
0
60b926ffeafeaf8f9df7993d9752c923
1d9df2509822428e13dc123697d2d4bb
Retourne la colonne si gagnante trouvée ou -1 sinon
for($i=(count($plateau)-1);$i>=0;$i--){ if($plateau[$i][$numCol]=='.'){ $tabPos[0]=$i; $tabPos[1]=$numCol; return $tabPos; } } return -1; }
0
e9e69988a5460a1ac84b045066d5c6da
d7d8a251e5ea76e91430822cfdde80a6
判断音乐文件是否已经下载
namespace QFrameWork public class ResourcesManager : IResourcesManager, IPlugin private bool IsDownComplete(string file) { return downloadFiles.Contains(file); }
1
d6199e74d43f7b5bc9eafaf529c05883
3331d76a141a61b4b99d7f667cf62122
Fire sheet refresh event when sheet name changed
public void stateChanged (ChangeEvent e) { final Object source = e.getSource(); if (source == tabbedPane) { final int sheetIndex = tabbedPane.getSelectedIndex(); if (sheetIndex != -1) { sheetTabSelected(sheetIndex); } } }
0
4a55fb9be980dc0d433a493669728215
4b6892bb84f9749ae06d5597793f47b6
keiyakuStatusName を設定します。
public class Lbsc0009 public void setKeieiTatenaosiSikin(String keieiTatenaosiSikin) { this.keieiTatenaosiSikin = keieiTatenaosiSikin; }
0
7c26562788d410f5b36f37212bdbccfd
3080865ac9a186c01acf5358fb152b6f
Codesoft模板打印。
var code_string = jsonToString(Code_table); var Item_detail_string = jsonToString(Item_detail_table); var Item_master_string = jsonToString(Item_master_table); var Item_sub_master_string = jsonToString(Item_sub_master_table); var stock_no_string = jsonToString(stock_no_table); var stone_string =...
1
f46cf4931a691e91b3fc7cc9f3ddc036
afab4c6dffe09c8eff83718c6764a203
Constructor for the Controller object.
class Controller constructor(ctx, next, viewPath) { this.ctx = ctx; this.next = next; this.viewPath = viewPath; }
1
dea82453e931851065591de3b5a12e45
7a2e91ee16486fe9394add90dc15cc90
Enables the QAction based on the condition of whether or not the plugin command is currently loaded. **Positional Arguments**
icon_path = ':/plugins/DataLoader/icon.png' self.add_action( icon_path, text=self.tr(u'Load spectral data'), callback=self.run, parent=self.iface.mainWindow()) self.first_start = True from .lowportion import lowportion
0
0c05e56169f2f05ba010b34949701d68
729859e76013bd81ca3573230c9d46b6
Check whether the character is part of CJKCompatibility UCS Block Returns 1 if true 0 otherwise
EXTRTMETHOD OSBOOL rtxUCSIsHangulCompatibilityJamo (OS32BITCHAR code) { return (OSBOOL)((code >= 0x3130) && (code <= 0x318F)); }
0
aaee469659f65ee5bf84c235309efa2e
569fe53433d89f8646ec224f7c2d979d
初始化邮件列表
class EmailView extends FullView public setEmailList(value: Array<EmailInfo>) { this._email.emailList.removeChildren(); this._itemList = new Array(); var haveReward = false; if (value.length == 0) { this._email.getAllBtn.visible = false; this._email.delAllBtn.visible = false; this._email.getBtn.visible...
1
b5c257958513d5ebbf79ad7c9bb6e79f
782963119aee01478de5de89ee43db73
Aggiorna lo stato di una sdraio effettuando una richiesta al Database
@Component @Scope(BeanDefinition.SCOPE_PROTOTYPE) @Transactional public class RichiestaEconomaleDad extends ExtendedBaseDadImpl public void aggiornaRichiestaEconomale(RichiestaEconomale richiestaEconomale) { SiacTRichiestaEcon siacTRichiestaEcon = buildSiacTRichiestaEcon(richiestaEconomale); richiestaEconomaleDao.u...
0
7f35519ad5545c8570164da0b8e03a21
fb1439d2f0c3da8f0d6afc0412907e7e
渡された横幅のコメントが追加された場合の衝突する時間を返す(値が小さいほど衝突しない)
{ if (queue.Count == 0) return 0; Barrage last = queue.Last(); if (last.Speed >= barrage.Speed) { int w = last.WaitingTime + last.Width / last.Speed + 1; return w < 0 ? 0 : w; } int diffSpeed = barrage.Speed - last.Speed; int lastCur = -last.WaitingTime * last.Speed; in...
1
0cf8fd582b2426f3d6a707cf7a3b391a
26e1ac6c09b7d15539876e1f5b9acb1c
PersonneController constructor.
class GlkController extends BackendController public function __construct(Request $request, PersonRepository $repository) { $this->repository = $repository; parent::__construct($request); }
0
c16a24857dbb118fced90fe4480e5a84
0603106941d8e9b27e0323a771143e70
Проверяет условие трейлинг стопа и подтаскивает его при необходимости
function checkPlay(context){ if( context.slice.is('holdautoplay') ){ context.lastTick = false; if( context.tickDelay ){ clearTimeout(context.tickDelay); } }else{ context.tick(); } }
0
6e03a4216ffaddf8a02c5a169cdc0431
fa819fccbf223eeafd63b437d726f7eb
clears the price text after adding item to list
class CrawlWindow(QWidget): def price_clear(self): if self.count: self.price.setPlainText('') self.count = False
1
2c990242e8953c794db23f2103cfdc0b
d107a9244432d8cefd55eef66a14fbdc
Classe que representa as conexoes entre os nos (aresta)
self.nos = [] self.adjacencia = {} if nos is not None: for no in nos: self.adiciona(no)
0
1134de652f32c2a3476f4d05fb95fc99
b208619a1143337138f8528eb51116f9
Get the originHostHeader property: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides...
namespace Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayBackendHttpConfiguration.Update Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayBackendHttpConfiguration.Update.IUpdate WithHostHeader(string hostHeader);
0
0a4fb5ca50e96ea185047af6a794b4b6
e5d7c01f464631d7e278baab566200e9
删除用户接口函数
deleteUser(params) { return axios.post('http://localhost:8081/deleteUser', params) }
1
ae6e604dee640ea799a3e5cce973be2a
09ad4f8b65fcbcae918430d9df3d113a
Returns a list of bindings for many ARQs.
class ARQsController(base.CyborgController): def get_all(self, state=None, instance=None): context = pecan.request.context obj_arqs = objects.ARQ.list(context) if state is not None: if state != 'resolved': raise RuntimeError('Only state "resolved" is supported') ...
1
13fdbd29f43a2a66bbe9a8497820dddc
e44bcae631ee7d79fd46e6a994266b7e
添加摄像头事件回调
MvCamCtrldll.MV_CC_RegisterEventCallBackEx.argtype = (c_void_p, c_void_p, c_void_p, c_void_p) MvCamCtrldll.MV_CC_RegisterEventCallBackEx.restype = c_uint return MvCamCtrldll.MV_CC_RegisterEventCallBackEx(self.handle, pEventName.encode('ascii'), EventCallBackFun, pUser)
1
93fe48159b6ef532c3571cdb2083bfcf
db993de36d89a1c9597f43035cd66491
Simulates deleting all Twilio account recordings.
recording_url = request.values.get("RecordingUrl", None) resp = twilio.twiml.Response() resp.say("OK, goodbye.") return str(resp)
0
af7e9d4e2e3c25a60dc963f60fb879cd
4d2fa504d1402e12f6298f42d24edbba
Get the bucket list using the specified credentials.
{ $this->requirePostRequest(); $this->requireAcceptsJson(); $request = Craft::$app->getRequest(); $keyId = App::parseEnv($request->getRequiredBodyParam('keyId')); $secret = App::parseEnv($request->getRequiredBodyParam('secret')); try { return $this->asJson...
1
ceeb9d4a51df26444947b3524d470720
5dd7206d2327aa0a0a549cc3ab196637
Retorna un booleano verificando la existencia del alumno
namespace UTP.PortalEmpleabilidad.Logica public class LNAutenticarUsuario public DataTable ValidarAlumno(string Usuario) { return ad.ValidarAlumno(Usuario); }
0
b22d42b0067111b89f20cd85afd89dd3
3ea369dc7e2915ce58db9cda2a29e237
> Test the concatenation of two matrices over their first dimension.
for (int i = -100; i < 100; i += 10) { std::string str1 = create_matrix_string(i); std::string str2 = create_matrix_string(2 * i); ASSERT_EQ(Matrix(str1) +Matrix(str1), Matrix(str2)); } for (int i = -100; i < 100; i += 10) { std::string str1 = create...
0
0b87418ed444b871e50e93c222fd3c1f
39527e63865e10f7f566ce69bd0ee051
Sets up the config class for use
class UNCC_Config public function __construct() { }
0
2c2819ed85056d4291ac96b07b325d3e
d645ac27d9e7c04ce9e634cde2325a32
Lay thong tin cua mot nhom nguoi choi game tu Service cua Me
{ try { var result = await SystemInfo.DatabaseModel.asyncData(maNguoiDung); return result; } catch (Exception ex) { throw ex; } }
0
0b4d355601acfa450f6fc692c0772935
b0dc1c955bb371b2fe106b9d07863c7f
r"""Selector for evaluating whether an object gets stored in a particular content group. A selector is an abstraction for a collection of PIXL expressions.
match_expressions: Optional[Sequence['outputs.GroupConfigSpecAnnotationSelectorMatchExpressions']] = None, match_labels: Optional[Mapping[str, str]] = None): if match_expressions is not None: pulumi.set(__self__, "match_expressions", match_expressions) if ma...
1
43c91fabb42304f1c2058f8137646035
b837d3783f84a0f6edb108149a55058c
根据三字码组装中文名
{ string rVal = string.Empty; zCode = string.Empty; zName = string.Empty; foreach (var t in x.Where(a => a.sCode == sCode)) { rVal = t.sName; zCode = t.bCode.ToString(); ...
0
b2b26083a4513f4e277b6ce6222b7838
c78833dfeab1cbf88345eb10bc7dcb9f
Сохраняем файл пакета
{ if (empty($this->data)) { $this->data = array(); } $content = $this->pack($this->data); Utils::pathWriteCheck(dirname($this->file_name)); return file_put_contents($this->file_name, $content); }
1
716fd826b8f2a629ee93db0433f7f6fc
fdd5dd8b96765aa5992af70cae06b1b1
Closes the video output and prints a status message to console.
function Omx(source, output, loop, initialVolume, showOsd){ function updateStatus () { open = false; omxplayer.emit('close'); }
0
1b430196cd455d7914d58305bb0a052b
2a1850e8b2fe0b93fcf62b4dc02e2e7a
Load an asset from the asset library given a <paramref name="type"/> and a <paramref name="filePath"/>.
namespace DynamicStyleBundles Asset Load(string filePath);
0
99b74608e33df1c765507566c8389824
3e7f3fc950e6b5f4251faf94c71b959a
Returns the meta object for class '{@link org.malai.widget.ToggleButton <em>Toggle Button</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EDataType getJButton();
0
384748aa6d5c34b4442a7f3d9a782634
c63d33567ecfdbc92316b9ca37754cf6
Gets the "ShippingAddress" element
com.microsoft.schemas.crm._2006.webservices.Picklist getAddress1Shippingmethodcode();
0
48b0b31c8c06ae63a334494de11ce07d
f55082ea71182fec45d2a0d7942243d8
This function should align the current location counter to the specified boundary. For example, suppose that: * The current location counter is 9 * This function receives the value 4 in its align parameter It should therefore increment the location counter to 12, so that it is aligned to a 4-byte boundary. If we're in...
def align(value, alignment): return ((value + alignment - 1) // alignment) * alignment
1
e6cb28cf1b1c93471d5a9ae7cf585e14
c075527fb18b28203e5adff11bc848e2
Removes the given dimension from this size
public class DataObject public DataObject projectOnToDim(int dim){ DataObject newObj = this.copy(); newObj.dim_values.remove(newObj.getIndexOfDim(dim)); return newObj; }
1
0c5268950e41eaabda7261183d4bcff2
d900bcd43e6630b43b0cec763653573c
Empty the test mail collector store of any collected mail.
class TestingMailEventListener implements Swift_Events_SendListener public function clear() { $this->messages = []; }
1
097fe25fa446f49268ab79e5d5db3e40
90436283f861648a77f31c8012e52077
Set the block color based on element properties.
{ this.color = color; Color color_value; switch(this.color) { default: case Block.COLOR.PINK: color_value = new Color(1.0f, 0.5f, 0.5f); break; case Block.COLOR.BLUE: color_value = Color.blue; break; case Block.COLOR.YELLOW: color_value = Color.yellow; break; case Block.COLOR.GREEN...
1
f7bf610c01b8ee8d2b3988f18d460111
2c55c51816b7c03575c68891862cf429
将字符串形式的数据库类型转换为枚举类型的数据库类型
namespace Common public class Database public Type FromDBType(string type) { if (type.IsMatch("integer|real|double|bigint|smallint|numeric")) return typeof(decimal); if (type.IsMatch("character|char|text")) return typeof(string); if (type.I...
0
c2a8e3329c7303e45087e79d808ead29
9c34a7f14a6c2ad778c00783a915e076
Converts this HTTP request into a CloudEvent object, with the given extensions, overriding the formatter.
operator fun <T : Any> CloudEventConverter<in T>.get(domainEvent: T): CloudEvent = toCloudEvent(domainEvent)
0
766ae4f1f0b7ea36fb0e95509215f2c3
3c82cdfdd3a654ce6473b2f8abe6956d
Start new lap.
{ m_clock.restart(); m_lapTime = 0; m_raceStarted = true; m_paused = false; }
1
474ffb89a45b60c64aa93873ae9471b6
7f61448ad6da3ef0f9cb03f40c5be655
U2 [up 2]
cases like (1)
0
d0c2a8bbb404c059ca49b8b2c54229fe
abcad766f7b5e7165f378e911a7ca36c
Fetch data on route change
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<TData> { return this.componentRouter.getData().takeLast(1).map(data => { if (!data) { const lastDashIndex = state.url.lastIndexOf('/'); const parentUrl = state.url.substring(0, lastDashIndex); this.router.na...
1
7df5038f22112255812997aff62978a1
024de8d42c9f507033ce981c9fc65212
該当日付の年度を返す
class DiamondShell def return_current_year Time.now.strftime '%Y' end
1
9ab92ad96c26c806b8a1dc2856bcf255
198cd3896c2ee7a91384f6458ef6230b
Open the file stream for the file descriptor.
HRESULT CPFStreamFile::Open(LPCWSTR szFile, DWORD dwAccess, DWORD dwDisposition, DWORD dwSharing) { USE_TRACING("CPFStreamFile::Open(szFile)"); HRESULT hr = NOERROR; HANDLE hFile = INVALID_HANDLE_VALUE; VALIDATEPARM(hr, (szFile == NULL)); if (FAILED(hr)) goto do...
1
9b85ef156ffe29d8b96d1af640696c5e
41342ad2d4f3b6e8bb14aae791e870b9
Returns a new object of class '<em>Eligibility Response Purpose</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
EligibilityResponsePurpose createEligibilityResponsePurpose();
1
6dfcff0183f9db33d04bdd21364b33df
7717915fb0efb0455422fe0ef1198774
还原:每次点击都需要隐藏大图片,显示小图片
function smallPicture() { $().ready(function () { $(".content_img img").mouseenter(function () { let smallImg = $(this)[0].src $(".content_smallImg > img").attr('src', smallImg); $(".content_bigImg > img").attr("src", smallImg) }) }) }
0
f5a169871139a11f070b47703db99e37
371ac7f32654ff41d028b22f461cb522
Handles the Click event of the bShowException control.
namespace Savchin.Forms public partial class ExceptionForm : Form private void bShowException_Click(object sender, EventArgs e) { ExceptionShowed = !ExceptionShowed; }
1
a08e015c1a6944c929938822fa930337
185a2c10193559ae0c7882ec8cce10fa
Veículo que transporta itens entre duas bases
class Client(object): def __init__(self, tipo_veiculo, tabela_referencia=None): self.tipo_veiculo = tipo_veiculo self.tabela_referencia = tabela_referencia
0
8e94db8460ecadae9731ee038f876753
e9e607ddf5eb41b8ec23c5cdc1e3efce
ログイン中のuserが投稿したぼやきのみ表示
class BlogsController def index if session[:user_id] != nil @user = User.find(session[:user_id]) @blogs = Blog.where({user_id: @user.id}) render :index else redirect_to '/' end end
1
f6ccb7aeaeec199b5b9a4d8c52419f99
b76a393a2f03c9fc2d9bb501255181a8
Get an array of bymonthday records.
struct icalrecurrencetype* recurrence_ref = (struct icalrecurrencetype*)PG_GETARG_POINTER(0); unsigned int cnt = 0; for (; cnt < ICAL_BY_MONTHDAY_SIZE && recurrence_ref->by_month_day[cnt] != ICAL_RECURRENCE_ARRAY_MAX; ++cnt); Datum* const datum_elems = palloc(sizeof(Datum) * cnt); unsigned int i = 0...
1
b407e3dd2a7d1d908713bfc46ac008e7
ffc1bbead432cf6a36c37eeeea5193ff
获取升衔所需威望
class WorldCompeteUtil public static function getWorshipCon($num) { if (!isset(btstore_get()->WORLD_COMPETE_RULE['worship_con'.$num])) { return array(0, 0); } return btstore_get()->WORLD_COMPETE_RULE['worship_con'.$num]->toArray(); }
1
dc748793b1f5a80b179467f23d75e305
7713bd2aaf4524d38805bb1b51d628b1
Gets the fourth color for the element.
public class DisplayRow public char getC4() { return c4; }
1
124d93457cfb4313ba935b027e4abfce
2ebccd0ea98c9670d4b4557e3b6766da
Run a simulation for a size num_pes GEMM array. Creates a ./sim working folder.
def run_sim(dirname): parameters = {} load_config(dirname, parameters) def SS(parameters): for temperature in np.arange(0.1, 5.0, 0.1): if os.path.isdir('Images/T-'+str(temperature)) is True: pass if os.path.isdir('Images/T-'+str(temperature)) is False: ...
0
4099943c4c576b7bf0792a6f315a6d66
375d702d237c8d51dd134303cddb00e2
Map the basic capability strings.
public class DefaultCapability implements FilemanagerCapability static FilemanagerCapability.Capability[] buildDefaultCapabilities(String capabilitiesStr) { if(StringUtils.isNullOrEmptyOrBlank(capabilitiesStr)) return null; String[] caps = capabilitiesStr.split(","); List<FilemanagerCapability.Capability>...
1
5d936f1d3b35a7a191a3aa1d7ed8206e
98c204baf69effa9b40cc7b24f54b45b
Vérifie si les cartes constituent une série
class CardGame: def check_series(self, player_cards): order = [] for i in player_cards: order.append(self.cards_order.index(i)) order.sort() for p in range(0, len(order)-1): if order[p] != order[p+1]-1: return False return True
1
704d587ef2a9a78d675c12930b95a6d8
32114d92bb28aee74e637de3a055ab34
Aplica los criterios de filtro, actualiza la pantalla de facturas de compra e inicializa los checkboxes del grid.
namespace UnViaje public partial class ctlCompras : UserControl private void BtnFilterOff_Click(object sender, EventArgs e) { Datos.RemoveFilter(1); btnFilterOff.Hide(); FillGridCompras(); }
0
67b3325a62a77c54f74cbcc80b3a6899
f1d09193de5d162b98132f69eaec7b41
Show a target box for a given target tracked by a given trackable.
function Track({ source, target, getTrackProps }) { const x0 = dims[0] * (source.percent / 100); const x1 = dims[0] * (target.percent / 100); const h0 = dims[1] * 0.24; const h1 = dims[1] * 0.6; return ( <Fragment> <rect x={x0} y={-h0 / 2} width={x1 - x0} height={h0} fill="#00837b" /> <rect ...
0
731a913e7233fb4fb2140b31ff758cf5
2c80ee0040e606d7f72fb0bf04920d5a
Get all bids with brigade info
class ExecuteBid extends Bid public function getList() { $mysqli = App::dbConnect(); $result = $mysqli->query("SELECT * FROM custombids WHERE status_id='1'"); $list = $result->fetch_all(MYSQLI_ASSOC); return $list; }
0