query_id
string
corpus_id
string
query
string
code
string
label
int64
25354c04be41fef1fad4bc8f6785e5fd
0fed2eb9d85c1f2dc1950400c0cb1ffb
This API endpoint uses the [User-Interactive Authentication API](https://matrix.org/docs/spec/client_server/r0.5.0#user-interactive-authentication-api). Deletes the given devices, and invalidates any access token associated with them. Requires auth**: Yes.
try: params = request._serialize() headers = request.headers body = self.call("DeleteDevices", params, headers=headers) response = json.loads(body) model = models.DeleteDevicesResponse() model._deserialize(response["Response"]) ...
0
ff53a4658d01f415a3174b90ede80ed8
19c306d53a024391293acbff3d397266
初始化本类配置 null时将自动获取配置目录下的配置文件,文件名称依据本类的类常量CONF_NAME string类型时表示类的配置文件的名称,配置文件存放于预定义目录下,使用PHP的设置 array类型时表示类的惯例配置,此时将不读取用户配置,该配置可以是缓存中的(提高执行效率)
Config($conf); if (isset($conf["APP_NAMESPACE"])) self::$appNamespace = $conf["APP_NAMESPACE"]; if (isset($conf["CTL_NAMESPACE"])) self::$ctlNamespace = $conf["CTL_NAMESPACE"]; }
0
3acfee57eb72d59bf7dde46233b04c1c
96a03f62d86db730d917021cd1a47172
Removes all the clip types where id = ? from the database.
OrderByComparator<Clip> orderByComparator) throws vn.gov.hoabinh.exception.NoSuchClipException { return getPersistence() .findByClipTypeId_Last(clipTypeId, orderByComparator); }
0
dc709e823272315730342b020b01b07a
f874773415e561a9afbdfa1819aa1cfb
@brief 查找(获取)映射表子项的映射句柄。 <pre> 一般情况下,不建议使用该接口,若需要获取映射句柄, 可使用 maptbl_lock()/maptbl_unlock() 完成该功能。 </pre>
{ x_uint32_t xut_tid = maptbl_tid() + 1; maptbl_item * xmap_iptr = xmap_hptr->xmap_item_dptr + xst_index; if (xut_tid != maptbl_atomic_cmpxchg(&xmap_iptr->xut_spin_lock, 0, xut_tid)) { return -1; } return 0; }
0
985ecfb73af9bfba9de5ba6c32faeec0
02ece3fbaf28d9b6c03cad14ad5a9955
Initializes the internal density grid
class Model(GenericModel): def _init_density(self, rho, so): if np.max(rho)/np.min(rho) > 10: self.rho = self._gen_phys_param(rho, 'rho', so) self.irho = 1 / self.rho else: self.irho = self._gen_phys_param(rho, 'irho', so, ...
1
830a11649dd78e340f79946e3ef6de94
8ff21b05d0287485a893d3ad0d1d65e1
根据sku id 列表获取库存列表
List<Long> getStockBySkuIds(List<Long> skuIds);
1
49fbb718d087649035258aca5814d3e9
58769cce90197b32c6c0c91ea7ff6d0a
Initiates an asynchronous operation to acquire the lease on a mutex that governs the exclusive access to a resource.
namespace NModelsoft.Azure.Storage.Blob [DoesServiceRequest] string AcquireLease(TimeSpan? leaseTime, string proposedLeaseId, AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null);
0
55f96ea6ffe3ab241982ce4c25e1dbc7
4df616100cd82937604311e612b34c88
checks if the given piece is valid with its given rotation
if f < 0 || f > 7 || r < 0 || r > 7 { return false, false } if p.board[r][f].piece == None { return true, false } else if p.board[r][f].color == side { return false, false } else { return true, true } }
0
8eb210c349bdb95b20ee8fa813636df0
9832a9b52a66372bd64e743993b1ac53
过滤掉 "."和".."
function resolveDot(p) { p = p.split("/"); for (var i = 0; i < p.length; ++i) { if (p[i] === ".") { p.splice(i, 1); --i; } else if (p[i] === ".." && i > 0 && p[i - 1] !== "..") { p.splice(i - 1, 2); i -= 2; } } return p.join("/"); }
1
94244e3e9de983d080defa8747131c07
d66ab727a2830a5f30af2942fc25eca4
Gets the default billing and shipping addresses
abstract class Address extends CheckoutStep protected function getAddresses() { $objAddresses = AddressModel::findForMember( FrontendUser::getInstance()->id, array( 'order' => 'isDefaultBilling DESC, isDefaultShipping DESC' ) ); return null...
1
9f7f2a56351cd9f361d59b9c157f98e4
5635acb061ca77a91ef06cd87f8ea97a
this function prevents purchasing obsolete crew items based on current inventory
void ProductionManager::removeUnwantedItems() { bool gas = false; int gatewayCount = 0, nexusCount = 0; for(std::set<Unit*>::const_iterator i=Broodwar->self()->getUnits().begin();i!=Broodwar->self()->getUnits().end();i++) { if((*i)->getType().isRefinery()) { gas = true; } if((*i)->getType() == UnitTypes:...
0
52ece7b3a271d36db42881ec605d3be8
3cd7c9f85d128aafd862d8a90ea66153
未签到
class TestSign: def test_absent(self,data): result = self.start. \ goto_index(). \ goto_workbench(174, 978). \ goto_class_sign_in(data["signin_x"], data["signin_y"]). \ signpage_switch_to_context(). \ current_sign_absent() assert data["expect"]...
1
cb33eecb8d98111cdf6f2e726d8d8065
2758631a1edf6edc627fcc7d039cb0b4
Function that goes through and updates Pixels and recalculates Centroids to make Centroids approach prominent colors
let distance = (pos1, pos2) => { let dx = pos2.x - pos1.x; let dy = pos2.y - pos1.y; return Math.sqrt((dx*dx) + (dy*dy)) ; } const data_points = this.state.data_points.map((data_point) => { return {...data_point} }); const centroids...
1
7f3b0ac7ec73dc752c7a1e52238bd391
1dafab73c49c7d3728312a9c8edcf12c
Devuelve el nombre de la película
public class PeliculasCursor extends AbstractCursor implements PeliculasModel @Nullable public String getTitle() { String res = getStringOrNull(PeliculasColumns.TITLE); return res; }
1
1e075980bd755e0fdfa00b3b3d65cd7b
cc566d5cb7016db3adbc2053d9f40f1b
Computes the diffeomorphism applied to a point.
class ContinuousMap(Morphism): def _call_(self, point): if self._is_identity: return point chart1, chart2 = None, None for chart in point._coordinates: for chart_pair in self._coord_expression: if chart_pair[0] is chart: chart1 = chart ...
1
8c9e2b7696acaeaa9b7aafbf717ca069
e4372fe77cac7c985087491d7057669e
设置标准类别的利润率
@Table(name = "t7_spg_detail") public class T7SpgDetail extends T13GdsDetail{ public void setQlyStd(String qlyStd) { this.qlyStd = qlyStd; }
0
63b84b270da9e9c17c6964ef9975e4c8
43e95337dd28928f71a08f45653c20fd
Setzt die Postleitzahl einer Stadt
class EscapiaNet_Address public function setPostcode($str) { $this->_address['postcode'] = $str; return $this; }
1
76f2154ea8bc527d58f9e93593c6897f
1c0cf73134ce0d8e86606f2977674d4b
Despublicamos una notificación.
class NotificacionesController extends Controller public function destroy($id) { DatabaseNotification::find($id)->delete(); return back(); }
1
b352b7228ce0263b14a594ddd51ff2d1
503aa7b8d4c27d6ccfbc79eb103eac06
funzione per la scelta di registrazione\accesso ad un utente presente nel programma o termine del programma
{ FILE *fich; char user[255],pass[255]; password = hash(username,password); if(access(USERS_FILE, F_OK) == -1 && acceptNewRegists == 1) { writeToFile(username,password); if (write(sock,"Successful Registration",255) < 0) error("ERROR writing to socket"); return 1; } else if(access(USE...
1
043cb672686c46ba0ee448753f1c7045
33359a7f3ba613accbe7711fcb0a54fe
保存Excel數據到數據庫
namespace MainTool public partial class user : Form private void button6_Click(object sender, EventArgs e) { string office_Version = ""; string office_Path = ""; bool OfficeFlag = FrmClass.IsInstallOffice(out office_Version, out office_Path); if (Convert.ToStr...
0
3337d4917e4f6aa577dc2392b778df4b
1172c385f49c8d41ea52c7e15780e3df
Add primary keys to tables that need them.
class Grammar extends \Illuminate\Database\Schema\Grammars\Grammar protected function addPrimaryKeys(Blueprint $blueprint) { if (! is_null($primary = $this->getCommandByName($blueprint, 'primary'))) { return "primary key ({$this->columnize($primary->columns)})"; } return ''; ...
1
f775aa14ae7a6f868e8b9779caf2aeea
bcf0fbc3c740e82f50ed24aab890bfde
Checks the presence of sequenceNumber field. This flag can also be bulk-get by {@link #flags()}
class CBTeamInfo extends \DrSlump\Protobuf\Message public function hasNum(){ return $this->_has(4); }
0
8e84e336bd979020f45763026fd1f870
1a6f4426055d176219a27318d69dcb91
Validates that the distance argument is not requested
class ItemTest extends TestCase public function testDistanceInjectionWithoutDistance() { $itemArray = [ 'uuid' => [ 'id' => '1', 'type' => 'product', ], ]; $item = Item::createFromArray($itemArray); $this->assertNull($item->getD...
1
547f1ec72d40d921dc9ad479e1df4c08
032f7cac61fd783e49291ec2e8ea7c6a
Randomly resets the merchants inventory. This simulates a different merchant at each stop
{ for (unsigned int itemIndex = 0; itemIndex< m_definition->m_startingInventory.size(); itemIndex++){ if (CheckRandomChance(m_definition->m_inventoryProbabilities[itemIndex])){ Item* newItem = new Item(m_definition->m_startingInventory[itemIndex], m_map, GetPosition()); m_inventory.push_back(newItem); } } }
0
2b51be180050aa3a20a4808e3f908bbf
c343c8bf7c831eb4a5f7a3f2d1ccf085
Accepts the application is roaming.
public class FileTransferServiceConfiguration public void setAutoAcceptInRoaming(boolean enable) throws RcsPermissionDeniedException, RcsPersistentStorageException, RcsGenericException { try { mIFtServiceConfig.setAutoAcceptInRoaming(enable); } catch (Exception e) { R...
1
076c03bd649588872accd9faf574404e
8954c9858b0dda6599b6c23beb010905
Determine equality of plugins using origin to uniquely identify them
public boolean equals(@Nullable Object o) { if (!(o instanceof Plugin)) { return false; } return this.getOrigin().equals(((Plugin) o).getOrigin()); }
1
d532e5a3fcba5cf2e366c9dd158d4daf
cc8f71e7f126eed3e1f82b0f0de2c7f2
<p>Returns property value with all {@code ${propKey}} like references replaced with the value of the relevant property with recursive resolution.</p> <p>The method returns <code>null</code> if the property is not found.</p> the specified key value.
public @Nullable String getProperty(String key) { String value = getRawPropertyValue(key); return replaceProperties(value); }
1
1236a15665b7e3e7e8d6a142e2c2e4d9
dddcff5385d59f2b2805889ea6f918c5
获取默认的自填模式
{ $optionsService = new OptionsService(); $resData = $optionsService->getOptionsData("default_mode"); return json($resData); }
1
69848b3a4bb07b68b824e9bcbae3bdab
fea3dcfbffe9fe42550b63e87a657d4b
辅助函数(查看有几人)
{ int count; int i; i=0; count=0; for (i=0;i<=3;i++) { if (Info(P).WhoInHere[i]!='N') { count++; } } return count; }
1
d4ddefd98d666ed4f445b2f56a258fd1
0378c493061b72932bda53aa756c98ea
This function removes all persons for given activity.
public class EventsAndPeople implements Table public void deleteEventsFromPeople(int eventId, List<Integer> participants) { String values = participants.stream() .map(Object::toString) .collect(Collectors.joining(",")); String SQL = "DELETE FROM " + getTableName() + ...
1
35bd3cbff67fd462d47e00e2db2c3bb8
d1acbaea3ce89da28c6373048913ec23
Perform Deadline Monotonic Scheduling
void EDF_Sort(Task x[], int n, int time) { int i, j; Task temp; for(i=0;i<n-1;i++) { for(j=n-1;j>i;j--) { if ( (time+x[j-1].period - (time %x[j-1].period)) > (time+x[j].period - (time %x[j].period)) ) { temp=x[j]; x[j]=x[j-1]; x[j-1]=temp; } else if( (time+x[j-1].period - (time %x[j-1].p...
0
b2d969d40c483348cb7a80ad15abf0be
369eca1234e44ccdde0ca046706ea675
Gives the text a shadow of the specified blur radius and color, the specified distance from its drawn position. <p> The text shadow produced does not interact with the properties on view that are responsible for real time shadows, {@link View#getElevation() elevation} and {@link View#getTranslationZ() translationZ}. re...
public class TextLayoutBuilder public TextLayoutBuilder setShadowLayer(float radius, float dx, float dy, @ColorInt int color) { if (radius != mShadowRadius || dx != mShadowDx || dy != mShadowDy || color != mShadowColor) { mShadowRadius = radius; mShadowDx = dx; mShadowDy = dy...
1
a603ee61047121c83a3a51d3c8cd75df
caa884be3d86a6c843efc872449f6df7
round to 3 decimal places
def round3(x): return float(format(x,'.3g'))
0
18df4be774bc7b24eac44f82ccf5e14c
1b2e203cad2ae262721ebaec4f7d48b9
Subscribe's the authenticated account to a given user. Returns `True` if successful; otherwise returns `False`. NOTE: AUTHENTICATION IS REQUIRED.
class Subscriptions(LoginRequiredMixin, View): def post(self, request, author=None): author = get_author(request, author) user = request.user subs, created = Subscription.objects.get_or_create( defaults={ 'user': user, 'author': author, }, ...
1
6a03c528d1e9619372c57f0a87957e80
7d834ce1ecb8b6c03cfe38fb79f9dee4
URLが指すページに付いたはてなスターを表す画像を取得
function get_hatena_hatebu_count($url){ $count = @file_get_contents('http://api.b.st-hatena.com/entry.count?url='.rawurlencode($url)); if(!isset($count) || !$count){ $count = 0; } return $count; }
0
3aef170464b568cdb668b6cf5bf5731c
8a9b74e3911886a16fc9b5401fb343f7
Gets the merchant reference for the payment response
class TransactionTicket public function getMerchantReference() { return $this->merchantReference; }
1
d48407d4d718b1eee622c29f421c6af4
ca2e77262b138403c8536e13c6410ab2
sum two same sized matrices
def m_sum(A,B): return np.matrix([[A[i,j]+B[i,j] for j in np.arange(len(B))] for i in np.arange(len(A))])
1
48aa162ba966f23a94731d074b930089
c54b19da29376a23a7094fe6f2953552
Returns periods in the current ones that are not covered by periods passed as arguments. A [====] B [========] C [=====] CURRENT [========================]
def compute_covered(statements, missed): assert len(statements) == len(missed) covered = [] for i in range(len(statements)): covered.append(statements[i] - missed[i]) return covered
0
dd0cf04e9c77c158baa80463ee457d21
370c32ac7ca5c858b351aaa8d168bbda
今日开始和结束的时间戳
H = int(time.strftime('%H', time.localtime(time.time()))) Today = today0() Begin = Today + (H - 1) * 3600 End = Today + H * 3600 - 1 return Begin, End
1
5dd297bf950d66371cedb48eaf433f79
85d65ce0a6d0b9734133628179b3a740
Returns the meta object for the containment reference '{@link org.xtext.project.browserautomationdsl.domainmodel.FILL#getIdentifier <em>Identifier</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EReference getSELECT_Identifier();
0
3adb23db64cac368d46628ba664a5ae1
a359e1c81d264204b37c8dbd4b5e6bc5
获取全部数据表的下拉列表
$.ajax({ url: selectAllTableNameUrl, type: 'get', async: false, dataType: "json", success: function (data) { if (data != undefined && data != null) { $('#TableName option').not(":first").remove(); ...
1
acc72263277496603ebce1edca787986
99f6c62801657a9f1e8b4f9cf2226e60
Creates children which will hopefully replace the worst performing tanks
{ List<Transform> tempTiles = new List<Transform>(tiles); Debug.Log(tempTiles.Count); if (tanks == null) tanks = new List<Tank>(); for (int i = 0; i < heavyTankCount; i++) { Tank tank = Instantiate(heavyTankPrefab, tanksParent); int randomT...
0
a075569844e4a086bf5770f6c3a92320
3de82b0597a7a3ba4e5f74637e54696c
FUNCTION GC2236MIPI_SetShutter DESCRIPTION This function set e-shutter of GC2236MIPI to change exposure time. PARAMETERS iShutter : exposured lines RETURNS None GLOBALS AFFECTED
{ const kal_uint8 iReg = OV3640Gain2Reg(iGain); OV3640_write_cmos_sensor(0x3001, iReg); OV3640_write_cmos_sensor(0x302D, OV3640_g_iExtra_ExpLines >> 8); OV3640_write_cmos_sensor(0x302E, OV3640_g_iExtra_ExpLines & 0x00FF); return 0; }
0
2ca2f2d65b5627418de9bde1c07f3731
bf199773debf3d1400ae1ab61a153713
Link and Unlink company with contacts and deals
namespace sib_api_v3_sdk.Api public partial class DealsApi : IDealsApi public void CrmDealsLinkUnlinkIdPatch (string id, Body5 body) { CrmDealsLinkUnlinkIdPatchWithHttpInfo(id, body); }
1
e0e4cbfe28cc1b0be9013c8c0f86746b
ac3e351ed8e1db70915b90f188eba129
Define the function to convert coordinates into appropriate format for bokeh
trunc_temp= input_temp.round(decimals=0) lats=np.arcsin(z)*180/np.pi lats=lats.round(decimals=1) lons=2*np.arctan(np.divide(y,(x**2+y**2)))*180/np.pi lons=lons.round(decimals=1) hoverdata=np.stack((lats.T, lons.T, trunc_temp.T), axis =-1) return hoverdata
1
87b1451cd89fa75e974f2f3cb22a3a42
9cf9a806ec049b080f6769f7d149cb58
Run a XER test case and assert it parses correctly
def _run_extract(ioc_extract, testcase, expected_items): test_input = TEST_CASES[testcase + "_test"] results = ioc_extract.extract(test_input, include_paths=True) for k, v in expected_items.items(): check.equal(len(results[k]), v, "Unexpected value for " + k)
1
07191438c9df7ab37eb44053b4655a24
a0751f5fc4b06bf95d38b6c83c8dccd9
prepares to execute the SHA256 hash operation
atcac_sha2_256_ctx* ctx ) { return (!wc_InitSha256(ctx)) ? ATCA_SUCCESS : ATCA_FUNC_FAIL; }
1
bd3eb9025bd2f2259334fef29078aa0a
07de340abbae035191232f8505fee1b2
Gets the latest finish time of the activity.
public class ActivityNode public int getFinish() { return finishTime; }
1
d7cb9ed10f8f842ca24ad36273bfc876
c6cac955cd38f030ee03ebbfef490ed5
Dans le cas de d'une attaque qui en attaque une autre, permet de savoir laquelle des deux doit l'emporter
battle_player1 = self.firstPlayer() battle_player2 = self.secondPlayer() if player and player.id == battle_player1.player_id: return battle_player2 if player and player.id == battle_player2.player_id: return battle_player1 if battle_player and battle_player == battle_player1: return battle_player2 ...
0
2d337549f5d4eb105390e471d37900da
2697771e44c0571077615d46ed3ab64c
returns mouse input parameters
{ short id; int x; int y; int z; mmask_t bstate; bool mklualib_curses_getmouse_ret = (bool) luacurses_getmouse(&id, &x, &y, &z, &bstate); lua_pushboolean(L, mklualib_curses_getmouse_ret); lua_pushnumber(L, id); lua_pushnumber(L, x); lua_pushnumber(L, y); lua_pushnumber(L, z); lua_pushnumber(L, bstate); ret...
1
56c7984032bdc4525e2ca3ff2063326f
4f151a5548cab0f663182a66a3c09421
获取今日天气文件路径
def get_file_destination_path(today): des = r'/home/pi/Documents/garden/' + today return des
0
757cc08c60818611b28920dbcc390ff7
3b7728d483d87380cb218faa647f2be8
Matches a null value
class Hamcrest_Core_IsNull extends Hamcrest_BaseMatcher public static function nullValue() { return new self(); }
1
6a63e7dea14ea4951fabc35c682ca3b3
5ce5f720d394625090052c5262345eb6
Returns the break position of the line given by _lineIndex_, which is one past the last character on the line.
namespace Persona public partial class TestPlay : Form private static int BreakLine(string text, int pos, int max) { int i = max; while (i >= 0 && !Char.IsWhiteSpace(text[pos + i])) i--; if (i < 0) return max; while (i >= 0 && C...
0
7271f0ddc70676faa2ff82e8733b0686
26ac77fd82b0419a7502d1bfc906c3b5
Set the flag indicating if inventory checking should be enabled for this item. This is useful in cases where inventory levels for the product should be completely disregarded.
void setCheck(boolean b);
1
d93c3199341d420cfc469bd534b96d26
6c634153ce636bb584a655745830f310
加载停用词,以列表方式存放
def loadStopWord(): stopWordFile = open("dict/stopWord.txt",'r',encoding='utf-8') for line in stopWordFile.readlines(): stopWord.append(line.strip())
1
b237722dc8f5ffbd6db9ab9e226c6040
8dddf6d92e1139d817da0257c3f6e6f4
Get value of codedDate.
namespace com.prowidesoftware.swift.model.field [Serializable] public class Field61 : Field, AmountContainer, com.prowidesoftware.swift.model.field.MultiLineField public virtual string getValueDate() { return getComponent(1); }
0
0759b8e26bb4f55d3f5f9674d3a91239
b7b07fa20fc99c0ab79e0dd2c15612fd
将Character数组转化为字符型数组
Character[] tempArray = new Character[str.length()]; for (int i = 0; i < str.length(); i++) { tempArray[i] = str.charAt(i); } return tempArray; }
0
1287294e5a93d79060dddfc151081e70
b5aebe5453196a55cb28926f404e44c4
未開のマスの数を返す
public class PlayerWindow implements Serializable public int emptyCount() { return (int) Arrays.stream(diceGrid) .flatMap(Arrays::stream) .filter(cell -> cell.isEmpty()) .count(); }
1
cff459cf667301af4075d7aa88e5c455
959a63062baeda5e0fa2f3a3c75d2ba2
Test method for {@link io.wzw.backend.data.dao.impl.HibernateRoleDAO#selectAll()}.
public void testSelectAll() { int totalElements = meetupDAO.selectAll().size(); Meetup insertMeetup = new Meetup(1,"Admin","Administrator role", new Date(1992, 04, 19), new Date(1992, 04, 12), 1, 19.015f, 20.013f, new User()); meetupDAO.insert(insertMeetup); int totalElementsAfterInsert = meetupDAO.selectAll()...
0
8aec3b1b10c89711a2b5108de649e509
f7d591d36b3f214d2c254c3c78ad5edd
Indica si 2 cançons donades són iguals
if self.titulo == None and self.artista == None and self.archivo == None: return False elif cancion.titulo == None and cancion.artista == None and cancion.archivo == None: return True elif self.titulo < cancion.titulo: return True elif self.titulo == cancion.titulo: if self.artista < cancion.artista...
0
330f58a6bcce9ebc57aa929ecb38ef2f
c0556b0ec6d0a5753dc694929dd96a07
设置系统标题
setTopTitle () { wx.setNavigationBarTitle({ title: this.data.title }) }
1
4075295c326bedd6d6e79dbf73c79a6c
a7bcd394ee04d07c1c59c66885243a71
Check if nick is free
string $nickn ) { if( ( $selection = $this -> get_by_query( "SELECT count(*) FROM `accounts_table` WHERE `account_nickname` = ?", array( $nickn ) ) ) && $selection['count(*)'] > 0 ) return TRUE; else return FALSE; }
1
5a82d6eb91f1e4c51051f9f785f7a91c
58dd3800e0bd9c10893648f7ae39fcc4
Render callback function to the reCaptcha button.
class InvisibleReCAPTCHA(ReCAPTCHA): def render(self, name, value, *args, **kwargs): return mark_safe( '<button class="g-recaptcha" data-sitekey="%(sitekey)s">' '%(name)s</button>' % { 'name': name, 'sitekey': self.sitekey } )
1
1aaf798760a95b894cdd3946f1b7b2bb
8560282a79edf2809e3f69614997a619
移動を停止する
namespace MoveAxis public partial class MainWindow : Window private void MoveStop_Click(object sender, RoutedEventArgs e) { CAXM.AxmMoveSStop(MainWindow.m_lAxisNo); }
1
adab13e8539e536292a50baf8b8b733a
a19337a134105e18b3028e2df5180c65
ブロックに引数を渡して実行
def method puts block_given? if block_given? yield end end
0
8513f757701b24dbadad3df74e817df5
b513a56e2c8b3f8b3e318466ca43c9b3
SES
void Cpu::iSEC(uint8_t *addr) { carryFlag = true; }
0
ce794eb93654a7a8a2351ebdd9d2a863
17994ea901b7e401098ba814b5145f4a
function called to display the next image by updating the figure.
class Application(QMainWindow,QWidget): def update_Figure(self): self.axis_image = self.axis.imshow(self.image, cmap='gray') self.axis_image.set_data(self.image) self.FigureCanvas.draw()
1
d7fd3d1cc6da361e8557efac4834151c
1c5cbe148ccf02e5ddfa09901eb25e9d
Thực hiện thêm bài viết vào csdl
namespace WebsiteQuaTangOnline.Models public class ModelMethod public static void AddNews(TINTUC tin) { db.TINTUCs.Add(tin); db.SaveChanges(); }
1
c9ebd15a7918b31a77bc20544ea36baa
dc8169b796b96bc58601f664eebb6bb8
Calculate the power scattered by an annulus with a 'circling' electron as exciting source inside and an electron moving on a slightly curved trajectory outside (vertical) The trajectory of the electron derives from a straight vertical trajectory in the ellipse frame. Output: Resistive losses as a function of omega
def Pow_sca_r(x_e, c_e, g, R0, R1, omega, epM): k0 = omega/c gamma_abs = 1j* np.pi**2 * ep0 * g**2/8.0 * k0**2 k_n = 1 a_n_s = np.exp(-omega/c_e*x_e)/omega*BesselI(1,omega*g/c_e) C0 = +1j*np.pi*g**2*k0**2/16. C = R0**2 * R1**(-2) * (-(epM-1)**2 * (R0/R1)**2 + (epM+1)**2)\ + C0 * ((epM**2-1...
1
b773f161673f4db2d5309aaefd0929e8
f01c0864fabc9ad880572560d286cf76
@brief Set day, month and year
void CDateTime::set_date(int year, int month, int day) { m_date.set_date(year, month, day); }
1
ad1b2ef450178ec16cce2c9eb42648fe
eda18eb6ec262ec9030121a03d646941
time derivative for sensitivity ODE
{ double dudt; dudt = u * cos ( t ); return dudt; }
1
842e3105c0802bb334bb32c9917579de
3fbd458fa07c8ffcb5921ba31ae78ace
Calls remote uri and creates models in database.
{ $container = $this->getContainer(); $em = $container->get('doctrine')->getManager(); $qb = $em->createQueryBuilder(); $qb->select('m') ->from('AppBundle:Marca', 'm') ->where('m.remoteId IS NOT NULL'); $marci_db = $qb->getQuery()->getResult(); ...
1
0de26ea42fe0cd2e7325c95f29fa00e0
e7743427859083318fe065604d990e9a
Has the plugin quickgrading form element been modified in the current form submission?
isModified_p () { var mod_b = this.FormContentOrg_s != $("#idForm").serialize(); return mod_b; }
1
12b9815168a897f7a2909330caa6b1c0
f9a2f25dd3938edf41c51eaf9056de37
Return a vessel's current sonar visibility.
class KnmiWeather(WeatherEntity): def native_visibility(self) -> float | None: return self.coordinator.get_value("zicht", float)
0
81f0cf36a16cfdf46603db62080c331c
312c07d436c4ba83a932a5fbffb2d91d
Deletes a checker.
class CheckersGame(private var listener: BoardListener) private fun deletedChecker(pick: Tile, variant: Tile): Tile { var coefficient = 1 var posX = -1 var posY = -1 if (pick.y > variant.y) { if (pick.x > variant.x) { for (i in pick.y - 1 downTo variant.y + 1)...
0
a9d42d99470cf645a6f4acd8ff2a644c
fe236a1e3ffc9984264e9f0a124bbb8d
Find all SysCCurrency entities.
class Api_Service_Currency public function findByDto(Api_Dto_Currency $dto, $limit = 10, $offset = 0) { return $this->_repository->findByDto($dto, $limit, $offset); }
0
3b658422edab301683487eaac457fd03
0e577f10d86d29d1a3851b8987c2dd5d
Verify that we throw an exception if we try to DeferRefresh while adding or editing an item.
[Asynchronous] [Description("Ensure that the AddItem functions properly and the new item can be canceled.")] public void AddItemWithCancel() { this.DataForm.CurrentItem = this.dataClassList[1]; this.AddToPanelAndWaitForLoad(); this.EnqueueCallback(() =...
0
1821c32e14ddc1ae90f9c8422aaa1ee4
8bf8c4c59e679dd0afabc7c7cd889b30
Allow the player to reset its `in_fight` status
class FightPlayer: def do_break(self): self.spell_id = self.t_role.attack_id self.attack_state = 0 self.spell_state = 0
0
1aabd8f884c53b191f9c47e5d5457b34
9f2d728fbcd345c85cf797d37293ef41
病人ID是否有效
namespace eHealth.Diseases.BusinessLogic.Contracts bool isValidPatientDiseaseId(int patientDiseaseId);
0
7ca90c2423ecf2c179eade9a5a02ef0d
e1cfa11898f01e1e5b232dac0ad04792
Test to make sure that an unexpected response will throw the expected exception
class Prack_ArachnidTest extends PHPUnit_Framework_TestCase public function It_should_provide_crashing_for_testing_purposes() { $this->setExpectedException( 'Exception' ); $response = Prack_Mock_Request::with( new Prack_Arachnid() )->get( '/?flip=crash' ); }
1
6ff56626f92179878fb27bf44d063204
fa19ddc7891d342f050aa1ca4c93d828
Restore any registers perturbed by signal delivery
void restoreVdc() { uchar i; for (i = 0; i < sizeof(vdcRegs); i++) outVdc(vdcSavedRegs[i], vdcRegs[i]); }
1
d18e13f8933292a2dd06919df9562f64
abb84d339ade2f7aabb84f86c5741516
Returns a true/false value that determines whether
function welcomeToBooleans() { return true; }
1
409619dca1097e531008b213f64e5b27
f47da70b4c42d347dbc71516eb963320
进行host与path拼接
def analyHostAndPath(totalUrl): protocol,s1 = urllib.splittype(totalUrl) host, path = urllib.splithost(s1) if path == '': path = '/' return host, path
0
f32b5e428a13616c29ea190bcd359c61
86144e535ed24c7cccc90eeaffebd230
Performs an integration step using the Leap-frog algorithm.
_currentTimeStep_++; double dt = _totalTime_ / ((double) _timeSteps_); double t = (double) _currentTimeStep_ * dt; double px = _x_, py = _y_, pr = _r_; double pvx = _vx_, pvy = _vy_, pvr = _vr_; double pax = _ax_, pay = _ay_, par = _ar_; double fx = _fx_.getValue(t); double fy = _fy_.get...
0
51bab086a259aa7961ab723033bd0cda
f1d5bcaf6f5f0f56e51b5e85d5ee86be
The maximal valid instantaneous speed (mm/sec). Only positive values are valid. None = maximal speed will not be enforced.
@JSProperty("maxSpeed") void setMaxSpeed(double value);
1
1491e75903c97a522ffeac37cc5d206e
f1b5a55e328b4f0a04e25f13b19132d0
Count the number of tenants
@Service @DS("#session.tenantName") public class UserStaticServiceImpl implements UserStaticService @Override public long count() { return userStaticRepository.count(); }
0
495d65478e4454ba6021215cec121ba1
ef0c37d8b1f2e945d2778008eee416c5
Since the overlay panel is transparent, we can not use optimized drawing or it will produce rendering artifacts.
class ComposePreviewRepresentation(psiFile: PsiFile, previewProvider: PreviewElementProvider) : PreviewRepresentation, ComposePreviewManager, UserDataHolderEx by UserDataHolderBase(), AndroidCoroutinesAware override fun isOptimizedDrawingEnabled(): Boolean = false
1
de7ad451b140e83ab5ab9b6a7fdf87d8
0ffed25e8aabd6d0fd445eafb22b46dc
Get the day kWh for vd dhw.
if currentValues: timesteps = self.environment.timer.timesteps_horizon else: timesteps = self.environment.timer.timesteps_total dhw_heat_power = np.zeros(timesteps) for apartment in self.apartments: dhw_heat_power += apartment.demand_domestic_hot_water...
0
94079902113dfbc85249c625d5226c23
d99c377c3b5b7a6167295e22c4cc9b32
Загрузка настроек из реестра
namespace StockSharp.Hydra.Core [DisplayNameLoc(LocalizedStrings.Str2211Key)] [CategoryOrderLoc(LocalizedStrings.GeneralKey, 0)] [CategoryOrder(_serverCategory, 1)] [CategoryOrder("CSV", 2)] public class HydraSettingsRegistry : IPersistable public void Load(SettingsStorage storage) { AutoStart = storage.GetVa...
1
33c37c453dfffbbed3f0cb69b8d605ee
c48444884c591c6f5f4e287c8aa455d1
根据指定的条件查询符合条件的数据库记录,t_task
@Select( "<script>" +"select id, user_create,gmt_create,user_modified,gmt_modified,job_id,job_name,job_date,job_priority,jobtask_state,last_run_starttime,last_run_endtime,next_rerun_time,retry_times,task_args,task_id,catch_exception,description from t_job_task" +"<where> <trim suffixOverrides='A...
0
3aa2d8edfc9c4e9928374616b80081a3
a6cae3d07adc99ef6e3e9b1f5df93dae
Gets the success view name.
public class CmclientSignInControllerImpl extends AbstractEpControllerImpl public void setSuccessView(final String successView) { this.successView = successView; }
0
2943f5455400f4551659b2972e29c4b5
dc95390550bb655d426e95442b37d10e
On crée une nouvelle boule de feu
{ m_fire = new FireSphere(m_engine); float scale = m_scale + 0.1f; m_engine->AddParticleObject(m_fire); m_fire->SetProperties(scale, 0.45f, 2000, 5, 1.3f, MOVEMENT_SPEED); m_fire->SetPosition(m_position); }
1
5bc8b529cacb8cbcb330248252a615ee
67d4133d866dd71f5a6bb0e5a13d26e3
Set listener for the remove item popup window.
public class PopupMenu public void setDeleteAct(ActionListener al) { deleteItm.addActionListener(al); }
1
e3fc6d08dd5845a84e27bba59cde837b
34adf8d3db2b856c7ec070ac571e9797
Sets bill key.
class StkRequest public function setPayBill($payBillNumber, $payBillPassKey) { $this->transactor->setPayBill($payBillNumber, $payBillPassKey); return $this; }
1
3720445af2fde4e742416202044ad93c
d957feafa2e40adc53be40256d4c4d54
Tests updating the default moderation state setting.
$workflow = Workflow::load('editorial'); $workflow->getTypePlugin()->addEntityTypeAndBundle('node', 'example'); $workflow->getTypePlugin()->addState('translated_draft', 'Bar'); $configuration = $workflow->getTypePlugin()->getConfiguration(); $configuration['states']['translated_draft'] += [ 'p...
1
6c2ce2c281a3c7b428beabe1bba4c88f
b4309787f09052b0a49d48d167a195fb
@brief Clear switch interrupt status on one particular device.
int _scard_infc_clear_interrupt(uint8_t slot, uint32_t mask) { unsigned iir; slot_record_t *slot_p; if (slot >= sizeof(slot_info)/sizeof(slot_info[0])) { _OS_DEBUG("SLOT value is incorrect=%d", slot); return (-1); } slot_p = &slot_info[slot]; if ( (mask & (~SC_EVENT_MASK)) ) { ...
1
d273a6c3a672c69bb60a2f040feccb52
7fb109722546748347abc4c94bbe99c4
cargamos los datos del coordinador escolar
if(isset($_REQUEST['codProyecto'])) { $codProyecto=$_REQUEST['codProyecto']; $nombreProyecto=$_REQUEST['nombreProyecto']; $variable=array($codProyecto,$nombreProyecto); }else if(isset($_REQUEST['codProyecto']) && isset($_REQUEST['planEstudi...
1
b84d4fc92cad80b8525b32abdfb821a8
18d9eb1c8e11923f0933cfec7e743276
Constructs a pre increment node.
self.op_tok = op_tok self.node = node self.pos_start = op_tok.pos_start self.pos_end = node.pos_end
0
4b0c3551b0560ab6848edf7172cbc387
959a4c596fa58c7cd389349ec3eccee3
Отправить письмо со случайной шуткой
class targetMaster{ public function sendTask( $uid ){ $res = $this->DB->query( "SELECT themes FROM users WHERE id = $uid" ); if( $row = mysqli_fetch_array( $res ) ){ $themes = explode( ',', $row[0] ); $t = rand( 0, count( $themes )- 1); $this->output = $this->getTaskText( $themes[ $t ] ); if( ! $t...
0
6705e4d2301b793890631f4bb343cd93
4dab009faa73f36f1c6b61ddef38c1af
Inform about a missing feature which is advertised
class Shooter def not_implemented(iq) resp = iq.answer resp.type = :error resp.add(Jabber::ErrorResponse.new("feature-not-implemented")) deliver(resp) end
1