query_id
string
corpus_id
string
query
string
code
string
label
int64
c64a6f38e1e95099afd0629accde0804
76a68c5a0e17ba93d84b0772f9af2c7d
Make a deep copy of the directory
DirectoryEntry * DirectoryEntry::duplicate() { DirectoryNode * newNode = new DirectoryNode(cwd); DirectoryEntry * duplicateDir = new DirectoryEntry(newNode); duplicateDir->rootNode = rootNode; return duplicateDir; }
1
a344b9e8a3d588289c7b00dab8e48ddd
8754c66d79a6b4fa9d6b34bd94dd0a05
funkcja rekurencyjna wyznaczajaca wektor wartosci wezlow podanego poddrzewa
TreeNode *temp = new TreeNode(0, 0); temp = root.rootAdress; vectors.push_back(temp->value); if (temp->left != 0) { root.rootAdress = temp->left; vectorRest(root, vectors); } if (temp->right != 0) { root.rootAdress = temp->right; vectorRest(root, vectors); } }
1
c403002f640f91e453a6c1bffc016801
26b31022ac0557f97a1125b3f525a2f1
根据国家获取地区
List<WorldArea> getCountryList(int pid);
0
c7de9877d3e4fca33a793ff3c29d0e29
617f2d559804d47bc87a21308455fb80
A resource for this entry. Resource URIs can be used to compare different kinds of entries and group them together.
@NotNull GenericAttributeValue<String> getResource();
1
c026e88369c8922804bd5eca09a6b730
c9c1c7cc6abd9e11ed60a859c24771da
Opens a new document loaded from the provided url asynchronously in the given context.
namespace BrowseSharp.Browsers.Core Task<IDocument<T>> NavigateAsync<T>(string uri);
1
5052f30ae9562186015fce645ba2ffd4
25f9a75f316239bf6aa3f923b305b9c9
Gets the index of the element that is current first in the buffer.
{ if (Count == 0) throw new InvalidOperationException(); return this.Buffer[0]; }
0
828d8e32d707386da0617d6c9264b5f0
0eb43f2f34daea9b8a556ea1fba68684
扩展方法:计算日期是年内的第几周,一周从星期天开始
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); Calendar calendar = Calendar.getInstance(); calendar.setFirstDayOfWeek(Calendar.SUNDAY); calendar.setTime(format.parse(day)); return calendar.get(Calendar.WEEK_OF_YEAR); }
1
003d3cd2888351b64b48b2f394d07815
b38b3db411b88c5b148eaa14f26ea858
Method converts RUB to EURO.
public class Converter public double euroToRuble(double ruble) { return ruble * 70; }
0
434a82d6cfb4cdbe6ca8e64c0f34095c
82cd2038044f9a61cf34b087cb5ea8cb
Шейдер, заполняющий буфер глубины
{ auto depthBufferDesc = CD3DX12_RESOURCE_DESC::Tex2D( DXGI_FORMAT_D32_FLOAT, width, height, 1, 0, 1, 0, D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL ); D3D12_CLEAR_VALUE depthClearValue{}; depthClearValue.Format = depthBufferDesc.Format; depthClearValue.DepthStencil.Depth = 1.0f; depthCl...
0
abd55bfab10daf4ce382d5af31efa203
5ee2faed1847592b596a31ef957cddae
Removes first occurrence of specified spec.
namespace OHOS namespace AAFwk void Skills::RemoveSchemeSpecificPart(const std::string &schemeSpecificPart) { auto it = std::find_if(schemeSpecificParts_.begin(), schemeSpecificParts_.end(), [&schemeSpecificPart](const PatternsMatcher pm) { return pm.GetPattern() == schemeSpecificPart; }); if (i...
1
3472da8c7cceb842f22c8afc21f33e28
95305994cd05f49798aeefa1c68f2f46
Check to see if PrivateLinkServiceName property is set
namespace Amazon.Lightsail.Model public partial class Instance internal bool IsSetPrivateIpAddress() { return this._privateIpAddress != null; }
0
5ddc570c1d235a13ead99a69d824562d
b32d07ed0d39dfd60528038febb1bd49
kihonsparec5を取得します。
@ToString public class PpfsYskCalc implements Externalizable public String getKihonsparec7() { return kihonsparec7; }
0
8cb81143bee793b96fcba6b79e7416d5
058e4534baf4141db969c965c10db22e
Schedule a repeating task, with the specified gap between runs.
IScheduledTask runTaskRepeat(Plugin plugin, long startTicks, long repeatTicks, Runnable runnable);
1
c67c200d04e6fbf452a58212f29af3d8
f40dd98a05bb7665652546478d943489
returns the time of day [from 12:00:01am to 11:59:59pm] as a range of 0 to 1
$nighttimeTimes = App::getArrayOfNighttimeTimesInFifteenMinutesInterval(); $shiftTimes = $this->getArrayOfShiftTimesInFifteenMinutesInterval(); $unionArray = array_intersect($nighttimeTimes,$shiftTimes); return max(0,count($unionArray)-1)*0.25; }
0
2ef40a8d6903d5242e2e47f1ee93d487
61666665aab855114885c12c02263c56
Take packets of the software queue and queue them to the tx hardware
void static copyHardwareToSoftware(void){ char letter; while(((UART1_FR_R&UART_FR_RXFE) == 0) && (XBEERxFifo_Size() < (RXFIFOSIZE - 1))){ letter = UART1_DR_R; XBEERxFifo_Put(letter); } }
0
47a0269e9488ffc0223da4d2b426df7a
aae061d5ef8556e06f2d7a5cd98dd421
获取角色为销售的员工
String sql = "SELECT u.id,u.`name`,u.nick_name,u.phone from a_user_role ur,a_user u,a_role r " + " where ur.user_id=u.id and ur.role_id=r.id and role_key='sales'"; return find(sql); }
1
cd76ad97355d0c88251b5c97887f9b24
cfc7bff519eb6737504ea8c88c2e4e04
Rehydrates a Token.
class Token(Serializable): def deserialize(raw:str) -> object: token = Token() token.__token = UUID(raw) return token
1
f7a2c48298e22b451cd24231e4e07dfe
858633962a67fd0c93fcf45c3cba9be1
Add one second wait command to the command stack.
class Interpreter def command_106 @wait_count = @parameters[0] * 2 return true end
0
00bd8188da2a3647322f2d612a01bdc8
8edb3c771d604472195aa6179f923601
If there are no 'ids' or 'entities' in store, it creates them.
function prepareEntity(entity) { if (!entity.addresses) { entity.addresses = {}; } if (!entity.birthDate) { entity.birthDate = {}; } if (!entity.birthDate) { ...
0
c82afa2abf4ce0d46491bfc9f34fafc5
de7e76dd530e39d2857bae760857edf8
创建集群前预检查 Please refer to HUAWEI cloud API Explorer for details.
const options = ParamCreater().createCluster(createClusterRequest); options['responseHeaders'] = ['']; return this.hcClient.sendRequest(options); }
0
7e9817b9a692ae1ccee76e5497c34cec
78b684f3f0ec6dff1e49e34b09e1ea8a
Gère l'affichage des commenatires dans le recycler
class NewsDetailsActivity : AppCompatActivity(), CommentsCallbacks @Suppress("UNCHECKED_CAST") override fun onCommentaryListChanged(comment: MutableMap<String, Any>) { if(comment.isEmpty()) { recyclerView.visibility = View.GONE findViewById<TextView>(R.id.noCommentaryText).visibility ...
1
c033bfbb4937bad97a9fdb00446698f9
68ee994e6fa7db52bd508eb30163eaf2
捕获panic异常,会打印出异常处的函数名和错误信息
if e := recover(); e != nil { errorlog.Panic("panic at") } }
0
c641f3447385e0e504e3b0bb384e922e
b2a4eafc54a6eced6d3506b029c05f52
Convert a PIL image to a PNG binary string.
def image_to_png(img): exp = BytesIO() img.save(exp, format='png') exp.seek(0) s = exp.read() exp.close() return s
1
b99c5298457880a180864b13078a74fa
8d008a5ee47102a5373147d4a8517aec
remove empty levels from the given PG
consolidated = levels for i, lvl in enumerate(levels): try: parents = consolidated[i + 1] except IndexError: return consolidated[i] for name, obj in lvl.items(): p = obj.parent if p in parents: parents[p].children.append(obj...
0
189441a29a0859e067c32b95276154be
3d99295003da467077bffe02ce44a979
Retrieves the path to a file that has been shadow copied.
class SaveCopyReferenceArg public String getPath() { return path; }
1
9dcb9282eddc6e5b142dbf974b860cf2
e72af7db90c2b6008e6695d384e271de
from the calculated UB matrix, subject to constraints corresponding to a specific unit cell type. This method AND the setParameters() method MUST be implemented in derived classes to apply the constraints for the cell type.
class ConstraintsCreatorHousehold2010Generic(querybase_constraints.AbstractConstraintsCreator): # Used only in unit tests def total_ub(self, name): pass
0
dee4f0ad119fd51ece9de70ffa4b52a1
0163ca62fdc40c95f99284372dfd1726
Método que compara o nome de duas listas.
int32_t compare(List* a, List* b) { return strcmp(a->data, b->data); }
1
f130ff324330cf9fdd3e633b9ef57644
fc571b24f6ee708e6886a335cca60532
Given an ASIN, get the URL of the large image Returns a string
class Document(BaseAPIObject): def get_large_image_url(self, page=1): template = self.resources.page.get('image') return template.replace("{page}", str(page)).replace("{size}", "large")
0
1af19b6a6950d146778d80f8fc2081c7
6dd592539889cec14fe96d5da018be5f
fonction qui prend des photos pour le stop motion et qui les envoie au serveur
global formaat global tel global teller global norec if norec == False: x = "vid" +teller+ ".mp4 " os.system(formaat) os.system('rm /home/pi/camera/vid%s.h264' %tel) tel = tel + 1 teller = str(tel) formaat = "MP4Box -add /home/pi/camera/vid" +teller+ ".h264 /home/pi/camera/vid" +teller+ ".mp4" fb...
0
287ed39aabc4cf316add29574b634860
d8e7162db818623477e8cba62626f81c
Registers a property list with same type of an already registered one
namespace VirtoCommerce.Platform.Core.DynamicProperties void RegisterType(string typeName);
0
d49a9cd85effdac5b1bb2a2ae1e642d3
890bfc141b7277667a307140db3335bc
Stores the database system settings in the settings table. The settings table is recreated. If the default collation method changes later then the database will be reindexed and the new collation dll name will replace the existing one in the settings table. Note that the function may also leave with some other database...
namespace Shared [OperationContract] void UpdateSettingsFirebird();
0
ed4a943372b659da8d7814370fde0cf5
9f3b40eab5fbef44681cabbc59391606
根据id号删除疾病的方法 可以批量删除
@RestController @RequestMapping("/s-user/api/v1/healthy") @Api(tags = "用户端: 用户健康档案") public class FallIllController @DeleteMapping("/fallIll") @ApiOperation("删除疾病") @Log(name = "用户健康档案", value = "删除疾病") @ApiImplicitParam(name = "fallIllId", value = "疾病列表ID", required = true) public ApiResult deleteFallI...
0
d13acc5563406d69f0362e1b9a35033e
586c6b5f4396ec9063e1dd04cfe47c0e
Sets the type of this BGPGeneralSettingModel.
Settings.Type = Settings.belongsTo(models.SettingsTypes, { as: 'Type', foreignKey: 'settings_type_id', }); }
0
15e27ad13234b1034cf10a019da1739a
454c9c0769e4bb0d4c611ea448c89aa2
Ajankohta kun kohde julkaistiin GMT-ajassa.
namespace PaceLabel public partial class paceLabel : UserControl public static void onTimeChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { paceLabel label = (paceLabel)obj; label.PaivitaPace(); }
0
3e3beeba4522fd35f672952af01370c6
edfa9d9d0f764b9815f7cc1b795c4d83
Выполнить действие асинхронно при положительном значении, вернуть результирующий ответ
namespace OneVK.Request Task<T> ExecuteAsync(CancellationToken ct = default(CancellationToken));
1
95931e135a69bc894c5f8ea5d1adb2a5
fb26421cef4d55b10ab263c91d0daa13
Adds a new MultiValue to set the int[] specified by <paramref name="expression"/>. By default this MultiValue is not required. The elements will be converted to int and stored in a collection of type Array.
{ var obj = new NamelessMultiArgConfig<TClass, decimal?, HashSet<decimal?>>(false, ToNullableDecimal, HashSet); config(obj); return AddMultiValueCore(expression, obj); }
0
ed985a1b3dee7cd0373b6996f6b3d16a
42ca0da07bb6b83cabf87a482bffde31
Metodissa tulostetaan päävalikon ohjeet.
public class Kayttoliittyma public void tulostaOhje(int indeksi) { LCD.clear(); System.out.println("Valitse toiminto"); System.out.println("ja paina enter"); System.out.println(" "); if (indeksi == 0) { System.out.println("Vapaa"); System.out.println("piirtaminen"); System.out.println(" "); } else ...
1
5585ad68e77b8e818ba1883d4fb4839f
de57e60b36a76d8db55bae4bd56b92c9
whether the plotting algorithm should offset the origin to the nearest whole number of selected units
public class GoBoardRenderer extends TwoPlayerBoardRenderer @Override protected boolean offsetGrid() { return true; }
1
c97071f883ba314956aa69dbfdafdf3e
9ce651b48a30862a53d851ea810f9b3b
returns the number of elements in this collection. If this collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
default int count() { throw new UnsupportedOperationException("Not implemented."); }
0
eca36d1a518e585b61cda3a775346036
943a77ccdf318ed0d3077730340a1949
Preferably don't use this; it might be removed in the future.
@Deprecated SharedPreferences getSharedPref();
1
f6ad67520ebed1c37f8ec91b4bb126ce
7209e0a835da54f7f4a01a07bb92b82b
Methode de récuperation du message sonore
class Message public function getSound() { return $this->sound; }
1
40ae55e9abe33d0e1ba12099cb50d4fe
f5804fd297b46c75cab04f294dce066b
Очистить все поля формы
export default class Popup extends BaseComponent clearPopup() { this.form = this.element.querySelector('.popup__form'); if (this.form) { this.form.reset(); } }
1
6d846571acdebdafd7fbdaf45923824c
601de891b2595b4949dd22bcdf7c7d58
Allows direct iteration over all squares
class Board: def __iter__(self): return iter(self.board)
1
bc5f767074bb7d403811ec946ca7647b
339adc426abd7f67080042e775983b01
Returns the value of the '<em><b>Name Info</b></em>' attribute. <!-- begin-user-doc --> <p> If the meaning of the '<em>Name Info</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AuditableCustomer", propOrder = { "customerNumber", "nameInfo", "address", "contactInfo", "paymentInfo", "productLine", "brand", "confirmationEmail" }) public class AuditableCustomer public NameInfo getNameInfo() { ...
1
61cfa06f6e4932471727bd846fb3ffbb
9d4d097a1361328937c2be67d26c0892
test if the two actor updates are equal
{ assert.strictEqual( actual.id, expected.id ); assert.strictEqual( actual.name, expected.name ); assert.strictEqual( actual.stats.length, expected.stats.length ); for ( var i in actual.stats ) { assert.strictEqual( actual.stats[ i ].value, expected.stats[ i ].value ); assert.strictEqual( actual.stats[ i ].sta...
1
ca10ad60463d7db27a4fc7394ae95997
91ec87d5973cc59c3163f9e9df9a98a6
Metodo que se usa para poder recargar la parte de comentarios esto para que no se recargue toda la pagina sino solo los comentarios que se tienen de la publicacion en la cual se esta llevando la accion
$('#comentarios').empty(); $.post("tasksofgroup?", {accion: 'infotarea', tarea: tarea, opc: 'com'}, function (rs) { if (rs != '[]') { $('#contenedorcomentarios').removeClass('eye'); var json = JSON.parse(rs); onclick = ""; for (let item of json) { ...
1
57f0973334a3a44f9d72488a46ca58c9
3367034cf3a303d7697f0dedb69b75a0
@brief translate the raw netlist into DesignDB status
ASSERT(str != NULL); str += 2; nbobj.netStat = (NB_NetStatus_t)nb_parse_number(&str); return 1; }
0
71c29d63eec57dba7cbc62b08d992330
63fdfbce4c1fc7014eb39c34c2491ab7
Gets a specific implementation of a ShadowCamera setup.
Camera camera = null; try { camera = Camera.open(id); setupCamera(camera); } catch (Exception e) { e.printStackTrace(); } return camera; }
0
1d756c991a15d534b0aa87b48c0c6d80
86770d4ffba4a05994fe29747587e25a
Returns the element of source for which valueFunc is maximal If there are several maxima the first one is returned NaNs are never considered as maximum. If the sequence is empty or consists only of NaNs the result is `defaultValue`
namespace JM.LinqFaster public static partial class LinqFaster public static double MaxF<T>(this Span<T> source, Func<T, double> selector) { if (source == null) { throw Error.ArgumentNull("source"); } if (source.Length == 0) { ...
0
5be74aa4514febdf8ed72ad2695bc395
c3d3bb9e3aeb051fd4fba47d5116909f
Output stdout and stderr to console
class ExecFuncInPropeller(ExecInPropeller, threading.Thread): def __start_output_capture(self): (sys.stdout, sys.stderr) = self.__strio_output
0
2ee4b0ad585f339e80c155f81cd26acd
d31b1ce55c67670abdd2ffaea2d4ad3d
Stein Variational Gradient Descent Sample by optimization with the Stein Variational Gradient Descent with a Gaussian kernel.
x = x[:, 1:] n, p = x.shape x, _, _, y, muY = standardise(x, y) if return_all: alpha_all = torch.zeros((p, n_samples)).to(x) sigma2_all = torch.zeros((1, n_samples)).to(x) tau2_all = torch.zeros((1, n_samples)).to(x) beta2_all = torch.zeros...
0
076c5cfe1021c848d67f809e495a4ce7
5a3fb93c1138c8233a904e0f7bf777b4
Call this method to override the default list of blacklisted devices specified in WebRtcAudioUtils.BLACKLISTED_OPEN_SL_ES_MODELS. Allows an app to take control over which devices to exclude from using the OpenSL ES audio output path
namespace tp_serial_protocol void SerialInterfaceManager::setWhiteList(const std::vector<std::string>& whiteList) { d->whiteList = whiteList; }
0
4df9ddd773d513b6da9b0c53d2159ddc
363146ddabe020d8ab898652744ec620
Represents a bounding box of WGS84 coordinates
self.min_lat = min_lat self.min_lng = min_lng self.max_lat = max_lat self.max_lng = max_lng self.mid_lat = (self.min_lat + self.max_lat) / 2 self.mid_lng = (self.min_lng + self.max_lng) / 2 self.nw_child = None self.ne_child = None self.sw_child = ...
1
1a6abd7b8f6c09329fda37ebf81a36f5
87a4ab3959adf840272c9e0cddfe0ebe
Set Up
function setup() { createCanvas(500,500); database=firebase.database(); dog=createSprite(250,300,150,150); dog.addImage(dogImg); dog.scale=0.15; foodStock=database.ref('Food'); foodStock.on("value",readStock); foodObj = new Food(); readState = database.ref('gameState'); readState.on("value", functi...
1
61bc5d0b744d44b80404a9c7f25944f5
9e6d2899b4be8efb82eac35fef1778d0
查询失败的迁移记录(单表单天查询)
select_sql = """ SELECT * FROM pgcractivitiesfailtoget;""" async with (await get_connection_pool()).acquire(timeout=timeout) as connection: return await connection.fetch(select_sql)
0
cf02d97d5d8393380f155c378c03e87b
292787bbcc08caa03d1ec327222d1507
根据ProadddatabaseID获取表 的对象ProaddInfo 的位置
public class OutGoingActivity extends BaseActivity implements View.OnClickListener{ private PDADownShpm_Entity getProInfo2(String bill,String ProID){ for(int k=0;k<pdaDown_PorListData.size();k++){ PDADownShpm_Entity entity=pdaDown_PorListData.get(k); if(entity.getProdId().equals(ProID) &...
0
e6d47e4631c287159f17c77c73e0c900
43f940c942a1584fc9bf294bacb541f1
Prints a error debug message to the command line following a template. [ Error ] Failed to (method) the (obj) : (error)
def print_error(type, args=dict()): print("< " + error_map[type].format(**args))
1
852e70c347c95bd5ed79cbd0f8d8946a
1f50d5ece3b7f5d49822b45370132c6f
二点間からラジアンを求める
float dx = p2.x - p1.x; float dy = p2.y - p1.y; float rad = Mathf.Atan2(dy, dx); return rad * Mathf.Rad2Deg; }
0
89dfc6fdd1eff673ac559aaea9f9e8d2
8427a4d14a0796905c7cc76f2470efee
Guess a title given a file name. Examples:
filetype = { 'ASCII text, with no line terminators': txt_pw, 'PDF document, version 1.3': pdf_pw, 'Microsoft Excel 2007+': xls_pw, 'Microsoft OOXML': doc_ppt, } t = from_file(f) try: return filetype[t](f) except: print t raise
0
ffc43dfd046501707e6ac13c8d97ce55
9780f351867a0db9c22dd9942ad78a0a
Check for valid permissions givent the storage context for a file, also taking into account the location where the file was included within Moodle.
{ $paths = explode('/webdav.php', $file_path); $right = $_right ? $_right : Vfs::WRITABLE; $allowed = Vfs::check_access($paths[1], $right) && !preg_match('/\/collabeditor\/assets\/template.odt$/', $file_path); return $allowed; }
1
f5b9ca121a8f6d8fc6f1e4d2517ca4c1
9a3fdc71618a37dcc6d4b6a84e01f5ae
将inode写回到磁盘中
void write_inode(inode_t inode) { int inum = inode.inum; int inode_sector_num = inum / 8; int inode_order_in_sector = inum % 8; inode_t inode_sector[8]; sd_card_read(inode_sector, INODE_BASE + inode_sector_num * 512, 512); inode_sector[inode_order_in_sector] = inode; sd_card_write(inode_sector, INODE_BA...
1
519f6f35fdd87ebc58a08ea99739938e
851b16beea193cd125647eb6a30dc7d8
converts the team abbreviation used by the website to the one used by the database
def team_converter(team_id): team_map = { 1: "Arsenal", 2: "Aston Villa", 3: "Brighton", 4: "Burnley", 5: "Chelsea", 6: "Crystal Palace", 7: "Everton", 8: "Fulham", 9: "Leicester", 10: "Leeds", 11: "Liverpool", 12: "Man ...
0
0d8f5095f633f4ac1b933583ca4385ae
f735ff9600e5ea491cfa5c09bbf09df1
slow path interrupt processing function can be invoked in polled mode or in interrupt mode via taskqueue.
static irqreturn_t t3_async_intr_handler(int irq, void *cookie) { t3_slow_intr_handler(cookie); return IRQ_HANDLED; }
1
0696da71e32d35cc1b522917113e7f6c
8ec9f759e8b7635cf61206e67e07bba8
Sets the swift code.
public class BankDTO implements Serializable{ public void setSwiftCode(String swiftCode) { this.swiftCode = swiftCode; }
1
7d76f09ce616342481086f71f5723435
b3f0f22464270331fbf7e71bb825e050
get all ssh keys from a dictionary of UserCloudInfo objects
def _get_related_keys(ip, keys, user_list=None): kl = [] for key in keys: try: ssh_client = ssh_login.ssh_key(ip, LOGGING_USER, key) cmd = 'pwd' stdin, stdout, stderr = ssh_client.exec_command(cmd) if not len(stdout) == 0: kl.append(key) ...
0
382df64a76271d5da45f7e0b5d8a14a7
384b3113d330eb66fec5ebcb145bf347
Une représentation graphique du nombre de réclamation par type de réclamation (CMS, vague, …)
$sql = ' SELECT etat, COUNT(*) AS nb FROM reference GROUP BY etat '; $query = $this->db->query($sql); $res = array(1 => 0, 2 => 0, 3 => 0); foreach ($query->result_array() as $row){ $res[$row['etat']] = $row['nb']; } return $res; }
0
98eb7a80ce36c75b91cd163a8b62e04f
eb06f836b24eb537d5b7e9bc55c80f7c
获取角色状态map
return ArrayList<MapRole>().apply { forEachCell { if (it.flag == MapRole.FLAG_ROLE) add(it) } } }
0
11076e8493ce5ae2b30963bc9375ea7a
0ba0db26d95877a5849d36e0710002b6
Returns the capability ID
@XmlRootElement @XmlAccessorType(XmlAccessType.NONE) public class Capability implements SoapSerializable, Serializable @XmlElement public String getServiceId() { return serviceId; }
0
246271a27378c3e1a9462d111d3aadd0
8dbc14479d1478e031aaa3bac5781d05
Gets the Offset of the Last Snapshot, as found in the main Segment's metadata.
int getLastSnapshotTerm();
0
7a8756fd1e991566d1e0a006b4f6e2c6
6e82f5a7912285e25f0e1d15951ac7b6
Checking whether removing rows several times at once is working.
with conn.cursor() as cur: cur.execute( """ create table acct10001.test_presto_delete as select id::int, 'eek'::text "data" from generate_series(1, 20) id; """ ) cur.execute("""select count(*) as ct from acct10001.test_presto_delete;""") initial_...
1
8349bed78afa1be6b6cceefaf4fa5d97
4d958481455eeaed07b5989e9e9bf8a9
Returns the function that is the interpolation of a 2-D field.
_f = scipy.interpolate.interp1d(x.magnitude, y.magnitude, kind="linear"); f = lambda _x: _f(_x.to(x.units).magnitude) * y.units; return f;
0
211f55297215e0f6c5a938a31da1a434
9f28eedb4994cd8f735f9040777da7e4
Reads whatever's in the FPGA outbox
class PipeQocaClient(AbstractQocaClient): def read(self): return self.qocaOut.readline()
1
53a54471c7e05504afa0b1339ab11fe4
004dbcd710e1d0c1d82fc61976136aaa
retorna a quadrupla representada por s
int i; double y, x; S *s1; y = s->y; x = s->x; s1 = s; for (i = 1; i < qtd; i++) { if ((s + i)->y < y) { y = (s + i)->y; x = (s + i)->x; s1 = (s + i); } if ((s + i)->y == y && (s + i)->x < x) { y = (s + i)->y; x = (s + i)->x; s1 = (s + i); } } x = s1...
0
747c17aa3c888218aecb4c3031c41a77
8f8312206ceacb141d61391fc34afd86
Ask the API to display the device property page. This page is implemented by the driver.
void CBinarizationDlg::OnBnClickedProperties() { m_Grabber.showVCDPropertyPage( GetSafeHwnd() ); }
1
4f047b4099e21417475453d6241fe749
5b0575c0b66649aab21dfc0848af2d81
Normalize the given font size based on the system DPI.
namespace Examples int PointsToNativeFontGraphicsUntit(int size) { return wxPlatformInfo::Get().GetOperatingSystemFamilyName() != "Macintosh" ? size : static_cast<float>(size) / wxScreenDC().GetPPI().GetHeight() * 96.0f; }
1
3022464ae07e0c6e7ecc996498f413d7
62d71d461dffbc323baf0b6947a48c62
DISPLAY NO COMMUNICATION ON THE INTERFACE
void LCD_displayCommunicationError(void) { GrContextForegroundSet(&sContext, ClrBlack); GrClearDisplay(&sContext); GrContextFontSet(&sContext, &g_sFontCmss12); GrStringDrawCentered(&sContext, "ERROR:", -1, 48, 14, 0); GrStringDrawCentered(&sContext, "BQ76PL536 device", -1, 48, 26, 0); GrStringDr...
1
301df4f82fe4e62614a66260b39ef740
1a34db917cd04f9a1f771d0e7a969eb3
Reads temperature from the circulator
{ UINT32 messageID; UINT8 dataBuffer[8]; UINT8 dataSize; messageID = LM_API_STATUS_TEMP | m_deviceNumber; sendMessage(messageID, NULL, 0); receiveMessage(&messageID, dataBuffer, &dataSize); if (dataSize == sizeof(INT16)) { return swap16(*((INT16*)dataBuffer)) / 256.0; } return 0.0; }
1
71b8013045882eb29e2077fe0af325a1
c3771c268979008f85ee5fb68e09f41f
Check whether issue collection is enabled
function bimber_is_hot_collection_enabled() { $url = bimber_get_hot_page_url(); return ! empty( $url ); }
0
2dfbd7f0bcf10cee6c4ab9a1fcec8834
02fa78acd6580a26a29c7cfe991a3b2c
处理四要素验证
if (this.type === "input") { this._verifyInput(); this._verifyEqual(); this._createPwdComplexNotion(); } else if (this.type === "checkbox") { this._verifyCheckBox(); } else if (this.type === "select") { this._verifySelect(); } ...
0
3a4e9a9cb7584b9c0b19ba69011d9c62
24e0035e86407c545be0361a0067c9eb
Superusers cannot delete committees.
class DelegateListPartialUpdateTestCase(tests.PartialUpdateAPITestCase): def test_superuser_fail(self): self.client.login(username='regular', password='user') self.params = [ {'id': self.delegate1.id, 'assignment': self.faulty_assignment.id}, {'id': self.delegate2.id, 'assignment...
0
a88e18b58757fa47499419355c453d3d
5158d2fb3cdc4e54016037bfd1b7b925
Zeigt einen modalen Bestätigungsdialog zum Löschen an.
export class StageEditComponent implements OnInit confirmDelete() { this.confirmModal.show(); }
1
8a2481bf75a12e916eede4b3780ea4e2
e9cbebc9260e524941819f98186dd8ba
Wait for the correct guessing game answer.
class SentenceStrengthenGame(SentenceLinkGame): def wait_check_correct_answer_page(self): locator = (By.ID, '{}correct'.format(self.id_type())) return self.wait.wait_check_element(locator)
1
baf83b9505b10b0c7ffd073cff0cb5f3
bca9af8368cd2a87f2d08c87114c813f
REST API for retrieving icloud caching data for iCloud widget
class commonApp_Handler: # Handler for root resource endpoint def helper_rest_fruid_pim_hdl(self, request): return web.json_response( rest_fruid_pim.get_fruid(), dumps=dumps_bytestr, status=200 )
0
4b1b806275955d92d1bc2d3ebd81c8e9
1d020e9f6caa0dfee770aea748482fa1
\brief Handles a "SEND ENCAPSULATED COMMAND" message.
dm_encapsulate_buffer (char *inbuf, size_t cmd_len, size_t inbuf_len, char *outbuf, size_t outbuf_len) { uint16_t crc; size_t escaped_len; if(inbuf == NULL || !cmd_len >= 1 || !inbuf_len >= cmd_len + 2 || outbuf == NULL...
1
a7ec80b4186abaddb1631ac9ebd22cfa
50afb348af8385f7fd939ba277b18db2
The handler for the 'tabCloseRequested' signal.
signal_index = self.tabOpenedSignals.currentIndex() if signal_index is None else signal_index if signal_index >= 0: self.save_signal_if_modified(signal_index) self.closeSignalAt(signal_index)
1
814ff6b103fecbd533d6015c33e0b52d
14285f44d8e8cae5553e7665abac3a5f
Runs the actions list asynchronously, one by one.
{ if (keepItems) { foreach (var action in _actions) await HandleAction(action).ConfigureAwait(false); } else { while (_actions.TryDequeue(out var fluentAction)) await HandleAction(...
1
e9fa5a943a2e70fd4705488369902dd2
5876289408f7f2ccf7af00b1afbc4919
Return items for newsticker
class Amasty_Shopby_Model_Catalog_Layer_Filter_New extends Mage_Catalog_Model_Layer_Filter_Abstract protected function _getItemsData() { $cache = Mage::helper('amshopby/layer_cache'); $cache->setStateKey($this->getLayer()->getStateKey()); $key = 'NEW'; $data = $cache->getFilterItems(...
1
fca19c257411590b7e86b3851016cbe1
60475c61a58b4519e4f6d51bff303582
获取一般续打展现数据
function FlyPetData:GetSpecialHuanHuaShowData(huanhua_id) local data_list = CommonStruct.SpecialHuanHuaTipInfo() if nil == huanhua_id then return data_list end local cfg = self:GetSingleHuanHuaSpecialCapAddList(huanhua_id) local huanhua_cfg = self:GetSpecialImageCfgInfoByImageId(huanhua_id) local image_name = h...
0
739731edb3f3a5807f24dd2c9b350510
d24557b33874fa7afd43d0f7ded09bef
Check if data is available and either call {@link #onDataAvailable()} immediately or schedule a notification.
public void notifyAvailable(final ReadHandler handler, final int size) { if (isClosed || isFinished()) { try { handler.onAllDataRead(); } catch (Exception ioe) { try { handler.onError(ioe); } finally { ...
1
41c68cf1036c0539a5465eebcceb6955
db1d6763b5b7dda5273bbe046087d289
gets the name of the file not including the file extension
class TextManager: def get_filename(self): _, fn_with_extension = os.path.split(self.path) return fn_with_extension.split(".")[0]
1
475a5b46afd4ad78e255c06b632d1810
e4eb1bcc47cb31e4950ab46e7569a950
Kontrola samotneho prikazu nesmi nic nasledovat
namespace cnvrt class Sintactic private bool Instructii() { if (Asignare()) { return true; } else if (If()) { return true; } else if (While()) { return true; ...
0
c447f5629905756a82a848f57da18deb
a78c31a37d834ccf9d71184ca3a743a5
Renames the resource package folder.
{ EnforceInitialized(); PackageUtility pu = new PackageUtility(connection); pu.RenameDirectory(packageId, directoryId, directoryName); }
1
6789d72c332fbc41596f4fa8751390af
9144985a0677ac7fef4edc8ab2c5c706
Helper method to change process execution properties
_set_argv(process_name) if platform.system() == 'Linux': _set_prctl_name(process_name) elif platform.system() in ('Darwin', 'FreeBSD', 'OpenBSD'): _set_proc_title(process_name)
1
0d14a33c329d08e52ae78f6261c24d17
dc7f3430c3fbc6663dd9254fd4c2a575
Функция ожидания элемента пока не появится
def wait_click(driver, by, value) -> WebElement: element = WebDriverWait(driver, 10, 1, ignored_exceptions=(TimeoutException)).until(expected_conditions.element_to_be_clickable((by, value))) return element
1
8e76020f21a0c2c7b7db45448a28f887
0bc2f81aba59e5641be3cb3cb4cd03a5
Signal that the participant has completed use of the resource
namespace Gorba.Common.Medi.Core.Resources void EndCheckinResource(IAsyncResult result);
1
84831e777607bcbfdb6c3c4d6e80653b
be61705cb28b6e72d32b1219d72ae0e0
Formats the accumulated tags and values into an InfluxDB line.
if isinstance(self.prefix, (str, unicode)): prefix = str(self.prefix).strip('.') metric = prefix + '.' + str(metric) tagset = [] tags = deepcopy(self.tags) if not isinstance(tags, dict): tags = {} if isinstance(additional_tags, dict): ...
1
f17cf7f793a117de7876841336362049
e2a5af572957847dcb48d32450e9292d
Gets a list of parts in the signal path that links two parts, if the path exists.
IntArrayList result = new IntArrayList(); IntArrayList thePath = leftRightPaths.get(pathId); int i = 0; while(!isAffiliatedTo(thePath.get(i), pathId, startPathID)) i++; i++; while(!isAffiliatedTo(thePath.get(i), pathId, endPathID)) { result.add(thePath.get(i))...
1
6e21616554a31ac187d29ee4846aa946
5beae87b6d2d93cb5f95011b20ee6a9d
获取销项税率(只取已生效的销项税)
{ OracleParameter op_itemId = new OracleParameter("ic_itemId", OracleDbType.Varchar2, 10); op_itemId.Direction = ParameterDirection.Input; op_itemId.Value = itemId; return Convert.ToDecimal(SqlAssist.ExecuteScalar("select pkg_business.fun_GetTaxRate(:itemId) from dual", new OracleParameter[] { op_itemId }...
1
2e7cc01bb0aca9c9796761306a497442
4080950819d422c09739cb10fd4244a3
增加常量注解
public class BaseApi private void addConstant() { if (accessFlag != null) { params.addBodyParameter("accessFlag", accessFlag); } params.addBodyParameter("appId", Constant.appId); params.addBodyParameter("appSecret", Constant.appSecret); params.addBodyParameter("operaS...
0
29683aaed5aceca4a1574f504239a462
cad15c09095ebad6918a3bbf4325575e
Launches the language host, which in turn fires up an RPC server implementing the LanguageRuntimeServer endpoint.
pub fn language_server(_args: Args) -> Result<ExitStatus, anyhow::Error> { mun_language_server::run_server().map_err(|e| anyhow::anyhow!("{}", e))?; Ok(ExitStatus::Success) }
1