query_id
string
corpus_id
string
query
string
code
string
label
int64
cd9c71bc6a076bd4273cea2ef73e83d5
85ec59f1c2d1e9aba994f8bf1dbd5a6a
We'll display up to four thrustermodes without scrolling, plus some space for the group selection plus some padding
int CBCGPRibbonButton::GetGroupButtonExtraWidth () { if (m_pParentGroup == NULL) { return 0; } ASSERT_VALID (m_pParentGroup); switch (m_pParentGroup->GetCount ()) { case 1: return 2; case 2: if (m_Location != RibbonElementFirstInGroup) { return 0; } break; } return m_Location == RibbonElementFi...
0
074f09b6037ce610981ca4f41069ec60
60e5453e9ac10f075a72b38f4495899d
This function reads out the position difference at two ends.
delta = defs.Point2D(0,0) maxDx = 0.5*(dim) maxDy = 0.5*(dim) delta.x = pos_end.x - pos_begin.x delta.y = pos_end.y - pos_begin.y if delta.x>maxDx: delta.x -= dim if delta.x<(-maxDx): delta.x += dim if delta.y>maxDy: delta.y -= dim if delta.y<(-maxDy): ...
1
50e7c23a36b821dd7af4252d18334a15
c69629cdc021478ec7035679920f6ef6
Obtain exact position angle between two spherical coordinates. Performance will be poor.
b = sin(obj2_c2) * sin(obj1_c2) x = cos(obj2_c2) * cos(obj1_c2) * cos(obj2_c1 - obj1_c1) + b return acos(unit_limit(x))
1
503ec388f01bd798a43ced4868276526
5ba7fb3fefb3251268e24df6fae4f016
Test that we can sort properly even with loops!
loops = loops.slice(0) for(var j=0; j<loops.length; ++j) { var l = loops[j] var tl = 0 for(var i=0; i<l.length; ++i) { if(compareVertex(l[i], l[tl]) < 0) { tl = i } } var s0 = l.slice(tl) var s1 = l.slice(0, tl) s0.push.apply(s0, s1) loop...
1
b86a1ea69817bbfed957e3a06b6f6cd2
010f7cc823bc1bf6efc7035bddcbd67d
合并横向的单元格 空白的单元格和有内容的单元格合并 可以指定合并的列
public class ExcelUtils public static void mergeCols(LastCell lastCell, Sheet sheet, Row row, int firstColNum, int colNum, int colSize, Object cellValue) { if (colNum == firstColNum) { lastCell.setValue(cellValue); lastCell.setColNum(colNum); return; } if (Par...
1
fecd337d2da04131695437f8a798195d
50fe13f186b96929e3878bc6bc20d56e
(30天)上传照片用户top10(数据量)
Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put("UserID", userid); paramMap.put("fileName", filename); paramMap.put("img", pic); task.execute(Constants.URL001Topmd, Constants.URL001Topmd + Constants.UploadUserPhoto, Constants.UploadUserPhoto, ...
0
e1388457a7a891d81dfbdf4d98255862
6e699a6e3337d752c2054d7497684df6
This method should be called on application exit and is used for closing connection to database.
public class Services public static void closeDatabaseConnection() { DatabaseHandler.closeConnection(); }
1
9f338bb93fe9ceebf5087fb26ce505e8
bd70394a1a2ebee4223732644cd747c9
将进程从就绪队列中移除
nproc--; assert(ready_procs[head]); pid_t ret = ready_procs[head]; ready_procs[head] = 0; head = (head+1)%MAX_PROCESS_NUM; return ret; }
1
532926011603a764713024452f7ed916
dfe76ecf49cdff3dea42ff94703175ad
Calcula a quantidade de pixels que o player andou desde a ultima mensagem recebida e prevê a posição atual do player.
var movX,movY int if minhaPos.x >= N-1 && minhaPos.y >= N-1{ if abs(minhaPos.x-posPegador.x) > abs(minhaPos.y-posPegador.y){ movX = minhaPos.x-limPassosFoge.x movY = minhaPos.y }else{ movX = minhaPos.x movY = minhaPos.y-limPassosFoge.y } }else if minhaPos.x >= N-1 || minhaPos.x <=1{ movX = m...
0
0ef6e648ea53d3ebdae5e9fe2bc1b9ba
5cff4103ea3d6d0fa42015b913ad6da8
This function should takes an array which is used to pass option values to the handler. ttl - This is the maximum time the item will be stored. namespace - This should be used when multiple projects may use the same library.
{ $this->erlCache->setOptions(array( 'namespace' => 'erl-cache-test', 'ttl' => '2', 'servers' => array( array('localhost', 11211), ), )); }
1
ab48da1a293c86acd3b5003cbe208665
372f33767df589e84955dec4ef43c37e
Returns configuration of this bucket.
BucketConfiguration getConfiguration();
1
a92fb47a8a38912bb878dad13b1c26e2
f349f7ebd9bb18b6e5eaf9381d031d67
Send ACPI shutdown to a VM.
class Power(VapiInterface): def stop(self, vm, ): return self._invoke('stop', { 'vm': vm, })
0
5302f31e73b49e63d995afc78e3b8762
02c1f8df80d6f8b437b59c0d476c25cd
取得金额输入框的数值
public class IndexPayFragment extends BaseFragment implements I_IndexPayView private String getDeduceAmount() { return ((TextView) getViews(R.id.edt_le_bean_input_number)).getText().toString(); }
1
21c9b0b4d5e6346747d144c3411c695d
ead4ad2a32640c7970c9649209bc8890
função para movimentar a raquete esquerda
def onKeyleft(event): global playerX, paused paused = False if playerX > 10: playerX -= 10 canvas.moveto(player, playerX, playerY)
1
dbe2f06b43a92d2d01413f6b29f87a5d
4b84f05bd683ccf1d0acd04142972c86
Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.
class Configuration class Memcache def host(value) @host = value end
1
aed67e0c4c03badba712e491682f31bb
6a9d093990b16a75f325062b903fa5ef
POST /typings
function createTypingFile(outputDir: string, entryName: string) { writeFileSync(join(outputDir, `${entryName}.d.ts`), LICENSE_BANNER + '\nexport * from "./typings/index";' ); }
0
f72c85a13621cc66f5bd5cff17772705
fdabbab2e8e8b14bb550859d61dbd824
Get day key for given datetime. It will be used as as key for sessions.
namespace Rock public static partial class ExtensionMethods public static int ToDateKey( this DateTime dateTime ) { var year = dateTime.Year * _yearMultiple; var month = dateTime.Month * _monthMultiple; var day = dateTime.Day; return year + month + day; ...
1
def676972665158e8ef14aca2dc6561a
7d398cad9b1e78ff36d5616b84c820f8
2015-03-04T00:00:00.000Z => 2015年03月04日 formatDateYmd for Japanese
public class FormatUtil public static String getYearMonthDayJapanFormat(Date date) { return getYearMonthDay(date, DATE_PATTERN_CALENDER); }
1
25e547fa03daf64876784fe82f9c0dc9
a5a9e694f242fdff2a1867192eed6ff7
Exponential distribution pseudo random number generator function
double Exp(double lamb){ double r = (double)random()/RAND_MAX; while(r==0 || r==1){ r = (double)random()/RAND_MAX; } return -(log(r)/(lamb)); }
1
575724480e5f1bff46585b676510b3e1
2f6bd899957e846eb2665b9453283484
A simple way to determine if a module is a system module
{ $mod = Modules::where('name', $name)->first(); return $mod && $mod['is_system'] == 1; }
1
1f8f10968954af507a0077c5703382b9
22fae694821a9b8f507ed7e9a418caaa
@ingroup __CK_ISP__ @~chinese @brief 获取当前锐化设定值。
namespace vimo::display float HikvisionSDK::getGain() { MVCC_FLOATVALUE stParam; memset(&stParam, 0, sizeof(MVCC_INTVALUE)); int tempValue = MV_CC_GetFloatValue(m_hDevHandle, "Gain", &stParam); float value = stParam.fCurValue; if (tempValue != 0) { return -1; } else { return value; } }
0
ae926ca52931471a3186f1c1f312f2f5
07d2519ac48ab475d82a8bcf4afa92f4
Converts quadruple-precision floating-point number to string.
{ Xfloat32 dpf, ipf; Xuint32 dpi; Xuint32 ones, tenths, hundredths; dpf = modff(v, &ipf); dpi = dpf * 100; ones = abs(ipf) + '0'; tenths = (dpi / 10) + '0'; hundredths = (dpi - ((tenths - '0') * 10)) + '0'; *s++ = ipf == 0 ? ' ' : (ipf > 0 ? '+' : '-'); *s++ = (char) ones; *s++ = '.'; *s++ = (c...
0
5f9bd599127ea7bf69cbce703f51b88d
3e0d3b7468b2b7fa1b91ffa9740396ae
shadows not supported for PS impostors yet.
bool AmbientLight::cast_shadow_ray(const Vec3 &hitPoint, const SceneObject &obj, double shadowBias, RayCastHit &out) const { return false; }
1
6d6c6c6be5e67817b7a32a1cdce0e852
e62c47c70c4fb602599aaac1c9352cf8
是否是PubMed来源ID.
public class PubXmlDbUtils public static boolean isIEEEXploreDb(Integer sourceDbId) { if (sourceDbId == null) { return false; } return PubXmlConstants.SOURCE_IEEEXP == sourceDbId.longValue(); }
0
2be34b4c66e816bb6177e0717551792a
3a6ff86ff59fa3e228e3ec30249ba296
UnityEngine.Vector3 UnityEngine.Particle::get_position()
Vector3_t4 Rigidbody_get_position_m573 (Rigidbody_t15 * __this, const MethodInfo* method) { Vector3_t4 V_0 = {0}; { Rigidbody_INTERNAL_get_position_m1476(__this, (&V_0), NULL); Vector3_t4 L_0 = V_0; return L_0; } }
0
a4426169b877180fbcda7b428efa094f
02b1c0fe87f93e14d377dbbeaa56e1de
Runs a Python script on an input / output stream.
boolean noErrorsOnRun = false; FileInputStream inputStream = new FileInputStream(file); try { PythonInterpreter interpreter = this.getInterpreter(interpreterName); this.setCommandLineArgs(args, interpreter, file.getAbsolutePath(), executor); interpreter.execfile(inputStream); noErrorsOnRun = true; }...
1
87df7be9730b12b6cb30a62233081741
6b471f3523cb92ec2ac3b29a35a14394
funcion de conversion de metros a varas
namespace _02_conversor_de_medidas class ClsConvetir public double MetroYarda() { return centimetros / 91.44; }
0
cad1599c14a7ed3a7b08b6fcdaf94f15
9728188b6ae45b471bd8b206661bb110
Returns all raw stats
_stats = [] for instance_stats in self._raw_stats: _stats.extend(self._parse_instance_stats(instance_stats)) return _stats
0
bcc80ada55b8bfaa5e2dac7cf34983a4
227ad079d71d25c74dc72c001fab10d1
Devuelve el array de licencias y permisos
class LicenseTypes extends Pas_Db_Table_Abstract public function getList() { $key = md5('cclicenses'); if (!$options = $this->_cache->load($key)) { $select = $this->select() ->from($this->_name, array('id', 'license')) ->order('id'); $options = $t...
1
af9a342a78adedf39f92ec79491090b8
81bfc2ec1fe15c66d42ce48eecd9ec91
Подсчитывает число автозагруженных плагинов. Подсчитывает наши плагины (только один раз) пересчётом директорий в mu-plugins. Если число изменилось - обновляет кэш.
class CAOS_Admin_Updates public function maybe_add_update_count( $update_data ) { if ( isset( $_GET['plugin_status'] ) && $_GET['plugin_status'] === 'upgrade' ) { return $update_data; } foreach ( $this->premium_plugins as $id => $plugin ) { if ( ! is_plugin_active( WP_PLUGIN_DIR . '/' . $plugin['basename'] ...
0
45050119a5acde8412200d8b47031598
76b7027b03f990eeb234efb8b16a8634
获得当前月份的最后第一天。
namespace Bing.Date public static partial class DateTimeExtensions public static DateTime LastDayOfMonth(this DateTime dt) => dt.SetDay(dt.DaysInMonth());
1
d5b679c14d3e022296b865fea32d06dd
1bb1e07cd37b64d350821bba3b1872bd
============================= | Special Validation Routine. | =============================
bool CPHIntValidator::is_valid( const string& in_text ) { bool retval = true; if( m_range_is_set ) { const int value = atoi( in_text.c_str() ); retval = ( value >= m_min ) && ( value <= m_max ); if( !retval ) { const string title = "Invalid range of value"; TStrings msg; ...
1
143257318b8a818ad939604b3bae97bd
46f9dd1238568eec13c6a5020aa2e6b1
Remove student with specified id, also remove all his exams
void RemoveStudent(unsigned long long int id) { for(Class &i : Database) { if(i.ClassName == ::currentclass) { for(size_t j=0 ; j< 10;j++) { if(i.Data.at(j).ID == id) { i.Data.erase(i.Data.begin()+j) ; i.Capacity -- ; } } } } }
0
cd8dc5ec5c6cb91a653b99ecb6343c18
712c8903069f75b28d1a1b1d811c5432
批量新增门店配送范围
@Service public class DmsPublishRrangeServiceImpl extends BaseServiceImpl<DmsPublishRrange> implements DmsPublishRrangeService @Transactional(propagation = Propagation.REQUIRES_NEW) public void batchInsertRange(List<DmsPublishRrange> dmsPublishRrangeList){ dmsPublishRrangeMapper.batchInsert(dmsPublishRrange...
1
00925ef3ca7c913bea0f952505e56f20
c1254b1b655829a6307e9097897d1684
Gets the coordinates of the first results from OnlineMapsFindLocation result.
namespace GoogleMaps public class GoogleMaps : IGoogleMaps public Location GetCoordinates(string location) { var root = Magic<Geocoding.RootObject>(GetCoordinatesUrl(location)); if (root.status != "OK") return null; if (root.results.Count < 1) return null; re...
1
5c482631d9c6d4b2e6e535e3dc8ae0f3
32437edbaca88aa6dab3adbb14bedf5e
The Kafka connector data source provides information about the existing Aiven Kafka connector. ## Example Usage ```typescript import * as pulumi from "@pulumi/pulumi"; import * as aiven from "@pulumi/aiven"; const kafka-es-con1 = aiven.getKafkaConnector({ }); ```
function getConnectionOutput(args: GetConnectionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetConnectionResult> { return pulumi.output(args).apply((a: any) => getConnection(a, opts)) }
0
412d4c7fa573fcd6ae52748a48902fe0
cbf79853a9f4eff2136aed0e5ef5c293
Verifie si le navire a coulé
int didHeLoose(Plateau* ennemyPlat){ for(int i=0;i<5;i++) if(isAliveBoat(ennemyPlat->boatAlive[i],ennemyPlat)) return 0; return 1; }
0
9de06cdfe1d2cb176cd5c5bcf6fe50be
b4cbaced91647de04f88397071e0ea05
Prepare the getopt() long options input array.
class Input implements InputInterface public function getLongOpts(): array { return $this->lOpts; }
0
f6ace45e262ff671324500e05f869272
61ec81bf47389b96be3910058a3aa0f4
Returns the value of the '<em><b>State Or Province</b></em>' attribute. <!-- begin-user-doc --> <p> If the meaning of the '<em>State Or Province</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
public class EPPContactAddress implements EPPCodecComponent public String getStateProvince() { return stateProvince; }
1
f386d6d3bb62fa7f65ddcd7103f9dfbf
120a062462d958d9221b9bd3bf305950
Disable Play buttons
class View(Observer): def disable_play_button(self): self.player_tab.disable_play_button()
1
e10112d968e23f2678bbaf3d79cdc1c4
64cafd8345591f1f294ddcd053602f80
同步帧率到显示器刷新率
namespace bee int set_display_refresh_rate(int hz) { return set_display(get_display_width(), get_display_height(), hz); }
1
972e648c626c28a846f2f1706fa17e03
311f5e8094e6f10199877554c2665149
r""" Convert scattering parameters [#]_ to impedance parameters [#]_. For power-waves, Eq.(19) from [#Kurokawa]_: .. math:: Z = F^{-1} (1 - S)^{-1} (S G + G^*) F where :math:`G = diag([Z_0])` and :math:`F = diag([1/2\sqrt{|Re(Z_0)|}])` For pseudo-waves, Eq.(74) from [#Marks]_: .. math:: Z = (1 - U^{-1} S U)^{-1} (1 + ...
class smith: def z2gamma(self, zl): return complex(zl-self.Z0)/(zl+self.Z0)
0
3343a09bd9f807fa88a5f3c863b53f1c
cf6ea5d76df07f3b6723b61b56c32c86
Create a Node based on the current state of the GameBoard
game_state_nodes = [] 0.upto(2) do |i| 0.upto(2) do |j| if @board.empty?([i, j]) new_board = @board.dup new_board[[i, j]] = @next_mover_mark new_mover_mark = @next_mover_mark == :x ? :o : :x game_state_nodes << TicTacToeNode.new(new_board, new_mover_mark, [i...
1
356e9cb4a5f217d5219e98408513db04
a8e3d080cf8f99809b661693cd1acfe9
Deletes log level from LogLevel table
{ String strSQL ; strSQL = "DELETE " + m_LogEntity.TableName + " WHERE ID = " + logID ; m_Database.Execute(strSQL); }
0
edd8a201e512b569d540a37c6e9e68f7
6c7a5c9ca559024efe86d9e282fdc384
Get the horaire hebdo sal.
class AttestationAssedic public function setHoraireAnnuelSal(?float $horaireAnnuelSal): AttestationAssedic { $this->horaireAnnuelSal = $horaireAnnuelSal; return $this; }
0
17492c5e51f4fa618f8e3b519feafbab
ad22406ccbf0e88ec3eb4f40f0f1d0e5
Decode a base64 buffer. This function returns the number of bytes stored in the output buffer. A negative number is returned if the output buffer doesn't contain enough room to store the entire decoded buffer or if there's an invalid character in the input.
int base64_decode_help(char *in_str, int in_len, char *out_str) { BIO *b64, *bio; int size = 0; if (in_str == NULL || out_str == NULL) return -1; b64 = BIO_new(BIO_f_base64()); BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); bio = BIO_new_mem_buf(in_str, in_len); bio = BIO_push(b64, bio)...
1
c9e96d190e5d87e53c509f191333f5c9
bb5a996b1993a879e8e7a94bb88ba211
Gets the day composition period detail.
namespace Erris.BusinessLayer.Timetable public class DayCompositionPeriodBL : ErrisMISBaseBL<Entities, DayCompositionPeriod> public List<TimeTableEventDetailsDTO> GetDayCompositionPeriodsByIdSourceId(int sourceId, Guid eventIdKey) { return _dayCompositionPeriodsByIdSourceIdAndEventIds(Context, s...
1
4c5a53588b413b6cfbdefbaedbc7f3f5
fd7eea6f0aad4f4f50a3f0fc425d6f65
Gets the "arg6" element
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "usta_UmsatzsteuervoranmeldungCType", propOrder = { }) public class UstaUmsatzsteuervoranmeldungCType public String getKz65() { return kz65; }
0
bacee77bce5d53b4010136362ca9691b
ab69cca34acb8daa807fb502b6489050
根据店铺,状态,时间查询订单
List<Order> selectOrders(String state, String type, Integer minute);
0
0660455a9babd15cb5e503efce2c6012
20a12e97d6c53b8f814cc345ff06f01e
@brief Representation of a mouse event (cursor enters the window)
namespace ReeeEngine void WindowsInput::OnMouseInside() noexcept { mouseInsideWindow = true; mouseBuffer.push(MouseEvent(MouseEvent::Type::InsideWindow, *this)); TrimMouseBuffer(); }
1
7c614ac61846cf2121bb9c6671396281
7c49730eb156df9dbfa6e645ba66b1d0
Função principal, responsável por chamar todas as outras funções.
def main(): lista = list(range(1, 15000+1)) n = len(lista) random.shuffle(lista) print("Tamanho da lista: %d\n"%(len(lista))) print("Número de Trocas da Ordenação:{}\n".format(NumTrocas(lista,n))) print("Comparações da Ordenação: %d\n"%(len(lista)*13)) print("Comparações da Pesquisa: %d"%PesquiLine(lista,...
1
b497e76d482c1394baaf59729e7a4b01
dd3e73e6bd2271b19c520a8f5c623690
Finds nginx configuration parameters
param = {"server": list(), "conf_path": list()} tmp_str = "" curr_el = "" ssl_block = "" include_block = "" serv_count = 0 fqdn_list = serv_name.split(".") fqdn = '\.'.join(fqdn_list) serv_name_key = re.compile('server_name\s+' + fqdn + '\s*') server_key = re.compile("(^|;|\})ser...
1
d0af6ffab5f31e703ce77c2ffaf09edd
8ca19391a7927766997f5dcfa929383d
The dew point temperature in Fahrenheit. - Not used/valid when using filter=day or filter=daynight
class ForecastPeriod: def minDewpointF(self) -> int: return self.period["minDewpointF"]
1
a10fc6d791ecb93c678d1cbde288c939
2a9c7a692d73bff15b2195ba58f09c40
{@literal} Changes the ordinate.
public class XYTextAnnotation extends AbstractXYAnnotation implements Cloneable, PublicCloneable, Serializable public void setY(double y) { this.y = y; fireAnnotationChanged(); }
1
35b9aff7af8762d7485571243029eb8d
1528b161ef9efc50c178a5d639dd31b8
<!-- 챌린지 목록 카테고리별 전체 페이지 수 -->
public class BoardDAO2 public int getListCount(Connection conn, int type) throws Exception { int listCount = 0; String query = prop.getProperty("getListCount"); try { pstmt = conn.prepareStatement(query); pstmt.setInt(1, type); rset = pstmt.executeQuery(); if (rset.next()) { listCount = rset.getIn...
1
844fea25a5b28a6f2682352101f86b3a
44bf4163da0079eaa4bb2a897abc3387
Converts `value` to a string if it's not one. An empty string is returned for `null` or `undefined` values.
if (isString(v) || isUndefined(v) || isNull(v)) { return v; } else if (isNumber(v) && (isNaN(v) || isInfinite(v))) { return null; } else { return JSON.stringify(v); } }
0
3702bf96f3f12f12345c159116e087ee
c17d57393eff6c0ea20dced18290e2d8
日历事件拖动后更新数据
public void moveEvent(String formCalendar, String toCalendar, String fromType, String toType, List<CalendarEvent> calEvents, String username) throws Exception;
1
a88d4dd9b3fa3f8c25fde5b03b6e612f
25e3e1234f0087352c657625a05add85
Get Cron类型规则,cron表达式。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
public class ScheduledAction extends AbstractModel{ public String getRecurrence() { return this.Recurrence; }
0
08ce0a4264280137e19cc380d8f8d721
d216fa9ca3c43b533735d0ab595d011d
Get total quantities of inventory
double ConditioningFacility::checkInventory(){ double total = 0; for (deque< pair<string, mat_rsrc_ptr> >::iterator iter = inventory_.begin(); iter != inventory_.end(); iter ++){ total += iter->second->quantity(); } return total; }
1
331ca003f1bbfdb4203936011ac12970
54b6432bb6a11388824538e1a6085fff
Gets the contextual tabs.
class UserRecipientAdapter implements RecipientInterface public function getTabs() { return $this->tabs; }
1
c6a31759246f7a48808c4303f9bef28f
ae03d9b88d55dad942b89458379c3113
根据简报ID查询接收者ID列表
class ReportClient extends AbstractClient public function receiverList($report_id, $offset = 0, $size = 100) { return $this->executePost('topapi/report/receiver/list', compact('report_id', 'offset', 'size')); }
1
4a9283c7c8cc72a679b245cac2e7a093
ad4e4e3e8d7788671159bf93059a98b4
Get a list of all parents inheriting from this subject in the active contexts
KMETHOD QAuthenticator_parents(CTX ctx, ksfp_t *sfp _RIX) { (void)ctx; int size = 10; kArray *a = new_Array0(ctx, size); const knh_ClassTBL_t *ct = sfp[0].p->h.cTBL; while(ct->supcid != CLASS_Object) { ct = ct->supTBL; knh_Array_add(ctx, a, (kObject *)ct->lname); } RETURN_(a); }
1
95ede89c92788a9653a666da6f6594c7
6c3a70044b3f28db0b8b6771b9b6be06
从数据库取得运维人员的电话号码
Staff staff(String phoneNumber);
0
f3f9bec18582cfa00c98ace6ba42aa76
f551c9427cd05a25a3704556c88ddf41
Function to get contact from contacts app.
class ApiServiceImpl : ApiService override fun getContacts(): Single<List<Contact>> { return Rx2AndroidNetworking.get("FetchContactApiPath") .build() .getObjectListSingle(Contact::class.java) }
0
2639c2785329a63088848a463add01f8
fbd2d93d337232a50c7c698d96d6d44d
getting an array of non repeating roles in a certain column
function getRoomList() { Logger.log('Running get room list') var pageName = getDataSheet(); Logger.log('Page Name:' + pageName) var columnNumber = 1 Logger.log('Column Number:' + columnNumber) var ss = SpreadsheetApp.getActiveSpreadsheet(); var list = ss.getSheetByName(pageName); var values = list.getD...
1
e06751e1f0d91b40aa092de335bd8537
968c3d17e5b98031ed3dd0d35fae79d4
Display the header, the battery level and the range
modelname = model.getInfo() lcd.drawFilledRectangle(0, 0, screenWidth , titleBarHeight, ERASE) if cellCount ~= nil then lcd.drawText(2, 1, cellCount .. "S", SMLSIZE) end if battsum ~= nil then lcd.drawText(lcd.getLastRightPos() + 3, 1, helper.round(battsum,1) .. "V", SMLSIZE) end if vtxBand ~= n...
1
7273be8bcb93eac9f557df1f1f038159
067b99d7d857ce1ba5b04549aaa852df
Цикл вывода меню слов до выбора.
{ string[] words = ReadWords(); for (int i = 0; i < words.Length; i++) { Console.WriteLine($"{i + 1}. {words[i]}"); } }
0
be13130e0010239d7bc591d929c45501
8ad44e1d4525998fd1a4047e2831cfdf
reset all players' added points
{ foreach (Player player in this.Players) { player.Points = 0; } }
1
57a9b2929a26b9b59afe55f1a56b2838
331436b0869c9360018025f05dfed7c5
清空补丁
public class TinkerManager public static void cleanPatch(Context context) { Log.d(TAG, "清除hotfix补丁"); Tinker.with(context).cleanPatch(); }
1
c38f44857da6c3888e602df8ab0e521a
b220cc143961725469911e6d34587443
获取图柱子项的值
export default class BarChartDataItem async getLabel(){ try{ var {label} = await BCDI.getLabel(this._SMBarChartDataItemId); return label; }catch(e){ console.error(e); } }
0
448865755adff5d5d322e2d296b048f2
eeb0d872409fffc3d467f94f5313b056
Controls behavior of linq2db when there is no updateable fields in Update query: - if <c>true</c> - query not executed and Update operation returns 0 as number of affected records; - if <c>false</c> - <see cref="LinqToDBException"/> will be thrown. Default value: <c>false</c>.
class Update extends \Aura\Sql\Query\Update public function orFail($enable = true) { $this->setFlag(self::FLAG_OR_FAIL, $enable); return $this; }
1
54ee4069b9257ca2566a91972c362d3e
6f86f8c4c61eb3f4204022ff600dfeb7
Output a single number representing the cost of the given slogan, according to Petr's pricing.
class PushNumber(Macro): def _cost(self) -> int: return self.size
0
67d4292eaeed5fae1152102e90bced72
690a51c01944c70764d7e2c47bf11090
Appends an empty line to the string builder
fun StringBuilder.newline() = append("\n")!!
1
0788cdba22c7ea512f6cf2502de2002d
3230b270cfde8cb7a103a2fabf84842d
Getter for <code>WETRN.V_OFFR_ALL_WITH_BEST_COST.OSL_LAST_UPDT_TS</code>.
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.7.2" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class VOffrAllWithBestCostRecord extends TableRecordImpl<VOffrAllWithBestCostRecord> public Date getOslLastUpdtTs() { return (Date) ge...
1
b503517ddaa6cc833c675b8c15a533e6
6a5f01d98817ca2291db0e9d45d08f5e
@brief DMA2 Channel5 ISR
void DMA1_Channel5_IRQHandler(void) { HAL_DMA_IRQHandler(&hdma_spi2_tx); }
0
e9278edd5e42f2c7cdfaa0da14fdcde4
4dd21d8261ea4d577e87c2966dd17169
Service-specific handling, we code-gen override per service.
private fun ServiceGenerator() {}
0
6f96b8ca731e4e437717e8bbe48cb680
67d4f8278f85e02d0de4fd83f3b4530c
Reads a file and performs Markov analysis. filename: string order: integer number of words in the prefix returns: map from prefix to list of possible suffixes.
previous_word = '' word_mimics = {previous_word:[]} file = open(filename, 'rU') for line in file: for word in line.lower().split(): word_mimics[previous_word] = [word] if not previous_word in word_mimics else (word_mimics[previous_word] + [word]) previous_word = word ...
0
cb845a14a5161dfd8aec47bb676ae6d4
165cce9eb48e29668e6d2f7fe13a4c29
Changes the value of the Interval property.
namespace Microsoft.Windows.Controls.Testing [TestClass] public partial class AxisTest : ControlTest [TestMethod] [Description("Changes the value of the Interval property.")] public void IntervalChangeValue() { Axis axis = new Axis(); double interval = 1.1; ...
1
bb035087d11c51661387ff2217eda0f1
67c24ff0fd568bf07168a21b197962f5
将小说写入到文件,文件默认保存在脚本文件的当前路径下
class Biquge(object): def save_as_txt(self): path = "D:/programFiles/101.camp/ch5/data/{}.txt".format(self.book_name) with open(path, 'w', encoding='utf-8') as fw: fw.write("《{}》\n".format(self.book_name)) fw.write(self.book_author + "\n") fw.write(self.book_desc + "\...
0
f9c906de9fa0a1322bb8f99d0243388f
4eacf67139bd1992cab21ca5a20e45c8
读取节点路由信息-线程任务启动函数
void MainWindow::routeXML() { for(int n=0 ; n<3 ; n++ ) { double time=0.0; QString strAll; QStringList strList; QString fileName = QString("/home/zhang/Script/route/node%1_route.log").arg(n+1); QFile readFile(fileName); if(readFile.open((QIODevice::ReadOnly|QIODev...
0
4ecf4d16a19145e3ea2ac9fe828b6230
2ef170230e274fb49a6dd737b2e4a69c
Zapíše aktuální stav.
FileOutputStream fileOut = context.openFileOutput("state", Context.MODE_PRIVATE); ObjectOutputStream out = new ObjectOutputStream(fileOut); out.writeObject(state); out.close(); fileOut.close(); }
1
9bc0df706435dde8dcb45dd06a42e50f
361494549b26390ca8adff482f565671
デバック用cubeを生成する。生成済みの場合は位置を更新する
Geometry tryGeom = (Geometry) shootables.getChild(cube.name()); if (tryGeom != null) { System.out.println("Cube already exists!"); return; } System.out.println("makeCube:" + cube.toString()); Box box = new Box(SysConstant.Public.CUBE_RADIUS, SysConstant.Pu...
0
bc16b0c6a9f858967573d0ccd3d0e3d7
bc3b707545763aadfb14baec2b50149b
改变一个物体的字体
namespace AssetManagement.AssetBrowser static internal class AssetBrowserUtil static public bool ReplaceFont(string assetPath, Font newFont) { #if USE_NGUI GameObject prefab = AssetDatabase.LoadAssetAtPath<GameObject>(assetPath); if(prefab == null) { retur...
1
688d19c115ff0267aaa2f7080cd0cae4
c8da423e2dbad3c1abb37ea06bdc37f4
使用查询pp得到的结果的处理
{ $tmp_data = STATIC::getPPkData($ppk_uri,$enable_cache ); $status_code = $tmp_data['status_code']; if($status_code==200){ return array( 'status_code' => 200, 'uri' => $tmp_data['uri'], 'content' => $tmp_data['content'], ...
1
43ab1d3f2bb5c691b09d98e7217c294b
eb1f58511e057962796c17ab5325431a
Установить путь к HTML файлу
class HtmlEditor extends Editor_Abstract public function setPath($path) { $this->_path = (string) $path; return $this; }
1
f646f211d48add0f8313fc870e926101
f94cca94627f06abbbffa8e9d12b91a8
滚动找元素,找到了就点击
class BasePage: def swip_click(self, text): self.find(MobileBy.ANDROID_UIAUTOMATOR, 'new UiScrollable(new UiSelector().scrollable(true).instance(0)).' 'scrollIntoView(new UiSelector().' f'text("{text}").instance(0));...
1
3419b2b270b38f2f580c0a68930704d6
afce2f8fb9e418a56201616c706b2d58
当天登陆用户数
int getTodayUserCount();
1
aca70a963491ab02c050db2f2ea080e6
d33766d50cc03cf3260cdf87513dbe84
make table to hold locations and what folder they're in
class portal(QWidget): def locationScreen(self): locationtext="" self.locS = QFrame() self.locS.setStyleSheet(self.styledata) self.locS.setFixedSize(500,500) self.locSTE = QTextEdit("", self.locS) self.locSTE.setGeometry(20,20,460,460) self.locSTE.setReadOnly(Tr...
0
1cf802c2f4b04b52d78a9b66a41cd9fb
b3173a01262eaf792864949f546513ea
Parse Vasp EIGENVAL - check if all bands have integer occupation
magmom = 0. lines = fi.split('\n') splitlines = list(filter(None, [x.split() for x in reversed(lines)])) if len(splitlines[0]) == 3: return True, 0. ints = True mags = [(float(l[-2]), float(l[-1])) for l in splitlines if len(l) == 5 and str.isdigit(l[0])] for up, down i...
1
8cb72b6b3f674de8aac52036bfba4378
bff5bb829ff945fb3b97ca3119107ed8
How many of a character appear in this line.
namespace Qowaiv.Text internal class CharBuffer : IEquatable<string> public int Count(char ch) { var count = 0; for (var i = 0; i < Length; i++) { if (buffer[i] == ch) { count++; } } ...
1
d03497cc549dff2b34a2af3f1dd7434a
551a91fbdc02cf0b9e57478efef94c8c
Set output pin PA_5 to low
static void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = { 0 }; __HAL_RCC_GPIOA_CLK_ENABLE(); HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_RESET); GPIO_InitStruct.Pin = GPIO_PIN_5; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_...
1
05150f86a5882a4398f426cab9e84dc1
7ccae479ce30ef428e7fd8af324b2d99
设置EU机器状态(1-异常,0-正常)
@Table(name = "eu_static") public class EuStaticEntity extends StandardEntity public void setDeviceStat(int deviceStat) { addChangeField("deviceStat",this.deviceStat,deviceStat); this.deviceStat = deviceStat; }
1
f9a80b3ed9b2f4ae30695823f31de0de
1d5600a2ed85e31a90a89f0e383e46e2
critical section has ended.
void oncrpc_crit_sect_enter ( oncrpc_crit_sect_ptr pcs ) { pthread_mutex_lock(pcs); }
0
8dcbab4f12b9a3e4b051bba8cb6745a3
58160cd9295b7d3041fa3b36177e52ea
获取指定课程指定教师的所有学生
public BackMessage getStudentList(HttpSession httpSession, @RequestBody Course course) { Long id = authenticationAndGetId(httpSession); return teacherService.queryStudentList(id, course.getSerialNumber()); }
1
9061110f819eeb866563db272f7da6fa
188a60011915570b2d838c53042c51e7
Perform orientation field optimisation. Continuously step until done.
iters = self.config['iters'] r = self.config['r'] eps = self.config['eps'] delay = self.config['delay'] iters = self.config['iters'] W, H = self.init_WH() stop = False start = time.time() i = 0 elapsed = 0 self._update_objective(W, ...
1
24d9458e27c0e2af58200d26bda66ca8
a4171e00e094aa871fdea8c8272e7efe
更新父节点的treeRight值
class EPGColumnAction extends Action public function updateBrotherLRTree($table,$ID,$dif,$Flag) { if(!isset($table,$ID,$dif,$Flag)) { $this->error("table?") ; return; } $result = $table->query(" select ID,parentID,treeLeft,treeRight,position,level ". " from epgcolumn ". ...
0
333bb4b1d95b7dd1d26c516be7725db9
45f3adec6e142ed8fe39e4bca019532d
组件初始化,从本地读取配置文件并填写空间数据
async init() { const { db, params } = this.ctx; return { table: 'app_space_info', pageOption: { fieldEq: ['type', 'classifyId'] } }; }
0
abfe51ae45ae595b91591424d89e21ee
82faf42cac3f2ab22f164113728d8ae7
@brief 从已使用链表中,得到数据,并且post数据给webservice服务器
public class PostOperActivity extends Activity private void getDataFromServer() { postCode = getIntent().getStringExtra(Constants.SCAN_POST_CODE); sessionId = getIntent().getStringExtra(Constants.SESSION_ID); validLocalData(); boolean isConnect = true; if (isConnect) { ...
0
7724d7b6abc7c16002f85ed0fff591a4
0a891e06bca7047569e92e4d034cf192
Check if there are any comments on the page
class WPSEO_Health_Check_Page_Comments extends WPSEO_Health_Check protected function has_page_comments() { return get_option( 'page_comments' ) === '1'; }
0
f43e25d47a17ccf3f4e8b9792c87914d
6af6f4cf2e5e9ab7c2ff5e48a2a7a921
Ensure that the redo-statement is actually inside of a loop.
for (var s = this.Scope; s != null; s = s.Scope) { if (s is LoopScope) { return; } if (s is FunctionScope) { break; } } throw this.Token.Error($"'{this.Token}' can only appear inside a loop"); }
1