query_id
string
corpus_id
string
query
string
code
string
label
int64
d9d6d9dcb078dd8e226da6da8b482573
cf0b397ab21e665b2c67a852fba84f76
When clicking on the Set Current Page as Home button,
class App extends Component homeButtonClick() { this.setState({ currentPageSelection: "Home" }); this.setSideBar(); }
1
b8d43069ebd9324abfaa24b29a76b49f
ea00848c4677ca0b993cb70ca9d9b838
Enum subclass #inspect.
Enum_type_inspect(VALUE self) { char str[100]; MagickEnum *magick_enum; Data_Get_Struct(self, MagickEnum, magick_enum); sprintf(str, "%.48s=%d", rb_id2name(magick_enum->id), magick_enum->val); return rb_str_new2(str); }
1
2b41d673cf190b02cbd84bdf4e58d57d
bba15e7ee4939212292fd6c5ca977616
导入cer通讯证书,之后根据parambool判断是否导入根证书 是否导入根证书
command_import_sign_info = "java -jar -Dfile.encoding=UTF-8 {jiagu_360_jar} -importsign {keystore_path} {keystore_password} {alias} {alias_password}".format( jiagu_360_jar=options["jiagu"], keystore_path=key_store["keystore_path"], keystore_password=key_store["key_pass"], alias=key_s...
0
0ed018b70013206e79845e073b1d86e9
ee1478790ce07e0d8cea4ae2972f0eb8
Calculates time since decay of crop canopy
float FruitCohortFN::getDltTT(void) { return fruitPhenology->TT(); }
0
f5abe3c0c2912857181d9f3b074b8df7
63654cbe185fd4ea11e7d3b224f95da5
Returns the timezone choices. The choices are generated from the ICU function \DateTimeZone::listIdentifiers(). They are cached during a single request, so multiple timezone fields on the same page don't lead to unnecessary overhead.
function timezone_identifiers() { return \DateTimeZone::listIdentifiers(); }
1
c1053ec92a255a8570b105f8a51e4cd9
bfba140515a55a133498890cc6fee0d4
这里定义Demo默认请求的一些权限,用来检查开发时是否有漏掉配置 这些权限也不是圈闭必须,如果不需要某些功能是可以去掉的,根据自己需求以及理解配置
public String[] getPermissions() { return new String[]{ Manifest.permission.RECORD_AUDIO,Manifest.permission.READ_PHONE_STATE,Manifest.permission.WRITE_EXTERNAL_STORAGE,Manifest.permission.READ_EXTERNAL_STORAGE }; }
1
840b6a5f666d38f7a7eecfce1127072c
4876a74cf00555fe559f8e21796afaa5
Affiche la liste de niveau
class LevelController extends Controller public function index() { $listLevel = DB::table("level") ->where("available", "=", 1) ->get(); return view('level.list', [ "listLevel" => $listLevel ]); }
1
20cdc011b5d056ef9e517bf945f29bb8
f8bcbe88f1efb5f3149271a3787254a5
Gets the ``OsidSession`` associated with the activity lookup service for the given objective bank.
if not objective_bank_id: raise NullArgument if not self.supports_activity_query(): raise Unimplemented() try: from . import sessions except ImportError: raise OperationFailed() proxy = self._convert_proxy(proxy) try: ...
1
b88b2af9c13a8bf53403faffef94f5b7
ba8ebf06646ef3981b7405ea0fff0e54
java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br> <p>字段列表:</p> <li>id -> id</li> <li>enterpriseName -> enterprise_name</li> <li>enterpriseType -> enterprise_type</li> <li>enterpriseDomain -> enterprise_domain</li> <li>enterpriseProvince -> enterprise_province</li> <li>enterpriseAddress -> enterprise_address</li> <li>createUser...
String db2java(String dbName);
0
e34666a4e2c68e12b57508618223c182
86e0562fd112646f413d5648b369c6c4
checks if the decoded line contained an imported product
public class Cart private boolean getImported(String s) { return s.contains("imported") || s.contains("Imported"); }
1
c52412b1ae433db32a8c0cf18a49fd33
273b1c3a5a777bc83bd83774ab1d314b
初始化从欧洲告警平台获取并处理已恢复告警的定时任务
sql_alarms = "select * from alarms where IsBeOk=0 and Type!='monweb'" global dict_alarms dict_alarms = Sync_Db('id',sql_alarms)
0
53bab638b3e579dec37bc635ed10ff20
4e5a93a731a48f2c8ecb876edd02a174
Returns the meta object for the attribute '{@link kokoworld.kokoworld.IDescribable#getDescription <em>Description</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Documento_descripcion_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Documento_descripcion_feature", "_UI_Document...
0
98fa5287f6a871a7e35b71cb92b27a08
4d962723e0e546fdc233e2cc9228316e
Hooks into the sort/group options changes (editable list of sort/group descriptions)
for i,v in ipairs(g_BeliefSortOptions) do if v.Button then v.Button:RegisterCallback(Mouse.eLClick, function() BeliefSortOptionSelected(v); end); end end for i,v in ipairs(g_WorldReligionSortOptions) do if v.Button then v.Button:RegisterCallback(Mouse.eLClick, function() WorldReligionSortOptionSelected(v...
1
75fdb98092cc02319f114c8ee41c4205
79c135d68baadc80f77da891b8cdf59d
Update existing application on your one signal.
class Client(object): def update_app(self, app_id, payload, force=None): return self._update(app_id, payload, force)
1
8a40fd8ba33f234dc3bb5efe45cc5751
8c7881440cab13196b11044984c3e63b
建造新的物品,为每个建造的新物品都添加Tag
itemInfo={} itemInfo['position'] = self._tag itemInfo['wholeItem'] = wholeItem self.items.append(itemInfo) self._tag +=1
1
90380aae052acb7cd66693dd33a85536
94c177414e6fc35571405d8ddae0fe10
Liste des objets Representation concernant un Lieu donné
{ IList<String> lieux = (from p in _dal.GetAllPlanningElement() orderby p.DateDebut select p.MonLieu.ToString()) .Distinct().ToList(); return lieux; }
0
cec566843e709cfed6b9ce7b62a70fa2
ae5a724ebdda4db285199f229505183c
SECOND ATTEMPT
function LetterChanges2(str) { var newStr = ''; for (var i=0; i < str.length; i++) { var newChar; if (str[i] >= 'a' && str[i] <= 'z') { var charCode = str.charCodeAt(i); charCode+=1; if (charCode > 122) charCode = 97; newChar = String.fromCharCode(charCode); } else { newCha...
1
5f24c640bba689104f327c67ac499de9
9ea3918272fac2293cc21492a0c1991a
walks the high values up the triangle by adding the highest of the two values in the cells to below_left and below_right to the current cell. I.E 1 2 3 would become 4 2 3 returns the value left at the top of the triangle
height = len(grid) prev = [] total = 0 for x in grid: width = len(x) if width > 0 and height > 0: for x in range(width - 1): prev.append(0) for h in range(height): for w in range(width): if grid[h][w]: total += 4 ...
0
5bfc2e77edfcffb77ad8906b012c21c8
4316706181c0220b0f1348f2416123a8
Sets up the time-dependent change of the model's coloration.
{ for(std::vector<ColorPhase>::iterator i = m_ColorsChanging.begin(); i != m_ColorsChanging.end(); i++) { if(i->dir) { if(abs(i->colorToChange->r - i->destr) >= abs(i->amtr*dt)) i->colorToChange->r += i->amtr * dt; if(abs(i->colorToChange->g - i->destg) >=...
1
5e3653033cd55ab516445175ca002486
d1a73864d437ba946ff832ea208083ec
펫시터 펫 정보 조회
public PetProfileDTO select(String petId);
1
46f545547dd4a1bd6e4a8b26e3f503d8
2f898672fc70b5623aa0c499ebc8a508
Creates the python files from the QASM in specific locations
out = [] root = pathlib.Path(options['rootdir']) _create_int_type_file(options) pyx_files = set(root.glob('qutip/**/*.pyx')) if not options['openmp']: pyx_files -= set(root.glob('qutip/**/openmp/**/*.pyx')) extra_sources = _extension_extra_sources() for pyx_file in pyx_files: ...
0
e7ace1b9c888bb6026325d5bb3af478f
8271cbcf87a27e97df3ef5cad8e9f762
Governement ID Validator
class State extends ConstitutionOwner public function isGoverment(int $stateId) { return (int)$this->id === $stateId; }
1
4f426c2a1120c83dab6c6ae0d15a4853
9124dd4600e3170f0a1ee68a17eb6376
Update a sheet
sheet = self.sheet body = { 'values': values, } sheet.values().update( spreadsheetId=self.sheet_id, valueInputOption='USER_ENTERED', range=range, body=body).execute()
1
2fd4a572e2271b5fa090fe94bd207b4e
cad4db9a7aec76e3424a799db052eace
创建 TUN/TAP 适配器
int TAP_driver::alloc_tun() { assert(this->dev != nullptr); struct ifreq ifr; int fd, err; if ((fd = open("/dev/net/tap", O_RDWR)) < 0) { perror("Cannot open TUN/TAP dev\n" "Make sure one exists with " "'$ mknod /dev/net/tap c 10 200'"); exit(1); } memset(&ifr...
1
608826220f513d23adc8424ba6b45075
a1e71c6b047c9ecad81b1b97ed16c265
HIỂN THỊ danh sách Nha Cung cấp
namespace DoAnMonHoc.Controllers public class AdminController : Controller public ActionResult DS_NhaCungCap(int? page) { if (Session["TaiKhoan_Admin"] == null || Session["TaiKhoan_Admin"].ToString() == "") { return RedirectToAction("Login_Admin", "Admin"); ...
1
d56f385fc78e69086cfe3efa6d428a7e
5462ac11516865c488da36f9ccbf7657
<处理一条语句>子程序
{ if (TOKEN.GROUP == 100) { TableItem tbi; if (!SEARCH(TOKEN.VALUE.ToString(), out tbi)) { ISERROR = true; } else { if (tbi.GROUP != 100) ...
1
c501f6802c9ed9022700ae41db7b42ec
381c6956cda4a1b5c37d4700718121b6
Elimina tutti i voli verso un aeroporto, usata nel caso di eliminazione di un aeroporto dal grafo
public class MainApp public static void removeFlight(Date d){ if(voos.contains(d)){ Aeroporto orig = voos.get(d).getAeroportoOrigem(); Aeroporto dest = voos.get(d).getAeroportoDestino(); aeroportos.get(orig.getCodigo()).decrementVoos(); aeroportos.get(dest.getCodi...
0
e898e405588b41d1ccce2ef221ecc649
d029e9edb7ef3aae3f270db445db53a4
Turns the list of glosses into a list of units of overlapping glosses.
public class ScrollPanel implements ListSelectionListener, ActionListener public void setGlosses(final Vector v) { glossList.setGlosses(v); setScrollListIcons(); switchListButton.setEnabled(true); parent.setStatusBar(Helper.getTranslation(SC_DONE)); }
0
038e844e157c0ed51ce6de510249e5ac
f8128a8d953b07d3a7a1aa37180a75bd
Triggers when a skill execution device is selected from the UI
void OnSelectDevice(int num);
1
31277665af63231f3d9ace33d6c7a157
8bc142072993de99dc739aea80fa0f80
获取民主测评基础信息
@Service public class MajorTeamAssessmentServiceImpl implements MajorTeamAssessmentService @Override public List<MTALeaderBodyAppraisal> getAllDemocracyEvaluationByPId(String id) { return majorTeamAssessmentMapper.getAllDemocracyEvaluationByPId(id); }
1
7bf9c76b4e56c91bf94e63f0edbfba06
53e26e3ef30487bd47330aa41cdb7651
提取演职人员基本信息 提取演职人员信息,根据 generator 判断是否需要以生成器的方式抛出结果 Results:
def get_actors(min_user_cnt=10): cur_dir = os.getcwd() os.chdir(CRAWLER_DIR) cmd = [ "scrapy", "crawl", "eventernote-actors", "-a", "min_user_cnt={}".format(min_user_cnt), "-t", "json", "-o", "tmp.json" ] subprocess.run(cmd, stdout=subprocess.PIPE).stdout.decode("utf-...
0
96c16916479c642b7c6d104f7054e8e2
bea7a2de379c7224c8b6212039aed129
メール雛形の複製
$mt_dao = $this->mt->mail_template; $mt_dao->setValue("title",$this->f->getValue("title_inp")); if(is_array($rep_keys)){ $rep_data = ""; foreach($rep_keys as $key => $value){ if($rep_data != ""){ $rep_data .= ","; } $rep_data .= $value; } $mt_dao->setValue("rep_keys",$rep_data); }el...
0
ddc5030b790dcb9a39481c0684407f53
ee4c42561cac882e850d55b6db86bc24
Archive each of the files in the list with the given method
{ for (int i = 0; i < myList.Count; i++) { File f = new File(myList[i]); f.create(); } }
0
b9ff00d94240366e4a60606f1d1f97b6
a961bbf9fb3c21a526c5286e6c098027
以下的函数生成一个长度为0x500(合10进制数:1280)的cryptTable[0x500]
{ int c[]={0x00,0x33,0x66,0x99,0xcc,0xff}; int k=0; for (int r=5;r>=0;r--) for(int b=5;b>=3;b--) for(int g=5;g>=0;g--) table[k++]=((((c[b]<<8) | c[g]) <<8) | c[r]); for (r=5;r>=0;r--) for(int b=2;b>=0;b--) for(int g=5;g>=0;g--) table[k++]=((((c[b]<<8) | c[g]) <<8) | c[r]); int c2[]={0x11,0x22,0x44,0x55,0x77...
1
40dac53e7adc0d4955489813ce2744bf
103dfb292bbe2c415d98610d812a91dc
指定オブジェクト以下のSkinnedMeshRendererのリストを取得する
{ var materials = new List<Material>(); var skinnedMeshes = GetSkinnedMeshList(obj); var meshes = GetMeshList(obj); foreach (var skinnedMesh in skinnedMeshes) { foreach (var mat in skinnedMesh.sharedMaterials) { materials.Add(mat); ...
0
f62f118434bcfb1ba89b916acdc6c0fe
4011e85941a2d6285d4686baafc7500f
Returns the state of the value for a given key. If the value does not exist, prepares a latch to control availability of the value.
if (!currentTransaction.acceptRead()) { throw HotRodClientTxStateException(currentTransaction.statusToString(), "get"); } void* retVal = nullptr; const void* value = nullptr; SynchronizationAdapter& sa = transactionTable.getAdapter(currentTransaction); TransactionContext& tc = sa.getTran...
0
a739e30d902e65dc95fc659155cc4d13
3cdbfc7e66e0490f4b0ad0378b801949
根據oldModel值為條件更新為newModel(帶插入系統日誌)
namespace Clover.Permission.DAO partial class LogDAO : Clover.Data.BaseDAO public bool Update(Log model) { return Update(null,model); }
0
9770153fc0979d2906daf1adaecb7633
b7a97e6b64fad91e5b30823cb6429bf4
Nullify the count property.
public final class NumberCounter synchronized public void clearCount() { this.count = 0L; }
0
f27e811f0a5b6adf0fa9d4704f00314d
2a5f57e93267beb325471a3343334d74
r""" Returns the decomposition of self. OUTPUT: -- a list of permutations
class OrientablePermutationIET(PermutationIET): def decompose(self): l = [] test, t = self.is_irreducible(return_decomposition=True) l.append(self.__class__((t[0],t[2]))) while not test: q = self.__class__((t[1],t[3])) test, t = q.is_irreducible(return_decompositi...
1
d1249c124f93150cb82914c9996bf493
1be77f30c618132ec219b5a0d9c6e889
接続ポイントを間引く処理
connectorMemory.Add(cn, cn.Point); cn.MoveBy(new Point(point.X - cn.Point.X, point.Y - cn.Point.Y)); cn.Enabled = false; }
0
ffa240e2408ef918a97f2591a99d439a
654fd97572160b65d0d523102a594e5e
Sets the custom_tags of this DeleteParam. 自定义字符标签,用于对服务实例中的数据进行条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。
try: params = request._serialize() headers = request.headers body = self.call("DeleteTags", params, headers=headers) response = json.loads(body) model = models.DeleteTagsResponse() model._deserialize(response["Response"]) return...
0
e7bc0fd60a706a19ec8c97a5e658272e
d705f887bcbb3dfb18cfd2bc25894014
If the number of results found for a specific query is less than this number, Typesense will attempt to drop the tokens in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set to 0 to disable. Default: 10
namespace Nest public partial class DeleteByQueryDescriptor<T> : RequestDescriptorBase<DeleteByQueryDescriptor<T>,DeleteByQueryRequestParameters, IDeleteByQueryRequest<T>>, IDeleteByQueryRequest<T> public DeleteByQueryDescriptor<T> Size(long? size) => Qs("size", size);
0
b046e47ab89222c7daf84382132ebe4a
9588409aac4da83c8f948e67ed3c2415
This method reveals if the gadget is stationary or not(that is whether it moves within its bounding box or not). implemented by: Saadiyah
double[] position = get_position(); if (Math.abs(xf - position[0]) < 1.5 && Math.abs(yf - position[1]) < 1.5) { return true; } return false; }
0
8ae5b361d6df0e1aa1d7ba0770d1601e
f8d30ab896d0e7582d52fdb38edb4803
Connect slider to according sensor evaluation parameter.
{ log.Debug( "EvalChartInput - Entry" ); m_hitPt = 0; if ( rbUsePts.Checked && rbLivePt1.Enabled && rbLivePt1.Checked ) m_hitPt = 1; if ( rbUsePts.Checked && rbLivePt2.Enabled && rbLivePt2.Checked ) m_hitPt = 2; if ( rbUsePts.Checked && rbLivePt3.Enabled && rbLivePt3.Checked ) m_hitPt ...
1
62220c399db51ffe4707d4c1eb7ac5a3
d3a5995a8ae0e01681a45dd8b3fb3be9
Tarea encargada de gestionar nuestro dispositivo MIDI.
navigator.requestMIDIAccess().then((MIDIAccess) => { this.setState({ inputDevices: Array.from(MIDIAccess.inputs.values()) }); this.state.inputDevices.forEach((device) => device.onmidimessage = this.onMIDIMessage.bind(this)); }); }
1
1d07e5b232298a5737c53e8adec15103
d90a10bbec045a8e53e901f5d3892560
开启节拍器
piano.step = 0; clearInterval(piano.timeRuner); piano.timeRuner = setInterval(function(){ piano.step += 100; piano.timeCount = piano.step; },100); }
1
9bb4ac267addd6b8b7de2b82bc5c683a
485c8a9a73b96dff1bc5b6fae78c008b
这是一个只包含css/js等引入的公共头部
if($type == "ad"){ $css = " <link rel='stylesheet' type='text/css' href='".root."control/ku/css.css'> <link rel='stylesheet' type='text/css' href='".root."control/ku/extend.css'> "; $js = " <script type='text/javascript' charset='UTF-8' src='".root."control/ku/js.js'></script> <script type...
1
98c6339a056374e2ea6417e08dff2fec
06df62e3cc6e4a46fa4ba6305545c9d1
Apply Test Time Augmentation (TTA)
def tta_transforms(): return [ ShiftScaleRotate( shift_limit=0.2, scale_limit=0.2, rotate_limit=20, border_mode=2, p=0.5 ), ]
1
7aa0582a86c15301ca293d998b9fdb38
f4a95c7a5e1cae4929a2810aaad13469
Performs the logout and disposes the HTTP client.
final HttpGet httpGet = new HttpGet(LOGOUT_URL); sendMessage(handler, LOGOUT_START, null); pool.execute(new Runnable() { public void run() { try { HttpResponse response = httpClient.execute(httpGet, httpConte...
0
fd7f79448bb72f529592eb37278a696c
61bf388d6d984c0eb5f45ee289d3c69f
r"""Write blocks of data to a file. This function wraps Lav_serverWriteFile.
class Server(_HandleComparer): def write_file(self, path, channels, duration, may_apply_mixing_matrix=True): _lav.server_write_file(self, path, channels, duration, may_apply_mixing_matrix)
1
7d13241c26113df633a7ab9e712750d5
6c8762d437a92d577504d5c539f547ef
Compute the un-centered covariance of the unfolded input. In the notation of https://arxiv.org/pdf/1602.01407.pdf, this computes Ω from equation (32) for KFAC, but using the unfolded input for transpose convolution.
x = (wm.unsqueeze(-1) * spxy).sum(-2) centered = spxy - x.unsqueeze(-2) return x, _covcalc(centered, centered, wc)
1
430e7ecf8dfff7c6009306f275335b27
8582518286af5c02f854a922ebaf02dc
XORs message based on input Key , if the message's length is longer than the key , then the key will repeat
size = len(msg) result = [] for i in range(key): t = i while t < size: result.append(msg[t]) t += key return ''.join(result)
0
1212c7daaa57b45d555764979b5d7593
2d7a663dea1da12158de2c13b2236b96
Returns the facets from the response in a form of a multi-dimensional associative array, e.g. array('category' => array('Sports' => '', 'News' => ''));
public function getFacets();
1
ac4233c8f33d0724f4b9c2c9f74dfb6d
59d68ffde0e4d180f118d83996346af5
rejects URLs with a subpath that is also a section head candidate
const path_to_try = event.target.value; const base_path = path_to_try.match("(.*\/r\/)?")[0]; let tryUrl = path_to_try; $.ajax({ type: 'HEAD', url: tryUrl, success: function() { location.href = tryUrl; } }).fail(function() { location.href = base_pa...
0
9b237dd30fd56d0a3a81aa7331a3d26c
0159ae52813435cf3ac6661a6f6bb0c1
按类型统计发电量
List<StatProdMountByTypeDto> statProdTypeMountByDay(Map<String, Object> params);
1
96f8e7999c4cae2a92b08ea3580e7a00
987717928fa5407b0e681c3872616276
1シナリオの情報を辞書型で返す
class MovieData: def scenes(self): return self._scenes
0
75ae4766557ffea1217193c3d741b5c9
e263ad380c953c5feb6234a9bce661ef
Set amount applied.
class LoanApplys implements \Interfaces\ILoanApply public function setAmount( $amount ) { $this->_amount = $amount; return; }
1
be0d884d571c6cc02887fafa8521c4fd
9d9216cd93b34035af5eed13790408c6
Exponential function without over/under-flow. Works with arrays.
class BC public static function epow($val, $scale = null) { $scale = static::getScale($scale); $retval = static::add(1, $val, $scale); for ($i = 0; $i < static::$iterations; $i++) { $iplus = static::add($i, 2, static::$internalScale); $retval += static::div(static::po...
0
0aeea4b49cbce21c85b1509f83c9b2ca
a4a6388a1623b8703ae3f03f02369f1b
Get the pair from the list
class HighScore: def get_pair(self): self._lock.acquire() pair = (self._value, self._score) self._lock.release() return pair
0
e6f709fd4ff349b75a543e632828a119
24708458940b12a4355b768161870312
checks if client input is greater than threshold value
{ float resultValue = (passedInput.Value >= passedThreshold.Value) ? 1 : 0; INeuronOutput result = new NeuronOutput(resultValue); return result; }
1
bf8a6f80a8450178aa491b724dbd7a63
3948cd1c7bf309fb25fa0dd0312ce710
The rate policy to use when sharing bandwidth. Allowed values: fair (default value): Share bandwidth equally with other traffic. Do not share bandwidth. Aspera recommends that you do not use this setting.
class GetShareResult: def data_policy(self) -> Optional[str]: return pulumi.get(self, "data_policy")
0
2657914d7b00be0271f92663a358c0ea
327f0c9e855b18eadb025f702c4a0d18
Defines the *Panasonic V-Log* log decoding curve / electro-optical transfer function.
def oetf_HLG_BT2100(E, constants=BT2100_HLG_CONSTANTS): return oetf_ARIBSTDB67(12 * E, constants=constants)
0
ab59c2392c3f13690e04d472926283cd
6d784e79036eb81c0c95113df19b56e3
Кэширование списка бана.
class cache_api public function ipbanned() { $infos = $this->db->select('', '`ip`,`expires`', '', 'ipbannedid desc'); setcache('ipbanned', $infos, 'commons'); return true; }
1
ce6f8349df6914737b9900621ff1e7e0
3a9215a793fbcb040a871549c42b6772
What photos are in the queue to be sent?
Class Photographer_model extends Model public function getPhotographQueue($per_page, $offset, $type, $sort = FALSE, $direction = NULL) { $this->ci->load->model('image/image_model'); $this->db->start_cache(); if ($type == 0) { $this->db->from('inventory'); $this->db->where('photo_queue', 1); } else if (...
1
3e3cfbfb03b87b3c1bac9d4f3b8a2148
6314923fabd019e5870cd6f1f5042692
This adds a property descriptor for the Role Name java lang String feature. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CurvePropertyType_role_feature"), getString("_UI_PropertyDescriptor_description", "_UI_CurvePropertyType_role_feature", "_UI_CurveP...
1
e71c0c12ce5f0452f867a678f5cac0c3
3db8c948072764df0a05282ae60bf7e3
print the story number, title, category, and upvotes onto a single line
size_t space_loc = line.find('>'); string article = line.substr(0, space_loc); string categories = line.substr(space_loc + 1); vector<string> categories_list; try { split(categories, ' ', categories_list); } catch (out_of_range &) { return; } map<string, float> *supercats_map = new map<string, float>; fo...
0
dcf46452596376455c291df52eea7490
b8acd4934195da5ef201def5148b9a87
Asynchronously Retrieve Deleted Timesheets, with support for cancellation.
namespace Intuit.TSheets.Api Task<(IList<TimesheetsDeleted>, ResultsMeta)> GetTimesheetsDeletedAsync( TimesheetsDeletedFilter filter, CancellationToken cancellationToken);
1
304d043301684ff98ee95995961c3263
fc3a721ece02f9af2381ec4bf390ddd4
Returns true, if the given user agent is suspected or known to be a feed reader.
public class FeedManager public static boolean isFeed(String content){ return (containsAllMarkers(content, rssMarkers) || containsAllMarkers(content, atomMarkers)); }
0
ef0cc61808cf4d83c00542c0355e45a7
db06cf06bf29b37e8704795c55e1fde0
将list转换为string,并去掉\n
def list_list2string(lines): dlines=[] for line in lines: dlines.append('\t'.join(line)) return dlines
0
4f2228c66ff8bd2fc94ecd83700d2253
9a61dd7e64700fe4ed22ea01c6970407
Get the part of the response before the end sign
def extract_preview(body): until = body.find(DELIMITER) return body[:until]
1
0e9a7a9e5559dff3a239d89fba2bc2ca
f20163f704fb20d01a1fdf4b3abf5d79
Tests if the driver successfully navigates forward.
checkWidget(); if (!IsLinux) return false; int[] result = new int[1]; int rc = webBrowser.QueryInterface(nsIWebNavigation.NS_IWEBNAVIGATION_IID, result); if (rc != XPCOM.NS_OK) throw new SWTError(XPCOM.errorMsg(rc)); if (result[0] == 0) throw new SWTError(XPCOM.errorMsg(XPCOM.NS_ERROR_NO_INTERFACE)); nsIWebNavig...
1
942f53caaff9074e19134378b689da81
0f8d39e3e8fe883c9854b7d39db60906
Reset the flush machine's rules, current_index and pause registers
class Scanner(object): def _reset(self): self._bus.set_flushing(True) self._pipe.set_state(gst.STATE_NULL)
0
5c1e3a45822e71f98c4654a8a31cadec
2be8d9d3b24903b8d86abf743bf893fc
Private method to determine equality of data
class Data(object): def __eq__(self, rhs): if not isinstance(rhs, Data): return False if len(self) != len(rhs): return False for key in self: if key not in rhs: return False if not (self[key] == rhs[key]): return Fal...
0
3da0794e8abefd678f10437f69a8ae27
785f2d625ad5ca8e8fa13ca1b7a1d38f
Sets the database param from either the environment variable or params passed in by behat.yml, params have precedence over env variable.
class DMS_Db_Adapter private function setDefaultDbParams() { if (!Zend_Registry::isRegistered('dbParams')) { $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini'); $this->_dbParams['adapter'] = $this->_newAdapter = $config->db->adapter; $this->_dbParams['params'] = $thi...
0
1f0f468d6c9ad67cfbcd0c22433c197f
e16cef5d5129855388cd16c0ff5abcb5
Enable loading data grid using AJAX
namespace System.Web.Mvc public static class HtmlExtentions public static MvcHtmlString DataGridAjax<T, TBaseViewModel>( this HtmlHelper html, DataGridParameters parameters) where TBaseViewModel : BaseViewModel where T : IDataAndColumnProvider<TBaseViewModel> ...
1
d184223f681399c7e2d582878594ba3e
dc34dde44d253580e4d01196eff59f2b
Gets the left_delivered_count of this EmailStepStat. # noqa: E501 delivered count (left side) # noqa: E501
void unsetNumberDelivered();
0
0e51375a6bd670983b26432781685825
972b4f49530677a7e71873eacb9f98af
set the objective function coefficient of a ranked variable
void setObjective(int index, double value);
1
8aaa1d14844683f095398efa7f7f46dc
ae9462b6e2aaa1812ee5c7f541badf75
função que rezeta o vetor principal se o jogador decidir fazer uma nova partida.
function reinicio(){ for(i = 1; i <= 9; i++){ arrayImg[i] = verifica(i); } for(j = 1; j <= 9; j++){ document.getElementById(j).src = "imagens/"+"branco.png"; } jogador = 'x'; jogada = 0; }
1
2590c0e78f7ef12f8fbd824a2d2943d6
97ca863efab425a3e084d9c65686aa85
3- Write a program and ask the user to enter the width and height of an image. Then tell if the image is landscape or portrait.
fun isImageLandscape(imagePath: String): Boolean { val aspectRatio = getAspectRatioFromImagePath(imagePath) val res = aspectRatio.split(":").toTypedArray() val width = res[0].toInt() val height = res[1].toInt() return width > height }
0
a8dfdea904dac32908149ce4fd8161f4
26ff5cb46f12a8b9e3acfed181ab15ac
Rysuje kontury wszystkich pokoi zawartych w mapie pokoi
{ Texture2D capTexture = SpriteFactory.GetRectangleTexture(TileSize / 2, TileSize / 2, new Color(139, 188, 204)); for (int i = 0; i < CurrentRoom.WallCaps.Length; i++) for (int j = 0; j < CurrentRoom.WallCaps[i].Length; j++) { var posit...
0
40722d02b58c38955c31bd5a25d08006
af4572c38efa06ffe353839c0c7b48a5
Check if we received a json body
class Vf_Request public function isJson() { return isset($_SERVER['HTTP_ACCEPT']) && (strpos($_SERVER['HTTP_ACCEPT'], 'application/json') !== false); }
0
b03cc619555b4013c93dd4204f544fbf
dda15b7831edcd08b713bb7292884306
Set the duration to a date range relative to now.
public class account_detail extends AppCompatActivity public void setDaysRangeFromToday(int days){ Calendar end = getEndOfDay(null); long end_time = end.getTimeInMillis(); end.add(Calendar.DATE, -days); long from_time = end.getTimeInMillis() + 1; setTimeRange(from_time, end_time)...
1
7ee3069e704c21d6ce829ab7db7c87cf
6ff42ada779ff44d1cf470e0c7825ea4
지급/공제항목을 추가하는 메서드
itemInfo.setInstMainId(this.instMainId); this.getIntItems().add(itemInfo); BigDecimal newAmt = this.getAmt().add(itemInfo.getAmt()); BigDecimal newPrncSumAmt = this.getAccumuAmt().add(itemInfo.getAccumuAmt()); this.setAmt(newAmt); this.setAccumuAmt(newPrncSumAmt); ...
1
29acfba6d9e333924b8b2c825ae9587e
3f936afb3da31880a505242f0a10eab6
Creates in this {@link TestBundle} same class as it exists in given {@link ClassLoader}. Note, that {@link ClassLoader} should be able to provide <code>*.class</code> resource.
public <T> Class<T> defineAndLoadClass(Class<? extends T> type) { String name = type.getName(); try { Class<T> c = (Class) loadClass(name); if (c.getClassLoader().equals(this)) { return c; } } catch (ClassNotFoundException e) { } try (InputStream input = type.getClassLoader() .getResourceAsS...
1
6857d64dcebbbb80b528c7913669445b
b37269b4bc4094070839e22f6b55c101
Returns the meta object for enum '{@link net.gexf_1_2.gexf.EdgetypeType <em>Edgetype Type</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EDataType getEdgetypeTypeObject();
1
f93483b264e43d320a047c23a835952a
d0edd4dc66d0289952da0ac2f1e23824
Devuelve el colectivo creador del proyecto
class CntExcel: def get_proyecto(self): return self.v.d_proyecto
0
b349c79d19fd13b1673c501442c8ca89
78762414f8261ab99ad2ccf1776d9f87
This test ensures that we cannot globber changes by performing updates with invalid versions.
setCurrentId(-11); assertEquals(-11, getUpdateHandler().getLatestId()); setVersion("3.0.0"); UpdateSettings.UPDATE_STYLE.setValue(0); HandleUpdate update = new HandleUpdate(); getUpdateHandler().addListener(update); byte[] b = readFile(-8); PEER.send(Updat...
0
907fb68ab9b46acbadf88d6b3660b330
36a9359a589c3861abd56920ccd0def9
see: https://stackoverflow.com/a/49601444
def _get_terminal_size_windows() -> Tuple[int, int]: try: import struct from ctypes import windll, create_string_buffer h = windll.kernel32.GetStdHandle(-12) csbi = create_string_buffer(22) res = windll.kernel32.GetConsoleScreenBufferInfo(h, csbi) if res: ...
1
5cb040320e6d571564527f122afe18ce
22b87b0810ff3b9c1005307ba70b1ca7
Ändert den Status einer Bestellung auf "In Arbeit"
if( $this->model->order_status != OrderStatus::OrderPayed ){ return false; } $this->model->order_status = OrderStatus::OrderInStock; return $this->model->save(); }
0
e885097e97402bb4b502547e09b74a7a
b7b6ee6d72d7718dfca6eaf019cd2812
Create profile session.
self._primitives = SessionPrimitives( profile_name=self._profile_name, aws_access_key_id=self._aws_access_key_id, aws_secret_access_key=self._aws_secret_access_key, aws_session_token=self._aws_session_token, region_name=self._region_name, b...
1
32e23a111d8fdaa1b08a6046942eba76
ce6f3f962cf50b89018b954201112539
获取未开户的客户
List<Customer> getCustByNoAuth();
0
4e15646bdf0a8d0a9b6386ce352d1551
197aea2a18867834ab5a16b543d665e8
Returns parsed selector by given index
class ShoppingListPage public static function getOrderSelectorByIndex($index){ return "//tr[contains(@id,'product')][$index]"; }
1
a069b70a66c2f509d58a4dccae3030c6
432b97953322b734c819518710c62090
Sets which mixer group the voice's output will be routed to.
namespace Exodrifter.Aural [Serializable] public class TransientParams public class Factory public Factory MixerGroup(AudioMixerGroup mixerGroup) { this.mixerGroup = mixerGroup; return this; }
1
f63969116f13d3f6e4299cc6a5c2bc73
787266d56af8548a5645c6949d6b5929
Starts the Autotuner instance.
{ NurApi hNur = sender as NurApi; try { isAutoTuneSupported = true; this.Enabled = true; CreateListOfPhysicalAntennas(); UpdateAntennaSelection(); UpdateAntennaTuneSettings(); } ...
0
5e94c820b15eec54b9933a8e247d4001
ceb7bf94da83987bd9b2a458aa4fbf75
Lanzamiento Proyectil
void Player::disparar() { mis_proyectiles.push_back(Proyectil(centro.first,centro.second,1)); }
1
3248061bacccaa68f0b2f8ed9fc6c122
f770ce0df12abec6751caf798c39a808
@brief Método que busca um funcionário pelo seu ID.
{ int index = -1; m_pCS->enter(); for(int i=0; i<m_count; i++) { if(m_pStaffList[i].ID == ID) index = i; } m_pCS->leave(); return index; }
1
f48a50dcc635d67301d21a0f2e976ab3
9f1bcd2bace4644655a383735e78273c
Gets the item on which the click event occurred.
namespace Charites.Windows.Mvc.Wrappers public static class PivotItemEventArgsWrapper public static PivotItem Item(this PivotItemEventArgs e) => Resolver.Item(e);
1
9a2e480e0ea965617150b0603c19f316
52936bb520644fbabb0e3fe20963fbe9
显示规则编辑页面
{ $Auth = new \auth\Auth; $userinfo = session('admin'); $uid = $userinfo['id']; $res = $Auth->check(MODULE_NAME . '/' . CONTROLLER_NAME . '/' . ACTION_NAME, $uid); unset($userinfo); if ($res) { $id = input('id/d'); $info = Rule::get($id)->getDa...
1
572ee02c01c68efaef6f7335032a4657
0ce3cdf199d488034cd696a7a2b25349
Add a profiler record using a specified time
start_time = time_usec() _log_event(profiler_file, ph="B", ts=start_time, **_get_base_info(name), **kwargs) return start_time
1
0f4a80cfc2ff57530eeb2bae348d031e
dce167daff76a84db31a33cb4ef1b720
今回のプレイヤーの結果をNCMBに保存する
public class UserAuth : MonoBehaviour public void save() { NCMBQuery<NCMBObject> query = new NCMBQuery<NCMBObject>("HighScore"); query.WhereEqualTo("Name", PlayerPrefs.GetString("NickName")); query.FindAsync((List<NCMBObject> objList, NCMBException e) => { if(e == null) ...
1