query_id
string
corpus_id
string
query
string
code
string
label
int64
8b779c30b94c5719001ddc281b305106
03ac76897161911d60ece3104314040b
Set the stop attributes for this alarm. Requires the event that stopped the alarm and an optional new event_state to set the alarm to. Processed flag is cleared for the consolidator to trigger on an up alarm
CTimerEvent_Standby::CTimerEvent_Standby(time_t _announce, time_t _alarm, bool sb_on, CTimerd::CTimerEventRepeat evrepeat, uint repeatcount): CTimerEvent(CTimerd::TIMER_STANDBY, _announce, _alarm, (time_t)0, evrepeat, repeatcount) { standby_on = sb_on; }
0
73d9b9f6549e57dd471888b30cf045b5
cf5109d23bee6987f02ed58af1683274
Test that two independent connections can coexists.
SIMULACRON_INTEGRATION_TEST_F(ConnectionTest, ConnectOneNodeTwoDataCenters) { SKIP_TEST_IF_SIMULACRON_UNAVAILABLE; connect(1, 1); assert_active_connections(1, false); }
0
dad80f708ea07b22fb78d35f0bcb442e
1da52608315a9ac75948ea408b856045
Indicates how many volumes shall be provisioned by the template
class _TagState: def volumes_count(self) -> Optional[pulumi.Input[int]]: return pulumi.get(self, "volumes_count")
1
6edb1b9557ce9b26df546b2db18d1e77
ef4e1333e6de8cfb032a4df57fbf8ed9
Load a :class:`Protocol` from a directory on disk.
def read_protocol_from_dir(dirname, quick_load=False, comm=None): dirname = _pathlib.Path(dirname) return _metadir._cls_from_meta_json(dirname).from_dir(dirname, quick_load=quick_load)
1
290c57202a6371cb87ee219991c00270
9ef89b48c1b11c7799bfbfd6103db791
Returns the value of the '<em><b>Cuarto</b></em>' attribute. <!-- begin-user-doc --> <p> If the meaning of the '<em>Cuarto</em>' attribute isn't clear, there really should be more of a description here... </p> <!-- end-user-doc -->
double getProfCorte();
0
f95b9c8404a7a0814535423aed774d46
061f52c272f27095520c51c07806740d
若没有空缺,则填在最后
namespace MMICIII.Utils public class MissingValueTools private static DataTable copyFill(DataTable seriesTable) { int totalLineCount = seriesTable.Rows.Count; DataRow tempDr = seriesTable.NewRow(); tempDr.ItemArray = seriesTable.Rows[0].ItemArray; for (int i =...
0
ba5520d7195a49c3e96069205516989e
734137b392ca541056902c9b9c1c35c3
Checks that two arrays have the same values regardless of order
const haveSameLength = a.length === b.length const sortedA = a.slice().sort() const sortedB = b.slice().sort() const foundDifference = sortedA.some( ( value, index) => value !== sortedB[index] ) return haveSameLength && !foundDifference }
1
2256f3cb6cbe67963acc2e05cff569b7
36da739e2f4e474841f19eb9ea7f7bd2
Get a chord name from keys
const keyString = inferKeyFromChords(allChords); return keyString ? { string: keyString, accidental: getKeyAccidental(keyString), } : undefined; }
0
f8041d7bcdcfb27d3873ee77542f25b4
f313e06cdc50f414a6d44c5d175d7665
Получить размеры сетки в узлах по каждому из координатных направлений
namespace BlockSnake public class MainLoop : Game public Vector2 GetGridCellSizes(GridSize size) { return new Vector2( scrWidth / GetGridCols(size), scrHeight / GetGridRows(size)); }
1
c52c2e5767ee1c32ad3c362dcb652ff2
6d04de7ab40af1019d5b97d3d93e7006
Calculate the loss using Root Mean Square Error.
class Metrics: def mse_loss(real_y, predicted_y): return Metrics.rmse_loss(real_y, predicted_y)**2
0
369a27df7e796f97cfb3156ea0ae160e
7e14b1c7464bdaba8b770a9e003373aa
### make contact matrix symmetric
n.aa ) { P.contact <- P.contact <- matrix( 0, n.aa, n.aa ) for( i in 1:(n.aa-1) ) { i.start <- ( i - 1 ) * 21 + 1 i.end <- i * 21 - 1 for( j in (i+1):n.aa ) { P.contact[ i, j ] <- sum( abs( P[ i.start:i.end, ( ( j - 1 ) * 21 + 1 ):( j * 21 - 1 ) ] ) ) P.contact...
1
d798eadb3633dd2272c9fdfabac53e3d
8fe124720044f0de3b5fa23e1e105cc5
从根节点开始中序遍历
if (!root) { return; } root.left && midOrder(root.left); console.log(root.value); root.right && midOrder(root.right); }
1
b3228b4a850d5df56b109fc690d0ffe0
4949fb61ec414baea4a80d33bedd5783
The custos class holds checks and notifiers and sticks them together.
class Custos: def __init__(self, checks, notifiers, notify_on_exception=None): self.queue = Queue() self.notifiers = notifiers self.checks = checks self.log = log.getChild(self.__class__.__name__) for check in self.checks: check.queue = self.queue if notif...
1
89f38d09471c39c378214a35e8bb9546
231c6fa41a1d65c3898f92b19998cc72
enable AHB2 clock for port C
void task2_func(void) { RCC->APB2ENR |= RCC_APB2ENR_IOPCEN ; GPIOC->CRH = 3<<20; GPIOC->ODR = 0; while(1){ osPrint("task2\n"); GPIOC->ODR |= 1<<13; Delay(1000000); GPIOC->ODR &= ~(1<<13); Delay(1000000); osThreadYield(); } }
0
e53faea68de9ada5402c30a94b7d2d20
09c2a9e6e10b91d46fc77a741ed3def5
This function tests the functionality of debug_trace_open() This function is used to test the functionality of debug_trace_open(). It breaks the tests into three domains 1. basic functionality tests 2. boundary condition tests 3. negative tests The three function calls correspond to each of these tests.
static void openlog_bound_tests () { char *ident; char *tmp_ident; char *str = "1234567890"; int i; int logfac = 0; ctf_start_testcase("TC004011: openlog_bound_tests()"); open_and_log(NULL, LOG_PID, LOG_KERN, "TC004011"); ctf_end_testcase(); ctf_start_testcase("TC004012: openlog_bo...
0
72f7ff9cf6029bf77c50980181409f3e
69d48e8e635b72b81e5e089de21caf96
GetSubtask用于读取子任务信息,并返回Subtask类型的子任务
{ SubTask subTask=null; try { subTask=SubTaskService.SearchSubTaskById(id); } catch (Exception ex) { _exceptionLog.RecordLog(ex); } return subTask; }
1
1cd9290b716b183580d1d988dfbec4bf
f808863a3eb1774b0b1841518a3a754d
修改密码页确认密码输入框提示
confirmpassword = self.activeweb.findElementByXpathAndReturnValue(self.changepasswordpage.confirmpasswordinput,"placeholder") print('实际结果:',confirmpassword) preconfirmpassword = "Please key in..." self.assertEqual(confirmpassword ,preconfirmpassword)
1
8a5a053971c9bb39884cd9833c9d59af
1cacb86c7ea9407bc55e200af371c7d9
根据外周圆的个数计算出合适的外周圆半径
public class PieChart extends AbstractChart private int getValidRadius(int width,int heigth,int radius) { int maxRadius = Math.min(width,heigth) / 3; int minRadius = Math.min(width,heigth) / 6; return Math.min(maxRadius, Math.max(radius, minRadius)); }
0
c2aac40e65fecf17c4076a83b15fe3a5
1e625a5e67433a8cc75e266449c46cfd
Convert value from source unit (`from`) to target unit (`to`) using a unit conversion object which has a tree-like structure (see example). If no coefficient can be found in `conversionTree[from][to]`, the reverse operation will be attempted (dividing by `conversionTree[to][from]`). ( `Obj[fromUnit][toUnit]` ) convertU...
class ScaledUnits(object): def convert( self, value: Union[int, float], target_suffix: str, current_suffix: str = None, decimal: Optional[int] = None ) -> Union[int, float]: if current_suffix is None: current_suffix_id = self.suffix_idx else: try: curr...
0
f91b8d42ff862df1dc6959c755ce88c6
009bd98f014d1f5c3ce2b17cc5d40f1c
Executes the action of fetching subscribers.
class SubscriptionPool(BaseActor): def get_subscribers(self, msg, sender): if msg.sender: sender = msg.sender msg = GetSubscribers(self.__subscriptions, sender, self) self.send(sender, msg)
1
b44b98c254dfe4ee82a6fad9ab16b355
8f3da11282aebcae495ed428f95abd7e
点击沟通分类应用
class Controller_Communication extends Controller_Sellevel public function action_commApplication(){ $child_Id = Session::instance()->get('Guardian_ID'); $model_child = Model::factory('child'); $children = $model_child->step1_selectByChildId($child_Id); if(!empty($children['group'])){ $children_list = $model...
1
6555dd696832c747b657f4bf0c59336d
074b2d2cf9131f9738ed2a4819f5cef8
Fills the given buffer with bytes from the underlying channel.
public override int Read(byte[] buffer, int offset, int count) => Read(new Span<byte>(buffer, offset, count));
1
da2959f506e610410e668d677c1a1761
21974eea0ef171f0ab90420a171b2d98
根据当前流程模型数据,按需添加会签标签
JSONObject modFormStepDataObj = JSONObject.parseObject(modFormStepDataStr); ModFormStepData modFormStepData = (ModFormStepData)JSONObject.toJavaObject(modFormStepDataObj, ModFormStepData.class); SpFlowInstance instance = workFlowDao.getSpFlowInstanceById(instanceId,userInfo); Task curTask = cusActivitServic...
1
cfd773f776dcbf73d0aa2a1ef048a8b5
0ebf1781aee0a65953f6556ffe4ec506
Відрахувати учня зі школи
namespace HseClass.Api.Controllers [Route("api/[controller]")] [Authorize(Roles = "teacher")] public class TeacherController : ControllerBase [HttpDelete("class/{classId}/user/{deletedUserId}")] public async Task<ActionResult<bool>> DeleteStudentFromClass(int classId, int deletedUserId) { ...
1
abccea4ed0c5b05782d91de616e5a22e
d7388edd1c7b4a50710b90a204b95dc1
Methode pour demander la météo au serveur
async getWeatherByCity() { const inputLocationWorld = this.inputLocation; const url = `https://api.openweathermap.org/data/2.5/forecast?q=${inputLocationWorld}&appid=da4308537532e9b3bcd6a56b77f79df8&units=metric&lang=fr`; console.log(url); const response = await fetch(url); const data = aw...
1
1f5153ea825912f22063a7e94c7ceeba
689b15f6615799071849198f4bab909a
returns a randomly chosen chain interaction
void MCreptate(double randomchain, double randombead, double xrand, double yrand, double zrand, double energyrandom) { cout << "Reptate" << endl; double reptatescale = 1; double oldEnergy = sim.ener; int MCchain = (int)(randomchain*sim.Inter); int MCbead = (int)(randombead*sim.N); int lastBeadPos = chainvector[...
0
c2aca85add8c197499a73ca6d7f64109
12747110db23fd828c2f5298f02ad79b
KAIKKIEN KÄYTTÄJIEN HAKU Hakee kaikki käyttäjät.
{ $query = "SELECT * FROM horacekv_users"; $result = $this->execute($query); $result = $this->resultObjectToArray($result); if ($result != null && count($result) > 0) { return $result; } else { return null; } }
1
5e6774da352d6912a5bd056381c08cb3
44d90537c38f92dab217c3d967ac5f91
Unsets the value of the '{@link IFC2X3.IfcValue#getIfcDynamicViscosityMeasurevalue <em>Ifc Dynamic Viscosity Measurevalue</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
void unsetIfcDynamicViscosityMeasurevalue();
1
2929d6184ca7f78903e1b9287f5b1a5f
d9ce27ceb5deff933340f1a28ba2a9d5
채용 등록
@RequestMapping(value = "reqResumeOpen.do", method = { RequestMethod.POST }) public CvCompanyDto reqResumeOpen(CvRequestDto dto, Model model, HttpSession session) { int c_seq = ((CMemberDto)session.getAttribute("logincompany")).getSeq(); dto.setComSeq(c_seq); System.out.println(">>>>> requestLike.do < c_seq > :...
0
2e02c9c6dd1fbb84e62abc3754a5dcd3
54cef171e90d847e984fb9a27b85412f
Creates a new set of mesh data with default values.
PolygonMeshEditor { positions: &mut self.positions, uv_coords: &mut self.uv_coords, normals: &mut self.normals, faces: &mut self.faces, bound_check: false, } }
0
ba7ad193afde572b7da5cd3fb7d18c4e
d1b132e522da986c1ec1c82b2e51f91f
Beim ersten Instanzieren aus dem ObjectPool erhält die Bombe eine zufaellige Ausrichtung und Rotationsrichtung
public class RandomRotator : MonoBehaviour void Start() { float random = Random.Range(randomTumble.x, randomTumble.y); GetComponent<Rigidbody>().angularVelocity = Random.insideUnitSphere * random; }
1
6523df9610935af9d6db30d600616f80
b71392ce5d9d70a1d00f6d7a1d9989a8
Funcion que convierte de hexadecimal a binario
def binRep(hx): bn='' i=0 for n in hx: binn=bin(int(n, 16))[2:].zfill(4) bn+=binn i+=1 return(bn)
1
fee136e449c96acd813ce39c5a72dd35
6c9c74bf78e9df50d90c421ee854c829
Getter objekta iz mape dilucija. Ulazni parametar je kljuc pod kojim je objekt spremljen u mapi dilucija.
ValueClass get(String key) throws InvalidKeyException;
1
2b447d33fdbc0012d711d1ade19997f5
138950ceea5b602937e4ce8db8e2028c
Returns a comparator that will inverse the order of each element in a collection
namespace Linq.Extras [PublicAPI] public static class XComparer [Pure] public static IComparer<T> Reverse<T>([NotNull] this IComparer<T> comparer) { comparer.CheckArgumentNull("comparer"); return new ReverseComparer<T>(comparer); }
1
75a43cf66ca7d170fad5340ef30b19e8
1339132497ea4c28d191d22cd294cc21
初始化开仓、平仓的成本和单位
def initialize(context): set_benchmark('000300.XSHG') set_option('use_real_price', True) set_order_cost(OrderCost(close_tax=0.001, open_commission=0.0003, close_commission=0.0003, min_commission=5), type='stock') run_daily(market_open,time='every_bar') run_daily(after_market_close, time='after_close...
1
7cefb783e4091d0704acb7e55b721c92
3d22eac3950bc1ebdb4d5ebe17a05a1f
Return a fully-qualified signal resource name string.
if (signal instanceof Register<?, ?>) { return getRegisterName((Register<?, ?>)signal); } else { return signalNames.getName(signal, null); } }
0
f48f3ff73c5a72834eeaa8c5437ec4a4
d2953a99213ade7f1fd860c83113fd8a
Provides test data for element type - faliures
{ return [ 'Empty string' => [ $this->getXml('xmlerr_0001.xml'), ], 'XML declaration only' => [ $this->getXml('xmlerr_0002.xml'), ], 'Root end tag missing' => [ $this->getXml('xmlerr_0003.xml'), ], 'Attribute redefined' => [ $this->getXml('xmlerr_0004.xml')...
1
16e6d80d2787716c7434d8865b563704
c8534319cedee7279541f65bf6eb0800
Checks the indexes setter method
class T(self.T): pass assert T.name.index assert T.oid.index assert sorted(T._indexes.keys()) == ['name', 'oid']
0
0306ab28af3db3cab05a4a46842d9dcf
9373d0a7954723548d0d4a9cabd6f07c
무작위로 아이템을 배치하는 함수
{ int nIdx = (int)(Random.value * 100) % nRemainBlank + 1; int nCnt = 0; UILabel lbl = null; for(int i=0; i<ROW; ++i) { for(int j=0; j<COL; ++j) { lbl = items[i,j].GetComponentInChildren<UILabel>() as UILabel; if(lbl.tex...
1
8e61884c16b6b69ee2db381dd6b9e8d5
c033297b9566cdbf87f03ac2d0ad01c5
H.264バイトストリームを解析してNALごとにRTPで送信する
{ unsigned char nal_unit_type; unsigned char* payload; unsigned char buff[4096]; int single_NAL = 1; RtpHead *head = (RtpHead*)buff; head->head1 = 0x80; head->ptype = ctx->ptype; head->seqno = htons(ctx->seqno); head->timestamp = htonl(timestamp); head->ssrc = htonl(ctx->ssrc); payload = (unsigned char*)(hea...
1
92faac9bf316a5f6c1198dd342420612
076b4fc57d457389520a6ed153d089f7
刷新center列表,并且判断当前有无center,如果有,则隐藏提示,反之显示提示
if (fragmentList != null && fragmentList.size() > 0) ((CenterCollectionFragment) fragmentList.get(0)).refreshCenterCollect(); }
0
4a8a1e306f3f3538fcfe88adecfad5ea
def11a94f148b71c87f026f6c16d8c13
新しいエミッターを設定
namespace Candlelight.Examples.CustomHandles public class WatchTower : MonoBehaviour public void SetEmitters(IEnumerable<HelixParticleEmitter> value) { value = value ?? new HelixParticleEmitter[0]; m_Emitters.Clear(); m_Emitters.AddRange(value); }
1
cde23c475b04a6f73750c3b7cba3ed74
dcecf1694c143f202d6b32675bb8ed8c
Resource id of the private endpoint.
class PrivateEndpointResponse(dict): def id(self) -> Optional[str]: return pulumi.get(self, "id")
1
d7198af5416a26193238f1f481936a47
a9775aaafa7061775b205296006e3968
Frees a NeutronFloatingIP.
class FloatingIPManager(base.ManagerWithFind): def delete(self, floatingip): self._delete("/floatingips/%s" % base.getid(floatingip))
1
346070a9bba0d62627dc97a409c93703
d8ff49aa345b63181a6aa8c90b04240e
Updates the line items version of the given transaction.
class CommercePosGratuityBase extends CommercePosTransactionBase implements CommercePosTransactionBaseInterface public function lineItemUpdated() { CommercePosGratuityService::updateOrderGratuities($this->transaction->getOrderWrapper()); }
0
39dd68584f15bb55dfb7cc2214cd2b12
e958e34d530581409695588b203cf737
<p> Creates an IP access control group. </p> <p> An IP access control group provides you with the ability to control the IP addresses from which users are allowed to access their WorkSpaces. To specify the CIDR address ranges, add rules to your IP access control group and then associate the group with your directory. Y...
public class Application extends ResourceBase<Application, DtoApplication> public IpAddrGroup addIpAddrGroup() { return new IpAddrGroup(resource, principalDto.getIpAddrGroups(), new DtoIpAddrGroup()); }
1
71b04be340761c359463a7782fabf893
8558c99824c11a226bb12518b299ed6f
Populate any elements that need the number of states that have office (Active bank detail page) - this was previously loaded by loadViewByStateDataTable
class ContactusModelContactus extends JModelAdmin protected function populateState() { }
0
ea35b740dc0cf5eac5a02268823e6e15
9c71cf923afaed459289d64e28010095
Returns {item_id: [uid, ...]} of users who starred these items.
starrer_list_dict, missed_ids = self.starrer_cache.GetAll(items_ids) if missed_ids: rows = self.tbl.Select( cnxn, cols=[self.item_col, self.user_col], **{self.item_col: missed_ids}) retrieved_starrers = {item_id: [] for item_id in missed_ids} for item_id, starrer_id in rows...
1
93d186d59892dc2f16c41249e968381e
69dec341619b137d4009a88aab5e3b4c
Load object from shared preference.
public class App extends Application public Object readObjData(String key) { return Handler_SharedPreferences.readObject("Cache", key); }
1
7114ba549eea82cf0adc8fe87a15843d
9053c700efd933c5570a3de029817441
获取自动匹配的真实玩家和AI的比例
let matchInfo: Array<{ playerAId: number, playerBId: number }> = new Array(); let tempList = new Array<number>(); this.playerMap.forEach((player, playerId) => { if (!player.isDead()) { tempList.push(playerId); } }); let playerList = new Arr...
0
ccd9678eab20d889ea0974f596914c84
ef19d19c0176fbc9d79d54c33df06df3
При поиске используем жадную загрузку из таблицы user
if (!this.searching) { return; } this.loading = true; this.findsService.findByCollection('users', this.query, this.since, this.limit) .subscribe((data: IAPIFindUsers) => { this.users = data.users.map(u => User.createUserFromAPI(u)); ...
1
e6726c421487f387f1ef0aab85fb87f5
c3c9d0fe0d304bdb1d22a4e53cc1946e
Creates image management stream.
class MediaStore createMediaImageUploadStream (mediaImage) { return this.transport.createMediaImageUploadStream(mediaImage); }
1
effa0f8474b249e12a6557065057b37b
f69f222a4aac4a84e68eb631be620b3d
Check if the explosion is over
inline bool Explosion::IsOk () const { return (mExplosion != NULL); }
0
cb43f0f1cc7493d04d486e29b10995b6
fbf38ad6b1010f257779a98229ea014b
Get file details for a sample
class MediaManager implements FileUploadInterface, FileMoverInterface protected function fileDetails($path) { $path = '/' . ltrim($path, '/'); return [ 'name' => basename($path), 'fullPath' => $path, 'webPath' => $this->fileWebPath($path), ...
1
734968bbf0395f05dc9aa64b8f92cb92
52691b878ade31a5f1078071cb36aa04
根据recepient查询交易记录
List<SmtPaymentRecord> getPaymentRecordList(ReceiveVO rVo);
1
dc419493d38f056e81985406ba05abbe
78f2d716ad72342a0356a42c47227f53
Mets à jour l'aggro du routeur.
namespace Codinsa2015.Server.Entities public class EntityDatacenter : EntityBase void UpdateAggro() { EntityCollection entitiesInRange = GameServer.GetMap().Entities.GetAliveEntitiesInRange(this.Position, AttackRange); if (m_currentAgro != null) { if (m_cu...
1
634892c26c3f50a4519eb2c0aff7d706
144863ffddce61f114faa1fbcae65053
Performs the resubmission of all the jobs in a jobset.
throws ManifoldCFException { if (requeueList.size() > 0) { DocumentDescription[] requeueDocs = new DocumentDescription[requeueList.size()]; for (int i = 0; i < requeueDocs.length; i++) { QueuedDocument qd = requeueList.get(i); DocumentDescription dd = qd.getDocumentDescri...
1
e046bba294621081fdf271cdd1508aee
35ffca9fc0682a1c9dd942a5d56bf706
Erstellt eine Map aus allen Sound-Dateien im soundFolder (aus den Properties)
{ mSoundPoolMap.put(BOING, mSoundPool.load(mContext, R.raw.boing, 1)); mSoundPoolMap.put(CLANG, mSoundPool.load(mContext, R.raw.clang, 1)); mSoundPoolMap.put(BELL, mSoundPool.load(mContext, R.raw.bell, 1)); mSoundPoolMap.put(PUM, mSoundPool.load(mContext, R.raw.pum, 1)); mSoundPoolMap.put(PUNCH, mSoundPool.l...
0
e1f560edc003d7f3d425ab5ba980560f
aa797b91f5f07f09b187d38080c852ac
Форматирует набор участников в многострочный вывод
s = '' for x in [people[i] for i in range(len(people)) if participants & 2 ** i > 0]: s += x + ', ' return s[:-2]
0
b9923d22d5b6801dfb0a48ab4032b91f
a349e741f409a32ab77b38c1deef0ec6
# create function that does a linear regression, and outputs regression values into a dataframe
y <- df[,1] x <- df[,2] m <- lm(y ~ x, df); a <- sum(m$residuals^2) eq <- substitute(italic(y) == a + b %.% italic(x)*","~~italic(r)^2~"="~r2, list(a = format(coef(m)[1], digits = 3), b = format(coef(m)[2], digits = 3), r2 =...
0
62ee6db3c211c983e319cb708d425690
d68819c3ec5673b3ac123246730a7730
Creates an instance of MessageHandler.
constructor() { this.eventLookup = {}; this.messageHandlers = []; }
0
0a597494bc51438890098305a3d2c4c4
8cf19857225ddcf4aacf4ac982e1ca7c
Initialises a property set for the RTree index
{ AFX_MANAGE_STATE(gblERwinProxy.GetApiModuleState()); ERWIN_MANAGE_STATE(); ATLASSERT(m_pxParent->GetObjectId() != NullSCAPIId ); GDMObject xObject; m_pxParent->GetObject(xObject); memset(&m_vIdx,0,sizeof(m_vIdx)); V_VT(&m_vIdx) = VT_ERROR; _Context.SetDirty(); if(m_pxParent->Valida...
0
18c4817c3e69df69a23ed361f3e8b25c
5d22941f6d3fe020823f5ee23e5c597b
Recupera todos os vinculos de artefatos do tipo processo em caso de tramite externo para montagem da guia de tramite
List<String> getAttributeList(Long idProcessType);
0
9e2f23186c43c34731d6931f605fa035
e84993a93f127a413885cd3931ac420c
Метод для прослушки сообщений с API от Asterisk
class AmiBroker(OdooBroker): def handle_asterisk_event(self, event, manager): event_handler = getattr(self, 'on_asterisk_{}'.format(event.name), None) if event_handler: gevent.spawn(event_handler, event, manager) else: logging.error('Event {} handler not found!'.format(ev...
1
0da2770f98d4bce83a1e1bf83e1492a4
f43622bd31fcfeb0f8a24afb9115f0b7
>>>>>>>> Load Start Page form after clicking on button Odustajanje sa Prijave <<<<<<<<<<
namespace DriveIT public partial class frmVozilaDodaj : Form private void btnOdustani_Click(object sender, EventArgs e) { this.Close(); }
0
8b129200a4595013eccf6f5e2604dd49
fe21055447295f421dbe6481f2371af8
as the transformed frame's y axis
def flipy(y): return ymax-y
1
fd0e42c91229ced074573f49d149d391
8a64305506fab530635e582df16208cd
Настройки колод
self.cards_type = ['1-a-12', '1-b-12', '1-c-12', '1-d-12', '2-a-13', '2-b-13', '2-c-13', '2-d-13', '3-a-1', '3-b-1', '3-c-1', '3-d-1', '4-a-2', '4-b-2', '4-c-2', '4-d-2', '5-a-3', '5-b-3', '5-c-3', '5-d-3...
1
9cdba73913b168dfa69e2c24a62d5a50
3e75bda5bfec80733f42d29ff8018ba2
Sorts array using the quick sort algorithm and last element as pivot
def quicksort(array): if array: pivot = array[len(array)-1] pivot_orig = pivot pivot_index = len(array)-1 cmp_index = 0 stop_index = 0 start_index = 0 while pivot_index != stop_index: if pivot < array[cmp_index]: if pivot_index-1 ==...
1
08a2f0204a2bc162cdfc60d8b655551b
c4c8b7a4d5ff88b37379cb3d807b0365
Event handler for Mode->AutomaticLayoutAnalysis menu item.
{ ProgressChanged(0, 1); char separator; switch (_settings.Separator) { case Separator.Comma: separator = ','; break; case Separator.FullStop: separator = '.'; ...
0
39905df5763a3823a031be57695658df
282e7742c91c879aeeb211d9b37e3f7e
Mise à jour des champs "codes_rome_proches" et "codes_rome_envisageables" de la table "codes" grâce au scraping des fiches Pôle emploi
class Film def update_listes_js log "-> Film::update_listes_js (actualisation film list)" data_film = {} Dir["#{folder_fiches_identite}/*.msh"].each do |path| ifilm = Film.new(nil, :path => path) let = ifilm.id[0..0].ord let = 0 if let.between?(48, 57) data_film = data_...
0
be45e35c2ad464f78a07616b229a665c
df4ebd19669e74ad31eb9554f49a2cf2
test the exists method for a repo that should exist
def test_repo_exists(): assert repository_exists('rust-lang/rust')
1
ef4dbe0cbdac52fece4b09593b6c8d9d
9cfbf1c4dc85a554c19577503d919ce3
Return only the Continent with the corresponding id
class ContinentRepository extends BaseGeographyRepository public function getOneBySymbol($symbol) { return $this->findOneBy(['symbol' => $symbol]); }
0
eb98d15a9aecd667fe842a8abf9074cc
ba0f730a69f2a3d9fac602db8739c91b
Set gyroscope sensitivity.
void Compass::setGain(hmc5883MagGain gain) { write8(HMC5883_ADDRESS_MAG, HMC5883_REGISTER_MAG_CRB_REG_M, (byte)gain); switch (gain) { case HMC5883_MAGGAIN_1_3: _hmc5883_Gauss_LSB_XY = 1100; _hmc5883_Gauss_LSB_Z = 980; break; case HMC5883_MAGGAIN_1_9: _hmc5883_Gauss_LSB_XY = 855; _hmc5883_Gauss_LSB_Z = 76...
0
01e75cd50af31ec0b7eb7300d021dbf2
a0e301969f971ded0ad5af3b3b80cde9
Gets the amount of times a move has been rated This is a ported method from TestMovieRatings
public class Interaction implements Serializable public int getRatingCount() { return rating_count; }
1
8ecefba36cfbc1e696f696c65a9c34e4
b3255e145ea6a34fc9a6e1e91690353f
add() returns a new `Length` struct containing the sum.
impl TextSize pub fn checked_add(self, rhs: TextSize) -> Option<TextSize> { self.raw.checked_add(rhs.raw).map(|raw| TextSize { raw }) }
0
280148a8dede4fc91b4ed2e344a29a40
fb3799da4ee46a4fc41890f03f7f1be6
检测凭据是否超过每日限制(2000次/天)
class UserPasswordLimitCache: def is_limited(self): return self.get_times() >= AUTH_CODE_DAY_LIMIT_TIMES
1
d05d573a9a24f8a078a6a593396f6233
107ddfa6cf5f3a58e04e5c51fbaaf722
Factory method to create products in bulk
namespace ByteartRetailMini.Application IList<ProductDataObject> CreateProducts(IList<ProductDataObject> productDataObjects);
1
3c961e2c9db93a8b59ab9c25771ae04a
0f26dccb78c063e098f7240264ad9074
Get the distance left to travel on the spline.
namespace BeauRoutine.Splines float GetDistance();
1
2fef52149351b64b1468ce3b50377445
4c2678876337fea69c99fc507a463525
Add new colorpicker field to "Add new Category" screen
class Loose_Category_Meta function new_term_text_color_field() { wp_nonce_field( basename( __FILE__ ), 'loose_term_text_color_nonce' ); ?> <div class="form-field loose-term-text-color-wrap"> <label for="loose-term-text-color"><?php esc_html_e( 'Text Color', 'loose' ); ?></label> <input type="text" nam...
1
b4a45d443ac02bd85cb1a3484f48040b
6b5b60a6cbf947cc41ed97ff829a524f
Sets the password reset authentication code and automatically gives it an expiration time.
namespace Com.QueoFlow.Peanuts.Net.Core.Service void SetPasswordResetCodeAndSendEmail(User user, string baseLink);
0
5ea62c981e5cbd9aabd0cb72c40b7bd0
f9ce951a51255581cb8a9da78ace0315
(non-Javadoc) 处理当天未签到的排课信息
@Service public class GxhAttendenceInfoServiceImpl implements GxhAttendenceInfoService @Override public int handleUnSignAttendenceInfo() throws Exception { String onDate = DateFormatUtils.format(Calendar.getInstance(), "yyyy-MM-dd"); List<GxhAttendenceInfo> infoList = attendenceInfoMapper .queryUnSignAtten...
1
cf2d9bb71fa41c8cf82a76e5a7cf215b
b5c59f222a39a84e4a6ce9f7d70a9966
Refresca el dataset con los cambios en la tabla Tareas y EstadosTareas
namespace JiraTasksNegocio public class Negocio public void RefrescarTareas() { mySQLManager.RefrescaTareas(); }
1
78f0a11008444b8d17d63162b867d29b
9985ca789a2b396fa39a03e788d3db19
Handle a fatal crash. Here we try to save every player's state, and the state of the server in general. Note that we must be extremely careful not to have a crash in this function, or some things may not get saved. Also, this function may get called because some data structures are not in a "correct" state. For this re...
{ ResetSignalHandlers(); char buffer[8192]; char *p = buffer; p += seprintf(p, lastof(buffer), "Loading your savegame caused OpenTTD to crash.\n"); for (const GRFConfig *c = _grfconfig; !_saveload_crash_with_missing_newgrfs && c != nullptr; c = c->next) { _saveload_crash_with_missing_newgrfs = HasBit(c->flags, G...
0
c4377ceedb58b43f3fa2dc45e67e48e3
8dbfd87d5286af749766441f7d5f1c6c
the size of the footer depends on the logged state
public class FooterControl public String getFooterImg(WIContext wiContext, LayoutControl layoutControl) { String img = (layoutControl.isLoggedOutPage) ? "CitrixLogoDarkLoggedOff.png" : "CitrixWatermark.png"; return ClientInfoUtilities.getImageName(wiContext.getClientInfo(), "../media/" + img); }
0
18ba87126b6e4d88cb09f941a23d07b4
f976039c12e4ac6afeeb289c1a64d873
设置热评
@ResponseBody public Object setHot( @RequestParam(name="id",required=false)Integer id){ BookChapterPartComment bookChapterPartComment = partCommentMapper.selectById(id); if(bookChapterPartComment!=null){ int host=0; if(bookChapterPartComment.getIsHotComment()==0){ ...
1
958e484936e51b4ddf739cc2653b914e
05a96a2769bc6716124b79c4e784be7d
Set the name of the module of the main class (JPMS) - used for {@link ExecType#MODULE_PATH}
public class PackageSettings extends AbstractSettings public void setMainModuleFile(VirtualFile path) { _mainModule = (path==null ? null : path.getAbsoluteFile()); }
0
8a7fa0f11ebcb89e025b11757f1f060f
c4ff9459403ed62dfccb420f3196f148
키값에 value로 사용될 값이 오는 request를 board객체 배열로 가공하는 함수
class Board public function makeList($postValue){ $title = $postValue['title']; $content = $postValue['content']; $writer = $postValue['writer']; $image = $postValue['image']; $sql = "INSERT INTO wm_test SET title = '".$title."', content = '".$content."' , writer = '".$writer."' ...
0
1d45f8c212b8c9485f96ebf0ea2aba62
9e9f88e9468ba13675a4fbb12619f7fd
通过用户id获取未分类图片
@Slf4j @Component public class ClassificationHandler public List<Picture> getUnClassifiedPictureList() { return pictureRepo.getUnClassifiedPictureByUserId(CommonUtils.getUserId()); }
1
026ec2cbc888b98c24b5cfec3612d466
0bbc523bcf3522875d653184eae650f3
==================================================GETSKILL===========================================================
class ChatModel extends \MyApp\Model public function getSkillData($id){ $sql= "select * from skills where charId =".$id; $stmt = $this->db->query($sql); return $stmt->fetch(\PDO::FETCH_ASSOC); }
1
07669e2380da6b5ec93b4f70f6939837
4c47251b4c663eb857d6e437bb05155b
修改列表,使元素平方
def square_list(num_list): for num in range(len(num_list)): num_list[num] = num_list[num] * num_list[num]
1
a16748a8dd059fbf6b2ef87af8358aa8
a0956797ec4aa3c7df10c115f5c4a760
Set the collation function of the most recently parsed table column to the CollSeq given.
class Table public function collate($value = 'utf8mb4_unicode_ci') { $lastCol = &$this->cols[count($this->cols) - 1]; $lastCol['collate'] = $value; return $this; }
1
ebfea7e9da0177dc7e1fb9c7e7a331e4
87a2b082285804d02af95da9e93a92f8
change the expression each 2 seconds
function autoChange() { intervalID = window.setTimeout(printQuote, 15000); }
0
d745f78af31064f20c693f73a6dff1b2
9ec90c113dcd0ed5a79880d3fbeea3b0
Sorts FITS files by start date of observation
def _sort_by_start(fns): def start(fn): return int(fn.partition('start=')[2].partition('__')[0]) return sorted(fns, key=start)
1
0698b574429a8d8ed4289245e9064a3f
7fd8ca3db234b02c40e7370e8b6efde9
Updates the requirement stack.
void update(RequirementMachine rm);
1
55626287f44febe4eb202e82eb6912a9
e2611b47aa1ba26f1051f01a8368246b
获取欠费数据
$report = new Reports(); $missing = $report->getMissingCharge($this->_employee_id, $this->_year, $this->_month); $missing_unit = [ 'be_late' => ['days' => 0, 'time' => new TimeUtil()], 'Leave_early' => ['days' => 0, 'time' => new TimeUtil()] ]; foreach ($m...
1
a40010ae6940f7c734e517e2ffcc511b
b9072480716a044300f3d72e98e45583
Метод для генерации отсортированного массива с рандомным элементом в конце
{ int[] A = new int[length]; Random rnd = new Random(); for (int i = 0; i < length; i++) { A[i] = rnd.Next(1, 100); if (i != Array.IndexOf(A, A[i])) { do { ...
0
4bb6c6f6eb8191433ecb435cf7ce81e7
048ac7f597010961716861861fe5843f
Loads the json config for the classifier.
class CTPreprocessedDataManager(DataManager): def load_config(self): return load_json(f"{self.dataset_location}/config")
1
500d9940a13083b1628eddd6cec2b449
95dfbc66263a9fd86c9881d64647752d
根据产品类型Id获取所有上级信息
{ $array = [ ["product_type_id" => 0, "product_type_name" => trans("product.all_categorys"), "product_type_level" => 0], ]; $parent = $this->getParentType($productTypeId); $parentId = $parent['product_type_parent']; $array[] = $parent; while ($parentId != ...
1
ff15690ceaaa850585e2640bb0c9d21e
11c61f67f4214f4307f0f8aab9fc0d2a
Make a matrix stritcly upper triangular. Make a matrix strictly upper triangular by zeroing out lower and diagonal elements.
triu = ary(triu).flatten() indices = ary(np.triu_indices_from(mat, k=1)).T if inplace: for ij, ord in zip(indices, triu): i,j = ij mat[i,j] = ord mat[j,i] = ord return mat else: matcopy = mat.copy() for ij, ord in zip(indices, triu): ...
0
9ea7218e4cd38c1d40d578a30a8137c8
a3304b6d459c518725d9734e656f3bab
Make a register available for use again
ppc_reserve_register(struct ppc_function *p, int reg) { assert(reg < PPC_NUM_REGS); p->reg_used |= (1 << reg); return reg; }
0