query_id
string
corpus_id
string
query
string
code
string
label
int64
bb0f25389e04593ba77892b631d259ee
789ed503dacfc768d5ac01e40dce8d50
退出当前账户提示框
$('#dialogMove').css({ display: "none", }) $('#mask').css({ display: "none", }) $('.weizi').css({ zIndex: -1000 }) if ($('.ui-dialog-input-username')[0].value && $('.ui-dialog-input-password')[0].value) { $('.top .top_right').children('li').eq(0).html($('.ui-d...
0
10a05a37adba02dcd33fc88c44154d5e
9189ac88206140354bc4184c1e95a299
closes the panel.
public class LoadGamePanel : MonoBehaviour public void closePanel() { LoadPanel.gameObject.SetActive(false); }
1
7a470a8ace012dd84e42afdeec6777f1
1b9849b472842befcd5940dcb8f1032e
Returns current_user if any, or None
class UserServices: def get_current_user(self): return self._user
0
a4f98225a7dd2d3fce026b0005f9f722
322e6d923bc2a5b1ea9072c6caa32646
Sorts the gates of a polar code by their probabilities descending.
order = np.flip(np.argsort(np.abs(self.weight_means).max(0))) self.weight_means = self.weight_means[:, order] self.weight_vars = self.weight_vars[:, order] self.active = self.active[:, order] self.pi = self.pi[order]
0
711182f6dbc3741d4dbc0f81f18a30c7
fa2636ff94ce26fe0e7139839283875d
Adds dns records to cache.
def update_nscache(ns_records, ref_time): for record in ns_records: domain, nsdn, ttl = record._dn, record._nsdn, record._ttl new_entry = CacheEntry(expiration=ttl + long(ref_time), authoritative=True) if domain not in nscache: nscache[domain] = OrderedDict([(nsdn, new_ent...
1
1f16b24a522897d68314002a4d7ece1c
6ee2d6745cd4c8ecd86650f26619ce56
通过typeName获取数据字典列表
@ResponseBody public List<DataDictionary> getDataDictionaryList(@RequestParam String tcode){ logger.debug("获取类型字典集合=======>>>"+tcode); return this.getDictionaryList(tcode); }
0
e54c89407047af8ed2880085db4f7e66
de19fc669120de3d91943eb31fc76e86
Method to insert the substitutes
def substitutes(request): substitutes = request.user.substitute_set.all() for sub in substitutes: sub.nutriscore = f"nutriscore-{sub.substituted.nutriscore}.png" return render(request, "substitutes.html", {"substitutes": substitutes, "site_title": "Sub...
0
516a691eafdd3f3e51c9217474143b28
7e4d8b28e6d2bee7c9e007d394e60628
Create new table from declarative base
def make_declarative_base(): base = declarative_base(cls=Model, name='Model', metaclass=_BoundDeclarativeMeta) return base
0
629ec10ee39b48ed6a0aba4a60607122
023b38f5beb9440f4e56ecc8e0c27711
Initialize and set the properties of PCM object
{ snd_pcm_hw_params_t *hwparams; snd_pcm_hw_params_alloca(&hwparams); snd_pcm_hw_params_any(sound->handle, hwparams); snd_pcm_hw_params_set_access(sound->handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED); snd_pcm_format_t pcm_format = SND_PCM_FORMAT_S16_LE; snd_pcm_hw_params_set_format(sound->handle, hwpa...
1
4fbbf5cf34f2a027392f7bb1540f003c
35e1fe061961510b06a023f05c96b748
Get charity details
function charitySearch(params) { $.ajax({data: params, url: "http://data.orghunter.com/v1/charitysearch"}).done(function(data) { var results = data.data; console.log(results); $.each(results, function(i) { var charityName = results[i].charityName; var siteLink = resul...
1
ff0053306b1c84805c04093275d0a3d2
b847d49df760f33f22e3907c42d4ae27
转为uLong型
if (uInt < U_INT_MIN_VALUE) { throw new RuntimeException("uShort cannot be minus, uInt = " + uInt); } if (uInt > U_INT_MAX_VALUE) { throw new RuntimeException("illegal uInt = " + uInt); } return (int) (uInt & 0x00000000FFFFFFFFL); }
0
97038c14d8f0dcdeee04befceddf58cf
3271e67bee9e466b265ee006a86b355d
Set the value of valor.
public class Servicio implements java.io.Serializable public void setValor(double valor) { this.valor = valor; }
1
911f5f3108b17d56851e0980c910cc0c
02148869f6c883802e3eb57620066bdf
获取请求类型列表
namespace Flight.Trade.TradeQuickAPI.Client.Core public class RequestHelper public List<string> GetRequestTypeList() { List<string> l = requestTypeList.Keys.ToList(); l.Sort(); return l; }
1
c1b29c853afc9bc6f9b4d14f9d027613
24b3bc45a19f142406cd17b2f0f3b722
Returns the constraint count for the flexible height constraint.
public class Grid int getConstraintCount() { return m_ConstraintList.size(); }
0
77121b0d1205696d6c5449f8a73e98d7
923e3a0ce44fdd29fb2685db8db67cde
Try to parse dates into salesforce format YYYY-MM-DD -> MM/DD/YYYY
def correct_date(date): if date == "N/A": new_date = "" elif date[:2] == "00": new_date = str(date[6:10]) + "-" + str(date[3:5]) else: new_date = str(date[6:10]) + "-" + str(date[3:5]) + "-" + str(date[0:2]) return new_date
0
20538d50ec4c2c0dae7fbfdc9ab82e77
590ea54248f8b60d883194658575a781
This adds a property descriptor for the Account Expiration Time feature. <!-- begin-user-doc
itemPropertyDescriptors .add(createItemPropertyDescriptor( ((ComposeableAdapterFactory) adapterFactory) .getRootAdapterFactory(), getResourceLocator(), getString("_UI_YamailServer_timeout_feature"), getString("_UI_PropertyDescriptor_description", "_UI_YamailServer_timeout_f...
0
3086e3ca3ae098cc9e40e6d0d191e165
97fefdafe8ec7b774abd89cc1b04df16
認証のリダイレクトをHTTPステータスコードに差し替える。
redirect_base = self.mgrurl.geturl().replace('?' + self.mgrurl.query,'') user = 'root' redirect_params = '?func=auth&username=%s&key=%s&checkcookie=no' % (user, auth_code) redirect_url = redirect_base + redirect_params self.start_response('302 Found', [('Location', redirect_url)]...
1
317120101413d2d41c9d085aa8c43a94
0bb09258a3852df4fbb0927589d7d58e
Запрос на поиск группы по факультету
namespace LibraryUniversity.ViewModel class MainWindowViewModel: INotifyPropertyChanged private void CommandSelectedComboAdd() { if (SelectedFacultyAddNew != null) { SomeGroupsAdd = db.Group.Where(group => group.id_faculty == SelectedFacultyAddNew.id).ToList(); ...
1
8272ef8dcf9ad24969edb5a5d45801ef
340f64e2bf546adca67e14b6632d7bf5
Send updated comment dat to server
const request = new XMLHttpRequest(); request.open("POST", "/nextComments"); request.onload = () => { const data = request.responseText; addComment(data); }; const data = new FormData(); request.send(data); }
0
29b5022f4262321d7848a166fd71ba8f
4557810cd4a605de5771b5378e624de3
两个线程轮流工作,一个生产者一个消费者
Goods gds = new Goods(); Consumer cs = new Consumer(gds); Producer pr = new Producer(gds); new Thread(pr, "商店").start(); new Thread(cs, "顾客").start(); }
1
5f60e1892e78bb3e75893e5d68061e50
1201b5a17e955bab40cf8dc8ba058de0
Assembles, injects and executes the mnemonics into the remote process.
{ lock (typeof(Common)) { Assembler assembler = new Assembler(string.Empty); if (assembler.execute(source, Mpm.RawInstructions)) { Manager.Stop(Context.ConnectionId); Clients.Caller.Assembled(Common.g...
1
f3924c5abc5e4dc5f76e8827fe3e9262
8b6ee6570ccd19623ce407e74af5805f
Recursive method to determine # of elements in a given period
client = self.connect period_count = -1 db_str = "SELECT COUNT(*) FROM " + table_name client.query(db_str).each do |row| period_count = row["COUNT(*)"] end client.close return period_count end
0
d96738e3f0a4db2aaa8d2907cb50e3ec
2020d7ca3c936bb971934405dcdf14a1
Send an email to the user asking them to set their password
function sendPasswordReset() { const email = "sam@example.com"; firebase.auth().sendPasswordResetEmail(email) .then(() => { }) .catch((error) => { var errorCode = error.code; var errorMessage = error.message; }); }
1
659c5ea10330b228ee9ee8251ca00f2c
6481a7ff4078e546bf0614e0908b698c
Print the image to the desired ostream object
std::ostream& operator<<(std::ostream& os, const ossimFfL7& head) { head.dump(os); return os; }
1
c1bfafd38641e0bf60689c84acb7b1fa
26dd973e53b6acbf30cefe5166cb838f
Get destination office.
class TransactionLine public function get_destination_office() { return $this->destination_office; }
1
814989b983fd853fb374e1676a06ade4
d2fb22e2f149f2505045dba025822156
police
void genpolice(people* pig,map* lv,people* you) { double xdist,ydist,dist; do { pig->x=rand() % 38 + 1; pig->y=rand() % 18 + 1; ydist = pig->y - you->y; xdist = pig->x - you->x; dist = sqrt(((ydist*ydist)+(xdist*xdist))); } while (lv->show[pig->y][pig->x] != '.' || dist <= 8)...
1
eac86438fd381c1e2c1a1342dadad594
d40a4647b2a405c7f40c936568a19e6d
get H14 specific configuration
const LX_GFX_CFG_T* GFX_H13_GetCfg(void) { return &g_gfx_cfg_h13; }
0
2692b9e9146a4975d5fc1dbb256cc5ae
7d9a7df0b417c2f435e1d23712f709fd
ストレージをモックして保存時にエラーを起こす
class PhotoSubmitApiTest extends TestCase public function should_ファイル保存エラーの場合はDBへの挿入はしない() { Storage::shouldReceive('cloud') ->once() ->andReturnNull(); $response = $this->actingAs($this->user) ->json('POST', route('photo.create'), [ 'photo' => Upl...
1
bcefa50fd32beda9244a578c7d5b20fe
f884a6370fb5ba72632fabc618dde33b
Test set attribute active value.
class TestGenericPort(unittest.TestCase): def test_adjacent_setter(self): attr_value = "test value" self.resource.adjacent = attr_value attr_key = "{}{}".format(self.resource.namespace, "Adjacent") self.assertIn(attr_key, self.resource.attributes) self.assertEqual(attr_value, sel...
0
2a8e11dbb0dd3768f04fc12f4acbf0c6
9ec88a905c82751055240a2441506d4d
Test shorthand notation. Returns TRUE if the value is a shorthand notation, FALSE otherwise.
if ($this->isflag !== null || !$this->is_valid_escape_sequence()) { return false; } return $this->data[1] == '0' || (core_text::strlen($this->data) > 2 && $this->data[1] == 'o' && $this->data[2] == '{') || ctype_digit(core_text::substr($this->data, 1)); ...
1
ce3746c22f268a5393edfcc9df579b87
9987e44259e6e382fc805dd65c138b94
Split a file containing the full path to individual annotation files into train and test datasets, with a split defined by trainpct. Inputs: - dataset_file - a .txt or .csv file containing file paths pointing to annotation files. (Expects that these have no header) - trainpct = 0.8 produces an 80:20 train:test split
def split_dataset(path: Path, train_size: float=0.8, n_jobs=None): n_jobs = n_jobs or cpu_count() worker = partial(parse_csv_file, train_size) plural = ['', 's'][n_jobs > 1] log.info('Running parallel processing pool with %d worker%s', n_jobs, plural) with Pool(n_jobs) as pool: files = list(...
0
baf6e5cf273f3f67cc9554471ee34836
291bbcf81aa9eafd0253a081ba98a72b
Calculate the stochastic oscillator %D for given dataframe.
def STOD(dataFr, n1=14, n2=3): STO_K = STOK(dataFr, n=n1) STO_D = STO_K.rolling(n2).mean() return STO_D
1
1716bb964bff7460edf619712a3cfff6
4ef400b1410b66d3be88ee3abd96e28e
desc 新的销假 create_at 2018.01.23 author lishuai@keepyoga.com notes 销假日期的当天 不休,只有卡当前状态为请假,才能进行销假 notes 销假会更新请假关系的最终结束时间 notes 使用时外面加事务
{ $err = Ky_Error::getErrorObj(Ky_Error::ERR_SUCCESS); $brand_id = $arrInput['brand_id']; $mcard_id = $arrInput['mcard_id']; $new_deadline = $arrInput['new_deadline']; $used_leave_days = $arrInput['used_leave_days']; $used_leave_nums = $arrInput['used_leave_nums']; $diff_days = $arrInput['diff_days']; ...
1
fca37ec31562542f839ef9331d20738f
18b3c9abf5df989d11627485f944417c
Calculates the velocity value based on the orientation.
{ double rotationAngle = Math.toRadians(getRotation()); velocity.setX(speed * Math.cos(rotationAngle)); velocity.setY(speed * -Math.sin(rotationAngle)); }
1
e1d04f85572e5245f0c550ed64b09a37
d37450a4e2de5a53c67c0da0fc3f7b89
Builds the SubscriptionRequest
{ SetApiAction(RequestAction.UpdateSubscription); Queue(AuthorizeDotNetApi.Amount, subscription.Amount.ToString()); Queue(AuthorizeDotNetApi.CreditCardNumber, subscription.CreditCard.CardNumber); Queue(AuthorizeDotNetApi.CreditCardExpiration, subscription.CreditCa...
1
84fdd6dddb8447a90c4f0cbc6c7df222
99dcd4224e8e8a586fe56adf2f611294
Method to run final tasks right before destroying this component.
namespace UnrealEngine [ManageType("ManageInstancedStaticMeshComponent")] public partial class ManageInstancedStaticMeshComponent : UInstancedStaticMeshComponent, IManageWrapper public override void OnComponentDestroyed(bool bDestroyingHierarchy) => E__Supper__UInstancedStaticMeshComponent_OnComponentDestroyed(th...
1
e7277532208a093a1bbc49d784cdce7e
4ffbb1230c7b72962f25aea91aaa680e
Test that trailing zeros in the increment argument contribute to precision.
class TestSmoothingUtils(unittest.TestCase): def test_incremental_avalue(self): ainc = utils.incremental_a_value(1.0, 5.0, 0.1) self.assertAlmostEqual(ainc, 99999.6670766, 3)
0
a56e70b0c3db2354d4e40b1c1c623903
c504e08544d7ff8875f4ee2b3d1a5e04
Shows a barplot of the missing values of all columns.
class DataDescription: def showMissValue(self): msno.bar(self.data)
1
95422a21baece40b9b58eec4bab73b2b
6e1757f71a0e76652d33d4a45cd4192b
Return the lower-left coordinate.
class pin_layout: def lc(self): return vector(self.rect[0].x,0.5*(self.rect[0].y+self.rect[1].y))
0
286db31d693a9eba5da04e889e98ec32
905d5f482881167ba6d51ae777c17843
Sets the flying packet stage properties to use
namespace TO5.Wires public class ScoreManager : MonoBehaviour public void EnableTutorial(PacketStageProperties packetProps) { if (!m_IsRunning) { m_ActivePacketProperties = packetProps; tutorialMode = true; m_IsRunning = true; ...
1
739a7b1ab45a2ac4b219835b95e7dd63
a4e65ecff2f609053cbe9cd76feb566a
Расчет суммы, необходимой для возврата займа
boolean insurance) { double monthInstallment = calculateMonthInstallment(amountOfMoney, countOfMonths, insurance); double totalSum = monthInstallment * countOfMonths; return totalSum; }
1
c19bfb25e249e89da9c4f441ce1606ff
25cba4c6961bfa175bee47aea9eddde8
Computes the derived pwm duty cycle from actuator duty cycle
{ long actual_duty_count; actual_duty_count = duty_cycle_percent; actual_duty_count *= period_ticks; actual_duty_count /= long_100; if (actual_duty_count > period_ticks) actual_duty_count = period_ticks; if (actual_duty_count > 2) actual_duty_count...
1
cbf96d83d643f70f2caad85f9fbc583c
6d1892db3a96d2149f09e8da196219c6
Enter the guess into the decryption block.
fn guess_block(c1: &CryptoData, c2: &CryptoData, key: &CryptoData, iv: &CryptoData, bsize: uint) -> CryptoData { let mut p2_bytes = Vec::from_elem(16, 0u8); for i in range(0, bsize) { let mut end_bytes_vec = Vec::from_elem(16, 0u8); let mut p2_mod = 0u8; for j in range(0, i) { let xored = (i as u8 + 1) ^ p2_...
1
2b42c1091394212282f8c535ff9209ce
3738693e6071d122892ee1f994abdb10
adds an image to the album. note: this fails silently by design
@Entity @Table(name = "albums") @NamedQueries({ @NamedQuery(name="Album.count", query="SELECT COUNT(a) FROM Album a"), @NamedQuery(name="Album.findAll", query="SELECT a FROM Album a") }) public class Album implements Serializable public void addImage(ImageData image){ images.add(image); }
1
dc6f905044d05e2b3f886880b6ab3e27
4a98585163e1d227a721fca09a263ca0
Trigger orm trait after save hook
public function afterSave() { $this->save(); }
0
73c127e9cf69e145ba378ebf4c143f84
bdf8658e288710ed1036ef64d2f77e5f
Método que altera a variável eleição.
boolean alterarDescricaoEleicao(String nomeEleicao, String novaDescricao) throws DadosInvalidosException, EleicaoNaoExistenteException, EleicaoComecouException, RemoteException;
1
feac27026617a357b1599281ae9de062
fdb4ea8e0bbbd808d6e643928fd9b703
Restore HP based on the parameters given
if (fCurrentHP < fMaxHP) { fCurrentHP += 20; cout << "You've rested. Healed 20 HP" << endl; } else if (fCurrentHP >= fMaxHP) { cout << "You're fully rested. Rest anymore cannot heal liao lah. Go kill some zombie." << endl; } if (fCurrentHP >= fMaxHP) fCurrentHP = fMaxHP; }
1
92b9981bbc5a913eaedc6d249a999abc
8c2941242ae4d47f283343b5e7c8a592
Renders the HTML tag by using the specified render mode.
namespace BaselineSolution.WebApp.Components.Extensions public static class ExtensionsForTagBuilder public static MvcHtmlString ToHtml(this TagBuilder @this, TagRenderMode renderMode) { return MvcHtmlString.Create(@this.ToString(renderMode)); }
1
e229d4372ad4c7a97a8a560ab0cdf963
480e14957dbdd640f38a3a6ca39c2422
=========================================================================*\ Unlock list of timers \*=========================================================================
( byte timer_list_length, auth_timer_list_type *retx_timer_record ) { byte timer_index ; auth_timer_list_type *timer_ptr_local = retx_timer_record ; for (timer_index=0; timer_index<timer_list_length; timer_index++) { if (timer_ptr_local[timer_index].timer_was_active == TRUE) { ...
1
7bb276eb8b4bb51754a57251f6ffc539
11805e101e88161040d7d518bebd6c87
Returns an ordered range of all the businesssop detailses. <p> Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting bo...
public List<BusinessSponsor> findAllPage(final BusinessSponsorQuery query) throws DaoException;
1
a7b014c6d64e3df12cffe59324fff8e2
deeda4514ab7ecd3399332ddfe1c83fd
don't allow addition in CMS
class CheckoutPage extends Page function getCMSActions() { $actions = parent::getCMSActions(); $actions->removeByName('action_unpublish'); return $actions; }
0
38e07b34bd5e9ccc0652a9ce38eda54a
353407bfe17cc2f7fc5cf7269a2b18e6
全校年纪人数统计
def statistics(): try: d = datetime.date.today() today = str(d.year) + '-' + str(d.month) + '-' + str(d.day) data = {"1": OldPerson.query.filter(OldPerson.birthday.between('1800-01-01', '1959-12-31')).count(), "2": OldPerson.query.filter(OldPerson.birthday.between('1960-01-01...
1
b522b1d0ce245a01daeced87acd8aae2
d9cb935e3f44b954341ad92cb27bcc5f
Makes a new line by reversing this one
class Line: def reverse(self): return Line(self.p1,self.p0)
1
5f4787094a2e385d8c22324af9a6821f
847e753dae752e9fa80ef411ec0ae022
更新成功案例阅读量
void updateReadNum(Integer id);
1
6f1de06feda76e7676b1c618a37325f1
26413fb76d0cb611ebfefa6adc810dfb
! @brief This internal API fills the register address and register data of the over sampling settings for burst write operation.
{ uint32 tmp; HWIO_OUTXF (_inst_, ABHN_SHKE_DRAM_MANUAL_0, RANK_SEL, chip_select); tmp = HWIO_INX (_inst_, ABHN_SHKE_MREG_ADDR_WDATA_CNTL ); tmp = (tmp & ~(HWIO_ABHN_SHKE_MREG_ADDR_WDATA_CNTL_MREG_ADDR_BMSK)) | ((mr_addr) << HWIO_ABHN_SHKE_MREG_ADDR_WDATA_CNTL_MREG_ADDR_SHFT ) ; tmp = (tmp & ~(HWIO_ABHN_SHKE_...
1
93a26714230d322bb987be5ec3859b76
75d7f5825224facb1d3f42eadbfca39b
Método para activar la edición de los TextArea.
SwingUtilities.invokeLater( new Runnable(){ public void run(){ userText.setEditable(tof); } } ); }
1
248d55b73daea1ee882cab8752bcedfe
734ac0f9411e4611d797f6aeb3581c5e
Function to validate the bindings for a given buffer.
validate_buffer(const void* buf, unsigned byte_size) { unsigned i = 0; char* local_buffer = (char *)buf; for (; i < byte_size; i++) { validate_ptr((const void*)local_buffer); local_buffer++; } }
1
0faf2629b15b17a0150a1b66e393761d
8d8d70010a6b06e7e7402a8a51eeae38
递归更新月度总销量
class App_Lama public function changeSales($userid,$num,$money,$level=0) { core_log::debug('*************************************'); $month=intval(date('m',time())); $year=date('Y',time()); $sale =$this->dSales->getByIdMonth($userid, $month,$year); core_log::debug('更新月度销量----***用户:...
1
6ef77741310580f45461704f18641c25
94974fc3f4324adaba7fa121878661bc
将pytorch神经网络输出的logist转换为对应的文本, 用于在test阶段处理batch_size=1的数据
class Model(): def decoderOutputToText(self, ctcOutput, batchSize): encodedLabelStrs = [[] for i in range(batchSize)] decoded = ctcOutput[0][0] idxDict = { b : [] for b in range(batchSize) } for (idx, idx2d) in enumerate(decoded.indices): label = decoded.values[idx] ...
1
c3f3abd78760cfb597b6e820b328317d
b6bfe33e100d52cd66519695b3d83848
Converts an arbitrary-precision binary floating-point number to a rational number. floating-point number.
int mant = hbits & 0x03ff; int exp = hbits & 0x7c00; if (exp == 0x7c00) { exp = 0x3fc00; } else if (exp != 0) { exp += 0x1c000; if (mant == 0 && exp > 0x1c400) { return Float.intBitsToFloat((hbits & 0x8000) << 16 | exp << 13 | 0x3ff); } } else if (mant != 0) { ...
0
82fc4e445f36a032a91b58a4cfb1e8b7
c36cfdc88ba316cc159659a8003abfef
Tabulationクラスのユニットテストクラス
{ #ifdef DEBUG_TEST printf("Begin Unittest: PIDTABLE Module\n"); #endif test_setup(); int i, n = 5; int count[] = {0, 1, 64, 625, 1024}; for (i = 0; i < n; i++) { test_add(count[i]); test_size(count[i], (count[i]/PTABLE_SIZE+1)*PTABLE_SIZE); test_remove(); test_size(0, PTABLE_SIZE); test_get(count[i]); ...
0
c82531bae5d6f3df6d91ba2f8b04e49b
b8bd2643f9c1e9b1c9186e828a774f08
### Calculate scores between queries and keys
query.vector <- create.tfidf.from.query(doc.tfidf, query) doc.scores <- t(query.vector) %*% doc.tfidf return(doc.scores) }
1
59ef13d86e6ef39430324cd6c0c1223b
da843ac99b413252bcfab7d8a49262b9
向外界提供可以访问的方法,返回当前类的对象
public class Demo public static Demo getInstance() { return instance; }
1
da3d079c9652286deae524d760d3708e
66b958a4ebd702268d0b6a40ee902ade
Converts input/output parameters from CWL types to WPS types.
gatk_enum_types = { "validationtype": ["ALL", "REF", "IDS", "ALLELES", "CHR_COUNTS"], "contaminationruntype": ['META', 'SAMPLE', 'READGROUP'], "partition": ["readgroup", "sample", "library", "platform", "center", "sample_by_platform", "sample_by_center", "sample_by_pl...
0
b5d5b2ab259276d380610da9b3976dd7
9834388adbb2fa55f505c3e5f4f9849f
Method to sort the elements of a linked list using selection sort
public class LinkedList implements IList public void selectionSort() { for(Node curNode=head;curNode!=null;curNode=curNode.next) { Node min=curNode; for(Node nextNode=curNode.next;nextNode!=null;nextNode=nextNode.next) { if(nextNode.data<curNode.data) ...
1
5e2d6f388a9a69298bdb8d5d6948c696
2c3ae04d1c4d9ef28c7ba89ea61cf067
Check proposal_nums and iou_thrs and set correct format.
self.BELOW_LOW_THRESHOLD = -1 self.BETWEEN_THRESHOLDS = -2 self.iou_positive_thresh = iou_positive_thresh self.iou_negative_high = iou_negative_high self.iou_negative_low = iou_negative_low self.low_quality_match = low_quality_match
0
ab8c1784a064e73bd45b950cadf777ba
909f150251543221e0880646b9c9286b
send a manual trigger signal, and dont return untill operation is completed
class rszvb: def SendTrigger(self): self.write("*TRG")
0
5f92ba7d191e66fed21c5027f7f01de5
a25c8a062f38f5093195ea78aaee9dd4
@brief This method returns the STM32L552E EVAL BSP Driver revision
uint32_t BSP_GetVersion(void) { return __STM32L4R9I_DISCOVERY_BSP_VERSION; }
0
1e28dd81b6001039252abe76c5853048
4c96521d97331aa2106d85f0c1335983
This method will always be overridden by child classes
abstract class AbstractClass abstract fun method()
1
115359c47d3f81a7e5bb7296ab441187
e6e172264622622747e917c0a006c601
Creates ToGDay builtin. correct
static int to_date(csmp, s_expr) struct csmacro * csmp; struct s_expr * s_expr; { char * x; struct symbol * x0, *x1, *x3; x0 = s_expr->out_sym; (void) instantiate(csmp, s_expr->in_link->s_expr); x1 = s_expr->in_link->s_expr->out_sym; (void) instantiate(csmp, s_expr->in_link->next_link->s_expr); x3 =...
0
56f74a0fdba79c703a8e56fcb189349a
c563ba874e7d273cc00784f5bf4717a8
Ottenere il codice di inserimento di una scheda tramite l'id del portale (cancellazione)
public final class SocleUtils public static String getCodesInseeFromPortletAgenda(PortletAgendaInfolocale box, Member loggedMember) { StringBuilder codesInsee = new StringBuilder(); if (Util.notEmpty(box.getDelegations())) { for (Delegation itDeleg : box.getDelegations()) { TreeSet<City>...
0
27683d02e47d923fdeb03b409d2735c0
7704be170d877ae50d7409100bab57d8
右节点旋转
namespace TestLeetCode.BasicDataStructure public class AVLTree1 private Node RL(Node root) { Node rootNext = root.Right; Node newRoot = rootNext.Left; root.Right = newRoot.Left; rootNext.Left = newRoot.Right; newRoot.Right = rootNext; ...
0
c498c871ce4ab1f67686c3b80841c6f9
c0a848e07f024e0e3edfe48040c17172
Returns a list of frequencies for recurring invoices.
self.ensure_one() fiscal_position = self.env[ 'account.fiscal.position'].browse(fiscal_position) return [(0, 0, self._prepare_invoice_line(line, fiscal_position)) for line in self.recurring_invoice_line_ids]
0
81b7e62333c0514425b3a4690d1e888e
eb8bcc7bfa2e57b9b995864ab82e8118
the modify button onclick function which changes its visibility when pressed and enables editing information
public class Detail extends JPanel implements ActionListener{ @Override public void actionPerformed(ActionEvent e) { if(e.getSource() == this.buttonModify) { this.labelName.setVisible(false); this.labelDescription.setVisible(false); this.labelIPAddress.setVisible(false); this.labelDetail.setVisible...
1
01a6be2c5486034010294f39a1a594a7
498b38bfd774ffd4e995591405768983
Dessine un contour pour indiquer le point selectionné
{ int i,j,xtemp = ci->curve_list.curves[0].controls[0].x, ytemp = ci->curve_list.curves[0].controls[0].y,nouv = 0; for(i=0;i<ci->curve_list.curve_count;i++) { for(j=0;j<ci->curve_list.curves[i].control_count;j++) { if(ci->current_curve == i && ci->current_control == j) cairo_set_source_rgb(cr,1.0,0.0,0.0)...
1
96f07d6212e3de5adec1598551d3a8b4
9e7f3ec3671a05bbc454347db329a386
清空一个表中指定列族下的某一行数据所有版本
try (Table table = HBaseInfo.getTable(tableName)) { Delete delete = new Delete(Bytes.toBytes(rowKey)); delete.addFamily(Bytes.toBytes(columnFamily)); table.delete(delete); } catch (Exception e) { HBASE_LOGGER.error("HBaseDmlUtil#deleteFamily, tableName={},...
1
ec478ccca0a12b21a10d4a8ffdba2bb2
768c1cc03f219d1dfe4b3dacd4c97b8f
Chen formula used to set plyer's hand ranking
def e_a(a,b): return 1/(1+10**(float(b-a)/400)) pe=0 name=member.name elo=member.elo tours=Tour.objects.all() for item in tours: if name in item.player1.name: if item.player2: elo2=item.player2.elo ...
0
225a47b96085d2fcd20f3ccf7f68fe93
6f85cef37fa9205f3d0a1d3408e3fffe
Lists notifications under a given parent.
ListNotificationConfigs(new ListNotificationConfigsRequest { ParentAsOrganizationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), PageToken = pageToken ?? "", PageSize = pageSize ?? 0, }, callSettings);
1
adfff0e484753066060474e6270b1dd2
9a86d7000fd7e33a4a91148ef5c5288c
本月签到次数
@POST("size/daily/signon") Call<RetrofitResult<Integer>> todaySign();
0
589a7edfdd8ca68ee3149f2b29a29a0a
2d2f2d091d486df5097f16655c3cdcac
This function finds out p2p ie by p2p oui and return the pointer.
static int findifnpeerbyid(struct peer **p, const struct ifn *ifn, uint32_t peerid) { *p = NULL; if (peerid >= ifn->peerssize) return 0; *p = ifn->peers[peerid]; return 1; }
0
536575294109298efdeac152b0b57edc
61af2cd7dcae2613c984c1b9c47bce8a
Function binds: const char * osg::CollectOccludersVisitor::libraryName() const
{ typedef char const * ( *osgGAGetLibraryName_function_type )( ); bp::def( "osgGAGetLibraryName" , osgGAGetLibraryName_function_type( &::osgGAGetLibraryName ) , " getLibraryName_osgGA() returns the library name in human friendly form." ); } { t...
0
b06fa3d3797f798cfdc12dab8c4b4741
6f47475724d00df2b7740819d6b2f2e8
Gets main_notification_email_status
class Task implements IEntity public function getEmailStatus() { return $this->emailStatus; }
0
c90c9a35687d5e723920e6e68b139516
2285b2d6d9d26f5286c6606da8eff2e6
Завантажити події з локального сховища
return $.get(this.URL_EVENTS, data => { localStorage.events = JSON.stringify(data); return data; }); }
0
8950219fab1ed06ac09b2d1981bfff0c
d4f7206bf69cdf776fab041116cde8fa
deliveryPercelUrlを取得します。
public class CustomerCase extends AbsModel{ public String getPkgpjturl1(){ return this.pkgpjturl1; }
0
93c62604dcab55540072678d09092356
2c637882e206cc2132e3529335bacd6c
Determine whether there will be conflict media types. A user can only select images and videos at the same time while {@link SelectionSpec#mediaTypeExclusive} is set to false.
public class InspireResourceLocator public boolean isSetMediaTypes() { return CollectionHelper.isNotEmpty(getMediaTypes()); }
0
46b071ecca311b4f4e8f30a98ac8edcf
285c114d51f187890752bb3e8efb4b48
获得一个或多个人在一组CI上的得分
class GenerateScores private function getScoresMultiByAnswers($answers) { $ret = array(); if(empty($answers)) { return $ret; } $groupAnswers = array_chunk($answers, 100, true); unset($answers); foreach($groupAnswers as $groupOne) { foreach($groupOn...
1
78e1809b87f792e9401b81139b19c3b8
f24d700688da4e540a85d194709a0104
Raise the specified component of a rank-two tensor
class TracelessRicciTensor(RicciScalar): def raise_index(self, xtrclss_riccitensor): return Array(einsum('ij,jk->ki', xtrclss_riccitensor, self.inverse_metric_obj, optimize='optimal'))
1
dc7d775cb24f99144496db14c6f9d2bd
c9ac876e30a54ba3a30b343458f822b5
获取文章页数,每页为step篇
func getPages(url string) int { doc, _ := goquery.NewDocument(url) last, _ = strconv.Atoi(doc.Find("div.g-title-wrap > div.pages > a:not(.next)").Last().Text()) if last = last; last == 0 { last = 1 } return last }
0
c55ae1e6ad3f5e59fb152f4146820e5a
e18428e6e928b854be376ece6b058ac1
configure RC3 as output
OSC.CTRL = OSC_RC32MEN_bm; while (!(OSC.STATUS & OSC_RC32MRDY_bm)) ; CCP = CCP_IOREG_gc; CLK.CTRL = 0x01; }
0
236779e14b772a2851beb41f7dce3333
3bb17232aa81b6b7a5cc4328d938973f
Set Address 4. Address Line 4 for the location
abstract class AbstractAddress implements BundleSerializableInterface, JsonSerializable public function getAddressLine4() { return $this->addressLine4; }
0
b520f99656d30feacd2be44fee3aaf0a
e72f7e610f25a0de8f237e38e3af6e72
This function reverts the staging data to the content in production of a module.
_staging_dict = yaml.safe_load(open(self._staging_file, encoding='utf-8')) for obj_type in _staging_dict: for item in _staging_dict[obj_type]: _staging_dict[obj_type][item] = False yaml.dump(_staging_dict, open(self._staging_file, "w"))
0
16364ec9101708f99ba0c227eb3e7970
847080b5adf588756733b8f9fc15cee6
法官台词
class Police(Hero): def speak_lines(self): print("见识一下法律的子弹")
0
d7a95bc5ec74a31d192c6365b0f43451
92bd62f987182f5277ea26da958157ca
SQL 值中的單引號(')需要轉化為 \'
function SQLString($str) { return str_replace("'", "\\'", $str); }
1
1f2f18a7931b79d85c6cbc7513d23826
486ec6e2283d2d624f3cfd6a19c6f867
se va executa doar daca avem nevoie sa regeneram json-ul de intrare standard
public class ExternalNativeBuildTaskUtils public static boolean shouldRegenerateOutOfDateJsons(@NonNull ProjectOptions options) { return options.get(BooleanOption.IDE_BUILD_MODEL_ONLY) || options.get(BooleanOption.IDE_BUILD_MODEL_ONLY_ADVANCED) || options.get(BooleanOption.IDE_IN...
1
1420542e9414d34bba933fcf85148fd7
79e07a924a86b2bc7e02504c090d71fe
Get the flag which indicates if the discrete dataset is saved
public class MainController protected Boolean isSaved(){ return isSaved; }
1
6b370fa70b56dceda40e2d15d39ad84e
80ec0171965806803e33257470787722
BlogPostViewAction constructor.
class ShowAction public function __construct( TwigRendererInterface $renderer, PostRepository $postRepository, RouterInterface $router ) { $this->renderer = $renderer; $this->postRepository = $postRepository; $this->router = $router; }
0
8de0cea6aff38c6efc615362e5701c13
8759ef4d685ca76a1c6275169021ca0d
Set 业务侧错误码。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
export class PddResponseException extends PddBaseException public getErrorCode(): number { return get(this, 'errObj.error_code', -1); }
0
5bf65b0ab28ad8cf7e73de1ae0d42f04
2c49fe5793d34685bfc8f275df2b554b
Read all Robot Inputs. Typically, this is called once per iteration of the main event loop. Any soft filtering of inputs to remove noise or implement non-linear acceleration is also done here.
{ bool res = robot->getEstimates(ESTIMATE_JOINT_POS, qRad.data(), -1.0, blockingRead); res = res && robot->getEstimates(ESTIMATE_JOINT_VEL, dqJ.data(), -1.0, blockingRead); res = res && robot->getEstimates(ESTIMATE_FORCE_TORQUE_SENSOR, ftSens.data(), -1.0, blockingRead); qDeg = CTRL_RAD2DEG*qRad; re...
1
acaa63103ca4aaa090a221aff1f2402f
c77de3d0fe72d45d02bd8978a8afdfc5
Depending on the progress of the main character, this decides where the goblin is to move.
GameObject sceneCharacters = GameObject.Find ("sceneCharacters"); Vector3 startPos = sceneCharacters.transform.position; Vector3 endPos = new Vector3(-3.0f, 3.15f, -0.4f); if(!comingIn){ endPos.y = 5.0f; } float moveTime = 0.0f; while(moveTime < 1.1f){ sceneCharacters.transform.position = Vector3.Le...
0
8715a395ce720193380ff9a429d8d035
e578a34c596d42b273e9600f4e688300
Returns the papers of the person
$papers = Auth::user()->author->papers; $temp = Author::all(); return View::make('paper/index', array('papers' => $papers, 'archived' => false)); }
1