query_id
string
corpus_id
string
query
string
code
string
label
int64
1fb3f789a49f4b5098f95621222cc63a
2181828f40cd3ec4efce8846d873f5c1
List the members requests to join the group.
public function getMembersWithPendingRequestsToGroup($group_id);
1
28785c700afe2de1d3daf3c2e5203979
cef9bd9a1f5bd9df5042da99779e7c26
Sets People properties for the specified profiles only if the properties do not yet exist, using the $set_once operation and optionally creates a backup file
namespace Rakam.Client.Api System.Threading.Tasks.Task<ApiResponse<Object>> UserSetPropertiesOnceAsyncWithHttpInfo (SetUserProperties setUserProperties);
1
e96c329fb0bb6f18731ad11ba95face4
1867ce2aa2a9f50d58378433abe086a8
初期化されていない場合exceptionを投げる。
public class BoyjRTC implements BoyjContract private void validateInitRTC() { if (!isInitialized) { throw new IllegalStateException(ERROR_INITIALIZED); } }
1
d581b09044ad0c4d0236a38467d9e36e
6f740f12940758354afeb997d5ece6f8
Returns the TT Content
class Address extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity public function setTtContent($ttContent) { $this->ttContent = $ttContent; }
0
1fb064f174a60b7b8e1b2aeccffb4f8d
34ae64ab049ad8baf36af21a51d3f3a7
摇一摇详情页
var shakePage = $('#shakePage'); shakePage.css('display', 'block'); var yaoyiyao = $('.yaoyiyao'); var bg8_yyy = $('.bg8_yyy'); var bg10_yyy = $('.bg10_yyy'); if (firstShake) { bg8_yyy.css('display', 'block'); bg10_yyy.css('display', 'none'); } else { bg8_yyy.css('display', 'none'); bg10_y...
1
0e7414716ea0c3ae5717984bb10e00a8
c11c8a95fce9719e63b734f37a3004ac
스크랩햇던것들을 전부 보여주기 +페이징
@RestController @RequestMapping("/scrap_collector") public class ScrapConController @RequestMapping(value = "/getPageList", method = RequestMethod.POST) public Object getPageList(HttpServletRequest request) { return scrapCollectorService.selectAll(DataTables.getInstance(request, null)); }
1
fc7d5808335d6759050a2a7ee27de0a6
ff8f71d87d1d4dfc228465aad9a641dc
Takes time-series as an input and returns next raw, that is fed to the fitted model, when predicting next value.
trend = self.sample_predictive_trend(df, iteration) beta = self.params['beta'][iteration] Xb_a = np.matmul(seasonal_features.values, beta * s_a.values) * self.y_scale Xb_m = np.matmul(seasonal_features.values, beta * s_m.values) sigma_obs = self.params['s...
0
869aab1347d033d18fd57891f8217aa8
13d1a8aa3a0e8296ad72dfbfdc7e327a
Computes the logical AND of two vectors, treating each component as an unsigned integer.
namespace System.Runtime.Intrinsics public static class Vector64 [Intrinsic] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Vector64<T> BitwiseAnd<T>(Vector64<T> left, Vector64<T> right) => left & right;
1
b9e9a4a2e4e26d22ba1f0a04f5c87ae5
5d01a701e6bd38c6e91e43262390d647
Utworzenie nowego nagłówka faktury sprzedaży.
class Sprzedaz(Dokumenty): def naglowek_faktury(self, id_nag, k): fak= MagDok() fak.numer_abs= id_nag self.ustal_sprzedawce(fak, k) self.zeruj_fak(fak) fak.nr_dok= k['numerDokumentu'] if fak.nr_dok: fak.nr_dok= fak.nr_dok.upper() fak.data= datetime.datetime.strpti...
1
aab157fa1457ebf8fb2ab4d3e89eea4e
36f3bb695c682a22684b5bff9a814266
设置流水号 自增长ID
this.orderNum = ComUtils.formatDate(new Date(), "yyyyMMddHHmmss") + ComUtils.formatNumber(id, "000000000"); this.save(); }
0
28b3625c0fcf101254e8a772bef4a13c
6ec66b9e8e20eedf1d9c6d29eb46b028
modbus configuration (default) : device ID, signed type of modbus's data-byte (True = signed-type byte)
class ModbusXML: def __init__(self): self.next = 0 self.result = {'di':{}, 'ci':{}, 'ir':{}, 'hr':{}}
0
a2404bf5054dd06d0a7835bb24998c7c
7b6fd95fdb74a657043f240cc273a708
# convertDate(Date) returns the Season in which the Date falls falls based on the above variables
seasons_N_func <- function(df){ df_seasons <- df %>% mutate(month = month(date_start, abbr = T, label = T), year = year(date_start)) %>% mutate(season = case_when(month %in% c("Dec", "Jan", "Feb") ~ "Winter", month %in% c("Mar", "Apr", "May") ~ "Spring", ...
1
efd9fa9668058edf6506a4ee77fcb198
1422fd358ec6d943cfa04123f25544c2
\brief Timer4 PWM & Emergency malfunction IRQ handler
CH_IRQ_HANDLER(STM32_TIM4_HANDLER) { CH_IRQ_PROLOGUE(); gpt_lld_serve_interrupt(&GPTD4); CH_IRQ_EPILOGUE(); }
1
f09f1a88407ebff73b1d0985734cb978
2f94bcdf82d9ac6fc211a088d973240c
Ensure we can create an Authority object
class USDAZoneTests(TestCase): def test_create_USDAZone(self): z = USDAZone.objects.create(name="4a") self.assertEqual(z.name, "4a")
0
9dc4823d2eb9f21bfcff9d9928920910
5ffc42b03b9a094209eb023058ca9485
Setter for <code>nfl_plays.player.broad</code>.
public class CUsuariosDE public void setpbBaile(String lSBaile) { this.ppvSBaile = lSBaile; }
0
5cece63da5c7d5f006e426abeca139f8
45ab8aa3f39069b33e9c3696c8e8735e
Определим, есть ли свободные каналы для совершения звонков
protected function _existsFreeConnection() { return !(count($this->_socketConnections) == $this->_socketMaxConnections); }
1
052bb02f2d4136f032c8d748979304e5
9c827becd9645b3dfccae9b8c4a05532
new 1d idct
class DCT: def idct2(self,c): return np.sum((c.reshape(N,N,1)*self.phi_2d.reshape(N,N,N*N)).reshape(N*N,N*N),axis=0).reshape(N,N)
0
3e524f40a026329a309482c0b1326456
990f13d2cf8260b1cae2d04ce32cb4de
根据Id将某一个memberMission的状态改为已完成 成功则返回true,失败返回false
class MissionServiceServicer(object): def IsMissionFinished(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
0
2f6a5107b9b36b8fd0cf12f5985e681e
0ff77cc305c6670a719936b13be6d5e7
добавление отвеченного вопроса в профиль пользователя
class Favorite extends Meta public static function question(User $user, Question $model) { $data = [ 'target_id' => $model->id, 'target_type' => $model::TYPE, 'author_id' => $user->id, 'status' => static::STATUS_ACTIVE ]; if (!static::deleteAll...
0
d2235dc4df99f0ca106638bbbafaf724
216d5d9ff4e757699ed38ad5c61160cd
write webpage data to csv file
def write_data(data): with open('data.html', 'wb') as files: files.write(bytes(data, 'utf-8'))
0
9b081335e2ded8b9a3723359bab8b913
ccaddd5ec069f514ef16f3f342501b49
Returns the collection of paths from the source node to any of the target nodes (if such exists). If there is no path between them, an empty collection is returned.
Optional<StepPath<A>> getAnyPath(V fromVertex, V toVertex);
0
023c4efdbe5ba8a7f671c7d79923ee2d
886f02099a2b58ae8749576dd0088e9b
[Documentation](https://wow.gamepedia.com/API_GetRewardNumSkillUps)
function GetNumSkillLines() end
0
c1803c9642803cf2e331782f1cb26e14
28726c9d4d2a1458d61e645d90697171
字符转莫尔斯电码
i=0 Str='' List=[] List=list(string) if len(List)==0: return '' while True: Str=List[i] if Str=='A' or Str=='a': Str1=".-" Str1=Str1+" " List[i]=Str1 elif Str=='B' or Str=='b': Str1="-..." Str1=Str1+" " ...
1
d7129b8e267093fa84177157fa11f003
d221a73945220f9a568e967c1949d2e9
Call this to pretend we just dropped the item, e.g. to make it fly back to its grid Since UIDragDrop's functions are private, duplicate some of the functionality here
function ITEM:OnDrop(player, position) end
1
d7b383a78f133c5b7efe8fa6c1161819
e4945c5b1b3c4c5c6212a7ce46cd972e
获取断线重连数据
CopyOnWriteArrayList<OtaProgressInfo> listFilter; int avg = 0; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { List<OtaProgressInfo> list = listResult.stream() .filter(result -> result.isReconnect() == true) .collect(Collectors.toList());...
1
24f83aeee926f9405923f21ad33ab102
7d48d9cad99376f1f75f4b89f5a5c8d0
Convert coordinates from 2d array (i,j) into spatial coordinates (x,y).
class GeoArray(object): def ijArrToxy(self, i: Number, j: Number) -> Tuple[Number, Number]: i_pix, j_pix = ijArrToijPix(i, j) return ijPixToxyGeogr(self.gt, i_pix, j_pix)
1
a711baba5c44e7c3b441931815f218b2
a000d047cd0de03218f5fc8f7e406aa4
Get exclusive access to a file and apply a function.
$filename = $this->generateFilename($key); $type = is_file($filename) ? 'rb+' : 'wb+'; if ($handle = fopen($filename, $type)) { if (flock($handle, $lockType)) { $callback($handle); flock($handle, LOCK_UN); fclose($handle); return true; } } return false; }
1
7f98d088faa1e71b065b4fbb5e621e1a
5b1e68da7e42c83b78b7c67ae4ba2df9
AD7606数据采样
{ U8 tmp, i = 0; S16 adcdata; LATC3 = 1; TRISE = ~0x0000; LATA &= ~0x001F; LATA3 = 1; do { LATD3 = 1; LATD0 = (i > 1); LATD1 = 1; for (tmp = 0; tmp < 10; tmp++) LATD2 = 1; LATD3 = 0; LATD3 = 0; LATD3 = 1; LATD3 = 1; LATD3 = 1; LATD3 = 1; ...
1
bcd963c3c4f4bda32291b5e5b368a30a
6aa4b353b2a49c1c8ea00a9dbfcb4c34
Gets the request URL from the JSON description object
String requestURL = "http://sample-env.samqhdps4g.us-west-2.elasticbeanstalk.com/fbsearch/fetchJSONAndroid.php?"; requestURL += "detailID=" + detailID; return requestURL; }
0
3fcb71a6d38b595610247752f9aabf42
fe118c1f1f54633041885a3920e35619
Phương thức lấy danh sách phiếu thu theo mã sinh viên
{ using (var cmd = new SqlCommand("sp_KhachHang_DSdaThuTien", GetConnection())) { cmd.CommandType = CommandType.StoredProcedure; var da = new SqlDataAdapter(cmd); var dt = new DataTable(); da.Fill(dt); return...
0
82148a1f250e468e66a980d187766dde
a1b78aedd98da59149b4aa87058a4065
Returns how long it took to complete all tasks, and the order in which they were finished.
{ int t = 0; int CMax = 0; Heap<Task> N = new Heap<Task>((x, y) => x.R > y.R); N.Insert(inputData); Heap<Task> G = new Heap<Task>((x, y) => x.Q < y.Q); List<Task> orderedTasks = new List<Task>(N.Count); while (G.Count != 0 || N....
1
39aad26588fcfdb511206265b06d8c55
4e3cc7d5079d2b094ce0d354922dc3ad
得到某一类型小说的总阅览量
class DoubanSpider: def get_total(self, typ): total_url = 'https://movie.douban.com/j/chart/top_list_count?type={}&interval_id=100%3A90'.format(typ) html = json.loads(self.get_html(url=total_url)) return html['total']
0
2085958033f7c40d09239beec2327f6a
e2325d99487828437a1bac84ce7bbfcf
judge which ash can was touched according to the given position
{ auto pos = touch->getLocation(); auto startx = getVisbleSize().width*0.5 - Block_Distence*_boardWidth*0.5; auto starty = getVisbleSize().height*0.75+Block_Distence; auto endx = getVisbleSize().width*0.5 + Block_Distence*_boardWidth*0.5; auto endy = starty- Block_Distence*_boardLength; if(pos.x...
1
c815a9fab434b0f296404f845354bb75
179814c8e529aa879b25752bed9ea0c4
Тестирование преобразования тернарного оператора выбора.
void test_and(void) { MockParser p = mock_parser( "{\n" "let a = 3\n" "let b = 4\n" "let c = a == 3 && b == 4\n" "let d = a == 3 && b == 4 && c == 5\n" "}\n" ); ins(&p, MOV_LI, 0, 3, 0); ins(&p, MOV_LI, 1, 4, 0); ins(&p, NEQ_LI, 0, 3, 0); jmp(&p, 5); ins(&p, NEQ_LI, 1, 4, 0); jmp(&p, 3); ins(&p, MO...
0
d51678c46d38fb73e7221e03281ca703
7024f641f82a4d9293232ff3d197ead4
Checks if all points X sit in a plane.
class ConvexHull3D(ConvexHull2D): def __allInOnePlane(self): n = len(self.points) for i in range(0, n - 2): for j in range(1, n - 1): for k in range(2, n): x1, y1, z1 = self.points[i].x, self.points[i].y, self.points[i].z x2, y2, z2 = self.points[j].x, self.points[j].y, self.points[j].z x3, y3...
1
20410af80ef00b0e3233f77cd25e6a7e
b9b43e30ada9ef00c7a57a210cce3486
立方数判定
if ($n <= 3) { return $n > 1; } else if ($n % 2 === 0 || $n % 3 === 0) { return false; } else { for ($i = 5; $i * $i <= $n; $i += 6) { if ($n % $i === 0 || $n % ($i + 2) === 0) { return false; } } return true; } }
0
fabecc9e5d27a682f8ff14224b821c97
3869cca525305ea9edbad69db91f4b43
加载底部菜单html
function SMS_LAYOUT_LOAD_LEFT() { var html = ''; html += '<div class="sidebar-nav">'; $.each(MENU_BASIC_OBJ, function(menuPath, menuObj) { if (menuObj.menuLevel == 'menu') { html += ' <a href="load?htmlFile=' + menuPath + '" class="nav-header" >' + menuObj.menuText + '</a>'; } else if (menuObj...
0
7e619d4f08804fe18976148ec1abc2d7
a4532aaeb290122a470b9b33fbd82406
Retorna la tolerancia para el reconocimiento de actividad.
public class TSValidacion public GenTimeAccuracy getPrecision() { return precision; }
0
252f5f505187b9cb9f33c06d718a9073
f494b44cfe9f34dee46b1fd3318bc5f5
Invalid argument
TEST(TestUtilities, remove_ros_arguments_null) { ASSERT_THROW({ rclcpp::remove_ros_arguments(0, nullptr); }, rclcpp::exceptions::RCLErrorBase); }
1
eb776e27c55868667df6c900554f0e76
d3426bcb9e1edc739fb537997fb160fd
Set the length of each record
static int __ram_set_re_len(dbp, re_len) DB *dbp; u_int32_t re_len; { BTREE *t; #ifdef HAVE_QUEUE QUEUE *q; #endif DB_ILLEGAL_AFTER_OPEN(dbp, "DB->set_re_len"); DB_ILLEGAL_METHOD(dbp, DB_OK_QUEUE | DB_OK_RECNO); t = dbp->bt_internal; t->re_len = re_len; #ifdef HAVE_QUEUE q = dbp->q_internal; q->re_len = re_le...
1
daa71ccd1e727d72aa9c8c4c10fbfec8
83c895317fe212b52e4666a9677b39df
array( row1 => array(td1, td2, ...), row2 => array(td1, td2, ...) )
class Controller extends Template function tableCells ($data, $odd_tr_options=null, $even_tr_options=null) { if (empty($data[0]) || !is_array($data[0])) $data = array($data); $count=0; foreach ($data as $line) { $count++; $cells_out = array(); foreach ($line as $cell) $cells_out[] = sprintf(TAG_TA...
1
cd3e47f7c6917e16b38ba42ebd39280f
2a9bacac141e75cef3b5e9ef86d1a7d8
Sets the institutional threshold.
const aThreshold = this.getThresholdObject(); if (aThreshold === null) { return; } this.itsUIThreshold = theEvent.value; this.itsThreshold = this.itsUIThreshold * 0.01; aThreshold.setThresh(this.itsThreshold); }
1
d56bdd8162e63aa7c2a3b0710d6fefcd
1cda05cebd15cb8975e3753afa0e690a
文章-目录:生成函数,仅前3级
let count = 0; const tableOfContentWrap = document.createElement("div"), headerHTML = `<div class="table-of-content-header"> Document directory <a href="https://github.com/Cubeiic-HanXuan" class="table-of-content-auth" target="_blank">hanxu...
1
4ec5094205c80660842d78d757879a12
2ee81c97a41ab36319816d3fdd569b4e
Create the RPC server implementation. Used as an extension point for the BackupNode.
void register_server_rpcs(margo_instance_id mid) { MARGO_REGISTER(mid, hg_tag::fs_config, void, rpc_config_out_t, rpc_srv_fs_config); MARGO_REGISTER(mid, hg_tag::create, rpc_mk_node_in_t, rpc_err_out_t, rpc_srv_mk_node); MARGO_REGISTER(mid, hg_tag::stat, rpc_path_only_in_t, rpc_stat_out_t, rpc_srv_stat); ...
1
f544fd98696dd46a74f49e1ffc3f0b15
cb26bc36cd7e76e3db0656c240bfb3b8
根据诗人进行诗词采集
Map<String,Object> browseThisUserPoem(@Param("poem_code")Integer poem_code);
0
90bcdef355f99efa53354818450b1121
21a32cd5bfade972ce5ef5738ed456b9
Test a matrix for positive semidefiniteness
def is_PSD(symMat): return np.all(np.linalg.eigvalsh(symMat) >= 0)
1
ecc7241b15837c4a5ee6bd7794626d56
20a3ca19055602bff38ed6f6dbedc881
Get the resource links from resource of specific type to a resource.
{ return $this->createLink( $this->urls->relatedResource($resourceType, $id, $relationshipKey, $queryParams), $meta, true ); }
1
4a5e06994d3aaee544ad1d42b88fd446
e7ef3ff58d9a40cc86217a44a45533f3
Update page with new page contents
function updatePageContent(pageName) { if (pageName) pageVariables.name = pageName; updateToggleableColors(pageVariables.name); loadPageContent(pageVariables.name); }
1
07656c57a05f4cd950226d8a215fd5c7
87bad3ec7fe26f95ed7a2763c5ce1f33
Crear una nueva tupla con los elementos que son mayores a 5
entero = [] for i in range(0, 50): entero.append(int(random.randrange(0, 1000))) return entero
0
df644c70446f3c683c17b696ab902516
10c8686abc8699db1d0afa6e656fd640
The parent looks at the children. If the eldest child is bigger than the parent, switch values in the tree. Do this until parent is bigger than eldest child.
{ int index = size; while ( (hasParent(index)) && (parentValue(index) > (minHeap.get(index).element)) ) { swap(index, parentIndex(index)); index = parentIndex(index); } }
0
3a1ee5dfa1324db60b8fca98b8c012b2
405f642712ee7ea09ed2a7dc8d09ec80
POST /quiz_questions POST /quiz_questions.json
@question = Question.new(params[:question]) respond_to do |format| if @question.save format.html { redirect_to @question, notice: 'Question was successfully created.' } format.json { render json: @question, status: :created, location: @question } else format.html { render act...
1
a1b34059010ecb9ccc226ae608eb1f79
0c2171000551dd8ef378dae3131f73f2
Drops table from Impala
class ImpalaClient(SQLClient): def drop_table(self, table_name, database=None, force=False): statement = DropTable( table_name, database=database, must_exist=not force ) self._execute(statement)
1
88a1cbd7fcf0526ef0310ed7ae47db7c
bcb1c45f934b692e5c7bdef5c0701846
Creates a new high-level SQS response object
class Syncano class Response def initialize(status = false, data = nil, errors = []) super() self.status = status self.data = data self.errors = errors end
0
ad3da65bad784596f521439440204ad1
68b430066c780be430549e146668b6fa
矩形の塗りつぶし描画.
colorTopLeft: Color, colorTopRight: Color, colorBottomLeft: Color, colorBottomRight: Color, mix: Boolean) { var x = x var y = y var width = width var height = height val atl = colorTopLeft.alpha val atr = colorTopRight.alpha v...
1
d7379dc28b7c2d977dfcc956314be554
8ad13dab7d3be94868004419ba0593bb
初始化单选下拉框
function initSelectValue(valueArray,selectObj,valueName,descName){ cleanSelect(selectObj,valueArray); var excludeItems = $(selectObj).attr("data-excludeItems"); var includeItems = $(selectObj).attr("data-includeItems"); if(includeItems){ var _excludeItems = []; $.each(valueArray, function(i,op){ if(in...
1
a25bacc9cda335f608c14a33706a5be1
26c940745f31cd85612827387011a283
Returns the truststore type.
public abstract String getKeyStoreType();
0
adb04265ab8d0aac0cfccec486ba18e9
f3cae7018d352359957b94f0aefcb40d
Wait until the core Service got connected to the API.
public class CtsAugmentedAutofillService extends AugmentedAutofillService public void waitUntilDisconnected() throws InterruptedException { await(mDisconnectedLatch, "not disconnected"); }
0
92a0e564906c2e1ee6642ac7c5d412cb
73c0b8922c437839eb525eaf34967c30
Получен ли access_token
public function hasAccesstoken(): bool;
1
7758a4c8705fba9aba0c14cd301ddad8
930c0663e1fce0091bd682c8c86e4030
For file system storage, all newlines are replaced with OS-appropriate
class ExportDatabase extends Command private function correctDbNewlines(string $content): string { return preg_replace('~\r\n?~', "\n", $content); }
0
6f363a81fc25289fd81bea5d5896d593
e8921c53bc3c6006adf3bc59e2d6a3a8
Makes sure the game doesn't run too fast
public class GameManager : MonoBehaviour void Awake() { SetDragThreshold(); Screen.sleepTimeout = SleepTimeout.NeverSleep; }
0
fe39ccc00005d5d243035095a685da63
144ad57f702b5ec68d4670669b042d29
Maps an object from domain space into proxy space.
namespace LCL.Services.ApplicationServices [Serializable] [DataContract] [XmlRoot] public abstract class DataTransferObject<TDomainObject> protected abstract void MapFrom(TDomainObject domainObject);
1
f882d3f19c93a4f0365280d58e1ad58b
681e2e17be2c72e54dd0d4c978847c13
Updates the horse variables in a race
_NumHorses = NumHorses; _RaceDistMetres = RaceDistMetres; _raceStarted = false; _HorseList = new HashMap<Integer, Horse>(); _raceStopped = false; _Ranking = new ArrayList<Horse>(); _SpeedRanking = new ArrayList<Horse>(); }
0
e38615a71880d5340eb86f8aca750bee
8df36e7fe203897a4f9ad33e12e25b90
Sets cache's entry loader.
public class CacheLoaderServer<K, V> extends Server public void setCacheLoader(CacheLoader<K, V> cacheLoader) { this.cacheLoader = cacheLoader; }
1
35fb4dd59af0ee8d02b7901b4a5207cb
cef4025a3acefb5c1b0a85cdd712becc
Toggle watching list item
function handleWatchlistButton() { const watching = (1 == wlContainer.dataset.watching) ? 0 : 1; fetch(wlContainer.dataset.url, { method: 'post', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: `watching=${watching}` }) .then(response => { if (watchi...
1
07be15e37adea7bc27408f8ef486182b
8d28aee23464081075ae1fcf43515cc9
Gets the "isDisplay" element
@XmlAccessorType(XmlAccessType.PROPERTY) @XmlRootElement(name = "pageFlowComponentModel") @XmlType(name = "PageFlowComponentModel", namespace = "http://model.webservice.accela.com") public class PageFlowComponentModel extends LanguageModel public String getDisplayFlag() { return displayFlag; }
0
a917bf42b0ce9c10b437b7ffadf3afde
13040093b6799a3bd1e0215bf6da643c
Sets the value of the "range" attribute of this SedRepeatedTask.
int SedRepeatedTask::unsetRangeId() { mRangeId.erase(); if (mRangeId.empty() == true) { return LIBSEDML_OPERATION_SUCCESS; } else { return LIBSEDML_OPERATION_FAILED; } }
0
6e6302cd40d32a34352833328b7d1686
f7b9467ea98c2d68293e4ba53b0b045d
@brief This command is issued by the ZNP device when it responds to a bind request from a remote device.
{ zstackmsg_zdoMgmtBindReq_t *pPtr = (zstackmsg_zdoMgmtBindReq_t *)pMsg; if ( pPtr->pReq ) { zAddrType_t dstAddr; dstAddr.addrMode = Addr16Bit; dstAddr.addr.shortAddr = pPtr->pReq->nwkAddr; pPtr->hdr.status = (zstack_ZStatusValues)ZDP_MgmtBindReq( &dstAddr, pPtr->pReq->startIndex, FALSE ...
1
d3c768af32c5e4c21effe5b64a06e860
b8a5695f749cb581360a3d4ac689f762
Get the Catalog version
class RetrieveCatalogObjectRequestBuilder public function catalogVersion(?int $value): self { $this->instance->setCatalogVersion($value); return $this; }
0
743d7a4ca9716f6fbe624c5be39bcdb5
0ed0185e415bb988ecaa720a1d027174
Custom paint for the call status panel.
Bitmap bitmap = images.getImageFactory().get(component.getStatus()); if(bitmap != null) { canvas.drawBitmap(bitmap, null, rect, new Paint()); } }
1
3a015b9998f8eef19748e735d5aeaf11
8d381389188d8be752ef8c2c53d3001e
forward transforms a column with the DWT
function idctcol(blk, idx) { let x0, x1, x2, x3, x4, x5, x6, x7, x8; if (!((x1 = blk[idx+8*4]<<8) | (x2 = blk[idx+8*6]) | (x3 = blk[idx+8*2]) | (x4 = blk[idx+8*1]) | (x5 = blk[idx+8*7]) | (x6 = blk[idx+8*5]) | (x7 = blk[idx+8*3]))) { let tmp = clampIdct((b...
0
03bb8d500439f8e173f25c4aec671f56
eeee03137ec912c364e56c7309fca7bd
Test empty insert
{ $this->repository->method('insert') ->willReturn(false); $user = $this->repository->insert([]); $this->assertInternalType('boolean', $user); $this->assertFalse($user); }
1
af32ffafa9199723d6418bdba7b7d476
713824e96143a0925a8519bba6ef8b38
@brief Definir o número da Ficha que sofreu a Ação
class FichesControlesSupprimees public function setNumeroFiche(?int $numeroFiche): FichesControlesSupprimees { $this->numeroFiche = $numeroFiche; return $this; }
1
c3ae064324655d8dad168539ca7e6318
65ec0bb7bd35c1b05a889678ec64fe8e
Получить регулярное выражение по списку параметров, входящих в паттерн таблицы
{ if (string.IsNullOrWhiteSpace(pattern)) return "Id >= 0"; pattern = pattern.Trim(); int id; var isNum = int.TryParse(pattern, out id); if (isNum) return $"(Id = {id}) Or (Login Like '*{pattern}*')"; return ...
0
4071896cc166e231f64f92c66519739e
d7c2f3dd2250bd26a6b58ea1e7881799
更新Xaml信息
{ XMenuInfo info = modelInfo as XMenuInfo; info.ID = XHelper.GetString(modelRow["RID"]); info.GroupId = XHelper.GetString(modelRow["GroupId"]); info.MenuName = XHelper.GetString(modelRow["MenuName"]); info.NameSpace = XHelper.GetString(modelRow["Assemb...
0
6c8fa365c215d4603cc42c19be8c3071
87e2e07b2904af9c86c2c75cf7e6db55
Set that this key should be compressed
class AdapterMemcache implements iAdapter public function setCompressed($value) { $this->compressed = (bool) $value; }
1
2a3d364886ee6fe9817644477fb3aaad
91b05e4076c742c6f212022b73f10392
User aborted the verification process (X click or esc keyup)
interface ScanResultListener fun userCanceled(reason: CardVerificationSheetCancelationReason)
1
7eca61da002a329c1d73ce8bada2ee2e
8615abc7c0d8cb02abd4f87a645b136f
IsYAMLEqual returns whether the expexted YAML matches the actual YAML.
func IsYAMLEqual(a, b string) bool { if strings.TrimSpace(a) == "" && strings.TrimSpace(b) == "" { return true } ajb, err := yaml.YAMLToJSON([]byte(a)) if err != nil { dbgPrint("bad YAML in isYAMLEqual:\n%s", a) return false } bjb, err := yaml.YAMLToJSON([]byte(b)) if err != nil { dbgPrint("bad YAML in i...
1
b47bcec4cb506a21e3412e1f5d9b1fcc
641618e5647f2c22281549f8d310ec37
Create a KeyBindings object that contains the default key bindings.
MultiKeyBinding[] tsbindings = new MultiKeyBinding[] { new MultiKeyBinding((KeyStroke) null, BaseKit.defaultKeyTypedAction), new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), BaseKit.insertBreakAction), new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), BaseKit.insertTa...
1
bf477cc591e24db461aa53fd1354c600
7c2c6052895d80d346c44a9577dd6b83
takes one of the three name lists as a parameter and returns a name chosen at random from that list
string nameselect[5] = { "Mikey Mike" , "Weird Schaults", "Biggy Bossman Rob" , "Scary Terry" , "The Hardest Worker" }; srand(time(NULL)); int ranselect = rand() % 5; return nameselect[ranselect]; }
0
16222ef6cd6151150e37ec985ef063aa
372d04c7d808924da61708460cf3bcf6
Get a well's size in x, y, z dimensions based on its shape.
cell_size_x, cell_size_y = self.cell_size_in_pixels() well_dim_x, well_dim_y = self.well_dimensions() return (cell_size_x * well_dim_x, cell_size_y * well_dim_y)
0
389cdd063760864ffbe994458f2247d1
a178c5377d294eee955196a90f45dd15
FCom_Core_Model_Abstract_State_Concrete constructor.
{ parent::__construct($dbConnection); $this->newState = $newState; $this->dateTime = $dateTime; $this->way = $way; }
1
233f785ec1c8846d7d2234307e6c78e3
afc97d6975f8d6d3d137a1295be942e5
Modify the `ImageSource` in-place by appending a whitening filter to the generation pipeline.
namespace UnityCNTK public static partial class Images public static Tuple<Value, Function> WhitenAndColor(Value imageStyle, Value imageContent, DeviceDescriptor device, float eps = 0.00001f, float ignoredSingularValue = 0.00001f, float beta = 0.5f, float blendFactor = 0.8f) { var stopwatch = ne...
0
1fd935b0aadce5b83f4ef83a0b126ba4
59f81ef68464a0b887f089c94973d143
Récupère les informations d'un voyage (prix, nom, étapes, etc...)
class TravelController extends Controller public function show($id) { $travel = Travel::find($id); return response()->json($travel); }
1
a9e2e45bbbd45af607676387cb82cc37
aa8eb73adea1aeb3235ebfb244135105
检查脚本当日是否已经执行
_sErrorInfo.clear(); if(script.trimmed().isEmpty()) { _sErrorInfo = "script is empty"; return false; } _vCmdList.clear(); _vCmdList.push_back("SCRIPT"); _vCmdList.push_back("EXISTS"); _vCmdList.push_back(script); _cmdResult = command(_vCmdList); if(_cmdResult[0] == '-...
1
658f7170933d75748f8429fdf2fc5eb3
9135b5595d021a832ae4d948701fd63b
Writes the namespace for the Sbgnml package
self.writeSectionHeader("Namespace", "Namespace", outputFile, pdf, False) outputFile.write("<div class=packageNamespace>") namespace = "Namespace: %s" \ % listDataToCommaSeperatorString(package.getNamespaces()) outputFile.write("<di...
1
1e7499ede5f370d1f51b7a4d519616dc
7cfc8c8bd80c34aa65b63bf9db120df6
check if making move might give a square to the opponent
FORCE_INLINE bool moveGivesNeighborCheck(const Position& pos, const Move& move) { const Color them = oppositeColor(pos.turn()); const Square ksq = pos.kingSquare(them); const Square to = move.to(); if (pos.attacksFrom<King>(ksq).isSet(to)) return true; if (move.pieceTypeTo() == Knight) return true; return fal...
1
bd293d5f35504a3ef80247ea83c3f04c
ee17289e99259f6f1e4fe244061dde89
上传歌曲封面或歌星图片文件
void uploadSongFile(UploadSongFileRequest request, UploadSongFileCallback callback);
0
b1bb78adb2bb218f111095ae652bbfdc
fc6b60eeb12316d930839b2289c6121d
Allocates a memory buffer When memory allocation is failed, run GC and retry it
BOOL allocateBuffer(VOID) { if (g.cbWholeFile && (g.cbBuf > g.cbWholeFile)) { g.cbBuf = g.cbWholeFile; } else if (g.cbPiece && (g.cbBuf > g.cbPiece)) { g.cbBuf = (g.cbBuf / g.cbPiece) * g.cbPiece; } printMsg(IROW_CURRENT, SZ_ALLOCBUF, g.cbBuf); g.pBuf = memAlloc(g.cbBuf); return (...
0
f01592e50b71aabe8267bc0ffc99f0a2
9c0d50793cc85770feb4697f1648a5ca
Получает флаг нажата ли кнопка буста
char SwitchStatus_Booster_Button2() { return (P3IN & BUTTONB_2); }
1
c448b2ed863248bd250ad12160dd6190
d900c4b3b5014e8464586bb33a5bf1ce
获得Crash文件路径
public class LogManager public String getCrashFolderPath(){ if(CRASH_LOG_PATH == null){ initPath(mContext); } File folder = new File(CRASH_LOG_PATH); if(!folder.exists()){ folder.mkdirs(); } return CRASH_LOG_PATH; }
1
ec6253d8e86e64f476f459aaadea11da
155b35e777aaf088702e3a69498531dd
Preprocess image data, and convert labels into one-hot
def preproc(image_data) : res = cv2.cvtColor(image_data, cv2.COLOR_BGR2GRAY) res = resize(res,(28,28), anti_aliasing=True) res = np.rot90(np.fliplr(res)) res = (res)*250 res = np.around(res) res = res.reshape(1, 28, 28, 1) res[res < 20] = 0 res = res/255 return res,res
0
0c05028fd6d105d121586fbabaaf74da
c86a5d99f4b3ed3621704757565c0171
先将全部地址默认取消
function default_addr(id) { $("#del_" + id + "").hide(); $("#chg_" + id + "").hide(); $('label').removeAttr('class') && $('#' + id).attr('class', 'checked'); $('input[name="check_address"][lid="' + id + '"]').attr("checked", true); ; }
0
592b4da891b15d0963a840081ac6d3b6
b4dd4549de4efff56f0d4ebbca87616e
Perform minical. This calibrates the power meters in the Front End, creating a correspondance between Power meter readings and sky temperature.
{ SY7T609_WriteReg(0x02U, 0x001815); SY7T609_WriteReg(0x02U, 0x001815); SY7T609_WriteReg(0x4FU, 500000); SY7T609_WriteReg(0x4FU, 500000); SY7T609_WriteReg(0x51U, 130273); SY7T609_WriteReg(0x51U, 130273); SY7T609_WriteReg(0x51U, 130273); SY7T609_WriteReg(0x40U, 3999366); SY7T609_WriteReg(0x40U, ...
1
56eaa4eeda828c18424f060a9dec81c1
8b4e5a15c726d4eda808b1aed7e73e8c
Creates and adds the specified mail to the database as well as registers it to the specified users. This function also takes care of updating the total amount of messages on the receiving users.
namespace Boss.BL.Interface [Transactional] void CreateMailQueue(User user);
0
347783692b789a5b0e091f794871e93a
4c605f62714bf1858292f1101b4a88b8
Get all forums that the current user does not have access to ("Restricted forums" in the profile)
{ if (isset(G::$LoggedUser['CustomForums'])) { return (array)array_keys(G::$LoggedUser['CustomForums'], 0); } else { return []; } }
0
9ac42581b601ee5bf7565cdce5dd4a0a
1737522bae35fd8d70e15580dcb509bb
根据uuid查询放款渠道
User findByUuid(String uuid);
0
db27383bfa97a476d263151303ab1c35
a957d568791f18917f1e6aaec602f33d
extract only the last price that was recorded already of a given cryptocurrency
def get_volume(data,crypto): symbol = crypto.upper() for query in data['data']: if query['symbol'] == symbol: return query['quote']['USD']['volume_24h'],query['quote']['USD']['last_updated']
0
d8c80905788b36a1b96ffa07e4214f43
3b1370ee7d9d0e4f59467901c903814e
Function used to answer to GetCapabilities requests
def capabilities(context, data_dict): res=toolkit.get_action("resource_show")(context=context, data_dict=data_dict) import urllib2 import owslib.wps response = urllib2.urlopen(res['url']) tmp=response.read() wps=owslib.wps.WebProcessingService(str(res[...
1
42286c9fc8d746aec814bc3a230140c7
d57b89030c1df895be050ca0c8e4675e
the diagonal elements of a rbf kernel are 1
inline void init() { for (int i = 1; i <= r; ++i) a[i][i] = 1; }
1
a97bf2346cb38526211321482157eb5b
36d564cd6f03f939bc5d67e54a15722b
Enabled state of ALL of the power supply outputs.
class YPwmOutput extends YFunction public function set_enabled(int $newval): int { $rest_val = strval($newval); return $this->_setAttr("enabled", $rest_val); }
0