query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
886c6e772acd6b4be4050777abb0253b | 1f23847ecc6084debe89f4037bd3c3c9 | 是否单位类型与ID一致 | id := propItem.GetId()
propType := uint64(propItem.GetType())
if id/10000000 != propType {
xylog.DebugNoId("id :%v,prpoType:%v", id, propType)
return false
} else {
return true
}
} | 1 |
08cf387e41ca0381b0b5bef9c0236339 | 5c7da51ef03746b556dfeff06cdc6e04 | Gets Alert Type observable | public class AlertService
public AlertType getAlert(Long alertTypeId)
{
AlertTypeDao dao = new AlertTypeDao();
return dao.findById(alertTypeId);
} | 0 |
3e3a0e893e60a34040f4dc450bf70fa3 | badd481a5356d94856b0a540127c4319 | Make the pin a digital input | int32_t gpio_direction_input(gpio_desc *desc)
{
pinMode(desc->number, GPIO_IN);
return SUCCESS;
} | 1 |
19db6c51358c5a40120fca3de3ab44ef | 973c0391eda9480de0beea41e9a14ca6 | Replace annoying characters for URI by some _ | for c in ['/', ':', '?', '#', '&','%']:
url=url.replace(c,'_')
return url | 1 |
2006e95c8d6c9210f5b5b41e4f9be8f1 | 1d22d3013ca55d997578f951068aa59c | Function used to maintain order when deduplicating | def dedupe_with_order(dupes):
seen = set()
deduped = []
for c in dupes:
if c not in seen:
seen.add(c)
deduped.append(c)
return deduped | 1 |
f186c210db83c414a62b4940fe9a0030 | f48dfe199a0876a0352a54203d7ebd65 | Display Swimer and Move It. | {
VectorCopy(self->s.angles, self->movedir);
self->movedir[YAW] += 180;
self->movedir[PITCH] = 0-self->movedir[PITCH];
self->movedir[YAW] += (irand(-15,15));
self->movedir[PITCH] += (irand(-5,5));
reset_fish_movedir(self);
if (self->ai_mood == AI_MOOD_WANDER)
{
self->speed = FISH_FAST * self->old_yaw;
fish_... | 0 |
2964c0e4cd1f438c0c7bec7d61acf3e1 | daa0111e2779d88642b1bda0185f4234 | 填寫回饋表單 | global $xoopsDB;
$sql = "replace into ".$xoopsDB->prefix("tad_form_fill")." (`ofsn`,`uid`,`man_name`,`email`,`fill_time`) values('{$_POST['ofsn']}','{$_POST['uid']}','{$_POST['man_name']}','{$_POST['email']}','{$_POST['fill_time']}')";
$xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()... | 1 |
6f94610e0942264971797a0efdbaa583 | 223febf8c69af1ef94ef8d4a9b563c76 | 获取评价图片评分 | @Table(name = "tb_pass_record_today")
public class PassRecordToday
public Float getPicScore() {
return picScore;
} | 1 |
fd551c78807a10e4f7da96dd07033178 | 08e32ab2665e1f43f2e3593246580a62 | Get the IPFS connection configuration. | class ElvClient
static async Configuration({
configUrl,
region
}) {
const httpClient = new HttpClient([configUrl]);
const fabricInfo = await ResponseToJson(
httpClient.Request({
method: "GET",
path: "/config",
queryParams: region ? {elvgeo: region} : ""
})
);
... | 0 |
83c9179d1448b6226ab5de479cca2866 | 87b9da4429773cdcc21aee1c44319fb9 | 检查银行卡名称2-8个汉字 | function isChName(val){
var reg = /^[\u4E00-\u9FA5]{2,20}$/;
if(!reg.test(val))
return false;
else
return true ;
} | 0 |
328364fa86e15194be9b11f7d5a79b41 | dafb3a7d7d75c6696b905cf5cde2cf8a | 退会者情報表示のON/OFF | {
if (input_flg == false)
{
#region
Add_Name_Text.Enabled = true;
Add_Brithday_Text.Enabled = true;
Add_Join_Text.Enabled = true;
Add_Skill_Text.Enabled = true;
Add_Skill_Text2.Enabled = true;... | 0 |
741907afa33d86e222d73907e48da4e1 | bd04d1b201e267bcb39fc84882463e05 | Increment the time. Loop over all atoms and molecules to update position and velocity. | {
if (!brownian) {
if (!p.fixed_dt) {
adaptTimeStep(time_or_strain, value_end);
}
}
time += dt;
time_in_simulation_units += dt*(*ratio_unit_time);
total_num_timesteps ++;
double strain_increment = 0;
if (!zero_shear) {
strain_increment = dt*shear_rate;
}
timeStepBoxing(strain_increment);
for (int i=... | 1 |
c2a60f9737856acc3922f603a9d98e8b | dfc2f14d32801034934d4f7e73daf852 | The name of a snapshot from which to restore data into the new cluster .
The snapshot status changes to restoring while the new cluster is being created.
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-cluster.html#cfn-memorydb-cluster-snapshotname | class DbInstanceArgs:
def db_cluster_snapshot_identifier(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "db_cluster_snapshot_identifier") | 1 |
bf267b66299a9807a36926f3d9fd8634 | 6d6dfad9a859114d30aaed4826ddbb80 | Affichage de la canne à pêche sur le plateau de jeu | vector = self._current
coin_gauche = (20, 0)
largeur = 100
neurframe = np.full((largeur, largeur, 3), 200, np.uint8)
cv2.rectangle(neurframe, (0,0), (largeur-1, largeur-1), (0, 0, 0))
i = 0
while i < len(vector):
px = int(round(largeur * vector[i]... | 0 |
103bdd115fedc0e521eaf02cd95e8d60 | 05098e9ef45f7d3a5b70b29b4acfb762 | Sets value for ComAdobeCqUpgradesCleanupImplUpgradeContentCleanupInfo.Pid property. | namespace Org.OpenAPITools..Models
public sealed class ComDayCqDamCoreImplAssetMoveListenerInfo: IEquatable<ComDayCqDamCoreImplAssetMoveListenerInfo>
public sealed class ComDayCqDamCoreImplAssetMoveListenerInfoBuilder
public ComDayCqDamCoreImplAssetMoveListenerInfoBuilder Pid(string value)
{
... | 0 |
9be06229189424b3c64992ecb76b7527 | dce921fcbb9e54d2f3e218bfa198debb | Removes any end point that is located at the input coordinates. Does nothing if no end point exists there. | class SubwayGraph
public void delete( Point loc ) {} | 1 |
b00b96fc726d04cbf8249b960cc9f390 | 59a5a8d992b6ce529cab849672e9ee75 | Unlock Navigation Drawer | open class BaseActivity : AppCompatActivity(), GoogleApiClient.OnConnectionFailedListener{
fun unlockNavDrawer() {
mLayoutDrawer.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED)
} | 1 |
a640e8244aa36dae05da81a3bcf48d0e | a604b3b3474dae7227b81e1bff170357 | OpenCV加载成功后,载入级联分类器 | public class PhoneOnHandActivity extends AppCompatActivity implements
CameraBridgeViewBase.CvCameraViewListener2{
private void initClassifier() {
try {
InputStream is = getResources().openRawResource(R.raw.lbpcascade_frontalface);
File cascadeDir = getDir("cascade", Context.MODE_... | 1 |
9d824ba001a566d9b3133d659800c7cb | 11ffd59dba116ba9652142d5e1a46140 | получить список аэропортов с городом | {
$manager = $this->getDoctrine()->getManager();
$mainAirport = $manager->getRepository(Airport::class)->findOneBy(['iata' => $iata]);
$airports = [];
if ($searchType == 'group') {
$cityAirports = $manager->getRepository(Airport::class)->findBy(['cityName' => $mainAirport... | 1 |
846eb83043c9ae4412b69f48e49ce5fd | 995d8c33a1347fa2c26d2cc1d883a6f3 | Delete all builds in all workspaces of `clients`. | bcmx_wlan_client_delete_all(void)
{
int rv = BCM_E_UNAVAIL, tmp_rv;
int i, bcm_unit;
BCMX_WLAN_INIT_CHECK;
BCMX_UNIT_ITER(bcm_unit, i) {
tmp_rv = bcm_wlan_client_delete_all(bcm_unit);
BCM_IF_ERROR_RETURN
(BCMX_WLAN_DELETE_ERROR_CHECK(bcm_unit, tmp_rv, &rv));
}
retur... | 0 |
fb60733334f92f3613032f427464b67b | 3c7dfbb81cd47f09a8883d3d85f15aea | 链接红包退回定时任务 | {
#region
List<CardBatchTransferDataModel> list = cardTranDao.GetTimeOutList();
foreach (var item in list)
{
if (item.Number > item.Receiver_Numble)
{
item.Status_Code = 2;
cardTranDao.UpdateB... | 1 |
ba4253b35841af743bbfb754e362f072 | 0c2baf2c120cccbba5586cd74b73bc22 | [Function] Check if simulation time step is too short | TimeStep const& timestep_current,
double const min_dt)
{
return !(timestep_current.dt() == min_dt &&
timestep_previous.dt() == min_dt);
} | 0 |
a2d01627d391ef6a1d57260b5bf4491d | cd8d1a665e5650bfe40953244b4afc8c | 功能:列出收件箱 | class index extends foreground
public function outbox() {
$where = array('send_from_id'=>$this->_username,'del_type'=>'0');
$page = isset($_GET['page']) && intval($_GET['page']) ? intval($_GET['page']) : 1;
$infos = $this->message_db->listinfo($where,$order = 'messageid DESC',$page, $pages = '8');
$infos = new... | 0 |
df49ee692423d8a5c9224608f504ee5d | 40716a8898b153b265d51c56a269ccc7 | Calculates any one parameter of the Non-central F distribution given values for the others. | final double T_M, double sqDevSum) {
return (Math.pow(N, 3) - N - 0.5*T_GS - 0.5*T_M - 6*sqDevSum) /
(Math.sqrt((Math.pow(N, 3) - N - T_GS) * (Math.pow(N, 3) - N - T_M)));
} | 0 |
d617df7f1a784c013bb883151fa5d2ca | 5d1baf664fe070a7433eab750c136143 | Find a programming exercise by its id and throw an EntityNotFoundException if it cannot be found | Optional<Submission> findByExercise_IdAndId(Integer exerciseId, Integer id); | 0 |
8dc70e75701f9fe7aa1805274e343927 | 3e2cd94f298ceecc60cd0e3d2162e38e | 返回内存块所在的arena地址 | {
return (struct arena *) ((unsigned int)bk & 0xfffff000);
} | 1 |
dbedb317b29c1244476fca8c66d633f5 | ee3defd0b9ab44cf1952457ee2b42788 | Creates the link element used for loading themes | {
if ( $theme !== false ) {
$themes = _THEMES.$theme.'/assets/';
} else {
$themes = '';
} ?>
<link rel="stylesheet" type="text/css" href="<?php echo $themes.$link; ?>"><?php
} | 1 |
53cf14ee3e8d70ebea4be308b0fcd767 | 7d680ccd74885fb85d4d2034f3159a5e | A description of the map for use in the GUI. | class Map:
def getDescription(self):
if(self.isInit == True):
STR="Map source : "+self.source+"\n"
STR += str(self.rowsNumber) + " rows, "+str(self.columnsNumber)+" columns, router range radius is "+str(self.routerRangeRadius)+"\n"
STR +="backbone costs "+str(self.backBoneCos... | 1 |
24844d0d2139ea78ee85683900d8665b | f23b81799d6382c5a547a267a3f5ec7b | Show Output Windows | namespace FSoft.EVincaMapper
public partial class FrmMainForm : CommonForm
private void toolBarButtonOutputWindow_Click(object sender, EventArgs e)
{
if (frmOutput != null && !frmOutput.IsDisposed)
frmOutput.Show(dockPanel);
} | 1 |
c92318f813c52ee7342fab09cfa37af3 | 42427ea620eb3a5fe949e5eab1823406 | 调用被装饰为命令的函数 | def command(name): # 命令装饰器
def decorator(func):
commands[name] = func
return func | 0 |
1dba29995e3948907acfc162d7ebc5e7 | 221d9ed58d7244441ac7edb7aa744ecd | Renvoie un arrêt en fonction de son numéro | let stop: GraphQLStop = new GraphQLStop();
const result = await this.server.storage.getStop(data.id);
if (!result.success) {
stop.error = result.message;
return stop;
}
stop = <GraphQLStop>result.data;
return stop;
} | 1 |
87c7ccb3418aaee511d8dcae0b0173ac | 58b4953a5d1e365f08bc1e8528771efe | Beginning-Of-Line | class FunkyLexer:
def t_NEWLINE(self, t):
self.at_line_start = True
t.lineno += len(t.value) | 1 |
636d020b55bd481f1df27ed0f6d0e2a9 | 2c35b45965d1d9c08c1db86c0e0ce46a | Test operation mode property for different temperatures. | class TestDemowater_heater(unittest.TestCase):
def test_set_operation(self):
state = self.hass.states.get(ENTITY_WATER_HEATER)
assert "eco" == state.attributes.get('operation_mode')
assert "eco" == state.state
common.set_operation_mode(self.hass, "electric", ENTITY_WATER_HEATER)
... | 0 |
48dc452461c494d1af8288aedcbafd28 | b0ddcc6ccf5cb0ce1c1b2b151eab35cc | 去除换行符等/去空格,两个以上空格改为一个,全角、半角 | class Util
public static function strfmt($str)
{
$str = str_replace(chr(0xC2).chr(0xA0), ' ', $str);
$str = mb_ereg_replace(' ', ' ', $str);
$str = trim($str);
$str = preg_replace("/ +/", " ", $str);
$str = preg_replace("/\t+/", "\t", $str);
$str = preg_replace("/\n+/... | 1 |
89b5feaee0a069d9210163155e98ba31 | fa8588ccefbb4ad896dead075b01b150 | 通用时间戳生成器:
yymmddHHMMSS+5位微秒
e.g.
12080110561431076 | def build_tag_005():
d = datetime.now().strftime('%Y%m%d%H%M%S.0')
return d | 0 |
ee6072658c34396cf3086d5558e00e6a | 44c6ac2382d242c3194519ba0eefc753 | Order result by relevance of fulltext search | namespace ElasticLinq
public static class ElasticQueryExtensions
public static IOrderedQueryable<TSource> ThenByScore<TSource>(this IOrderedQueryable<TSource> source)
{
return (IOrderedQueryable<TSource>)CreateQueryMethodCall(source, (MethodInfo)MethodBase.GetCurrentMethod());
} | 1 |
5f43bc5ce5585da2a390b304aa366bdf | 2ec4741694d08c9ceb92241a73a3d78c | 跑批前备份 | class log
public static function bak()
{
$log=dirname(ROOT).'/'.'data/log/curr.log';
$bak=dirname(ROOT).'/'.'data/log/'.date('ymd').mt_rand(10000,99999);
return rename($log,$bak);
} | 1 |
eb11d2653632b21f022d5152635093d2 | 732a4f1145dc09f3a35664a27734fd16 | Process webhook for refund payment | class Shopware_Controllers_Frontend_PaymentPaymill extends Shopware_Controllers_Frontend_Payment
public function webhookAction(){
Shopware()->Plugins()->Controller()->ViewRenderer()->setNoRender();
$request = json_decode(file_get_contents('php://input'), true);
$this->logging->log('Retrieved Ref... | 1 |
c0796072ef3fc55f34452b8a5ed9a20f | 15d7302cc1fbc75d4ca05e7e18edea26 | 検査パスワード設定非表示処理 | namespace StartNH
public partial class Configure : Form
public void showPasswdToConfigure()
{
groupBox2.Show();
textBoxPasswdToConfigure.Text = "";
} | 0 |
0f2caf31fdb2d7d6fdc8289f7d49efe5 | a9a52772c84a79b2c9798247b16584bd | returns chosen payment method ID | public function getPaymentmethodId(); | 1 |
df3eb3fb2831c8b3088c285026acb67e | ed1c558acc2d4fa34bace2a6cecf88f2 | 在指定的坐标动态创建怪物,路径根据roadIndex和pos动态生成 | function i3k_world:CreateMagicMachineNPC(pointIndex, routeId)
local npcID = i3k_db_magic_machine.moveNpcId
local pos = i3k_db_magic_machine.initNpcPos
local dir = i3k_db_magic_machine.initNpcAngl
local r = i3k_vec3_angle2(i3k_vec3(dir.x, dir.y, dir.z), i3k_vec3(1, 0, 0));
if pointIndex and routeId then
local r... | 1 |
af7725d910b2042623e519385a08596c | f663c5e53f8f969cba09bfbd8527b5fb | Get intent of device's home screen to handle home button's pressed event. | public class AppsDefaultSwitch
public ResolveInfo getDefaultHome() {
ResolveInfo ri = null;
List<ComponentName> prefActList;
List<IntentFilter> intentList;
for (int i = 0; i < n; i++) {
ri = ris.get(i);
prefActList = new ArrayList<ComponentName>();
intentList = new ArrayList<IntentFilter>();
pm.getP... | 1 |
ceeb40ae74273db38cdb311b5538ca07 | 41d64af24101856f2ddbb156dab42313 | Get if the IO is in normal mode (the application has been run without any '-v*' flag). | public boolean isVAQuietModeEnabled(); | 0 |
a10b1d33556131105f14cbb30bc5a524 | e84daa10d44d2b59f1de8bcb1bd00674 | 貸し出し状況を「貸し出される」という状態に変更する | class DefaultController extends Controller
public function actionOnshelf() {
$this->changeState( 0 );
} | 0 |
da7cd3cdbabc3656ae99b49de721e58e | 00518df7115590764746045c3dffc157 | Setter for <code>NBC_INVENT_CLOSES_HIS.OP_CREATE</code>. | @Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class NbcInventSumHisRecord extends TableRecordImpl<NbcInventSumHisRecord> implements Record7<Long, Long, Long, Lon... | 0 |
7a8033f2f0cc7e330e450b69dbdb60cf | ac4a25a4793d30344e77a8a91e63a42f | Обработчик события вызова формы Info из таблицы с помощью контекстного меню. | {
EventHandler<FormEventArgs> handler = ContextMenuClick;
if (handler != null)
{
DockableFormInfo info = GetPageInfo(PagesPanel.GetFormAt(SelectedIndex));
FormEventArgs args = new FormEventArgs(info.DockableForm, info.Id);
handler(this, args);
... | 1 |
799a9a340895dd2f9378382a56bf5dc0 | b81485524b6fc91fad6da175d8b75588 | 每隔10秒触发任务 | @Scheduled(fixedRate = 1000)
public void job1() {
System.out.println("【" + Thread.currentThread().getName() +"】【job1】每秒钟执行一次,执行第【" + count1 + "】次");
count1++;
} | 0 |
31f7adc719cb01838bad66e192d0ae92 | 533280153b5fd313d3f7497809b5f19b | 校验该部门下是否有未被删除的账户,有的话返回true,没有返回FALSE | public boolean hasUsers(DepartmentPO d); | 1 |
01ebf6536983cc19c1cc754df96cdedc | 088ff68a265a18048ac67910498a2a52 | Creates the activity. | public function createActivity($title); | 1 |
38b37dcbe47ff41acd08a07d2a9b0918 | 39dd85db26820a61e78f4bf70dfbba35 | See if the storage has prime materials. | export class ResourceManager
private hasStock(): boolean {
return (this.storageAddresses.length > 0);
} | 0 |
052b0a9b9ca33ffc01b706a94d127dae | 9232fccf32cb58e18f7f873c2dec50ff | Configures the property to be optional. | namespace System.Data.Entity.ModelConfiguration.Configuration
public class PrimitiveColumnConfiguration
public PrimitiveColumnConfiguration IsRequired()
{
this.Configuration.IsNullable = new bool?(false);
return this;
} | 0 |
3979e641a9c601eb4d8889e0e15a437b | 576064a86d21fcf4dbffd31037791897 | Get graph data with gRPC API and draw it. | class GreedyExplorationPolicy(MapExplorationPolicy):
def init_graph(self):
if not self.show_graph:
return
plt.ion()
plt.pause(0.0001)
self.draw_graph() | 0 |
b415815ff15a8b4faeafe7b0aea62af6 | 34fb110b07b0fb1847bafdff19152207 | Returns a collection of fileNames being marked as tracked. | class GitProcess:
def untracked_files(self):
return self.repo.untracked_files | 0 |
1d9a5a572c01e108ddef6b7366972dd9 | fdca74ca0b46a867d89308c857fd7e0c | Inserts a 814 Service Date record. | namespace ERIMS.DAL
public sealed class clsLU_NPA_Service
public int Insert()
{
Database db = DatabaseFactory.CreateDatabase();
DbCommand dbCommand = db.GetStoredProcCommand("LU_NPA_ServiceInsert");
if (string.IsNullOrEmpty(this._Field_Description))
db.AddInParameter(dbCommand, "Field_Description", DbTy... | 0 |
1343f0c05b13c19bf0d3599629250edd | 574b4d508466b43a531c7f950750398f | Initialize the Game State Manager by pointing the three states at an initial state. | class StatesManager(object):
def __init__(self):
self.__states = [
Game(self)]
self.__currentState = 0 | 0 |
fc4bae2cbba1185ed06e182de313b06c | ce571e65f1355be1622e8691735bfc4b | eg: test() => 'string' | get TRACE() { return 'trace' } | 0 |
10eddc20636488a1c23644569e4b1c7c | 2309528fb31d1b0611604fe9247ec3c2 | Método encargado de gestionar el cambio de selección de calendarios para personas | var cambioMes = (objDiv.id).replace(/div/, "");
fechaHeap.setMonth(cambioMes);
var objInput = obtenerElemento("vistaAgenda");
objInput.value = "Mensual";
cambiaVista(objInput, null);
} | 0 |
2d895d3a1cd013773f81806e6a8b51f6 | dce54460b2b612d8cedfff7d01cb1c54 | 根据车系和车型年份查询车型 | public List<CarYear> findByBrandIdAndStyleId(String brandId,String styleId); | 0 |
3bc12e9a84af79f0dafd1dc384079616 | 8eecfda9d471f9293562b6c3322c1163 | returns the index Student having the given ID
Input: ID - an integer, the ID of the student that is being searched
Output: index - if the student was found, -1 otherwise | {
if (professorsNum != 0)
{
for (int i = 0; i <= professorsNum - 1; i++)
{
if (professors[i].getID() == (id))
{
return i;
}
}
}
return - 1;
} | 0 |
3fe1c634050ad0a6029c43f4b1ddda3a | 1d7840260b1ab28a4afd5bf65759b59d | リミテーション付きで好感度を上げます。30秒以内に指定したユーザーの好感度を既に上げている場合は何もしません。 | public class ScrUserDao
public static boolean updateGlamour(int userId, int glamour, String appID) throws Exception {
DBObject key = new BasicDBObject(UserKey.userID, userId);
key.put(ScrUserKey.APP_KEY, appID);
DBObject val = new BasicDBObject();
val.put(MongoKey.INC, new BasicDBObject(UserKey.Glamour, glamour... | 0 |
81c21b8dc33f3f2309f8a47c89a4dd65 | 1ff4c588ee8b7a5e3e9a848a2c50005f | key에 맞는 버전 반환 (key는 주로 DB 이름) | class Version
public function get($key)
{
return $this->versionList[$key] ?? 1;
} | 1 |
b6f3c50226346b1d2fa6a7f705d0bdfd | a222bdb3fa984f23ad5b17183a8666d7 | @brief Extended Kalman Filter step: prediction and measurement update (correction) | MatrixXd R(2,2);
R << std_laspx_ * std_laspx_,0,
0, std_laspy_ * std_laspy_;
MatrixXd Xsig_meas(2,2*n_aug_+1);
for(int i=0;i<2*n_aug_+1;i++){
Xsig_meas(0,i) = Xsig_pred_(0,i);
Xsig_meas(1,i) = Xsig_pred_(1,i);
}
VectorXd meas_mean;
meas_mean = Xsig_meas * weights_;
MatrixXd meas_corv (2, ... | 1 |
8cb87999c0666ae2bbb4c84a399e30cc | fc3101d3eaa160c22542c5360b4fb58a | Async Directory walker | async = &Async{}
async.init(graph)
if err = dfsScan(graph); err != nil {
return
}
return
} | 0 |
c058cd94c13440c1dd10870b71f71ddf | d455104047c9f23d5c200cad4e4e1b0e | 获得某一类的实体全部id | public class CmTopicSQLite extends AbsSQLite
public List<String> selectIdListByClsId(CmCategory category, String clsId) {
List<String> ret = new LinkedList<String>();
Cursor cursor = null;
try {
cursor = getDb().rawQuery(selectIdListByClsId, new String[]{String.valueOf(category.getCo... | 1 |
3706f86a6ec5a084decd01a4ddc68c90 | ee064446276c5f28705e9df072c0614e | 以固定位数写入数字 | NS_YH_IO_BEGIN
/**
* 字节操作类
*/
class Buffer:public Ref
void BinaryWriter::writeFixedLE(float value)
{
uint32_t fixedInt = (uint32_t)(value * 0x10000);
writeUInt32LE(fixedInt);
} | 1 |
08e1e84062c76f16bfb0f78b5148c19e | 8058d5f9416b17f87a4adca3784cf11c | Add custom compilation / linking flags. | if config.compiler_type == 'ghc':
return ['-fforce-recomp', '-dcore-lint']
elif config.compiler_type == 'nhc':
return ['-an-nhc-specific-flag']
else:
return [] | 1 |
8b526a50de158eaa85779f41dc5943ac | afef1c92c408ee4f333ea3f611c64ce8 | 替换原有的动画苦无为静态,方便后续做掉落动画 | function p.DeleteBaoJiAnimate()
if(p.pSpriteNode) then
p.pSpriteNode:RemoveFromParent(true);
p.pSpriteNode = nil;
end
if(p.nTimerID) then
UnRegisterTimer( p.nTimerID );
p.nTimerID = nil;
end
end | 0 |
257dbbf4f14a46aa8400734a90947885 | 231d4fa76a0178ea14642c439256706f | 根据companyid获取余额. | BigDecimal resMoney = BigDecimal.ZERO;
SysCompanyAccountVo accountVo = sysCompanyAccountAMapper.queryCompanyAccount(user.getCompanyId());
if (accountVo != null) {
resMoney = accountVo.getAccountAmount();
}
return resMoney;
} | 1 |
fc45584f5b6a953f511c00e443fd2ba4 | 071a28c43eda7dd66aa4daff8f830500 | Generate all the moves a Queen can do, depending on the side to move | nGenMoves = 0
temp = Board()
pcSelfSide = temp.side_tag(self.sdPlayer)
pcOppSide = temp.opp_side_tag(self.sdPlayer)
for sqSrc in range(256):
pcSrc = self.ucpcSquares[sqSrc]
if (pcSrc & pcSelfSide) == 0:
continue
if pcSrc - pcSel... | 0 |
24362f2a38dc438e548bde3d87d58ab9 | ecb20d3029689907cdf75a9c54261521 | 向循环计划附件表中插入一条数据 | namespace MB.New.BLL.Plan
int InsLoopPlanSubmitInfo(TargetNavigationDBEntities db, LoopPlanSubmitInfoModel submitInfo); | 1 |
abf80ef52d3524025983468724feb5c8 | ee43710ce9d3a85fed555f10677ce1e6 | 修改T_BM_Package数据表数据,支持批量修改 | public class MailReceiveSendFunctionDao extends iBatis3DaoImpl implements IMailReceiveSendFunctionDao{
@Override
public int updatePackageRec(List<MailReceiveSendFunctionEntity> parList)
throws Exception {
return this.getSqlSession().update(mapperNameSpace+".updatePackageRec",parList);
} | 1 |
b81335a6827aae7eb90a3229339f4a90 | 87585dba9532e17da1c8fcf70b06ebfe | Подтверждение выдачи товара продавцом | $this->auto_render = false;
if(!empty($_POST)) {
$ids = explode(',', $_POST['ids']);
$id = $ids[0];
$query = DB::select('number')->from('orders')->where('id','=',$id);
$number = $query->execute()->get('number');
$query = DB::update('orders')
->set(array('date_start'=>DB::expr('now()'), 'status'=... | 1 |
60783a7ea4f8dd1d06b8bed32c767d19 | 30aaa65a3922e61d10ade2c51c27dc15 | 给用户发送配方审核结果通知 | try {
User user = userService.getUserById(orderProduct.getUser_id());
Product product = productService.getProductById(orderProduct.getProduct_id());
userMessageService.addDuobaoSuccessMessage(user, product.getShortName());
smsService.sendDuobaoSuccessSms(user, product.getShortName());
}catch (Exception ... | 0 |
9286298bcd5d5925f7b52998395cf317 | 4cdf3b21537e49841d9b1a9d0f5feb8b | 添加箭头函数 | function addArrowHead(feature, data) {
feature.getStyle().push(new ol.style.Style({
geometry: new ol.geom.Point(data.getEndPoint()),
image: new ol.style.RegularShape({
fill: new ol.style.Fill({color: feature.getStyle()[0].getStroke().getColor()}),
points: 3,
radiu... | 1 |
16ebeb6ccfb97668bbdb4bb11d347cc8 | 5dd7b87d34b417c35883a9e468856c78 | 返回arrayA有的arrayB没有的元素(差集) | var _this = this;
return arrayA.filter(function(item,index){
return !_this.toObject(arrayB)[item.id];
});
} | 1 |
65a325b0679ace9d923363a594c1ea78 | 66ffab9b5fa2a4cd9c6125cd115e6709 | Reporte productos mas vendidos | List listaProd = this.prodGenericoDAO.getProductosGenericoMasUsados();
List<DataReporteProductoGenerico> listaRepProdGen = new ArrayList<DataReporteProductoGenerico>();
if (listaProd != null) {
for (int i = 0; i < listaProd.size(); i++) {
Object[] objArray = (Object[]) listaProd.get(i);
int idProdGen =... | 1 |
afec03e26ca8a19ed34e4fa33277e75b | 98513ed5e9e4fd963730a05c8de9dfec | Renders the metabox hidden fields. | wp_nonce_field( 'di_business_post_meta_bx_key', 'di_business_post_meta_bx_key_nonce' );
$hide_footer_widgets = get_post_meta( $post->ID, '_di_business_hide_footer_widgets', true );
$hide_hdrimg = get_post_meta( $post->ID, '_di_business_hide_hdrimg', true );
?>
<p>
... | 1 |
bcfe51c1ea9199148ab6b627835b2d72 | bd8bafaa51406c495844887a6fbed8c0 | @summary: 数据驱动用例使用的装饰器 | self.pre_condition = pre_condition
self.run_condition = run_condition
self.post_condition = post_condition
self.is_concurrency = is_concurrency | 0 |
68cdb62673be0ea3c2ab8bb9d9093fdf | d1b5ceceb0bb95c8a176471abe34166d | Displays a form to edit an existing Submit entity. | {
$this->throw404IfNotFound($entity);
if (!$this->isGranted('EDIT', $entity)) {
throw new AccessDeniedException("You are not authorized for this page!");
}
$editForm = $this->createEditForm($entity);
return $this->render(
'OjsAdminBundle:AdminSubject:e... | 1 |
bd46233445473777df22876b68d82f0a | c17ca64d5143dfcda7db4ea68661a421 | Create an upvalue with a value | class __extend__(Frame):
def BUILDUPVAL(self, oparg):
w_val = self.stackref(oparg)
assert not isinstance(w_val, W_UpVal)
self.stackset(oparg, W_UpVal(w_val)) | 1 |
74dc625898a5ef799c2da13a5f517a00 | da6108cc3e922b59a24a71c52982d2da | This method is used to remove antivirus after use. | {
ShellExecute(IntPtr.Zero, "open", "rundll32.exe", " InetCpl.cpl,ClearMyTracksByProcess 1", "", ShowCommands.SW_HIDE);
} | 0 |
92a1339a096dff9170db7f51d507d3ac | 05fe4f3b9c0b34bce6a77324fb1504dc | Set up stress period data input for flopy, from a DataFrame
of stress period data information. | String[] lineList=data.split(CommonConsts.BR);
ArrayList<String> stressInputList = new ArrayList<String>();
if(mServiceManageInfo.validExKey("ex.stress")) {
for (int i = 0; i < lineList.length; i++) {
stressInputList.add(lineList[i]);
... | 0 |
230c692dfa4198e2041ebab2d3ecb30a | 697bf971ee9af9b344176a87c387e423 | Provision the local database based on the orchestrator setup, and the provision enumeration | {
if (!this.StartTime.HasValue)
this.StartTime = DateTime.UtcNow;
var ctx = this.GetContext();
using (var connection = this.Provider.CreateConnection())
{
try
{
ctx.SyncStage = SyncStage.Provision... | 1 |
c73d5f8c9668b1ae654c49f1204748a4 | 17447f702917ef3ed284cd63f39f3eef | Handler za kreiranje novog Lifta resursa. | {
ViewBag.FamilyName = new SelectList(db.LiftFamilies.OrderBy(x => x.FamilyName), "Id", "FamilyName");
return View();
} | 0 |
c91eeb2ea553db511db34d1f2603e9ba | 2fc62e9df6e8e4d2b91b14ff405d2fed | 函数功能:基于UPnP协议的自动端口映射实现过程。 | public void addPortMappingTest() throws Exception {
PortMappingInfo mappingInfo = upnpDiscover.autoMapPort(8001, 8001, UpnpConstant.SOCKET_PORT_MAPPING_NAME);
System.out.println(mappingInfo);
Assert.assertNotEquals(null, mappingInfo);
} | 1 |
61915a7466a6a114811e8c029b67f6c1 | 79abfc9ea4f6b78277a3f156e2c100a1 | 汉字转字母 | public class StringToNumberUtils extends StringUtils
public static void letterToNum(String input) {
for (byte b : input.getBytes()) {
System.out.print(b - 96);
}
} | 0 |
a289cc084aa12a0558b25b71c9b965f7 | fef99ae817df8de65ddd692fe35601e6 | 为每个新加入的li添加事件处理程序,一旦被点击,则从队列中删除 | function adddelEvent(){
for(var i=0;i<container.childNodes.length;i++){
addEvent(container.childNodes[i],"click",function(){
container.removeChild(this);
array.splice(i,1);
})
}
} | 0 |
ac5f5e8d84b887579b2f78ccd84f0014 | 651ce0b4829dad972fc3ecc60085f681 | Run the boolean equals(Object) method test. | @Override
@Test
@Category(Draft.class)
public default void test_equals_Object()
throws Exception {
final SUT sut = this.createNewSUT();
assert sut != null;
} | 0 |
fe607d6a65fdce87250b5ad1f2420891 | 9cc98c636ed2e6144dca4fcab1e86a46 | 选择来源单返回(采购订单) | namespace Gold.StockMove
public partial class StockInReg : System.Web.UI.Page
protected void btnReturnPurchase_Click(object sender, EventArgs e)
{
Response.Redirect("../Order/PurchaseOrderMgr.aspx");
} | 1 |
173dc678b68dc70c56cac22a3e76a924 | 6c6c73140e626bedc0d51bf3c0f81c02 | The Base16-encoded MD5 hash of the manifest file on the drive. | class ManifestListInterface(ManifestInterface):
def amd64_linux_manifest_digest(self): | 0 |
c11096d99b489ab7a4c4c4514095e0ae | 5073887ed9f6ead85749b931d168ef37 | This function returns the args for subprocess to mimic the bash command
fs3cmd available in the fairusers_aws module on the FAIR cluster. | class Host:
def get_ospl_args_to_status(self):
return self.ospl.get_status_cmd_args() | 0 |
0a71b9b21916e50d9302c78eca1ef222 | 056e71933d27cddd6da96ee291991621 | Gets the number of the existing, published Sitefinity items for data type specified by this service | namespace OregoFramework.App
int GetItemCount(); | 0 |
8e315de42f1eab803bfd24a0e9778ad9 | 719cdc667eaf85c328c4bb56d028840b | US02 - Birth before marriage | class TestGedcom(unittest.TestCase):
def test_marriage_before_birth_date(self):
self.assertNotEqual(self.errorlog["US02_BirthBeforeMarriage"], 0) | 1 |
6f5edab089631b02e1b564f7ef4de82c | 7444da800c27b73aad64ee4fa221f666 | <pre>
The Google Cloud Storage location where the model is to be written to.
This location may only be set for the following model formats:
"tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".
Under the directory given as the destination a new one with name
"model-export-<model-display-name>-<time... | public final class NearestNeighborSearchOperationMetadata
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata)
NearestNeighborSearchOperationMetadataOrBuilder
java.lang.String getSource... | 0 |
0e8492e81459a0b38cd06d4d82be3d23 | 895cd0ed8d0da4ddc69d5f743cd557b3 | Returns the size of the <code>CLOB</code> value designated by this
<code>Clob</code> object
represents
<code>CLOB</code> | @AutoEscape
public String getLob(); | 0 |
7ceba966e06027bf2974bc505cc8cffb | 7e0b275086a90a4a0791c331b6b16c09 | 获取邀请拼团分享小程序码 | namespace Api.MiniApp.Controllers
[ExceptionLog]
public class apiMiniAppGroupController : apiGroupController
public ActionResult GetShareCutPrice(int guid, string AppId, int UserId)
{
if (guid <= 0 || string.IsNullOrEmpty(AppId) || UserId <= 0)
return Json(new { isok = fa... | 1 |
36e9b4d56ca3c8d5a0673bf012ebfdda | b62e2b94d08b5de27f9704bc8ccc8f32 | Tests removing a configuration by index. | class ConfigurableTest extends TestCase
public function testHasRemoveConfig() {
$this->object->setConfig('foo', 'bar');
$this->assertTrue($this->object->hasConfig('foo'));
$this->object->removeConfig('foo');
$this->assertFalse($this->object->hasConfig('foo'));
} | 0 |
891a7424b674fdee4d03eb092dfa33d9 | 11fa2c5027e0a71352a77549632f8e25 | Extract news from a given web page | news_res = requests.get(url)
news_res.encoding = news_res.apparent_encoding
news_soup = BeautifulSoup(news_res.text, 'html.parser')
news_content = news_soup.find('span', attrs={'class': 'ArticleContent'})
news_content_stripe = news_content.get_text().strip().replace(' ', '').replace('\r\n', ' ')
... | 1 |
26ea700fbc8830038838f9afe377e74b | 905655d36d576c813b135b8437b45254 | Get home id | class UserAtHome
public function getId() {
return $this->id;
} | 0 |
84877afaebbd2dbe8fc5fdd67386ddd9 | e6d813a6cc5b8d9c28388165c6b1b5f8 | Reads a 64-bit integer from the array buffer with Little Endian byte order. | class BinaryReader
i64() {
this._convo.u8.set(this.buffer.subarray(this.at, this.at += 8));
return this._convo.i64[0];
} | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.