query_id
string
corpus_id
string
query
string
code
string
label
int64
7814d5aceb8b89f29f7fbac42cb445f3
f5818f8547acfe6468ddaab6c9516798
解除周年光行差修正
public class KFB_HYGLDB public void FanHuiDLYE(string N_HYZH, decimal N_KYED, Hashtable htab) { StringBuilder strSql = new StringBuilder(); strSql.Append(" update kfb_zhgl set n_syed=n_syed+:N_SYED "); strSql.Append(" where N_HYZH=(select n_dldh from kfb_hygl where N_HYZH=:N_HYZH) "); ...
0
8dab4c348e7f3b16205a9957842ee676
41c48deab4048b98532ab835a3675c7c
Create a new Review for a CapabilitiesImplemented
boolean createReview(Review review) throws ServiceException;
1
9c116707c8e7579e322b34995e13caa6
c467c49c2b0e5544332827e1bb8d5cf2
Returns Matrix state of the pipeline.
public class Pipeline public String getStatus() { return status; }
0
1229b6bd53984dcf07c0aeb4f2ec08da
eb7f33506baa6c9efd8d529725ad0f70
Gets the running page
namespace SampleSpecSelenium.Utils [Binding] public class SeleniumExtender public IBasePage GetPage() { return currentPage; }
1
1ca44855c9f8c4b6963f7b70a69d0283
8ba7d7d495cd6b2949932cc0d75ff6ea
Get Athlete School Year property
{ return (prizeYear == null) ? null : prizeYear.value; }
0
be7cb17e086321d8b88541b129d918ed
876760ff6b586abc08f258bc24a75688
Set values of this data buffer to the given values within the specified bounds.
void SetData (List<Vector2> values, Vector2 xAxisRange, Vector2 yAxisRange);
1
28a2b3834278db5043e715e1ad54ac20
a21d389e89fd70b39730d717cc7cd994
=================================================================== Method : Cpu_Cpu_ivINT_Reserved10 (component MK70FN1M0MJ15) Description : This ISR services an unused interrupt/exception vector. This method is internal. It is used by Processor Expert only. ======================================================...
PE_ISR(Cpu_ivINT_Reserved10) { PE_DEBUGHALT(); }
1
b3f5b158f0a2999c5a13160fe682da6b
7cf5a5cf55c3e9a0f3260f0a066923a8
Apply filters to a string
class CTextFilter public static function Filter($text, $filter) { $markdown = false; foreach ($filter as $value) { switch (trim($value, ' ,')) { case 'markdown': $text = self::Markdown($text); $markdown = true; break...
1
1220128897f6d2c0fa2fcb8a460d9242
0994c3d1c6198b404ed0fdc95a25b5c6
This method handles the exit Button. When the user presses the exit-Button, a pop-up window appears and stops the game.
public class MainController implements Initializable public void exitSystem(ActionEvent actionEvent) { Alert alert = new Alert(Alert.AlertType.CONFIRMATION); alert.setContentText("Are you sure you want to exit?"); Optional<ButtonType> userAnswer = alert.showAndWait(); if (userAnswer.isPr...
1
07dfae3861c1df4301ca974a87e8847a
f072522c300ccf2a64e76f0d35780037
Забрать все деньги из кошелька.
class MoneroWallet public async sweepAll(params: WalletTypes.IRequestSweep) { return await this.request<WalletTypes.IResult<WalletTypes.ISweep>>("sweep_all", { ...params, }); }
1
965c2a6d156f439051e66aaaa302ad75
26c573dc8d4f972740dfe6e4ed45da03
Create blank blue color Image with size 256x256
def emptyImage(): return np.zeros((512, 512, 1), np.uint8)
0
1fcca1735f56b85b749a4e33926e85df
0d00d82168f68cfb7d4d6d28c78d0f32
Convert an integer to uint8.
if (i<0) return 0; if (i>255) return 255; return (u8) i; }
1
e59b10ee267196e16f0568d85e496421
e68004fbd9417832c49b3581b8fbe42f
Getter for <code>calc.category_level.caption</code>.
@ASourceMachine public class FStatisticsFinancialCustomerPhaseUnit extends FLogicUnit public String departmentLevel1Label(){ return _departmentLevel1Label; }
0
cd2a7cf0a6a6f6de85527d61f46223f0
c5ace9ba09798ee1ca0b67e32e707e20
creates new custom pipeline. Will run stages in the order of which they were declared
class PipelineFactory extends BaseFactory createClass(config) { return new Pipeline(config); }
1
c0099e174417e2efac7889f2cebeb915
738f0b767f96dec73963a9f9d852067e
ボーンごとのアニメーションを削除する。
{ if (go == null) return; Tween [] ts = go.GetComponents<Tween>(); for(int i = 0, cnt = ts.Length; i < cnt; ++i) { Object.Destroy(ts[i]); } }
0
706248878d777b2101af0203f691143a
e11bd5416a22c4912bb87c99adf4f72d
Utility to get a token good for updating a specific entry from a specific table for one day.
if(!$this->ApiSession->getVar('raw','token') || (!$this->isMobile && $this->ApiSession->getVar('raw','token') && ((((string)strtotime("now") - $this->ApiSession->getVar('raw','tokenTimestamp')) / 86400) * 24) >= (30 / 60))){ $token = $this->ApiHelper->getUniqueID(); ...
0
73f0e4f2e5085086b7c0a8e675f38901
8b99ba671fe8be7204b24c4871f1bcce
Создает сниппет
class DB_Query{ public static function getSnippet($snippet){ return new DB_Snippet($snippet); }
1
5f046dcfe533b49af99db8ce30bf1ec1
c89d726dc31b29a4b440923502cba5dc
Writes a list of doubles to the stream.
void writeDoubleSeq(double[] v);
1
b60bf879b4a51b426920624532238d29
88afea70a2059daf126e831540da57ee
Generates SQL query to select output from a table
function generate_sql_query($file) { include("$file"); foreach ($cols as $k => $v) { $string .= "$k $v,\r"; } $string = substr(trim("$string"), 0,-1); $sql_string = "CREATE TABLE $table_name ( $string )"; return $sql_string; }
0
95d22d9290c8cb70fa71187644701908
efadb76e3faaffbe170c5babeca210a7
Persists the column widths in localStorage
class TableBox extends BlockBox protected function saveState(array $rows) { $this->beforeWidths = []; foreach ($rows[0]->getChildren() as $columnIndex => $column) { $this->beforeWidths[$columnIndex] = $column->getDimensions()->getWidth(); } return $this; }
0
ecd6c7c662a7bf2a24a3a4403995006f
80307de5e35c5886b2dc7f31afcf0ccb
remove any malformed or empty intervals
namespace SMP.ViewModels public class ManagerReportViewModel private class IntervalsSet private bool NormalizeAddition() { var toRemove = new List<Interval>(); Interval newInterval = null; foreach (var lvlOne in Intervals) { ...
0
33db1f68973cbbcb1401179984fbc6bd
1b53a336d520e72d3a36f882dca087c2
Obtiene los Municipios de un Estado
{ if ($idestado !== NULL) $sql = "SELECT * FROM municipio WHERE idestado = '$idestado'"; else $sql = "SELECT * FROM municipio"; return ejecutarConsulta($sql); }
1
f45e99f4ce991478e9be06085902627c
83d4a6ccc8056676120468f929a16071
Pauses the polling of the bot for testing purposes
def bot_thread(): bot.polling(none_stop=True)
0
f4ef163993e0cdf9d6b47517f02ffd7c
b3a5e07aefc60fe5680809ab11b1d268
Getter function that calls the value of End 1.
public class SpecificDateWorkingHourBean public String getEndTime1() { return endTime1; }
1
664ae18de9a0e6744938eb2d455afa10
308d0d48b951b6276ab2593d2207fdd9
将毫秒时间格式化成 yyyy-MM-dd HH:mm:ss
public final class DateFormatUtil public static String toYMDHMS(final long mills) { return formatWithoutException(new Date(mills), ISO_DATETIME_NO_T_FORMAT.getPattern()); }
1
d6295ea4511f4447025ab31c8c7910a3
690fc6366153d7f6d2f4f3b15707077b
Connect to a specific caretaker.
public class Room extends GamePiece{ public void setCaretaker(Caretaker newCaretaker) { this.caretaker = newCaretaker; }
1
252502664f7da292470e8f76f0f1208c
8dc5c73aaea14f3b712a41d5fe86702c
Delete the active widget set and allocates a blank one. Must be called before any other GUI functions are called.
{ uint32_t dw ; for ( dw=0 ; dw < WGT_MAX_WIDGETS ; dw++ ) { if ( pScreen->apWidgets[dw] != NULL ) { WGT_DestroyWidget( pScreen->apWidgets[dw] ) ; pScreen->apWidgets[dw]=NULL ; } } pScreen->dwWidgets=0 ; pScreen->pWidgetOld=NULL ; pScreen->pWid...
1
4d17d5eeca61b15e4c35b1951d2904d2
7f959af0550a1b699be8a1c7d01f5b13
打开帮会日志
function GuildController:handle13513(data) message(data.msg) if data.code == TRUE then self:openGuildOperationPostWindow(false) end end
0
35e79e6de4cd9d5fa2c41afceb268ceb
7a3a0b971b15cbe3c07854d400e664d7
弹出表尾
public class CMapList<T> where T : class, new() public void Pop() { if (m_DLink.Tail != null) { Remove(m_DLink.Tail.t); } }
1
e54bf8ae473628652b80fc0298540ff1
1200951aa25f54e91887fc1a2d8839ef
通过类型名获取ILog实例。
namespace Com.Ctrip.Soa.Caravan.Logging ILog GetLogger(Type type);
1
8394107a9b32ab90e8410c07b5bfed78
f44979400bca8ae02c02bdccead6f481
carts cannot contain repetitions
class CartTestCase(unittest.TestCase): def test_add_twice_to_cart(self): cart = Cart() cart.add(self.product, 1) cart.add(self.product, 1) self.assertEqual(2, cart.items[0].count)
0
55899e28b5fb0bfec1d914990e525248
c5b302a920ac01d708be8112cf123b9c
如果某名的checkbox至少有一个 checked=true 则返回 true
function anyChecked(boxes) { for( var i=0; i < boxes.length; i++ ) { if( boxes[i].checked == true) { return (true); } } return (false); }
1
7d5b2c0756e797eee30d5e005ce87b4f
5f967133fb151f6887f70d482c2ee7f8
Returns the packet length field of the received packet.
int getPacketLength();
1
2fa69f52b8babcb9416c7922a31ecc91
32708a244fb82eb7f3b5f354e0a577b7
绝缘电阻测试
{ try { for (int i = 0; i < this.SWCount; i++) { SWControl[i].ChannelVoltSwitch(3, 0); Thread.Sleep(15); } for (int i = 0; i < this.SWCount; i++) { ...
0
e0814bc4eacabf736cdb30a7a51fed83
dd3ec6e99aaca6a808c3b71ad5377e12
gestion des passagers liés à une réservation.
public class DepartureTerminalEntrance public synchronized void nPassengers(int idVoo){ this.pTRF[idVoo] += 1; }
0
237d3d03effdee3ce187e79eb4203b9a
100341272338eb163861b8bef49e8794
Метод проверяет работает ли листенер.
@Singleton public class HttpManager private boolean isListenerExist(List<WeakReference<ProgressListener>> progressListeners, ProgressListener listener) { Iterator<WeakReference<ProgressListener>> iterator = progressListeners.iterator(); while (iterator.hasNext()) { WeakReference<ProgressList...
1
b823349b1ff7cb6ca656d6a6af079c8b
7d4c355db3759f8b18cf109e5533588b
The message group id of the queue.
public abstract class AbstractMessageListener<K, V> implements AcknowledgingMessageListener<K, V>, ConsumerSeekAware public String getGroupId() { return groupId != null ? groupId : topic; }
1
4c8f2ebbc72472de5c7bc0ce1daa9193
dcf3c4d485a344464a3a25377173c733
Ouve o servidor para buscar novas mensagens
class Chat(Screen): def receive(self): while True: try: msg = cliente.recv(1024).decode("utf8") print(msg) if msg == 'Ja existe um usuário com este nome. Por favor tente novamente com outro nome': msg = 'Ja existe um usuário com est...
1
d4c2b623f2747f3344b1cf08bc729c8c
2c3faff55608835bf8df03fa4f840ac9
! @brief Initializing DSP core. Power up DSP Enable DSP clock Reset DSP peripheral
{ CHIP_Init(); #if defined(_SILICON_LABS_32B_SERIES_1) #if defined(EMU_NO_DCDC) EMU_DCDCPowerOff(); #else EMU_DCDCInit_TypeDef dcdcInit = EMU_DCDCINIT_STK_DEFAULT; EMU_DCDCInit(&dcdcInit); #endif #if (CORE_CLOCK_SOURCE == HFXO) if (CMU_ClockSelectGet(cmuClock_HF) != cmuSelect_HFXO) { #if defined(_EF...
0
e848dc6a0ccafa41a138406e51d02b72
d71923c2dde2e4fc056fd9ff4d4c48cf
若点击某项,将某项的值设置到搜索框中并提交表单
function selectItem(number){ var inputdata = {'country' : result.data[number]} sendAjax('http://localhost:3000/search', inputdata); document.getElementById("searchItem").value = result.data[number]; document.getElementById("searchItem").focus(); var d = document.getElementById("listarea"); d.sty...
1
1acab4ef6ea2d0c8ab6b86a197350a7d
cf2348d245ff2e6b404588e8d1441f9b
propagate the bank/pclath register value to the destination
cpld_init(void) { *pBank_Reg = (1 << B1P1); *pSPI_CS = 0xFF; }
0
ee46a0b1a3bc156d5e87731832c0f3bf
0b0c7f7af788311a09900f3a1a5491c6
returns a list of alt names
public class Vehicle public List<String> getAlternateNames() { return alternateNames; }
1
f4b89e4da07bddf972f977cecf07961c
1f835ff4adf95abad1e64741bb4317ad
Удаление коллекции постов с указанным префиксом.
res = CommandResults("Успешно") for post_id_str in args: post_id = int(post_id_str) await DB.delete_post_by_id(post_id) await client.delete_messages("@" + config.MainChannel.USERNAME, message_ids=post_id) logging.warning(f'Deleted post: {post_id}') ...
0
c3b3f4400eac9345d63368385b8c6a41
c04af7dcc510d3985ccd381cc56594f2
Set default reservation form
class ReservationType extends AbstractType public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(array( 'data_class' => 'RentProductsBundle\Entity\Reservation' )); }
1
75286bf278890bf593091e4618289981
a4c719c398351d1b7c332ebf83215205
Extract the text value from the given DOM element, ignoring XML comments. <p> Appends all CharacterData nodes and EntityReference nodes into a single String value, excluding Comment nodes.
StringBuilder sb = new StringBuilder(); NodeList nl = valueEle.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node item = nl.item(i); if ((item instanceof CharacterData && !(item instanceof Comment)) || item instanceof EntityReference) { sb.append(item.getNodeValue()); } } retur...
1
e86e85387c161ad998f09d60347bedd3
7a9f6c4e4a6e28c15ad38f05fbc25322
Update the chat message to the latest schema version.
{ ApiResponse<LatestMessageModel> localVarResponse = await UpdateMessageAsyncWithHttpInfo(latestMessageId, model); return localVarResponse.Data; }
1
5bec5e2943e7d9e5e59d1851c25197dc
1a77321eea65388a148502d8898d3237
判断数组参数是否为空数组(只有是数组类型的参数才能传入).
class JYKeyword private function checkArrEmpty($args) { if (empty($args) || ! is_array($args)) { self::errorMsg(- 11, "要处理的数据,格式有误,或为空"); } return true; }
1
37cd650f46f4553cbe96d21e46696e4c
d8e17bf3f79555e3cea7885f040f744e
文件是否需要修复
public class RepairUtil public static boolean isFileNeedRepair(File file) { RandomAccessFile randomAccessFile = null; Document document = null; try { randomAccessFile = new RandomAccessFile(file, "r"); if (file.length() < 10) { randomAccessFile.close(); return false; } randomAccessFile.seek(fi...
1
0428ed780ac23a03ff784aa713993403
aee7c89bebbee84bebe0e5539e29f089
Adds a has_Description_Material property value.<p>
public com.ibm.adtech.jastor.Thing addHas__group() throws com.ibm.adtech.jastor.JastorException;
0
b3625173ca5a119a4662284ddf121b11
36d5feaa3da0bbb0e486d34f979fc47a
Returns a valid shell function name, or the empty string.
function function_name($param) { ; return ""; }
0
110145a7f1c5acb08ae1e591429195b9
d140dfa9e56b1a8f1509546512812bb2
Configures the storage of subscriptions in Amazon S3
class SubscriptionArgs: def cloud_storage_config(self) -> Optional[pulumi.Input['SubscriptionCloudStorageConfigArgs']]: return pulumi.get(self, "cloud_storage_config")
0
48d5c3f3e2a6ab7066325ecb7392bbd1
9de4e69de44d88a346ebf430789a23f7
<p>enq220DefDateMonth をセットします。
public class Enq220ParamModel extends Enq210ParamModel public int getEnq220DefDateYear() { return enq220DefDateYear__; }
0
67b7063a25283eadeab891ebc45094f7
acc124eac02ee05fb8773df0e3ef0c3f
验证最多小数点后一位
var reg = /^\d+(?=\.{0,1}\d+$|$)/ if (reg.test(val)) return true; return false; }
1
7eb892c444b49f0665b7433d0a65625b
7e57238feb587f558aea47842f9050c0
Get the mime resolver
public function getMimeResolver();
1
d82553d73bdb3cdd00ee96bf903bc6d6
f385139a3378d9d6834ab6e6784fdf24
Sets request_permission_to_unmute
class UserInMeetingSettings implements ModelInterface, ArrayAccess, \JsonSerializable public function setRequestPermissionToUnmute($request_permission_to_unmute) { $this->container['request_permission_to_unmute'] = $request_permission_to_unmute; return $this; }
1
fb22291fc54db1be22febcf918461f69
1591dd8089064475729806af00847cb9
tato metoda mi vytvori combobox s moznostami akeho specialistu si mozem vybrat
public class DoctorsController implements Initializable @Override public void initialize(URL url, ResourceBundle rb) { comboSpecialization.getItems().addAll("Pychologist","Psychiatric","Gynaecologist" +"Pathologist","Cardiologist","Orginologist","unspecified"); comboSpecialization.getSelecti...
1
5aeacf1a68438a95f239346350465da3
366d8173558c63b8f4ba71b08c05348d
获取相邻顶点
int getAdjVex(struct EBox * p,int v){ if(p->ivex==v){ return p->jvex; }else{ return p->ivex; } }
1
afcef7f6e81ca50e1eb0443ecf799802
feb65d4ee95fe74996246096d741c7d5
GET: vLeaves
{ var requests = _context.Requests .Include(r => r.Leave) .Include(r => r.Employee) .Where(r => r.Leave.EndDateOfLeave > DateTime.Now) .ToList(); return View(re...
1
4c162ca97fb6a788eeb4e83a45d2d996
9e70ef992830b5b17970308fc6a2a90c
for plus_minus
function plusMinus($arr) { $r = [0,0,0]; foreach ($arr as $item) { if ($item > 0) { $r[0]++; } else if ($item < 0) { $r[1]++; } else { $r[2]++; } } $s = array_sum($r); $res = [round($r[0]/$s, 6), round($r[1]/$s, 6), round($r[2]/$s, ...
1
1d9a1e788550722d980f98c5daa1ed84
af76ed5c0f26366c3389a4a24e28ecc1
https://stackoverflow.com/questions/9433541/movsx-in-python
uint swap(uint x) { uint x0 = (x >> 0) & 0xff; uint x1 = (x >> 8) & 0xff; uint x2 = (x >> 16) & 0xff; uint x3 = (x >> 24) & 0xff; return x0 << 24 | x1 << 16 | x2 << 8 | x3 << 0; }
0
98b261a688e5a93e8ce5e7fea8a5abce
66eaf9e8bb6cc90b4ea4a2611df854b4
Custom sort based on first number in each line of summary.txt file
class ScriptBasedTokenTensorizer(Tensorizer): def sort_key(self, row): return row[1]
0
f7d318169eaaa60777dbb4e6d4312b65
aaaf2fb783a3e6f5168e569a2ee379e7
關閉全部程式
namespace IchigoJamKeyBoard public partial class GetForm : Form private void closeAll() { MainForm.HookEnable = true; this.Close(); }
0
b70f8cf3659a8d440a6bfce25684a71f
e5687e51c22e3ad9200518fa7051e37a
palindrome in a array using recursion
string ans=to_string(A); string rem=ans; reverse(rem.begin(),rem.end()); if(ans==rem){ return true; } else return false; }
0
4d7aeddeeedfadaa60ce4b9b3bf394b2
ba2e8e93e6ac2dd09caca1d1f207551e
parse an XML declaration header for external entities [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>
void DocumentCacheImpl::XMLDecl(const XMLCh* const versionStr, const XMLCh* const encodingStr, const XMLCh* const standaloneStr, const XMLCh* const actualEncodingStr) { }
0
063d47091887f1376805ee822ecfe6ad
77833bd512b086c0ddb83dac2919ec32
r""" Get all keys as a tensor.
class TFCDict(OrderedDict): def toArray(self): return np.hstack([k for k in self.values()])
0
f900e64a70980ffc44801e4229cfa19a
1e2d4ccf4488640e5fac84ee832a171f
Opens a Session between an application and a token in a particular slot. use <tt>CKF_SERIAL_SESSION | CKF_RW_SESSION</tt> for read-write session. * If called with block, yields the block with the session and closes the session when the is finished. * If called without block, returns the session object.
struct OpenCDMSession* result = nullptr; if ( (system != nullptr) && (system->WaitForKey (length, keyId, waitTime, OCDM::ISession::Usable) == true) ) { OCDM::ISession* session (system->Session(keyId, length)); if (session != nullptr) { result = new OpenCDMSession(session); } ...
0
63fc45f5a5678dfa2708d7b081535302
139011c86bc9ff4977a4ae853a652543
spawns a volley of snowballs at the top of the screen
ParticleEmitter* explosion = new ParticleEmitter(80); explosion->startColor = Color(1.0f, 1.0f, 1.0f, 1.0f); explosion->endColor = Color(1.0f, 0.4f, 0.4f, 0.6f); explosion->position = Vector(player->x, player->y, 0.0); explosion->velocity = Vector(cos(player->rotation + (90.0f * (PI / 180.0f))) * -1, sin(player->r...
0
9602ecd5a6967501e3f0280a6f08642f
ccf859bf074928310b14b618f4ab6bf7
initialize all the information into the inventory bin array
{ int i = NULL; char szQty[32] = {0}; for (i=0; i<324; i++) { pSlot->ChocoStore[i].ItemDigit = m_InvItems.GetItemData(i); m_InvItems.GetItemText(i, 1, szQty, _countof(szQty)); pSlot->ChocoStore[i].Quantity = strtoul(szQty, NULL, NULL); } }
1
95b365c8ef2334c8c45c10ddc9877742
a3468136d5c548ca347befd38323d609
this method expects a proc
def my_method(&the_proc) the_proc end
1
feba3bc216f63ed7a2b5990b881c3331
67b0c51fdc3a7b938b88299d40a69238
! \fn void astarList_set_on_first(astarList * l) \brief Set the current cursor of the list on the first item
void start(list *l){ l->current = l->last; }
0
f3b5367b1a9b32ecd8192f70516e4d7d
9b44947254005b2043d7a62a0daa5eea
join the array guessingWord to a string
function dashedLine(wordGuess) { for(var i = 0; i < wordGuess.length; i++) { dashedArray.push(" _ "); document.querySelector("#game").innerHTML = dashedArray.join(" "); } }
0
17d39565ecb87d7939b7f11a6dbe86ce
4bbea7bb72daa3738d319f06faeb3746
Trigger a callback from the kernel to propagate the event out to listeners. This allows us to use a single uniform model for all run events (even when some are really originating here in SML).
function KernelListener() { }
0
ded5435cdb7558e5d926d74a91e7e3cd
8f697fba56ad9e18b1f6ff28824096b1
Flags an outlier according to a percent difference threshold
function isOutlier(num) { return ((num < LOWER_OUTLIER_THRESH) || (num > UPPER_OUTLIER_THRESH)) }
0
c99c9ae46f68ba3cc064bb2dcfb74248
379e4bf43edb20acc65774f01f745093
Gets the available display location options.
namespace Growl.DisplayStyle string[] GetListOfAvailableDisplays();
1
5e8ea5e69b6358669fd9e28f81f2f69e
bcba84c406c3b40d80fc18af5334be8d
Obtiene la lista de todos los adjuntos.
public function get_Adjuntos();
1
8565d3d4df71e8e91fe116399a3db75a
8801c6aaf2e8064701c17f8f241c13f3
Try for an exact match first:
class SearchService def exact_match?(name1:, name2:) return false unless name1.present? && name2.present? a = name_without_alias(name: name1.downcase) b = name_without_alias(name: name2.downcase) a == b end
1
944f00f6b6d5141a070074bd8496b1d1
23e6bfea428fb0a3ed1305238ab239d8
Fits a line to the log CCDF and returns the slope. cdf: Cdf of RDT
class Bootstrap(object): def log_lin_fit(self): log10_y = pl.log10(self.tmp_y_arr) fit_params = pl.polyfit(self.tau_arr,log10_y,1) return fit_params[0]
1
d6e44193f63c375aa3b8126e6ace7939
bb1ce0136c09b2e5ba7cc44b3ab1bd1a
跳转到添加FdMemberDoctorSh页面
public class ZybRecheckExclDiseaseItemAction extends BaseAction implements ModelDriven{ public String addRecheckExclDiseasePage() throws WebException,SQLException{ return SUCCESS; }
0
c712350b345ce1f81d5b000a9c04084f
91693971483da5e499e68b2a21e83abb
Collect WebSdk Order Parameters
$_params['order_from'] = $_order_from; $_params['sc_password'] = input("sc_password")?input("sc_password"):''; $_params['sc_price'] = input("sc_price")?input("sc_price"):0; $_params['is_paypal_quick'] = input('is_paypal_quick')?input('is_paypal_quick'):0; $_params['is_buynow'] = ...
1
252d6c97807b8bbfbdbcb7fae79c3ea0
dc924226ba2b2dda44b40053fe04f952
Metóda zistí počet roomiek pre daného usera
let count = 0; users.forEach((element) => { if (element.room === roomname) { count++; } }); return count; }
0
443dcacc8a466b6bb084f54c42017c6e
989cf2d45c3ef9f7a5b5524fac229412
HostPCが立ち上がっているかの確認
{ var cmd = @" if xhost >& /dev/null ; then echo 'True' else echo 'False' ; fi"; var rs = cmd.RunAsShell().Replace("\n", ""); if (rs.Trim().ToLower() == "true") { return true; } ...
0
b60270e5c343a69e464a8b0015e6abd4
0b11051a59358feabc647cc094b78008
Does the HTTP get to etcd to get the keys at the path specified.
def read_etcd_key(config, key_name, key_path=""): value_list = {} try: client = etcd.Client(host=config.ETCD_HOST, port=config.ETCD_PORT, allow_redirect=False) r = client.read(str(key_path) + str(key_name), recursive=True, sorted=True) for child in r.children: try: ...
1
57984e8cf50df85db7c62dc880503175
f6b7811587bc6e8576826f5b41b2e446
选择指定聚合字段返回实体,单个聚合字段或多个聚合字段的匿名对象,用法: <code> repository.From&lt;Order&gt;() .SelectAggregate((x, a) =&gt; new { OrderCount = x.Count(a.Id), TotalAmount = x.Sum(a.TotalAmount) }) .ToSql(out _); </code> 生成的SQL: <code>SELECT COUNT(`Id`) AS `OrderCount`,SUM(`TotalAmount`) AS `TotalAmount` FROM `sys_order`</code>
namespace DotMaysWind.Data.Command public sealed class SelectCommand : AbstractSqlCommandWithWhere public SelectCommand Query(SqlAggregateFunction function, String columnName) { this._queryFields.Add(SqlQueryField.InternalCreateFromAggregateFunction(this, function, columnName)); retu...
1
1e4153d942332e38173b5c24d659c4f4
2761be89e4457bfa1662ba6b17a9e42e
Xóa phòng ban
namespace QLHoiNguoiCaoTuoi public class KhuPhoDAO public void Delete(KHU_PHO o) { using (Entities db = new Entities()) { db.SP_KHU_PHO_DELETE(o.MA_KHU_PHO); } }
0
abcd87fb972b46f337f5b6a310e0c1d3
3722700e19f2fc1c9ba64f91b5d79225
Migrate old cell Auth() data into a HiveAuth().
if p == nil { return nil } obj := &beta.ClusterMasterAuth{ Username: dcl.StringOrNil(p.Username), Password: dcl.StringOrNil(p.Password), ClientCertificateConfig: ProtoToContainerBetaClusterMasterAuthClientCertificateConfig(p.GetClientCertificateConfig()), ClusterCaCertificate:...
0
986a386faa35cb54231d05bb0df45d64
c3016d1accfaedfc71551d401e398a17
Remove all the pending queries with arrival time earlier than the deadline
{ bool any_erased = false; const auto now = std::chrono::steady_clock::now(); auto it = registered_queries.begin(); while (it != registered_queries.end()) { if (it->second.publisher->get_subscription_count() == 0) { if (query_grace_period < now - it->second.last_registration_time) { ...
0
239d3c93a925956131692f5eac9b470e
c4e686cacab175f53e8420636e26f95e
Insert hyphens into given license id or activation request to make it easier to read
let result = ''; for (let i = 0; i < value.length; i++) { if (i && /[A-Z]/.test(value[i])) result += '-'; result += value[i].toLowerCase(); } return result; }
1
7a98357863b0949bae4507a30e55356c
d18f56c9b0157628f9b775e4d16ec4d2
removes all blocker objects from the scene
{ var objBlock = GameObject.FindGameObjectsWithTag("Block"); for (int i = 0; i < objBlock.Length; i++) { Destroy(objBlock[i]); } var objLine = GameObject.FindGameObjectsWithTag("Line"); for (int i = 0; i < objLine.Length; i++) { Destroy...
1
5228b0f8d6378f9f3d170f11c01c4610
37f24e5b0d44acaac356e34327a94e5c
Launch the template this object represents in CloudFormation.
def cli(self, parameter_overrides, stack_name, output, template_file, config_file, config_env): do_cli( parameter_overrides=parameter_overrides, stack_name=stack_name, output=output, region=self.region, profile=self.profile, template_file=template_file, )
1
dd097e9788474c640a6f3ff37371b7b7
4927b5d0f4e9a4531d1551537c2f65c7
As each button in the command field is created, it detects if the button is the delete button. If it is, an attribute is added to make a javascript prompt display to confirm the action when pressed.
var displayDeleteButton = document.getElementById('display_delete_button'), displayDeleteAllButton = document.getElementById('display_delete_all_button'); displayDeleteButton.onclick = deleteDisplay; displayDeleteAllButton.onclick = deleteDisplayAll; }
0
21dc7a99628a9d17b371af51112561b0
270987c8dd4ec09d0cc0d66a537913fe
Given data X calculates the initial centers Two options available: 1. Sample centers uniformly at random 2. Sample centers using k-means++ initialisation
rgen = np.random.RandomState(self.random_state) datasize = np.shape(X)[0] datadimension = np.shape(X)[1] if self.init == 'random': centroid = X[rgen.permutation(datasize)[0:self.n_clusters], :] elif self.init == 'k-means++': centroid = np.zeros([self.n_clu...
1
e9b8501d22250fad17a37a302ab1a825
4324b101cb55ab5cdfc57854174892e8
是否合法访问,不合法访问抛出异常
{ $localTime = time(); if (!isset($_GET['time'])) { throw new Exception('访问时间不能为空', 400); } $requestTime = $_GET['time']; if (!$requestTime) { throw new Exception('访问时间超时', 400); } if ($localTime - $this->time > $requestTime || $localTi...
1
80d7041fbe46d2a994d858faef4d29b5
3deb536afd0eac4e34050e5f3703fa09
根据厨师id获取厨师的信息
int pagecount) { ChefBean chefBean = null; List<NameValuePair> postParameters = new ArrayList<NameValuePair>(); postParameters.add(new BasicNameValuePair("page", Integer .toString(page))); postParameters.add(new BasicNameValuePair("pagecount", Integer .toString(pagecount))); postParameters.add(new ...
0
b040342c3ce35a272d7ef7c854f26f80
5dbdf26975376f7427abe20fbe5c1ab6
Sets the visibility of the pseudo adiabats.
public class WWindPanel extends javax.swing.JPanel implements PrefRestorable public void setAOIVisible(boolean flag) { aoi.setEnabled(flag); moi.setEnabled(flag); }
0
cf268229f99c0b19dcf3ca9aa9d0719b
24cc2cd71bc2f0110f1e1a9dfadd5075
To verify whether the given communicator is a rectangular communicator. Copied from mpid/bgltorus5/src/coll/mpid_collective.c:MPIDI_BGLTS_findRect(). The reason for not using using comm->bglts.rectcomm is NOT valid: was not sure whether every communicator tried to construct the comm->bglts.rectcomm. Can go further: giv...
MustParallelId pId, MustLocationId lId, int aId, MustCommType comm ) { I_Comm * info = myCommMod->getComm(pId, comm); if(info != NULL && !info->isNull() && (info->isPredefined() || !info->isGraph())) { std::stringstream stream; stream << "Argument " << myArgMod->getIndex(aId) << " (" << myArgMod->g...
0
86349ffd5fc764487d4acdd3956165a5
f3ad60f5bd8984803858e8f57c113274
Tests bijective coordinate conversion.
class CoordinateReferenceTest(unittest.TestCase): def test_CoordinateConversion(self): f = self.f.copy() cr = f.construct("standard_name:atmosphere_hybrid_height_coordinate") cc = cr.coordinate_conversion _ = repr(cc) _ = str(cc) domain_ancillaries = cc.domain_ancillaries...
0
69af7668670d426c760c1cc046592849
11a9aa1e7c9656b6114b22415c714475
调整字体大小,使其适应文本框的宽度
function TreasureTrainRefineLayer:_adjustFontSizeAndDis() for i=1,3 do local strDes = self["_fileNodeAttr" .. i]:getChildByName("TextName"):getString() if string.find(strDes," ") then strDes = string.gsub(strDes, " ", "") self["_fileNodeAttr" .. i]:getChildByName("TextName"):setString(strDes) end local ...
0
b25beccae55c97eef824940159240ee4
397583b26fd9cc0f3762d57b9e61f48d
Returns an array of all of the airport codes in the route.
class FlightTrip extends KFormModel public function getTripAirportsIataCodes() { $iataCodes = []; foreach ($this->segments as $segment) { if ($segment->departureAirportCode != '') { $iataCodes[] = $segment->departureAirportCode; } if ($segment->arr...
1
55e83c419544da80eb7dab5e73623e0c
58db737b3e046ad4db5efb0aa8de1029
Formata uma data de banco em data para o usuário
class Usuarios extends BaseUsuarios public static function formatDateTimeToDb($datetime) { $tmp = strtotime(str_replace("/", "-", $datetime)); return date("Y-m-d", $tmp); }
0
b26b92cc540d039cfaebfbac85277d9c
e4fe4f0d9b8d73dc3fdf311bf15e2ab3
不当机更新leader,auto模式。一个leader和一个follower,测试changeleader的结果
let f = 0; let replicas = get_replicas(f).await; let repl = &replicas[0]; assert_eq!(repl.n(), 1); assert_eq!(repl.quorum_sz(), 1); assert!(!repl.is_leader().await); assert!(!repl.is_candidate().await); assert_eq!(repl.get_leader().await.unwrap(), repl.id(...
0