query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
697d06d2247e65fe0a66177ad97fd08c | f4ee8695ee2c5d067eee552ea8b190f8 | загружает календарный план из базы данных | let dataUrl = `${this.siteUrl}/_api/web/lists/getbytitle('План%20развития')/items?$expand=FieldValuesAsText/AssignedTo&$filter=AssignedTo/Id eq ${this.userId}`;
return this.getListData(dataUrl).then((response: any) => {
response.value.forEach(item => item.PossibleOn = this.dateFormater(item.PossibleOn));
... | 1 |
49c4130160ae9d78cd585c949aae7e5f | 7f4bcf4a35339aec03d7e33a88b2731a | Sets extension Javascript for the session | {
$hooks = array('sessions_start', 'template_post_parse');
foreach ($hooks as $hook) {
ee()->db->insert(
'extensions',
array(
'class' => __CLASS__,
'hook' => $hook,
'method' => $hook,
... | 0 |
954d49ec11343b84add30f51ca268fab | 7e84a7fd67361592130fc411bce8410f | 打开取消模态框 | class Channel extends Component
onCancelViewChannel(){
this.setState({
isViewModalOpen:false
})
} | 0 |
96d4070d72f3d83ed2e98ec523c08994 | 2f90414205ac98f988cdfb3fe28b738b | Restore Reward configuration. | namespace AdManager
public partial class Form1 : Form
private void btnConfigRestore_Click(object sender, EventArgs e)
{
RangeCof.Value = 30;
ShareCof.Value = 4;
ClickCof.Value = 8;
} | 1 |
9c74365c42389081bdb7a7e97ec3f6d9 | 3a480b2d46aa4b6e3f18189f7fee5243 | rotates argument nested list by 90 degrees right | def rotateRight(quadtree):
if type(quadtree)== int:
return quadtree
return list(map(rotateRight, rotate(quadtree, 1))) | 1 |
899b5a447c19b6ab002e65105f4588f0 | 71d179536755cafd9e896ac18bca554e | Handles exceptions on methods whose args.ReturnType is ServiceResult.
<para>If there is no handler to handle the exception, the program continues its default flow.</para> | {
var resultType = methodInfo.ReturnType.GetGenericArguments()[0];
var mi = HandleAsyncMethodInfo.MakeGenericMethod(resultType);
if (remotingResponse.IsEmptyBody())
{
return mi.Invoke(this, new[] { null as object });
}
var e... | 0 |
ef0c984e558e3e568403f53088393e4f | e62571be8efe66630fb8ad67067cb8e5 | Inflates document from root, initiated by the view host. | open class DocumentView(context: Context,
attrs: AttributeSet?, defStyleAttr: Int
) : View(context, attrs, defStyleAttr)
operator fun invoke(init: DocumentView.() -> Unit): DocumentView {
this.init()
return this
} | 0 |
57d39d5cd63167e4bc1ac90d69b25127 | 507ad084d96f03e1dc26ffa980398e24 | квадратурная формула Гаусса | class Meth
static long gp_sum(long a, long r, long n) {
long[][] x = { {a, a}};
long[][] m = {
{a, 0},
{r, r}
};
long[][] m_pow = matrix_pow(m, n);
long[][] res = matrix_mul(x, m_pow);
return res[0][0];
} | 0 |
38215524d187d74815cdcdfb6259ab75 | 315d6af3b40f8b37c554b69986850cc1 | Get the order for a history object then convert that to a TradeLink order | {
$ko = $this->order;
if(count($ko['cart']['items']) < 1)
return false;
$orderId = false;
if(isset($ko['merchant_reference']['orderid2']) && strlen($ko['merchant_reference']['orderid2']) > 0){
$mo = Mage::getModel('sales/order')->load($ko['merchant_reference']['orderid1'], 'increment_id');
if($mo->get... | 1 |
7a6cde1ae02794fb3e8411b12171b701 | dfc42e85143e1ba7f104780db5716ea4 | 将cmdline开头的脚本文件名路径里所有的/改成\;在Windows下,仅为运行需要这种处理的
工具的类所使用;在其它平台上,这么做也没有坏处(如Unix下的os.system)。 | def Windows_pathname(pathname):
pathname = pathname.replace("/", "\\")
return pathname | 1 |
96f1bcccc79267f0677332261f3c7dde | 82c86e8e75401e164854db654428b898 | Coloca o valor do coeficiente fiscal do contribuinte indivídual. | public class ContribuinteIndividual extends Contribuinte implements Serializable
public void setCoeficiente_fiscal(double coeficiente_fiscal) {
this.coeficiente_fiscal = coeficiente_fiscal;
} | 1 |
67b7d878f592fa7345391180852f868b | fa1df8973c7225a9fa07321d4803c3f4 | Returns attributes that are true. | class Attribute
public function get()
{
$attributes = array();
$className = get_class($this);
foreach(get_class_vars($className) as $key => $value) {
if($this->{$key} == true) {
$attributes[] = $key;
}
}
return array_reduce($attributes,... | 1 |
43da663e73210091349114bf302158b9 | 47c7f9357ec9d2d4e088478d0aa51df9 | Verifica se uma nova mensagem com o mesmo número (DDD + Celular) de uma mensagem já validada possui um tempo de envio menor | class Validator
public function isAfterTimeLimit(DataSend $data_send)
{
return strtotime($data_send->getHoraEnvio()) > strtotime(self::TIME_LIMIT);
} | 0 |
550741f5c7ba756420549896cf58411b | 6e7ac63d639d260b237eabe8b9407406 | DELETE /trash empties the trash | @image = Image.find(delete_params[:delete_image_id])
@image.in_trash = 1
@image.save
respond_to do |format|
format.html { redirect_to root_path }
format.json { head :no_content }
end
end | 0 |
2243749c1092a79fe5f935dd015ff840 | 3a5f4aad8c7ccec2796ec085d9302426 | Check all errors are recorded in detailed file | if self._debug == self.ALL_FEEDBACK:
error_file = open(self._error_file_name, 'wb')
error_file.writelines(self._errors)
error_file.close() | 1 |
b7ee32eb2c04617b96a24b3e07bb4f1c | 6b7fafbc192b4415a03599d756e09757 | Message to show when service implementation does not provide a valid IQueryProvider. | namespace Menes
TResponse BuildServiceOperationNotFoundResult(); | 0 |
4085be6369fa55c99af984481db41055 | 9ecc85c79188bf714def17af2de32126 | Allows a grace period for token validation
Applies on either side of the "not before" and "expires" claims. | namespace Stormpath.SDK.Jwt
T SetNotBeforeDate(DateTimeOffset? nbf); | 0 |
9c9a00cfd176806b69d322af7d590fcc | 9ffe2030450ca2021ab0e798ab147f71 | Function to extract Crypto list from the coinmarketcap | class MarketsListings:
def get_top_crypto(self,num = 25):
return json.loads(requests.get(self._cryptocurrency_base_url+'ticker/?limit='+str(num)).text,object_pairs_hook = OrderedDict) | 1 |
00a1e381c165a6d2d8066578260bc0d5 | 42c5e2cf06b2b200dde50e5a003218fc | 重新汇总删除已有汇总记录(根据汇总批次号CSBatchNo) | public void delIcmsBatchNo(PayExamineBean bean){
PayScanBean payScanBean = new PayScanBean();
payScanBean.setBatchNo(bean.getBatchNo());
payScanDAO.clearBatchDetail(payScanBean);
payScanDAO.clearBatchHeader(payScanBean);
} | 1 |
6a9fce36367228d7af194c0e0b1e4f97 | 7192458aca5aeef83c061a512770a2bb | 비동기식 라우팅 테이블을 반복적으로 필터링하고 사용자 역할 사용 권한과 일치하는 라우팅 테이블 반환 | function filterAsyncRoutes(routes: any[], roles: string[]) {
const res: any[] = [];
routes.forEach((route) => {
const tmp = { ...route };
if (hasPermission(roles, tmp)) {
if (tmp.children) {
tmp.children = filterAsyncRoutes(tmp.children, roles);
}
res.push(tmp);
}
});
retur... | 1 |
56a35ca065ce14ae07f12258440a67e8 | ff045d371e637f4d1d5350f39c66f1b8 | This function is a large copy/paste from django in order to construct
correct through tables for `ManyToManyField` relationships. | if direction is MANYTOMANY:
kw.update(lazy='dynamic')
return generate_relationship(base, direction, return_fn, attrname, local_cls, referred_cls, **kw) | 1 |
3b01cd039f9bf0a38bb55882adcedb86 | 74743608848da4d4ace1375a093de20d | DateTimeToClarionDateTime | {
DateTimeType newdt;
TimSecondsToDateTime(TimGetSeconds(),&newdt);
#ifndef __MC68K__
{
unsigned short s;
s = newdt.second; newdt.second = ByteSwap16(s);
s = newdt.minute; newdt.minute = ByteSwap16(s);
s = newdt.hour; newdt.hour = ByteSwap16(s);
s = newdt.day; newdt.day =... | 1 |
80276242094fc0e416ab8334e062b895 | 8cc371571eb63260bdf4cff0ee7e0257 | Gets the value of the selectedPackage property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the selectedPackage property.
<p>
For exa... | public abstract class Member extends Person
public String getChosenPackage() {
return chosenPackage;
} | 0 |
54774d8020a4ffee59943686d2a82fd8 | 6ede9f1d60fce307d3f0d58611d5ebca | Quit the current game and load the landing scene of the Build | if (SceneManager.GetActiveScene ().buildIndex == 1) {
SceneManager.LoadScene (2);
}
} | 0 |
9aeb92f458d9f2539c7b88769c803be8 | 21a073a14b36c4e2aa54006249fb4ef4 | Mutator to assign the staff category of the staff | public void setWorkforceCategory(String workforceCategory); | 1 |
97e9a530b67ed8cd7babf6258e1ebbdf | 48b172db51c5d677d0bc217d68f9f448 | Returns the previous connected segment or null if the specified (global) segment
index is the first in a non-closed linestring. | Line3D PreviousSegment(int currentSegmentIdx,
bool skipVerticalSegments = false,
double tolerance = 0); | 1 |
6e5532c97fd6f2266242191712ca50d2 | 4e93312a8afdb76b32c5a79a08704f4b | Enter a parse tree produced by Java8Parser#packageName. | public class JavaBaseListener implements JavaListener
@Override public void exitPackageName(JavaParser.PackageNameContext ctx) { } | 0 |
338730bc061a68e6437524eea6ac553c | 1205810f4b9bde77c606d949b64639ed | Method to check whether the UploadAllInThisDirectory command can be executed. | namespace BobProject.ViewModel.Commands
public class SelectXmlExportFileCommand : ICommand
public bool CanExecute(object parameter)
{
return true;
} | 0 |
a4d0eae2ff6f25939ce16a40d1985a03 | 9f70e94687090c7b1dace1ee770bcbe0 | Mutation operator. Contructs a random subtree of the
passed depth and inserts it at a random node, replacing
the original contents at and below the node. | allData = ind.tree.allData
categories = ind.tree.categories
classToPredict = ind.tree.classToPredict
categoryLimits = ind.tree.categoryLimits
height = depth
newFullTree = GPDecisionTree(allData, categories, classToPredict, categoryLimits, 2)
newNode = newFullTree.root
nodeToReplace, par... | 1 |
e995b0e49d6105046cfe8e48082f477d | 63bdbb556ecfb5eb197204455d4bb7c5 | Check to see if GitHubRepositoryConfigurationFieldMappings property is set | namespace Amazon.Glue.Model
public partial class SourceControlDetails
internal bool IsSetRepository()
{
return this._repository != null;
} | 0 |
f4da2a1251d53c8a1b0ef0027a71b978 | 1bf5f7824da87db31a1469601429b294 | sets the focus to a widget's first child | public void setFocus() {
for (int i = 0; i < getTable().getRowCount(); i++) {
for (int j = 0; j < getTable().getCellCount(i); j++) {
if (getTable().getWidget(i, j) != null) {
TemplateWidget tw = (TemplateWidget)getTable().getWidget(i, j);
tw.setFocus();
return;
... | 0 |
2d0d778dc8013617cf61d7559353e48a | 49827c54494848870682ca1d007886e4 | retourne l'en-tête de la p-Ième colonne (1-based).<br/>
<br/>
<br/> | function HTML_entete_colonne($first,$action){
$html='<tr>';
if($first=='1'){
$html .='<td align="center" width="16%"><b>Nom</b></td>';
}
$html .='
<td align="center" width="12%"><b>Cabinet<br><i>(logiciel)</i></b></td>
<td align="center" width="12%"><b>Lundi</b></td>
<td align="center" width="12%"><b>Mar... | 0 |
73df1be075277c6e6135844f7e1ee3ec | 62f36143c8706b743878249b14188a8b | display the complete code listing in the console window | public class CodeGen
public void seeInstructions() { cf.seeCodeFile(); } | 0 |
9a054455a5487054be0583cc91f12561 | 7564fff0d24204650a163e647c414105 | Query the color stream auto exposure value. | value = None
enabled = bool(int(self._visa.query("DRO?")))
if enabled:
drx = int(self._visa.query("DRX?"))
value = drx if drx > 0 else None
return value | 0 |
81c4170256b520225da3370f0bd15d0a | 7ad3daa90e8ed4cf5eda1f5b2cdababd | 改变红包分配方式 | {
$data = $this->request_param;
if (!isset($data['red_min']) && empty($data['red_min'])) {
return json(['status'=>0,'msg'=>'缺少参数:red_min']);
}
if (!isset($data['red_max']) && empty($data['red_max'])) {
return json(['status'=>0,'msg'=>'缺少参数:red_max']);
... | 1 |
a1a1d6ee595399ed993b862d196718cb | bbe64e07bb8f60b172d6708775f7d561 | Calculate the scale transforms that have been applied to this element
and its ancestors, ignoring all other transformations. | from = { ...from };
to = { ...to };
const ancestorProps = ancestors
.map((a) => a.animatingProperties)
.filter((a) => a !== undefined);
let dScaleX = 1;
let dScaleY = 1;
if (ancestorProps !== undefined) {
ancestorProps.forEach((a) => {
... | 1 |
87687dc7257e16bf771751cc3a13cbc0 | 0334632fa4fc6cfe5fe26bd3bd2a9df5 | The Intent the [MviView] emit to convey to the [MviViewModel]
to filter favorite quotes against given query | class YelpRepository
constructor(
private val yelpRetrofit: YelpRetrofit,
private val yelpBusinessDao: YelpBusinessDao,
private val yelpBusinessMapper: YelpBusinessMapper,
private val yelpBusinessCacheMapper: YelpBusinessCacheMapper,
private val yelpReviewDao: YelpReviewDao,
private val yelpReviewMapper: Ye... | 0 |
e3a01e2a4b6e35696e18d962cca25215 | a853d727bed2ffc1c98e0536a5c20046 | The URL to an image which can be shown in an "about features" dialog (32x32). | public final class OpEnvironmentManager
public static String getAboutImage() {
return ABOUT_IMAGE_MAP.get(getProductCode());
} | 1 |
d80b79868bf89ac9b016d1078d1f1949 | 7c81d640b7f606d0f4822eea41a8aed7 | Saves the request root. | void setRootRequestId( String rootRequestId ); | 1 |
10d472c66284b7d2cc5f921b9a3cf962 | 1ff2b60f86bc03fe64c13e45e6f6303c | FOR DEV STAGE ONLY. SHOWS DEBUG_TOOLBAR TO EVERY VISITOR. | def custom_show_toolbar(request):
return DEBUG | 1 |
1d714b62545923762c501fb6a256e06c | 394abab475ce63c479623fda8dfed80c | starts the asynctask to load the storylist | fun startFetching() {
NewsAsyncTask().execute()
} | 1 |
a14d1fabef58fad52ec63f6cb28c923d | 3f1262c499854d1bdd3d023ed9741427 | GetGasFeePolicy returns gas policy from the state | func GetGasPrice()(string,error){
callFunc,err := New("eth_gasPrice",nil)
if err != nil{
return "",err
}
var gasPrice string
err = callFunc.EthClient.Call(&gasPrice,callFunc.Method)
if err!=nil{
return "",err
}
return gasPrice,nil
} | 0 |
78b5107e9d5e72b86de9e0b5fc1132ef | dc4836a943fc73a7793b263ed7d0e611 | 返回将字符串转换为它等效的 16 位有符号整数。如果转换失败则返回默认值 | namespace AimaTeam.Extension
public static partial class StringExtensionParser
public static int ToInt(this string src, int defaultValue)
{
return src.To(defaultValue);
} | 0 |
b9c1c37992f3644002603f6c248e1505 | b7b1930dfa823f4457d65cb415e23d93 | Metodo che controlla se le azioni inserite nel Branch sono compatibili con la struttura del
branch e gestisce di conseguenza lo stato al termine di quest'ultimo. | public class InserimentoCammino
private StatoCammino controllaCiclo(Entita daControllare) {
verificaPrecondizioni3(daControllare);
if(daControllare.getRami()[0].getStato().getStringaStato().equals(StatoCammino.NON_PERCORSO) || daControllare.getRami()[0].getStato().getStringaStato().equals(StatoCammino.FERMATO_DENTR... | 1 |
3557efa3e6601de003169c8e9ba7437a | 1d8d7790d4ca633379f218a3d68b5500 | Get all this project tags from Unity, using the multi-tags system. | {
#if UNITY_ANDROID
_plugin.Call("getAllTags", sequence);
#elif UNITY_IOS
_getAllTags(sequence);
#endif
} | 1 |
73b266d7343aef9188feacac21dc0dea | 35b94fddb1c64195ef0a64df15afe499 | Reads from the stream, skipping whitespace and comments. | {
var skipped = new List<Token>();
while (!this.Done)
{
var repeat = this.CommentOutLineComment();
repeat = repeat || this.CommentOutMultiLineComment();
repeat = repeat || this.SkipWhiteSpaceTokens(skipped);
if (... | 1 |
0f5d3ee754bce684a3cce1e0817df502 | 13b0732b7793cb2073d44d5e094f37cd | 该函数依赖集的所有属性
Returns:
set: 该函数依赖集的所有属性 | try:
return {el.name for el in cls.__attrs_attrs__}
except AttributeError:
raise AttributeError("Class is not decorated with attr.attrs") | 1 |
46fe5916a375c74cd2c498151125e285 | 6e761d868df41dea381b0cb6f6e40446 | Handles the upload progress changed event. | namespace UploadDownloadAzureBlobWithProgressSDK12
public class BlobStorageService
private void UploadProgressChanged(object sender, long bytesUploaded)
{
progressBar.Tick((int)GetProgressPercentage(uploadFileSize, bytesUploaded),
$"Uploaded {ByteSize.FromBytes(bytesUploaded).Meb... | 1 |
deb85ede5ae35d693decae0fcbf48ee7 | 1579614ba07d74a57d5e0b7ca7e2b832 | FindMatchStr : to find substrings matching a regex | namespace Cloudmersive.APIClient.NETCore.DocumentAndDataConvert.Api
System.Threading.Tasks.Task<FindStringRegexResponse> EditTextFindRegexAsync (FindStringRegexRequest request); | 1 |
237f35fcfe6c5633d239675666a3a5e0 | ac4bb3c64bf9a95f48a2a1ce7494272b | 使用Cookie存储验证码,默认使用Session
注意使用Cookie存储验证码时,必须提供长度为16位的加密密钥以对验证码值进行加密解密 | namespace HKTHMall.Web.Common
public class CookieHelper
public static void SetCookies(string key, string value, bool isEncrypt)
{
SetCookies(key, value, isEncrypt, null);
} | 0 |
856d3289dec829f446aefdd6159b97e5 | a9d292edf931d94794f0cf83f8d2fc92 | encodePrivateKeyToPEM encodes Private Key from RSA to PEM format | func encodePrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte {
return pem.EncodeToMemory(
&pem.Block{
Type: "RSA PRIVATE KEY",
Bytes: x509.MarshalPKCS1PrivateKey(privateKey),
},
)
} | 1 |
d8709a093b08bac63450c1b590b1f769 | 5e311cd30085211639f702a02d0d9ee5 | 对数字进行四舍五入 | {
if (dotCount <= 0)
{
dotCount = 0;
}
return Math.Round(num, dotCount, MidpointRounding.ToEven);
} | 1 |
4cc37ecc3e5c29b289ff4164f4722c04 | 5e55886a515ed5c90a51855830f549bf | スキルIDからスキル名を取得するメソッド | strSkillName = ""
card_config = copy.deepcopy(game_config.card_config)
if card_config.has_key(strcid):
card_config_info = card_config[strcid]
skid = card_config_info.get("skid", None)
if skid is not None:
skill_config = copy.deepcopy(game_config.skill_config)
... | 1 |
41b8eecd5b52cf7a3534a4784c55d32e | 09ed5a6abaae02fe78864aabf2396aca | エミッター数値をコントロールに設定 | class ProcessingPage(Page):
def update_emina(self, data):
self.emina_scale.set(data) | 1 |
2f02816bb25c05a2bab1cb483e1d8f60 | fb06d5bd6863defd27ed70479569dafd | Define a common method to determine the timestamp for all MousePoseTrackers. | public class BlockTensor
protected long timestamp() {
return System.currentTimeMillis();
} | 0 |
021a72cfe7c96293a92523d7a270e250 | f2ae4d028e2c1ca39652ebfd60967064 | Elimina os caracteres inválidos, indo para o proximo caracter até encontrar um caracter valido | theChar = self.nextChar()
while (not self.isValidSeparator(theChar)):
theChar = self.nextChar()
return theChar | 1 |
fa339f8e7ab5ce8d5519ff4689b0fbf2 | 3b7b044f1f1dde964a78f254d9aa8a1a | @brief Get the header of the running image. | {
mi_boot_image_header_type header;
uint32_t boot_img_hdr_size = sizeof(mi_boot_image_header_type);
int size, ret;
ret = fseek(img_hd, 0, SEEK_SET);
if (ret)
{
printf("Cannot fseek. ret(%d) - errno(%d)\n", ret, errno);
return errno;
}
size = fread(&header,boot_img_hdr_size, 1,img_hd);
if (size... | 1 |
3f20b47a38bf0937020be02f782d5d15 | 13e5dd372d0e631544f597c44e6673a0 | Creates a new <code>RequestProperties</code> instance. | if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
this[keys[i]] = properties[keys[i]];
} | 0 |
9458348f1c6528cb55093b1b2857d33a | c64e7fdb42929862654c9b6f5458a524 | Called to set up anything needed after m5.instantiate | public class KP_Unit_5 : KP_Unit
protected override void Awake () {
base.Awake() ;
} | 0 |
e174e24fd1a5a5a96a270784dba90b2a | a018081098d9efdde55d93a4a8af4fd0 | Display the list of the leave requests of the connected user | {
if(\Auth::user()->can('Manage Leave Requests'))
{
$leave_requests = LeaveRequest::where('created_by', '=', \Auth::user()->creatorId())->get();
$pendingstatues = LeaveRequest::where('created_by', '=', \Auth::user()->creatorId())->where('status','Pending')->get()->count();
... | 1 |
b52eb0d562ded17ea120f2096da738ea | 1beb7e79e5feeefa9820f54fce11e727 | Getting a 3 digit number in form of a string | def getThreeDigit(num):
if len(str(num)) >= 3:
return str(num)
else:
if num < 10:
return '00' + str(num)
elif num > 9 and num < 100:
return '0' + str(num)
elif num > 99:
return str(num)
else:
return False | 1 |
e778877e33a61cc8ab22dd3885ce35ed | 96dce5b5cfd67ee4d285f1d4c8117af4 | 获取所有物料明细信息,db已存在的和新增加的数据分开保存 | export class RedApplyComponent implements OnInit
getMaterialCallBack(erpmaterialdata: any[]){
if(erpmaterialdata && erpmaterialdata.length > 0){
erpmaterialdata.forEach((internalInvoicenoEle, index) => {
let materialInfo = new MaterialList();
materialInfo.active = false;
materialInfo.... | 0 |
1e0493250460a5ea229d4df4df6c915d | 747a8d94403c2db44a7e22a16affdded | Adds any event listeners needed for logging. | const sendLogFunction = () => {
const logInputMessage = document.getElementById('log_input').value;
const logMessage = {
message: logInputMessage,
};
this.simidProtocol.sendMessage(CreativeMessage.LOG, logMessage);
}
document.getElementById('log_button').addEventListener(
... | 1 |
94a01f8680755938176390a0b30916f0 | 78ace94d8de1245970247eac3f0d9e7a | 查询自己及所有子级渠道 | List<Org> findOwnAndChilds(Long id); | 1 |
4e6862caec1607c451ad7bf48e63b531 | 24a1b016d02a4ab24822b1f3fd3f6693 | Reduce the volume when ducking - otherwise play at full volume. | class CtypesController(VLCController):
class SubProcessController(object):
def vol_dn(self, *args):
newvol = self._vol_9_to_pc(self.state[1] - 75)
self.player.audio_set_volume(newvol)
self.marquee('Vol %s%%' % newvol, 3)
self._update_state() | 0 |
a0d4f1b50b736ccbf7a8e18df80475a2 | a468d49593c6bf77f7d2ada82eefe309 | 设置 IPv6 地址子网掩码前缀长度 | public class InternetAddressDetail extends AbstractModel{
public void setMaskLen(Long MaskLen) {
this.MaskLen = MaskLen;
} | 1 |
43d353354ebf4bd4b5077ad1e49467f1 | 0cc1571c6125ea404ff8b6a27b15aa49 | When all card matches are found, displays winning modal | function matched() {
openCards.forEach(function(card) {
hideCard(card);
});
openCards.forEach(function(card) {
card.classList.add("match");
});
matches++;
} | 0 |
0ea553393f374a42844db096916d851b | 5fb6871019b319f31b9f0f6899d9d28e | Gets called when user fails to sign up and shows toast. | public class LoginActivity extends AppCompatActivity
private void makeToastFailedText() {
Toast.makeText(this, "Try Again or Sign up", Toast.LENGTH_LONG).show();
} | 1 |
66297a88a03afb061e9222bed326d050 | 81378b0b11ee65772cf8afbf4e7a252e | turns 1s to 0s, and 0s to 1s | for(int n=num_bits-1;n>=0;n--) {
if (bits[n]==1) {
bits[n] = 0;
} else if (bits[n]==0){
bits[n] =1;
}
}
} | 1 |
c61d8da71f67049df4ec9adb739fda11 | 13c4155b417a8ce9721992649977e176 | load image paths grouped by label | image_file_list = sorted(os.listdir(image_dir))
label_map_file_list = sorted(os.listdir(label_map_dir))
image_paths = [os.path.join(image_dir, fname) for fname in image_file_list]
label_map_paths = [os.path.join(label_map_dir, fname) for fname in label_map_file_list]
return image_paths, label_map_paths | 0 |
64a0e098f943343c5030a056b84a7ef4 | 3d76672d686236b553c2ade6565472bc | update the used disk for the user | class mediarepo_Core_User
function getUsedDiskSpace() {
$db = $this->_repo->getDB();
$queryStr = "SELECT SUM(`fileSize`) sum FROM `tblDocumentContent` a LEFT JOIN `tblDocuments` b ON a.`document`=b.`id` WHERE b.`owner` = " . $this->_id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr ... | 0 |
42fe479148a3c12d065d8a84d153adc6 | 82fc914b86f352e66fdff612ea4a7549 | Draw the detection circle and point out all the neighbors | int x = 0, y = 0;
float radius = 0.0;
for (size_t i = 0; i < kpts.size(); i++) {
x = (int)(kpts[i].pt.x + .5);
y = (int)(kpts[i].pt.y + .5);
radius = kpts[i].size / 2.0f;
cv::circle(img, cv::Point(x, y), (int)(radius*2.50f), cv::Scalar(0, 255, 0), 1);
cv::circle(img, cv::Point(x, y), 1, cv::Scalar(0, 0, 25... | 0 |
a2104af2dd8d317706d6076d97d20d03 | 8b7680b37f7d33ac380f22e4fb2bae15 | Returns the managed configuration. | public abstract class ManagedConfig extends DeepObject
implements Exportable, ConfigUpdateListener<ManagedConfig>, ModificationObserver
public ConfigManager getConfigManager ()
{
return _cfgmgr;
} | 0 |
1fadc000f183f88381f472fd5ee5fd71 | 0ec512f4dfa9a908b145aff803cd06f9 | Check link is point-to-point link | public final class NetworkInterface extends Object
public boolean isPointToPoint() throws SocketException {
return hasFlag(IFF_POINTOPOINT);
} | 1 |
c8ab0a772615f7c899379932d05bb166 | cb7f785d0f484af2a3e957675c3f75eb | Shortcut that returns a list of StockTransactions for this product
stock. | class Item extends Model implements Authenticatable
public function stockTransactions()
{
return $this->hasMany(StockTransaction::class);
} | 1 |
a30716e185993d8b1c77022e031946b5 | 7c2bbcb96c7a1eef061caa74db724596 | Deserialize the content of broker node in zookeeper. | data = ""
with open_zk(zk_host) as zk:
if zk.exists(node_path, watch=None):
data, stat = zk.get(node_path, watch=None)
return data | 0 |
39d7573ae99d5cf5883982b4d3dab181 | c19ab6a34205dd15ea653ff54d840b06 | <p>telCmt1 を取得します。 | public class FileIOAddressBookCsvFormData extends ALAbstractFormData
public ALStringField getCompTelephone1() {
return comp_telephone1;
} | 0 |
d305cf34ce9943ba69fa2be061272693 | 730166e247509670e16ffb6bc15ba64d | Returns user input from the cli. | abstract class Core_Controller_Shell extends Controller
public function input()
{
return trim(fgets(STDIN));
} | 1 |
feaee6399a3ae4059d56f7f64882515b | 33709783b56e570ef9f74af5a3e5a26c | Returns the first control that is an instance of the given class,
or null if no such control exists. | {
if (!class_exists($class_name) && !interface_exists($class_name))
return null;
$out = null;
foreach ($this->groups as $group) {
if ($group instanceof $class_name) {
$out = $group;
break;
}
if ($group instanceof SwatUIParent) {
$out = $group->getFirstDescendant($class_name);
if ($out... | 1 |
a45ca4343ed107b73a26034e97980944 | eec427c8d626682cc76d8c81e08e6c9b | Returns a new object of class '<em>Behavioural Description</em>'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EClass getBehaviour(); | 0 |
fdb0bbf035b826505721cc3b4084e4b6 | 21256636d5e40f3dad340fd6ed2df855 | Creates an instance of [DeviceParametersBuilders.DeviceParameters] from the [Context]. | {
Validate();
return new ComAdobeCqScreensDeviceImplDeviceServiceProperties(
ComAdobeAemScreensPlayerPingfrequency: _ComAdobeAemScreensPlayerPingfrequency,
ComAdobeAemScreensDevicePaswordSpecialchars: _ComAdobeAemScreensDevicePaswordSpe... | 0 |
88e03e961cebd5831643d30ff8d3064e | 9fc818d52a16a582ee6ceb23b59d4c47 | Writes fasta sequence to specified path. | with open(path,"w") as fasta_out:
for category, seqs in sequences.items():
for i, seq in enumerate(seqs):
print(f">{category}_{i}\n{seq}",file=fasta_out) | 1 |
42753efc0b87a941ab03344ab15469ec | 646cc57878301290f800164686584271 | 根据车辆Id和迁移类型获取最新的迁移记录
车辆Id
迁移类型 | PageInfoDto vehicleNodeChangeQuery(Long id) throws ServiceBizException; | 0 |
a2ecd8002fca6b86081d0e211016dad5 | a0493dc7de902d8db6f3277051a22445 | 根据介绍主键ID获取内容主键ID | public class CustPerson
public String getBackContentId() {
return backContentId;
} | 0 |
4187354ff816232dd57bb2051f9319f8 | 7e3af4c5c17542f942495053deec1c08 | 打开右侧信息页面 | $(".right-base-mid-bottom").css({'bottom':'14px'});
$(".right-base-top .control-up").hide();
$(".right-base-top").animate({width:790,height:180},'500');
$(".right-base-mid-left").animate({width:395,height:294},'500',function(){
$(".right-base-mid-left").css({'border-radius':'15px 0 0 15px'});
$(".... | 1 |
8ae32578a85a8fe54e7b5a4b540794e9 | 05a5b4f0aefc2a7c7b2e9fe38bf8d4ac | 获取全部最新的数据 | public List<Goods> getLatest(); | 1 |
4f1249a89aa72e19e7011b3c3efea9eb | 70e21ac4678cc06d83f3b1c946afdacf | Test multi-column assignment from 2d arrays and tuples of 1d arrays | def test_numpy_2d(df):
A = df["names"]
base = df.loc[:, ["numbers"]].assign(num=df.numbers * 4)
B = base.to_numpy(dtype=int)
others = {"A": A, "B": B}
result = expand_grid(others=others)
A = df.loc[:, ["names"]]
B = base.set_axis([0, 1], axis=1)
expected = A.assign(key=1).merge(B.assign(... | 1 |
8ad0b84530daf744ec6caa22964b6503 | f844e0ddf60c0031dfa385d9faed8035 | <============================ DEVICE MAKER ==============================> | class DeviceUtil
fun getDeviceMake(): String {
return Build.MANUFACTURER
} | 1 |
d78494bac417c40db3b0016ecc728ec1 | 8e2a0556945e18e6a45095d233dd5ba2 | Add a pending user to a trip | request_data = request.get_json()
_db = DB()
_db.add_trip_to_roster(request_data)
return Response("", status=200) | 0 |
e59735dccb0fc38bba0f226b6613888b | dc2c3ea3f322f8d1433b4a6bfb106367 | Unregister from clipboard chain | static void vboxClipboardRemoveFromCBChain(PVBOXCLIPBOARDCONTEXT pCtx)
{
AssertPtrReturnVoid(pCtx);
if (vboxClipboardIsNewAPI(pCtx))
{
pCtx->pfnRemoveClipboardFormatListener(pCtx->hwnd);
}
else
{
ChangeClipboardChain(pCtx->hwnd, pCtx->hwndNextInChain);
pCtx->hwndNextInCha... | 1 |
b210f551113d66010227d8c849dae5cd | b1a2cd32679f1a307ac134bef525c7ed | LOAD SLIDE: This function loads a big page image and its description from the array when a relevant thumbnail is clicked | $("#slideshow").animate({'opacity' : '0'}, fade_interval, function() {
$('.slide.caption .quote').text(content[slide_current].quote);
$('.slide.caption .context').text(content[slide_current].context);
$(this).css({'background-image' : 'url('+url_base+DS+resolution+DS+content[slide_current]... | 1 |
37dc1431198f352c1614b3c17f9ec640 | bf8d19478ddb60fe605fcfeb005d6102 | Get Enrollment_Period_Data value | class Worker_Health_Savings_Account_DataType extends AbstractStructBase
public function getHealth_Savings_Account_Period_Data()
{
return $this->Health_Savings_Account_Period_Data;
} | 0 |
56f53499fca2b33a3507f29d2141aaa1 | 4c9a844a4ba68e98dc6d954514f43ab2 | Gets the state of the specified type. | namespace StateManager
public class Dispatcher
public IState GetState(Type type)
{
return stores.Get(type).StateReference();
} | 1 |
462ed4d8c8b0d517f6aaa7ce104721de | a57ab9bffd060483e613bd0237524c88 | Respond to the "Resume" item selection. | static void
HandleResume(void *pvCDCDevice)
{
tUSBDCDCDevice *psCDCDevice;
ASSERT(pvCDCDevice != 0);
psCDCDevice = (tUSBDCDCDevice *)pvCDCDevice;
psCDCDevice->pfnControlCallback(psCDCDevice->pvControlCBData,
USB_EVENT_RESUME, 0, (void *)0);
} | 1 |
508f6a42339c034fa42ff994e89ed02b | 319d7690153d2a5590146766222997e9 | 把所有数字推进一个数组中去 | var arr []int = make([]int, 10)
for N > 0 {
arr[N%10]++
N = N / 10
}
return arr
} | 0 |
f39859cb1330d3b6ba6972c794f57a2e | edeb62885a828c3dd8cf4beab01422ff | Copies the properties from the passed native constraint description into this
managed description. | if (null != getId()) {
what.setId(getId());
}
if (null != getActivationCondition()) {
what.setActivationCondition(getActivationCondition());
}
if (null != getDependencies()) {
what.setDependencies(getDependencies());
}
if (null ... | 1 |
8a0728bf891be7d73bfc571e9ffbeb05 | 8aa5a83066148f7e994bef0831415943 | Gets the value of the 'confidence' field | public class DateValue extends FieldValue<LocalDate>
@Override
public Float getConfidence() {
return super.getConfidence();
} | 1 |
1e074a2d8aabac84d8e290ce2f841557 | 74c9458e6073b187b610ac25bf8f9a00 | Creates a directory by {@link #createParentDirectories(Path, FileAttribute...) creating all nonexistent parent
directories first}. Unlike the {@link java.nio.file.Files#createDirectory(Path, FileAttribute...)
Files.createDirectory(Path, FileAttribute...)} method, an exception is not thrown if the directory could not be... | inline fun Path.createAllDirectories(): Path = fileSystem.createAllDirectories(this) | 1 |
e8d1c6913d35da1f9d8de31f8d5ec093 | 1fb5bec37826b6dd4298e68f600fb7a1 | construct new training set | {
Name = name;
Weights = new double[x,y];
TrainingCount = 0;
} | 0 |
c20df0b0f6fa184a610e140c101ecba6 | d79cfd0c0b8c6218a6db75ae831e9cb0 | Adds a move to the Pokemon | struct dexnode *new_dexnode = create_new_dexnode(pokemon);
assert(new_dexnode != NULL);
if (pokedex->head == NULL && pokedex->current == NULL) {
pokedex->head = new_dexnode;
pokedex->current = new_dexnode;
}
else if (pokedex->head == pokedex->current) {
pokedex->current->prev... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.