query_id
string
corpus_id
string
query
string
code
string
label
int64
552d475a2fa29706f8f6d66689e2a262
653023577232a284aa4a1dd282da2d08
Adds the creator to a Document.
element = self.get_element("//meta:initial-creator") if element is None: element = Element.from_tag("meta:initial-creator") self.get_meta_body().append(element) element.text = creator
1
37bf51ea362fddc09855cdd705146e32
4b3b46ad2ce4a97d697d29a7abd087bf
This function performs a simple moving average between the last 9 elements and the last one obtained.
def ema(avg, vals): if len(avg) == 0: avg.append(vals[-1]) weight = 0.9 avg[0] = avg[0] * weight + vals[-1] * (1.0 - weight) return avg[0]
0
4a446a5a6cd13366504bfc71536b1be7
3cb18b1dc50294e80f2dd6afe69f05a1
Ignore messages not in groups
class MUCBot(slixmpp.ClientXMPP): def muc_message(self, msg): if msg['mucnick'] != self.nick and self.nick in msg['body']: self.send_message(mto=msg['from'].bare, mbody="I heard that, %s." % msg['mucnick'], ...
0
831961c6c595cffa944be5642a89dd97
fd9e3616a941a8f71e2e5973551f841f
Lists all EvaluationSupervisorNotification models.
{ $searchModel = new CrmNotificationSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
0
a863e1081980c50c1ff1240d95d2428a
5f731ad3a47381efb68ecf343b08fb75
(可选)设置配置文件路径,默认在classpath下,此设置必须在DB被调用前。
public class EhCacheManagerFactoryBean implements FactoryBean<CacheManager>, InitializingBean, DisposableBean public void setConfigLocation(Resource configLocation) { this.configLocation = configLocation; }
1
159761bbfd14f408cc9a810bd52e6b62
424831e0c753200cceb4c8f49c9c70a4
Test 1: Conversion Gregorian -> Julian and Conversion Julian -> Gregorian
public class TestFrenchRevolutionCalendar extends TestCase public void testConversions() { FrenchRevolutionDate[] rDates={ new FrenchRevolutionDate((byte)1, FrenchRevolutionMonth.VENDEMIAIRE, 1), new FrenchRevolutionDate((byte)14, FrenchRevolutionMonth.NIVOSE, 4), new FrenchRevolutionDate(...
0
9e5ddcee8be5eb3c640e215ac8138790
8ec38fbce0a5229f00732f018d124c94
calculates seconds since the beginning of the day from a text time
{ int len = 0; int i; int factor = 0; int num = 0; int retVal = 0; char buffer[2]; len = (int) strlen(timeString); buffer[1] = '\0'; for (i = len-1; i > 0; i--) { buffer[0] = timeString[i]; if (buffer[0] == ':') { } else if ((buffer[0] >= '0') && (buffer[0] <= '9')) { switch (factor) { ca...
1
8bda1542cd0b145969c28a35b2b178fd
2b06e9e909688445583f328efd9a6a22
批量增加员工角色 See: https://ding-doc.dingtalk.com/doc#/serverapi2/dnu5l1 POST https://oapi.dingtalk.com/topapi/role/addrolesforemps?access_token=ACCESS_TOKEN
class RoleService extends Provider get writeAPIs() async removerolesforemps(opts = {roleIds:"",userIds:""}) { return this.fetch(await this.fg({ method: 'POST', url: `${this._apiHost}/topapi/role/removerolesforemps`, data: opts, ...
0
3c8a4049e99ae1df8868c84df239fdb4
7369d72797f2f05e51d5ca35ea612c15
Load information models into the address space. Also register classes, to be able to use the respective Java classes with NodeManagerUaNode.createInstance(). See the codegen/Readme.md on instructions how to use your own models.
public class DemoclesRegistrationHelper implements IRegistrationHelper public void registerMetamodels(ResourceSet rs, IbexExecutable executable) throws IOException { FeatureModelConcisePackageImpl.init(); FeatureModelSafePackageImpl.init(); if(executable instanceof FWD_OPT) { Resource res = executable.getReso...
1
5fdf0ac52f08f7d646e57482f7396c5d
3594df72a5423c2143688d792b111fcc
-- performs p_out = R'*p_in + t
const real_t pvec[], const uint32_t rows, const uint32_t cols) { uint32_t i; uint32_t j; uint32_t k = 0; for (i = 0; i < rows; i++) { pout[i] = 0; for (j = 0; j < cols; j++) { #ifndef MPCINCFIP_OPS pout[i] += pmtx[k] * pvec[j]; #else pou...
0
7feb14e1ee07445ec36744a01715cdca
258dc1402c82006980b403d055b5eff8
Välittää käskyn ruudulla tapahtuvasta klikkauksesta Sijainnille.
Ruutu ruutu = peli.getNykyinenPelaaja().getNappula().getSijainti(); JOptionPane.showMessageDialog(rootPane, ruutu.getSeloste(), "Ruutu " + ruutu.getNumero(), JOptionPane.PLAIN_MESSAGE); }
0
311bae4c5d430c6e6eab449484e71fec
e28d8c3d99acb8039ee154769ffd339d
Returns the value of User-Agent field in CGI request.
class Piwik_Tracker_Visit implements Piwik_Tracker_Visit_Interface protected function getUserAgent() { return @$_SERVER['HTTP_USER_AGENT']; }
1
530063ff209e5bc01032cd18a0cc4ae7
fb81843bb30d8f4144059a7fdb7ce27f
M-pesa Transaction confirmation method, we save the transaction in the databases
class TransactionsModel function savePaypalConfirm($id_transaction, $response) { $statement = $this->db->prepare("UPDATE transactions SET paypal_id = :paypal_id, paypal_status = :paypal_status, payal_order_time = :payal_order_time, internal_status = 'CONFIRMED' WHERE id_transaction = :id_transaction");...
0
2f191914db5665e58515869321b1e84b
cdb2cd69e2179da99b45144a51ea0b55
对text进行签名 使用私钥签名
try { PKCS8EncodedKeySpec priPKCS8 = new PKCS8EncodedKeySpec(Base64.decodeBase64(priKeyText)); KeyFactory keyf = KeyFactory.getInstance("RSA"); PrivateKey prikey = keyf.generatePrivate(priPKCS8); java.security.Signature signet = java.security.Signature.get...
1
d012f3fb581c8f69c9ef786fef895d04
fa939b3e4f0b27a91807c511c8c388f4
# empty array, allow all
class UserController extends Controller public function accessRules() { return array( ); }
1
15ff7abff310b6d5281f12831c7c071d
80424a21c55170cdad8dae39e5dcb14b
http://stackoverflow.com/a/25340777/3000068
function copyTextToClipboard(text) { var textArea = document.createElement("textarea"); textArea.style.position = 'fixed'; textArea.style.top = 0; textArea.style.left = 0; textArea.style.width = '2em'; textArea.style.height = '2em'; textArea.style.padding = 0; ...
1
d8c8a0bd2a12190368a810eaee4fbec8
70033bc828f9a5671b17d62f52be1a91
================================================================== 画面上のグラフカーソル描画 ==================================================================
let xAxisLength = graphInfo.xAxisLength; let yAxisLength = graphInfo.yAxisLength; let x0 = graphInfo.originX; let y0 = graphInfo.originY; context.lineWidth = Math.min(xAxisLength, yAxisLength) / 30; context.strokeStyle = renesasGray; drawCanvas.drawLine(context, x0, y0, x0, y0 - yAxisL...
0
c97713f3d6a35e904c4e5492f82d6304
0ebfad8e037b1b15854bebe08c9e49fd
MP4 dmx UT - data request function.
static int AmpUt_ExtDmx_DataRequest(void *pDecoder) { return AmpDemuxer_OnDataRequest(g_ExtDmxFifoHdlr); }
1
cd4fac738f5340dcb3fbe64b57db86cd
a55391f39c5d586590ed6b54f5ad82f9
从目录图片里提取人脸并保存
video = cv2.VideoCapture() if not video.open(video_path): print("can not open the video") exit(1) count = 1 while True: _, frame = video.read() if frame is None: break if count % EXTRACT_FREQUENCY == 0: save_path = "{}/{:>03d}.jpg".format(img_dir, index) cv2.imwrite(save_path, frame) print("Ex...
0
5642496620021414c6758f97e2533829
a85b23d836eb95a1cfd2362260706e9a
Output fullfiles content to the state directory.
def _export_state_files_from_terraform_dir( terraform_dir: str, state_output_dir: str) -> None: if not os.path.isdir(state_output_dir): os.makedirs(state_output_dir) source_state_file_path = os.path.join( terraform_dir, TERRAFORM_STATE_FILE_NAME) source_backup_state_f...
1
b16baebf9904c9cb9a027b2ddf5e3b71
636870c4055b5e4b314ea0ff14f22871
Method for showing merchant verified
class BusinessController extends Controller public function showVerifyBusinessForm(){ return view('businesses/forms/verify'); }
0
182ae47f80c15dddbef020d8a39f30a9
61fe77baa9836b8c5961fe0b73db8fd3
POST: Patients/Create
{ ViewBag.Patient_Id = new SelectList(db.Patient_Master, "Patient_Id", "PatientNoFromClient"); return View(); }
0
2147dbe555f8ce1575d8a9f21cde2c85
3ebba7e127f2c1d5dff837d03b71deb6
Get an instance of Analytics HTTP client builder service.
public class EditorDataHolder public AnalyticsHttpClientBuilderService getClientBuilderService() { return clientBuilderService; }
1
1f1c9f41d82932bd94b3a20c5421b03a
a296f8df87d80c347350a984cb8a9c82
Initiate user profile verification service.
public class ShiftSdk public static void startVerification(StartVerificationRequestVo data) { checkComponents(); executeOrEnqueueRequest(data); }
1
da4c5702e648c5f5627bf24b8df91520
f6abdf99640cc48af66e7db179b25c99
依据code查询该角色下的人员
List<AuthTbUser> selectUserByRoleCode(@Param("roleCode") String roleCode);
1
602d249d2c82f5de8bdb59c724e10741
f1df9cf5a9b9f4e014eb57d5ee1e6d2f
Mencari posisi sebuah kata dalam suatu string, Jika kata tersebut banyak ditemukan dalam string tersebut maka yang direturn adalah posisi dari kata yang ditemukan pertama kali
int result = -1; char strt = toFind[0]; for(int i = 0; i < length(); i++){ if(s[i] == strt){ result = i; for(int j = 0; j < toFind.length(); j++){ if(s[i + j] != toFind.s[j]){ result = -1; break; } else if(j == toFind.length() - 1){ return result; } } } } return result; ...
1
600317b053c950a6335bf6cf07797a2f
c5f987b5cd197d29193c239f1baf1bc7
Gets border format type
class ModuleGroupBuying extends BaseMobiModule public function getParam_BorderStyle() { return $this->_moduleInfo['param_border_style']; }
1
2663ad706949a71d90b504f394becc2c
12530d5c365a0decd7b113e551086dcf
根据版本号获得对应处理类 当没有对应处理类时,默认向前找最新的处理类
public abstract class ProtocolFactory public static ProtocolHandler getHandler(TaskData taskData) { Collection<ProtocolHandler> values = ProtocolHandlerAdapter.protocolTypeProtocolHandlerTreeMap.values(); for (ProtocolHandler protocolHandler : values) { if (!ProtocolType.def.equals(protocolH...
0
793f6a2d5959cf7e85c0760dc6f64d80
0623bed9a276a3c7f2c7a07062f4e34e
根据id获取bisLocation的信息
if (!request()->isGet()){ return $this->error('参数错误'); } $id = input('get.id'); $location = model('BisLocation')->get($id); if (!$location){ return ; } return $this->fetch('',[ 'location'=>$location, ]); }
1
2b21104b16ac4f906afc08a150893d5d
fe6a5bd74c844cdc99499f72c47a1884
Returns the last digit of the given fibonacci number.
def fibonacci_last_digit_partial_sum(start: int, n: int, ) -> int: fib_sequence = np.zeros(n + 1) fib_sequence[1] = 1 for i in range(2, n + 1): fib_sequence[i] = (fib_sequence[i - 1] + fib_sequence[i - 2]) % 10 return sum(fib_sequence[start:]) % 10
0
1e941adf99bc35b4e73786b98024ac4c
81c97db9dd369c0287bcc32088210437
When the app is no longer visible (when no activities are being shown, when paused), we stop the reload loop.
public class AppListLoader extends AsyncTaskLoader<List<AppEntry>> @Override protected void onStopLoading() { cancelLoad(); }
1
0bebdde66281a58b7264e032d460f636
0a9f06b021a6419bf2a281643928d866
Get the retraite autre.
class AttestationAssedic public function setRetraiteAutre(?string $retraiteAutre): AttestationAssedic { $this->retraiteAutre = $retraiteAutre; return $this; }
0
ff35b699ef3968fefc736de8f6cf372d
639d593284d846e8c4123efb55f6817d
Buffer codepoint to CSV value
int low = code & 15, high = (code >> 4) & 15; var span = _appendToBuffer(4); span[3] = (low > 9) ? (char)(low + 'A' - 10) : (char)(low + '0'); span[2] = (high > 9) ? (char)(high + 'A' - 10) : (char)(high + '0'); span[1] = 'x'; span[0] = '\\'; ...
0
06bb72975c47cbe53eaf2c5d9f847b36
45c986899283eba67e088e4786c23f5d
Maps <see cref="CreateManufacturerModel"/> to <see cref="Manufacturer"/>
{ return new { id = factoryDevices.Id, name = factoryDevices.Name, year = factoryDevices.Year, type = factoryDevices.Type }; }
0
d241e7f83b0ca1131eae4cb80b46ef45
bf3b4c8a961e0304052ac8603e73143b
Funcion donde se obtiene el listado de proveedores con productos no conformes
const id_prov = req.params.id_prov; contrato .getContNuevoListIng(id_prov) .then(function(ingreds) { res.status(200).json({ Lista_de_proveedores: ingreds }); }) .catch((e) => console.error(e.stack)); }
0
58ab4442e2409cf931c127558e02e3bc
ecfba5e30e1271f209cc5f4ae1cb4d26
加载带有OSS样式的列表图片
function loadImages(index, rows) { var ajax = new Ajax({ method: "get", url: "/image/ossImagesUrl/" + index + "/" + rows, callback: function (res) { var json; if (typeof res === 'object') { json = res; } else { json = JSO...
1
5689166128461c297b363c315a1a2be0
a2b7354f4531ebdac38c3f1163eaf889
把Widget加入到父容器中, 并实现布局
namespace QtE5 void QBoxLayout::addWidget(QWidget* wd, int stretch, QtE5_Const::AlignmentFlag alignment) { ((t_v__vp_vp_i_i) pFunQt[38])(QtObj(), wd->QtObj(), stretch, alignment); }
1
66f1f88487960f179d7d7083c206c2b6
4fa117b3fea0e7a6c9fe8de075581c36
make a chart with Chart.js to show the clicks and display counts for each item
function renderChart() { }
0
b591b0f6751a11b6307ab828f6d45c6d
de7888b400081c080525a244a4335f07
Determines whether a specific piece of data or DataType is categorical or a subset thereof
default boolean isDataType(Object object) { return false; }
0
729bf38799883f7dc04af3dd2439e7a9
16ad72d352fae4b1f9440dfd250f8f43
Returns handles to all of the active heaps for the calling process.
namespace Squalr.Engine.Memory.Windows internal unsafe class WindowsMemoryQuery : IMemoryQueryer public IEnumerable<NormalizedRegion> GetHeapAddresses(Process process, EmulatorType emulatorType) { switch (emulatorType) { case EmulatorType.AutoDetect: ...
0
edb21a8cd5a7a0d925bcf1aeb29c74b7
0313cc92a927a261dd339d2e65a9843f
获取上证50成分股数据
def get_hs300_component(): return get_index_component(pz=300, fs='b:BK0500+f:!50')
0
af338023adf55493672147af8469bafa
446f7f53547cc0569dca574b323ae188
Break an event link. Implements @ref elc_api_t::linkBreak
fprintf (hFile, "%*s<Event type=\"NewLink\">\n", nIndent * 2, " "); nIndent++; SaveElement (hFile, nIndent, "nodefrom", nFrom); SaveElement (hFile, nIndent, "nodeto", nTo); SaveElement (hFile, nIndent, "linkid", nLinkID); nIndent--; fprintf (hFile, "%*s</Event>\n", nIndent * 2, " "); }
0
5d01e2fe3333e7cb0b0d51eba19a455a
5ab676d9987af92b8323d0571906a1da
For the reported power, produce the LaTeX version (for siunitx).
class Dirichlet(Base): def tex_params(key, value=None): if key == "alpha_0": key = r"\alpha_0" return super(Dirichlet, Dirichlet).tex_params(key, value)
0
c2c465d55bceef25235a4d0d8b82b9b9
f39f0c7e349b4fded6af1f393dd3e65a
Test passing an single argument for an object that has one option specified.
$options = CLI::options ( 'uri', 'we_are_cool' ); $this->assertSame ( 2, count ( $options ) ); $this->assertSame ( NULL, $options ['we_are_cool'] ); }
0
c03a0b2592cd7c3b76823b6945da72b2
71385696f83c563dc91e2af39bf7beec
Replaces RP4WP template with the template from Job Manager.
class ConvertToQtiService private function getJobManifestTemplate() { return []; }
0
d0f98df30df4a5ce00eb08c9c8e875d8
96f0eac11d7896051f357d51a6ecab58
Called when a list view's selected items key has changed.
public void selectedItemKeyChanged(ListView listView, String previousSelectedItemKey);
1
123f72ba71454cd9fd6ee3b72705d0dc
ef76105a7b16074fa50a55bf32acd253
Specifies the provider to be Facebook and its app ID and app secret.
namespace Ideaworx.Cgpamatter.Services.Security public class UserService : BaseService<User>, IUserService, IOpenAuthDataProvider, IOAuthTokenManager public void RegisterFacebookClient(string appId, string appSecret, string displayName) { RegisterFacebookClient(appId, appSecret, displayName, ext...
1
44e6801f0198ab50f37f5e48ddbd5ad1
20ec5f3ea20693a0fbcdec0687ab8121
Draws a month line in-between the entries.
textPaint.setTextSize(dipToPx(12)); textPaint.setColor(textNormalColor); textPaint.setColor(0xff7c7c7c); float coordinateX; textPaint.setTextSize(dipToPx(12)); textPaint.setStyle(Paint.Style.FILL); textPaint.setColor(textNormalColor); textSize = (int) text...
1
8390cb9189e5f07bff916f1cf8e297db
c64ee0bda036725aa136932c8f8107ba
嵌套类在原生Assembly中取出时分隔符是'+',而ILR里面用的是'/'
public class BuildUtil public static String transferClassName(String clsname) { return clsname.replace('.', '/'); }
1
31994bc591369581e444f53a0ad485ec
07bd07ac82c4ff253c0f736b6be29347
Set which buttons are highlighted in the main menu
namespace Minesweeper public partial class Main : Form private void mainMenuVisible(bool visible) { btnNew.Visible = visible; btnHighScore.Visible = visible; btnExit.Visible = visible; }
0
0d3240ec8cfeae277d2eea79fd5f7642
5ffda1541c0331ccd5dcc5ef6fa1df2b
覚えたリスト・無視リストを表示
class CommentController extends Controller public function showUnseenCommentList(){ $commentItems = array(); array_push($commentItems, $this->getNoisyCommentList($_GET['user_id'])); array_push($commentItems, $this->getActivityCommentList($_GET['user_id'])); array_push($commentItems, $this->getCommentCommentLi...
0
c9dd755eb0f0a221a07cb66357258719
6b0635d8cec275cc6f0801e977e84601
<p>Вызывается в момент удаления элемента информационного блока.</p> <p></p> <div class="note"> <b>Примечание:</b> начиная с версии 15.5.12, событие вызывается до удаления из таблиц любых данных, связанных с элементом.</div> <h4>Example</h4> <pre bgcolor="#323232" style="padding:5px;"> &lt;? Подключаем к событию обрабо...
public abstract class Element public virtual void onRemove() { }
1
fa2e59ad3e41f629c13938a08478265f
af4491ba66c2da4c1aaa6dfdeaf8e77c
Signals all <see cref="Task"/> objects created via <see cref="Wait"/> to complete.
namespace Adf public sealed class QueueTask<T> : IDisposable public void WaitCompleted() { this.WaitCompleted(System.Threading.Timeout.Infinite); }
0
491431788bb23fced4a1cf4aae3cb0c7
744f6ac1c5cb1f5197817ab9f3ec6e17
Adds a definition to import, e.g. - "use" in the top of the file.
ThemeDefBuilder addImport(DefDescriptor<ThemeDef> themeDescriptor);
1
caa9ee98c5594d09ed3a16425aa1e2f3
fad8952394abd1e0595fe59c4eda66f7
Перемещает пользователя на главную страницу сайта
class AdminPage extends Page public function redirectToTopPage() { $this->redirect(SITE_URL.'index.php'); }
1
8e947593d33e0a38d834ca8f4fdda43b
3b1b789e0504de6d0c8d3bdd060678f2
Tạo động các dòng
for (int i = 0; i < data.getMangDuongThang().size(); i++) { data.getMangDuongThang().get(i).setL(creatLine(data.getMangDiem().get(data.getMangDuongThang().get(i).getIndexPointA()).getP(), data.getMangDiem().get(data.getMangDuongThang().get(i).getIndexPointB()).getP())); } }
1
c0cfd08785931e7aa9fd1c311946d05c
6d3b0c2ca1d2a1d0897e529d4d2ab2af
转换mid为id
inputfile = open('mid/' + self.filename, 'r') outputfile = open('id/' + self.filename, 'a') lines = inputfile.readlines()[linenum - 1:] for mid in lines: print(linenum) mid = mid.strip('\n') req = requests.get(urllist.mid2id_url, ...
1
a0999f24d224113b6b3a1601d74b5ada
4107ffa7660bc79a7f896f37ebaca711
NewTextBuilder creates a new TextEntityBuilder
func NewTextBuilder(text string) *TextEntityBuilder { return &TextEntityBuilder{ text: text, zIndex: 1, } }
1
db105a94591a1ab26c5e6e2815066556
56a296bd609942e379d8332ce209bf08
checksum stuff; add halves
namespace gamgee SamBuilder& SamBuilder::set_bases(const ReadBases& new_bases) { m_bases.update(new_bases.m_bases, (new_bases.m_num_bases + 1) >> 1, new_bases.m_num_bases); return *this; }
0
a0a6e014de53933e1afaba224d3a279f
91df54efd7c1bf1a01ecae923499908f
return 1 if the "no image" image is found
def was_image_found(local_dest): return not not imghdr.what(local_dest)
0
c3b1577ae8d492e35462f800323c381e
9d015b6d1af3185155a1f68b925d293f
This tests that the stack operates in proper stack order, which is "First In, Last Out". If a series of Effects are put on the stack and then executed, the first Effect to be put on the stack should be the last to resolve.
public class TestStack @Test public void test_stack_multiple_push_and_pop_off_everything() { try { int[] values = {5,6,8,1,9}; pushAndVerifySize(values); boolean expectEmpty = false; for(int index = values.length-1; index < values.length; index++) { if(index == 0) expectEmpty = true; verif...
1
7c8a4d2aff993999a5ba80183b82d259
14fb37a65d09b2010d697e6096ccc600
Raise an event to indicate that the login was canceled
namespace Xemio.SmartNotes.Client.Windows.Views.FacebookLogin public class FacebookLoginViewModel : Screen public void UserCanceled() { this.TryClose(false); }
0
ce939bf434c55f83f1bf91801cd378d2
7fd0c8b7096261ac9753594d33ad59c0
アプリ起動回数の追加
file = File.dirname(__FILE__)+"/db/project_count" count = File.read(file).to_i count += 1 File.open(file, "w") { |f| f.puts count } end
1
410216b0f9ac2b9654625798035692db
8506fe53e590f6dc65329123f1d15fca
Возвращает false если расширение файла не находится в списке разрешенных В противном случае возвращает расширение файла
if(this.getExts().isEmpty()){ return true; }else{ if(this.getExts().indexOf(ext) != -1){ return true; } } return false; }
0
5165a67035d71b910cdbd3a31e966cf2
a7354e669bbcb221a3171fda3321cc62
这个函数会生成一个和现在这个数值一致的parser实例,并把先前记录的 匹配动作和参数 循环执行,直到没有新的匹配,循环结束,返回带有匹配结果的parser对象
def generate(fn): if isinstance(fn, str): return lambda f: generate(f).desc(fn) @wraps(fn) @Parser def generated(text, index): iterator, value = fn(), None try: while True: parser = iterator.send(value) res = parser(text, index) ...
1
8d5f2bc13f56060802e4814356955a18
3d90b7c5de2e0a3dfbb5813d9ebaf2f0
disable all boxed during replay
public class BattleStateMachine : MonoBehaviour public void DisablePlayerBoxUI() { canvas.DisablePlayerBox(); canvas.DisableSelectionBox(); }
1
6b6faaca58d3fd3e0fdadb29b297e9a5
41812c328ab112e2ccb4e5ad3bdcee9d
Clicks the sign in link.
class SignInUpClass(): def click_sign_in_up(self): self.browser.click_on_element(self.locator_login.SIGNIN)
1
f4b23b1bd65fc2c65217a7ddd82fea39
717eefe0862349e2a094f7b939970967
Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getIncludeSubCategories <em>Include Sub Categories</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EReference getIncludeContent_IncludeGrammarContent();
0
c6cb30421ffd2beef0ca94336791d7b1
f9c34e9095f53bc70364695af5d6362b
Active the specified Lawyer in storage.
class LawyerController extends Controller public function destroy(Lawyer $lawyer) { $lawyer->delete(); return response('deleted'); }
0
4a815935a79b0daca1fe78b6019b8234
16e6faeb038fd52e8cc7c4144c859558
搜尋已出貨訂單
{ $delivery = $this->getTrOrderAndDeliveryJoin() ->select( 'tr_order_delivery.*', 'tr_order.Cancel', 'tr_order.IsMerged', 'tr_order.MergeOrderId', 'tr_order.CustomerWarning' ) ->where('tr_orde...
1
a6f87aa692b7f74821d35c0baaa46702
bf8263fe11163b529079c364bbdfe88b
Gets the Product Sku from the order entry
$order_items = get_post_meta( $order_id, '_learn_press_order_items', true ); if ( $order_items && $order_items->products ) { $array_keys = array_keys( $order_items->products ); return reset( $array_keys ); } return false; }
0
1d363911add468442fc9cd49bf1d2295
d9863a783fab9725bc9cc88e6995910e
获取月份,格式:yyyy-MM
public class MyTimeUtils public static String getMonth(){ long timeMillis = System.currentTimeMillis(); String ym = MyTimeUtils.timeStampToYM(timeMillis); return ym.split("-")[1]; }
0
ebda5661b39dfddec45d80f630b59903
305ae3eefaa099390dc1c55a575991f4
Digunakan untuk memproses penambahan data spp ke database Yang diinput dari form create spp
{ $data = [ 'title' => 'Tambah Spp', 'sidebar' => 'spp', ]; return view('admin.pages.spp.create', $data); }
0
3dc7de4ef12c35bfe4e28c1ee1f38683
4fcb38640bcae3e9f043da3f2d3c4a6d
Fetchs registers limiting the results for pagination purpouses
class UuidMapperMock extends MapperAbstract implements MapperInterface, FetchByNameInterface, FetchAllInterface, FetchLimitInterface public function fetchLimit(int $offset, int $rowCount): array { }
1
55ceafca49302bbe764fee73cd667c94
c842598a4b8150bc8baf3c647788b468
test for bad path of score model
rv = self.app.get('/players/1/scores') self.assertEqual(rv.status_code, 404) data = json.loads(rv.data) self.assertIn('error', data)
1
0457305b7ce7d298f2aa692e118dd678
94f0b56e5c2ceeedaa7ee54b2d088d22
Which resources in the dataset this entry applies to. Currently, only views are supported, but additional target types may be added in the future. Possible values: VIEWS
class KubernetesClusterBackupDatasourceParametersArgs: def included_resource_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: return pulumi.get(self, "included_resource_types")
1
9c8f7acaedd5d1a35b53bf5b3a19b33a
89f8191d167218c567ba4379e35df323
======================================= 获取文件大小W =======================================
String getW();
0
09c719bd476605086cc702d3e0674520
b9612caa4c403a820db494650642a6e5
Cosine learning rate with warm up.
return tf.keras.experimental.CosineDecayRestarts( initial_learning_rate = initial_learning_rate, first_decay_steps = t_period, t_mul = 1.0, m_mul = 1.0, alpha = lr_min / initial_learning_rate)
0
c03e474f90cd911cd73ea82a4227a18e
ec2c34537daaef18398253f417ef8b9d
Get the label of the Training Dataset
def getLabels(data): return data[1]
1
68c5cc96bb18b017cdcfd9a9de491b4a
c182d37c520dfa3b338f6acb6a348b9c
Adds a log-message with line-break to the log file.
class KratosAsciiFile(_DataFile): def _AddLog(self, message): self._log.append('{time}:\t{message}'.format(time=datetime.datetime.now(), message=message))
0
aeacc72884e3bc3cc5bb47b55b128a1e
860ef2275cbced5b01c5400ca0ab5c8f
Utility to get gamma as a function of temp
def gammma (p=101.3): return (0.665e-3)*p
0
7fa3e483b0fe7206a7d4a9cac95951a6
90e731d825a52a3903b9eaabe9416091
Function Synopsis [read the conjunct (transtion relation) for the given atom ] Description [read the conjunct (transtion relation) for the given atom ] SideEffects [none] SeeAlso [Sym_SymInfoReadManager]
{ assert( !Aig_IsComplement(pObj) ); return Ssw_ObjSim( p, pObj->Id ); }
0
21f1a6a3a97069adcfd61f7fbcc8e4ef
b668a10cffbcd28a78daf5b65c42fc07
Count all Product quantity and Send to Navbar by BehaviorSubject
this.sub = this.webshopService.TotalChanged.subscribe(() => { this.total = this.webshopService.Total; }); }
0
e1a2cf934bfcda95d76dad49daa7042e
8cb3e16dd0531b446fc702598bb821fd
Difference between string timevalues in format yyyyMMdd HH:mm:ss.SS (Java DateFormat). Difference is calculated time2 - time1.
public class PRDateTimeUtilsImpl implements PRDateTimeUtils @Deprecated public final String timeDifference( String aStart, int aDays, int aHours, int aMinutes, int aSeconds) { if (aStart == null) aStart = new String(""); if (aStart.equals("")) aStart = getCurrentTimeStamp(); if (aDays < 0) aDa...
0
f79a3739a058cf6018367afafb16595b
e6c359532f60aa676c81ac56ea027291
Convert Boolean --> Number (default conversion)
if (isFloat(v)) { return v; } else if (isUndefined(v) || isNull(v)) { return null; } else { var pv = parseFloat(v); if (isFloat(pv)) { return pv; } else if (toBoolean(v)) { return 1; } else { return 0...
1
8ca195a14eb0fd2893ed23cef2d1c3f5
ae6ef6d78a888864500aedada80b1e36
Collect x and y dict of arrays split on specified column. Designed to match how BaseSingleXYPlotConfigurator splits the data before passing to factories when colored renderers are needed.
retdataset = [] retyset = [] for i, row in enumerate(x): if (row[axis] == value): if axis == 0: reducerow = row[axis + 1:] elif axis == len(x[0]) - 1: reducerow = row[:axis] else: reducerow = np.stack((row[:axis], ro...
1
47ed679771713e129a9ba1864ab64520
76ea5641ad6f7eace1e5fd356b960469
Create (but do not yet start) an MHD daemon. Usually, you will want to set various options before starting the daemon with #MHD_daemon_start().
int daemon(int __nochdir, int __noclose);
0
588241e89bde417521552230b23d0813
8bfda8e37a9f927a9d5d066f95476859
Initialize TLS support of a Stream object
hostname: Optional[str] = None, ssl_context: Optional[ssl.SSLContext] = None, standard_compatible: bool = True) -> 'TLSStream': if server_side is None: server_side = not hostname if not ssl_context: purpose = ssl.Purpose.CLIENT_AUTH if server...
1
98d3bef5ed84c1f4cf54ae631c62e7eb
7e3a1ee4a3c42553d81433aa9c45f7f1
Add files to exclude here
public function excludedFiles(): array;
0
7f1ce77fd6e87d49345ce6be726ccfb8
f34f3e3c9ab50ccc836a093574634ac6
Get a 16-bit little-endian signed integer from a stream. Does not break, regardless of host integer representation.
abstract class Stream extends Object{ final public function get_int16_be(){ $r = $this->get_uint16_be(); return $r < 0x8000 ? $r : ~($r - 1); }
0
e705ddf29daca474bd07711062a9ed10
abd87df7704bb022ca97ba163759273e
Metodo que permite la creacion de un empleado
namespace JoyeriaE.Controllers public class EmpleadosController : Controller [HttpPost] public ActionResult Create(Models.EmpleadoModel model) { if (ModelState.IsValid) { try { JoyeriaEntities contexto = new JoyeriaEntities(...
1
9e164517500368bc8a0ca65131e188dd
5406382e3c6e7c18a625e51d62de658b
Reducao de Ruidos com Filtro Gaussiano
double atual = buffer.getInicio(); buffer.removeInicio(); double proxima = buffer.getInicio(); buffer.adicionaFinal(0.994 * (atual + proxima) / 2); return atual; }
0
1731c35a5752cb4fa8a672aca7eb43f5
66847d9ac1b26cfb0f6685774701a99a
Similar to :meth:`.check_once` but for slash commands.
class Permissions(BaseFlags): def use_slash_commands(_) -> int: return 1 << 31
0
bf372c8a2f43734c262e2ce942d3cbf6
a2acbe4355d71428a953c9558cf492f7
时间戳转年龄
getAge(time) { if (!time) { return ''; } let type = app.globalData.deviceType; if (typeof (time) == 'number' || typeof (parseInt(time)) == 'number') { if (String(time).length == 10) { time = time * 1000 } } if (typeof (time) == 'string' && type == 'iphone') { time...
1
3bb6f1be10fa8afaa52ad78a9c33224a
841abef4fcf66152c93edb9e82921985
Получить методы, помеченные атрибутом <see cref="InjectHereAttribute"/>
namespace ShowMeTheDocs IEnumerable<IMethodDocument> GetMethods();
0
b453f2e146764fde169410e9cf9b6d06
19b490f60cd47b479041cb728892ba11
смещение элементов хранилища вправо с указанной позиции и на какое кол-во элементов
{ std::vector<T> another_new_storage; another_new_storage.reserve(number_of_elements); for (int i = 0; i < number_of_elements; i++) another_new_storage[i] = storage[(first + i) % size_of_storage]; storage.swap(another_new_storage); size_of_storage = number_of_elements; first = 0; }
0
c4951306747f0ee47561753a9aae5286
286528c96107753fd301c9dc92f4f985
Allows the user to set the visible state of the tool box.
namespace WF.EnrolleeApplication.App.Views public partial class frmDashboard : Form private void SearchToolBoxToolStripButton_Click(object sender, EventArgs e) { if (SearchToolBoxVisible) { Properties.Settings.Default.SearchToolBoxVisible = false; Prop...
1
308eac068ee4ece1ad082b5bc5776939
2d21382207f712ad8bfb0d9f773fcfbc
保存并关闭当前word文档
public class MSWordManager public void closeDocument() { if (document != null) { Dispatch.call(document, "Save"); Dispatch.call(document, "Close", new Variant(saveOnExit)); document = null; } }
1
e7f62a77a83b39950039dcae9ce97189
a1b29b7cf7b3b4bb468e0e9d175b5953
Test case for read_apps_v1beta2_namespaced_deployment
class TestAppsV1beta2Api(unittest.TestCase): def test_delete_apps_v1beta2_namespaced_deployment(self): pass
0
023ffdb1332e877d5c3810f049f2caeb
cdf3cd315a9639b9499e7d361d82b093
! \brief initialise the arm-2d core service
{ static int ServoState = 0; if( ServoState >= STATE_READY ) { return SUCCESS; } if( dxl_initialize(DEFAULT_PORTNUM, DEFAULT_BAUDNUM) == 0 ) { dout << "Failed to open USB2AX!" << endl; return FAILURE; } else { dout << "Succussfully opened USB2AX" << e...
1