query_id
string
corpus_id
string
query
string
code
string
label
int64
0d631970346a40e9a325bda880d8ddf9
e23c0260dbbc6e249e6c79ce047d3868
商圈添加推荐
class Supplyment extends ActiveRecord public static function tRecommend($jsonObj) { try{ $requirementId = $jsonObj->requirementid; $rdata = \frontend\models\requirement::findOne($requirementId); $where['t_house.validflag'] = 1; $where['t_user.validflag'] = 1; $before = time()-2592000; $where['t_h...
0
ff37e5c4bbd025a9468d1e73e454e566
b313e566a8303dd175e855a587d8a6d6
获取指定id的协程的运行状态
static enum States get_state(schedule_t* s, int id) { coroutine_t* c = s->coroutines[id]; if (c == NULL) return DEAD; return c->state; }
1
114efd1cf82ee17f7f5d6d070c639252
6dae3d3198e1c3f462dba3ff2e07a63c
Determines whether it is night or day from retreived webcam image
class LightSensor: def isDaytime(self): lux = getLux() if lux < 50: isDaytime = False return False else: isDaytime = True return True
0
0e1b37d322adb3619229e8bc1b06b6bb
e0677fe4cec57fc8f9ac397fc5ba9791
绑定头布局数据
public class HeaderViewHolder extends RecyclerView.ViewHolder public void bindsHeader() { }
1
737a489d953f55a32c047cece19d5094
4eb75a5af63557e6faf02023d27e4d01
随机生成应用调用API接口的app_secret
class OpenApiService extends BaseService public function getApplicationSecret() { $len = 32; $secret = getRandomStr($len); return $secret; }
1
77d777c0f758b38e381380389066b00e
da58f905b61995c88cdcf2ab9838b015
Controller Baud Rate Control
void CChooseTransDlg::OnRadBcsp() { m_trans = TransBCSP; SetPortBehaviour(portComm); }
0
7988394f20cece7add4790bb3750ba0a
94a885ba062f54605b24fd2d29f7d3ef
Get the length of the binary string.
class BinaryReader public function size() { return strlen($this->bitstring); }
1
70a15a8548ee44896dc009a80efce839
4db7799e319f7b3d72779d19752ef7be
Gets concat people list.
namespace SMARTII.Domain.Master.Parser public class CaseTemplateParser public string CaseConcatUsersParing(List<CaseConcatUser> caseConcatUsers) { if (caseConcatUsers == null || caseConcatUsers.Count() <= 0) return string.Empty; var userConcat = caseConcatUsers.Select(user => ...
1
a90114b47aa521039c537b31d85fd495
286bfde08283c363fb2df95f0f80f810
Returns the processor speed
class Processor(object): def processor_size(self): return self._processor_size
0
a43c5194d22223e2c216e57c8bb486b9
63b31355a8149f9de5fca49a4a470a42
Will turn on specified remote or all.
def turn_on(opp, entity_id=ENTITY_MATCH_ALL): opp.add_job(async_turn_on, opp, entity_id)
1
cc76faf6928030adcb4551dd509bf77c
5e7edf244f3a2f853efbb78fd5e13e31
adds WPML meta box
class Meta_Loader public function add_meta_box() { add_meta_box( sprintf( "%s_meta", $this->post_type ), sprintf( $this->singular_name ), array( $this, 'form_html' ), $this->post_type, 'advanced' ); }
0
d4579d537434c5131d80228d7cf1d8b5
8cc7c3f3b6d5facc77335c64824e6402
设置按钮和viewpager连动效果
public class MyOrderActivity extends IMBaseActivity implements MyLibraryOrderFragment.OnOutLoadListener, MyReturnedBooksFragment.OnInLoadListener{ private void setTabBindViewPager() { mViewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(toolbarTab)); toolbarTab.setOnTabSelected...
1
c92e7597eee03a0ccf24396c22bdaed8
aa2cffd0b404012f83bdbed8d36a11b0
Testing the str method in the Question class.
class LastRetrieveDataModelTests(TestCase): def test_str_method(self): q = create_last_pulled(days=0, model="TestModel") self.assertEqual(str(q), q.model)
0
77ca6e8aa6a8e5579d96b83b16681101
71cf526d04b924a7fad0eec1a95ff220
Menukeuze: help - about
print("Willkommen zum Spiel") print("Bitte wählen Sie und Option:") print("1. Normales Spiel") print("2. Benutzerdefiniertes Spiel") print("3. Spiel mit der Falle") print("4. Spiel mit umgekehrten Abbiegerichtungen") print("5. Beenden")
0
b9c2660fee3e7b4f7e67f142e8af8392
16bd28dd757701d53a4537ab96aebd3c
根据测量值和上下公差,返回测试结果;
namespace GModel.mySysterm.myDrawingCore public class clsColorRamp_Stretch : clsColorRamp public override double Check_Value(double dValue) { try { if (m_clsStandEevσ == null) { this.Create_StandEevσ(); } ...
0
5642100db963bf1253c092113e4e67f0
eee9ff8c82254cd208f7c69f3cee81c1
System.Boolean System.UInt32::TryParse(System.String,System.Globalization.NumberStyles,System.IFormatProvider,System.UInt32&)
[__DynamicallyInvokable] public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, out uint result) { NumberFormatInfo.ValidateParseStyleInteger(style); return Number.TryParseUInt32(s, style, NumberFormatInfo.GetInstance(provider), out result); }
1
93f033c405250903be00101bb00f9405
9306ee373caeaaed3e4fb48c2523dafc
This function gets the information of all the subproject that exist. The information it's returned as a collection of strings, so it uses iterators.
void GetAllProjectNames(Strings* out) { Strings allFolders = GetAllFoldersInADirectory("Projects"); for (uint i = 0; i < allFolders.size(); i++) { String current = allFolders.at(i); String theText = String(current, 9); out->push_back(theText); } }
1
5fa64c9d340e6713b3c8cf15bb47fd48
b2818fdfb29ef5c7e3b5db698b5cd357
Get the Global Error panel
$lErrors = $this->GetGlobalErrorsArr(); $lResult = ''; $this->m_pubdata['global_errors_count'] = count($lErrors); $lCurrentErrorIdx = 1; foreach($lErrors as $lCurrentError){ $this->m_pubdata['current_global_err_idx'] = $lCurrentErrorIdx ++; $this->m_pubdata['global_err_msg'] = $lCurrentError; $lResul...
1
7a68685160b8765eba048fb3c4851263
42fa3a5314f534b62c05dad60abb1e88
获取用户信息,包括用户名,邮箱,积分等等
String systemInfo = (android.os.Build.BRAND+","+android.os.Build.MODEL+","+android.os.Build.PRODUCT +","+android.os.Build.VERSION.RELEASE).replace(" ", ""); ArrayList<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("uuid", uuid)); params.add(new BasicNameValuePair("...
0
3623d8b86924e109ee178149c3c5a356
dd29dcd07b3c9051b94383bb50abe6bb
添加股票数据,插入前判断,不存在才插入
class LocalStocksConfig : AbsConfig() fun add(stockInfo: StockMarketInfo): Boolean { if (isExist(stockInfo.ts!!, stockInfo.tsCode!!)) { return false } stocks.add(stockInfo) write() return true }
1
489c5a63fec1d3f509bdf276d2bbf078
1935dfe2258aab15b420be90c902b59c
Metodo getter che restituisce il cooldown per il prossimo sparo
public class PlayerShoot : MonoBehaviour public float getInterval() { return interval; }
1
b797669e8f51e99ddba9a615cc260f98
bdc620d83c602f1d420388e9e65f480e
Проверяет, разрешается ли машине въезд
public class Junction extends Point implements RouteParts @Override public boolean canLeave(Vehicle vehicle) { return checkAvailability(vehicle); }
0
a3534a98d8ce4eae0f3d157046325570
cc272cddc45ee3b2df7af5197d0322f3
获取即将过期的 domain 数据
class DomainSync public static function get_unprocessed_domains($registrar, $limit = 0) { $table_name = DomainSyncScheme::get_table_name($registrar); try { $domains = Capsule::table('tbldomains') ->leftJoin($table_name, 'tbldomains.id', '=', $table_name . '.id') ->where('tbldomains.registr...
0
b95c89ac058e617398d0b27e70081a03
c33159ef56f6b6f98f6b8639ed714aa7
Generate the `GROUP BY` and `HAVING` clause.
{ $groupHaving = ''; if($group = trim($group)){ $groupHaving = ' GROUP BY ' . $group; if($having = trim($having)){ $groupHaving = ' HAVING ' . $having; } } return $groupHaving; }
1
390b1f3938810f3e67f4a81986979928
4321dcf5679d2863c802f7c48f42d391
与常数相减产生新函数
public class Minus extends BinaryExpression implements Expression @Override public Expression differentiate(String var) { Expression left = super.getLeft(); Expression right = super.getRight(); return new Minus(left.differentiate(var), right.differentiate(var)); }
0
bcd26c2fabfac380195a822e744f9082
e834cac982c05acfbd7c97f6901d7979
Refresh the main list with all the albums
void refreshList(ArrayList<MoAlbumItem> albumItems);
1
b4eef67c2a0b29019d47b1672a3a5bf6
185a0db4ba88e0c79b853f83ac42ced2
パーティにメンバーを追加する
class Game_Party def add_actor(actor_id) actor = $game_actors[actor_id] if not @actors.include?(actor) if @actors.size < (FRONT_MEMBER_LIMIT + BACKWARD_MEMBER_LIMIT) @actors.push(actor) $game_player.refresh end end end
1
d796180a5b913870d81e74b83f521395
9c66cfc06be37a8db143877da7fefef4
Test adding items to the weather log
public void addTest() { smallList.add(testLog); assertEquals(1, smallList.size()); assertEquals(testLog, smallList.get(0)); smallList.add(testStep); assertEquals(2, smallList.size()); assertEquals(testStep, smallList.get(1)); smallList.add(testLog); smallList.add(testLog); ...
0
73badb76e06ab371d6dbebd11cf323b2
d2ca932de16e509aa08ec8f0b6bea3cd
OnResolve
this.logger.debug('onResolved'); const data = CommandHandler.createEmbedData( cmd, this.defaultEmbedColor, embedFields, directMessage, ); bot.sendMessage(data); }
1
6d883d69f779cc76cc59f474fde4d4b1
488550015676f8adcce382309143da2e
This function is to read the user json data to get the userId and the average votes per review of a user
user_to_rating = {} usernames = [] filmscores = [] with open(filename, 'r') as f: first_line = f.readline().upper().rstrip().split(',')[1:] for i in first_line: usernames.append(i) filmscores.append({}) for line in f: line = line.upper().rstrip...
0
d3f4fbee8b609a13013596cf6bfb7e80
580ba4ad7586db6ad0c7bb1f7b19c848
Sets the message of the day to a new value. Syntax: /motd_set (new message of the day)
class server_commandscript : public CommandScript static bool HandleServerSetMotdCommand(ChatHandler* handler, char const* args) { sWorld->SetMotd(args); handler->PSendSysMessage(LANG_MOTD_NEW, args); return true; }
1
87bbe7e3758b22d84586ab60c4546038
c8c72130266a76fd0959b8b958c1d20f
不使用判断求绝对值
public class Demo public static int abs(int x) { if (x < 0) { return -x; } return x; }
0
3f155215334fd585412d168f9488a464
f9df95f9efc8bad72845c4716411b830
Hromadná archivace/dearchivace úkolů
class ArchiveController extends \BaseController public function index() { $tasks = Task::where('user_id', Auth::user()->id)->where('archive','1')->get(); return View::make('tasks',['tasks' => $tasks]); }
0
130b89a6c2ded805fd5a789b75c5a939
7e0dabd070e1022d5bf5e202262a3aec
REQUIRE COMPONENT to be on SPECIFIED COMPONENT'S GAME OBJECT: Require the specified Component type to exist on the specified source Component's GameObject.
{ if (!G.U.SourceExists(me, typeof(T), throwException)) return null; T comp = me.GetComponent<T>(); if (G.U.IsNull(comp)) { string s = string.Format("A {0} Component must exist on the {1}'s {2} GameObject.", typeof(T), me.GetTyp...
1
cdb2df6d80011a9e3e5937c2d45e9f1f
cdc38af035c76ff3fa95d5ea369d8a2c
构建结算账目操作列
{ GridViewRow Row = FooterRow; if (FooterRow == null) { Row = gvw.FooterRow; } else { Row = FooterRow; } int i = 0; decimal total_amount_of_AccountsReceivable = 0; decimal total_handled_amount = 0; decima...
0
923c125a2dd52088f795da52edeb1c9a
dc73732816c64214a972c4bfc43ca3ea
Insert or Update a new Affiliation
def create_or_update_affiliations(user, org_id, records, *args, **kwargs): records = list(unique_everseen(records, key=lambda t: t.record.id)) org = Organisation.get(id=org_id) api = orcid_client.MemberAPIV3(org, user) profile_record = api.get_record() orcid_affiliation_types = [ "employment...
1
6aababd36ccdde61823c5bf4ae37f31e
966bb93cfb5c4981d33b19321d8f136b
Gets the compatibilityMode property value. Controls what compatibility setting is used for specific sites or domains. The possible values are: default, internetExplorer8Enterprise, internetExplorer7Enterprise, internetExplorer11, internetExplorer10, internetExplorer9, internetExplorer8, internetExplorer7, internetExplo...
class Client public function getCompatibilityMode() { return $this->compatibilityMode; }
1
3ae0e5628fd092a13f46e15150e400c2
1663525c935074181468a3ccd868c160
Returns the meta object for class '{@link org.openhealthtools.mdht.uml.cda.phcr.flu.InfluenzaPHCRSocialHistorySection <em>Influenza PHCR Social History Section</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getTuberculosisPHCRClinicalInformationSection();
0
37153dfeec8cf6d8b398fa4bcdb9b857
a42f30469104ff28d751d834b78454cb
merge two numpy arrays that each have missing data, as represented as np.nan
def compare_arrays(arr1, arr2): return (arr1 == arr2) | (np.isnan(arr1) & np.isnan(arr2))
0
8296efbafc35fb25e4105035dbaa5e00
80c9dd58190c8eee8080b73d48312690
gets an array of cupcake objects
response = self.client.get("/cupcakes") response_data = response.json['response'] self.assertEqual(len(response_data), 1) self.assertEqual(response_data[0]['flavor'], 'banana') self.assertEqual(response_data[0]['size'], 'smol') self.assertEqual(response_data[0]['rating'],...
1
54012c68a211c5120b0fda422290aa26
8c9a6cca48eb7e0019deaa567d9a9f17
随机位置已存在物体时扫描屏幕空位
public class SelectSceneMotionManager : MonoBehaviour public Vector3 RandomPosition() { Vector3 position = Vector3.zero; do { position = new Vector3(Random.Range(-450.0f, 450.0f), Random.Range(-250.0f, 250.0f)); } while ((position.x > -300 && position.x < 300) && (positi...
0
9f401caade62eddc5a1edf455afafc2b
e506a1459b7fe9a6f00ecd335caa39f7
This method will construct the card for share feedback bot menu.
{ AdaptiveCard responseCard = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0)) { Body = new List<AdaptiveElement> { new AdaptiveTextBlock { Text = "¿Necesitas más ayuda?", ...
1
caf56610298908664c1255823c4a6dd4
f39ef0212cf8f10bc71fef7c8cf0f869
更新变量池的值,先更新子模板的变量,找不到后再更新变量池的变量 因此重复变量将仅影响本次子模板的值,不会影响全局
var curChangeTable = _blockList.Last.Value; if(_varTable.ContainsKey(name)){ if(curChangeTable.ContainsKey(name)) curChangeTable[name][1] = val; else curChangeTable.Add(name, new int?[]{_varTable[name], val}); _valCount[_varTable[name]]...
1
b00d13f2980526b41bc9c7bc697e25fa
e43dc8ee897d1e5bbbe6aff6dfe50a25
! Pionowe przesuniecie drona w czasie \retval Czy operacja wykonana poprawnie
{ ready=0; left=avg_predkosc+skret_speed; right=avg_predkosc-skret_speed; if(poprawka==1){poprawka_skret=1;}else{prostaJazda = 0;} setTracksDir((left>0)?FORWARD:REVERSE,(right>0)?FORWARD:REVERSE); setTracksSpeed(fabs(left),fabs(right)); now_deg= eCompass(); destination_deg=dir; if(destination_deg<0){destinat...
0
8689c2208986712418178997d82946db
c388c3b3f9ec24ce0781476e1b3155cf
Adapted from https://stackoverflow.com/a/30990617
let negative = if num.is_sign_positive() { "" } else { "-" }; let num = num.abs(); let units = ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; if num < 1_f64 { return format!("{}{} {}", negative, num, "B"); } let delimiter = 1000_f64; let exponent = cmp::min((num.ln() / delimi...
1
4df6e47d69e56fda92b68b994a9b6c4a
7f61448ad6da3ef0f9cb03f40c5be655
(Excel方式)
cases like (1)
0
09eb5ce68f32b568d284ba68cf2bb4e7
602546bfee4c6824c0fba0854b040cb4
Возвращает ссылку на ИД языка в БД
class DotCoreLinkBLL extends DotCoreBLL public function getFieldLanguageID() { return $this->GetDAL()->GetField(DotCoreLinkDAL::LINK_LANGUAGE_ID); }
1
cbf98c05ed2776c8aca1b5fe7c39b143
e799e90454af56e72377d1266154bf69
高度を受信データから取り出す
data = { "command": "get_height_info", } json_data = JSON.stringify(data); ws.send(json_data); }
0
23a7051bab2d8827a62069dad9afeef1
2f5d7b3538dc9b99a832e35b79c95ccf
Return health care score
@AutoEscape public String getHealth();
0
5018315ad4066c769800fc54d338a3f9
d74014de57a0426c126afc8679db2fc1
对接收到的包进行处理,将其行结束符转化成本机的行结束符
def rec_translate(data): if conf.get_protocol_type() == 1 or conf.get_protocol_type() == 3 or conf.get_protocol_type() == 5: data = re.subn(b'\x7d\x02', b'\x7e', data)[0] data = re.subn(b'\x7d\x01', b'\x7d', data)[0] elif conf.get_protocol_type() == 4: data = re.subn(b'\x54\x01', b'\x55'...
0
5531e28678fa36db536220303d7e39c9
30100fdd7f29c45d45b14fffdc09fc60
create a smaller event data csv file that will be used to insert data into the Apache Cassandra tables
df_dict = { "event_id": [i for i in range(1,n+1)], "event_name": [ "".join(np.random.choice([i for i in string.ascii_lowercase], random.randint(5, 10))) for _ in range(n) ], "meeting_link": [ "".join(np.random.choice([i for i in string.ascii_lowercase], random...
1
eb9e2b3db870e05ea343fa6d2032244b
598a5b6145a7d4e7e86a59c1e8bca756
Function to undo the validation
function toggleValidationOff() { $('#addressBanking').removeClass("requiredContent") $('#cityBanking').removeClass("requiredContent") $('#postcodeBanking').removeClass("required-postcode") }
1
3016ff63520c134e1dad975b9017018e
2d20ba26fb88519e004aae322ebeff23
hide all dropdowns that are still open; or allow them to be shown again
{ if(currentDropMenu != null) { if(currentDropMenu.style.visibility == 'hidden') { window.clearTimeout(popupTimerID); popupTimerID = window.setTimeout("DelayedShowPopup()",popupTimerTimeout); } } }
0
71ad89aafa6f943ca8adf724fb57ec4e
a7084aea9e3907be06a26546a5602057
查询当前线程是否保持此锁。
public class ReentrantReadWriteLock implements ReadWriteLock, java.io.Serializable public static class WriteLock implements Lock, java.io.Serializable public boolean isHeldByCurrentThread() { return sync.isHeldExclusively(); }
1
9492d20f8b414e461a300ae120671dfa
74014823962cd7d119d100c8ba1ddaad
通过反射机制设置移动网络
@Deprecated("反射不能打开或关闭移动数据,故舍弃") @JvmStatic fun setMobileDataEnabled(context: Context, enabled: Boolean) { try { val manager = context.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager val setMobileDataEnabledMethod = manager.javaClass.getDeclaredMethod("setDataEnab...
1
3863be9979eb5a2ef0366eb4d2cf47ec
d1e9a97f4c467a85341d7d615dc9932a
通过学生名查看学生答题情况,兼容以后的免费课有权限表
List<WtrjRptScoreExamIns> searchByStudentNo(String studentNo, Integer classId);
0
c2d30d9100a7691efd1d074118ba7d2d
4582d3de2787eda96f27c5206834a91d
Gets the conferenceId property value. The conference id of the online meeting.
public String getConferenceId() { synchronized (syncRoot) { return conferenceState.getID(); } }
1
76729c483d0d274df0231ffa0b24d53e
08401ced88ed078883e9b14cafd259d1
Get 子目录列表 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
public class NetworkAcl extends AbstractModel{ public Subnet [] getSubnetSet() { return this.SubnetSet; }
0
b23b406994d4fbac5bc1812829bc8935
04f985bab644e2ddde13565c87060f8f
カメラ行列(右手系)を設定する。
class VaryTools fun setCamera( ex: Float, ey: Float, ez: Float, cx: Float, cy: Float, cz: Float, ux: Float, uy: Float, uz: Float ) { Matrix.setLookAtM(mMatrixCamera, 0, ex, ey, ez, cx, cy, cz, ux, uy, uz) }
1
9cfea19ac908493dda2ecb63d9ea8828
ab2f60cd4ada7b50d88793d82eb841a8
Логирование при сохранении сервиса
class Object extends \app\components\ModelFields public function afterSave() { if($this->isNewRecord) \Yii::app()->appLog->object('OBJECT_CREATE_TITLE', 'OBJECT_CREATE', array('{object}' => \CHtml::link($this->idobjects, array('/site/objects/view', 'id' => $this->idobjects)))); else \Yii::app()->appLog->object('OBJ...
1
cbd8d5d9fd7c1cdba0bb0bf7d100561e
dcaf94d986b9bb99880aad4513ba7f94
Returns a string to translate for the user visible connection state. connectionState
{ if (value == null) { return Visibility.Collapsed; } if (!(value is ConnectionState)) { return Visibility.Collapsed; } ConnectionState state = (ConnectionState)value; return state == ...
0
5303f81406a588061dedc29a73145a8c
cf16db64fe181885962188ea0b0a72a0
Set extracted OS.
namespace LGP.Components.Factory.Interfaces.Database void SetOs( string val );
1
555c8607edaaaa2829fc19aead51a956
5dd545be7488f4d42a751d5b785be335
复制邮箱地址
if (copyto == null) return false; logger.info(ResourceUtil.getResourceKey("EMAIL.SET_COPYTO")+ copyto); try { mimeMsg.setRecipients(Message.RecipientType.CC, (Address[]) InternetAddress.parse(copyto)); return true; } catch (Exception e) { return false; } }
1
2d62c8e604bc12393bab027abfd1d137
a56b7238d1da00113ca805b97729bb26
Draw all the white pieces in the List.
{ for(int i=0,n=mWhiteArray.size();i<n;i++) { Point whitePoint=mWhiteArray.get(i); canvas.drawBitmap(mWhitePiece, (whitePoint.x+(1-ratioPieceOfLineHeight)/2)*mLineHeight, (whitePoint.y+(1-ratioPieceOfLineHeight)/2)*mLineHeight, null...
1
cc21733f390e846cdeb48a748d8e8751
93fee33bd6f8649520cae497483ef981
plots set of light curves after each given function meant to see affects of functions on each target's light curve/aperture :fout: output folder :save_fig: save figure to pdf as apposed to showing the plots :funcs: list of functions that take in target :kwargs: optional arguments for list of functions, unique for each ...
targets = list(epochs.keys()) plt.close('all') scale = 0.009971 color_norm = Normalize(2015, 2019) cmap = cm.get_cmap('rainbow') for tt in range(len(targets)): target = targets[tt] n_epochs = len(epochs[target]) plt.figure() for ee in range(n_epochs): ...
0
b9f75e32e3baf2505c13b606a6911d53
19a250ab905c59ff793521efa2693a56
Decrement the 16-bit DE register.
void CPU::op0x1D () { Decrement(DE.lo); clockCycles = 4; }
0
1d311c841bf6b3c82ee0539792abaf64
f61f8ca061536ae07dcc9a4738603891
pun fiecare solutie in casuta respectiva rank-ului din matricea mare
{ for (int i = 0; i < (COLOANE - 2) / 2; ++i) { solutie.emplace("s(" + to_string(i + 1) + ")", m[LINII - 1][i]); } }
0
56c601f419739990a4d53d02c1d9d1b8
f189e6715a2653da1af0d54a92945558
Método para listar las series de la lista Watched de un Usuario.
class WatchlistController extends Controller public function index(Request $request) { $filters = collect(Auth::user()->settings->watchlist_filters); $series = Auth::user()->watching->sortBy('name'); $items = DB::table('watchlist') ->join('series', 'series.id', '=', 'watchlist.se...
0
73f5722c2429f4c5254988d3b5201828
ad08f696bd12281e483c1692fc975402
上传json数据保存评论页面
$data=array(); if((isset($_POST["comment"]))&&(!empty($_POST["comment"]))){ $cm = json_decode($_POST["comment"],true); $cm['create_time']=date('Y-m-d H:i:s',time()); $cm = Comment::create($cm); $data = $cm; }else{ $data["error"] = "0"; ...
1
0ea63d7e1cea0a2fce99bbffa20335bb
8acd5887c74ba672549242c221e9f0e5
QUANTIDADE DE BANNERS POR PÁGINA DA AREA DO TOPO NO CARROSSEL
namespace EC_Manager.Test.Map public class Banners_Map public static SelectElement CmbQuantidadeBannersPaginaEntreVitrine(IWebDriver driver) { var obj = new SelectElement(driver.FindElement(By.XPath("//div[@id='settings']/div[3]/form/div[6]/div/div/select"))); return obj; }
1
19449aec7a441a5b099b76e0709b5d68
01e20c95c731432480664c24136e57d4
通过clinicNo获取clinic
namespace ClinicManager.Domain.Interfaces Task<Clinic> GetClinic(Guid guid);
0
31c274e5bbf59cd6f3c8b2bbd7abe1aa
80f6e448563d8a2ef88a39b69671ea24
Return bytes occupied by clip
start = clip_data.get('startTime') end = clip_data.get('endTime') return round((end - start), 2)
0
9d89824b96a5edb0518999eb69341f27
fd17306ca0310b8d9fc3f2e26cbbaa36
Set window maximized state
void interface::on_action_Maximize_triggered() { this->setWindowState(Qt::WindowMaximized); }
1
b323ace0060d2e6901c021855b8ad885
9b338b32ea5d13da529c58a0bf90cbb9
Helper function that removes unnecessary information from lines in TED Corpus
def removeExtras(line): line = line.replace('<s>', '') line = line.replace('</s>', '') line = line.replace('<@>', '') line = line.replace('<p>', '') line = line.replace('</p>', '') line = line.replace('\"','') line = line.replace('.', '') line = line.replace('?','') line = line.repla...
1
d05e4494227e0c5d046901dfa6683f98
cdbe81c66ad5f7983778a46aae9a7e56
设置需要下架的产品id。多个产品ID用英文分号隔开。 参数示例:<pre>109827;109828</pre> 此参数必填
class CaigouApiProductQueryProductParam public function setProductCodeList(array $productCodeList) { $this->sdkStdResult["productCodeList"] = $productCodeList; }
0
fa5439bf84a316d1bd525db7bd61a283
981913b0e3d28c5dc1a4caa0ee662b62
Change "Posts" objects to "News".
function change_post_menu_label() { global $menu; global $submenu; $menu[5][0] = 'News'; $submenu['edit.php'][5][0] = 'News'; $submenu['edit.php'][10][0] = 'Add News Article'; $submenu['edit.php'][16][0] = 'News Tags'; echo ''; }
1
58092211da01783fb429da9981df6f69
bdaeef632e8c214021fedcefa3ceef86
根据热敏单号列表查询表thermal_tracking_number_print_record,得到该热敏运单号列表中每个运单的最近的一条打印历史记录信息
namespace HozestERP.Web.ManageCustomer public partial class XMChoseExpress : BaseAdministrationPage, IEditPage public void ExpressDirectThermalPrint(List<int> IDs, string ExpressId) { string emsCustomerCode = ""; string printer = ""; string cp_code = ""; this....
0
2c5c45e7ce196cf1dddddbaf7c8295cf
56c0e5487bbacd80be529555a4b6c28e
log in and sign up options
function open_log_in() { var slo = document.getElementById('signup_login_options'); var upi = document.getElementById('username_password_input'); slo.style.display = 'none'; upi.style.display = 'block'; }
1
d50b43af008cd96a8665b7772a80737b
66019367a2fc51163cb648eb94e64a37
根据相册名加载图片
public class LoginActivity extends AbstractAppCompatActivity implements View.OnClickListener{ private void loadImage( String userName ){ String url = pictureInfoBO.getPhotoURL( userName ); System.out.println(this.getClass() + " 取到的url是"); System.out.println(url); imageView.setVisibilit...
0
04ae7ca97a91f3dd059cf4047ed4fd96
824efb0c8589d8ad5ad74773d6837737
Convert tool list to Tool object
namespace FarmSim.Player public class ToolHandler : MonoBehaviour, IOccurPostLoad private void InitTools() { toolList.ForEach(tool => { tools.Add(tool.ToolType, tool); }); }
0
d03e90cfb0204b088f5331ce651d73f6
79af907a685a22785a215ec299c6d4af
play animation for vertical bobbing along pivot point (rotateAround actually applied in Ironsights.cs)
{ if (inputState.playerIsGrounded && (Input.GetAxisRaw("Horizontal") != 0 || Input.GetAxisRaw("Vertical") != 0)) { float bobSpeed = walkBobSpeed; float bobAmount = walkBobAmount; if (inputState.playerIsSprinting) { bobSpeed...
0
e4c9aae7d5d3700d812ec603befa49da
4eb87a3f3f6961e42aa7bff783b47351
ファイル(XD形式)を保存する。
{ dadip_errinfo err; CHECK_UPDATE_ERROR(err, DaDip_Create_File_Writer(&img->filewriter, filename)) Write_BmpFileheader(img); Write_Bitmapinfoheader(img); switch (DEPTH(img)) { case 8: CHECK_UPDATE_ERROR(err, Write_Pixel_Array_8bits(img)); break; case 24: CHECK_UPD...
0
ae4c15ef465df53a5d7693463f0780e0
1af05148386326f22af144528fdc677a
Класс для составления дерева ключевых слов(бора).
keys_in = keywords(text_in) s = lambda x: len(list(set(keys_in).intersection(set(x.keywords)))) branches = tree.branches branches.sort(reverse = True, key = s) return branches
0
0edd8620e89fc7f0ca224b355ecf4108
b21ca8dc8a1279a16f72838f5ec43565
Set window position and size
uint8_t buf[4]; windowHeight = h; windowWidth = w; windowArea = w * h; spiCommand(0x2A); buf[0] = 0x00; buf[1] = pos.x; buf[2] = 0x00; buf[3] = (pos.x + w - 1); writeFastSpi(buf, 4); spiCommand(0x2B); buf[0] = 0x00; buf[1] = pos.y; buf[2] = 0x00...
1
e1ef1d311fb2b95f868dbd624f4992ec
b9a0a819440743ae3c696ad2a641cc1d
Возвращает фильтр по агентам для запроса
class TpsReports extends CComponent public static function agents() { $var = new AgentsReportRequest(); $var->filter = new AgentsReportFilter(); return $var; }
1
dd6dc68d939fa0e9591373805fd67104
83cd42b533a58b364e3133c8113d5819
metodo que cadastra lojas na aplicacao
{ $data['estados'] = converteArray(\App\models\State::all(), 'id', 'name'); $data['titulo'] = 'adição de loja'; return view('central/loja/add',$data); }
0
5592886b0fcfae249c2eda73261283d2
37b6d46a05dfd3364e4269d16a239718
Returns the value of field modificado_por
public class TcSituacionOkDTO implements java.io.Serializable, Model public java.util.Date getFecModifico() { return this.fecModifico; }
0
bf6a36fe4a4d60334e8b596d444a95f2
b3e81b460621259e2aa4c3a80f47ead0
获取我的页面的找回支付密码页面的title
head_back = (RelativeLayout) findViewById(R.id.head_back); TextView tv_title = (TextView) findViewById(R.id.tv_title); tv_title.setText("找回支付密码(2/2)"); }
1
ac405f2754eef8476ef2e18c0a4542cf
166a5a9c770aed53b9a5e8b1a2f13e23
原始图片提取经纬度信息
class MetaPicture(object): # 类变量,图片文件夹的绝对路径 def get_picture_exif(self, picture_name): img_file = open(picture_name, 'rb') picture_info = exifread.process_file(img_file) if picture_info: for tag, value in picture_info.items(): print(f'{tag}:{value}') pr...
1
04afb050cbff344b3afd5453250367e5
6bec348a9de72b11e7555a3334f4bae0
Updates user profile without image
if(!$this->is_image_file) { return $this->update('user_id = ?', [Session::get(USER_SESSION_NAME)], ['username' => $this->username]); } else { $this->update('user_id = ?', [Session::get(USER_SESSION_NAME)], ['username' => $this->username]); return $...
1
921925a464fe21dcdc4a7523b1a6b3ed
2b9547f4c6d38b91f0523e0ba1db6d95
Attach a click event to a legend item.
namespace Kendo.Mvc.UI.Fluent public class ChartEventBuilder: EventBuilder public ChartEventBuilder LegendItemHover(Func<object, object> handler) { Handler("legendItemHover", handler); return this; }
0
8cb10944d49f36b029993f5bbec864ae
76b387c034a947e617671ca6fe9480ac
根据token获取access_token
public class KuaiPanOAuth public AccessTokenRes accessToken(RequestTokenRes param, String verifer){ try{ AuthEntity oauth = new AuthEntity(); oauth.setConsumerKey(KuaiPanGlobal.CONSUMER_KEY); oauth.setSignatureMethod(KuaiPanGlobal.SIGNATURE_METHOD); oauth.setTimes...
1
be2586a68d86028964ef5be7a618bff8
1488fa9b8a8765a3aa15e1b4b89c9fba
获取上一次发送时间
public class Content public Date getLastSendTime() { return lastSendTime; }
1
b2af8fa8201ca2c84b9e10b76ec77446
04514342747fd588784e369ef51ddb03
徽章取消使用
class CardService extends MemberBaseService public function codeuseoff($inter_id = '',$openid = ''){ $this->getCI()->load->model('membervip/common/Public_model','common_model'); $where = array( 'openid'=>$openid, 'inter_id'=>$inter_id ); $scanqr_auth = $this->getC...
0
3d07b12cf9c20b1d5c99aef5ad798044
a5fbf8284bd992b7a0f8bbbd38f88b23
根据分支获取所有的commit
{ var projectId = await GetProjectIdAsync(gitMap, repositoryName, owner); if (projectId.IsSuccess == false) { return Result<IEnumerable<CommitModel>, string>.CreateResult(null); } RequestParam param = CreateRequestParam(gitMap); ...
1
a57d7462f0a79bed32ea25fa6ba84177
73d31decc9d2c45852d5d390e8ae1abf
设置网卡名
cur_card_name = self.net_card_data[self.Window.netCardList.currentText()]['card_name'] if not cur_card_name: QMessageBox.warning(self.Window, '提示', '没有找到任何网卡') set_ip_command = [f'netsh interface ip set address "{cur_card_name}" source=dhcp', f'netsh interfa...
0
c54dbadae554a3e88cc0081e296f93b7
8b923b698045a1565fcda445d17a9ce7
Read the target output current.
class KA3005P: def GET_OUTPUT_CURRENT(self): return self.FEEDBACK("IOUT1?")
1
0a06622dcb1f07f13b17cf0f80f06afc
683fc221cba661ec2802f1d65c81996f
Get separation dependent correlation function from correlation matrix and distance matrix
def _cdist(x_A, x_B): d = cdist(x_A, x_B, distance_correlation) return d
0
8963d48cc82dd34e5f4e606c9157c363
c9a1cc072f6b00dd63707aa569fad97e
Content Assistant: Analyse content.
class CmdUI(Cmd): def do_analyze(self, args): filename, report = None, None try: filename = self._make_filename(args) filename, report = self.service.analyze_document(filename) except FileNotFoundError as e: print(f'File not found: {str(e)}') finally: ...
1
77d13b7e97853103feb7ab39d14ce7ca
eca25a7e8cdc629d3a148a53e2f7f1f7
Method to attempt to implement Hungarian Algorithm
int hungarian() { int ret = 0; max_match = 0; for (int i=0;i<xy.size();++i){ xy[i] = -1; } for (int i=0;i<yx.size();++i){ yx[i] = -1; } init_labels(); augment(); ...
1