query_id
string
corpus_id
string
query
string
code
string
label
int64
19ef429235ac3124556493a88e56481b
58fcc1fd1e136f38919cfae2d103debe
유저 정보를 받아 유저네임 중복 검사 및 유저 생성
@Component @Scope("singleton") public class UserLogic public String registerUser(Map<String, String> userInfo) throws CheckException { String userName = userInfo.get(REQUEST_KEY_USERNAME); String password = userInfo.get(REQUEST_KEY_PASSWORD); Optional<User> dbUser = userDao.findById(userName); if (dbUse...
1
7e7f1f86065d0dc58eded00a3ab6e949
a32627ac56c15a33e91571e151f89134
Load utterance extender plugins specifies in plugin infos.
class TpgExtjsExtension extends Extension public function load(array $configs, ContainerBuilder $container) { $processor = new Processor(); $configuration = $this->getConfiguration($configs, $container); $config = $processor->processConfiguration($configuration, $configs); $loader = ...
0
09448cb3f8e0a9bb43b8def26bc3d57c
39740070131fc8375517724d2026335a
从滑动中得到最后一个可见Item的位置
public void onScrolled(RecyclerView recyclerView, int dx, int dy) { super.onScrolled(recyclerView, dx, dy); lastVisibleItem = layoutManager.findLastVisibleItemPosition(); }
1
137a5078f460f07d3e45bae1d1a4b3fc
fd358322737f680713c62a9354614480
Display a listing of the Modalidad.
class ModalidadesController extends Controller public function index() { $modalidades = Modalidad::all(); return view('modalidades.index')->with('modalidades',$modalidades);; }
1
4c23600ad383beadd950cad486381457
107b4680893a84b633e02c749f08a5b4
息税折旧摊销前利润 / 总市值
class Fstatement(models.Model): def operating_profit_rate(self): f = numpy.float64(self.pl_operating_profit) / self.pl_gross_sales * 100 return f
0
844b816ffb2b7a417143cc17343bf6a4
0bceb04c943fd0f9edec588085ded093
Shutdown ray.
OgreRTCApplication::~OgreRTCApplication(void) { mSceneMgr->destroyQuery(mRayQuery); }
1
48f60cc61072e87fafaf00f93b03c847
f0d97599991049a4e6f0532751520dbf
プレイヤーとの衝突検知で得点の増減を行う(チートデイ発動後の衝突によるスコア影響)
namespace Babybus.Talk2kiki.HappyStreet public class KiteEventMethod : XBaseMethod public override void PlayerScore() { KiteData.KiteScore++; if (KiteData.KiteScore >= KiteData.KiteMaxScore) { XActionManager.PlayerCompleteGame(); } }
0
e9f9364ce4dcac5ea905a6fabeea3372
839b19783cd54db9620b378e61b82374
Cirurgias de acordo com uma especialidade dentro de um periodo
return this.http.get<ServicioEspecialidad[]>(this.url + 'ServicioEspecialidadesQ.php', { params: { 'comando': 'query1', 'where': 'and servicioespecialidad_tipo like "%' + term + '%"' } }) .pipe( tap(_ => this.log('fetched servicioespecialidades')), catchError(this.handleError('getServicioEspec...
0
674bb4e123326aae4fd9eca4985230ea
e33a582dfb6f1edcabd3f30cfd828215
入口函数.
def main():
1
326afa8a08361f461ee97eb3ec6446bc
922c3bc2bd1b1c716fd05648cb2678d5
默认方法不执行任何动作
public void f(){ System.out.println("default f()"); }
0
982b8ef995a4d89a24963ba3a6d90466
8a2a07fe5313324a96b66f7eb326c094
Maps specializations to realms.
namespace gfx class ShaderObjectImpl : public ShaderObjectBase virtual Result collectSpecializationArgs(ExtendedShaderObjectTypeList& args) override { auto& subObjectRanges = getLayout()->getSubObjectRanges(); Index subObjectRangeCount = subObjectRanges.getCount(); for (I...
0
5f38f82e517114c95291af7f94b7384d
c8de6bca4bc8b3d4f77b859ef26946f3
Update distribution receiver for current user
xl = xl_app() for current_cell in xl.Selection: data = cell_data(control=control, cell_location=current_cell.Address) distribution_id = data["distribution_id"] params = data["params"] default_values(control, distribution_id=distribution_id, selection=current_cell.Address, params=...
0
ea9ad87eae8708212a5438bc9bbca909
c5dd93c91cf1dacc27253c35316da03b
abstrakti metodi, ei logiikkaa sisälle.
class ConcreteClass extends AbstractClass public void method() { System.out.println("Method - realizacuya interface v abstraktnom classe."); }
0
273a85c68a9509dd1e4b6d24a42b5c56
e0352c722d0a9cae254212de89a54fd3
Set if we want to copy sub folders or not
public class UpgradePermissionWorker extends AbstractWork public void setOnlyFolders(boolean onlyFolders) { this.onlyFolders = onlyFolders; }
1
8594a6c1624382c18aeea9b0c142bb1c
5b08d98847adba36ae4f1bb7d254cdc8
Constructor with a parameter that is the desired filetype.
Fileloader::Fileloader() { this->validFiletypes.push_back(".obj"); this->validFiletypes.push_back(".mtl"); }
0
b343137bd76b85c51a957f9eb536fc3c
d14ba3a06ed8a7889f1439484313c157
深度搜索增广路径
{ int i, u, neck, pos, res; int maxFlow = 0; while(BFS()) { memcpy(cur, net.start, sizeof(cur)); deep = 0; u = 0; while(true) { if(u == n) { neck = INF; for(i=0; i<deep; i++) { ...
1
6ed58ed21e54402c56a7e23d0b0f7968
93a36b9657aaab342f13e2890e9e3c17
Método para crear el área de ataque de las torres
public class BattleStage : MonoBehaviour public MapTile CreateMapTile(float x, float y) { var tile = Instantiate(MapTile); tile.GetComponent<SpriteRenderer>().sprite = Resources.Load<Sprite>("UI/AttackRange"); tile.GetComponent<SpriteRenderer>().color = Color.red; tile.transform.SetP...
1
1739711c53b67d65a1039483bc2adc9d
b137b334bddc4bda9cbb975b969919c1
管理中に同じモブがいないか確認する
for (int i = 0; i < mbList.size(); i++) { if (mbList.get(i).getMbUserId().equals(userId)) { return false; } } return true; }
1
02f4aa741cadc9af61138b8e954dc5bd
df81f1abf49f43d3d0677f7fd5785798
设置积分兑换规则
{ #region if (CurrentUser.Is_Chain == false) { model.Merchant_Id = CurrentUser.Merchant_Id; SingleTemplate<ExchangeService>.Instance.SetPointRule(model); } return OK(); #endregion }
1
e7fa3f579f3e840a8abc8a49788cbb8b
41817be13857fd95f7d90f107c3f0151
This test verifies that two blueprints that differ only by an updated software deployment are delta'ed correctly.
public void testComponentUpgraded() { setup(); targetBlueprint.getComponents().getComponent().get(0).setVersion("2.0.0"); sourceBlueprint.getDeployments().getDeployment().get(0).setBootstrap(boot2.getId()); targetBlueprint.getDeployments().getDeployment().get(0).setBootstrap(boot2.ge...
1
e234854412b434af4841b6378661d521
644c795640c704b03318da41e4f42f5c
4軸全てが停止状態であれば`True`
class YuMi: def Stop(self) -> bool: return (self.LeftArm.Stop() and self.RightArm.Stop())
0
609c0b8e3d8db00263f36df6f438b6e7
74189829dab0a052185d8002583ccbfc
Удаление шага рецепта.
class AddStepsFragment : Fragment(R.layout.add_steps_fragment) override fun onDestroy() { if (viewModel.listSteps.isEmpty()) viewModel.deleteRecipe(codeRecipe) super.onDestroy() }
0
33830d4f57f6761e6651cd8056d210cf
3205465351685db3359f663d60705357
Full handler path from context path and handler
interface Context fun endpointHandlerPath(): String
0
fb34c2057890b3aa86856b04e18556d6
b88b74956ae8a3f02caa79dfbdeaae27
Selection behaviour for when the player removes their hand from something grabbable
[RequireComponent(typeof(Interactable))] public class GrabbableObject : MonoBehaviour private void OnHandFocusLost(Hand hand) { }
1
fe44fe9a9440543333b42a9d52cc6a70
1890757740d2cc6be1b4c4483429ef22
设置是否初始化log4j
public final class MyLogUtil public static void setIsAbleLog(boolean isAbleLog) { mIsAbleLog = isAbleLog; }
0
39971ea5eb3645970ac37c812fb2a92b
0ed46576f56f684359693d7572871422
向表格头中添加数据
for (int i = 0; i < titleDatas.length; i++) { row.createCell(i).setCellValue(titleDatas[i]); } }
1
da0d5dcd45df804ed0d8974648997329
44a01064f6d951fe109a7cd4ba1146f1
將Firebase上google Sig In 的使用者資料相關資料取出
public void onStart() { super.onStart(); GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(this); FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); if (user != null) { String name = user.getDisplayName(); String email = user.getE...
1
e4dd80453cacc1086bdd16d6ad8f61f1
b715db8cfcd8132a50c60ee93931ca85
removes the effects of the powerUp
public class BreakoutProgram extends GraphicsProgram public void destroyPowerUp() { remove(powerUp); powerUp = null; containsPowerUp = false; }
1
fb56f444b626432f558345e0c92ec7cd
c7b0214c3ca70eebda8e24a6bbcfd939
获取购物车选择后商品所有数据
function getSelectedData(){ var dataArray=new Array(); $(".all_checked").each(function(){ if(($(this).attr("class")).indexOf("js-selall")==-1) { var parent=$(this).parents(".item"); var param=new Object(); param.id=parent.attr("data-id"); param.price=(parent.find(".curPrice").text()).replace("¥",""); ...
1
95723543333db4687ce608f09d795782
ec937223dd0ddbd195fdbe7fde14d390
This method will return the name of the work item.
namespace Praticis.Framework.Bus.Abstractions public abstract class Event : IEvent public virtual string ObtainsWorkName() => this.EventName;
1
fb7a7302af209b912102a11f0e949564
4925815609c56d7c66fd2507a96b5ce3
Create fake instance of DwProject and save it in database
{ $dwProjectRepo = App::make(DwProjectRepository::class); $theme = $this->fakeDwProjectData($dwProjectFields); return $dwProjectRepo->create($theme); }
1
4ae535ad563d5d5f791a0e71ff3383b9
7269819a18512d384197007bc0769531
Returns the analysable of a sample.
\core_analytics\analysable $analysable, \core_analytics\local\target\base $target): \stdClass { $options = $this->analyser->get_options(); $result = new \stdClass(); $timesplitting->set_modelid($this->analyser->get_modelid()); if (!$timesplitting->is_valid_analysable($analysa...
0
6c9189c50e7fb4b803e71e150d760ee7
f791b8d5fdeb28f0ea93e396cbb6e1d2
returns the country name from a single geo object.
function get_country_name(country) { let name = country.properties.NAME_RU; if (Object.keys(COUNTRY_ABBREV).indexOf(name) >= 0) { name = COUNTRY_ABBREV[name]; } return name; }
1
b101cc500479528acd210caf25a01622
69a7bef5b72d5989d32e83e99b48f0a8
Find a post by its URL.
class Fetcher protected function getPostByURL($expanded_url) { $expanded_url = Utils::expandUrl($expanded_url); return url_to_postid($expanded_url); }
1
f82709dfdc825d4351fcab6057e6eb14
83c86cc83e77be6e95470bdfc6f1f620
取得每一個VIP等級的總人數
def get_vip_user_num(uid_vip_dict, vip): num = 0 for _vip in uid_vip_dict.values(): if _vip == vip: num += 1 return num
1
1618552c6d6cfb2ab2514ef51f8a736b
876356526a96814484e49b974b8e0769
Tests that editing result communication description via posting works
$this->ModelInformation = new Information(); $this->ModelInformation->useDbConfig = "test"; $org_count = $this->ModelInformation->find('count'); $this->login($this->Information, 1, "test_user"); $url = "/test_information/edit/1"; $data = array( "Information" =...
1
fe9d57ff5d7dbe5d34fd609ee8ede0a7
83ad5c26f2f8a1dde5196d7f7a66ef24
r"""Maximum limit on the number of connections, from the NetScaler to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. Zero implies no limit on reuse pool size. If non-zero value is g...
class nspartition_stats(base_resource) : def maxconnection(self) : try : return self._maxconnection except Exception as e: raise e
1
4117825d0dfbc17a4fe4a43e2f1ca08a
a43d83da473abd0c7bd5dab7e747c571
Creates the Widget's Admin HTML.
{ $attributes = array( 'vp_instance' => &$this ); echo vp_get_template_html( 'admin', $attributes ); }
1
b8b340a2fd18e9186c4a3d8ce1d5a790
a20d51bacae67fb29822f24758faa814
Метод архивации файла
namespace FilesDirs void arhiving(string newName);
1
9ebb3ca2491efbae192362579ef83017
6cb7e6ea577eea9a8676209582e93621
eliminate indirections in evid
static Cell local indirectChain(c) Cell c; { Cell is = c; c = snd(is); snd(is) = NIL; fst(is) = INDIRECT1; while (isPair(c) && fst(c)==INDIRECT) { register Cell temp = snd(c); snd(c) = is; is = c; c = temp; fst(is) =...
1
7f6432fe966232424cb625147b60edbf
96aa80c7dc297a27de51b30388da0fab
Request input from the user to indicate what a player wants to do for their turn. The user inputs a player number followed by a card index representing the index of a card in their hand they want to request a card of. If the input supplied is invalid, an invalid PlayerAction object will be returned from this method. to...
Card inputCard = createCardFromInput(this.getCardNumber(), this.getCardDeck()); Card gameTopCard = GameController.getSingletonInstance().getTopCard(); while (!human.hasCard(inputCard) || !human.isCardPlayable(gameTopCard, inputCard)) { System.out.println("invalid card input!"); ...
0
90f909c9bb1110741475ce7c5500ddf0
6df905bcb5a40250a9d0bf5a217fc5e2
根据传入的ID从数据库查询OkrWorkReportBaseInfo对象
public class OkrWorkReportProcessLogService{ public OkrWorkReportProcessLog get( String id ) throws Exception { if( id == null || id.isEmpty() ){ throw new Exception( "id is null, return null!" ); } try ( EntityManagerContainer emc = EntityManagerContainerFactory.instance().create() ) { return emc.find( id...
0
84fadfde89bf39c35af55e9fb53497dc
4a271049df9a23f70cf580677339c880
GET: HomeVisits
{ var session = HttpContext.Session; var deviceId = session.GetString("DeviceId"); if (deviceId!= null) { AnalyticsApi api = new AnalyticsApi(); var history = api.AllData(deviceId, $"{_endPoint}/api/dataanalytics", _subscriptionkey)...
0
0a647284a98a3f5a9a47b87c96ce15b5
225427e7f4555466a2158056a1b63d2c
verifies that a create request is correctly executed and parsed if a fully qualified URL is used
data = {'name': 'Pied Piper', 'founders': 'Richard Hendricks', 'created': str_today_1(), 'location': 'Erlich Bachman\'s business incubator'} url = ('/faangm/') response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED)
0
057ff1b53b0c487c9a5518da554728d6
605be9ff8a6fe854371dfed63d617b91
Skip the storage pointer, which is encoded as '@?' to avoid the infinite recursion of the usual '@?<...>' rule for blocks.
int idx = name_.indexOf('/'); int idx2 = name_.indexOf('@'); int endIdx = Math.min(idx, idx2); if (endIdx == -1) endIdx = Math.max(idx, idx2); return (endIdx <= 0) ? name_ : name_.substring(0, endIdx); }
0
c11ccad924d5540817669af4b2419ad8
8f553b077750afb933574cf60b4f93d4
-------- Formulaire pour ajouter un abonnement --------
{ $etatEssaie = $options['etatEssaie']; $builder ->add('libelle', TextType::class, [ 'label' => 'Libelle', 'attr' => [ 'class' => 'form-control', ], 'required' => true,]) ->add('debutAbonnemen...
1
e6f443e9f54642fb1619b3e87ef4df4b
8b96a56f7bb0e148a6bd57f8245b973d
membaca group assignment berdasarkan ID dari group
class TbMasterGrupAdaptasiDetailMySqlDAO implements TbMasterGrupAdaptasiDetailDAO{ public function load($id){ $sql = 'SELECT * FROM tb_master_grup_adaptasi_detail WHERE tbmgad_id = ?'; $sqlQuery = new SqlQuery($sql); $sqlQuery->setNumber($id); return $this->getRow($sqlQuery); }
1
59c4798750f602944ead51f3d8375ffa
2f46eda3e06eeb6dbe91d4b37f003027
Modifies the value of an attribute and truncates the string to the max length specified for the attribute.
public class AttributeBase extends ViewerInputSecurityBase public void setMaxLength(String maxLength) { this.maxLength.setExpressionText( maxLength ); }
0
7b6a787a59de20aa3be3f31786585979
2fe958aea6a5ea617b0962a66c1c5746
xSetOutputs callback used by detail=none tables.
Pointer wlc_get_outputs(IntByReference memb);
0
919951adc8d68e8723f678f8be6ca53c
5b7f7767f8b2b338446dbc9a3ebebd9f
Updates the position and shape of the canvases for each tick of the turning animation
function drawTurntable () { canctx.save(); canctx.beginPath(); canctx.fillStyle = '#ff6f5d'; canctx.arc(x, y, 250, 0, 2 * Math.PI, false); canctx.fill(); canctx.beginPath(); canctx.fillStyle = '#fc4a42'; canctx.arc(x, y, 240, 0, 2 * Math.PI, false); canctx.fill(); canctx.restore(); canctx.save(); canctx.tra...
0
c380cf63adcb265dc629bcc658578c97
c781d881122646745df507cd5b6c05a7
Makes Cumulative Frequency table from a regular frequency table.
int p, q, t, col, *num; num = (int *) malloc((M.nu + 1) * sizeof(int)); (*T).mu = M.nu; (*T).nu = M.mu; (*T).tu = M.tu; if ((*T).tu) { for (col = 1; col <= M.nu; ++col) num[col] = 0; for (t = 1; t <= M.tu; ++t) ++num[M.data[t].j]; (*T).rpos[1] =...
1
0ab7dc08b3b5612e5670d3d3d7b80242
aefefeef0642ad965b5ab7bca356a76c
se ejecuta justo antes de ser montado el componente
export class GraficadonaComponent implements OnInit ngOnInit() { }
1
1b2b8bba8438cc95ed86353773a717a3
099a6b1bf4c81bf1d512c6532d2bc580
重启slave程序
void MasterProgram::restartServer() { bool ret = closeServer(); if (ret) { emit signalMsgToGUI(WorkingStatus::Preparing, QObject::tr("[主控] 正在重启服务器...")); init(); } else emit signalErrorToGUI(WorkingStatus::Preparing, QObject::tr("[主控] 正在工作,不能重启服务器,请先停止当前任务!")); }
0
2b12d9b8fc9b63d37971d7b0590b69d2
b28c2ad0b9f8dcc2e9cfbb2b32c7a9d9
실수형 배열 선언 및 연산하기
{ uint32_t *a; uint32_t na; printf("ElementCount is "); scanf_s("%d",&na); a = (uint32_t *)calloc(na, sizeof(uint32_t)); if (a == NULL) { printf("failed to allocate memory"); } else { for (int i = 0; i < na; i++) { printf("a[%d] : ", i); scanf_s("%d", &a[i]); } printf("a[%d] is \n",na); for (int ...
0
00ff0e65b6730ce3a7eca7ac7cc416c2
29161e786ce9fe92d6e837cd9b04657e
Filters a sequence of values based on a specified range of values of the selected property
namespace Nest public class FilterDescriptor<T> : FilterContainer where T : class public FilterContainer Range(Action<RangeFilterDescriptor<T>> rangeSelector, RangeExecution? execution = null) { var filter = new RangeFilterDescriptor<T>(); if (rangeSelector != null) rangeSelector(filter); filter.Execu...
1
d4f9cc625c5c0250b0d128b1fc1dfb2f
37ab0410fdd5b6adc5870eccb0fd5595
returns true if the search area intersects
class QT_bound{ intersect(search_param){ let aLeft = this.x - this.w/2; let aRight = this.x + this.w/2; let bLeft = search_param.x - search_param.w/2; let bRight = search_param.x + search_param.w/2; let aTop = this.y + this.h/2; let aBot = this.y - this.h/2; let bTop = search_param.y + sear...
1
9a7be2240d3b0c15a7cce5324402072e
8a6fad213ca63792db541645e64b5d63
Mean density of matter in halos
coeff_top = 3 * const.c * cosmo.H0 * cosmo.Ob0 coeff_bot = 8 * np.pi * const.G * const.m_p coeff = coeff_top / coeff_bot coeff = coeff.to("pc cm**-3") dm = coeff * integrate.quad(_f_integrand, zmin, z, args=(cosmo))[0] return dm.value
1
620fd8746c9617550e7625290714888d
d115afb7f70ce2770f3060d0085a7a80
创建例句
public class LanguageSource public String randomChineseSentence() { StringBuilder sb = new StringBuilder(); int r = RandomUtils.nextInt(1, 11); if (r % 2 == 0) { sb.append(ResourceUtils.getRandomElement(chinesePronounsList)); } sb.append(ResourceUtils.getRandomElement...
1
cdaf86d4425439ef8877292ec0e173e8
209330e218f7b05c84d8e017d1317345
Implements Bahdanau attention. The attention implementation is described in: Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio. "Neural Machine Translation by Jointly Learning to Align and Translate." ICLR 2015. https://arxiv.org/abs/1409.0473
if not self._is_training: memory = seq2seq.tile_batch(memory, multiplier=self._beam_width) return seq2seq.BahdanauAttention( self._num_attention_units, memory, memory_sequence_length=None )
1
83251efa9215f260bac923b3d55e9097
d9f484db84bfdbdcf2e30ebbf87528ba
Disable the intro screen
introScreen.SetActive(true); optionScreen.SetActive(false); loadingScreen.SetActive(false); dressUpScreen.SetActive(false); ratingScreen.SetActive(false); storeScreen.SetActive(false); popUpMenu.SetActive(false); fromIntro = true; }
0
0726252e2f9749878c90d82d348acdce
58da0766420d396981e617351ddafe0a
Prueba que al modificar un chofer con la informacion valida entonces devuelve un mensaje que se creo correctamente
[TestCase("pepitoperz@gmail.com", "8832443", "calle 10 #40-22")] public void ActualizarInfoMedico(string email, string telefono, string direccion) { ActualizarInfoMedicoController RCU13 = new ActualizarInfoMedicoController(); Assert.AreEqual(true, RCU13.ActualizarInfoMedi...
0
ac6ed285be2a07e63a7798b5532b620d
94a8552d36b6a343b10981b73c7c63c5
Adds an operation to read an item into the batch.
{ _buffer[ _numItemsInBuffer ] = new NListBufferedOperation<T>( opType, item ); _numItemsInBuffer++; if( _numItemsInBuffer >= _buffer.Length ) { #if TRACE && WINDOWS Trace.WriteLine( typeof(T).ToString() + ":\t\tResizing NList for type: " + typeof(...
1
495c509ea971080a5600ed8926320309
3360ee637982b70821183da0523a4144
Get magento tax rate id import by id src
class Conversion extends \Core\Entity\Conversion implements \Doctrine\ORM\Proxy\Proxy public function getRateId() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getRateId', array()); return parent::getRateId(); }
0
55b1f93c63ae098cbe9bd7206bac7583
48e05303ab340f7b67bb5cac202b6928
Validates the remote_ip column
class BonucCouponTable extends Main\Entity\DataManager public static function validateClientIp() { return array( new Main\Entity\Validator\Length(null, 17), ); }
1
597211336a3eef1565df59fab16d92f9
7234133e27a8090806715016ad8a544a
What schools are supported?
return $this->get_data( 'schools', array('schoolid', 'shortname', 'schoolname', 'unitname', 'domainstring', 'admin'), array( ), array(), array...
1
38b259b38e71a695def2ff72d65e08fe
359a05bb18842334005f1bc53c799fa8
Load the hospitality booking local variables
{ int BranchId = 0; bool Accredited = false; int HotelTransId = 0; if (Request.QueryString["HotelTransId"] != null) { HotelTransId = GlobalCode.Field2Int(Request.QueryString["HotelTransId"]); } bookingsBLL.LoadUs...
1
1a51a67564601ec18ee77f33e503a6cd
4b6e8399d28c79ec665b26998f6955f3
Need to be overridden
class CommonMethods def initialize raise NotImplementedError, 'This is an abstract class, and should be be instantiated' end
1
f420baac8e230337c9e44a7871044c1c
2105717e2d652119fba3c70ab5c5c0d3
初始化外包人员情况
initSelect(getCurrentPageObj().find("#op_state"),{value:"ITEM_CODE",text:"ITEM_NAME"},{dic_code:"C_DIC_OUTPERSION_STATUS"}); initSelect(getCurrentPageObj().find("#op_type"),{value:"ITEM_CODE",text:"ITEM_NAME"},{dic_code:"C_DIC_OUTPERSION_PERSON_TYPE"}); var obj=getCurrentPageObj().find("#FD_op_office"); obj.u...
1
0007016175384168608c0c2f844e34b2
e78e60266fd32a188dd9c0f248f1d15d
获取问题选项列表及人数比例
class survey_mode extends InitFrm public function problems($id = '') { if(!$id) { return false; } $sql = 'SELECT id,problem_id,char_num,name FROM ' . DB_PREFIX . 'options WHERE survey_id = '.$id ; $query = $this->db->query($sql); $op_info = array(); while ($row = $this->db->fetch_array($query)) { ...
0
50337c254b91a1c474deb5907b551ccd
7a3203318c23ed34546286f585f23cc7
Преобразовать миллисекунды в секунды
public class Timer public static double msToSec(long milliSec) { return ((double) milliSec) / 1000.0; }
1
cd1dcccbd5ba42dd5fff914c401d1ae6
39181676910cc6dc65ae4e5d430d388a
Gets the beni culturali.
def load_culturalibre(): return _load_dataset('load_culturalibre')
0
cf564e0832a0a396fbd57f08676f01c3
3dbedb697e2bba39e30277cb733563a7
Number of anomalies.
class Dataset_maestro(object): def N(self): return self._N
0
4ee45ab0af0ac18f45374a6a63df90b0
063b385aa79c028c63e3083a3dcee8e4
converts field descriptor data to binary form
public class StructureDescriptor public void packTo(byte[] bytes, int fromOffset, Binder data, boolean ignoreNonFields) { data.forEach((key, value) -> { FieldDef fd = fields.get(key); if (fd == null) { if (!ignoreNonFields) throw new IllegalArgumentExc...
1
60bd74434401bd84f259ab1c2cd1a426
b588aff959e4539a8531b0ce25bf9d10
Finds and displays a AbonoPlanta entity.
class TolvasPlantaController extends Controller public function show(tolvas_planta $tolvas_planta) { }
0
1683eba606e1a9aef18edbeefd246df0
7782a340973a3829600cbe2bfea2bc0a
Run until (but not including) the given step.
yield from itertools.takewhile( lambda x: x < stop, itertools.count(start, step) )
1
c4c7e2bc4f737650b62afe9116601dc3
2aadda5a1fced5b69bb22d6c68c790bc
Return a string used to populate the WWW-Authenticate header for a HTTP 401 response.
class WWWAuthenticate(UpdateDictMixin, dict): def to_header(self): d = dict(self) auth_type = d.pop("__auth_type__", None) or "basic" kv_items = ( (k, http.quote_header_value(v, allow_token=k not in self._require_quoting)) for k, v in d.items() ) kv_string...
1
7f37d6faa4936f2ec7b85da7763d1089
f6f33472dfd36828f0de4c4f0dff6ec2
Create a Blank HTML Document Returns a blank HTML Document format file. The file is blank, with no contents by default. Use the optional input parameters to add various starting elements. Use additional editing commands such as Append Header, Append Paragraph or Append Image from URL to populate the document.
class Main extends \SoapClient public function DocumentCreateIDML(DocumentCreateIDML $parameters) { return $this->__soapCall('DocumentCreateIDML', array($parameters)); }
0
ab30616078ca2ee0150a66176e9272fb
b9e125cef9c20ac8d36ed388ad77214d
使用默认的指示器
mIndicatorList.clear() mIndicatorCount = indicatorCount if (indicatorCount <= 1) { return } for (i in 1..indicatorCount) { val indicatorIv = ImageView(context) if (i == 1) { val params = LayoutParams(DEFAULT_SELECTED_WIDTH, DEFA...
1
afd087fe72c51eb1628bb02fb2103c37
702d95b463993661595836988708294d
calculates the distance traversed since last sample
pos = np.array(pos) last_pos = np.array(self.last_pos) dist = np.linalg.norm(pos - last_pos) self.dist_driven += dist
1
8e083494ae3b03aef1d0356fb1b0acb3
e436ea7fea8087ba4cc5faa20cb1c3ab
Save background image and opacity
class Thumbnail private function setBackground() { imagealphablending($this->imgDest, true); if (in_array($this->typeDest, array(\IMAGETYPE_GIF, \IMAGETYPE_PNG))) { imagesavealpha($this->imgDest, true); $bg = imagecolorallocatealpha( $this->imgDest, $this->_ba...
1
0c194918bd5c459d69ddbe636a423797
d556c29f309b386c74dac21e9c54e848
\brief Fonction lisant demandant à l'utilisateur de saisir un nombre pour l'affecter à un registre read rd Attend que l'utilisateur saisisse un nombre et affecte ce nombre au registre rd
unsigned int n; cout << msgSaisie << flush; cin >> n; if (cin.fail()) { cout << "l'entree n'est pas valide..." << endl; cin.clear(); cin.ignore(INT_MAX, '\n'); } return n; }
1
a2e0a955f2655c4dfb3c81d3af01fa7c
be4a34d91df9496eb399ec0217c082d1
# Return TRUE if there's any stuff to send to the client.
class Quick_Rest_Response_Http implements Quick_Rest_Response public function hasContent( ) { return ($this->_content !== false && $this->_content !== null) || $this->_contentFile > ""; }
1
3b78c198cd20d6235e187e41ed1e1427
18dc9d57d3e9916339c1c21543a8fb06
The count of volumes using this storage account credential.
public class SubscriptionGetResponse extends OperationResponse public int getCurrentStorageAccounts() { return this.currentStorageAccounts; }
0
2e975a5198ef3833dc5c2af39a3ecab4
c2fd270ac9af81df25f2554958c09eee
Modifies vanilla benchmark scenario config to make it more suitable for running as a unit test.
cluster_config["variant_annotation_jannovar_annotate_vcf"] = { "mem": 7 * 1024 * 2, "time": "100:00", "ntasks": 2, }
0
ab0562161279f0b7d6c2fc9fcaf30ccf
71a90d1b692483e177997a21402ce8e0
移除一种子布局
public class MainTabActivity extends FragmentActivity public void RemoveBottom(BaseFragment subFrm) { CloseInput(); getSupportFragmentManager().popBackStack(); FragmentTransaction transaction = getSupportFragmentManager() .beginTransaction(); transaction.setCustomAnimatio...
1
d2076171804113496aebcb4ee8e0c874
a887270c24e2c948e3dbc80410cc6f22
@brief Process the laser packet Take the laser packet byte array that has been captured and process it into a length including fault detection
{ Lfloat32 f32Temp; Luint32 u32ValA; Luint32 u32ValB; Luint32 u32ValC; if((Luint8)eLaser < C_FCU__NUM_LASERS_OPTONCDT) { u32ValA = sFCU.sLaserOpto.sOptoLaser[(Luint8)eLaser].u8NewByteArray[0]; u32ValB = sFCU.sLaserOpto.sOptoLaser[(Luint8)eLaser].u8NewByteArray[1]; u32ValC = sFCU.sLaserOpto.sOptoLaser[(Luint...
1
d04ab875c879dfd0f5ac799b5ed87fed
15a7aab8969a8f88f5841fb33bdc017f
从URL中获取某个布尔型参数值
namespace Yinhe.ProcessingCenter public class PageReq public static bool GetParamBoolean(string key) { string str = GetParam(key); return ToBoolean(str); }
1
3c690e61f906a84233acdb8617dee96a
47d19ae5f855f9460d2c650b201f4fb6
根据对象获取Type
namespace Codeping.Utils public static partial class Ext public static Type Type([NotNull]this object obj) { return obj.GetType().PureType(); }
1
6e385d37c407311d475c71053042fa71
ceb112a2c0c090f41cec5dbefa03e9ec
Test __le__ comparison method.
class TimeoutClassTests(unittest.TestCase): def test_le_operator(self): t1 = select_connection._Timeout(4, lambda: None) t2 = select_connection._Timeout(4, lambda: 5) self.assertLessEqual(t1, t2) t2 = select_connection._Timeout(5, lambda: 5) self.assertLessEqual(t1, t2) t...
1
c6891a4e04c776d4a3b676e1c65c68df
7e7c78fa3c2e8023e7bfa5e11b31a3b9
数字报--版面页下载
query_path = 'http://www.cninfo.com.cn/new/disclosure' headers['User-Agent'] = random.choice(User_Agent) query = { 'pageNum': page, 'pageSize': 30, 'column': 'szse_latest', 'clusterFlag':'true', } itemlist = requests.post(query_path,...
0
bd780f17decb65232d18956bb9a3eea7
8e68a930e135c492ce20195f4e42da85
r'''获取对象的类全称
def cls_name(obj_or_cls): cls=type(obj_or_cls) if cls is type: cls=obj_or_cls return cls.__name__.split('.')[-1]
0
5e744ba23d6308e870e6c5b6dd8df4d8
472ad74995d49cf90e29656ab994d3fb
Public method to run the genetic algorithm. Returns the tuple of 2 elements: (ExtendedImage, fitness value) This method returns the best obtained picture which was obtained during all iterations. The algorithm terminates either it reaches STOPPING_CRITERIA or MAX_NUM_OF_ITERATIONS.
class GrammaticalEvolution(object): def run(self, starting_generation=0): logging.info('started run') self._generation = starting_generation while True: self._compute_fitness() if self._maintain_history: self._history.append(deepcopy(self.fitness_list)) ...
0
3545edf5d0164380511182fe45db90ff
d4af5292fa2b42b395159245360ce525
描述: oled的iic总线初始化 参数: 无 返回值:无
{ i2c_config_t conf; conf.mode = I2C_MODE_MASTER; conf.sda_io_num = OLED_IIC_SDA_NUM; conf.sda_pullup_en = GPIO_PULLUP_ENABLE; conf.scl_io_num = OLED_IIC_SCL_NUM; conf.scl_pullup_en = GPIO_PULLUP_ENABLE; conf.master.clk_speed = OLED_IIC_FREQ_HZ; i2c_bus = iot_i2c_bus_create(OLED_IIC_NUM,...
1
9f53c94a5cf7e35bfaf3028a4cf7f723
b299efa6d42c672a2d4ab212ff54822c
Assign value to Local
class Mem(object): def SetLocal(self, name, val): pairs = [(ast.LeftVar(name), val)] self.SetLocals(pairs)
1
57024862b8778cb2742b421aaf153c9d
f6dc5cd8770e6ec81ccf03776e264148
Updates animated game object rotation accordingly to current animation time.
{ if( IsActive() ) { Transition::Update( deltaT ); m_ElapsedTime = fmodf( m_ElapsedTime, m_Period * 1000.0f ); float angle = m_ElapsedTime / ( m_Period * 1000 ) * 360.0f; if( m_BoundedDrawable != NULL ) { m_BoundedDrawable->RotateAboutCenter( angle ); ...
1
3dfb88e4747fde5f4b65dc34afda9ede
67cfe447be66a06e2d3f1f7888d0bcc1
为直播加图片和价格(从b2c取图片)
@FormUrlEncoded @POST("wybLiveInfoGoods/add") fun liveInfoGoodsAdd2( @Part("file\";filename=\"1.jpg") file: RequestBody, @Field("liveInfo") liveInfo: Int, @Field( "name") name: String, @Field("brand") brand: String, @Field("specification") specification: String, @Field( "manu...
1
a251a67e37215c46435535d177b1269c
c54fe2a9b015d2b37d5cdb35f9633e64
购物车项目合并查询(货号相同、不是称重商品、未被改价(包含赠品))
{ $needfushi = 1; $caisearr = array('18K彩,18K彩色','18K彩金','18K彩色','18K彩'); $groupby = 'a.id'; $sql = " select a.goods_id, a.goods_sn, a.goods_name, a.qiegong as cut, a.zuanshidaxiao, a.jingdu as clarity, a.yanse as color, a.zhengshuleibie as cert, a.zhengshuhao as zhengshuhao, a.caizhi, ...
0
9a17bcac7645cf51e2673735ab1b56b5
2c1c3d7c47be1c6a4cb067417106eb6d
Glaetten der Sollgeschwindigkeiten mit Rampe
vel_x += (self.h / 6) * (kvel_xlist[0] + 2 * kvel_xlist[1] + 2 * kvel_xlist[2] + kvel_xlist[3]) vel_y += (self.h / 6) * (kvel_ylist[0] + 2 * kvel_ylist[1] + 2 * kvel_ylist[2] + kvel_ylist[3]) return vel_x, vel_y
0
bfe974792e395bb6b5de0ba870f8c42b
34aa57f28865e9f07c7d18a9c0072960
Fixed update
local function fixed_update() clock = clock + 1 end
1
bde4bdccc1ebf828d9bb831142375e1e
02ec0e41c3e674797c0bc3495329492f
Called when a namespace is created in the repository.
semdb_schema_post_create(Oid namespaceId) { Relation rel; ScanKeyData skey; SysScanDesc sscan; HeapTuple tuple; char *tcontext; char *ncontext; const char *nsp_name; ObjectAddress object; Form_mdb_namespace nspForm; StringInfoData audit_name; rel = heap_open(NamespaceRelationId, AccessShareLock); Scan...
1