query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
39441c6f85788a345d316b61621d8800 | 42ccf535b1d22461cadc4764bb7231a4 | Query supervisord for the status of program ``prog_name`` and return it.
Return ``None`` if the program is not found or something unexpected
occurs. | def get_program(program_id: str):
module_path = resolve_program_module_path(program_id)
if not module_path:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Program not found")
return _to_program_response(program_id) | 0 |
d7aab27d715b1d97a64fa03d845e5791 | e074e910efbb1bc5fd1d5337284840ca | Transport name to send failed messages to (after all retries have failed). | class Message(object):
def transport_error_text(self):
raise NotImplementedError() | 0 |
69099ec0205968ca1edf51de555c98c4 | 2e9505c8bd9c686f54daabbadfd64b3e | 接收到controller的cmd,执行cmd并向controller返回结果 | outs = cPickle.dumps(cmd)
cls.writeToSocket( cls.serv_socket, struct.pack('<I', len(outs)) )
cls.writeToSocket( cls.serv_socket, outs )
backlen = struct.unpack('<I', cls.readLenFromSocket(cls.serv_socket,
cls.cmdlen))[0]
... | 1 |
23881964071d59a999046d1480be0155 | a8bdfa491c6db7e4fa84680cafb7ffc7 | Insert all Sub-station elements | $(subStations).each(function () {
var subStation = this;
var positionX = subStation.x || 0,
positionY = subStation.y || 0;
var point = new esri.geometry.Point(positionX, positionY, new esri.SpatialReference({
wkid: 4490
}));
var symbol = new esri.symbol.PictureMarkerSymbol(location.serviceName + "/i... | 1 |
c8e5b364d97cfeb8bd37ab19a9818d6c | ebc09902680da2aa6aed813516c92fc3 | # Возвращает массив модификаторов | {
$smarty = isset($obj->smarty) ? $obj->smarty : $obj;
return $smarty->default_modifiers;
} | 1 |
f3d569e4a64e1b9194de2b020e7b1efe | 9c5f7acfa036e4307c273707baad72e9 | This routine puts PET message to MessageQueue, which will be sent later. | {
struct timespec abstime = {0};
clock_gettime(CLOCK_REALTIME, &abstime);
if(g_PBQueue)
{
if(mq_timedsend(g_PBQueue, (char *) queueElement, sizeof(msgQueue_t), 0, &abstime) == 0)
{
return(0);
}
}
return(-1);
} | 1 |
418cb4966778bf759845800b06cae8c1 | 413c8ba70e243392e97fc5686ad83445 | Finalize and freeze configuration | public class ConfigFrozen
public void freezeConfig() {
this.frozen = true;
} | 1 |
8c5535f3b7a6f03b61dd597d1ae450e7 | 79d064b34e5e8a8d3531d1628b19446b | update the number of free bag slots available and set the display for it | public class BagUI : UIBase
private void UpdateBagDisplay()
{
for (int i = 0; i < slots.Length; i++) {
for (int j = 0; j < slots[i].Length; j++) {
slots[i][j].btn.interactable = false;
slots[i][j].img.sprite = null;
slots[i][j].text.text = "";
... | 0 |
03a33e9e2124fe75615628d54fddf11c | 1fecb2cfd6d97b359602e29d8b8d2241 | Add argument for client secret | class AddClientCommand
public function clientSecret()
{
return $this->client_secret;
} | 0 |
3c770f3a68741b3492708c3cf5c1d2b8 | 623562d339735d414a93c11c956f2822 | 通知订单中心,"退货入库单审核通过"事件发生了 | Boolean informReturnGoodsInputOrderApprovedEvent(Long orderId); | 1 |
67b940fd16f99798402e3e8b747cc218 | 401ef3db3d137de709c7a33d1bf4e8b9 | Adds a cannon to the database. | boolean result = false;
if (DAvailableCannons != 0) {
int XTile;
int YTile;
boolean XDir;
boolean YDir;
XDir = (DAvailableCannons & 0x1) != 0;
YDir = (DAvailableCannons & 0x2) != 0;
XTile = (int) DCursorPosition.x / 12;
YTile = (int) DCursorPosition.y / 12;
result = CAIScriptFunctions.get... | 1 |
cbd0fe7e7913b432a4bc19c350667e84 | 554ecbdc4f71304b8c310400316e2080 | 根据手机号和任务业务类型查任务记录 | public RecordInfo selectTaskRecord(Map<String, String> map); | 1 |
82e89c158f733fbc22cab14accc7b11d | 7a8b83de4bbd94b441c4ffbe064587a3 | \fn
\brief Функция инициализации Q-таблицы | {
if (n <= 1)
return;
int m = 2 * n - 1;
HT = new HTNode[m + 1];
for (int i = 1; i <= m; ++i)
{
HT[i].parent = 0;
HT[i].lchild = 0;
HT[i].rchild = 0;
HT[i].weight = 0;
}
int j = 1;
for (int i = 0; i <= 25; i++)
{
if (Q[i] != 0)
{
HT[j].weight = Q[i];
HT[j].echar = (char)(i + 65);
j+=1... | 0 |
d3be30ef7413e4f0c7ac6ccfe40c5dd0 | ba0d9997b9c96e6dbcbc7c94097a81fc | Sets panelists_invitation_email_notification | class WebinarSettings implements ModelInterface, ArrayAccess, \JsonSerializable
public function setPanelistAuthentication($panelist_authentication)
{
$this->container['panelist_authentication'] = $panelist_authentication;
return $this;
} | 0 |
1fc46e3170d55f115cdb515186e73e87 | 110e76d5ede7f79591d75a05229c4a8b | Set whether the parse is name space aware | public class EncodingOptions implements Cloneable
public boolean isNamespaceAware() {
return namespaceAware;
} | 0 |
541b617a33732dd319d3ca8c783506d8 | 891dae2616624c21a4d8fa823426c243 | val func desc
0x1 Check Prologue and Epilogue
0x2 Check heap boundaries
0x4 Check each block's address alignment
0x8 Check each block’s header and footer
0x10(16) Check coalescing: no two consecutive free blocks in the heap.
0x20(32) Check next/previous pointers are consist... | if strings.Contains(name, "Android_Framework") || strings.Contains(name, "G3_Framework") {
return 1
}
if !(strings.HasPrefix(name, "Build-") || strings.HasPrefix(name, "Upload-")) {
for _, extraConfig := range []string{"ASAN", "MSAN", "TSAN", "UBSAN", "Valgrind"} {
if strings.Contains(name, extraConfig) {
... | 0 |
db261a70c001ad2cc06a7c3011535794 | aa487d6216624f4a025b98b2f20c2b95 | Test case for remoteRemoteIdStatusGet
. | class DefaultApiTest extends \PHPUnit_Framework_TestCase
public function testRemoteRemoteIdStopCwPnPatch()
{
} | 0 |
0a235deab3a6e32acb9644819d5ccaa3 | f32cbb8781ea039ff3614a89f8cc6c35 | 路由跳转 replace模式 | replaceTo (to) {
this.$router.replace(to)
} | 1 |
a2728717e888289ef4d5abf888a46aa7 | 2103554dd6ea573bd49b8d8976afe032 | Set 老师ID。通过[注册用户]接口获取的UserId。指定后该用户在房间内拥有老师权限。 | public class TRTCJoinRoomInput extends AbstractModel{
public void setUserId(String UserId) {
this.UserId = UserId;
} | 1 |
ab1c564db4381e2bbd58b71276f65dc9 | 196ec5230e2e5311d0d12899b60be254 | Setter for the pricing notice | class Meal:
def setPricingNotice(self, pricingNotice: str):
self._lock.acquire_write()
try:
self._pricingNotice = pricingNotice
finally:
self._lock.release() | 1 |
9da3b68c1def3b50b487ff730f16f901 | 483269bd1a6a4cb680e59ece2e104ca4 | 객실 미리보기 사진 자동 전환 함수 | var rntPicObj = {},
picsList = JSON.parse($scope.roomTypeInfo['pics'] ? $scope.roomTypeInfo['pics'] : "[]");
for(var i=0;i<picsList.length;i++){
var img = picsList[i];
switch(img.name){
case 'def':
formart(img,$scope.defImg);
break;
case 'bed':
formart(img,$scope.bedImg);
break;... | 0 |
bef465ff06c7f3c2b9e1658a14d1c105 | 0d67c69a90cc0769fb66ac4e47339d5d | Used to validate media type after receiving it from the network. | namespace VideoPlayer.MediaSource
public static class Validation
public static void ValidateInputMediaType(Guid guidMajorType, Guid guidSubtype, IMFMediaType pMediaType)
{
} | 1 |
f4db7c5de9627c311ba8c324859807bd | c61ec26857cb1f2b5c46e95ffefcd21a | Get the file types with the file type of the fileName moved to the front of the list. | public IContentType[] findContentTypesFor(String fileName); | 0 |
9e978d657a3c6afa943d681576621ae3 | a75b14d29855ead1891369edd582a890 | searchCommodityCodeEndを取得します。 | public class JisekiNenpou_SearchForm extends KitSearchForm
public String getKikanEnd() {
return this.kikanEnd;
} | 0 |
b0c29d242bd651faab0fa4436384ebc5 | de8c3ad4b147db3c7abe9653f39c346b | Get current GMT datetime in DB format | class String_utils
static function getGmdate()
{
$time = explode(" ", microtime());
$time2 = explode(".", $time [0] * 1000);
$ms = $time2 [0];
return gmdate("Y-m-d\TH:i:s.$ms\Z", strtotime("+ 8 hours"));
} | 1 |
680718a590edbfe154b3774898d659d0 | daabecf6d71a71a3d2cd8dec832b7da5 | Called when we receive the ADDLINE command. | {
currentLine.Append(buffer);
if (Array.IndexOf<char>(buffer, '\n') >= 0)
{
SubmitLines();
}
} | 0 |
9abd2f12033681303d191f46c53507e2 | f746a9ac1c23f5e267fdd7da1c7a67f9 | 获取numOfAdults属性的值。 | class BD_ServiceNormalWSDO extends AbstractStructBase
public function setNum_adults($num_adults = null)
{
if (!is_null($num_adults) && !(is_int($num_adults) || ctype_digit($num_adults))) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', ... | 0 |
78df291811a643c3266300edd74721db | 22a8b53396ae89fd64af40c119000ca3 | ids of persons, who are healthy | living_single = []
marriaged = set()
for family in families:
fami = families[family]
if 'HUSB' in fami:
marriaged.add(fami['HUSB'])
if 'WIFE' in fami:
marriaged.add(fami['WIFE'])
for individual in people:
ind... | 0 |
d4fdd1486f7e6559869ce8f20313aac5 | 4f13b664075f67ff11ec8270ec923653 | 获取指定步骤编码的环节详细信息 | public List<LhStep> getLh5stepByCode( String refCode,String hsiId)throws BusinessException ; | 1 |
c57b3971c20020be6adbbb2d0d975f82 | 09317bf6089dfaefb762a2487881ebbb | 决定基础 或 追加组中需要参与标签的项 | if (!itemRes.savePath) {
itemRes.savePath = this.configItem.savePath || config.extConfig.savePath
}
if (tags && tags.length) {
tags.forEach((tagStr: string) => {
let tagIndex = this.tagsMap[tagStr]
if (tagIndex === undefined) {
tagIndex = this.addGroup({ name: tagStr, d... | 1 |
2a00e63f4e72166281ad779908736896 | e82ae7db6a502fe282a07a10a36cf83e | Method to get the remaining display duration of the
partially displayed asset | public final class Asset{ private class Sprite{
public float getDuration(){
return duration;
} | 0 |
a483e7f1c82e9f1d6a230bc570d7268c | 7a80e1f2e93dc68850dd786fb7063c0e | Return the words associated with the document given the vocabulary | def get_doc_vector(words, vocabulary):
doc_vect = [0]*len(vocabulary)
for word in words:
if word in vocabulary:
idx = vocabulary.index(word)
doc_vect[idx] = 1
return doc_vect | 0 |
9b136d5078279401cf4e42f46821c77d | 8a0106316c9a6475063fb51722ce2920 | 不可ボタンのクリック時の処理を行う. | public class UnlockSkinsUI : MonoBehaviour
public void OnClick_NoButton()
{
soundManager.SEManager("Button_sound1");
CapsuleStartPanel.SetActive(false);
} | 1 |
fa5aaba20b25e292b3dd7e7474753fcd | 06fa03d0ecbafbbe98aef5a35d86d5ba | Check that the certificate's thumbprint matches the one given in the constructor, and that the
certificate has not expired. | void verifyCertificate(PublicKey issuerPubKey, X509Certificate cert) throws NoSuchProviderException, CertificateException,
NoSuchAlgorithmException, InvalidKeyException, SignatureException; | 0 |
05d618d6840d3c75760d4d97c8cfc924 | 5e191da3d55e9fd6f307e6ddbdce17c0 | Decides whether a single candidate will be marked, and returns information about that decision. | criterion):
if candidate.objective() < best.objective():
return candidate, weights[WeightIndex.IS_BEST]
if candidate.objective() < current.objective():
return candidate, weights[WeightIndex.IS_BETTER]
if criterion.accept(self._rnd_state, best, ... | 1 |
cc155b7e387dd85b784075b9c1ce68cf | c32579382da0b74f7b1d4c9fe99398e6 | Sets the user name to access the SVN repository. If not set, then anonymous
credential is used. | public class RepositoryInfo
public void setUserName(String userName) {
this.userName = userName;
} | 1 |
07c37eab8fac9620c3026f074849649f | df03bb7455a0b24a2dca29d2686c81fd | Disables all Vote panels | {
foreach (Panel p in listPanels)
{
p.Visible = false;
}
} | 0 |
ba52297927581c9d23f8a287d1032319 | 157dafb53c1a1a3855ea077a0f9f1229 | Set up DMA0 for Can1 TX | C1CTRLbits.REQOP = 0b100;
while(C1CTRLbits.OPMODE != 0b100);
C1CTRLbits.CANCKS = 1;
C1CFG1bits.BRP = 0;
C1CFG1bits.SJW = 0;
C1CFG2bits.PRSEG = 0b000;
C1CFG2bits.SEG1PH = 0b011;
C1CFG2bits.SEG2PH = 0b001;
IEC1bits.C1IE = 1;
IFS1bits.C1IF = 0;
C1INTEbits.RX0IE =... | 0 |
5eec3ecc1aec8e082ba125be040b2f2f | 6182307d40a5a434a6f51a2894f6c282 | 基于固定利率及等额分期付款方式,返回某项投资的总期数。 | def calc_n(p, a, i):
n = math.log(a / (a - i * p), 1 + i)
return math.ceil(n) | 1 |
93fdbbedd4a7439970d4933a7a606b70 | 8a0c65737646db4992721a843592763c | Adds a validation where the rule <paramref name="exists"/> function must return <b>not null</b> to verify it exists (see <see cref="ExistsRule{TEntity, TProperty}"/>). | public static partial class Extensions
public static T Exists<T>(this T source, ISqlBuilder builder)
where T : IWhere
{
if (source == null)
throw new ArgumentNullException(nameof(source));
if (source is IClauseAccessor accessor)
accessor.WhereClause.Exists(builder);
... | 0 |
9badcb3880c7b095c56d82ca4aaad0b8 | d8f089b507a42cf833b3a0e50c841c8b | 주어진 디렉토리에 파일들을 참고하여 타이틀 목록 추출 | title_slugs = set()
for node in heading_tree:
traverse_node(node, title_slugs, md_file_path) | 0 |
c2cfdd7e01153487f5a4e37722063349 | dbe4f24506cc1f3a5774a363989a8b73 | Shuffles a list in-place with the current time based random number generator. | namespace Sayer.Rand
public static class ListExtensions
public static void Shuffle<T>(this IList<T> list) => Shuffle(list, ThreadSafeRandom.Get()); | 0 |
1093ee29755587d958efdd15e7f6879c | ba5a2d54d825e660b9f98e4ee04572aa | Test that Delete Session rollsback if there is no session. | r = client.delete('/api/session', json={'sessionID': 'not-a-session-id'})
assert r.status_code == 200
assert r.json()['success'] == False | 1 |
1cafcbc6ebb0e96ac28f48652acc4e26 | 1d76c947a49674670fd2d6ad49859f75 | 根据销售点ip查询销售点下的商品 | @Router(group = "itemCenter", serviceClass = IProductGoodsRelReadService.class, methodName = "queryByCityProductId", routeType = RouterType.MULTI)
Map<Integer, Response<List<ProductGoodsRelVO>>> queryByCityProductId(Map<Integer, ProductGoodsRelQueryRequest> requestMap); | 0 |
a255b9ce708a603804980b91440b983a | 58ab3e378021b6548f41c99af8480c8c | XML変換時に格納イメージをエクスポートする場合はTrue。
親要素がある場合、親の設定が優先される。 | {
switch (source.NodeType)
{
case XPathNodeType.Element:
string nn = source.Name.ToLower();
switch (nn)
{
case "script":
return settings.doExportScripts;
... | 0 |
342394a22177457ffa0a96704545fef8 | b0cd6f9bd2f5498e3dcb149e2de0193c | 舞台坐标转世界坐标 | class GameCamera extends Transform
public WoldScreenTo(wx: number, wy: number) {
let x = wx + this.EgretX - this._x;
let y = wy + this.EgretY - this._y;
return [x,y];
} | 0 |
bdd080a96d134d7468fa288a4abc2647 | 8c2931019bc4968bb8629c10370182ea | Prescaler is 1:64 | {
TCCR1B &= ~(_BV(CS12) | _BV(CS10));
TCCR1B |= (_BV(CS11));
} | 0 |
b9ab8be93c06ec81063e40ca13184a11 | 7087aedb443d348734385363618427ff | Wait for element to appear and be in editable state. | IWaitsExpectedCondition elementToBeClickable(final By locator); | 1 |
3cdd1ccdf286797ebe876bf763d0970f | 45397a7e6e0075d4da8feec89b2452c8 | get a net pointer based on a user text string. The string may be a ones
based number index (eg "1", "2") or an iface name ("pp0"). Prints error
message to passed output device if text does not map to an interface. | NET
if_netbytext(GIO *gio, char *iftext)
{
unsigned iface;
NET ifp = (NET)NULL;
if ((strlen(iftext) == 1) && (isdigit(*iftext)))
{
iface = (unsigned)(*iftext - '0') - 1;
if ((iface >= ifNumber) ||
((ifp = if_getbynum((int)iface)) == (NET)NULL))
{
gio_printf(gio, "inte... | 1 |
a8437b418e1739d7e437df7bfd94bf03 | 3fc4c03186e3b2f2dd5c8f216eb7de17 | https://html.spec.whatwg.org/multipage/#dom-img-naturalheight | public get height(): number {
const height = document.defaultView.getComputedStyle(this.container, null).height;
return Number(height.substr(0, height.length - 2));
} | 0 |
f213b10197e29bcde369c7fba1e62af0 | 0c1eb085f90427c1996ecd4ee274c97c | Returns an empty user object | return {
"id": "",
"username": "",
"name": "",
"picture": ""
} | 1 |
b85ec46b7086e7c961748fd071d4086b | 344fc631089d67d982266fd0727f7460 | 对象转换成byte,未成功返回缺省值 | {
byte result = (byte)(isNotNullVal(objVal) && byte.TryParse(objVal.ToString(), out result) ? result : 0);
return result;
} | 1 |
b7de95186207bfeb300b63ca47c3b73c | fa86db9f7a453b6778a369fefb87061b | Returns the meta object for the attribute '{@link org.openhealthtools.mdht.mdmi.MDMIDomainDictionaryReference#getName <em>Name</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | public class IblPackage extends EPackageImpl
public EAttribute getVariableReference_Name() {
return (EAttribute)variableReferenceEClass.getEStructuralFeatures().get(0);
} | 0 |
b65a417c8fc9c54c97fe5c0aa6715424 | 37f288a59b8cc42eda7eebb826cee56e | declarations : declarations declaration
| | def p_declaration_list(p):
if(len(p) == 2):
p[0] = p[1]
p[0].ast = build_AST(p)
else:
p[0] = Node(name = 'DeclarationList', val = '', type = '', children = [], lno = p.lineno(1))
p[0].ast = build_AST(p)
if(p[1].name != 'DeclarationList'):
p[0].children.append(p[1])
el... | 1 |
ee63984995fcff20e21b82f79aa508e8 | 89c600940058644499aa4caed6660247 | 根据机构获取区域选择列表 | function getBranchByOrg(orgid, branchid) {
var orgidVal = $(orgid + " option:selected").val();
var otype = "get";
var osync = false;
var param = {
"orgId": orgidVal
};
var reqResult = httpRequest(getOrgbanchListByOrgUrl, param, otype, osync);
if(reqResult.result == 0) {
var html = "<option selected='selected... | 1 |
028cad5b13f8573d4b026f2170fb393d | cf0497c21d2a9c7ead1ca7086a619558 | 根据前序和中序确定后序 | {
int root, i, L, R;
if (N==0) return;
if (N==1) {
post[postL] = pre[preL];
}
root = pre[preL];
post[postL+N-1] = root;
for(i=0; i<N; i++) {
if (in[inL+i] == root) {
break;
}
}
L = i;
R = N - L - 1;
Solve(preL+1, inL, postL, L);
Solve... | 1 |
bfd50c4dd7728ce1eefa6f738271d487 | 769fe3f90c5b184aa3ccce0247839823 | 计算表五各项特征的方差 | s2b = sum(dispersion) / 15
s2bs_avg = s2b / 15 * m
sb = s2bs_avg ** (1 / 2)
beta_arr = [
sum([y_avg_arr[i] * plan1x0[i] for i in range(15)]) / 15,
sum([y_avg_arr[i] * plan1x1[i] for i in range(15)]) / 15,
sum([y_avg_arr[i] * plan1x2[i] for i in range(15)]) / 15,
sum([y_av... | 0 |
89014c83df4d0f0497693804f0faaedc | 79ea5601eeb76c1a9d313a42904f6c45 | function to check character stats and conditional states | void ADieselandCharacter::CalculateStats_Implementation()
{
if (this->ActorHasTag(FName(TEXT("Player"))))
{
if (Cast<ADieselandPlayerController>(Controller)->StatPlusCount >= 3){
CharacterLevel++;
Cast<ADieselandPlayerState>(PlayerState)->SetCharacterLevel(CharacterLevel);
Cast<ADieselandPlayerController>(... | 1 |
edfd389d130c95bd8b60cf05132bc5f8 | 61ba3b992b8145c7d24754baee3e496f | 在内存空间中删除所有的指纹模板 | public abstract void deleteAllFingerPrint() ; | 1 |
71fdb102f402c7019170807ec99e99bb | 1f6db4c10caea8c0b424c107b386b468 | Faire les listes des animaux pour un client donné | class ScheduleController extends Controller
public function getPets($id){
return json_encode(Pet::where('client_id', $id)->get());
} | 1 |
6e1f61dcf7233ceabd7383b578074710 | 504ba54c180c2bce51adfd9449893f14 | <p>
Da el formato de la columna 'Acción' de la grilla
</p> | class Master extends Authenticatable{
public function getAccionDataTable($query, $modelo){
return "<a style='color: grey' title='Editar' href='/admin/".$modelo."/".$query->id."/edit' data-toggle='tooltip' data-placement='top' ><i class='material-icons'>edit</i></a> <a class='delet' style='color: black' href='' ... | 1 |
07e4b9e9a9e11333bfc618898b9eae58 | 9b989e4cb66a337d84b0b11d7481e018 | 将整数转化为一个hh:mm:ss格式的时间字符串 | public class DateTimeHelper
public static String int2TimeHHmmss(int time) {
DecimalFormat df = new DecimalFormat("00");
String hour = df.format((int) time / 3600);
String min = df.format((int) (time % 3600) / 60);
String sec = df.format((int) time % 60);
return hour + ":" + min + ":" + sec;
} | 1 |
29f91015ab378700dcbbd9b91b256497 | 912d91250037bdfba7a716c106795310 | Whisker command: set the logical size in pixels of a display document. | {
if (dwDrawAspect != DVASPECT_CONTENT || !isWidget || !qt.widget)
return E_FAIL;
if (!psizel)
return E_POINTER;
psizel->cx = MAP_PIX_TO_LOGHIM(m_currentExtent.width(), qt.widget->logicalDpiX());
psizel->cy = MAP_PIX_TO_LOGHIM(m_currentExtent.height(), qt.widget->logicalDpiY());
return S_OK;
} | 0 |
0ab33e382d6674f87e21dc25699bcd76 | 5124891965a364948761f4f449316cd3 | asynchronous get of all .m3u8 playlists and attach list of chunk names
to the episode name as key in the dict | class BaseReader(metaclass = ABCMeta):
def get_episode_list(self, url):
pass | 0 |
d01226a490580a72356a7afa45a9e81f | a0d21b6e351ab862a17d9c3ae9cea470 | Add a directed edge between passed nodes. | namespace Piedone.Combinator.SpriteGenerator.Utility
internal class Graph
public void AddEdge(int from, int to, int weight)
{
_nodes[from].OutgoingEdges.Add(to, weight);
_nodes[to].IncomingEdges.Add(from, weight);
} | 1 |
a1a0fa4a2a291899062cd2c8dab50e0a | 210657cba34312ee56f7602a80c1bf8d | Train the LDA classifier. | class LogisticRegressionClassifier(AbstractZnormClassifier):
def _train(self, X, Y):
self._lr.fit(self.phi(X), Y) | 0 |
8e0ade2016df389838f46a7acb723b02 | f85c80b106af9c6089172d8837d66016 | Get Offset for paginated queries. Default value: 0. | public class DescribeDiagDBInstancesRequest extends AbstractModel{
public Long getOffset() {
return this.Offset;
} | 1 |
60beb6a12d795a6b1d847f89b50f8506 | b0e73e5aa12fcd751bc44e6191cae7b9 | 内部ポインタをラージオブジェクトの先頭に移動する
<p>内部ポインタをラージオブジェクトの先頭にセットします。</p> | public function rewind(
bool &$success = null
): self; | 1 |
131531ee89b7643d557af54c04ea83b4 | 4a64cf748e2ea9f58818357cb144ed04 | Comprueba que si el usuario es cliente y de ser así que haya pagado la
última mensualidad. | boolean bRet = false;
float nMin=0.0f, nMax = 0.0f;
if (this.oCredPart != null){
nMin = this.oCredPart.getMontoCred();
nMax = nMin *(1+ ((this.oCredPart.getPctInteres()/100)*12));
if (getTotalPagares()>=nMin && getTotalPagares()<= nMax)
bRet = true;
... | 0 |
d72fa92e84eb1b02c3c9f65a30f32f15 | 765eef5d68f7684d1982a61041cd4b98 | because the list of features we might calculate can change, we also store
in a hash map to make it simpler to collectively pass information | class FeatureProcessor(object):
def __init__(self):
self.csv_features = {}
self.meta_features = [] | 1 |
25e1280d0638994268ad11f92ec7e5de | 82d72ba8033a2205f94f5e8bcf52b6c7 | 得到本次交易最近20次登录切换城市的最小分钟数 | class Network:
def get_minimum_time_switch(self):
return self.__minimum_time_switch | 0 |
274d33446cb5c1a5a05d6eb89cd6d0be | 56f6db35bc8bb1b56f1d42eddfe31661 | Return true if we should keep scrolling, false if the user hits escape | public class MainMenuScreen implements Screen, InputProcessor{
@Override
public boolean scrolled(int amount) {
return false;
} | 0 |
54652dac7d87a25b1ca0a9c94a17caad | 266d277b1f0414d1ae453d17c3784670 | GET: PaymentModes | namespace Estates.Web.Controllers
public class PaymentController : Controller
[Authorize]
public ActionResult Index()
{
return View();
} | 0 |
fb9daf6fb19eff2a9c669342f27a6de8 | 6d34b5d4679546638d6c1e67ef2c91f2 | This property is set by the job handling and contains the Sling instance ID
of the instance where this job should be processed. | @Nullable
Long getJobid(); | 0 |
d7c1f89f547bec9a57b9e8ace17e09db | cbbba0ff416707cd9cb914b7e43bc4ed | Returns the size of the partition's header, in bytes. | int blockHeaderSize(); | 1 |
0381a4808aeae8d2442db156150140f4 | 335803bc31f64d270012dc5e26bfdb19 | Resize the preserve attachments array. | if (this.count > this.source.length) {
for (let i = this.count - 1; i >= this.source.length - 1; i--) {
this._disattach(i)
}
} else if (this.count < this.source.length) {
for (let i = this.count; i < this.source.length; i++) {
this._att... | 1 |
6625964179e430deaa912bd035f2e218 | ead8420c556b2ac73f1f3e7b67927d97 | Calculates distance between latitudes and longitudes using the haversine formula, returns distance in miles | function calcHaversine(lat1, lon1, lat2, lon2) {
function toRad(x) {
return x * Math.PI / 180;
}
var R = 6371;
var dLat = toRad(lat2-lat1);
var dLon = toRad(lon2-lon1);
var a = Math.sin(dLat/2) * Math.sin(dLat/2) +
Math.cos(toRad(lat1)) * Math.cos(toRad(lat2)) *
... | 1 |
4c58ab22092b0eda7e5d1f1a7e162ab1 | 7d515e57d4385400ac1489db02c520e6 | データ送信用 | if(stream.IsWriting){
stream.SendNext(seikaiText.text);
stream.SendNext(start);
stream.SendNext(seikai);
stream.SendNext(path);
stream.SendNext(timeup);
} else {
seikaiText = this.GetComponent<Text>();
seikaiText.text = ... | 1 |
51b474f1f001e53a2d266ba5be356128 | 4985e1392e8f7b5ff83852a633862ea5 | Отрисовка рекорда | public void draw(Graphics g)
{
g.drawImage(
ImageSource.MARK_BOARD,
x_,
y_,
null
);
drawCurrentMark(g, gameData_.getMark());
drawHighestMark(g, gameData_.getHighestMark());
drawMedal(g);
if (gameData_... | 1 |
badbb4eb9bbbc0b403514eb7612f4b65 | 696ac9931e887d865d972104ad440dd1 | カンマ区切りの文字列を2次元配列に変換する | class ACex
private splitByCamma(data: string[], datas: string[][]) {
for (let j = 0; j < data.length; j++) {
const dataCmd = data[j]?.split(',')
if (!dataCmd) {
datas[j] = [] as string[]
} else {
datas[j] = dataCmd
}
}
} | 1 |
35be486c046917eae88f89d3f633ee4f | e36ddd5512b2cef9ec94750b98dec0a6 | Tries to detect if the user is on an Apple OS | if (stripos(Browser::getUserAgent(), 'BeOS') !== false) {
self::$version = self::VERSION_UNKNOWN;
self::$name = self::BEOS;
return true;
}
return false;
} | 0 |
bf11ac782db750051e18ed29f3a0371b | d5a82e1dc660127e27a0a1893c8cb42b | 从类中获取配置的属性,并保存到文件中 | public class CollectedNoteActivity extends AppCompatActivity
implements NavigationView.OnNavigationItemSelectedListener,Serializable
public boolean saveConfig(Context context, String file, Properties properties) {
try {
File fil=new File(file);
if(!fil.exists())
f... | 1 |
01c03a70083a9fbaad8512b788b72408 | 6235b26240cb345cdfdd9d3cbedc07d9 | 当一个View移动的时候让另一个也赶着移动 | class VerticalSlideLayout : ViewGroup, IVerticalSlideController private inner class DragCallBack : ViewDragHelper.Callback()
override fun onViewPositionChanged(changedView: View, left: Int, top: Int, dx: Int, dy: Int) {
if (changedView == mViewTop) {
mViewBottom.offsetTopAndBottom(dy)
} else if (c... | 1 |
eb89e6603ae79da5ecd01fb0e855ab09 | 7c9cd31a2047e8c85bdfd41109102639 | GET /friend_requests | class FriendshipViewTests(BaseTestCase):
def test_friendship_requests(self):
url = reverse("friendship_request_list")
response = self.client.get(url)
self.assertResponse302(response)
with self.login(self.user_bob.username, self.user_pw):
response = self.client.get(url)
... | 1 |
3d4e392e94f8a46d9dacee529db2d771 | 5862f8c6886a97e619193735e5ec5f29 | 查找最新的一条产品 | @Query(value = "SELECT * FROM support_item1 WHERE company_id =1 AND (date,variety) IN \n" +
"(SELECT max(date),variety\n" +
"FROM support_item1\n" +
"WHERE company_id = 1 AND variety IN (SELECT name FROM inventory_item WHERE category='产品')\n" +
"GROUP BY variety)",nativeQ... | 1 |
989c1d85c7fd30f0e1a3a8ce6c7efd51 | e977959e23f2a2e79a67e6c43a72c4eb | 是否是合法的scheme | (scheme, rest) = urllib.parse.splittype (uri)
if scheme == None or scheme == '':
return False
return True | 1 |
cd34d982245172e7c4dcb81c530ed579 | dfa61bdb3aa0b96d8d5f8ef1f6a1b8c3 | Permite listar todos los registros de la tabla ME_HOJAPTOMED | {
try
{
FactorySic.GetMeHojaptomedRepository().Save(entity,empresa);
}
catch (Exception ex)
{
Logger.Error(Constantes.LogError, ex);
throw new Exception(ex.Message, ex);
}
} | 0 |
9377213fd0a353545aa0aa7c3381c21c | 7fb36c5f8b7490eb8fae8e2b15449a5a | Return settings to describe output stream. This should get the buffer
requirements and other information for an output stream.
(see IMFTransform::GetOutputStreamInfo).
An override of the abstract version in MFTBase_Sync. | namespace MFTTantaVideoRotator_Sync
abstract public class TantaMFTBaseStandalone_Sync : COMBase, IMFTransform
public HResult GetInputStreamInfo(int dwInputStreamID, out MFTInputStreamInfo pStreamInfo)
{
pStreamInfo = new MFTInputStreamInfo();
HResult hr = HResult.S_OK;
tr... | 0 |
c14cbd64f790e273e5313e42dff60a0e | 9375d924852a6e9811987590246f34c8 | Gets the previous board stored in BoardStack | namespace MarbleBoardGame
GameState GetPrevious(); | 1 |
4b1de6b51c1b6c083afab60f8748e272 | c8c34d700a01cc8dee5e965180b0b1a3 | Save the start time, so if we quit app and come back it will remember the time | public class RectangleController : MonoBehaviour
void Start () {
startTime = Time.time;
} | 0 |
129d3fcad8fd96d72055c04b024c60b1 | 2933059861cae4815bbfc0ab119f4d40 | Visit a parse tree produced by {@link BrahmsParser#initialFactsList}. | T visitInitializerList(@NotNull ExtractedCParser.InitializerListContext ctx); | 0 |
36f5df4454443fef08fb1701a43680d5 | d43030058368ed119d16fba481087bba | Visit regular imports. | namespace Expresso.Ast.Analysis
class FlowChecker : IAstWalker
public void VisitImportDeclaration(ImportDeclaration importDecl)
{
foreach(var import_path in importDecl.ImportPaths)
Define(import_path.Name);
} | 1 |
925d1fbea161d4ff66ec574afc835f67 | af83c90fe0d9f6584d70b08d99f01941 | Unsubscribing subscribers from mailing list (asynchronously)
Unsubscribes a subscriber from the specified mailing list. The subscriber is not deleted, but moved to the suppression list. | namespace Spring.Social.Twitter.Api
Task<UserList> UnsubscribeAsync(long listId); | 0 |
9ac95545c6089337fd0c43559f48f980 | 99b9b95f54d4850f08e38e0f96cad0cf | Sets X, Y, width and height of shape to given dimensions. | public class Rectangle extends GraphicsObject implements Colorable, FillColorable{
public void setWidthAndHeight(double width, double height){
shape.setFrame(shape.getX(), shape.getY(), width, height);
changed();
} | 1 |
30dae51385a180e9c4b6384834bc7adf | 7e1819f5133f34af9cfb7fc14ad249f2 | Devolve o numero de clientes atendidos | int getNServed() {
return nServed;
} | 1 |
9f7470bf52aebb2105f388a82251af16 | 7221029029aa9b391475180cbbd128d9 | 获得上个月的结束 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.MONTH, -2);
calendar.set(Calendar.DATE, 1);
Date date = calendar.getTime();
return sdf.format(date);
} | 0 |
9636e2b4890391ff34e6a98e56ce3fb0 | 4f4631acaa433470d18f73e13442af66 | Master node changed. | class DreddBase(ircbot.SingleServerIRCBot):
def on_nick(self, c, e):
qui = irclib.nm_to_n(e.source())
vers = irclib.nm_to_n(e.target())
if (qui == self.master):
self.master = vers | 1 |
05328452aac9df38d0a0943f3cb65c3e | 787bce847ed086718122d8ad8f95d32c | Set up Microsoft speech component. | let speech_config = SpeechConfig::from_subscription(
env::var("MSSubscriptionKey").unwrap(),
env::var("MSServiceRegion").unwrap(),
)
.unwrap();
let speech_recognizer = SpeechRecognizer::from_config(speech_config, audio_config).unwrap();
speech_recognizer
} | 1 |
ba0dca53c31b3471d3f2cc6789a42b1a | 9521da4a6c487822d19ce444cdf73fd3 | Merger time given initial orbital period and masses of binary. | {
if (otherMass.SolarMasses < .001)
{
return Length.Zero;
}
double m1 = mass.SolarMasses;
double m2 = otherMass.SolarMasses;
double mu = m2 / (m1 + m2);
double e = otherSemiMajorAxis.AstronomicalUnits;
double e2 = Extensions.Pow2(e);
double a = ecc.DecimalFractions;
return Length.Fro... | 0 |
646ac88cda3425fc00d16fc42170e39b | 948fb4f5a9496b1bd8ebfe2a663751bb | 计算用户每天消费总订单数 | class AverageuserModel extends Model
public function getConsumptionCount($map)
{
$temp ='tp_consumption.status = 1 and tp_consumption.paystatus = 1 and tp_user.id = '.$map;
return Db::name('consumption')->field('tp_consumption.id,tp_consumption.ordernum,tp_user.mobile,tp_user.headimgurl,tp_user.nick... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.