query_id
string
corpus_id
string
query
string
code
string
label
int64
0357718358d7b03ace15457f5f5b7651
239744962a1396a7a3c644c00c24f39b
Сохраняет файл, возвращает путь к нему
public function storeFile(string $path, bool $move = true): string;
1
29bd9cb9ccde558c971fd11b24fd8c54
e50636f3158a21145deeef85855a9a5a
为单个角色授权
if not isinstance(role, MeRole): raise TypeError('role must a MeRole') if not self.has_key('role:'+role['name']): self['role:'+role['name']] = {} self['role:'+role['name']]['write'] = auth
1
21a03893530fcadb2e13d09f3c6ed2ca
d80447cb3424c7e063e196f2e5b88fec
Return a true Python function based on this function/code object
c = self.code() f = new.function(c, self.func_globals, self.func_name, self.func_defaults or ()) f.func_dict = self.func_dict f.func_doc = self.func_doc return f
1
e5464f4df429a02bdc1d3f1c3eac480a
8d602e67e80f50f8163477b9f4195f9f
Removes a Java to IANA encoding name mapping.
public final class DataValue public static class EncodingMap public static void putJava2IANAMapping(String javaEncoding, String ianaEncoding) { fJava2IANAMap.put(javaEncoding, ianaEncoding); }
0
aef77c063d21819b05ced7b7127f0618
31d23a666e687b32f42b1558f7d3725b
Returns a `torch.Tensor` representing the prediction matrix.
class BaseEmbeddingModel(nn.Module): def predict(self, pairs: torch.Tensor) -> torch.Tensor: raise NotImplementedError
1
b88b1f8b6e5e38d25608c005c7ccae6b
b03f7e2298bf5cb4bc53d4105be4abb8
usuń obramowanie pola
public class setShipsOnField extends javax.swing.JPanel implements MouseInputListener private void zablokujSasiedniePola(int x, int y) { poleBitwy[(x + (y - 1) * 12)].disableField(); poleBitwy[(x - 1) + (y - 1) * 12].disableField(); poleBitwy[(x - 1) + y * 12].disableField(); poleBitwy[(...
0
60550e8fd2fa1f8cba268911650d6559
be2869df2c84f035f5342a8130bd46ef
openweathermapから緯度・経度を用いて天気情報取得
@Service class OpenWeatherService(private val restTemplateOpenweather: RestTemplate) fun findWeatherInfoByLatAndLon(latitude: Double, longitude: Double): ResponseWeather? { logger.info("[FindBy Lat-Lon {},{}]", latitude, longitude) val builder = UriComponentsBuilder.fromHttpUrl(WEATHER_INFO_BY_LATLON_UR...
1
5946fb0c4567b2345a5fc9a16f42b76f
927fc28f13d8c08f2425fb5d9cdd2c7e
Döljer/Visar svaret på fråga 3
function thirdQuestion(){ document.getElementById("qa-box2").style.display ="none"; document.getElementById("qa-box3").style.display ="block"; }
1
dff95e5fecbb8847d6195f38368a4b3d
8f2ae29691616b4862298fb2a88958ae
draws from current to new by direction and number of steps
move_completed = False self.target.set_size(2) n_steps = int(self.screen_refresh_rate / 2) step_pos_x = np.linspace(int(old_position[0]), int(new_position[0]), n_steps) step_pos_y = np.linspace(int(old_position[1]), int(new_position[1]), n_steps) if tick >= len(step_pos_x...
1
4b15968d66e875c346ac72490770921e
260eddcf78d9d4050febc9b618da124d
Set the value related to the column: P_VALUE
public class InterfaceBusinessData implements java.io.Serializable public void setVal5(Double val5) { this.val5 = val5; }
0
079e7ba327b129fe985b21725a457983
b62ecdd9e73c8573f23a2847108e19a7
Load the extension tree so we can correctly invalidate caches.
{ if($this->isCachedExtensions()) return $this->setExtensionsFromCache(); if(!is_dir(self::$extensionsPath)) throw new \Exceptions\IO\Filesystem\DirectoryNotFoundException(self::$extensionsPath); $extensioins = array_diff(scandir(self::$extensionsPath), array('..', '....
1
c5998e1e359220470e58babd381bfa15
45799bd5fa5a66fcfdc6a4aaf3b14f43
Retourne les horaires futurs d'un utilisateur
horaire_courant = get_horaire_courant(profession) debut_prochain = date=horaire_courant.date_fin prochain_horaire = get_horaire_at(profession=profession, date=debut_prochain) if not prochain_horaire: prochain_horaire = _creer_horaire(profession=profession, debut=debut_prochain) return prochain_horaire
0
1cb6e2ce0d8f5f82b82b6175b5f54bb2
d9868a3b3907d6f36341a6abf3cbf7a4
<p>specKbn を取得します。
public RString getKey() { return this.sikakuKubun; }
0
0e6152bb9d1be104eab9e93d8b160f51
e007141ef22e579ab3c76eae78172597
Hide the overlay with the enabled bookmarks on it.
namespace Ubrowser public partial class MainWindow : Window private void bookmark_close(object sender, RoutedEventArgs e) { bookmark.Visibility = Visibility.Hidden; }
1
568c9b9cc3705597e4f56b591d76d689
94c953aaf21c3f68add735047375ce8a
打开所在房间的设备
return new Promise(function (resolve, reject) { getToken().then(response => { if (response.data.code === 0) { axios({ method: 'GET', url: RemoteAddress + '/dev-nonc-set?' + 'appid=' + Appid + '&roomnu=' + data.roomNum + '&actiontype=' + data.actionTy...
1
b0905415a8d6ee7d0dcfde7552960a9b
7a3eccf2af6442bab2a0300efd446af4
checks validity of an ini section name
{ int s = sizeof(name); if (s<=0 || s>FN_MAX_LEN) return false; char c = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_."; for (int i=0; i<s; i++) if(strchr(c, name[i]) == NULL) return false; return true; }
1
32bd6a737f8c0d9254c1aa1f0a45f2e0
3360ca661a0219bcb185916ec9436a9d
Turn off pushing entities to the cloud using SPARQL.
public class CloudProfilesParser implements CloudProfilesParserConstants static final public void disable_tracing() { }
0
823b6531b6608ccdf13d62fc518b613d
9e424466b087084d1846accc8d32fc64
mafValidator should fail when sequences ranges go outside of source length
class TestCodec(unittest.TestCase): def test_m2m_encode_invalid(self): with raises(KrakenEncodeException): self.m2m_codec_strict.encode(self.invalid_c_sequence)
0
2018e033fcbcbbc4fae2378a0615ecd3
495a1e80363e1c539e30ccd1087ed2f8
Метод проверки отправленного токена пользователя Объявлен как protected для тестов
class API_AlphaBank public function checkToken() { return true; }
0
5992141da45134dbb27d85b9f8b2787d
8316d015b59f36d7fe6e302c08d4b48c
only climb when touching a ladder
public class PlayerMovement : MonoBehaviour void OnTriggerEnter2D(Collider2D col) { if(col.gameObject.CompareTag("Ladder")) { rig.gravityScale = 0; isClimbing = true; } else rig.gravityScale = 5; if (col.gameObject.CompareTag("Rope")) { ...
1
19ee40b22d038f6128c1f36b6504b76d
126baa500a76ea1c090a41666627f175
Set CSS hash.
class Qi_Htmldoc public function setCss($csstext='') { $this->_css[self::HTML_INLINE][] = "\t" . $csstext; }
0
bf7f2bafc029a53e30745d3914f164d9
fccd9e694e081dc218f4f5f0c7a6c4b6
轮盘赌选择操作
static void roulette_op(ga_sys_t* gasys, operator_t *_op) { int i; int sum = 0; if (gasys->wsum == 0) { fprintf(stderr, "gasys->wsum is 0. Aborted.\n"); exit(1); } do { i = 0; while (1) { if ((sum += gasys->op[i].weight) > rand() % gasys->wsum) ...
1
e11c7671d8522db85b0916c3d3244478
96ac87f6e1e862c8bcbe237a2fa7dd44
Funcion que desabilita el boton del formulario
class Banner deshabilitarBoton() { this.botonAceptar.disabled = true; }
1
8bb5231a6734b4412c5093841cf3403b
1eb2377901524a9f848979a6080872fc
Gets an npc definition by its id.
types = [:object, :item, :npc] unless types.include?(type) fail "Invalid type of #{type} specified, must be one of #{types}" end Kernel.const_get("#{type.capitalize}Definition").lookup(id).name.to_s end
1
60af5b5ea1df93b9795f50c00cf797be
46a3eae6b1b76f8460ea89b62bcd9583
function to update the sunset time
class Sun(object): def sun_set(self, observer): sun = ephem.Sun(observer) sun_set0 = observer.next_setting(sun) sun_set1 = repr(ephem.localtime(sun_set0)) sun_set2 = roundTime(eval(sun_set1), roundTo = 60) self.sun_set = sun_set2.strftime('%H:%M')
1
07f0b418c0da5de9e334565d9201098a
e1df2c75f5803b85fd4ca156212f6f96
Toggle the saved value for the selected mount
self.partition_list_store[path][COL_FORMAT_ACTIVE] = not self.partition_list_store[path][COL_FORMAT_ACTIVE] partition_path = self.partition_list_store[path][COL_PATH] uid = self.gen_partition_uid(path=partition_path) self.stage_opts[uid] = ( False, self.partition_...
1
e5d786f1a2901d63fddae46cf4008e00
7a71715192aea519607219ec3c9e37b1
Getter method for property <tt>Contacts</tt>.
public class Table extends AbstractComponent public List<Contact> getContacts() { return Lists.newArrayList(contacts); }
1
9f60ab91dd4d4e4c38f9ddcbb4d66155
b962554317f69d49f663500d0567ec08
Subscribes to all animation behaviours and component events.
namespace GGS.ScreenManagement public abstract class AAnimationComponent : MonoBehaviour protected virtual void OnEnable() { PlayAnimation += Play; SkipAnimation += Skip; CompleteAnimation += Complete; }
1
871d1f1c948e547d09f5dde49ada1230
c1583edb48e76e62d2b1cf33cd0aae54
Deletes all repo contents and reclones it from remote.
{ $from = $this->getConfig()->deployment('from'); $commands = [ 'rm -fr ' . $from, 'mkdir -p ' . $from, 'cd ' . $from, 'git clone -b ' . $this->branch . ' ' . $this->repo . ' ./' ]; Console::output('Repo: (' . $this->branch . ')' . $thi...
1
ed2a0bc21c93010845273f3ad26484ec
640442c356a19c95a7830e8a501a41e5
Sums spike data over trials. Returns
def _rate_mat_avg_trial(mat): n_trials, n_neurons, n_bins = np.shape(mat) psth = np.zeros(n_neurons, dtype=np.float32) for tr, mat_tr in enumerate(mat): psth += np.sum(mat_tr, axis=1) return psth / (n_bins * n_trials)
1
f008a34fa756835d71ec5f3a613ea24d
a3abc6600367fa2ec59cc68e054a45fa
Compute the (maximum) log likelihood of the Powerlaw distribution fit on a degree distribution.
P = np.zeros((n0+nt,m)) Pave = np.zeros((n0+nt,m)) PD = np.zeros((n0+nt,m)) qnetm, _, _ = ns.stats(n0,l,nt,m) for n in range(m): P,Q = np.unique(qnetm[:,n],return_counts=True) for k in range(len(P)): PD[P[k],n] = Q[k] Pave = np.mean(PD, axis=1)/(n0+nt) Pave = Pave...
0
f8a53e2061b055f19bb67bebf050c92c
bf2f9bfe7bfd9632c84d8d18c8d3826b
Stream image by chunks
im.seek(0) try: img_ol = None while True: img_tmp = im img_tmp = self._img_correct(img_tmp) if img_ol and (hasattr(im, 'dispose') and not im.dispose): img_ol.paste(img_tmp, (0, 0), img_tmp) im...
1
3cca053ad1e18f76c14062d249d1027e
d466e65ed69859d3e764d4238cf1d198
Método que transforma de minutos a segundos
minTosec(min) { return min * 60; }
1
2a61dac5db0228935cb72072c0b73830
3be46654ff176ef6ee428257626dc5c8
@brief Destroyes a Mifare connection object.
assert(fdb); if(fdb->fd >= 0) tcfdbclose(fdb); if(fdb->mmtx){ pthread_key_delete(*(pthread_key_t *)fdb->eckey); pthread_mutex_destroy(fdb->wmtx); pthread_mutex_destroy(fdb->tmtx); for(int i = FDBRMTXNUM - 1; i >= 0; i--){ pthread_rwlock_destroy((pthread_rwlock_t *)fdb->rmtxs + i); } ...
1
b401f7539dcc42117b031a862f50336e
4b170eaf8e99e51315621c2984d550d1
获取SessionId生成策略
@Configuration public class ShiroConfig @Bean public JavaUuidSessionIdGenerator sessionIdGenerator() { return new JavaUuidSessionIdGenerator(); }
1
720aa12cf66c568f0561fb3d9be94199
c716c010a274493e07978cc132c512ec
如果查询到数据,将数据记录,否则去数据库注册
class ProcessLogic{ public function saveRegister($param) { $map = array('id' => $param['id']); if($this->getPatient($map)) $res = M('Register')->where($map)->save($param); else $res = M('Register')->add($param); return $res; }
1
a8ae840de9686f9c5c59ed36d9427f5f
cde4c057efe6b3d8f5977a30ae3b3a67
| | send acquisition message to Vnmr | +--------------------------------------------------------------
BOOL API_Monitor( NIM *nim, ACQSTATE *state, LOCKIND *lockinds) { unsigned long locked; #if INCLUDE_BANDWIDTHADJ long lnboffset; unsigned long bandwidth; long sigmadelta; SYMBRATE symbol_rate; TRANSP...
0
ff53fb93e0b39f4ae32ad77296e0c20c
3d98c6770b913aefb431532f2255b797
长按二维码吐司
public class LockContractsFragment extends BaseFragment implements SingleDialogFragmentCallBack public void tokenQrcode(View view) { showBigImage(); }
0
6bd565ea2f98a7cd0b71c1835b49dd7b
d4b7b7fbd4cc3971543cdf576c40303b
Tests the case where the broadcasted original matrix is permuted
def test_permutation(perm): n_src = len(perm) perm_tensor = torch.Tensor(perm) source_base = torch.ones(1, n_src, 10) sources = torch.arange(n_src).unsqueeze(-1) * source_base est_sources = perm_tensor.unsqueeze(-1) * source_base loss_func = PITLossWrapper(pairwise_mse) loss_value, reordered...
1
6f8baee7f2b8f0e4ab8fd7d3dcf25ed0
809b39c716032ab3f5abb2d3cedf93e6
Sets the picture of the shop. A String containing path of the picture of the shop.
public void setPicture(File picture);
0
84c04456144c6ceb6e52e0a28faa72b9
04049003d4f8a60c571f047a671c4f4a
The Begin Creating Service Certificate operation adds a certificate to a hosted service. This operation is an asynchronous operation. To determine whether the management service has finished processing the request, call Get Operation Status. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460817.aspx for m...
{ using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, vaultName, certificateName, certificateRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } }
0
6e59146c9da11a45ea387d6c248f8830
3ca9ff1114822c5a6a0c04e5903674de
Set the destination port ranges.
this.lowPort = lowest; this.highPort = highest; this.nextPort = lowPort; }
1
d779d81e2daa09030677140b3e800e91
18fe3cc81b6693be7181c602e0ad2fe2
判断字符串是否全为大写字母
public class StringUtils public static boolean isAllUpperCase(String str) { if (str == null || "".equals(str)) { return false; } for (int i = 0; i < str.length(); i++) { if (Character.isUpperCase(str.charAt(i)) == false) { return false; } ...
1
e8e07f1055f32c9eaf1f8b40bf176e66
dd6094b7a67e216af70046205d855cf9
Mark that we have lost synchronization with the server.
void Rsm_ReportSyncLost (CRemoteSyncManagement * self) { self->last_synclost_cause = RSM_SLC_CFGNOTOK; Srv_SetEvent(&self->rsm_srv, RSM_EVENT_SIG_SYNCLOST); }
1
2b3c88a179be96d719be980d85d29361
d9208ffcf7e0be93e17d1360ff2dc2bb
Return a raw pointer to the vector's buffer.
self.buf.map(|ptr| { unsafe { std::slice::from_raw_parts(ptr as *const u8, self.buf_size) } }) }
0
2ac8b8986998c8a8e06eea64f8f54ab7
9f12620cf4b8c85edded7d6b02354808
Create an instance of {@link UpdateUserRequest }
@XmlRegistry public class ObjectFactory public UpdatePersonRequest createUpdatePersonRequest() { return new UpdatePersonRequest(); }
0
4c7d584669e45ad5e99b8942210503b2
6b51b9f1241d0b006047d27f3a1fe0ad
chap 목표 설정 페이지에서 해당 스터디id의 책 정보 출력
target_study = Study.objects.get(id=pk) board = Board.objects.get(study=target_study) articles = Article.objects.filter(board=board) res = [ { 'board': board.id, 'articles': [ ArticleSerializer(single_article).data for single_article in article...
0
b1f4c3af11e53d267af71270ba70d33b
6d4e40bd3bd1c2868b8eeb5e79d0e568
获取底部NoMore的Item个数
public abstract class BaseHasTopBottomListRvAdapter<AllData, BodyData> extends BaseHasTopListRvAdapter<AllData, BodyData> public int getBottomItemCount() { if (getBottomItemResId() == 0) { return 0; } return 1; }
1
ebf2e0f977ea54d1209760deb68196f9
13e8b8965fe1f3a619ca5ec5c660d1de
用于顺序扫描根网页下所有链接的方法
func main() { var links []string f, err := os.Open("test.html") if err != nil { fmt.Println(err) os.Exit(1) } doc, err := html.Parse(f) if err != nil { fmt.Println(err) os.Exit(1) } for _, link := range visit(doc, links) { fmt.Println(link) } }
1
87ed4dfa52b3f2f72a3828627f0acf6e
b373ce3a65a9358e9753acb414657540
Call command with no checks configured.
logger = krux.logging.get_logger(name='io-test-app', level='debug') io = IO(logger=logger) cmd = io.run_cmd(command="false", raise_exception=False) print(cmd.ok) print(cmd.returncode) print(cmd.stdout) print(cmd.stderr)
1
3ed8353cd907bb02cdbc7abb65047d83
69a68f2fd8af488e67b71d7a79ffa149
获取指定关键词的铃声数据集合
namespace SMSPlatform RPCResult<List<Keywords>> GetKeywords(string keyGroup);
0
4d81908132e7b6498e40e641adc88424
4c0e65e6498bbea04646baa8c1e3a235
Get the correct min. and max. available dimensions for submitted dimension (width / height)
class image private function getDimensions($newWidth, $newHeight, $option) { switch ($option) { case 'exact': $optimalWidth = $newWidth; $optimalHeight= $newHeight; break; case 'portrait': $optimalWidth = $this->getSizeByFixedHeight($newHeight); $optimalHeight= $newHeight; break...
0
2d0aa644e8379971779f615316001881
3e59c03187eca1454e22d0ca4e68ca7f
Get the path to Jupyterhub deployment configuration.
def get_deployment_path(cluster_name): jhubctl_path = get_jhubctl_path() deployment_path = PurePath.joinpath(jhubctl_path, f"{cluster_name}") return deployment_path
1
d764962b278af7d82177f9d0e8074e58
2013f9873752bd8a041431f4f7560d28
Runs a single simulation of the move indicated by int on the hand with the MC deck. Returns the score of the resulting hand
int MonteCarloComController::Act() { if (!ran_simulation_) SimulateGame(); int *hand = player_->GetHand(); double weights[13]; int maximums[13]; for (int i=0;i<13;i++) maximums[i]=-1; int m_index=0; int max_index = -1; for (int i=0; i<13; i++) { if (player_->IsValidPlay(i)) { weights[i] = curr...
0
bd30f026200fbea1d438e38c1e4f30a8
7dfbdc3f714be6939258fc76a99038d3
当目标List为空时,为起实例一个,防止空指针异常 需要判断的List
namespace DPYM public class CtrlInfoDS : IEnumerable // CtrlInfoDataSet protected void MakeSureListNotNull() { if (0 == _ctrls.Count) { _ctrls.AddLast(new CtrlInfo(EBehavior.Default)); } }
1
f28f752070f8e14f0c54c77f0913a64d
9207712a4690acc0c60ee71ea42a759c
Returns a long display name
namespace MarketPrediction.Indicators public class SimpleMovingAverage : ISeriesTransform public string GetLongName() { return "Simple Moving Average"; }
1
dd97dd8f03526d962d6295cc2c23704b
e00c90ad30b4084847e35a5015c74ea2
Sets the boxcar size
ParticleSystem.ShapeModule shape = _ParticleSystem.shape; Vector3 box = shape.box; box.x = length; box.y = width; shape.box = box; }
1
97f16730828a32a93f67e068abe897d1
a7e9af65f25a856f7a1c85504cc7f38a
Test selecting the same property path in the same query multiple times doesn't generate overlapping aliases.
def test_multiple_aliases_same_column(): my_frame = query( """ select wind as my_wind, wind as also_the_wind, wind as yes_wind from forest_fires """ ) pandas_frame = FOREST_FIRES[["wind"]].copy() pandas_frame.loc[:, "my_wind"] = FOREST_FIRES["wind"].copy() pan...
1
1bc5046d2a942a003628bb3215824e95
bc2627b3ab4bb5e89591cc2972f2c914
Gibt die berechnete Breite des MenuItems zurück. Diese setzt sich aus dem Padding (links und rechts, je 16px), dem Icon (wenn vorhanden, 15px) und der berechneten Textbreite zusammen.
namespace Meteo class MenuEntry public virtual int getWidth(MenuScreen screen) { return (int)screen.ScreenManager.Font.MeasureString(Text).X; }
0
ad778feae31454e39eaaa6216ea8727f
da4e17356131ac55f5eeb29785144b52
Tells if teh grid is being painted or not.
class MyPlotPanelDirector(PlotPanelDirector): def IsGridMode(self): return self.gridMode
1
457ee254aa3b2bb6ea92f187be2b1f60
c31fe3428492e4103b987b0b14faaa8a
Set sort order for Order count
{ OrderByItem sd = this.CurrentSortOrder.Find(DC_OrderTable.TotalCount); if (sd != null) { sd.Reverse(); } else { this.CurrentSortOrder.Reset(); this.CurrentSortOrder.Add(DC_OrderTable.TotalCount, OrderByItem.OrderDir.Asc)...
1
36b94987f69bffa7c3128ca324af3dfb
b96bee232018535f5a55fd86f2db9070
Returns the deviceID in the container
public class DeviceMapping public String getDeviceID() { return deviceID; }
1
f4a65c348e87133c52c1ade3dbbe72e1
f4995dff053f200faab19092c4c7a04d
Function to replace each element of the array by its rank in the array
void sortedOrder(int *sourceArray, int arrSize) { for (int i = 0; i < arrSize; ++i) { sourceArray[i] = i; } }
0
45aa0ff838fd8d5f1b75728f31e8348d
a3589b4e395c03da2178455e21e39fc2
随机选择数组,排除部分。
class Define randomArray(arr, num) { let out = []; num = num || 1; num = num < arr.length ? num : arr.length; while (out.length < num) { var temp = (Math.random() * arr.length) >> 0; out.push(arr.splice(temp, 1)[0]); } ...
0
103fbeccb1c2439a9e15fc35402d7bbd
80feddfdc341a50a92a592695a876bd8
Gets the RGB LED located on the shield.
public LED getLEDShield();
1
22c6703b4b2c3efabc6ad59b815a66af
24d334485cb14bea8fa2f2038aaf6e95
某段时间某设备的理论发电量
@Service public class ElecService public void queryUseElecByRangeDay(String beginDay, String endDay, String tidstr) { this.sendPost(beginDay, endDay, tidstr); return; }
0
d32980ce3ac153f286477da91f173943
4417508e0f2ce94d147a48e951b4667e
Writes to option's text.
namespace BuildNotifications.PluginInterfaces.Options ITextOption Text(string id, string name, string? description, string? defaultValue = null, bool required = false);
0
933eb609213e5d424876bd12bb2a7024
5ccce96c6a385a21e3cbf50a2b371e7e
Формирует список чатов пользователя, в которых админы и он и бот с возможностью доп проверки разрешений
class Chat public static function getChatListByUser($userId){ $db = DB::instance(); $result = array(); $userId = (int)$userId; $sql = "SELECT t.`id`, t.`title`, t.`user_create`, t.`date_create`, ...
0
5186a4d50b6baf82ae8e201d09ee01c7
ca4891f2d0f1956ae5f74e923ff29b9a
Checks the temperature inside the spectrograph box.
class ThorlabsChrolis(ThorlabsDLLInstrument): def box_temperature(self): temp = c_double(0) self.dll('getBoxTemperature', byref(temp)) return temp.value
1
c9f05fee02cbf1ead491b85b4bb639bf
3483bcc496cacaab254d8f79b3916763
@brief Blink an LED in a stand-alone cog
void blinky(char *buf, int len, int argc, char **argv) { puts("Hello from Blinky!"); int rc = bl_gpio_enable_output( LED_GPIO, 0, 0 ); assert(rc == 0); for (int i = 0; i < 10; i++) { rc = bl_gpio_output_set( LED_GPIO, ...
1
11bb6b6c05c648ab94320fecfab1a7e2
4e92b950e3c10f32020bb35a9aaeeca7
Handles the InitializeRecord event of the DataGrid control.
{ try { this.SetEditRecord(); } catch (Exception) { } }
0
e9ea72dccdf692ddf9168e1ea0bd5f8f
9e24d9b7e8523f5ee9870c4d35991280
Returns true if the durability api was used for configuration.
boolean getConfigured();
0
7e30a763e786979f41835aa7de924bb8
255988170837d4bc5181463401b68b5a
retorna o codigo da marca
class Midia public function getCod() { return $this->Cod; }
0
f680edd359630f053d47f07ef9adbdb7
cd84990c4599e2994359e8174593e48f
Scan Concours Entries and generate a lable for each. These should be placed on the envelopes handed to eache entrant upon arrival.
public class JudgeAssignDialog extends javax.swing.JDialog private void JudgePacketLabelsActionPerformed(java.awt.event.ActionEvent evt) { String concoursBuilderDocsPath = theConcours.GetConcoursBuilderDocsPath(); String concoursBuilderDataPath = theConcours.GetConcoursBuilderDataPath(); createT...
1
0695effca6d7cb54307cfc258eeebce1
7457032a0b65be2b953f1cd1ae853bd0
获取当前登录用户的工具数量
class SystemController extends ControllerBase public function getToolsAction() { $vars = ['mem_id', 'mem_mark', 'sign']; $this->beforeGetVarExecVerify($vars); array_pop($vars); $add_status = $this->callModelFunc('Tools', 'getList', $vars); $this->throwMessage($add_status); ...
0
bce0ea42d35b0fba773708ec3113c2ee
0775f0ac0aaeb9d34b218e123dadee31
Méthode calcul salaire net
public class EmployePleinTemps extends Employe private double calculeSalaires() { return salaireSemaine * 4 + prime; }
0
8ab5f4d6b4c528f34872d8649c81cc5a
b799148b8ce15bb06e9e44a8bb08e738
隐藏min播放器
public class AudioPlayer implements OnClickListener public void hide() { mPlayWnd.dismiss(); mIsShow = false; }
1
82ce4193caad13a4ba28facc253e4ffd
1439e3d6a0d26c57592623b0ae720bdc
更新组织机构缓存
public void putOrgInCache(CoreOrg org);
1
287e9ce99b5fbfd5eaa2b262f7204dbe
64c4f5c6916c0f95a719c36065c393b5
Derived feature function: indicates whether the avg of years of studies of head of household and partner is > 9 Requires years_of_education feature to be computed beforehand
class SpkResidentialBuffer public function getBPar9() { return $this->bPar9; }
0
70f361e3aa125946f2565452dda59212
a1bf1777ae320a7db4c8704408fc7516
Tính ra thành phần cho mẻ trộn cần
$isDicut = !empty($this->model['diecut']) && $this->model['diecut'] != 'N'; $cutting_price = 0; if ($this->paper) { if (!$isDicut) { $cutting_price = $this->paper['cutting_price']; } $this->final_price_digital = $this->final_paper_price + $this...
0
416fb96f53b0e3b4f210f9c03ebb746f
a132a60d50a26f7d1abc085f89c94736
Removes provided monster from provided passage.
public class PassageSection implements Serializable public void setMonster(Monster theMonster) { monster = theMonster; }
0
0a6c29b5641215fd744854eb3902d934
5498545344f667c850510ed39474b11b
Returns a new object of class '<em>Logo Program</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
@XmlRegistry public class ObjectFactory public ProgramStudi createProgramStudi() { return new ProgramStudi(); }
0
bbfcf9b1918ba44a04ecc4dff2bfe4e5
8d125265d0e28af0be43bea3e6fcebb7
获取excel中指定sheet名称的索引
{ int i = 0; foreach (Excel.Worksheet sh in shs) { if (sheetName == sh.Name) { return i + 1; } i += 1; } return 0; }
1
9df96a72e264784da2f8cfc688afb162
072a8683d5a2d028270d530a01840f44
Sets the constant parameters used for feature normalization.
self._alpha = alpha self._lambda = lambda_ self.standardalizer = None self.standardize_data = True
1
e1e5860c380b50d9eb2de8047dd894ae
3b229927de25454e7bdd52ad4e74a35b
Type of gun <p> This is mainly used for display to the user but in some cases can be used to modify how the weapon is animated and held by the player model.
public class WeaponViews implements Serializable, Cloneable public String getType() { return type; }
1
296bd23903a3bb9572ef4caed6d3433b
6695de776dce7b7e5c40fff1d7940d54
@brief == operator for the Point class
Point2D::operator==( const Point2D& point ) const { if ( ( d_x == point.d_x ) && ( d_y == point.d_y ) ) { return true; } return false; }
1
c737602d15a9236c687c8ff87508019e
69d3e607df6ad0551e3a34be4ea6e304
Get plot name
if self.format is not None: return 'image/{0}'.format(self.format) else: raise ImproperlyConfigured('No format is specified for the plot')
0
3c4c0a0184cdee8dd93eca3d47fb7f81
693bde3bf3b5bda1b1abe9acd27d49af
从数据库获取收入的科目,用于为Spinner提供数据集
public class RecordTypeUtil public ArrayList<String> getImcomeTypes(){ return mIncomeTypes; }
0
862ab46f0d7876ed5ae3f7792141df6b
3005ad27c543055ba3141d367f91a541
Simple method to display the Frames Per Second in the window title
{ static int frameCnt = 0; static float timeElapsed = 0.0f; static char buffer[256]; ++frameCnt; timeElapsed += deltaTime; if( timeElapsed >= 1.0f ) { sprintf(buffer, "--Frames Per Second = %d", frameCnt); string newCaption = gWndCaption + buffer; SetWindowText(ghMainWnd, newCaption.c_str()); frame...
1
968224db38334b83eef8bf282381705f
596012e3ea59a63cead1518824ab767d
Test that probabilities are fit correctly to nodes that are caused by other nodes
self.top.add_energy_based_edges(self.edge_types, 1, None, 1.0, 1.0, self.rng) node_has_edges = [len(self.top.graph.edges(node)) > 1 for node in self.top.nodes] self.assertTrue(all(node_has_edges)) self.assertGreaterEqual(self.top.num_of_edges, len(self.nodes) * len(self.edge_types))
0
b794f6415ec71881583d4c9897469241
feebc99c97eacb68467dd046ac47c3b0
Gets the auto top up setting by customer id.
{ var query = UnitOfWork.CustomerToCloud9ResellerRepository.GetQuery().Where(x => x.CustomerId == customerId && x.RollbackStatus == Cloud9ResellerHistoryRollbackStatus.WaitingForProcess && x.RollbackDate.HasValue); query = query.Where(x => x.CustomerId == customerId);...
0
3d957da6046abf0f49d7feecfe871907
e08027203cf55fc6fc1a65121084bd0f
提携メディア削除のお知らせメールを送信します。
public class SmlCommonBiz public void deleteJmeis(Connection con, SmlAdelModel delMdl, int kbn) throws SQLException { SmlJmeisDao smjDao = new SmlJmeisDao(con); List<SmlJmeisModel> allDelList = new ArrayList<SmlJmeisModel>(); int limit = GSConstSmail.SML_BATCH_DELETE_COUN...
0
ef9c6aa40488166baf45e093bb707d13
7ed1ba9d1b90273909e64acbc290c429
(Decorator) Require all roles specified to run the command.
@wraps(fn) def wrapt(event, context, user, *args): if all(any(user['role'].get(role, False) for role in options) for options in roles): return fn(event, context, user, *args) return on_failure(event, context, user, *args) return wrapt
1
d5c63756588d33b4c3c0d09f68b3c0f8
163f63e0e86a4f25ca856b2b7e643fd5
Generate one valid sample and write it to the destination arrays.
class SameConfigGen(Gen): def generate_one(self, gen_fn, i, *args, **kwargs): state, label, vec, scale, phi, spert, pert = gen_fn(*args, **kwargs) n_s = len(state) self.targets += state self.t_batch += n_s * [i] self.refs += [] self.r_batch += [] self.labels += [[...
1
e052cc7c08b66293b868adf23b6c2b49
cfa348f70b44fe5c856420629835cf35
先手番局面と後手番局面を合成
let senteSfen: string = ""; let goteSfen: string = ""; for(let capturedPiece of this._capturedPieces) { if(capturedPiece.num == 0) continue; const numStr: string = capturedPiece.num == 1 ? "" : capturedPiece.num.toString(); const pieceStr: string = `${numStr}$...
1
409da39bb4c302af2e3fe60cb48ef32e
ac9c898777391697954d35bec8d2ba7c
监听玩家VIP升级,判断是否有技能可以解锁
public class Skill : MonoBehaviour void UpdateSkillBtn(){ int gold = PlayerPrefs.GetInt ("Gold", 0); for (int i = 0; i < length; i++) { int curLevel = 0; if (i == 0) { curLevel = PlayerPrefs.GetInt ("curLevel" + i, 1); } else { curLevel = PlayerPrefs.GetInt ("curLevel" + i, 0); } if (gold >= ...
0
538079d9ef47495aa945480dab298e88
7fb93f7c72c25b6ea6608daa000ed148
Handles Save Button click Event -Save Contractor Job Security Information
{ try { string currentSnapshotName = this.nameTextBox.Text.Trim(); string description = this.descriptionTextBox.Text.Trim(); int recordCounts = Convert.ToInt32(this.countTextBox.Text.Trim().ToString()); bool cancelClicked = ...
0
09e7f8e9699c800c15efc513acc9bc47
2a8be7211701cbb1cc5ebd21f5e9dd64
deletes all rows in the given range from LP
void lpx_del_rows(LPX *lp, int nrs, const int num[]) { glp_del_rows(lp, nrs, num); return; }
0
8809a0dff6aaf915c10150229be931f8
5d568ecba3d1a3aba5c0ef1a26cada51
Vrátí řetězec pro ověření korektnosti přijaté odpovědi
if($_answer == $_correct) { return "correct"; } return "wrong"; }
1
5e03599104d4ba88aa76d26a07d3940d
d0fa7fced487862d41036a5bc63b635d
Checks if the condition of the Erdoes-Gallai inequality is fullfilled
int n = _d->getSize(); int nn = _d->getSize2(); uint8_t *order = _d->getData()[0]; int count = 0; for(int i=0;i<nn;i++){ int v = order[i]; if(v){ for(int j=i+1;j<nn;j++){ if( order[j]>0 && order[j] < v) count++; } } ...
0