query_id
string
corpus_id
string
query
string
code
string
label
int64
7b6e18a92b6636df0825754b06b7f4e9
7364032289857e9c668cebd0dc5edb45
Build the Region proposal network including: - A conv layer to generate intermediate feature map - A conv layer to generate objectiveness score for each anchor (foreground / background) - A conv layer to generate bounding boxes offset for each anchor
class ProposalLayer(nn.Module): def build_heads(self, cfg): self.conv_cls = nn.Conv2d(cfg.PROPOSAL.C_IN, cfg.NUM_CLASSES, 1) self.conv_reg = nn.Conv2d(cfg.PROPOSAL.C_IN, cfg.BOX_DOF, 1)
1
9e100055b57f1d0cdf140469a01df011
8efa035e95c49cd81d871e5e60229866
Consulta a través de web services de las asignaturas por carrera.
String[][] getAsignaturasPeriodo(int PeriodoAcademicoId) throws AgendaException;
0
1df6b5bc74e554dfa3e24b0ffe750ae8
8bddbf75e7c9b3d01e75153bb8c4a424
This method validates and Unassigns/Unregisters Device for the intended Subscriber.
location = "Unset value [%s] = %s" % (context, kwargs) self.log.debug(location) self._check_session() try: self._unassign_attributes(context.current_object, **kwargs) except BambouHTTPError as e: raise VsdError(e, location) except DeviceWriterError...
1
e29164d7593792dd85cdf57d2893a901
a3d4d4f448c9417aa3ba75dc1c8ee20f
Iterate through active instances
namespace AttributeStudios.Games.Xna.Api.Pooling public sealed class PoolGeneric<T> : IEnumerable<T>, IPool IEnumerator IEnumerable.GetEnumerator() { return this.ActivePoolInstances.GetEnumerator(); }
1
150dea3560d88a43090e7ad61f9a952f
f5b92a83ff1974585eeeffd81bb4d3ce
根据团队获取项目
AsyncHttpResponseHandler handler) { RequestParams params = new RequestParams(); params.put("teamid", teamId); HttpClientService.get("action/api/team_project_list", params, handler); }
1
a8f2ac74a83ae2cfdeb6434784f56b8e
8823a72717ebb85444c435bcc332e65c
Compute the nuisance parameters using the least-squared method.
class AncillaryFitter: def get_n(self, t): A = np.zeros((len(self.theta), len(t))) for i in range(len(t)): A[:, i] = self.theta**t[i] n = np.linalg.lstsq(A, self.LHS, rcond=None)[0] return n, A
1
f83669353c422f453e1db301bc48c452
afbd6e9ed3d81955830ebee762f03026
This method will allow you to toggle Targetvalue normalization
namespace cirrus bool Configuration::get_normalize() const { return normalize; }
0
9c2d6e258bdb4fbcacc8d0085b737182
c9788665fd84230dd6a2508630413a96
register error blades
?> <style> #dashboard_right_now .amp-validation-errors { color: #a00; } #dashboard_right_now .amp-validation-errors:before { content: "\f534"; } #dashboard_right_now .amp-validation-errors:hover { color: #dc3232; border: none; } </style> <?php }
0
8bacd0b93e05aa0ce7cf10d7781f11e4
75024c54cc746d6a71f901d6ba18ec25
Register a new device to one of your OneSignal apps
class Client(BaseClient): def create_app(self, app_body: Dict[str, Any]) -> OneSignalResponse: return basic_auth_request(**self._kwargs_create_app(app_body))
0
eafb573dbf4226bcf55bf2b65db521b3
7b821d8a5d260935b130aa2c7bfbec46
获取nfc卡列表
@Headers({"Content-Type: application/json","Accept: application/json"}) @POST(URLConstant.GET_CARD_LIST) Observable<CommonApi> getCardList(@Body RequestBody body);
1
f6c79dd45ea3ad59b9c090e3949fceb4
99fe38b00c72374918ffe6ba84855728
Add a object into the organizer at a location.
class MultiGridEnv(gym.Env): def put_obj(self, obj, i, j): self.grid.set(i, j, obj) obj.init_pos = (i, j) obj.cur_pos = (i, j)
1
f5426613eab74a4b276118767ae7d4e4
2873b1c50a9b5d72b22e5e83c2405a7e
Получает статистику по работам.
namespace ManBookAPI.Services public Dictionary<string, int> GetStatistic();
1
0abe88edfb9febd4d2aa2317c0ef9c69
2e5447d0f166c1b4310fdc58b7e8e905
Returns the attribute information of a dimension within a variable, e.g., min value, max value, unit, etc. ================= ==================================================================== **Arguments** **Description**
class CdunifFile(AbstractCdunifFile): def dimensioninfo(self): ret = {} for i, dimname in enumerate(self._obj.dimensions): try: var = self.variables[dimname] except KeyError: units = '' typecode = '' else: ...
0
1e5624e4e421bee1479b758b77d93aa2
b99786884d21e10a201be66b35cea175
Indica quais outras classes devem ser lidas durante o carregamento da aplicação web
@Configuration @EnableWebSecurity //Habilitando a configuração de segurança public class SecurityConfig extends WebSecurityConfigurerAdapter @Override public void configure(WebSecurity web) { web.ignoring().antMatchers("/css/**", "/icons/**"); }
0
fe519e96ca94381266b64d96f9031da4
be2eab0b6321c7352badfe1dd89e9038
кнопка след корня
namespace Калькулятор public partial class MainWindow : Window private void Button_Click_6(object sender, RoutedEventArgs e) { textBox2.Text = ""; double db, result; textBox2.Text = textBox2.Text.Insert(0, "sqr("); textBox2.Text += textBox1.Text; ...
0
8ec959f23036b7ae7ad290376bd9732b
fa6a4e287923d5c5dfd4fb315598f0df
计算两点之间线段距离
namespace CarManagement.行政人员 public partial class ExecutiveManageRoute : System.Web.UI.Page private double CalDistant(Point p1, Point p2) { return -(p1.xpos - p2.xpos) * (p1.xpos - p2.xpos) - (p1.ypos - p2.ypos) * (p1.ypos - p2.ypos); }
0
a411729b40e51c4deea520a5dd0dcdf2
0310e7eb222b56297b1cf443a5ca0f1b
Returns a World Region if specified in args dictionary or None.
def get_region(company=None): if company or frappe.flags.company: return frappe.get_cached_value('Company', company or frappe.flags.company, 'country') elif frappe.flags.country: return frappe.flags.country else: return frappe.get_system_settings('country')
0
744643cc0d3be84156ae5a7179bcb72f
05503d44e873021a2b7ea8c25dceae71
debug of state s in 5×5 format 64-bit words
printf("%d %d %d\n%d %d %d\n%d %d %d\n\n", state / 100000000 % 10, state / 10000000 % 10, state / 1000000 % 10, state / 100000 % 10, state / 10000 % 10, state / 1000 % 10, state / 100 % 10, state / 10 % 10, state / 1 % 10); }
0
53188cce00846dfd31fa52d3d9796e6e
f1e3c4e51ed7d420bae483ee7e6c692a
右側ListViewのDrop時のイベントハンドラ
namespace ListViewDragDropManagerDemo public partial class Window1 : System.Windows.Window void OnListViewDrop( object sender, DragEventArgs e ) { if( e.Effects == DragDropEffects.None ) return; Task task = e.Data.GetData( typeof( Task ) ) as Task; if( sender == this.listView ) { if( this.dragMgr...
1
0dd3d5a17d542ed156c53b50854d86ef
18d70421383a02bf3dab724510e62e32
Downloads the WMT eval files.
def download_and_extract_tox21(): for config in ['train', 'val', 'test']: _download_and_extract_tox21(config, _get_tox21_filepath(config))
0
6ec61c9f290074ca3c46041f2a2dd1d1
0cf39a93e82068449775d8949efc9a45
获取用户拥有的各商家红包总额
$data['user_id'] = $user_id; $ret = $this->doApi('user', 'getShopVouchersTotalFee', $data); return $ret; }
1
aecef0bfd0a10b0366edb2c5fee9d95e
0cfc6094e1a625c654d18ccabdf31250
测试数字筛选外键数据
qiqiao.Application(self.driver).clickLeftMenu("外键选择") qiqiao.Application(self.driver).clickLeftMenu("全局筛选条件") qiqiao.Application(self.driver).clickButtonInTitle("添加") qiqiao.Application(self.driver).clickElement(Operation().readXml('foreignkeyselection','normal').format(name='单行文本')) ...
0
8ebd0ca489d28a4a2620cdd35dddd3e4
676537997d2da38d350681334336f1e8
Fonction qui initialise une liste des bières triées par rapport à la distance à notre héro
def tri_bulle(liste): l = len(liste) for i in range(l): for j in range(i+1,l): if liste[i][1] < liste[j][1]: liste[i],liste[j] = liste[j],liste[i] pass
0
006ff5cb0ea9f61ab149b563abbd5d77
c1cf74ea6e166c37395e5703a4db66fc
Find profile filter by application id and version.
{ $retval = FALSE; if (!$this->getService()->isReadEnabled(__FUNCTION__) || empty($application_id) || !is_numeric($application_id)) { return $retval; } $retval = $this->getService()->getApplicationVersion($application_id); return $retval; }
0
9b61cee7a14a1d4e2851763713011a30
e0164776720844870926c53853eeb3e3
Set the summary of a list preference from its current value and add an OnPreferenceChangeListener
public class Settings extends AppCompatPreferenceActivity @TargetApi(Build.VERSION_CODES.HONEYCOMB) public static class GeneralPreferenceFragment extends PreferenceFragment private void setListListener() { final SharedPreferences pref_shared = getActivity().getSharedPreferences("MY_PREFERENCES", Co...
1
a84bdc5f700259c028e7185a2554cb1c
59d36f4f149e25f104d441a493b2da40
Gets the parent of the element at the given index.
parent(index) { return this.items[this.parentIndex(index)]; }
1
ce3391c9810ef04a70f743e37e1f5a5f
1230062b163595382aa2e5238679097d
从下发的Xml数据中提取头部信息
{ XmlHeaderNode node = new XmlHeaderNode(ParseAttributes(parser)); string tagEnd = "?>"; parser.MoveTo(tagEnd); parser.MoveAhead(tagEnd.Length); return node; }
1
a9ec69ac8ee1ace4d29718a8c914cd4a
6b0f8fb602321049e8829e577f88ee3a
Get Parameter description in Chinese
class InOutParam: def desc(self): return self.__desc
0
937cd02db63b0ce78b3c9e8d83a9926e
a9a8cef790e85b2cbe562a64a63b67c4
表单的构造函数,接受 用户对象 作为参数,并保存到实例属性中,在验证时调用
function FormValidation(rules = []) { this.rules = {}; var that = this; rules.forEach((rule)=>{ that.rules[rule.name] = rule; }); }
0
4341aacac60c33cfc4a26393f9bab01f
b80581657ed38c80c2324880dc1d9eb3
求各行的和
{ Matrix Rowmat = new Matrix(mat.Row, 1); double sum; for (int i = 0; i < mat.Row; i++) { sum = 0; for (int j = 0; j < mat.Col; j++) sum += mat.Mat[i, j]; Rowmat.Mat[i, 0] = sum; } ...
1
e287345ddbf5ca3a2f9d62e8d37f6344
bb3f857c6bdc8dd1aa9fa9a2dc23af15
<!-- 查询该专辑下的所有章节数据 -->
return request({ url: '/api/atoc/' + id + '?view=chapters' }) }
1
59d17e99f71cfd5afadcc639ab5108ec
c95f86b6e533e7dd646ee6f515fdf0c4
Validates that the value of the <see cref="D3D12_VIDEO_DECODE_PROFILE_MPEG1_AND_MPEG2" /> property is correct.
public static void MF_MT_VIDEO_RENDERER_EXTENSION_PROFILETest() { Assert.That(MF_MT_VIDEO_RENDERER_EXTENSION_PROFILE, Is.EqualTo(new Guid(0x8437d4b9, 0xd448, 0x4fcd, 0x9b, 0x6b, 0x83, 0x9b, 0xf9, 0x6c, 0x77, 0x98))); }
0
06c02e1664ba1dc8fa7fcea3094ecb56
0ede5047c340dd69e37e0af22f20ef3f
重置hashItem
function resetParamItem(){ ajaxItemData={ type: '', auditing_operator: '', repairstatus: '', sub_id: '' }; }
0
757db59b20dcc545d3954d2d3271f809
d9afad481edda929c944dd02780250ac
# m-02 新增一筆新的訂單 # insert_new_allpay_order
class ConcurrentHandler(object): def multi_new_order(self, c=1): cmd = "multi_new_order" params = { "data_array": [] } for i in range(1): params["data_array"].append( { "cmd": 0, "comment": "test", ...
0
132f6e30fd992e349153bcb796036b0c
bb1e7bc2a796a5ab9bf1528c60819541
Logs the vulnerabilities.
namespace Worker internal class Program private static void LogVulnerabilities(IEnumerable<Vulnerability> vulnerabilities) { Logger.WriteInfo("-----------------------------------------"); Logger.WriteInfo("Found vulnerabilities"); foreach (Vulnerability vulnerability in v...
1
d29cb5d441f7af81f96f1f909beec93a
f846d7db084d5be805f2a82efaebc2bd
Create new thread and save it.
struct dccthread * dccthread_create(const char *name, void (*func)(), int param) { blockInterrupts(); struct dccthread* newThread = NULL; makeDccThread(numThreads_, name, &newThread); threads_[numThreads_++] = newThread; makecontext(&(newThread->context_), func, 1, param); unblockInterrupts(); ...
1
09781766e9105d40fcd3145bafb5bb96
a031d682231ad8ec3038fb33ad68df7b
This attribute holds the description of the GPS satelites' quality that was most recently parsed from the GPS module's data output.
self.fix = False self.course = float('nan') self.speed = float('nan') self.sats = 0 self.latitude = float('nan') self.longitude = float('nan')
0
38245c15e7ae4fb10d05774ed77af094
ea9c798a7cd9915053ce08739898a32f
formatted for slack to display error
def post_to_slack(message): try: r = requests.post(slack_webhook, headers={'content-type': 'application/json'}, data=message.encode('utf-8')) except requests.exceptions.HTTPError as err: print('could not post to slack', r.status_code) raise SystemError(err)
0
7e894d959e36909a3259d0332aca31c4
495b50dd8dba02228231754a9a428031
Handles the OnInvalidate event of the Model.
{ base.OnPropertyChanged(propertyName); if (PropertiesToValidate.Any(p => p.Name.Equals(propertyName))) { ValidateProperty(propertyName); } if (IgnoreInternalModels) { return; } var pr...
0
f635b9bcba9020301286ac47a656ccc4
4ea4f28213bcc3b74b8af24f08da61ea
return a simple sloped surface in y defined by the mean of the lower and upper boundary
def top_bottom_tap(datax, mean_method=np.nanmean): lowb =mean_method(datax[0, :]) highb = mean_method(datax[-1, :]) ll =np.linspace(lowb, highb, datax.shape[0] ) __ , data_lb2 = np.meshgrid(np.arange(datax.shape[1]), ll) return data_lb2
1
eb377669c67044fda57389e218981d8e
2b96cc34c92a1eb9fc03f72d56d1b15f
Returns a series of IMDb title IDs with each element corresponding to a row of the test observations. Returns: A pandas series of IMDb IDs.
def scotus_opin_id(): scotus_opin_id_df = pd.read_csv("./data/tf-idf/scotus_opinion/tfidf_rows.csv") return list(scotus_opin_id_df['0'])
0
9a75666a48ca3efea23c59bc30269d8c
43cbedd17c1e2ebede3f8a16ea3739a4
<summary> 得意先品番別販売員マスタ一時表削除処理 <returns>処理判定カウント</returns>
namespace Jp.Co.Unisys.Espa.Ap.Da.XA05 public class WTAssortExDa : CommonBase public int DelWTAssortEx( string SELUNIQ ) { int intCount = 0; DBAccess dbAccess = new DBAccess(); EFSASqlCommand sqlCommand = new EFSASqlCommand(); sqlComman...
1
2c4f22e5dc25e9c9875f0a8ba8fe4bf4
4f4e6b14f2e365b60da6093351f69932
Overrides superclass to ignore matches and focus on non-matches
protected boolean performMatch(Map<String,String> inputAttributeSet, Map<String,String> storedAttributeSet) { return true; }
0
1f3b661b8f7c045db3578d4e698a1096
e1777d81c7cda212b5648f3bed883ee2
获取图片路径存储到父页面
submit(){ wx.setStorageSync('listVal', [this.data.oneVal,this.data.twoVal,this.data.threeVal]) wx.navigateTo({ url: '../img/img', }) }
0
781cec9a48df0423110785ec9bbc148e
2ec1921db9cdf577e01db4700854f393
監視対象のツイートを加えるメソッド ツイートのstatus_idが重複してたらFalse 追加できたらTrue
if screen_name is None: raise Exception('[%s class/%s function]: screen_name is None.' % (self.__class__.__name__, sys._getframe().f_code.co_name)) if tweets is None or len(tweets) == 0: raise Exception('[%s class/%s function]: tweets is None or empty....
0
c6393296ba2c11679d4909fb2c6d1563
f1ec5c3ff06af21afc5ab6e751d65ba9
设置牌型颜色
{ if (curTips.ObjectCardArray != null) { for (int i = 0; i < curTips.ObjectCardArray.Count; i++) { curTips.ObjectCardArray[i].ChangeBorderColor(); } } else { curTips.Si...
1
1aca4ae0f18b9c9c37ebd2c81a3b4191
d4dbb6492f9d726dcd8fb06bed43ffe5
获取当前操作数据库所有用户自定义函数名
public class Query_Defined_Util{ public Cursor getAllFunction() { return db.query(DATABASE_F_TABLE, new String[]{ KEY_F_ROWID,KEY_FUNCTIONNAME }, null, null, null, null, null); }
1
a356128c90d2f3c931d57033e4ee01da
edae5461e6684dcf033c43293bb7b1ab
Method to remove duplicates without using Java Collections.
{ HashSet<Integer> set = new HashSet<>(); Node current = head; Node ref = head; Node prev = null; while(current != null) { int temp = current.data; if(set.contains(temp)) { prev.next = current.next; } else { ...
0
84fcceb42563efe15fd961fea0c71ae4
015440ccd4e77c693f3184ccad3e7874
中文转换成拼音(可控制首字母大小写)
{ if (str){ var pStr = ""; for (var i=0; i<str.length; i++) { if (isEnKong1(str.charAt(i))) { pStr += str.charAt(i).toUpperCase(); } else{ pStr += "" + pinyin(str.charAt(i)); } } return Trim(pStr); } }
1
c11a25fabc805f75ef09970e6b6fcdb5
7b355b390cb57d5eb09b597d8aa5eb53
Gets the text for the order. Text may be optionally specified for an order.
@AutoEscape public String getText();
0
2e90c7eedec53642abecfc0bb0946be4
e9e5d87791ca24dee6902b5a6957c560
根据试卷id查询做题统计表的信息
public int deleteStatisticsByTpId(Integer testPaperId);
0
8abe4ba4d1ecfeef60db4ef1459795b0
f04859b29e8eb77517dc010ecd1e79e2
Handles the MouseEnter event of the lbDetails control.
{ if (e.Item is GridDataItem) { var item = (GridDataItem)e.Item; var data = (DataRowView)e.Item.DataItem; var lrlCompanyName = (Literal)item.FindControl("lrlCompanyName"); var lrlUserFullName = (Literal)item.FindControl("lrl...
0
977c5b76e79bcfe94801a8846089d9dc
78b751a99b6bf41a6412b6a9f3a52e9a
팰린드롬 함수. 재귀적으로 사용된다. 인자는 수열의 시작값과 끝 값을 의미한다.
if start >= end: return True else: if string[start] == string[end]: return isPalindrome2(string, start + 1, end - 1) else: return False
1
fcb5d932984017fa3682a64e175c9da0
a0fcda653116a5d058ff93111a2bff74
Gets the value of the yourRefSold property. possible object is {@link String }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CashRefund", propOrder = { "createdDate", "lastModifiedDate", "customForm", "entity", "vatRegNum", "tranDate", "tranId", "source", "createdFrom", "postingPeriod", "department", "clazz", "location", "leadSource...
0
57b037395e3d22d7b72e30f7c518d3ad
f78eec92b19abf4bd4d7735c5be063d1
Warps the character.
void CharacterController::reset(Ogre::Vector3 resetPos = Ogre::Vector3::ZERO){ m_character->warp(BtOgre::Convert::toBullet(resetPos)); m_character->reset(); }
1
4500128aa53baba7ac96e1226590cea5
f86fa43a8926a5f2b1ba77d38d5d030a
<para> Adds or removes a message from the User Interface Privilege Isolation (UIPI) message filter. </para> <para> From: <see href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-changewindowmessagefilter"/> </para>
namespace Vanara.PInvoke public static partial class User32 [DllImport(nameof(User32), CharSet = CharSet.Unicode, SetLastError = false)] [System.Security.SecurityCritical] public static extern IntPtr SendMessage(HandleRef hWnd, uint msg, IntPtr wParam, [In, MarshalAs(UnmanagedType.LPWStr)] string lParam);
0
3ac29a618893246b296e7538b74ae159
5b42f62dacc6bbf2d280822da966e522
첫번째 세대의 염색체를 생성하는 함수
chromos = [Chromosome(seed)] for eachChromo in range(popSize - 1): chromos.append(self.mutate(Chromosome(seed))) return chromos
1
0200afd3250dc4b65c252ad2e48eeb2f
3b54f27c331138f068eaf192ab7fb63b
Установка навыка ученику.
public class Actions public HashMap<String, Object> setTrainerKindOfSport(int trainerId, int kindOfSportID) { HashMap<String, Object> result = new HashMap<>(); KindOfSport kos = entityManager.find(KindOfSport.class, kindOfSportID); if (kos != null) { Trainer trainer = entityManager.f...
0
230ebeb27223102acf7ad03a29532128
4a555f94bbb52f2b1ba54c2d0d33d4bc
get the squared mean value of the content of a container, weigting the variable with the weight
Ostap::Math::ValueWithError Ostap::SFactor::sFactor ( TTree* tree , const std::string& varname ) { typedef Ostap::Math::ValueWithError VE ; if ( 0 == tree ) { return VE ( 0 , -100 ) ; } if ( varname.empty() ) { return VE ( 0 , -200 ) ...
0
c0101c15f9dece06033ecd31ab0ffae0
f4f77d57bc761bd99212b59b0de31e0e
se encarga de actualizar los datos de la base de datos de materia prima.
{ try { using (var Conexion = new EntitiesMateriaPrima()) { MoutingDia obj = Conexion.MoutingDia.Where(x => x.Id_MountingDia == id).FirstOrDefault(); obj.Plato = plato; obj.Dia_B_min = diaMin; ...
1
64a5e9377052bd37145c4d8d756ac977
1507817324a8ab444379f3cafba94f96
由距离、速度、步频来生成一次跑步记录
class Record(object): def __init__(self, distance, pace, stride_frequncy): if self.__class__.__name__ in __Record_Base__: raise NotImplementedError self.altitude = [] self.dateline = 0 self.starttime = 0 self.content = [] self.second = 0 self.stepcont...
1
ad192ac54b43db743ea3567e4df87ea1
484c95bdb081df0f34f9b78e6b6c941b
returns the ui element that is at the required position in the panel's layout
{ switch (_position) { case 0: return view.GetChildAt(0); case 1: case 2: return view.GetChildAt(view.ChildCount / 2); ...
1
b0c264ee39b70f454fe54f1e89d5e84f
a2402a8aa4d1c437d80bc36185989cd1
Setter for workout_id
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.8.4" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkoutExercisesRecord extends UpdatableRecordImpl<WorkoutExercisesRecord> implements Record5<UUID, UUID, UUI...
1
efb3a838a79dca6570eb5d471bc5b44f
2f08dec30b1167f6fc9ac07e0b56efd6
Get the timestamps of words from a Google Cloud Recognize Response dictionary. A timestamp is a 2D tuple of the start time and end time in milliseconds
def get_user_time_dictionary(json_list): d = {} dictionary = get_dictionary(json_list) for student_id, sub_id in dictionary.items(): events_table = paginate.get_single_submission_paginated(url, course_id, quiz_id, token, str(sub_id)) time_stamps = [] for index, row in events...
0
47dd391325b9a9365045d45271ee5c88
05ad6db3c3289802e37c9c6bd748fdcd
Method that updates the font point size combo-box to display the currently stored point size.
public void applyFontSettings() { String value = getCombobox().getValue(); FontSize fontSize = getFontSizeMap().get(value); if (fontSize != null) { getFormatter().setFontSize(fontSize); } }
0
578ae06dede6f9c50727f5d74fd609e6
377c0e20a994e577f96a1dfcc77176d1
Gets the <see cref="Hexagon"/>'s cube coordinates.
{ position = transform.InverseTransformPoint(position); HexCoordinates coordinates = HexCoordinates.FromPosition(position); return GetCell(coordinates); }
0
cec5b97e968c811d9a15554e28e6be47
51f4dfb610b3dcf6f5f8bd19639fb765
Retrieves the username from the HTTP context;
@Produces("application/json") @Path("/users") public class UsersResource private String getUsername() { String auth = headers.getRequestHeader(HttpHeaders.AUTHORIZATION).get(0); return Util.getBasicAccessUsername(auth); }
1
9ce2fc0cf0699dd0a5ad83a53e37bfae
4d7850e98b750ffce7507bc9def758d3
Validates the position payload inside the locationPing payload.
public class WeatherServiceImpl implements Weather.Iface, WeatherSync.Iface private boolean validateLocation(Location location) { return location.isSetLatitude() && location.isSetLocationID() && location.isSetLongitude() && location.isSetName(); }
1
3e870194f2b8960ec10941b89750efc1
378ad962d7369b4257d6dbe44205937f
Método que retorna los datos de autenticación de LDAP
{ $ldapModel = new LdapModel(); $ldapData = $ldapModel->selectData(); return $ldapData; }
1
0b7824f713a97305463dd1a6e27c63bf
94c513e1581a5085feb9c8fce6a9c88e
Pokazuje następny sygnał na liście.
[Serializable] class Notices public void ShowNextNotice() { if ( m_currentNoticeId < m_latestNoticeId ) { m_currentNoticeId++; ShowMessage(); } }
1
73dc5bb0a5d53abc29c90e915b53169d
090c23e76d915eb644b8dc74cd61b371
Calculates an SQL query that returns a single field, specifying the number of pages as its only field
namespace Panelak.Database public abstract partial class BaseConnection : IConnectionLink public abstract IParameterizedQuery BuildCountQuery(ISqlSelectQuery sqlQuery);
0
b5f5a64de1b1378cbea86ff1d5fee5dd
602fdaa34a10c4f950315fc2a580a93c
purge des utilisateurs n'ayant pas validé leur inscription (token expiré)
{ $bdd = $this->dbConnect(); $statement = $bdd->prepare('SELECT COUNT(id) as nbUsers FROM `tokens` RIGHT JOIN users ON tokens.id_user = users.id WHER...
0
f9f5eb6bd3d63fea1b6ad30a6a16ca51
c06663cf97eb24a269a2e2bef708be4c
Sets the value of the '{@link uml.useCases.Include#getAddition <em>Addition</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
EReference getAdditiveExpressionPart_Ex();
0
99ba0f8bc36e111cf9dde1bf33953c9e
d24da770021b0aece9f6d27d070b987c
Test obtaining stats for the given plugin.
stats = ghstats.download_stats("kefir500", "apk-icon-editor", None, False, ghstats.get_env_token(), False) self.assertTrue(isinstance(stats, list)) count = ghstats.get_stats_downloads(stats, False) self.assertTrue(count > 0)
1
516377f3f5acbb8f20d7900319ef2358
09cd4d2e37a8dc3f0ee02082e90ff38d
获取自己到另一点的中点,返回新值
namespace CalculateModelClasses public class Point : ICloneable public Point GetMiddlePointWithOtherPoint(Point otherPoint) { return new Point((this.x + otherPoint.X) / 2, (this.y + otherPoint.Y) / 2, (this.z + otherPoint.Z) / 2); }
1
6f1bf8b8133c9e49813f43cacfd9c6ce
f19d1f9110b26e982bdf90069af1af08
add degenerate verts at start and end to satisfy pyglet QUAD_STRIP handling
def get_dggs_cell_bbox(dggs_cell): verts = dggs_cell.vertices(plane=False) verts.append(verts[0]) return verts
1
5f791a7689378d312c2e7fc3541231e0
d544ca57d1687310c767ac9ff22e09c4
Test that we get the right number of files when no converted files are pre-existing
sub = self.createTestSubscription(nFiles = 5) splitter = SplitterFactory() jobFactory = splitter(package = "WMCore.WMBS", subscription = sub) jobGroups = jobFactory(files_per_job = 10) self.assertEqual(len(jobGroups), 0) return
0
f2ca75747cfd7e1565d607b309e44111
7570d82ac3e01a1da5e4f9b14daca359
Generate a not found exception.
class ExceptionController extends Controller implements ExceptionInterface public function notFound($uri) { $this->getResponse()->setHeader(404); }
0
c623dd61829baa1da63fb8cfed52c96b
b8b3f10dcef5e642e67c78e5bd252a60
Find implementation for metavariables.
class Preconfiguration(object): def module_metavars(self): return [opt.metavar for opt in self.module_options]
1
dbd168188d73a3ff1898122d98477879
3b7c2ce85e4251a015c6b2bce78d0e87
Creates an identify event.
ISystemContext context, NodeState source, EventSeverity severity, LocalizedText message) { m_eventId = new PropertyState<byte[]>(this); m_eventId.Value = Guid.NewGuid().ToByteArray(); m_eventType = new PropertyState<NodeId>(this...
1
4b242afe5ff7069efde6fd5e1e6acd07
29bddacaff4b32f551af5a77af203751
Gets the current dialog reference, if any.
export class MdcDialogComponent extends MDCComponent<MDCDialogFoundation> implements AfterViewInit, OnDestroy private _getDialog(): HTMLElement { return this._elementRef.nativeElement; }
1
bd2564b1d2eb7cd8b63d5dfd91adf680
fef02e1b93669f83ec875bfed2fbf00f
抽象方法3
void abstractMethod();
1
481e2163b0280b5cf36579e11f720af3
e4b0eb4fe682f88c9913806afcfbe2e4
根据id,获取courier全部信息,用于前台显示
public CourierBo getCourierInfo(String courierId);
1
f0dcff521c70383551d1a6ed7db58405
3115b00603e79c1e85e804806e3ba21e
Add an integer value to the comma sep value string.
namespace dsa void GraphM::addIntToString( std::string &info, int value) { std::stringstream ss; ss << value; info += ss.str(); }
0
962c8b2bc039ccb1d48e6fd7a4f9ab52
a315cc4a88cb335bff0dd5a71918cf71
Called when vCard interpretation started.
public function onVCardEnded();
0
06052e55c4ea8182efb301b17a6d17a2
aba70895e5bce6a41fd53a45a45a3829
提示框,在1秒钟后消失
dialog({ id: 'msg_time', title: '提示', content: msg, width: 300 }).show(); setTimeout(function(){dialog.get('msg_time').close().remove();}, 2000); }
0
7db71f9803d1e7268bb06e0669e5d5ad
0c11e2c5fe9b6accbdcbd8a716eed93d
统计微信分享(转发)次数
return client.get(weibo4j.util.WeiboConfig.getValue("baseURL") + "short_url/share/counts.json",new weibo4j.model.PostParameter[] { new weibo4j.model.PostParameter("url_short",url_short) }).asJSONObject(); }
0
02d0495fe3add4afec9a3cf796fc6d8a
73f5617be2912999b96ada7064745256
Creates the completion window offering suggestions for parameters.
{ if (!DSettings.Instance.UseMethodInsight || (EnteredText == "," && insightWindow != null && insightWindow.IsVisible)) return; try { var data = D_IDE.D.CodeCompletion.DMethodOverloadProvider.Create(this); if (data == null) return; insightWindow = new OverloadInsightWindow(Editor.Tex...
1
69100ee535c640e25796ed65220bf53b
5a1b442a5ae3111cf7c5f67e71b6364c
Derived class for an and expression
namespace sl namespace ls LogicalAnd::LogicalAnd(std::unique_ptr<const Expression> lhs, std::unique_ptr<const Expression> rhs) :Expression() ,lhs(std::move(lhs)) ,rhs(std::move(rhs)) { }
1
5369014f1eb413e6896b5c3a55607922
ebfccdb158224062fb47c7e2c20be147
TWO PAIR
def pair(hand): if hasMultipleCardsWithSameRank(hand,2) == 1 and not hasMultipleCardsWithSameRank(hand,3): return True return False
0
1e2d7c7b43b902edd770697331180c60
df5f27b2ba729e48ad517216e710d613
Returns an array of unique genres of a provided game list
return people.reduce((acc, p) => { p.seasons.forEach(s => { if(acc.indexOf(s) === -1){ acc.push(s); } }); return acc; }, []).sort(); }
0
7a84c81366bd7ccc6958130b6bc7b7ba
a356db933d92b54e3e12c50af993703d
获取我发布的文章
getApp().$ajax({ httpUrl: getApp().api.myPostingUrl, data: { userID: wx.getStorageSync('userinfo').id } }).then(({ data }) => { wx.stopPullDownRefresh(); this.setData({ lists: util.resetData(data) }) }) }
1
fb3752318b17cd52e45e769bb1251667
e8a64525326935fe1e2bf62a5972f8d4
Creates parameters for the CKM_RSA_PKCS_PSS mechanism
uint32_t oidVal) { sig_retcode_t retVal = SIG_INVALID_PARAM; if (params) { retVal = SIG_OK; params->n = 32; params->w = 16; params->log2w = 4; params->p1 = (8 * params->n) / params->log2w; params->p2 = 3; params->p2Bytes = (3 * params->log2w + 7) / 8; par...
0
eec5ee6579eff0cb5681670e399d9520
e5142075cdfb093f33fafba55e5778b8
Creates 'modules' table manager.
class CreateModuleTable extends Migration public function up() { Schema::create('modules', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('display_name'); $table->string('icon')->nullable(); $table->t...
1
0a40b34cb44921631a76668d9140236a
1675d8bd34594453a571143eb1b47173
当u==n的时候,说明已经遍历到叶子节点,所有位置上的数都已经确定了,可以把保存在path中的路径输出出来了。
void allPath(BiNode* root, vector<int> & v, int& index) { cout << index++ << "... ..." << endl; if (root == nullptr) { return; } v.push_back(root->val); if (root->left == nullptr && root->right == nullptr) { cout << "output " << root->val << "-----"<< endl; std::copy(v.begi...
0
517edac963099d027c1e4d37eeb27292
2409b7c01f279a7b8da82e276c502230
BeanDefinition 后置处理, 在所有的 BeanDefinition 加载完成之后, Bean 对象实例化之前执行
void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry);
1
e8a9dfa2fba3ad53438ecdd2803dd96e
5c8c4b8411d4e5cf7c18331ada021f87
Gets the text area rows.
public class CharacterDataAreaEditorDelegate extends AbstractDataSpaceEditorDelegate private int getNumRowsOfEditorArea() { int numRows = (parent.getClientArea().height - 145) / getEditorCharHeight(); if (numRows > dataAreaText.getTotalNumberOfRows()) { numRows = dataAreaText.getTotalNumberO...
1
9cdaafb6134e9bfbfbaea3232d4da8d8
3fb10e3b36b8f75249b5e759c519f8f8
compute square roots using the method of Heron of Alexandria
double heronsSqrt(double number){ double guess, lastGuess,checking; double precision=0.000001; lastGuess=0; guess=0; if (number==0){ return number; }else{ guess=(number/3); while (1) { lastGuess=guess; guess=( guess + ( number / guess ))/2; checking=(lastGuess - guess); if (checking<0){ che...
1
5f35ebf7b28d6cb15d074e9f71dade54
475681a546796d7e76cffae9c8e1d992
Авторизованный клиент имеет доступ к странице нового поста
response = self.unauthorized_client.post( reverse("new_post"), { "text": "Тестовому пользователю тестовый пост!", "group": self.group.id, "author": self.user, } ) cache.clear() self.assertRedirects( respo...
0
09a962defe38695d97507b0b5c7cea26
22441cb8b17d867f2fde436396f8248c
Fonction permettant de modifier la position fiscale d'une facture et de recalculer les taxes
self.ensure_one() res = {} lines_without_product = [] fp = self.fiscal_position_id inv_type = 'out_invoice' for line in self.order_line: if line.product_id: product = line.product_id if inv_type in ('out_invoice', 'out_refund'):...
1