query_id
string
corpus_id
string
query
string
code
string
label
int64
4cdae4b72e83a2fc997212c2cd1fa0c4
2fae8eef25ea20ac87fa6651d859c2ae
Defines a kernel that calculates the cross-correlation between two channels.
impl< T: core::cmp::PartialOrd<T> + core::fmt::Display + Copy + Clone + core::ops::Mul<T, Output = T> + core::ops::AddAssign<T> + crate::number::Zero, > Array<T> pub fn cross_correlate(&self, kernel: &Array<T>, edge_mode: KernelEdgeMode...
1
44ae89ca8d2d24bec3350291ec048fd3
14be7b03ec125cda855ae65140cd62c9
判断某列是否为NULL值,如果该列为null,则返回true 列序号,0起始
boolean isNullValue(int colIndex);
1
3b3db0c01e63dc469dbbfcf9c6f9b954
39e01280072ec4a6d3fb61fb8dc5d557
Returns month in digit format (integer).
class tx_ambpmservices_formathelper function getMonth() { if($date>0) return strftime('%m', $date); return ''; }
1
d82a23eff3bf5788e95dc432dd316779
c96e499d80bf65fa0294df3d3b3efe00
Returns the address of the multisig belonging to a specified set of owners via the hash of the owners
public class DefaultApi public APIV1POSTMultisigListResponse listMultisig(ListMultisigRequest listMultisigRequest) throws ApiException { ApiResponse<APIV1POSTMultisigListResponse> resp = listMultisigWithHttpInfo(listMultisigRequest); return resp.getData(); }
0
755ac488cb2f442c4ea616825fb6dada
d3eebcb6fb6c5ff89d6d658515877e32
设施历史告警级别统计
this.queryAlarmByFacilityCondition.filterConditions = []; this.queryAlarmByFacilityCondition.pageCondition.pageNum = IndexPageSizeEnum.pageSizeOne; this.queryAlarmByFacilityCondition.pageCondition.pageSize = IndexPageSizeEnum.pageSizeFive; if (this.facilityId) { if (this.indexType === IndexLayered...
0
b9df32896e3bb0521bccca0eb203b43e
ac271db96e349a02c0e1936cae929848
Get attributes of device with device Id = device_id
class ParticleCloud(object): def _get_device_info(self, device_id): params = {'access_token': self.access_token} r = self.particle_cloud_api(device_id).GET(params=params) self._check_error(r) return r.json()
1
e0b2b2b81c366d4ddc808eb14ae3f61f
c5ab5494c332d724e7faeb6a2597d980
Установить персонажу тип стражника
public function setEscort(EscortInterface $escort);
0
e720f08485102b392a0415676c133339
115edc470a966f76806ce8d3f91dd22b
Should a ringing sound be played in an outgoing connection or message
class OvhStructTelephonyConferenceStruct extends OvhWsdlClass public function getAnnounce_snd() { return $this->announce_snd; }
0
dbc35a6c21a526844aa312d331802456
95f7c866c7907ea848c4e57876604fc5
Borrar una valoracion de un Plan
{ $plan = Plan::where(['id' => $id]); $relaciones = $plan->with(['planesProyectos'])->get()->toArray()[0]; if (count($relaciones['planes_proyectos']) > 0) return response()->json([ 'message' => 'El plan tiene proyectos asignados y es posible que esten en seguimien...
0
64d9caf75e4bfb4a51fddc5eb6ec840d
afba9fb66b83dc05f7fbd1df24c22df1
Function: void reset() Description: Sets scene_names to list of names of all scenes in Unity Editor Build Settings.
namespace UnityGameFramework.Editor internal static class BuildSettings [MenuItem("Game Framework/Scenes in Build Settings/Default Scenes", false, 20)] public static void DefaultScenes() { HashSet<string> sceneNames = new HashSet<string>(); foreach (string sceneName in s_Defa...
0
9c728bdda554a9f8e312584d1a79a241
2588abbbf745402d5ff17e9e392b7a11
GPIO.pull_down_at(pin)
{ #if PICO_ON_DEVICE gpio_pull_up (pin); #else printf ("gpio_pull_up: pin=%d\n", pin); #endif }
0
db6ad2d58c061cb2242ea350ed8e8a84
9d2f99bd41de7538c75f3162ef76141f
initialize chess score cache this cache stores (board_hash, score) tuples as a dictionary
class BoardsCache(object): def __init__(self): self._last_read = {} self._last_retrieved = {}
0
35abf9a3dd456eb442d057fc6f695aba
5339fd4f27de83e173f882113f85f572
Testing load country list for coverage
return [ new Country(1, 'Tanzania', [{time: 'Office Hours', number: '+255 784 999 736'}, {time: 'After Hours', number: '+255 784 666 510'}, {time: 'Alternate After Hours', number: '+27 72 710 4045'}], 'B0gBaqoW4NP7eIdjUcFx'), new Country(2, 'Rwanda', [{time: 'Office Hours', number: '+250 280 301 000'}, ...
1
02cfc4d8dcb6f4aec58f08886af88134
97542cd6e0484fc4f5fa602cbf9bab4a
Ensure shell_commands with templates get rendered properly.
self.hass.states.set("sensor.test_state", "Works") mock_call.return_value = mock_process_creator(error=False) assert setup_component( self.hass, shell_command.DOMAIN, { shell_command.DOMAIN: { "test_service": ("ls /bin {{ st...
1
87855e216b044547aaa7a0e64c461c82
2174c806e9a99a0c4ceaff998eb0b2a0
Gets minecraft profile.
public final class SimpleClient public void openMinecraft() throws SecurityException, IOException { JSONObject prof = (JSONObject) this.response.get("selectedProfile"); this.openMinecraft(UUID.fromString((String) prof.get("id")), (String) prof.get("name")); }
1
5aeff6710c6e890a98264f715b667cb5
5121df9e7c53acbf26d43b16cf707f64
Calculo da área do triângulo
function areaTriangulo (base, altura){ return (base * altura)/2; }
1
258609d92a271fec6f5aee8cb4812c46
600ef4bf06349a9dba2a923f265c8f0a
Sends an email validation request. This method also ensure the connection exist and start or reconnect before sending the request.
ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { progressListener = new ProgressResponseBody.ProgressListener() { @Override public void up...
0
e80976aee0c0760fb12ba8e10464004f
e2b0c5d9e78434598225dcf86e6c56b7
DBSCANを用いたコミュニティを作る
std::vector<int> DBScan::run(double epsilon, int minPoints){ int numPoints = m_points.size(); std::vector<int> cluster(numPoints, 0); int clusterId = 0; for (int i = 0; i < numPoints; ++i) { if (cluster[i] == 0) { expandCluster(m_points, i, clusterId + 1, cluster, epsilon, minPoints...
1
727b49dc9efe49ff3302ea989f9a3359
d410a29a440ece57224717e5f3d67eb9
Build source path without trailing '/'.
const normalizedPath = sourcePath.replace(/\\/g, '/').replace(/\/+$/, ''); const idx = normalizedPath.indexOf('\/node_modules'); return (idx >= 0 ? normalizedPath.substring(0, idx) : normalizedPath).split('/'); }
1
cfa1fb60a7fd1a00b75be1594234f3bc
72aad59654e69582ebd2e96adbe9c283
notify to whoever is listening that there is a driver state change
{ #ifdef DYING_GASP_API #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)) #ifdef MSG_NETLINK_BRCM_CALLBACK_DSL_DRV kerSysSendtoMonitorTask(MSG_NETLINK_BRCM_CALLBACK_DSL_DRV,NULL,0); #else kerSysSendtoMonitorTask(MSG_NETLINK_BRCM_LINK_STATUS_CHANGED,NULL,0); #endif #else kerSysWakeupMonitorTask(); #endif #endif }
1
a21d8f895b7b210b4d94aa45cfa07983
a2ea20f6037842e0f68e84133d6e3515
Returns queued funding cycle for project.
class WC_Production extends WC_Data public function get_funding_end( $context = 'view' ) { return $this->get_meta( 'funding_end', true, $context ); }
0
03e52db1623b98fd77619d4c937ccb25
2cdacb9efac0986ed885fb693a386811
获取省市区县街道镇 返回两种格式:index式的、以省、市、区等分类的
namespace Himall.Service public class RegionService : ServiceBase, IRegionService public string GetAddress_Components(string city, string district, string street, out string newStreet) { Region myregion = null; var cityData = RegionSource.FirstOrDefault(p => p.Name == city.Trim() && ...
0
d2a3ce7033a037668289362c404e97c3
78bcb897c473942154860b2cb0e727d7
CGamarra 10-04-2008 Verifica si existen comercios relacionados con el perfil de carga
public class GestorRelacionadoBean implements Serializable public boolean getChkComercial() { return chkComercial; }
0
bc4f271b58db70d032631c1fca65f09f
4f5e2e8f363da7a9d348981d62b527d2
快速生成一个素大数
BigInteger bigInteger = new BigInteger("2"); bigInteger = bigInteger.pow(20_0000); System.out.println(bigInteger); }
0
bb5189c74a332634b2bd865468b6ab02
2c8e8a6373ec32e787c1c9a4ccf2605f
Provide the latest results to the scoreboard pane.
{ var scoreboardHTML = "<center>" + this.mScore + "</center>" scoreboardHTML = this.get_div_html( this.mDivId, scoreboardHTML ); document.getElementById( this.mDivId ).innerHTML = scoreboardHTML; }
1
ce3f18b9e970b21db6cc84668938efce
42364345dc56ec2cfc8110da4c0366a4
设置短信和联系人的popupwindow的内容主体 在设置的同时设置了点击监听事件
View view = View.inflate(activity, R.layout.send_info_add_friend, null); pw = new PopupWindow(view, screenWidth * 4 / 5, LayoutParams.WRAP_CONTENT); pw.setFocusable(true); ivClose = (ImageView) view.findViewById(R.id.popwin_send_add_friend_close); sendBt=(Button) view.findViewById(R.id.bt_send); editInfo=(E...
1
7688903c9cafbd0403febcc413012ae4
c81ead4d6d8d5627fae9bec2394c731f
Tell the Pi that it sent us a packet with a bad checksum.
class PropertyListPacketProtocol(Protocol): def badPListSend(self, plist): pass
0
c8dafe91c347cd9f8d5c473a5de211d5
bea116a5f1d9e91de514b817f5d40da7
Reward threshold, None for no threshold.
class MCCViews: def threshold(self) -> float: return self.__threshold
0
283d60f0df4d6897071cbb46cc177765
773b1032d2b69ec1f75cf62687699b92
Make sure that we can detect a missing command. This actually can't be done with _Open3_.
o, e, s = Open3.capture3(*args) raise "#{args[0]} failed with status #{s.exitstatus} (stderr: #{e})" unless s.success? o end
0
614aff95ed99f917114dd3950b1dad7c
57bb9c46cb429a1bced5438bfa8427fa
Set LED according to the default layer
static void parallelSM_react_LED__entry_Default(ParallelSM* handle) { parallelSM_enseq_LED_LED_On_default(handle); }
1
9b6eaf988a1632ba83351047d758c1b1
6ef06505fe1ab51cc3f5ff368bf3ceb5
Make sure watches filter properly by content type.
public class AtomConformanceTest extends BaseParserTestCase @Test public void testContentTypes() throws Exception { IRI uri = new IRI("http://www.snellspace.com/public/contentsummary.xml"); Document<Feed> doc = parse(uri); Feed feed = doc.getRoot(); int n = 1; for (Entry entr...
0
7a6ae692b5ad820852ac8c99f09ddaa9
d4d2f6c28e7712beeeae2e523d978d40
gets all DailyWorkouts of a Plan
class WorkoutPlanController extends Controller public function index() { return Response::json(WorkoutPlan::all()); }
0
a968c141b6a1fd6707186d4e1b92d8bb
457d78f58d408ef7e1e218daaa217f1d
Получить соответствие названий акций и их внутренних идентификаторов.
{ return $models->mapWithKeys(function ($item) { return [ $item['name_cmc'] => [ 'id' => $item['id'], 'symbol' => str_slug($item['symbol']) ] ]; }); }
1
d2d5779eb6854d37556c469faf403606
f278b2ed8667af927ec811f31e640721
3分钟没有上报就自动关闭
public class ZabbixEventListener extends Thread implements Observer @Override public void run(){ while(true){ for(int i = 0; i< threeMinsEvent.size();i++ ){ ZabbixEmptyResultEvent event = threeMinsEvent.get(i); if(System.currentTimeMillis()-event.getFireDate().get...
1
47ca6e9f573899116df3e7e2b0e63302
f72f54cdd0888532f5e9f6557e870328
Instruction: Decrement value of X register. Function: X - 1
void instruction_dex() { --index_register_x; check_negative(index_register_x); check_zero(index_register_x); }
1
4f69857d7702d7d02e6a0daaeede400c
07e3f811298ce75407c04c340d3920e3
functia aceasta extrage un element din coada
{ TCoada *caux = (TCoada *)c; TLG aux = caux->ic; if(caux->ic == NULL) { caux->sc = NULL; return 0; } ((TCoada *)c)->ic = ((TCoada *)c)->ic->urm; memcpy(al,aux->info, caux->dime); free(aux->info); free(aux); if(caux->ic == NULL) caux->sc = NULL; return 1; }
1
055c2d9e9298c6f7fda657a0a9f3421a
76c2b9f7a439c86199608f1070ad9e4f
Put a period in the right place because the MIMIC-III data files exclude them. Generally, procedure ICD codes have dots after the first two digits, while diagnosis ICD codes have dots after the first three digits. Adopted from: https://github.com/jamesmullenbach/caml-mimic
class DiagnosisItemBase(Ancillary): def get_code_for_hl7(self): if not self.code: return "" return self.code.replace(".", "").upper()
0
80c186df0203a38743265644f43a90f9
0ab83b447f84d5e6a9bbe3b398ea42c2
gets number of holes added to domains of variables in presolving method of constraint handler
int SCIPpresolGetNAddConss( SCIP_PRESOL* presol ) { assert(presol != NULL); return presol->naddconss; }
0
b0616f7d1906c408d22956a362fd3479
2fac663a1928c7eac41cf461bdd30867
仿JQuery$选择器
function $(selector) { var el, _el = []; if (typeof selector == 'string') { var html = selector.trim(); if (html[0] === '#') { el = document.getElementById(html.split('#')[1]); } else if (html[0] === '.') { _el = document.getElementsByClassName(html.split('.')[1]); if (_el.length > 1) { ...
1
5dd51242cbb415b7d95a32a5129bfa2b
a9be6b28308fd7655765a290576d178c
Find Employee References
function index(req, res) { Reference.findAll({ where: { con_id: req.user.id } }) .then(refereneces => res.json(refereneces)) .catch(err => handleError(res, 500, err)); }
1
a2a7bc65eda6cc888390e9c694fc7d99
776b65aa4d7e31ce9b3313b68c7ed426
Check if <paramref name="c"/> is a directory- and/or volume-separator character.
namespace CoreExtensions public static class CharExtensions public static Boolean IsSeparator(this Char c) { return Char.IsSeparator(c); }
0
c83087839113005abdb24f66684fde6e
16e1d762a20fae01d8ae94b6fb8f9132
Get All MessagePin of Room
public List<AMessage> getMessages(int roomId);
0
2fed41f832a9a848c8e4659d535a2ccc
47e13baa9e5496115de48478c62e61b6
Returns the comment describing the purpose of this cookie, or <code>null</code> if the cookie has no comment.
namespace Org.Apache.Http.Impl.Cookie [Dot42.DexImport("org/apache/http/impl/cookie/BasicClientCookie", AccessFlags = 33)] public partial class BasicClientCookie : global::Org.Apache.Http.Cookie.ISetCookie, global::Org.Apache.Http.Cookie.IClientCookie, global::Java.Lang.ICloneable /* scope: __dot42__ */ [Dot42.Dex...
0
cdddb175d86afbc26ce9c33a87e8b594
ca0d35ea39969e5d24a5aec674296bf6
Ensure all tickets are gotten
@HiltViewModel class TicketViewModel @Inject constructor( private val repository: ITicketRepository ): ViewModel() fun getTickets() { viewModelScope.launch(Dispatchers.Main) { try { _ticketsStatus.value = Result.Loading() var result : Result<List<TicketObject>> ...
1
4ee761475646f400ac0d9b8f31d840c9
3f091028cbd935f5d7ac40354da2c1ed
The function allocates memory and creates a list with a dummy node. The list keeps track of the number of elements it has.
doubly_linked_list_t* dll_create(unsigned int data_size) { doubly_linked_list_t *list; list = malloc(sizeof(doubly_linked_list_t)); list->head = NULL; list->data_size = data_size; list->size = 0; return list; }
0
115807a3a61bb930464c7b456f09627c
bddb097434e7140afb5366b45c5cb0a4
Retorna Total de Cancelamentos ISSQN.
public class TotaisISSQN public BigDecimal getTotalSubstituicaoTributariaISSQN() throws ACBrECFException { return Numeros.parseToBig(comandoECF("TotalSubstituicaoTributariaISSQN")); }
0
32fdc48337a671ce39b97c3106ba4beb
3a17a35f1b8eb82bc45fc4e0d2b8b8e4
Deletes the PLZ record.
{ StringBuilder sql = new StringBuilder(); using (SqlCommand cmd = new SqlCommand()) { sql.AppendLine(" DELETE FROM Postal_Data WHERE (Data_ID = @Data_ID);"); cmd.CommandText = sql.ToString(); cmd.Parameters.AddWithValue("Data_I...
1
c7f5973c9ae596df5bdc1f13bf6a4b1f
244f1ec0df060a46e828c23cca619950
加载mol文件
function playWithThisMolFile(obj) { obj.select(); document.execCommand("Copy"); Sketcher.loadMOL(obj.textContent); }
1
5f85ac85cbae8224eb02661dec28b1b8
a6f763614d1c48f846f4e01811f6b071
FUN: __str__ ==============================
class LightCurve: def __str__(self): result='\n' result+='Light Curve of matchID='+str(self.matchID)+'\n' result+='Filter Type: '+self.filter_type+'\n' result+='Number of data: '+str(self.num_in_lc)+'\n' return result
1
57018bb583841a680ef20c7ad800c273
0e0c5b057b292ea849d0bb1ce3c7539e
ratio of points that touch other points, including diagonal orthogonal neighbors weighted double
valid = 0 count = 0 for i in range(4): pt1 = rect[i] pt2 = rect[(i+1)%4] dx = pt1[0] - pt2[0] dy = pt1[1] - pt2[1] if abs(dx) > abs(dy): count += abs(dx) xrange = range(pt1[0], pt2[0], 1 if dx < 0 else -1...
1
58e4a6681cef54592ae45ebd0ae7e294
6f8d75d80f979c0152a2b0c918e0e936
カスタムメニューにアカウントを追加する
public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.account, menu); return true; }
1
5bbfb8a4617bdccaa2a8edf1772b77f8
58f54a83401e8f6fcd786cf87bd8bdb9
Create the netinput: return one value calculated from the values received from the connections
neuron_outputs = {} for node in net.topological_sort(): activn = [net.get_wires(i, node)[0].get_weight()*node_value(i, input_values, neuron_outputs)\ for i in net.get_incoming_neighbors(node)] neuron_outputs[node] = threshold_fn(sum(activn)) return (neuron_outputs[net.get_o...
1
aa449da5d640e9c487079278c1669318
744ec312f4f057eb534c72961311e8e4
Opens already existing XML configuration file.
if( $xmlfile = $this->getConfigFile() ){ $reader = new Loco_config_BundleReader($this); $reader->loadXml( $xmlfile ); $this->saved = 'file'; return true; } return false; }
1
821f8eb4e944f137543d2821d2898b4f
551763d5c02dbb70d35c69732d983017
解码离开房间消息
{ printf("clientfd:%d LeaveRoomRq\n", clientfd); STRU_LEAVEROOM_RQ *rq=(STRU_LEAVEROOM_RQ*)szbuf; if(m_mapIDToUserInfo.find(rq->m_nUserId)==m_mapIDToUserInfo.end())return ; UserInfo*leaver=m_mapIDToUserInfo[rq->m_nUserId]; if(m_mapRoomIDToUserInfoList.find(rq->m_RoomId)==m_mapRoomIDToUserInfoList.en...
1
38f1880c6ad7802f89ea0042bdd5352a
6d4f8b9f9d601e946158120aa60e2daa
Instantiate a +reader+ object based on the <tt>:reader</tt> and <tt>:format</tt> values of +options+.
class NumFmt def initialize(options = {}) @numFmtId = 0 @formatCode = "" parse_options options end
0
b7b3f7c79786cca0da188b427e260b54
f5b6f2212498d353824c3483b56ba712
Retrieve the list of attachments within a transaction. See also [the API documentation](https://api-doc.qonto.com/docs/business-api/reference/openapi_v2.yml/paths/~1v2~1transactions~1%7Btransaction_id%7D~1attachments/get)
class TransactionsApi def get_transactions(opts = {}) data, _status_code, _headers = get_transactions_with_http_info(opts) data end
0
1e36a5098e4e33acaf505dccc55b468c
8d034bdc0a0e29365ff72993b593c6b9
Replaces the element at row 3 and column 1 by +value+.
void L3(char mat[][12],int j,int k){ mat[j+1][k]='#'; mat[j+1][k+1]='#'; mat[j+1][k+2]='#'; mat[j][k+2]='#'; return; }
0
f04f80cd96155ce4f4e1ec01d616a721
5f090f03f761a4c2c40370480513b57c
Funzione per l'inserimento di un solo carattere da riga di comando
{ if (postfixExp == '\0') strncpy(postfixExp, c, 1); else strncat(postfixExp, c, 1); }
0
0bf10fe7887061966eb21c35448df757
807f7e3c4d0b4b42bdfcbd733bd63784
File objects cannot be picled. As http arguments are often pickled (for form postback), make sure we don't get an error.
class FilePath(object): def __getstate__(self): d = self.__dict__.copy() if 'statinfo' in d: del d['statinfo'] return d
1
c6717f70050d0854507d2f0ff798572f
7f61448ad6da3ef0f9cb03f40c5be655
Solution Provided
cases like (1)
0
6a8128e1fb37c67ab2e345eb6ae3cea6
16b423050538d8bedf74ab718509aa7d
Turn Off Color Blind assistance
void BOOTER::BACKGROUND() { cout << "\33[?25l"; }
0
d3c491c4426fad656745d8b8aca8483f
a870a15c9440ca4ea790bfc71cb9001d
Erases a single node from the treap having its key matches the given key if exists.
node = self.search(key) if not node is None: self.nodes_count -= 1 if node.isLeaf(): self._removeLeaf(node) elif (bool(node.left)) ^ (bool(node.right)): self._removeBranch(node) else: assert (node.left) and...
1
340f23158f23c188de5b93ebf1790a75
7822efc0c3b337c552948c7599184e4c
Create a new CMYK color
namespace ImageMagick IMagickColor<TQuantumType> Create(TQuantumType cyan, TQuantumType magenta, TQuantumType yellow, TQuantumType black, TQuantumType alpha);
1
b77a48173d7e21bd6570e0cded3539b1
dadf493a52aaa796ca73fc471e2c54c2
wrapper on strconv.Atoi, but fatal on error
s := strconv.Itoa(10) t.Log("str " + s) if i, err := strconv.Atoi("10"); err == nil { t.Log(i) } }
0
5c3024ee3b0243d899476fe17ec1e771
5585c8991dacb450fba716f077f23a63
Methode qui affiche le score final.
{ g.drawImage(scoreFond, 0, 0, this); paintBillesSorties(g); paintCoupRestant(g); getNomJ(); g.drawImage(tablePan.cont.imgHelp.getImage(), 5, 5, this); }
0
8cd1a06eab35f620c0bea68ec086dd50
7d49a5e0c51640f58d3059a2b42fece1
This adds a property descriptor for the Datatype IRI feature. <!-- begin-user-doc --> <!-- end-user-doc -->
itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_TechreportType_doi_feature"), getString("_UI_PropertyDescriptor_desc...
0
e0ce5ab8a4b5639efdb5786cf9d6ffd0
637408a8bc89b20eaa6a3e1a4a673b82
sets qstacked widget to login info page
class TravelLoginWindow(QDialog, Ui_Login_Window): def into_sign_in(self): self.stackedWidget.setCurrentIndex(1)
1
841b2d8472aee759c7a7d52ad4ba8a62
b6117f5bbc940cd639e5a49093a36a65
Sets the backoff_rule_id
class BucketLifecycleConfigurationV2Rule(dict): def id(self) -> str: return pulumi.get(self, "id")
0
ddea43baa0583c102db46751a624ad29
fe0dc709d43583557763af88c5ad1145
Add a comment to the session result. The comment will be added with the fix prefix "/// "
NxGen::runComment ( const std::string &a_comment ) { try { writeString( "/entry/", "notes", a_comment ); } catch( TraceException &e ) { RETHROW_TRACE( e, "runComment() failed." ) } }
0
57141ebfada486da1b12ac48dbe4fa83
4de761bd11067029ab7a6b3530baa7de
Searches the class (and optionally its superclasses) for the methods with the signature matching the signature of the specified method. If the superclasses are not searched, the method returns multiple results only in case of a syntax error (duplicate method).
if (name == null) { return null; } return findMethods(klass.getMethods(), name); }
0
7f50dc1320720adfccefa8afbed4a486
8fab668867afce28a975f7137aa7e24a
Additional project IDs that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.
class ServicePerimetersServicePerimeterStatusVpcAccessibleServices(dict): def allowed_services(self) -> Optional[List[str]]: return pulumi.get(self, "allowed_services")
0
6d45628fecbe49d65978ba163c532114
e29959a917e91ddc6a155712e7e348af
生成一个逻辑异常类
{ $explode = explode('\\',$className); $exceptionName = last($explode); $handleExceptionName = 'App\Exceptions\\'.$exceptionName; if (class_exists($handleExceptionName)){ $this->handleException = new $handleExceptionName(); } }
0
9e7c68b0fdbe46ecd76279080e900bd7
028692fe63f818d6eb1bee804dde9d75
Calculates the average depth from a point cloud buffer.
double computeCloudResolution (const pcl::PointCloud<PointType>::ConstPtr &cloud) { double res = 0.0; int n_points = 0; int nres; std::vector<int> indices (2); std::vector<float> sqr_distances (2); pcl::search::KdTree<PointType> tree; tree.setInputCloud (cloud); for (size_t i = 0; i < cloud->size (); ++...
0
f7459e81d37a273d72c72d4b857dc4ad
964fef2b4fb490faaf4136ceced8b8b0
获取当前登录用户的所有留言
{ string sql = "if (object_id('tb_Message_" + userid + "') is not null) begin exec('select * from tb_Message_" + userid + " order by Time') end"; SqlDataReader reader = SqlHelper.GetReader(sql); if (!reader.HasRows) { return null; } ...
1
69ea76b6e09fb8c27163a00938c8b874
9527855dcfe709cee85b04280a8fcd9e
Gets the value of the shippingAddress property. possible object is {@link ShippingAddressType }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Quote", propOrder = { "taxRate", "taxExemptNumber", "taxExempt", "taxAmount", "shippingStreetAddress", "status", "shipToContactId", "shipToAddressId", "serviceAccountId", "revision", "requestedShipDate", "quoteType", ...
0
d994dc68fae4b936345986237f168b14
3fcb94a2cf8a508584fa6371361dddb9
Moves turn signal back and stops sound
void ststop() { unsigned char idx; lock = 1; memset(&music, 0, sizeof(music)); for (idx=0; idx<4; idx++) { musicout.vol[idx]=0x9f + (idx*0x20); musicout.tone[idx] = 1; } musicmask = 0x00; lock = 0; }
0
5f76687b9b74b392242edd7afbcbebdc
6486025b99ac94fb9a848c0a3f46347b
将文档保存为字符串
public ActionResult SaveToWord(string str, string fileName) { System.IO.StringWriter sw = new System.IO.StringWriter(); sw.Write(str); Response.Charset = "GB2312"; Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename...
0
bc7fc6fb1d1c4380ff1b6582e4b9446b
b89417c315b8ea3ccb7df50ebefa2f29
Test case for getDvrRESTConverterStore Retrieves the information about a store/converter associated with the application instance.
class DriversApiTest extends \PHPUnit_Framework_TestCase public function testDriversGetStoresForDriver() { }
0
cf25855d978a8f31ae4f1f6e5893a7b0
ff1c4d254b4436876a58539e87ee0899
Returns true if the inventory is enabled or false if inventory is disabled.
public class InventoryHomeWrapper implements InventoryHome, ModelWrapper<InventoryHome> @Override public boolean isActive() { return _inventoryHome.isActive(); }
1
69793dfebbafe4363cea1a9185b33b7c
161f3a15c5c55bca7406c4803ddefcb3
===================================================== updatecond
func UpdateCondition(c *gamedata.Condition, p1, p2 int64, p3, p4 string) { f, ok := condition_updater_map[c.Ctyp] if !ok { logs.Error("condition typ %d unknown updater", c.Ctyp) return } f(c, p1, p2, p3, p4) return }
1
7d2f571983a896196c0225357ccb7bd5
53017f732cf3a8e5bf112b0d4f5eaf88
小组模糊查询
class UserController extends CommonController public function hi_qx(){ if(!empty($_GET['search'])){ $map['gname'] = array('like',"%{$_GET['search']}%"); } $group = D('group'); $g_user = D('gluser'); $count = $group->where($map)->count(); $Page = new \Think\Pag...
1
3cf2582c07be9e39d6e8dd36d37e8e0d
0b4369f12d1134586658de0329cd74d0
Проверка эквивалентиности среза и разворота списка
public void rightRightCase(){ List<Integer> al = new ArrayList<>(); List<Integer> fl = new FastList<>(); for(int i = 0; i < 3; i++){ al.add(i); fl.add(i); } Iterator<Integer> alItr = al.iterator(); Iterator<Integer> flItr = fl.iterator(); ...
0
cb28481b18b94523df5fd08ba3e0166a
f6ec0a674e2a00d1feb0521b093c8a6f
验证拼音
class Pinyin: def is_pinyin(self, text): self.pinyin.sort(key=lambda py: len(py), reverse=True) pinyin = "|".join(self.pinyin) r = regex.compile(r"(%s)" % pinyin) result = r.sub(text, "") return result == ""
1
c2f0baffc89a210b6fe5deacd4c4b44b
fec223b1821dd9d112260f6ce7daa75e
This tests if the function that reads in a ranking matrix file works as expected.
def test_read_file(read_file_ex): test_df = pypackage_test.read_file(read_file_ex) test_columns= list(test_df.columns) assert 'libs' in test_columns assert test_df.loc[0][1]==1
1
b78c39a3769ef3dbd1a4a49006e5d0c6
af784d9aa0f551d9fc8583101ec7dd10
Metodo che genera l'intestazione del file PDF.
$aligns = $this->getAligns(); $widths = $this->getWidths(); $this->setFont('Arial', '', '7'); $this->setAligns(array('L')); $this->setWidths(array(0)); $this->setBorders(array('B')); $text = 'Relatório tipo: '.$this->pdfType.' | Gerado ...
1
00a4a566242e29375a157fc26aa025a2
bd87da56b19328bad87cd2423a9875d2
根据orderIds取到所有记录号,并判断合并类型是否一致
class OrderController extends Controller public function setCombineOrder(Request $request) { $orderArray = explode(",", $request->order_id_string); $orderListDB = Order::selectRaw('address_id, (case delay_delivery.send_time when delay_delivery.send_time then delay_delivery.send_time else deliverytim...
1
24a37918f1d9d9e77a9c5bbf7601fb46
767d236ec26299b47abefc569ccbe610
gets all racks' items then convert it into a single-big-array of items
function getItemsAll(items) { return items.reduce((allItems, item) => { if (item.items && item.items.length) { return allItems.concat([item], getItemsAll(item.items)) } else { return allItems.concat([item]) } }, []) }
1
5cd53a7336d76926c8b5bbfcea9f2515
e4fdd86a6852ebb22b90f875a91666eb
放電モードかどうか取得
public class Electroscope : MonoBehaviour, IElectricComponent public bool GetHasProw() { return hasAmperage; }
0
18adb3e3564000d5ef007e48c6783f2c
07b812aa29eba77ab495a8965da24cda
Setter method for project file data byte array representation.
public class FileControl extends BaseInputControl implements InputControl public final void setFile(byte[] bytes) { this.bytes = bytes; }
1
9c3f0881afa1f48f95c339afec12b3a9
19960c00c00f3cd3f6db9655bf04654c
Delete a section and all its descendants items.
throws ITunesUException { ITunesUDocument doc = ITunesUDocument.buildDeleteSection(sectionHandle); return this.send(null, doc); }
1
9ad0bf9c03e595902572fe8912ad62f5
7b1fc738b015b8fd186b50c53aae0420
获得xml文件中所有的节点的name属性的集合并且存储在arrname
$.each($(".content ul "),function(i,val){ var classid=val.id; $.each($(".content ul").eq(i).children(),function(i,val){ var id=val.id; var addr=val.getAttribute("addr"); var tag=val.getAttribute("tag"); var name=val.getAttribute("name"); var index=(i+1); var oclass=class...
0
d1d2945f8a2bf220efc5ffde52cc67f4
95f2bc0fe743f669bd383a88004fb93e
PreOrder traversal method for filling a provided list with node data.
namespace FizzBuzzTree public class BinaryStringTree public void PreOrderTraversal(StringNode current, List<string> list) { list.Add(current.Value); if (current.Left != null) PreOrderTraversal(current.Left, list); if (current.Right != null) ...
1
c7874f2205c196501b9dfb26cbe2bf57
96d9fe60c78dac38fadf84db5f3aa41e
Decrements the count of the latch, releasing all waiting threads if the count reaches zero. If the current count is greater than zero then it is decremented. If the new count is zero then all waiting threads are re-enabled for thread scheduling purposes. If the current count equals zero then nothing happens.
interface CountDownLatch suspend fun countDown()
1
88e8f464af6282eec08bafda9d0ddf15
361b0c8688776fa3b2936cd30ba64bed
通过id和标记词种类查找
public ProFlag findByTagId(Long id);
0
5d20847762d3553de1a28538843506f5
7d4b572850dd8786836384fbc26ea6af
GET api/ageGroups
{ List<ref_AgeGroup> AgeGroups = db.ref_AgeGroup.ToList(); ViewBag.AgeGroups = new SelectList(AgeGroups, "AgeGroupID", "AgeGroup"); return View(); }
0
3679f67620cb785d32d9eace9514cdd8
a359cccd5a2dba06200139bb8ccb664d
Reset the device ID after connection with Controller.
request_type = (HOST_TO_DEVICE | VENDOR_TYPE | DEVICE_RECIPIENT) request = self.RESET wValue = 0 wIndex = 0 result = self.udev.controlWrite(request_type, request, wValue, wIndex, [0x0], timeout=100) return result
1
ac564a76d5ff065ffa0cfed8c931f4b5
197a490b4d2ae55f9ce005d6694405bf
Update UI details when remote peer left the room
public class LiveAnchorPresenter extends LiveBasePresenter @Override public void onUserLeft(RCRTCRemoteUser rcrtcRemoteUser) { try { getView().onUserLeft(rcrtcRemoteUser); } catch (IllegalStateException e) { e.printStackTrace(); } }
1
1bce9cfe51d92648fc5ac0470d36079a
347320ff40003446490c714fc2895dd6
根据Fid查询农夫信息表
Farmer findBySMFarmer(String smFarmer);
0
dc09227c95e8e163d7a1e2e39e28ab2f
60cd622ab1c4daa9e7a95a486cb0b4dd
gör om den krypterade till "läsningsbar"
public class CryptoManager public static String decryptBellaso(String encryptedText, String bellasoStr) { if(!stringInBounds(encryptedText)) return "THIS TEXT DOES NOT WORK"; String newText = ""; int[] key = new int[bellasoStr.length()]; for(int i = 0; i < bellasoStr.length(); i++) key[i] = bellasoStr.cha...
1
4b2d11330aa4ab59a32ed5fcda66ff89
874edd87d14b6ce36a5ef80ee3202825
test floats for approximate equality
EXPECT_FALSE(FloatEq(2.f, 2.1f, 0.00005f)); EXPECT_FALSE(FloatEq(5.f, 2.1f, 0.00005f)); EXPECT_FALSE(FloatEq(2.0001f, 2.0000f, 0.00005f)); EXPECT_TRUE(FloatEq(2.0001f, 2.0001f, 0.00005f)); EXPECT_TRUE(FloatEq(2.00000001f, 2.00000000f, 0.00005f)); EXPECT_TRUE(FloatEq(2.000...
1