query_id
string
corpus_id
string
query
string
code
string
label
int64
e23b2ebca15abc1a848fc9b0796b3d22
28df6cfd7d50fdbd1be7a75795490f8b
芝麻分回调
@POST("in//u/l/zhima/usercallback") Observable<ZhiMaCallbackModel> zhiMaCallBack(@Body ZhiMaCallbackRequest request);
1
dcc3350b7890d7fb26979e3d68f18184
58ff3dcf6e118b0b56542fcd8d8ec357
查询是否显示活动优惠券提示
public class RedBagMainFragment extends BaseMapFragment implements AMapLocationListener private void showCouPonView() { if (!AccountUtils.getInstance().getIsGetCoupon()) { new CouponFragment().show(getFragmentManager(), getClass().getSimpleName()); } }
1
79d9abe4c4f2b499a1090cf1fb9cd951
ad45bd75773dc4c9fd8424dbb63244b3
清空行政区划表
public class AreasUtils public static void clear(){ CacheUtils.getCacheManager().getCache(CACHE_AREAS_LIST).removeAll(); }
1
d7dcca899bd0903a453d34e06bafb5cf
f8171aee2b8e86f3777ccf329ba69d3e
Indicates whether the mode implies to delete the existing content of the file when it already exists
public function impliesExistingContentDeletion() { return 'w' === $this->base_mode; }
1
9866e3a376ba89db80bba443adbadbd7
dbcabd1b5a420051ef02cc8bdcfbc6c6
Test the numvfs config with invalid arguments
class TestCLIInjectConfig(COT_UT): def test_invalid_args(self): self.call_cot(['inject-config'], result=2) self.call_cot(['inject-config', '/foo'], result=2) self.call_cot(['inject-config', self.input_ovf, '-c'], result=2) self.call_cot(['inject-config', self.input_ovf, '-s'], result=2) ...
0
53035767b7e661bd7bb5167fa31fa0bd
b3b8d393da331e4cc0f981779a9bf806
Stop fetching when clicking on the "cancel" button
namespace KitchenAid.App.Views public sealed partial class RecipeFinderPage : Page private void CancelBtn_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { cts.Cancel(); }
1
70d86f3232e881c72d530d13035de89d
e98537435aab7592f12c2a96bbe8de69
Create an instance of {@link IRXML.SnapshotIRXML.CoGeneralInfo }
NodeGeneral_RigakuXRF createNodeGeneral_RigakuXRF();
0
3a7db04bb1b55f3dd5b8c12197e13a15
7f61448ad6da3ef0f9cb03f40c5be655
=========================================================================== ===== R E C O V E R ======================================================= ===========================================================================
cases like (1)
0
1e9fd03fc35112e75adf1a97bbcc017e
c26736092c6eb4663abffbc94d7c32bc
+-- スキップする曜日を追加する
public function skipWhenWeekend() { $this->skipWhen['weekend'] = [StaticFilter::class, 'isWeekend']; return $this; }
1
f2eb0b38913b806ac80329804160e8e6
d09e5c1a62ea689a2a329d2e79b37e19
获取多边形热点信息
{ try { string consisposno = RequestStr.Request["consisposno"]; string sexcode = RequestStr.Request["sexcode"]; string systemcode = RequestStr.Request["systemcode"]; string json = ""; DataTable table = spotCo...
1
3d660013c7b185f02f795e5ed1eed9a5
2781ac8ae8853c837961c3dbb83329a4
UpdateCheckerService constructor.
class UpdateItemStatus extends Command public function __construct() { parent::__construct(); $this->schedulerServ = new SchedulerService(); }
0
167dcedfd98478df33f90a71bad48d01
04aeac45a2a67a62a673d1b76a09c798
https://edabit.com/challenge/3Efavz8YmSBia4p8s
function bouncingBall(h, bounce, window) { if (h > 0 && bounce > 0 && bounce < 1 && window < h) { let height = h; let bounces = 1; while (window < height) { height = height * bounce; if (height <= window) break; bounces += 2; } return bounces; } return -1; }
1
768b4833307d015f4804e6fe870e5a95
ea3f442bcfd6f083ae4a45142ea6d4cd
Test the VectorData print statement using repr and str
def test_repr(): coil = FourierRZCoil() assert "FourierRZCoil" in str(coil) assert "current=1" in str(coil) coils = CoilSet.linspaced_angular(coil, n=4) assert "CoilSet" in str(coils) assert "4 submembers" in str(coils) coils.name = "MyCoils" assert "MyCoils" in str(coils)
0
b1f9cf31092a6263732eb16ae33f0693
58324fc94360a8690acd15be8ee424f4
检测当前订单是否有预约信息(待确认或已确认)
public String checkIsHasFacOrders(Integer orderoutId);
1
0fa3f8110dc4cb913145d0514d115941
1ea509c45b08f6eac9831aeffce65a9a
Parse FAT32 root dir entries. FAT32 actually has its root directory entries distributed across a cluster chain that we need to follow
unsigned int current_clus, i, limit, found; union directory_entry file; current_clus = directory_clus; limit = img_info.bytes_per_sec*img_info.sec_per_clus/32; found = 0; do { for (i = 0; i < limit; ++i) { get_directory_entry(&file, current_clus, i); if (file.raw_bytes[0] == 0x00) { set_next_entry_to_...
1
a4632c6f29b0fdfaf851b70c49315247
aa509189373583d257e04652c88c6546
Mixes all sound channels together and streams it into the Sound device
{ struct sounddef *cur = g_soundchip_head; while (cur) { #ifdef DEBUG assert(cur->stream_callback != NULL); #endif cur->stream_callback(cur->buffer_pointer, cur->bytes_left, cur->internal_id); cur->buffer_pointer = cur->buffer; cur->bytes_left = g_uSoundChipBufSize; cur = cur->next_soundchip; } g_soundm...
1
85fc7bd933ee811970945c98e6b61de9
a3db3405422bb4fceac80806bdb92564
Define o menu de morte como desligado ao inicar a cena
public class Inicio_jogo : MonoBehaviour public void Start() { pato1.gameObject.SetActive(false); pato2.gameObject.SetActive(false); pato3.gameObject.SetActive(false); Pwave_aviso.gameObject.SetActive(false); Swave_aviso.gameObject.SetActive(false); Twave_aviso.gameOb...
0
b48b5b00b032d997a9c877f6e543ea68
35d4aef09d38c77beab9ae5afb638d5c
Return the element in the array at the given index. Throw an error if the index is out of range.
class ArrayStore def find(idx) @arr[idx] end
0
20d48a6fb11003086bdcb704988a6b88
97a79fd4c2d58d667efd4fabbd22fa30
多模式教学网课程简介信息获取
html = get_page_html(course_url) pattern = re.compile('<div class="class-detail-tab" data-slidenav-content="true">(.*?)<div class="recommend-list">', re.S) introduce = re.findall(pattern, html) return introduce
1
719787fdce142ed45e05920e42b3167e
087caf029fdb4c84f4a784b3a665304d
Clear the Marlin command queue
void plmcmdq_flush(void) { while (SIMPLEQ_FIRST(&cmdfifo) != NULL) SIMPLEQ_REMOVE_HEAD(&cmdfifo, entries); }
1
03cf3704fc18d930c20f3507c38f9b9e
7595ae84bd0e84b18c9ec303ecc647ff
secret_word: string, the secret word to guess. letters_guessed: list (of letters), which letters have been guessed so far. returns: boolean, True if a user guesses the word, False otherwise.
def is_word_guessed(secret_word, letters_guessed): pass
1
dedb0085392204525b9a81adc4131eb8
08bbf4ef50d29615b2bca0227b5fb15d
If `fieldName` exist in the cli args, read it to `field` as a string.
class CliResolver(Resolver): def command_line_argument(self, name: ParamName, kwargs: KeywordArgs) -> typing.Any: return kwargs[name]
1
577269e90a483c1cc5ca0251b7875023
5e50b51767dd252bf66b125a4e28759c
Removes registration of all currently registered <code>BridgeMembershipListener<code>s.
public void unregisterAll();
1
fc9af19730e847ef6d2ed9f9dd0421ad
f251f0ea71632156b05025eda236d116
【 刷新员工二维码 】
{ $phone = Token::getCurrentTokenVar('phone'); $company_id = Token::getCurrentTokenVar('current_company_id'); $staff = CompanyStaffT::staff($phone, $company_id); if (!$staff) { throw new AuthException(['msg' => '用户信息不存在']); } if (empty($staff->qrcode)) {...
1
dcd7a110c4efeeb45756679740971d50
9c51225db14511975fc1892a973272bd
获取取餐点.
public class LifeStyleAnalysisUtil extends LifeStyleAnalysis public LifeStyleItem getDinnerTime(String recordId) { String itemString = getEatingTime(lifeStyleConstant.O10305); return createLifeStyleItem(recordId, lifeStyleConstant.dinner, itemString); }
0
4eca926dd42a4a0feca77da9d9f2aa8f
f97bf847f7d8c995098696b8095bd93c
Remover todas as alocações do contrato
{ var bookingClient = this.CreateBookingManager(); try { bookingClient.Clear(Contract, Signature); } catch (Exception exception) { try { bookingClient.Abort(); ...
1
8db3a599627f2936b50d68881b0b7cb7
73a2a5727d960a10979b575e9c7775e7
获取未成交订单
require_once(DOC_PATH_ROOT."/Lib/Pages/pages.func.php"); $currentPage = isset($_GET['currentPage']) ? $_GET['currentPage'] : 1; $singlePageRecordCount = 2.0; $sql = "select count(*) count from orderDetail where orderCategory=0 and orderOwnerID=".$_SESSION['id']; $totalRecordCount = Pag...
1
b3175d6b3358c7779ba078d52a07ce91
a13d19980b48dc4b0b19136aff7be8e1
@brief Seconds to system ticks.
uint64_t pal_plat_osKernelSysTickMicroSec(uint64_t microseconds) { return microseconds * TICKS_PER_MICRO; }
0
5747f7a6c37e5f0cd65001228445f79c
d14c80706554b5c82faa152d7d15b801
Crea un array con los nombres de los routers que existen
class Test(object): def router_names(self): return [n for n in self.topology_params_nodes() if re.match(r'^r\d+', n)]
1
a133766924ce901054e41665e07db943
1c0b05b773bd6adaf32f8ab6d5d0e228
Convenience method: Get the best match for a LanguagePriorityList
if((Request.UserLanguages == null) || (langlist == null)) return null; string qlang = null; string q = "q=0"; foreach(string lang in Request.UserLanguages){ string[] lq = lang.Split(";".ToCharArray(),2); string lcode = lq[0].Trim(); string ...
1
9defb8f5afda9eb0873288346d871b51
3d12c730d06698d7d285ff958139427e
根据 核算单id,获取 负核算单id
namespace XBase.Business.Office.FinanceManager public class BillingBus public static decimal GetBillingYAccounts(string ID) { return BillingDBHelper.GetBillingYAccounts(ID); }
0
866b73bc93cd6ef6faaec4aff0b4395c
bb41444c97b481935ef03c1b83afb6d3
设置 Redirect URL 到 Session 中
class AuthenticationSuccessHandler extends DefaultAuthenticationSuccessHandler public function onAuthenticationSuccess(Request $request, TokenInterface $token) { $session = $request->getSession(); if ($session && $session->has(self::SESSION_KEY)) { $redirectUrl = $session->get(self::SESS...
0
f4c97b931a3debdc06e71d71bb75efe5
836b3c1f73a89e8b1f63d470a5ba96a4
Simple tie-in for testing whether "blessed" attributes are set.
def be_truthy BuiltIn::BeTruthy.new end
0
80aec94cf112325d1f05c92111edf87e
583e7283880d5ca41bcdbd07e5e2981f
Start a header row.
public class HTMLFormatter extends Formatter public Formatter beginHeader() { builder.append("<tr>"); return this; }
1
1f385859ba1339fc72f0d606ce912743
ab2f584a7923eab3307506e898cb53f1
Check if using webhook or not
class Config public function isWebhookEnabled() { return $this->getValue('webhook_status'); }
1
2e882b653af74fb00599651574937743
0ddf0a3f123a17f4edc994e2bdcbd9fb
Join all the sides together into one single string.
parts = [self.guard_bar] + left parts.append(self.center_bar) parts += list(right) + [self.guard_bar] return ''.join(parts)
1
7cf1056a5998901242e51f25c742b217
ea213b51e6d0df14f45dfc54d7482d5f
Check if a given interval overlaps this interval
namespace Org.Apache.Hadoop.Yarn.Server.Resourcemanager.Reservation public class ReservationInterval : Comparable<Org.Apache.Hadoop.Yarn.Server.Resourcemanager.Reservation.ReservationInterval > public virtual bool IsOverlap(long tick) { return (startTime <= tick && tick <= endTime); }
0
ffcbba573941404eae3c3db1f125c592
100eccf52378382a7409a4eca568a28e
Run each test, then print results
int main(void) { runAllTests(); printf("End of Program.\n"); return 0; }
0
b4cf2374e3ec4fe4630e5d2ddb63f94c
4340eacb1ebb27fdec32a59597122183
This endpoint displays the text of various email templates sent by the system. It is used for testing / debugging and only available in the DEV environment.
namespace io.fusionauth public class FusionAuthClient public ClientResponse<PreviewResponse> RetrieveEmailTemplatePreview(PreviewRequest request) { return RetrieveEmailTemplatePreviewAsync(request).GetAwaiter().GetResult(); }
1
b0f1cdbecf8c2c8b79723130b9e3e5ee
85b57174c6e8a4f077292161f75a8fda
初始化常用语布局
public class AsrDemoJudge2 extends Activity implements OnClickListener{ private void initLayout() { findViewById(R.id.isr_recognize).setOnClickListener(AsrDemoJudge2.this); findViewById(R.id.isr_grammar).setOnClickListener(AsrDemoJudge2.this); findViewById(R.id.isr_lexcion).setOnClickListener(AsrDemoJudge2.this);...
1
028d9a3880caa35486cf1c6945016295
76d49f3cb5c07e2456b5453d85a4c703
Returns true if this ClassFile represents an inner class.
@SuppressWarnings({ "rawtypes", "unchecked" }) public class ClazzHelper public static boolean isInnerClass(String className) { return className.contains("$"); }
1
6d615a73e84eabaafbd2639f619078a8
87ebcc040382c8bb31ddef8f759bdc05
Addition of an arbitray number of functions **Parameters** *funcs: list/tuple functions to combine **Returns** funcsum: function functional sum
def combined_func(*args, **kwargs): for f in funcs: f(*args, **kwargs) return combined_func
1
fd2a0f0f42849f22ed58ab86e4b43c38
f35b1eaa8b48eb0514d8d3be5e86a92a
GET /account_configurations GET /account_configurations.json
const options = { method: "GET", url: "/v3/{project_id}/configurations", contentType: "application/json", queryParams: {}, pathParams: {}, headers: {} }; const localVarHeaderParameter = {}...
0
65e32612a04c041a345dd1f05f3107a3
41d12475d137c06f2f27c441375dda13
Add columns that compute several statistics considering two columns jointly, e.g., their correlation.
x: Callable[[AbstractRow], R1 | None], y: Callable[[AbstractRow], R2 | None] ) -> AggregateSpecification: return AggregateSpecification(SampleCovariance, x, y)
1
7a2b25aa1ed5bf84d1ccd299963fade8
61832a8565396ebf418a6357f5b9a24f
根据时间周期,获取不同周期Stock数据库的名称。 由于该功能使用频率高,故单独写成函数。
if stockCodePrefix == "000": return self.__buildKLineWeek000( dataFormat ) elif stockCodePrefix == "001": return self.__buildKLineWeek001( dataFormat ) elif stockCodePrefix == "002": return self.__buildKLineWeek002( dataFormat ) elif stockCodePrefix ==...
0
43f27a0a109652b81b8d3f2793a4e43a
40523d70cdc7d5ce591e299fc70ee249
Register Back-End script
class EventON public function load_ajde_backender(){ wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); wp_enqueue_script('backender_colorpicker'); wp_enqueue_script('ajde_backender_script'); include_once(AJDE_EVCAL_PATH.'/includes/admin/ajde_backender.php'); }
1
16a13013d2bceaecf7b02f3f58ed927a
4315fb3b433b85666374477a3a1d60de
Shrinks the Harp image, so that the longest line fits up to max_instruments_per_line instruments
if self.png_harp_size == None or self.png_harp_spacings == None: Nmax = max(1, min(self.maxIconsPerLine, self.get_max_instruments_per_line())) new_harp_width = min(self.png_harp_size0[0], (self.png_size[0] - self.png_margins[0]) / (Nmax * (1.0 + self.harp...
1
0f35d014bac4c14e2c41236813a66f66
6dae3a111fcf002014c46f9faacbf43a
Executes the specified entry state step info.
namespace PChecker.Actors.Logging void OnExecuteAction(ActorId id, string handlingStateName, string currentStateName, string actionName);
0
6a7bb688d93fbf0cbff621b99213e9e0
c9b473e364d81018f64d92a81086527c
上传自选股
var NewCode = Code.toString(10); var StockCode = NewCode.replace('99', ""); var platform = 'wx_iphone'; var type = '0'; var channelid = '800019'; var clienttype = '9'; var devid = '800009'; var UserStockRedisURL = "/Rest2/api/INKBUserStock/deleteUserStockRedis?"; var PreUserStockRedi...
1
cadab4aea8024c73381e37d4370a8d78
16622b6cca283d6356181fb7eef7bb00
将词语拼接成句子
if (!words) return sentence; if (!sentence) return ""; sentence = sentence.replace(/[^0-9A-Za-z\s]+/g, ''); sentence = sentence.toLowerCase(); var collect = words.split(','); while (collect.length) { var _pop = trim(collect.pop()); _pop = _pop.replace(/[^0-9A-Za-z\s]+/g, ''); ...
0
708c8e07b541b91f013e72c60e215351
ae9303aaca496b422524bedf1e92c329
Returns if a `method` is neither a static nor a class method.
def is_static_method(obj): if isinstance(obj, (FunctionType, classmethod)): return True elif isinstance(obj, BuiltinMethodType): return obj.__self__ is not None elif isinstance(obj, MethodType): return obj.im_self is not None return False
1
3039d2ddf7f3a006e4223a72f21389bb
e104f68475c3735ed137ade06efc8fb1
SEのミュートアイコンを切り替えます
{ AudioManagerScript.Instance.SetMuteState(1, b); seMuteImg.sprite = muteStateSprite[b ? 1 : 0]; ; dataManager.SetDataValue("SE_MUTE", ( b ? 1 : 0 )); }
1
1560615d451f8c268ae8d517926b1ad4
00d24fcb3c9e361be946fad39638e736
Busca funcionários que já fizeram alguma liberação
Page<Lancamento> buscarPorFuncionarioId(Long funcionarioId, PageRequest pageRequest);
0
373bde677fbe57895d5ca95bdbf65be8
e6050686151f501d3460d26a50ed3986
Get hittest distance relative to line start from specified character hit
namespace Avalonia.Media.TextFormatting internal class TextLineImpl : TextLine private double DistanceFromCodepointIndex(int codepointIndex) { var currentDistance = 0.0; foreach (var textRun in _textRuns) { if (codepointIndex > textRun.Text.End) ...
1
cd3ad146f145591e7adc2524229e6491
d09857b063232f6b5efbcec1c701f350
Returns a new object of class '<em>Checking Account</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
@SuppressWarnings("all") public abstract class BankComponent protected abstract AccountComponent make_anne();
0
ce25f4de78f4d28b5aca527e0b9fa589
478d19ed090eb03c88f08651678d06c9
Checks if the plot world is loaded to memory
bool netherdream::IsLoaded() { return sIsLoaded; }
1
35e42e60cf53c13ad272b80d1033a310
dac9a662a6391a165fcc804df87ab43f
取消收藏求职者
@ResponseBody public String Deletecollect(String id,HttpServletRequest request) { TbStudent student = (TbStudent) request.getSession().getAttribute("user"); TbCollect tbCollect = new TbCollect(); tbCollect.setCjobid(id); tbCollect.setStudentid(student.getStudentid()); List<TbCollect> findList = tbcollectser...
1
e55904a2418822f49693ff8036f8fc0f
d96ca36d0d856e20083e257319436ed2
Returns the authorisation token to the client.
public function authorize(): AccessTokenInterface;
1
101d2442193ceda6aabc069684b15a38
ad04185dadca76bf1784f8ecfe428e35
テスト用のスライス作成
results := make([]string, num) for i := 0; i < num; i++ { results[i] = str } return results }
1
a6520813b4da8a4e977b3c0989b36ec9
c5f5465ef549683411db6d362e931b3a
Convert the result of the template.
namespace HotDocs.Sdk.Server public class Util internal static AssembleDocumentResult ConvertAssemblyResult(Template template, AssemblyResult asmResult, DocumentType docType) { AssembleDocumentResult result = null; MemoryStream document = null; StreamReader ansRdr = null; List<NamedStream> supportingFile...
1
63de197a57de0002c566f0bf6a0c9164
a5035446bee4b6a90c0b62fb307c3179
Action function for state "not_ok" in state set "tk1ueberw"
static void D_Ueberw_top(SS_ID ssId, struct UserVar *pVar) { # line 246 "/scratch/workspace/kstr12/source/kueberw.st" }
0
6113fde63be1f4e8c5f590cee3b1b514
be4e4cbb71e887cdb3aa30b015104690
#' Set age-specific clinical fraction in population
dat <- set_epi(dat,"s.num", at, length(which(dat$attr$Status==0))) dat <- set_epi(dat,"i.num", at, length(which(dat$attr$Status==1))) dat <- set_epi(dat,"num", at, length(which(dat$attr$Status>=0))) inf_index <- dat$attr$Status == 1 alive_index <- dat$attr$Status >= 0 dat$epi$prevalence[at]<-l...
1
1c64d75e03766e08a56ca0c0181bd321
9aae6a5090f77118287567627b3d17a3
Gets the target file path for a source file path.
{ if (sourceFile.StartsWith(projectRoot)) { return sourceFile.Substring(projectRoot.Length + 1); } const string sourceOnlyPackageLocation = "contentFiles\\cs\\any\\App_Packages\\"; if (sourceFile.Contains(sourceOnlyPackageLocation)) ...
1
8c5af6f1659a7a2dcbdeb8e0bb208483
978b7fcbab95f70a31c3432988a212be
app管理端,获取需要审核的司机列表
@Service public class MagExamServer public List<DriverMsg> getNewDriverList(){ return magExamMapper.getNewDriverList(); }
1
b22ab9caeb91381b6cfb778914e90a97
23cddfefbc9dd11ac110d38ae3ed62fa
Stops cloaking.
void endMasquerade();
1
2ec02ca9c828302bf8a24965d454da7e
1570e9e014af9e991ec4dc4bc9f71fc2
Removes the last element of the list Time O(n)
class List: def pop(self): temp = None if self.size > 0: if self.size == 1: temp = self.head.data self.head = None else: for i in self: if i.next.next is None: temp = i.next.data ...
1
5853465abe715bf21277f7ecf97599dc
3fe0676970b5ab97a6f550b98040897b
Guarda los datos de un furgon para la recepcion de un proveedor
namespace BussinessLayer public class MantenimientoBL public void agregarProveedorCartucho(ref ProveedorCartucho g) { try { _proveedores.agregarProveedorCartucho(ref g); } catch (Exception ex) { throw ex; ...
0
1990debf873e3dade4b252d6478a3bb0
a3573cba00d0483d25b5a56796962a18
\ Detaches the light with the specified ID from the object (if it exists). \
namespace DigitalRuby.WeatherMaker public class WeatherMakerLightManagerScript : MonoBehaviour public bool RemoveLight(Light l) { if (!AutoFindLights) { return lights.Remove(l); } return false; }
0
9f6a5ed6308258387aaad4a444b3083d
010c54e8ac9c9261fde375de559699c1
Calls GetFileInformationByHandleEx on the given file handle to retrieve its attributes. This requires 'READ ATTRIBUTES' access on the handle.
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode), SuppressUnmanagedCodeSecurity] [return: MarshalAs(UnmanagedType.Bool)] internal static extern bool GetFileInformationByHandle(SafeFileHandle hFile, [MarshalAs(UnmanagedType.Struct)] out BY_HANDLE_FILE_INFORMATION lpByHandleFil...
0
88981f0bd5c747e17b0bba4eb9c53e57
9a48cc429c823920ee21020aefd3cc50
保存权限组,并同时保存权限组的菜单权限
class UserGroupService extends Service public function saveGroupAuth($groupNo, $menuNos) { ManageMenuLinkData::getSingleton()->saveGroupMenuNos($groupNo, $menuNos); return $this->returnSuccess('操作成功'); }
1
bb6bc2d8f719412dea87c896f1d0f4a0
5cd6bdafe22f247cd855f09ce6909cdb
Detects whether line contains a fragment of this type.
class Node def fragment? type == DOCUMENT_FRAG_NODE end
0
b660e56a68da708130e675e87e60c815
f02a8dec555fee7401e48e9066c509f6
A helper function to obtain the encoded output
class BERTEncoder: def get_sequence_output(self): return self.sequence_output
1
f388cda6f24bea7d207ed0f5f006817e
463342a95e5a976feeaf9ff7e2004e78
Allows to place a simple ) to a query.
class Query public function gc (){ $this->add_where(')'); return $this; }
1
15af9cd91f19374e13df653c6aa01b82
57185edf0a745ff23facdf9183ac901c
Loads the skill groups from the database
namespace DC305RoomManagement public partial class GroupManager : Form private void LoadGroups() { dgvGroups.DataSource = repository.GetGroups(); }
1
addac2fc23d83bd7b2cdb953e9bfb9e9
f856b3707d71a5cdce794526cf022a99
Setting up Multiple Database API for Data Mappers.
{ $connect = new Connect(); $connect->setDefaultConnection(config('database.default', 'mysql')); foreach (config('database.connections') as $driver => $config) { $connect->addConnection($config, $driver); } $this->container['connect'] = function () use ($connect) ...
1
562d19483e2beea887f675c0adc89219
da0659a6ab2fdb855e1cb20f3ebaf4a1
Method that initializes the frame and sets it size
public class DialogViewWikipedia1Op private void initializeFrameView(String strTitul) { frameView.setMinimumSize(new Dimension(590, 160)); frameView.setPreferredSize(frameView.getMinimumSize()); frameView.setLocationRelativeTo(null); frameView.setDefaultCloseOperation(JDialog.DO_NOTHING_...
1
21a226c2f0de111c33f9d4ff35473251
4a3c2449cc9ecdaa831634d4605dbf99
Get id of current logged in doctor
let detail = sessionStorage.getItem('loginDetail'); let login = JSON.parse(detail); let param = login.parameters; let loginId if(param.doctorid == null){ loginId = param.id; }else{ loginId = param.doctorid; } return loginId; }
1
7910bafe915c4a40d6215c7a490bbacf
0354060deb791883ac95bc1deeca1117
Replace get-offset, add, set-offset sequences with inc-offset
static void branch_fixup(ir_unit_t *iu) { ir_function_t *f = iu->iu_current_function; int x = VECTOR_LEN(&iu->iu_branch_fixups); int p; for(int i = 0; i < x; i++) { int off = VECTOR_ITEM(&iu->iu_branch_fixups, i); uint16_t *I = f->if_vm_text + off; switch(I[0]) { case VM_B: I[1] = bb_to_of...
0
ecf031f7c8727a435355a6b122072929
e41627175698c16dcad6a91a1c41a9ee
Finds the peak frequency and amplitude in a given range. Returns (f, amp)
y0 = np.median(self.ypts) if np.abs(np.max(self.ypts) - y0) <= np.abs(np.min(self.ypts) - y0): idx = np.argmin(self.ypts) direc = -1 else: idx = np.argmax(self.ypts) direc = 1 f0 = self.xpts[idx] half = direc*np.abs(y0 + self.ypts[i...
0
94079531c43f4f510bdd8f4a940cab4c
b49d30425fd27956c120c3a1ecc06713
Gets the minimum retention time for all signals where minimum retention is defined.
public class DataFileMetaData public Duration getMinimumAtisRetrievalInterval() { return minimumAtisRetrievalInterval; }
0
4b00b59a408ef3329dbb3b4d9a57b02a
88160d734f86d4639fa86ecf927a4ed1
Modified by chenzhifen at 2016-01-20 09:44:08 超级管理员 则加载所有的组
class Admin extends Controller{ public function getAllGroupInfo(){ if($this -> checkSession()){ $adminModel = $this -> loadModel('Admin'); $groupInfoArr = $adminModel -> getInfo('groups'); $adminModel -> close(); if(is_array($groupInfoArr)){ $this -> display('allGroupInfo',$groupInfoArr,$this ->...
1
0bd54ec092bfab090eca5fcca6d9ac5b
9099d315162c65c67887a0969bfec06f
Логирует полученный от Мобикома ответ на запрос состояния платежа
class EmarketMacros private function handlePaymentRequest() : void { $error = getRequest('err_msg'); if ($error) { $error = $error[0]; $error = iconv('windows-1251', 'utf-8', urldecode($error)); cmsController::getInstance()->errorUrl = '/emarket/ordersList/'; $this->module->errorNewMessage($error)...
1
4a390320ab1b3c0c5331fcb6ec3ae5b4
32e730b6eaca9f42111c622853b65bda
Katz Centrality
try: nodelist = beta.keys() b = np.array(list(beta.values(), dtype = float)) except AttributeError: nodelist = list(G) b = np.ones((len(nodelist), 1)) * float(beta) A = nx.adj_matrix(G, nodelist=nodelist, weight= None).todense().T n = A.shape[0] centrality = np.linalg...
1
5e510eef0eae1b8d884221fe3fe23126
f9f8c07e058c8b5c39d98d60967c6dac
跳到文章列表
@Controller @RequestMapping("/article") public class ArticlesController @RequestMapping(value="/jumpMdList") public String jumpMdList(){ return "article/mdList"; }
1
231e37f386ff259f52524315be28cddc
87289b0924d11a4a80895f131ffc823c
从输入流进行读取并上传到COS
public class QiNiuUtils public static void uploadByInputStream(InputStream inputStream, String fileName) { try { uploadManager.put(inputStream, fileName, upToken, null, null); System.out.println("上传成功"); } catch (QiniuException ex) { System.err.println("上传失败"); ...
0
1ef4d4f7aac4383cc14cd5d9474e1d8d
8f405f14924b2299fefa12c0e0965ceb
计算 司机-折扣后保费
{ $result = array(); $level = $insurance_param->level; $round_year = $insurance_param->insurance_year - $insurance_param->first_year; $last_month = $insurance_param->insurance_month - $insurance_param->first_month; $round_month = $round_year * 12 + $last_month - 1; $...
1
35f02821d373c784b1570dd8bd9c9c6e
89bafc499fcd80f7f751f90ae42cc2da
获取单笔交易最低最高限额
class SwapApi extends Utils public function getLimit($instrument_id) { return $this->request(self::SWAP_LIMIT.$instrument_id.'/price_limit', [], 'GET'); }
1
6147d321f1c05a6c7127ce777f6140a0
32a71239fecd0df2676dfa630596da11
Returns the distance between the robot and a given point
{ double dx, dy, dz; dx = pose_(0,0) - z->pose.pose.position.x; dy = pose_(1,0) - z->pose.pose.position.y; dz = pose_(2,0) - z->pose.pose.position.z; return sqrt(dx*dx + dy*dy + dz*dz); }
1
3099fb99825a0f5bec806d750046f9fb
6c6059128764986036bd458ba1ef64f0
返回每个表的最大索引数目
if (JdbcDebugCfg.entryActive) debug[methodId_getMaxIndexLength].methodEntry(); try { return 4050; } finally { if (JdbcDebugCfg.entryActive) debug[methodId_getMaxIndexLength].methodExit(); } }
0
f327c2a2f99d043f4f44565c627966ba
2475c56e1db7cebb6d164e09874aa86a
Creates a new validator for DDL commands.
public function getValidatorForCommand($commandName);
0
e5120dfa8a1d2988681db1bb3ac299c9
523919708f94453eeb7de22a2031e93a
Initialize annyang.
public class AECManager public void openANS(int sampleRate, int channels, float level) { nativeOpenANS(sampleRate, channels, level); }
0
346822075284c96768b8e818e64f48d3
24e47fb6903e692f88625652ec1ca498
根据学院取年级
class myschool(thirdsvr2): def _class_2_grade(self, classid): schooldata = self.col_departments(1) if not schooldata: return if isinstance(classid, dict): clsid = classid['departid'] gid = clsid['parentid'] grade = dict_search2(schooldata, 'departi...
1
2f77e57594ec74309408fcdec8b1795f
b11f7cf3f48221d9a5d353fab1da0b85
Returns the meta object for class '{@link com.vectorsf.jvoice.model.base.EventHandler <em>Event Handler</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getEventHandler();
1
0a5fc5b28715ea36df5c61c0507a8591
7548e6c7ce2284a9a674e20a01827280
accept new clients to connect to server, will block
while True: client, client_address = SERVER.accept() print("%s:%s has connected." % client_address) client.send(bytes("Greetings from the server! Now type your name and press enter!", "utf8")) addresses[client] = client_address Thread(target=handle_client, args=(client...
1
562bb7df17f5d8f167641bbce3d94017
e5511b39d13df8e74d8a96cd43719bdf
As soon as an object leaves the boundary it is removed from the scene.
public class DestroyByBoundary : MonoBehaviour void OnTriggerExit(Collider other) { Destroy(other.gameObject); }
1
c292bebfbc26cc602e79893ae8113611
9d966041f98394e63258a2c4987d36e2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Точка~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
namespace М.О._2 class Program static double Derivative_x(double x,double y) { return 2*(-39*x*x*y+14*x*x-6*x*y+10*x+13*y*y*y-14*y*y-y+5)*(-78*x*y+28*x-6*y+10)+2*(13*x*x*x+3*x*x-39*x*y*y+28*x*y+x-3*y*y-10*y+17)*(26*x*x+6*x-39*y*y+28*y+1); }
0
0ff5699d6787de608015bd09afbebc20
7ba45926091b323ed99acdbefe05096f
Human-readable string embodying the operation performed by this unary validator - typically the single-character mathematical sign symbolizing this operation.
class ConstraintType(ProtobufSerializable, ABC): def _operator(self) -> str: pass
1
13f698113ab235216741c772f105141e
1fda9ec022739124b6fabe74f09ae189
Función que realiza la vinculación desde un Drag&Drop
function drop(e) { var elementoArrastrado = e.dataTransfer.getData("Data"); e.target.appendChild(document.getElementById(elementoArrastrado)); e.target.style.border = ""; }
1
2f23619d23012ac1365b804ef01d6f6b
c69de700e888318e638ba036c4bfc022
From https://github.com/adafruit/DHT-sensor-library/blob/master/DHT.cpp
uint32_t count = 0; uint8_t portState = level ? _BV(dht_pin) : 0; while ((PIND & _BV(dht_pin)) == portState) { if (count++ >= _maxcycles) { return 0; } } return count; }
1
329f5b0755621abfd247b738eaa5d6f3
afafc30dc57aa998cc3ea4ea30fe1886
fill video array with 0s
{ for (int i = 0; i <= 8000; i += 2) { video_memory[i] = ' '; } }
0