query_id
string
corpus_id
string
query
string
code
string
label
int64
a05cef1c9c34e8903569a5691e622829
f1a5d4308f3a965e6195efa0af7db3b7
Gets the "gsModel" attribute
class Attribute getModel () { return this.model; }
0
51cac0eb4832f9771a65992c9ed943ae
4d562ae2d12fad00c004e812a2f2f522
FTP下载单个文件测试
public class ApFileTest extends UnitTest{ @Test public void testFtpUpload(){ Map<String, Object> commReq = new HashMap<String, Object>(); commReq.put("busi_org_id", "0033"); newCommReq(commReq); String dirCode = "AP_FOR_TEST_FTP"; String localpath = "K:/download/bb.txt"; String remotefile = "ICORESIBSCFMAI...
0
e27fc23512b2ad591aab7fb277f2d40c
9fa478280eca89339aa4d94753acda1b
ustawienie odpowiednich skladowych wektora elementami tablicy
Vector::Vector(double x,double y,double z,double vx,double vy,double vz) { m=6; elem=new double[m]; elem[0]=x; elem[1]=y; elem[2]=z; elem[3]=vx; elem[4]=vy; elem[5]=vz; }
1
59ff74bab005c8e586a451a0d377bf25
dab76b033c1f3c2433d5ff9b101256c1
苹果支付查询
{ if (strlen( $this->receipt ) < 10) { $this->error = '凭证数据长度太短,请确定数据正确!'; return false; } $return = $this->postData( $this->receipt,$this->password,$sandbox ? $this->testUrl : $this->url ); if ($return) { $this->returnData = json_decode( $return,t...
1
f98b1147e3b55b6650ab0b6d6d2c8a74
8777bc50a3e103d976be01a4559341b2
Set the lookup url according to a given Fogbugz case_id.
try: uri = "/".join([INCIDENTS_URI, str(case_id)]) if child_uri: uri = "/".join([uri, child_uri]) response = self.rest_client.get(uri=uri) return response except Exception as err: raise IntegrationError from err
1
b2402df83f3841c1c2ab1a129916359b
2ca50c754bc56fe73bb9f70f8423622b
Convert Object to UnionType <br /> 将对象转换为联合类型
public static partial class UnionTypeConv [MethodImpl(MethodImplOptions.AggressiveInlining)] public static UnionType<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> ToUnionType<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(T9 input) => UnionType.Of<T0, T1, T2, T3, T4, T5,...
1
2234062c8a16a65c96c379e65730ed0b
aa798d75c77d13a2c43a9f88544b52cd
Handles the changing of visibility of all stat labels.
namespace DaggerfallWorkshop.Game.UserInterface public class StatsRollout : Panel void UpdateStatLabels() { for (int i = 0; i < DaggerfallStats.Count; i++) { statLabels[i].Text = workingStats.GetPermanentStatValue(i).ToString(); if (workingStats.GetPer...
0
765bc79bc367274a3cffc592dfa70787
257fcf7fa7318698aaba23737cb3188e
Evicts all members of the "countrys" cache.
class Country(CachingModel): def clear(): countries_to_clear = Country.objects.exclude(id=1) from mysite.personnel.models import Employee emps_to_clear = Employee.objects.filter(country__in=countries_to_clear) for emp in emps_to_clear: emp.delete() ...
0
b48c55b34bd99d03aad529927d48410d
7e23f8fba8e833b8f07c6d12cf454b85
Very basic initializations
void A_init() { base = nextSeqNo = 1; windowSize = 10; bufferIndex = -1; timeoutA = 15.0; layer5A = layer3A = 0; }
1
3d9c1821b0b5c8303ed19bcbf7a3d3eb
dbbbb2c7b8d0a3db3a3d49e50ea1d8fa
! Get the dimensions of the final FBO. Regular viewport rendering renders directly to this FBO but a fisheye renders first a cubemap and then to the final FBO. Post effects are rendered using these dimensions.
namespace rendsys glm::ivec2 Window::FramebufferSize( ) { return framebufferSize; }
1
329e5db17ba426085bece1673cc26471
d9b6310f75fdeb90fed73588b0183225
matches all goodie types that should be picked up along the way
int r1, r2, r3 = 0; r1 = Random.Range(0, PickupOptions.Length); r2 = Random.Range(0, PickupOptions.Length); r3 = Random.Range(0, PickupOptions.Length); var decider = Random.Range(1, 4); return decider == 1 ? PickupOptions[r1] : decider == 2 ? PickupOptions[r2] : PickupOpt...
0
b6cd8b154a0b37b2d96b1b5154e6e227
8f363edfe84b0ef764c0fc28909787c0
重新报备
namespace RenewEDSenderM.CommManager class Client private static void Rereport() { while(true) { if (true) { XmlProcessManager.XMLWrite xmlwrite = new XmlProcessManager.XMLWrite(); xmlwrite.Input(xmlStr,project_i...
1
726bca491b8a111a1b44c7064ab8ac6f
2c52a43198d19867012d82ba0e268d6e
Make a hitbox for some object.
{ if (hitbox.Count > 0) { hitbox.Clear(); } hitbox.Add(1, new[] { x, y }); hitbox.Add(2, new[] { x + width, y }); hitbox.Add(3, new[] { x, y + height }); hitbox.Add(4, new[] { x + width, y + height }); }
1
83d8d9fcce569440868ade9edc96d4b4
9b32e73a1d0b389238817a7477012a93
Notifies the mode that it is now the topmost mode on the mode queue <para/> This method should not be invoked directly, it is called by the GameController run loop
public abstract void topOn(final LObject object);
1
1ed95ec0561c27bc272d9b30c79089c0
b2bdb99610df782bf5fd5e794ae4b3e8
Sets the playback rate for the current media session.
void setPlaybackRate(Double playbackRate);
1
3a75744f6c9fd196ca253367b0674467
a4db673b50b9946d4ddfeec4ab37ca2b
Same but for the case of both bounds being AD variables
for i in range(self.num_layers): if self._bounds_concrete[i] is None: continue elif self.forced_input_bounds[i] is None: self.forced_input_bounds[i] = self._bounds_concrete[i] else: better_lower = self.forced_input_bounds[i][:, ...
0
e0e40909fdb65b011a35a75e157ca9fc
b95489c62aff75a50933a2e6f26b0ff8
在就绪队列中寻找下一个要运行的进程并返回
{ struct pqueue *pq = returnQueue(); if (pq->numproc == 0) { return 0; } ll deb; for (ll i = 0; i < pq->end; ++i) { if (pq->queue[i]->state == RUNNABLE) { struct proc *p = pq->queue[i]; if (!(i==0)) { ++deb; struct proc *temp = pq->queue[0]; pq->queue[...
1
6fbea76a107452f43eb1c93ad648e19c
0acf0f192937672fba093546b07f828a
Funcion para almacenar en tabla muchos-a-muchos en la base de datos
class DbConnector(): def insert_many_to_many(self, table_value_dict): pass
1
6f2293142b0eda6d264f3e56f49d38cb
bd05939d9aaa26971532cd171872be35
Открываем фрагмент с историей бронирования
val adapter = SectionsPageAdapter(fragmentManager) adapter.addFragment(BookingFragment(), "Новая бронь") adapter.addFragment(MyBookingsFragment(), "Мои бронирования") viewPager.adapter = adapter }
0
83eaee8c52ba220a47c88500078f1ad5
99772add64a50825644bae047a4d3318
\brief Get number of value entries from a CTL element id/info
namespace cgt EXPORT int elGetPropCount(id_element e) { PRINT_FUNC_INFO printArgs({e}); int res = m_cgt->elGetPropCount(e); qDebug() << RESULT_STR << res; return res; }
1
7cfce705b081df0483e5184408a21f24
51e71cfd7f13224882ac78e3b17cbdd3
génère une chaine de caractère décrivant l'objet BusinessUnit sous la forme "Client: NOM_CLIENT - PHONE_CLIENT Situé à: NOM_LOCALITE CODEPOSTAL_LOCALITE NUMERO_RUE NOM RUE
namespace eInterActifs.BLL.BO public class CollaborateurBO : BOBase<CollaborateurBO, Collaborateur, CollaborateurSearchCriteria, ICollaborateurDAO> public override string ToString() { return String.Format("{0}: oid: {1} BeautifulName {2}", this.GetType().Name, this.Value.oid, this.BeautifulName)...
0
f0340c02db9b5d58ac2ebb08d97775e6
2cf49fab23d3675e6f9d4095283f7db9
True if the given objects have the same parameter values; false otherwise.
if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Parameter other = (Parameter) obj; if (!m_name.eq...
1
53c41bf5f7ed4339e245ce1fd6d3998d
2a7598bb8f3568f0cd77180ff2920a9b
*********************************************分页加载商品数据,并动态创建分页条
var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (xhr.readyState == 4) { var res = xhr.responseText; res=JSON.parse(res); console.log(res); var product_count=document.getElementById("product_count"); product_count.innerHTML=res.totalRec...
1
d6eba29b4ff9f1035a39bfec90eadfa2
9e3074431d680117baaa248646fd9dad
This is an address family-agnostic version of inet_ntop.
static char *inet_ntop6 (const unsigned char *src, char *dst, size_t size) { char tmp[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; char *tp; struct { long base; long len; } best, cur; unsigned long words[NS_IN6ADDRSZ / NS_INT16SZ]; int i; memset(words, '\0', sizeof(words)); for(i = 0; i < NS_IN...
0
209664d0089685643a280dd1ed35a94d
9c8778213c50c802f725e5a16a68978d
returns index of empty block based on file allocation table data
printf("freeBlk : \n"); int i; for(i=2;i<blks;i++){ if(fFat[i].fb==0) return i; } return 0; }
1
d2cc6a7d19f823978c81a582160c2f57
fb0d91c900686d5f330a8f2f2801ea46
Gets mass of all actors in the trigger volume
float UOpenDoor::TotalMassOfOverlappingActors() { float TotalMass=0.f; TArray<AActor*> OverlappingActors; PressurePlate->GetOverlappingActors(OverlappingActors); for(AActor* Actor:OverlappingActors) { TotalMass += Actor->FindComponentByClass<UPrimitiveComponent>()->GetMass(); } return TotalMass; }
1
31bcbb626fab0ae0552e4ffb2b48a98e
c98202420577e9f23177a161b94bb33a
Returns the path to the cache file including the folder and file name
public class ImageDownloadHelperTask extends AsyncTask<String, Void, Bitmap> private String getCacheFilePath() { return Environment.getExternalStorageDirectory() + mCacheFolder + mCacheFileName; }
1
495e2456fe88369fdbb2cd238c37e369
335a1be3bca5b6463f5f3c6618a47213
增加车辆违章历史选择岗位
$.post( Ext.basePath+"tjsinfo/lhcrms/system/rolesAdminManage.action", {taskName:'查询车辆租赁历史',architectureTaskdepartmentId:$('input[name=chaxuncheliangzulinlishi.architectureTaskdepartmentId]').val(), architectureTaskgroupId:$('input[name=chaxuncheliangzulinlishi.architectureTaskgroupId]').val(), architecture...
0
28abcbe04fa04ace62db058dbe15638d
a02f7b2921acb32c6d332dcac9da0113
Gets the find reward account by user account id command.
{ return Find(new String[] { _.user_id }, new Object[] { userid }); }
1
4cdae4b72e83a2fc997212c2cd1fa0c4
ea43e363949bf2f00aa1c8483e3ba434
Defines a kernel that calculates the cross-correlation between two channels.
namespace NWaves.Operations.Convolution public class Convolver public DiscreteSignal CrossCorrelate(DiscreteSignal signal1, DiscreteSignal signal2) { var reversedKernel = new DiscreteSignal(signal2.SamplingRate, signal2.Samples.Reverse()); return Convolve(signal1, reversedKernel); ...
1
44ae89ca8d2d24bec3350291ec048fd3
bd13e67a752b96273959f3db5e635f1b
判断某列是否为NULL值,如果该列为null,则返回true 列序号,0起始
namespace EarthView namespace World namespace Core namespace Database public class SqlRecord : EarthView.World.Core.AllocatedObject public bool IsNull(int i) { byte ret=EarthView_World_Core_Database_CSqlRecord_isNull_ev_bool_ev_int32(this.NativeObject, i); return Convert.ToBoolean(ret); ...
1
3b3db0c01e63dc469dbbfcf9c6f9b954
5eb496e62372fd60c4099b29a8040195
Returns month in digit format (integer).
class OutputFormatter extends AbstractConstructor public function getMonth(): int { return intval($this->toFormat('m')); }
1
d82a23eff3bf5788e95dc432dd316779
b7d101faaff3e2d80180f885653bd102
Returns the address of the multisig belonging to a specified set of owners via the hash of the owners
otherHash: String, multisigAccount: String, version: Version = Version.Main, fee: Long = -1, timeStamp: Int = -1, deadline: Int ...
0
755ac488cb2f442c4ea616825fb6dada
e759d29208ffedae6bd1a0055f347d43
设施历史告警级别统计
this.deviceStatusAlarm = {}; this.$MapScreenService.getDeviceStatusCount().subscribe((res: Result) => { if (res.code === 0 || res.code === ResultCodeEnum.success) { const statusData: Array<{ value: number, name: any, index: number }> = []; let deviceTotal = 0; res.data.forEach(item...
0
b9df32896e3bb0521bccca0eb203b43e
da8f7ad931841a93beef02a9422ecced
Get attributes of device with device Id = device_id
this.version = "20181031202139" this.module = "device" return await this.get({ deviceId: DeviceID, productId: this.ProductID }); }
1
e0b2b2b81c366d4ddc808eb14ae3f61f
0693fd9294a8ad5e23abde91362c1142
Установить персонажу тип стражника
public class NPC extends Character public void setHostile(boolean host){ hostile=host; }
0
e720f08485102b392a0415676c133339
5c031ccbfb8a39ad101ab046c370ca16
Should a ringing sound be played in an outgoing connection or message
class TelephonyConferenceStruct extends AbstractStructBase public function setAnnounce_snd($announce_snd = null) { if (!is_null($announce_snd) && !is_bool($announce_snd)) { throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($announce_snd, ...
0
dbc35a6c21a526844aa312d331802456
a8c79d3d5c5f33017ea2be00cd514e18
Borrar una valoracion de un Plan
@RunWith(Arquillian.class) public class PlanLogicTest @Test public void removeValoracionesTest() throws BusinessLogicException { boolean estaBien = false; try { PlanLogic.removeValoracion( valoracionesData.get(0).getId(),data.get(0).getId()); ValoracionesEntity response = Pla...
1
64d9caf75e4bfb4a51fddc5eb6ec840d
2a2608cec63c97807826897bf66f9243
Function: void reset() Description: Sets scene_names to list of names of all scenes in Unity Editor Build Settings.
public class BuildToolEditor private static void ClearScenes() { if (_listScenes == null) return; string sUpdate = string.Empty; for (int i = _listScenes.Count - 1; i >= 0; i--) { if (_listScenes[i].Contains("01_InitGame")) { sUpdat...
0
9c728bdda554a9f8e312584d1a79a241
e81bee7e17d3d97a0b1895ab511fde34
GPIO.pull_down_at(pin)
{ pullUp == GPIO_PULL_UP_DISABLE ? (*port->PORT &= ~pin) : (*port->PORT |= pin); }
0
db6ad2d58c061cb2242ea350ed8e8a84
1176a76073214f801382d93d328485db
initialize chess score cache this cache stores (board_hash, score) tuples as a dictionary
class Match: def __init__(self): self.code_range_cache = []
0
35abf9a3dd456eb442d057fc6f695aba
fcc9db81ce2252b9d743cd5f2b55fc64
Testing load country list for coverage
def test_country_code_list_command(mocker): from NetscoutAED import country_code_list_command countries_code_raw_response = util_load_json('test_data/countries_codes/countries_code_raw.json') mocker.patch.object(client, "country_code_list_command", return_value=countries_code_raw_response) result = coun...
1
37ae8d7926b2ebd5ed17ea8ed4e8bd96
8eec3bd7d2021ea81a43392eeffa96fc
Bind TFrom base class or interface to TTo inherited or implementation class. For each TFrom resolution a new instance of TTo will be created. The dependencies container used the specified creation method to create new instances of TTo.
namespace UJect public class DiBinder<TInterface1, TInterface2, TInterface3, TInterface4> : IDiBinder<TInterface1, TInterface2, TInterface3, TInterface4> [LibraryEntryPoint] public DiContainer ToInstance<TImpl>(TImpl instance) where TImpl : TInterface1, TInterface2, TInterface3, TInterface4 { ...
0
87855e216b044547aaa7a0e64c461c82
008aafce10a051b19ed080b74a5ea0e0
Gets minecraft profile.
public class PlayerInfoData public WrappedGameProfile getProfile() { return profile; }
1
7edef57ca94ec2cdc93f8ec25c9598c7
fe3928e01608936e719432bca87ba7ed
Get all game logs from the API.
export class GameApiService getAll(): Observable<GameList[]> { return this.http.get<GameDto[]>(URL) .pipe(map(games => games.map(this.convert))); }
0
258609d92a271fec6f5aee8cb4812c46
8acc19651bf506e0c5ed590744caec9c
Sends an email validation request. This method also ensure the connection exist and start or reconnect before sending the request.
export class PasswordResetPage sendPasswordResetRequest() { if (this.emailValidation()) { } else { this.presentAlert(); } }
0
e80976aee0c0760fb12ba8e10464004f
4c9d755b63caeee89dd0e178e1639851
DBSCANを用いたコミュニティを作る
def dbscan(X, eps=1, min_points=10, verbose=False): C = 0 NOISE = "NOISE" labels = [None] * len(X) for i_point in range(len(X)): if labels[i_point] is not None: continue neighbors = find_neighbors(X, i_point, eps) if len(neighbors) + 1 < min_points: labels...
1
727b49dc9efe49ff3302ea989f9a3359
ebb718e8b587f27c347d4a2b1389b5d8
Build source path without trailing '/'.
class Build def static_path (@dir || settings.static_path).chomp('/') end
1
b9e4534a707d41c9c2a2376f27262d6c
8a50af7b56555dbf4565af264776e1b7
If the argument was an array, this will create a {@link String} of all the array elements for tracing. This method will recurse back to {@link #getArgValue(Class, Object)} in case there is an array of arrays.
abstract class AbstractTraceFormatter implements FormatterInterface protected function stringArg($arg): string { return ''; }
0
a21d8f895b7b210b4d94aa45cfa07983
8778d79a0d81fbc1e1f5f46f921baf80
Returns queued funding cycle for project.
function useQueuedFundingCycleOfProject( projectId: BigNumberish | undefined, ) { return useContractReader<V1FundingCycle>({ contract: V1ContractName.FundingCycles, functionName: 'queuedOf', args: projectId ? [BigNumber.from(projectId).toHexString()] : null, updateOn: projectId ? [ {...
1
03e52db1623b98fd77619d4c937ccb25
d1c650db7ba26487ee7df10344b69447
获取省市区县街道镇 返回两种格式:index式的、以省、市、区等分类的
{ $pcJson = ''; $pca = json_decode($pcJson, true); $i = 0; $data = []; foreach ($pca as $pro => $cityArr) { $i++; $proId = $i; $cityData = []; foreach ($cityArr as $city => $areaArr) { $i++; $city...
0
d2a3ce7033a037668289362c404e97c3
b3e32b6160efffe981717bfa6528e710
CGamarra 10-04-2008 Verifica si existen comercios relacionados con el perfil de carga
function tieneMerc(nroDoc, nroTarja) { var data = { "nroDoc": nroDoc, "nroTarja": nroTarja } var tiene = 1; $.ajax({ async: false, contentType: "application/json; charset=utf-8", type: "POST", datatype: "json", url: "ObtLisMercCons", data: ...
1
bc4f271b58db70d032631c1fca65f09f
2e8ff9087ea640044bfd8cd80d76da76
快速生成一个素大数
public class BigRandomPrimeNumber public static String create() { char[] num = new char[1000]; Random ran = new Random(); int temp; char cur; for (int i = 0; i < num.length; i++) { temp = ran.nextInt(10); cur = (char) ('0' + temp); num[i] = cur...
0
bb5189c74a332634b2bd865468b6ab02
4d015613e030fd5f20d4a3a79a8f3034
Provide the latest results to the scoreboard pane.
public abstract class ActionHandler implements ViewElement public abstract void scoreboardMessage(String[][] scoreboard);
1
6ea52200e1d0cb5b2d795783e0db3b7a
79a915c7f813ad8c86a4e6a56385dba0
获取车位的某一个属性的信息
public RolePropsEquipPro getEquipProperty(long role_props_id)throws Exception;
0
7688903c9cafbd0403febcc413012ae4
4ad2a8933db77d293ce1d834a9e8bb16
Tell the Pi that it sent us a packet with a bad checksum.
void manageBadMAGIC() { mylog("[recv corrupted packet]\n"); }
0
c8dafe91c347cd9f8d5c473a5de211d5
66cbe347c6759254ab02635024af98ed
Reward threshold, None for no threshold.
class SmoothedInputDevice(WaitableInputDevice): def threshold(self): return self._threshold
0
283d60f0df4d6897071cbb46cc177765
b587c19c75436efc7316040a53745a1d
Make sure that we can detect a missing command. This actually can't be done with _Open3_.
class SimplePipeTests(unittest.TestCase): def testWriteOpenSource(self): t = pipes.Template() t.prepend('boguscmd', pipes.SOURCE) self.assertRaises(ValueError, t.open, 'bogusfile', 'w')
1
8ba8491ac78da7174e841bff01f9f1c4
444311701f602a16f226939ead122865
通过DataRow创建一个PfmDictionary实体
namespace ULA.Devices.PICONGS.Business public class PiconGsRuntimeDevice : RuntimeDeviceBase protected void AddDataRow(string tag, Guid driverDataId, BinaryFormatterBase formatter) { var row = new DefaultDataRow { DriverDataId = driverDataId, Formatter...
0
9b6eaf988a1632ba83351047d758c1b1
16492a47c0d03b450645f7fed43eb5b8
Make sure watches filter properly by content type.
class UsersWatchingTests(TestCase): def test_inactive(self): watch(event_type=TYPE, email='anon@ymous.com', is_active=False).save() watch(event_type=TYPE, email='active@one.com').save() self._emails_eq(['active@one.com'], SimpleEvent())
0
7a6ae692b5ad820852ac8c99f09ddaa9
1288a39d01e5f49f77e241a83ccb2616
gets all DailyWorkouts of a Plan
Cursor cursor = getReadableDatabase().query( TABLE_WORKOUTS_NAME, new String[] { BaseColumns._ID, COLUMN_WORKOUT_NAME, COLUMN_WORKOUT_DATE }, COLUMN_WORKOUTPROGRAM_ID + " = " + String.valueOf(programId), null, null, null, null); if (cursor != null && cursor.getCount() > 0) { cursor.moveToFirst();...
1
a968c141b6a1fd6707186d4e1b92d8bb
1077333204c4d4990b636b5a31db35e2
Получить соответствие названий акций и их внутренних идентификаторов.
class Quotes(AbstractManager): def _find_aliases(self, ticker: str) -> Tuple[List[str], pd.Timestamp]: securities = SecuritiesListing(self._mongo.db.name)[LISTING] reg_date = securities.at[ticker, DATE] reg_date = pd.to_datetime(reg_date, format="%d.%m.%Y %H:%M:%S") reg_number = securiti...
1
d2d5779eb6854d37556c469faf403606
4fd7d70816b379b8705f02c60ba66938
3分钟没有上报就自动关闭
{ long timeNow = Tool.GetTimeStamp(); foreach(ClientState s in NetManager.clients.Values) { if(timeNow-s.lastPingTime>NetManager.pingInterval*3) { NetManager.Close(s); return; } } }
1
47ca6e9f573899116df3e7e2b0e63302
ec77e0ed7da4dc7a475d851afa1f63d6
Instruction: Decrement value of X register. Function: X - 1
{ #ifdef HAVE_INSTRUCTION_TRACE traceInstruction("DEX"); #endif --m_X; updateZero(m_X); updateSign(m_X); return 2; }
1
4f69857d7702d7d02e6a0daaeede400c
7b9295c42b733188799ba9445ab3eafb
functia aceasta extrage un element din coada
{ int *aelem; TLG aux; if (isEmpty(s)==1) return 0; aelem=malloc(sizeof(int)); if(!aelem) return 0; aux=VF(s); memcpy(aelem,(int *)aux->info,sizeof(int)); *(int *)ae=*aelem; VF(s)=aux->urm; free(aux->info); free(aux); free(aelem); return 1; }
1
055c2d9e9298c6f7fda657a0a9f3421a
6f431c3c22b09798c1b0493d3a929441
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
{ $orig = $row; for($i=0; $i <= strlen($orig)-1; $i++) { $current_char = $row[$i]; $prev_char = @$row[$i-1]; $next_char = @$row[$i+1]; if($current_char == "," && is_numeric($prev_char) && is_numeric($next_char)) { $source = "$prev_ch...
1
80c186df0203a38743265644f43a90f9
2a478deb286f36d997769452959e8831
gets number of holes added to domains of variables in presolving method of constraint handler
SCIP_PROP* prop ) { assert(prop != NULL); return prop->nupgdconss; }
0
b0616f7d1906c408d22956a362fd3479
4b761c6e501cada9308a211ce55c6843
仿JQuery$选择器
function $_() {var $;layui.use('jquery',function(){$ = layui.jquery;});return $;}
1
5dd51242cbb415b7d95a32a5129bfa2b
9ddb73f3378f3f55a582bb110cdaeea9
Find Employee References
public ActionResult Index() { var hRMS_EMP_ReferenceDetail = db.HRMS_EMP_ReferenceDetail.Include(h => h.City1).Include(h => h.Country1).Include(h => h.Accounts).Include(h => h.State1); return View(hRMS_EMP_ReferenceDetail.ToList()); }
1
a2a7bc65eda6cc888390e9c694fc7d99
a98a4896bc1f0615e7446fc0096155e9
Check if <paramref name="c"/> is a directory- and/or volume-separator character.
{ int32_t V_0 = 0; int32_t G_B5_0 = 0; int32_t G_B7_0 = 0; { Il2CppChar L_0 = ___c0; V_0 = L_0; int32_t L_1 = V_0; if ((((int32_t)L_1) < ((int32_t)((int32_t)65)))) { goto IL_0012; } } { int32_t L_2 = V_0; if ((((int32_t)L_2) <= ((int32_t)((int32_t)90)))) { goto IL_0027; } } IL_0012: { ...
0
c83087839113005abdb24f66684fde6e
17dbf1a52a5b6bbc2947820835f3a725
Get All MessagePin of Room
class PrivateRoomMessagesController extends Controller public function index(Request $request) { $result = []; $data = PrivateRoomMessage::where('private_room_id', $request->private_room_id)->with('user')->get(); foreach ($data as $row) { array_push($result, MessageResource::make...
0
2fed41f832a9a848c8e4659d535a2ccc
3fc0972c19aca92170d13ba1d3781f32
Returns the comment describing the purpose of this cookie, or <code>null</code> if the cookie has no comment.
@Nullable String getComment();
1
3e65f08817f192854ca39cb5ebdc37f7
84caf5ea54e1dbe837cbd652e18aa8bc
Determine the {@link GeoRelation} between the current shape and a {@link LatLonGeometry}. It only supports simple geometries, therefore it will fail if the LatLonGeometry is a {@link org.apache.lucene.geo.Rectangle} that crosses the dateline.
abstract class AbstractGeoShape extends AbstractQuery public function setRelation(string $relation): self { $this->_relation = $relation; return $this; }
0
4ee761475646f400ac0d9b8f31d840c9
db586ae481cedd4a77bcf660ebb8b2f0
The function allocates memory and creates a list with a dummy node. The list keeps track of the number of elements it has.
List* node = (List*)malloc(sizeof(List)); node->next_node = NULL; node->string = (char*)malloc(sizeof(char) * NUM_CHARACTERS_OF_STRING + 1); return node; }
0
115807a3a61bb930464c7b456f09627c
9c47e0fc0d51e868d1bed3c7fc24b539
Retorna Total de Cancelamentos ISSQN.
public class RegistroC130 public double getVL_ISSQN() { return VL_ISSQN; }
0
50d8290ff054b1123ed56c1f02702470
63b2b9031c27cd35678462d65b9d786d
Removes a reaction from a message.
self, ctx: commands.Context, channel: discord.TextChannel, message_id: int ): try: message = await channel.fetch_message(message_id) except discord.HTTPException: return await ctx.maybe_send_embed("No such message") await self.config.custom("REACTROLE", str(me...
0
c7f5973c9ae596df5bdc1f13bf6a4b1f
69d7ca7ea9a7f006c403b89c3d98ce78
加载mol文件
MOL_BOND obj{}; std::vector<MOL_BOND> objList{}; int intMsg = obj.importData(molFile, objList); if (intMsg != 1) { throw " ! Error: Mol-file contains 0 or more than 1 molecule."; } else { obj = objList[0]; } int atomIDmax1 = -1; for (auto& atom : Atoms) if (atomIDmax1 < atom.first) atomIDmax1 = atom.f...
1
aa46665129c377672bea37bff6670f39
432e41885262b57382652875585a9edc
自动计算单据状态
public void staChecked(StockTransApplication sta, Warehouse wh) { snDao.flush(); if (null != sta.getIsMerge() && true == sta.getIsMerge()) { List<PackageInfo> pilist = packageInfoDao.getByStaId(sta.getId()); if (pilist == null || pilist.size() == 0) { throw ne...
0
344ba6d39a17e6423db8e804a4331cb3
7f9cf2bf44293c32c66d6628ecff8891
Given a message, this will check all triggers to see if the message might begin, progress, or complete one of the triggers. If it might (just might) do any of those, this will return the trigger keys that should be checked further by calling whichCompleted.
static bool afterTriggerMarkEvents(AfterTriggerEventList* events, AfterTriggerEventList* move_list, bool immediate_only) { bool found = false; AfterTriggerEvent event = NULL; AfterTriggerEventChunk* chunk = NULL; for_each_event_chunk (event, chunk, *events) { AfterTriggerShared evtshared = GetTr...
0
58e4a6681cef54592ae45ebd0ae7e294
1dd6aa2d1d55be56d9be11c927b4e706
カスタムメニューにアカウントを追加する
val instance = pref_setting.getString("main_instance", "") val token = pref_setting.getString("main_token", "") val fragment = (context as AppCompatActivity).supportFragmentManager.findFragmentById(R.id.container_container) if (fragment is CustomMenuTimeLine) { val status = M...
1
5bbfb8a4617bdccaa2a8edf1772b77f8
8fbd941e783ec3e8b3773b8fb0d3709c
Create the netinput: return one value calculated from the values received from the connections
output = {} for neur in net.topological_sort(): t = 0 for node in net.get_incoming_neighbors(neur): t += node_value(node, input_values, output) * net.get_wires(node, neur)[0].get_weight() output[neur] = threshold_fn(t) return (output[net.get_output_neuron()], output)
1
aa449da5d640e9c487079278c1669318
f404b246d7fa8096bcd5d16fc6a76eb1
Opens already existing XML configuration file.
{ FileInfo info = new FileInfo(fileName); if (!info.Exists) throw new FileNotFoundException(fileName); Configuartion.Clear(); Configuartion.EnforceConstraints = false; Configuartion.ReadXml(fileName, System.Data.XmlReadMode.IgnoreSchema); Configuartion.EnforceConstraints ...
1
821f8eb4e944f137543d2821d2898b4f
347b01d679c9f6eb9de376c5e4d55231
解码离开房间消息
int DecodeOtherLeaveRoom(const char *in, MsgOtherLeaveRoom *msgOtherLeaveRoom) { cJSON *root = cJSON_Parse(in); cJSON *jsMsg = cJSON_GetObjectItem(root, "msg"); cJSON *jsPos = cJSON_GetObjectItem(jsMsg, "pos"); cJSON *jsIsPlaying = cJSON_GetObjectItem(jsMsg, "isPlaying"); msgOtherLeaveRoom->pos = js...
1
38f1880c6ad7802f89ea0042bdd5352a
952564dbbcc6c23da57d90dc1705092c
Instantiate a +reader+ object based on the <tt>:reader</tt> and <tt>:format</tt> values of +options+.
if (format == null) return XDIReaderRegistry.getDefault(); if (AutoReader.FORMAT_NAME.equalsIgnoreCase(format)) return getAuto(); Class<XDIReader> readerClass = readerClassesByFormat.get(format); if (readerClass == null) return null; try { Constructor<XDIReader> constructor = readerClass.getConstructor(Pro...
1
b7b3f7c79786cca0da188b427e260b54
47749e51f531028cde1034bdc20787cf
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)
export class AccountTransactionApi public accountTransactionUpload (accountTransactionId: string, extraHttpRequestParams?: any ): Observable<Array<models.AccountAttachmentModel>> { const path = this.basePath + '/api/v1/account_transaction/upload/${accountTransactionId}' .replace('${' + 'accoun...
0
1e36a5098e4e33acaf505dccc55b468c
1274af963fca164a8f7a6e9845d22b1d
Replaces the element at row 3 and column 1 by +value+.
{ pMatrix[0][0] += pValue; pMatrix[1][1] += pValue; pMatrix[2][2] += pValue; pMatrix[3][3] += pValue; }
0
f04f80cd96155ce4f4e1ec01d616a721
bb0fbdef17dfab9f525b2936bffd83bb
Funzione per l'inserimento di un solo carattere da riga di comando
{ dividi(cmd); if (args[0] != NULL) { if (strcmp(args[0], "exit") == 0) { exit(0); } n+= 1; cmdAppend(args[0], first); return esegui(input, first, last, pipe_err_fd_read); } return 0; }
0
0bf10fe7887061966eb21c35448df757
860495d7aee84864147971cfb376a940
File objects cannot be picled. As http arguments are often pickled (for form postback), make sure we don't get an error.
class SongFile(ClearableCachedPropertyMixin, FileBasedObject): def __getstate__(self): return None
1
c6717f70050d0854507d2f0ff798572f
2845978484afbbccfb010d4bcd0bbbe7
Solution Provided
public class MergeSortedArrays public static int[] solve(final int[] A, final int[] B) { int ARR[] = new int[A.length+B.length]; int pointer1=0,pointer2=0; int k=0; while(pointer1<A.length && pointer2<B.length) { if(A[pointer1]<B[pointer2]) { ARR[k++] = A[point...
1
6a8128e1fb37c67ab2e345eb6ae3cea6
5ec84a263b42c9276378bef032d52534
Turn Off Color Blind assistance
public class Settings : MonoBehaviour public void loadNormalVision() { m_colorBlind.Type = 0; m_SettingsCanvas.enabled = false; m_AccessibilityCanvas.enabled = false; isPaused = false; }
1
d3c491c4426fad656745d8b8aca8483f
2b00e6d76f893a06fd1f42d2ae417ef2
Erases a single node from the treap having its key matches the given key if exists.
{ if (_root == NULL) { return false; } else if (_root->_left == NULL && _root->_right == NULL) { if (_root->_key == key) { delete _root; _root = NULL; return true; } else return false; } else { Node* cur = _root; Node* parent = NULL; while (cur) { if (cur-...
1
45241017599c76f487d3b4ee2e468dfa
e92b222e99cd6f4cdaf1e70be9282e11
覆写destroyItem并且空实现,这样每个Fragment中的视图就不会被销毁
public void destroyItem(ViewGroup container, int position, Object object) { mRegisteredFragments.delete(position); super.destroyItem(container, position, object); }
0
b77a48173d7e21bd6570e0cded3539b1
0e6f16ef962a9388704a0bca535ee280
wrapper on strconv.Atoi, but fatal on error
func ParseInt(from string) int { parsed, err := strconv.Atoi(from) PanicIf(err) return parsed }
1
5c3024ee3b0243d899476fe17ec1e771
f45bf9224e1bb763b9b1ed1cc412e294
Methode qui affiche le score final.
var div=document.getElementById("score"); while(div.firstChild){ div.removeChild(div.firstChild); } var p=document.createElement("p"); p.innerHTML=edt.matieres[0].nom+" : "+this.mat1+"/20"+" | "+edt.matieres[1].nom+" : "+this.mat2+"/20"+" | "+edt.matieres[2].nom+" : "...
1
8cd1a06eab35f620c0bea68ec086dd50
887f640f0732694131cc350f2558a476
This adds a property descriptor for the Datatype IRI feature. <!-- begin-user-doc --> <!-- end-user-doc -->
public class IsolatedPropertyTypeItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource protected void addTypePropertyDescriptor(Object object) { itemPropertyDescriptors.add (creat...
0
e0ce5ab8a4b5639efdb5786cf9d6ffd0
b66f3333b872eac94c2b9adb04c08071
sets qstacked widget to login info page
void Check::on_loginBtn_clicked() { ui->stackedWidget->setCurrentWidget(login); }
1
841b2d8472aee759c7a7d52ad4ba8a62
caed2f9af8737aab26ea9a520fe19063
Sets the backoff_rule_id
{ if ($arg0 != $this->backoff_rule_id) { $this->addModifiedColumn("backoff_rule_id"); } $this->backoff_rule_id = $arg0; return $this; }
1
ddea43baa0583c102db46751a624ad29
ed382910cc0540559bc318c0f15d990a
Add a comment to the session result. The comment will be added with the fix prefix "/// "
class Drupal7to8_Utility_InsertContent static public function insertFixMeComment(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $message, $newName = NULL) { if (!isset($newName)) { $phpcsFile->fixer->addContentBefore($stackPtr, 'fixme_'); } else { $phpcsFile->fixer->replaceT...
0
57141ebfada486da1b12ac48dbe4fa83
770b915472f41fd080100480e90b3a5b
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).
public final class Methods public static Method[] getDeclaredMethodsThatMatches(Class clazz, String pattern, boolean includeParamInMatch) { return getDeclaredMethodsThatMatches(clazz, Pattern.compile(pattern), includeParamInMatch); }
0
7f50dc1320720adfccefa8afbed4a486
0c2638d5385f0c713dd884f6d5349c2e
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 ServicePerimeterSpecVpcAccessibleServices(dict): def allowed_services(self) -> Optional[Sequence[str]]: return pulumi.get(self, "allowed_services")
0