query_id
string
corpus_id
string
query
string
code
string
label
int64
e2e5fd4e856fbfcf51934490f8bddf55
c856d869bf7f055c85bdf2fac339b488
Operation getTransactionsAsync
ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { progressListener = new ProgressResponseBody.ProgressListener() { @Override public void up...
0
5d6d5db3e88b69418abfa0fed1895756
f4316ad4972f490363fff0ac3e039549
zwraca nazwę ustawionego routera, gdy brak nazwy, zwraca null
[ExecuteInEditMode] public class RouterScript : MonoBehaviour, System.IComparable<RouterScript>, Priority public string GetRouterName() { return routerName; }
0
b64025a9b1c2a77b7493d9239323b386
2129f8cd7b2a714bd90e5c43010988fb
efield3d
namespace c3ga_ns public class e3_t : mv_if public double get_e3() { return 1.0;}
0
c634ed0bb03e9434177133a936142f20
c8c199a46bdef7dd73a98e27ac4c38e4
Gets the voucher number field.
@Entity @Table(name = "MRS_GIFTSHOP_VOUCHER_REDEEM_CANCEL") @NamedQueries({ @NamedQuery(name = "MrsGiftshopVoucherRedeemCancel.findByVoucherSeq", query = "SELECT m FROM MrsGiftshopVoucherRedeemCancel m WHERE m.voucherSeq=:voucherSeq"), @NamedQuery(name = "MrsGiftshopVoucherRedeemCancel.findAll", query =...
1
93e96bfb389860fc6e6d96672250aeea
9c19a91bc87fa6887787008b90243f3e
Provides the definition of a data set to Data Engine. A data set must be defined using this method prior to preparing any report query that uses such data set. <br> Data sets are uniquely identified name. If specified data set has already been defined, its definition will be updated with the content of the provided def...
public void startDataSet(String s);
1
b3ab5f3ee80ddc2318eba77dea3f69bd
94b4bbe3c580458bffaf0c18ecddddda
Gets the visible editor rect.
class ZoomAbility : ViewAbility, AttachObserver, ScaleTypeObserver, DrawObserver, DrawableObserver, TouchEventObserver, SizeChangeObserver, VisibilityChangedObserver, RequestListenerObserver, ImageMatrixObserver fun getVisibleRect(rect: Rect) = zoomer?.getVisibleRect(rect)
1
07efe7fda393ef9d8670dff6fbcb9661
06299565fd2413f49f98d4291c3d22cc
设置是否隐藏分割线
public abstract class HomeDouFuKuaiLayout<T> extends LinearLayout public void setDivideVisibility(int visibility) { mDivideLine.setVisibility(visibility); }
1
11a1d35d678621bb83d5098d11e03c1d
99316b434976c56f1b7160f026996bdd
操作系统版本输入处理
namespace UI.ComponentLibrary.FormLibrary public partial class ThereofForm : Form, IComponentInitMode<Form>{ private string GetOsVersion() { string str = "未知"; switch (Environment.OSVersion.Version.Major + "." + Environment.OSVersion.Version.Minor) { case "5.0" : ...
1
f04df40358cc5a8762175cc46bdecce6
1f54f07c88e45b9c744ab58c6183b1a9
Gets ContentType ID based on $contentId.
{ try { if ($this->contentForm->isSuccess()) { $vals = $this->contentForm->getValues(); $this->contenttypeid = $vals['content_type_id']; } elseif ($this->contentrepository->content_type_id) { $this->contenttypeid = $this->co...
0
40eacbb5e3ba60afcaeb62626eac95fd
4f86bb08d4e18455f0022d64e6750050
Copies the dictionary to an array of key value pairs.
namespace ExpirableCollections public class ExpirableDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IDisposable public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) { const BindingFlags bindingFlags = BindingFlags.NonPublic | ...
1
6e4e1b92424794db1257bcabb9803a7b
a49c3d50de915930a7cb69a9b9a652c5
Randomize the appearance of the current character.
var iframecontent = document.getElementById('main-frame').contentWindow['partyChars']; if (iframecontent) partyChars[char] = iframecontent[0]; for (var i=0; i<partyChars.length; i++) setChar(i); for (var i=0; i<partyChars.length; i++) setChar(i); $('#char' + char + '.char').addClass('in-rand'); setTimeout( functi...
1
fe117ca479f971058af02c1c8a949236
0cf07d20a613c438507670ab82719982
A method that adds data to the stat object, in a thread safe way.
self.N += stat['N'] self.mean += stat['mean'] self.S1 += stat['S1'] self.S2 += stat['S2']
0
87569ff2c821277cf736d11d08d74b6b
71d90e7ffff344cae9f66b9946e53a85
<p>QuoteRequest from which the StagedQuote is created.</p>
final class StagedQuoteModel extends JsonObjectModel implements StagedQuote public function getQuoteRequest() { if (is_null($this->quoteRequest)) { $data = $this->raw(self::FIELD_QUOTE_REQUEST); if (is_null($data)) { return null; } $this->quote...
1
fc12d5b1134d164e6cb4ba7b6394eb8a
710228a148e42e9394daca5b485a4f4c
绑定截止目前应收账款余额
if (total_amount) { var ap = parseFloat(total_amount - loan_amount); $('.clfbx-items-table tbody tr .uppercase-account-payable').val(Arabia_to_Chinese(ap)); $('.clfbx-items-table tbody tr .account-payable').val(moneyFormat(ap)); } }
0
aa3beb2234dd660625543d5a07d78fe2
633f42f88f008c0cc399e91b4244c444
Perform Category Sync on any configured stores, adding new categories, updating modified and deleting removed category since last sync.
class CategoriesViewModel : ViewModel() suspend fun onSynchronization() { categoryRepository.syncCategoryData() updateCategoriesViewModel() }
1
9703d93d69e659fb44acb0c569aea676
8f0b086f9e04e6ffa4a3ef61f85bd925
Process the signoff http request. The request must contain the following parameters:<P> <LI><CODE>SIGNON_SESSION</CODE> - The session to signoff.</LI> <P>After the processing, returns in the response object:<P> <LI>an (int) Error code in the header field</LI> <LI>an exception stack trace (if any) in the content body</L...
public IMResponse logoff(LogoffPojo pojo);
1
711882670bef4b12a46a7ea78dd6aee5
65daf2035f0777ec5c274651e3223f77
Send raw packet (caller provides header)
_rf95.setHeaderId(_getTxCounter()); _checkHistory(); _setTxHeaderFlags(TYPE_ENQ); _addTxToHistory(); for(int i=0; i<length; i++){ _buffer[i] = data[i]; } delay(10); _rf95.send(_buffer, length); delay(10); _rf95.waitPacketSent(WAIT_PACKAGE_SENT); }
0
67501167bbac65b64dbc081c1765f5d0
697e05bf82c35097848165eeae8c3b86
Atualiza os interesses da tabela de interesses.
{ $arrInterest = [ 'Ler', 'Comprar', 'Vender', 'Lido', 'Comprado', 'Vendido', ]; foreach ($arrInterest as $i){ DB::table('type_interest')->insert([ 'texto' => $i ]); } ...
0
ece2e8360979a5661632990a822d660c
ba60ab38d31c23f5dfbc3b32c9bf31ef
This function handles "premature" end of execution (when user exits it).
class MyClientIfc: public CVmMainClientIfc void pre_exec(struct vm_globals *globals) { VMGLOB_PTR(globals); G_console->set_more_state(FALSE); }
0
bfbf27e677dc81c5c1e6247ac29f33e8
a1496bdca7bb0b45db6377c572eebb93
Shows a dialog window that allows to unpair currently paired micro:bit board.
namespace BTLE public sealed partial class MainPage : Page private async void UnpairButton_Click(object sender, RoutedEventArgs e) { ResultsListView.IsEnabled = false; AppBarButtonUnpair.IsEnabled = false; _rootPage.NotifyUser("Unpairing started. Please wait...", NotifyTy...
0
c6b1347c348cfc190a96df308000ebb1
b64b586dce095da0e876680c0324ce4c
Test method when additional email provided, but not found in database.
class UserControllerTest extends TestCase public function testMissingEmailUser() { $this->expectException(UnprocessableEntityHttpException::class); $faker = Faker::create(); $request = new Request; $query = [ 'name' => $faker->name(), 'password' => 'secret...
0
b217c60b0e82c1e9b4d174e00607dc6d
7ea52103ab9fbe48b914ee8af60dd804
Show an in-progress string, gated by runtime configuration
void FGitSourceControlMenu::DisplayInProgressNotification(const FText& InOperationInProgressString) { if (!OperationInProgressNotification.IsValid()) { FNotificationInfo Info(InOperationInProgressString); Info.bFireAndForget = false; Info.ExpireDuration = 0.0f; Info.FadeOutDuration = 1.0f; OperationInProgre...
0
51ec3445393f7002595778c2d4a4abad
d087f8e881bbaad67216d8a10ba89c6e
The peer has sent us a CCP ResetRequest, so reset our transmit state.
static void CpuCommResetRequest(void) { ilog_CPU_COMM_COMPONENT_0(ILOG_MAJOR_EVENT, CPU_COMM_RESET); CpuCommMessage *txPacket = &cpuContext.txPacket; txPacket->header = resetHeader; cpuContext.txSequenceNumber = 0; cpuContext.lastSentTxSequenceNumber = 0; CpuComm_HalWrite(txPacket); }
1
f2a19eb91251111b798d875e8deb873b
53b878a151ad8eeb5e8d5a3d4deb0ced
Convert dtype string to numpy dtype.
if self.NP is None: self.NP = np.dtype(self.STR) if self.TORCH is None: self.TORCH = eval(f"torch.{self.STR}") if self.INT is None: self.INT = int(re.search("\\d+", self.STR).group(0)) assert all( [ self.NP == getattr(np, se...
1
c41efbde163900f831d527c053f1fa35
f82b285e04a3c4e541a20f5df601b018
Author: Matt LaMarche Created: 2019/03/13 This is what happens when the subheader button for Rooms is clicked from the navbar
try: self.current_room = button.index except: pass self.root.transition.direction = 'left' self.root.current = 'room_config_screen'
1
57c99d506e309722eddc7dacc18194ae
6180d013be71d54ecf7df507ea90b35a
将当前购物包设为选中购物包
function setSelected(sku) { selected = cartStore.where({sku: sku}); }
0
3d49603f0b8e6741a808de2a9c4a8836
2c5b56be8f1c3db8177d11a1d4502403
查找店铺手机号
{ $sql = " SELECT telephone FROM shop_user_info WHERE compid = :compid AND shopid = :shopid "; $key = Tool::getPreArr($sql, array(':...
1
1b2e2636b947334e21742f0992ab143b
187b4045416f662d8eaa72e3dafbc015
Forces a page NOT to be SSL
class BaseController def enforce_ssl redirect_to url_for(protocol: 'https') end
0
6353eddad35773b6d0ef7028f163717d
3eda96388d0ba3d0bc798b585459a1f1
有序集合(zSet)数据类型 当前有序集合中的元素的个数
public class JedisUtil public Long countZSet(String key) throws Exception{ Jedis jedis = null; try { jedis = pool.getResource(); return jedis.zcard(key); } catch (Exception e) { throw e; } finally { if (jedis != null) pool.returnResource(jedis); } }
1
51fa158cf807607bc18a120739f9db0f
b2048b0820f06823f12701ac7dddc954
Returns success and previous working directory or failure and error message.
class VCSChangedFilesTests: def execute_success(self, *args, **kwargs): return 0, self.shell_output, None
0
7564c113bdbb4a35fe1ae7bdccf08f8f
cad6cd704969c026c0a20df19c576cab
FCM으로 전송할 메시지를 입력받을 폼을 출력합니다.
public String input(Model model){ model.addAttribute("message", new Message()); return "input"; }
1
d831dec1b5f102be52eb10003adcb7f5
df1ed1f681e7e866bfa3f9964f00de2f
This method is called when the Next button below Question 3 is clicked.
class MainWindow: def on_click_Q3(self): self.q3_window = Q3Window()
1
d44bdca10ea45e37a89c10396d9a288f
7e6c253a76a5bf23a5cf243863bc6011
用新的分析热更 dll 调用引用来生成绑定代码
{ IMAGE_NT_HEADERS ntHeaders; do { if (dlls.empty()) break; if (m_pImportDescrTblAddr == NULL) break; if (false == m_cProcess.ReadMemory((void*)ntHeadersAddr_, &ntHeaders, sizeof(IMAGE_NT_HEADERS))) break; DWORD customDataSize = (DWORD)dlls.size() * sizeof(IMAGE_IMPORT_DESCRIPTOR); for (size_t i ...
1
b278eef6446ae4bcb519d8d7ef7f1bdc
9c01c3826a45bafa36e790dd5936ae86
round robin 알고리즘 적용 시 time quantum은 입력값을 받아서 정해준다.
proc_summ * round_robin(proc_list *procs, int time_q) { if ( procs->size > 0 ){ int n = procs->size; int time = 0; int proc_comp = 0; proc_summ *ps = (proc_summ*) malloc (sizeof (proc_summ)*n); sort_at(procs->list, n-1); while ( proc_comp < n ) { ...
1
c18e9d476fc3db3b1af062e857abb340
6207a9f8786194e2c44e77d3f60842e5
用户赔率
{ if (!isset($this->get['gameName'])) { throw new MyException(ErrorCode::ERROR_PARAM); } $gameName = $this->get['gameName']; $chineseGameName = Yii::$app->params['game'][$gameName]; $userOddsModel = Yii::$app->params[$chineseGameName]['userOddsModel'];...
1
56c7d220dc9242d7519b07361ba285c5
3b8233f0532df32bf0d340e3b7942699
Returns the meta object for the '{@link ecmm.ContextAction#execute() <em>Execute</em>}' operation. <!-- begin-user-doc --> <!-- end-user-doc -->
EOperation getAction__Execute__Content();
1
c71122467a70aee5c8760c8409a04d95
9b381f9f29e950657d0addfca4854e9a
通过ids获取blogs
public class BlogDaoImpl extends BlogDaoBase @SuppressWarnings("unchecked") @Override protected List<Blog> handleFindBlogs(final Long[] ids) { return getHibernateTemplate().executeFind(new HibernateCallback() { @Override public Object doInHibernate(Session session) throws Hiberna...
1
d7e9b748a19854bf55f9f05421947e6a
84e23544f6c13691f2404e0d159c912b
Get 任务结束后生成的文件格式,例如:mp4,flv等等。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
class SyL_WebServiceSearchVideoResult extends SyL_WebServiceResultAbstract public function getFileFormat() { return $this->fileFormat; }
1
065499f0d17064170df2849394f617ce
d199352f82cb246a16bbcacf05c8fbaa
不创建session
@NoArgsConstructor public class StatelessWebSubjectFactory extends DefaultWebSubjectFactory @Override public Subject createSubject(SubjectContext context) { context.setSessionCreationEnabled(Boolean.FALSE); return super.createSubject(context); }
1
0cc095e9a58ccc218bc9caaab6264e9d
0d25f1fc88e599ff84d8778cdcbd0df2
Returneaza numarul clientului
class Pizza public function getNClient() { return $this->nClient; }
1
c74049d9a3f35be3ffe429a2e0b9919e
3abe1f5ebb5be57f92b5f9c160c140e7
Add event handler for Expand/Collapse of CodeLine Sections and SubSections
namespace Kendo.Mvc.UI.Fluent public class MobileCollapsibleEventBuilder: EventBuilder public MobileCollapsibleEventBuilder Expand(string handler) { Handler("expand", handler); return this; }
1
e52f64dd15dce15bba6c65fe02eb1c02
a730ad79a40616d4d5297bf3e21d2535
在编辑器Playing中每帧调用,显示节点状态
{ _gSystem.invokeOnLocalThread((Action)(() => { foreach (UIElement oCurr in this.InternalChildren) { switch (e.pState) { case playerState.playing: if (GetOnPlayShow...
1
020609c2d978fcca5cd8872adf053423
475866093004321237da63de7b143f0f
Current action marked for lock?
class MutexBehavior extends \yii\base\Behavior protected function getIsActionMarkAsMutex() { $method = new \ReflectionMethod(get_class($this->owner), $this->owner->action->actionMethod); $comment = $method->getDocComment(); return (strpos($comment, $this->annotationMark) !== false); }
1
ba69c2958df022080294ef076003d894
3a957d15b0b63eac8dea922cf301e8e6
Return view bounds + some area at top , where enemies spawn
{ float yValue = 0; float cameraWidth = Camera.main.orthographicSize * Camera.main.aspect; float spriteWidth = rend.sprite.bounds.size.x * transform.localScale.x; float xValue = cameraWidth + spriteWidth + 5; return new Vector3(xValue, yValue, 1); }
0
219e981c58b53c97985a9a30ca12a943
c9cffbbec47fceff52698c175c827701
通过主键ID查询PlayerItem
Items findById(Integer id);
1
7ece0a8b0d4a7378dcbc9c0cd8363473
5ff113b0982fbe18cafef1d2a018f214
Filter out excessively short examples
def filter_eliminate_short(dataloader: DataLoader) -> DataLoader: MIN_CHARACTERS = 10 new_data = [] for d in dataloader.data: if len(d['article']) > MIN_CHARACTERS: new_data.append(d) dataloader.data = new_data return dataloader
1
f83bfbe8751cbbfd6fe1e73027d48a27
cad68eb35fe29181c6a44de26b94899c
Returns the caption of a given thumbnail depending on caption display configuration.
class VideoGallery function getCaption() { return ( isset( $this->mCaption ) ) ? $this->mCaption : ''; }
0
aabfd82214cf790551b5dae6a99d97ec
5cc2f6f5f5fda70d8fcb78f1c8caa72b
获取往后推几个月的阴历月,如果要往前推,则月数用负数
function getMonth2(month, len) { month = !month ? new Date().format("yyyy-MM") : month; len = !len ? -1 : len; var yearInt = parseInt(month.substr(0, 4)); var monthInt = parseInt(month.substr(5, 2)); var newYear = yearInt + (len < 0 ? -Math.floor(-len/12) : Math.floor(len/12)); var newMonth = monthInt + len%12; ...
0
5675026e84c653a325bbae7748be5b7c
5db69ecf2b0517266b597420c8f6a332
You may specify a logic to determine whether it is worth to create a new company e.g. all required fields exist.
class CreateDefaultCompanyProperties implements ShouldQueue public function __construct($company) { $this->company = $company; }
0
9863876fe8b6ad1e1f21c6b4fe2bd910
be20163bf61770863d2543c071b85ee2
Makes sure that the logo and app name in the nav bar are vertically centered
navBar = document.getElementsByClassName('navigation--top'); if(navBar.length > 0){ navHeightOnMobile = navBar[0].clientHeight; navHeightOnDesktop = navBar[1].clientHeight; var navOffset = window.pageYOffset; if (navHeightOnMobile != 0 || navHeightOnDesktop != 0) { if (navOffset >= 20) { ...
0
d7ef3a37900090f22f1f7f60fc635cf9
2b26e67f6ee76c71e8fd8e6a8fb1caab
Check the argument list for an option (starting with '--'). Returns the adjusted argument list and the option found.
class GlyphTestArgumentIterator(ArgumentIterator): def nextOptional(self): try: nextArgument = self._next() except StopIteration: return None if nextArgument.startswith("--"): self._nextPos -= 1 return None return nextArgument
0
89b2ec58c1d8654a04c17e09c791830b
61eaf44da24d037717f5b3e551fe8dd3
Register an integer MCA parameter
{ OsclMemAllocator alloc; PvmiKvp kvp; PvmiKvp* retKvp = NULL; kvp.key = NULL; kvp.length = oscl_strlen(aKey) + 1; kvp.capacity = kvp.length; kvp.key = (PvmiKeyType)alloc.ALLOCATE(kvp.length); if (!kvp.key) return PVMFErrNoMemory; oscl_strncpy(kvp.key, aKey, kvp.length); ...
1
1a67d046e9b4217188997798bc617e45
0e29af0551a322ad056927bb61bae539
Decode DL message but don't do anything with content
class PolarCode(object): def ml_decode(self): pass
0
d80b708b905ffec4cfd4c3df804d26b4
0ec78b45444f6f1e685d5d83b05ca9bc
Rejected.
class CancelInstruction(TradeCommand): def on_reject(self): pass
1
aca240ebf78221c84022cfea59d54b0c
0dbd4f5b927d3f0197da7a1f2b0e33dd
POST /group_events POST /group_events.json
class GroupEventsController def index events = GroupEvent.all if status = params[:status] events = events.where(status: GroupEvent.statuses[status]) end render json: events, status: :ok end
0
a2a65a476fe088a9f4a9e746812ef185
9d0925c500f202d3b950e41377f45c09
Tells the GPU that this particular model does not need to be accessed again in this frame and disables it in the GDDR Also begins the preparation of the next frame by enabling backface Culling
namespace Forest namespace Graphics void Renderer::UnbindModel() { glDisableVertexAttribArray(0); glDisableVertexAttribArray(1); glDisableVertexAttribArray(2); glBindVertexArray(0); glEnable(GL_CULL_FACE); }
1
4c3e9e243f826fd1c41b022cfcd4504f
e6151906e7ce3327d781e47752340317
유저가 작성한 게시글 총 개수
public class BbsDAO public int totalMyContent(String userId) { String sql = "select count(*) from bbs where bbsUserId=?"; try { pstmt = conn.prepareStatement(sql); pstmt.setString(1, userId); rs= pstmt.executeQuery(); if(rs.next()) { return rs.getInt(1); } } catch (Exception e) { e.printStack...
1
4d7c30c517120bbb101599873a2e4ca0
e552895f9fd1bbe0b577c7a14ff6681a
Sets the starting input, hidden, and outut variables. Also grabs the right and left Landro motors such that the nueral network outputs can be used to drive them.
class MyRobot(wpilib.IterativeRobot): def robotInit(self): self.robot_drive = wpilib.RobotDrive(0,1) self.stick = wpilib.Joystick(1) self.switch1 = wpilib.DigitalInput(0) self.switch2 = wpilib.DigitalInput(1) self.switch3 = wpilib.DigitalInput(2) self.switch4 = wpilib.Dig...
0
3da2f09ab6d13b24fb55e62698705942
12c87abe089d707390dfb963b3e3e30f
Returns the available message flash categories.
return array( array('TYPO3\FLOW3\Error\Notice', \TYPO3\FLOW3\MVC\Controller\FlashMessage::SEVERITY_NOTICE), array('TYPO3\FLOW3\Error\Warning', \TYPO3\FLOW3\MVC\Controller\FlashMessage::SEVERITY_WARNING), array('TYPO3\FLOW3\Error\Error', \TYPO3\FLOW3\MVC\Controller\FlashMessage::SEVERITY_ERROR), array('TYP...
1
fe5e980207f0b9764fd6e1183fa7fcc8
2c0d8f33e9c1ba65610574bdfba0ce34
通过openid获取用户的电话号码
user = User.find_by_openid(params[:openid]) phone = user.phone.to_s render json: params[:callback]+'({"phone":"' + phone.to_s + '"})',content_type: "application/javascript" end
1
6c827eef44e716cae9d6196f0b0b04c7
528c0dbbccb9f91752fdb075f1193886
根据类型名获取类型ID.
namespace BLL public class TypeBLL public static int GetTypeIDByTypeName(string TypeName) { return TypeDAL.GetTypeIDByTypeName(TypeName); }
1
c535ca70443affd7d340b88f565fe28a
c75948915361c13e75bb26e719a4472b
@brief 百度地理坐标(BD-09) 转换成 世界标准地理坐标(WGS-84) ####此接口有1-2米左右的误差,需要精确定位情景慎用
class Bus extends CI_Controller public function gcj02tobd09($lng, $lat) { $z = sqrt($lng * $lng + $lat * $lat) + 0.00002 * Math.sin($lat * x_PI); $theta = Math.atan2($lat, $lng) + 0.000003 * Math.cos($lng * x_PI); $bd_lng = $z * cos($theta) + 0.0065; $bd_lat = z * sin($theta) + 0.006; ...
0
f61bde0e0dcb98ded23fa06b8e8f3d9e
cd3c7595b894a78fbb0f97053444292a
블럭 추가 함수
{ Brick *brick=new Brick; brick->setPos(x, y); bricks.append( brick ); this->addItem(brick); brick->setPhysicsWorld(physicsWorld); }
1
839f3de695b3f903efbb96d975509f30
3bd50f7036b62175673b16c7547c4bea
企業の1ヶ月の可能件数をリセットする
{ $firstTimestamp = mktime(null, null, null, $month, 1, $year); $lastTimestamp = strtotime("+1 month -1 day", $firstTimestamp); $entireModelsFile = $this->readFile($year, $month, 'entireModels.json'); $currentMonthFixingCount = []; foreach ($entireModelsFile as $categoryUniqu...
0
ff20f36c19c0d7d1bdca89dcf372b731
cdbb7ba709352102521f6f5f1c06e2a9
导出英文德语学时证明
public View uscActivityStdExcelExport(CommandMap commandMap, Map<String, Object> modelMap) throws Exception { return uscService.uscExcelExport(commandMap, modelMap); }
0
53740d92dd35bcd2229650d45d3d7732
cf999acfe618ed96bf6078eb197785e3
Push to gist.
class App(object): def push(self): github = Github() gist_id = GistId().get() token = GithubToken().get() github.login(token) if not self.todo.name: name = "Todo" else: name = self.todo.name files = { name: { "co...
1
43800da050fb90dd0936d736611cad24
90eef5aabb3a5bc76889312274918091
prints the number in binary and then ends the line
void printBinary(int n) { cout << n << endl; }
0
5201e1fc0f56f086306b875f3dcc1f23
995ef25995592aa79e3235c22b6e2567
Create symlinks to image files so project can be contained in single directory
class SymlinkPipInstall(PipInstall): def build_image(self): super().build_image() set_tree(self._image_dir, S_IREAD | S_IRGRP | S_IROTH)
0
5ee5d1c08311a8bc5584bda485de8191
4bb9d88cc30d6fcb6611f470bf4cfbd1
Initialize parameters from the parameter server. Returns true if the parameters were retrieved from the server, false otherwise.
bool ShadeNewmanExploration::LoadParameters(const ros::NodeHandle& n) { if (!ros::param::get("/uav_slam/shade_newman/resolution", resolution_)) return false; if (!ros::param::get("/uav_slam/shade_newman/xmin", xmin_)) return false; if (!ros::param::get("/uav_slam/shade_newman/xmax", xmax_)) return fal...
1
ec158906d3a35175a8a08bf256315f7c
b8cd46f71bebe9baaaf6a30243d38995
Takes a dataframe and a list of columns that should be categorical and makes those columns categorical
cat_vars_tmp = [c for c in cat_vars if c in df.columns] for col in cat_vars_tmp: df[col] = df[col].astype('category') return df
1
87f7dc9dbb33b584d838da4b92546048
0a4101ac849bf24f6f336aaeb6924c0d
0x94 SUB H : Subtract H from A Flags affected: Z - Set if result is zero. N - Set. H - Set if no borrow from bit 4. C - Set if no borrow.
{ set_n(); check_h_sub8(_A, _A); check_c_sub8(_A, _A); _A -= _A; check_z(_A); }
0
cdd4f30fec0d670ce608385f98f49ca0
58fead7f0ad17e1c1cff3899e4b781b3
resets the array holding the combination of keys
void clean_key_arr(int key_arr[][2]) { for (int i = 0; i < AMOUNT; i++) { key_arr[i][0] = 0; key_arr[i][1] = 0; } }
1
540cafff6718b8d65f0886fd14bb0ea3
2f9496360240900e2e222643c519556e
Returns sim main event queue.
class SimulatedExecutionHandler(ExecutionHandler): def __init__(self, events_queue): self.events_queue = events_queue
0
1251e973d974553c9629814024ab49ac
b73e55ba4f171dd8e18d7737ad46183f
Initialize the table of a chromosome
for (int i = 0; i < SIZE; i++) { chromosome.add(initializeChromosomeRandomly()); } }
1
1568440f472b2bbcefa6315aa7a1b974
57170ab598c5b35522a944f45f606762
DECODE state; monitor `radio` and manage packet decoding.
uint8 rxBuffer[128] = {0}; uint8 rxBytes; uint8 marcState; ioPinIntRegister(IO_PIN_PORT_1, GPIO2, &radioRxISR); ioPinIntTypeSet(IO_PIN_PORT_1, GPIO2, IO_PIN_RISING_EDGE); ioPinIntClear(IO_PIN_PORT_1, GPIO2); ioPinIntEnable(IO_PIN_PORT_1, GPIO2); updateLcd(); trxSpiCmdStrobe(CC120X_SC...
1
ac1e79a2c6477857d47106435357dd7e
9095607a2ff8c31368fc54727171d544
扫描课程试题表
$ti = explode(",",$this -> r('ti_id')); $tt = ""; foreach($ti as $v){ $tt .= "'".$v."',"; } $tt = substr($tt,0,-1); $this -> db -> sql = "select * from exam_question where id in (".$tt.")"; $this -> db -> Query(); foreach($this -> db -> rs as $k=>$v){ $v['image'] = preg_replace("'(...
1
bed7823c67390e793bca20e0d6e99280
4814d74cbe1f30c85163f55dc360b802
@brief Generate the header(start) for the model class file
parameters = "" for p in self.parameters: parameters += model_templates.neural_parameter.substitute( \ param_name = p['param_name'], param_type = translate_types_from_python_to_c(p['param_type']), param_translation = p['translation']) o...
1
fd9c651a71f5a6f1cce2b9281a532742
9d90a5693b93f4f53e6aa125cb19baf2
获取账户全部委托单信息
$uid = $request->user()->id; $trade_user_info = $this->_getUserTradeInfo($uid); $data = $this->_stock_trade_api->queryEntrust($uid, $trade_user_info['fund_account'], $trade_user_info['password'], '', ''); return $this->_outPutJson($data, false); }
1
9ff44c4d0529717e4fa79f590e0a1c17
be8e31d57d9ebf7ff61592b577d2aaba
##combines user-specified filters with those created from supplied ##transcripts_ids
combining_func <- function(state, q_value){ if(state == comp_a){ df_filter <- fithic_h_df df_raw <- d_raw_df columns <- c(1:4, 6, 7, 5, 10) ...
0
37529d8e09ee2753698b4356c64f5083
fcf26bb1ad9447dc7187cdb0b7efffdf
根据pid,id,name查询,默认只根据pid查询,name是模糊查询 1.根据pid查询 默认为root 2.pid 与 id 搭配查询 3.pid 与 name 搭配查询 4.pid 与 id 与 name 搭配查询
@Repository public class VegaShopExtraDao extends MyBatisDao<VegaShopExtra> public List<VegaShopExtra> listShopByPidAndName(Long parentShopId, String chileShopName) { return getSqlSession().selectList(sqlId("listShopByPidAndName"), ImmutableMap.of( "pid", parentShopId, "name", chileShopName ...
0
3c8f27b8c88ba91aa626aeefadfb3885
950218f874ef4930eb6af956688442a6
printScript formats a disassembled script for one line printing.
function formatScript(uploadScript, char) { var s = ''; var idt = indent(char, 3); var st = uploadScript.split('\n'); for (var i = 0, j = st.length; i < j; i++) { s += "" + idt + st[i] + "\n"; } return s; }
0
3c3f1cb5dd9b5f30ac6b5b0f6c08a97f
2448db1d503f1a66e63b3cc7d38ffdf2
Set's the helper set instance.
if (!$this->helperSet) { throw new \RuntimeException('No helper set has been specified'); } return $this->helperSet; }
0
b07835f2eebba8aa7b128d7836e7a1db
f2ae8ba90634edd3becea12e74e24f3d
現在のプロセスの有効なグループ ID を返す <p>現在のプロセスの有効なグループ ID を返します。</p>
function getgid () { return syscall(SYS.getgid); }
1
807040d75921be8d787023048d1804b2
329db0af442621a4114481708aadd643
Devuelve query con competencias definidas para una área
@SuppressWarnings("rawtypes") List<Map> buscarPorAreaConocimiento(String param);
1
9456c0af3c3d40302b3a2decb93de47a
526822f797372ef53b4cc2b1d8f24055
Drive for a fixed amount of time, at a given power. Useful for pressing beacon buttons, because it will slow down if it has resisitance. Does NOT try to maintain a heading.
def moveForwards(time,power): newPower = math.fabs(power) dt.drive(vex.DirectionType.FWD,newPower,vex.VelocityUnits.PCT) sys.sleep(time)
1
82151810acaefd8e873aaac85916b6b8
e601e4febf7aaf98580cfe2e6f7f1c43
Converting Rotation angle to positive and within the range [0, 360]
var rotation = rotation while (true) { if (rotation > 360) { rotation -= 360f } else if (rotation < 0) { rotation += 360f } else { break } } return rotation }
1
4c8c5db6188eb0130c130c32277c8b62
d4af75fcba43da6146e1e5d058557bc1
This function is used to ReInitialize an Rx MSDU in preparation of a future reuse. On a MiniportReturnNetBufferLists, we will need to reinitialize the Rx MSDUs so that we can reuse it for indicating other frames in the future. \sa MpAllocateRxMSDU
( IN GT_U8 devNum ) { GT_STATUS rc = GT_OK; GT_U32 rxSdmaRegVal; GT_U32 numOfNetIfs, i; PRV_CPSS_DXCH_MODULE_CONFIG_STC *moduleCfgPtr; GT_U32 mgUnitId; PRV_CPSS_DXCH_DEV_CHECK_MAC(devNum); if(!PRV_CPSS_DXCH_CHECK_SDMA_PACKETS_FROM_CPU_CORRUPT_WA_MAC(devNum)) { i...
0
3fb2258366d8491a4f480bc8b23c89c8
3d1b4f6a93342f6875bf9c28e015fef9
フォーム処理をオーバーライドしてログイン保持の時間を長く書き換える
self.request = request self.session = request['Session'] self.form_data = request['Post'] self.setting = request['Setting'] self.set_title(u'ログイン') self.dba = DBAccess.order()
0
7ac0094a2bfe23dcb3a9a29054e091f5
602dd82652dabb7f0acd8ac6378faf7a
Wait for completion of a playback on the mixer.
class SpeechSynthesizer(SpeechReqProtocol): def wait_completed(self): ret = 0 if self._status == Status.STATUS_STARTED: for i in range(100): if self._status == Status.STATUS_STOPPED: break else: time.sleep(0.1) ...
1
2bac832b0dee1f4c47c305d34cef1f9b
fccf1dcbadf4d2cd393f12e4dcc22341
tweetオブジェクトを渡すと,そのツイートがリツイートされた回数を返す.
class DBAdaptor: def extract_retweet_count(self, tweet): return str(tweet['retweet_count'])
1
43df52cf9edc0371bd5cee56a218412a
83e77e4ab70b59fada9127ec8e805e25
需要保证聊天室和直播间的主播均不是当前用户
let that = this; if(TkGlobal.playback){ return ; } let streams = this.state.streams; if(this.getRoomType()!=TkConstant.ROOMTYPE.oneToOne && !CoreController.handler.getAppPermissions('pairOfManyIsShow')) { const userid = ServiceRoom.getTkRoom().getMySelf()...
0
6597c7fd3a7a8d804208c8654a7b1ddb
104dbfb6a0654ae339899d89b5d5f04c
This simple view does nothing but record the "payment" as being complete since we trust the delivery guy to collect money, and redirect to the success page. This is the most simple case.
the_order = self.shop.get_order(request) self.shop.confirm_payment( the_order, self.shop.get_order_total(the_order), "None", self.backend_name) return HttpResponseRedirect(self.shop.get_finished_url())
1
ab76a2a15eec53fdbe2d2a400f25b927
e865bbd3ad918090ff81d7bc34222139
Manages back btn pressed. Sends user back to customer view.
public class LstCustomerHistoryBusiness extends LstCustomerHistory public void btn_ToMenu_Click(ActionEvent e) throws Exception { SessionUtil.deleteSession(getSession()); forward(BusinessClassHelper.getSubMenuPath(viewState.getString(Constants.M_MENUID_KEY))); }
0
cdbe4c67a8daa819f3ec1630c760146a
a595e04676b1ed402a3cc9f8f8ef8ccb
Lista feltöltése és döntési pont ahol ki lehet választani, hogy milyen típusú legyen és mivel töltsük fel a listát.
let feltoltesbutton = document.querySelector("#feltoltesgomb") document.getElementById("feltoltesrejtett").addEventListener("change", loaddatabase, false) feltoltesbutton.addEventListener("click", function (e) { document.getElementById("feltoltesrejtett").click() }) function loaddatabase(e) ...
0
171dc4f33501af7a0b10ce3dd7fcacc0
f1d5c01b5e7a025c69345f8024911da3
Gets the currency to week end map.
{ return array( array('Mon', 'Mon', 'Mon'), array('Sun', 'Sun', 'Sun'), array('WkDays', 'Mon', 'Fri'), array('WkEnd', 'Sat', 'Sun'), array('WkAll', 'Mon', 'Sun'), ); }
0
55f41d90635486fce4f2e9eb1a79b6c1
a701290bbf701d7a133d049e22c48aa5
При падении мастера слейв становится мастером
public class PinEnemyMultiplayer : EnemyMultiplayer public void PinStunnedEndEvent() { if (PhotonNetwork.IsMasterClient) { navMeshAgent.updateRotation = true; SetState(lastState); } }
0
b105116e7b04e9a158071509719b7026
f96a5bf5d3ff25049d2b2ef9f53ac80f
Currently Spring Data JDBC does not support all SQL types. With this definition the default is extended with custom converters.
convert<Instant>(jackson) convert<OffsetDateTime>(jackson) convert<ZonedDateTime>(jackson) convert<Duration>(jackson) convert<LocalDateTime>(jackson) convert<LocalDate>(jackson) convert<LocalTime>(jackson) convert<MonthDay>(jackson) convert<OffsetTime>(jackson) convert<Period>(ja...
1
3c2f4edf885b41a6f9e934a6e0f46df4
3a32771cd9fca292194af9a99686a822
! ------------------------------------------------------------------------------------------------------------------ @brief This function should disable interrupts. This is called at the start of a critical section It returns the irq state before disable, this value is used to re-enable in decamutexoff call
enum intr_status intr_disable() { enum intr_status old_status; if (INTR_ON == intr_get_status()) { old_status = INTR_ON; asm volatile("cli" : : : "memory"); return old_status; } else { old_status = INTR_OFF; return old_status; } }
1
df065be96738257b97a5ebce8b8680be
35141317f996f5cc6661b99d6649d661
(Boolean) Datablock is tagged for recalculation
class AttemptType implements ModelInterface, ArrayAccess public function getRecalc() { return $this->container['recalc']; }
1
fc49a4a7c8a820729bfbd71883ef71e7
7b69cfe14b60537a0c7498dc377d97ef
Extracts the default value from a default value spec of the form "'some value'::character varying" or "'2000-01-01'::date".
public class CDbColumnSchema extends CComponent protected void extractDefault(Object defaultValue) { this.defaultValue = this.typecast(defaultValue); }
0