query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
76a17b729d63a6000d06fc502f0f643e | 2ba3e6037ed735e46e055984c3ec7064 | Enables {@link io.micronaut.multitenancy.tenantresolver.FixedTenantResolver}. Default value ({@value #DEFAULT_ENABLE}). | @Override
public void postProcessBeanDefinitionRegistry(final BeanDefinitionRegistry registry) throws BeansException
{
if (this.isEnabled())
{
final String enabledTenantsProperty = this.effectiveProperties.getProperty(this.enabledTenantPropertyKey);
if (enabledTenants... | 0 |
7168d3a84fa890f50b1230ac216fcdc5 | 79a915c7f813ad8c86a4e6a56385dba0 | 获取角色的所有属性 | public RolePropsEquipPro getEquipProperty(long role_props_id)throws Exception; | 0 |
a9a7c6e9a7fcf76b5f9036354a423052 | 41620b06e678489ed957eb5ccb573934 | 큐에 대기중인 작업 목록 중 가장 오래된 한 개를 가져온다. | public class PrintQueue
public static PrintJob take() throws InterruptedException{
return queue.take();
} | 1 |
eed5af86229cb3d650742b59b71d751e | 72595f7c4f989645708714b0d14bfeff | This is a function called by the automatic marker.
This function has the same purpose as 'solveSokoban_elementary', but
it should internally use macro actions as suggested
in the assignment description. Although it internally uses macro
actions, this function should return a sequence of
elementary actions. | if verbose: print('Solving for Macro Action Sequence')
result = solve_sokoban_macro(warehouse, usingDtransform=usingDtransform,\
verbose=verbose)
if result == ['Impossible']:
return ['Impossible']
macroActions = flip_cords_in_macro_solution(result)
if verbose: print('Macro Actions Fo... | 1 |
37b9f585166b50113937d4e6d6d2a937 | c8ec8804ef8af8a82b84d194b5fc3e35 | 修改附件分类 | $tab_list=[
'index' =>['title'=>'媒体文件','href'=>url('index'),'extra_attr'=>'data-pjax=false'],
'category' =>['title'=>'附件分类','href'=>url('category')],
'setting' =>['title'=>'设置','href'=>url('setting')]
];
$tab_obj=[
'tab_list'=>$... | 1 |
541e9206d12eac5b79ef0ba32e5b3831 | 98ac0eb6ea174a2b705e6711042e52b5 | Wait until the damon is finished. | class Cmd(object):
def wait(self):
then = time.time()
while not self.done:
time.sleep(.01)
else:
logger.debug("waited for {:10.4f} sec".format(time.time() - then))
return self.result | 1 |
d8c8ff2878412a14d7622956801faad8 | d52efd9e6d6c94af3ff9cbbb7ea230da | Moves the arm closer to goal. Returns the length of dr. | int lift(double dist)
{
ROS_INFO("In lift()");
ros::Duration(0.5).sleep();
ros::spinOnce();
double conv = 39.3700787;
double gearRatio = 13.0;
double TPI = 10.0;
double cpr = 300.0;
double frFrkPs = frontForkPosition;
double rrFrkPs = rearForkPosition;
double avgPs = (((((frFrkPs + rrFrkPs)/2)/cp... | 0 |
3cc00f18c1ce0d13c048f1aeccd6bd93 | 402a967423bb8ec9e449cf055b623c54 | Test case for getRefundApplications
Get a list of refund applications. | {
return $this->createApiManager(
[
'allocationEwallet' => [
'created_at' => '2019-04-01T00:48:20Z',
'currency' => 'AUD',
'id' => '729a8c888e89bd2d1e19bc6c5108b5eb',
'pan' => '2...H6A3',
... | 0 |
88114f8377edadc7af3ef48d088995c1 | 1f2bb637f4636a9ebdb163644cceeb5e | 设置ToolBar背景色 | public abstract class BaseActivity extends RxAppCompatActivity implements BaseActivityView, View.OnClickListener
public void setToolBarBackground(int resID) {
((Toolbar) findViewById(R.id.toolbar)).setBackgroundResource(resID);
} | 1 |
f997763c75f993301176e1f65b60cd8a | ddd45449caa01f9e6e713990d8f365b7 | Create a registry of schools | class School(object):
def __init__(self):
pass | 0 |
4bcbb4f5a347e2ceeb29fcebde477b86 | 4da7776622f1180b4a2dc0e1ce4745db | 查找制定hxid的群组是否存在 | Group findGroupByHxid(String mGroupHxid); | 1 |
4b5475c80cd3eaaa254dd1cdc7c154e6 | 4737e539ca3b9f0cf0acdfd0853a8040 | IsValidIP parses input string for ip address validity. | _, _, err := net.ParseCIDR(str)
return err == nil
} | 0 |
f996daa913e5c1bda8288f4546513b89 | 7bb9ce46746e29f4f5cb67a1d965fa5d | 更新订单支付状态,司机确认货主支付尾款或货主全款支付,完成订单 | public class OrderDetailActivity extends EBaseActivity implements OnClickListener{
public void UpdateMyOrderStatus(final int orderstatus){
final ProgressDialog progressDialog =ProgressDialog.show(this,
"支付状态", "正在提交订单信息...");
progressDialog.setCancelable(false);
String orderId = ysorder.getObjectId();
YSOr... | 1 |
903324630ae8e9f6267f591e3d77732b | 29d2db2e6ca5e2a4baa1feef1fe585fc | Deletes all rows from the servico table. | public class PedidoSteps
@When("Eu removo todos os serviços")
public void euRemovoTodosServicos() {
pedido.removerTodosServicos();
} | 0 |
79a40b7a2f3b800325e0afbab66a8e34 | ab8ec823cc170b93fe43d559ec3693a9 | Produces a random graph in Erdos-Renyi model | Graph generateErdosRenyiGraph(int n, double p)
throws IllegalArgumentException, VertexAlreadyExistException, VertexNotFoundException; | 1 |
1a53f179d7c2e5cced66bebf541ec401 | 1ab5bcc79ccfbac88ee2cac87f1832fa | экшн сверка данных из формы с данными из таблицы "users" (вход в систему) | class AdminSignIn(MyQDialog):
def check_data(self):
if admin_login == self.lineEdit.text() and\
admin_pass == self.lineEdit_2.text():
self.ex = MyWidget()
self.ex.setWindowFlag(Qt.WindowStaysOnTopHint)
self.ex.setWindowState(Qt.WindowActive)
self.e... | 0 |
a30a0992f5816355a11a971d2d6cf89a | 623a4b806b31d332bf63489a1213e987 | Gets all groups to be skipped | class DictionarySubscriber extends \app\models\base\DictionarySubscriberBase
public function IgnoredGroups()
{
$excluded = !empty($this->excluded_groups) ? explode(',',$this->excluded_groups) : [];
if(empty($excluded)){
return [];
}
$groups = MonitoredGroup::find()->where... | 1 |
0cb3fa3009ef3b7e119b3a84c15ccd82 | dfd240a02e341e3aef209d2d3818dc5a | try writing a file, then open it without loading into memory and verify | class MockTest(unittest.TestCase):
def test_open_same_file_twice(self):
with mock_open("test_file", "foo"):
with open("test_file") as first:
with open("test_file") as second:
self.assertEqual(first.read(), second.read())
first.seek(0)
... | 0 |
6e29eccb9ec1c5e1d5bbf5a6faaf5bf0 | 19c251463b4c87dbf213cca855ac0d9b | 发表投票帖子 | namespace SICAU.QSS.UI.Portal.Controllers
public class VoteController : BaseController
[HttpPost]
[Authorize]
public ActionResult SaveVote(string content)
{
return QssJsonCommonReturn(VoteService.QssSaveVote(content, out string message), message, "/Users/QuesList");
} | 1 |
12cda0312b5e5b1fc51fccfeacbd8dcf | 4b0431d3b5d50f23b768d5d084d18f83 | Set whether to show extra columns for the data in the objects. | public function setShowColumns($value); | 1 |
714d647a0712677f31e9f11cee4a4419 | 793e933f3461d2f949ae6bbefdd410fa | @brief 通过AD转换得到的电压值得到相应的氧浓度 | {
return (-45000000 - 175000000 / 8 + 17500 * Voltage(ADC_T_CH) / 264);
} | 1 |
78b1c1cd5be367d11d0412e281da1a57 | e777b49fe154316f32ba2619c019f7d2 | Gets the value of the customerDiscGroup property.
possible object is
{@link String } | @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CustomerData", propOrder = {
"customerDirectDebitTermCd",
"customerRechargeLabourRate",
"customerSpvStExposure",
"customerSalesPhone",
"statusRef",
"type",
"customerSpvLtExposure",
"customerAddedDate",
"customerStatusCd",
"cu... | 0 |
b2820321433976af310c007214673044 | 2b715b4505369849afcdc331fb9f2bf6 | auかんたん決済継続課金登録・決済を実行する | class CvsPageHelper
function modeAction($listParam, $Order, $paymentInfo, $objPage)
{
$this->isComplete = false;
$app = $this->app;
$const = $app['config']['YamatoPayment']['const'];
$objClient = $app['yamato_payment.service.client.cvs'];
$result = $objClient->doPaymentReques... | 0 |
ed19d87ec93a2a6e3a9e0be126f6f65f | b74d4bb2c9fd32f2a93017683e9e85a5 | get the character's width in bytes | uint16_t cLcd::getCharWidth (const font_t* font, char ascii) {
if ((ascii >= font->firstChar) && (ascii <= font->lastChar)) {
auto char8 = (uint8_t*)(font->glyphsBase + font->glyphOffsets[ascii - font->firstChar]);
return char8[4];
}
return font->spaceWidth;
} | 0 |
1e614d05912e64fecde96998f30e15bf | 99c3dfd94e8657aa5d3f892aab340f93 | Thêm mới một trường học | {
using (SQL_QLHSDataContext db = new SQL_QLHSDataContext())
{
db.sp_ThemNamHoc();
}
} | 0 |
284451dc775c580ae50e7f494b0ed128 | 272a931ab73b739aaf320837d87c84fc | 创建titles数据层接口。 | {
string ClassNamespace = AssemblyPath + ".titles";
object objType = CreateObject(AssemblyPath, ClassNamespace);
return (DentalMedical.IDAL.Ititles)objType;
} | 1 |
7e3f53c27323d4d68aa0c7ff0f64a71f | 11af221e2e027e311c7a80979c45d5a2 | Find the Issues of current sprint's tasks | {
$issues = array();
foreach ($data->issues as $issue) {
$task = new Task();
$task->setId($issue->key);
$number = str_replace($issue->fields->project->key.'-', '', $issue->key);
$task->setNumber($number);
$task->setProject($issue->fields->p... | 0 |
f9430911c28327c93ccb1823ae3ba2b3 | 86e36890969db1305ca6f2215a8b8915 | Returns new or existing node Peer builder class for this table. | {
int nodeid = 0;
if (IS_PGXC_DATANODE) {
if (u_sess->pgxc_cxt.PGXCNodeId < 0)
return NULL;
else
nodeid = u_sess->pgxc_cxt.PGXCNodeId;
}
return bms_make_singleton(nodeid);
} | 0 |
668d9139e06f5f05f4eba44dd0f40bd7 | 4a6243d18360f1d6f451e62098a27889 | Clears the days of week arraylist | public class Utils
public static void clearDays() {
days.clear();
} | 1 |
2fbf35fca305a0439374ce11d04c781b | fa2f785063c3135d57d205cd7ccae3fc | 获取ais数据原始报文,数据源:洋山 | action = payload.get("action", None)
filename = payload.get("filename", None)
packagenum = payload.get("packagenum", None)
obtime = payload.get("obtime", None)
vesnum = payload.get("vesnum", None)
height = payload.get("height", None)
partable_id = payload.get("partable_id", None)
timetab... | 0 |
72b93f65f9d221e855adb29249d90f97 | dd05f07bf23f8dc39c4f58b27705b617 | Will run after all the tests have finished
</summary> | namespace NUnit3Tests
[SetUpFixture]
public class MySetUpClass
[OneTimeTearDown]
public void RunAfterAnyTests()
{
} | 1 |
44c58e69054b4835f92fc1e142949ba4 | c99953e5a624b90d285f9011ac524155 | Returns the loaders for a given stage. | if (!this._stages[name]) {
this._stages[name] = {};
}
return this._stages[name];
} | 0 |
6f9e590f0d9cee748f79956b861a764e | 7fa18c39aaf54b9a06f85a1b2a8cda1f | 找出视野范围内最弱的敌人 | {
targetEnemy = null;
float focusPropertyMaxValue = 0;
Vector3 selfGroundCoordinate = CoordinateUtil.GetGroundCoordinate(transform.position);
foreach (EnemyController enemy in enemyManager.enemyLinkedList)
{
Vector3 enemyGroundCoordinate = CoordinateUtil.GetGround... | 0 |
3c8fe44af9ba459891b44b3ef51d27d8 | 80858a71fccb1597eb8eb9cc23820fad | runs after main play function (after deal is clicked). Hides the deal button, etc. | namespace Blackjack
public partial class BlackJack : Form
private void btnStand_Click(object sender, EventArgs e)
{
DisableButtons();
ShowDealersCard();
ControlForDealer();
} | 0 |
8c90bc927cb188687dc0324926d9a59b | f0c9b3e097aa22d5bf52fd9f94ea5e7e | 方法1:中序遍历成list,再顺序遍历计算每两个相邻数值之差 | func method1(root *TreeNode) int {
var (
vals []int
dfs func(node *TreeNode)
res = math.MaxInt32
)
dfs = func(node *TreeNode) {
if node != nil {
vals = append(vals, node.Val)
dfs(node.Left)
dfs(node.Right)
}
}
dfs(root)
sort.Ints(vals)
for i := 1; i < len(vals); i++ {
res = min(res, vals[i... | 1 |
c4d2be8f5342bf47ddfcd6227a5102fa | 017da193ddc4776ed2cb8c1d9d330741 | Adds ship to list on player's instance. | {
Vector3 start = shipSpawnPoint.transform.localPosition;
float x = 2.0f * PhotonNetwork.LocalPlayer.ActorNumber;
Vector3 spawnVector = new Vector3(x + start.x, start.y, start.z);
PhotonNetwork.Instantiate(playerPrefabName, spawnVector, Quaternion.identity);
... | 0 |
caa7a2a0c914c0492b687ea0a410b2b9 | 15b64374db03331324ea7ce9868aed9b | Compute the marginal moments of a batch using numerical integration | integration_options='gauss-legendre', verbose=True,
integration_method='Quadrature'):
log_likelihood = lambda p: self.likelihood(p, include_emu=include_emu)
return self._marginalise_mean_flux(params, log_like... | 1 |
f903720740cd5a00de594e4e4121ba95 | 528522ab0deeacade7bfba5720c520d7 | ScreenFlip 実行時にVSYNC待ちをするかどうかを設定する | open class MainActivity: Activity()
fun setWaitScreen(set: Boolean) {
} | 0 |
7bade659d7c0234090219e9e1379fe48 | 76a951e716acad27aee757bc4a1ac530 | This generic method retrieves a pool manager for the type specified. | namespace UnityGameFramework.Runtime
[DisallowMultipleComponent]
[AddComponentMenu("Game Framework/Object Pool")]
public sealed class ObjectPoolComponent : GameFrameworkComponent
public ObjectPoolBase GetObjectPool(Type objectType)
{
return m_ObjectPoolManager.GetObjectPool(objectType);
... | 1 |
cd68af59021b900cc707137234896381 | 863290dccf65e7e79a3b8d6183b453d4 | Rank the neighbors from each point | d = nndist(x0,np.hstack(x1s).T)
if fullSort: return np.argsort(d)[:nneighbor]
else: return np.argpartition(d,nneighbor)[:nneighbor] | 1 |
4d1d81153c5535f8d102c8fb337c91fc | ff00b55a9ec859d9a0614af6525d173f | Removes last action. | void Actions::CurrentActionBack( )
{
if( _sActionAsTyped.length() > 0 )
{
_sActionAsTyped = _sActionAsTyped.substr( 0, _sActionAsTyped.length()-1 );
RebuildPosibleListOfActions( );
}
} | 1 |
9caed958c52cce9f36f39669b99eb576 | 00a6a54fdbd372480175c5a44c1045d3 | 根据不同入口切换注册页面 | {
if(Config::get('app.SWITCH') == 'guan'){
return view('/home/home/weihu');
}
return view('/home/reg/zhuce');
} | 1 |
0ed5df1a6909010ace99db66a7d2762b | 1d09f6c199e703948dbaeb69fdb12ae5 | 增加会议申请 | {
if ($this->request->isPost()) {
$data = $this->request->post();
$result = $this -> validate($data, 'AddMeeting');
if($result !== true){
$this -> error($result);
}
$data['s_time'] = strtotime($data['m_time'].' '.$data['s_time']);
... | 1 |
67fff4ba3abf6d691e9e07815a14b64a | 397b9c74b3f4268fe68c2de9066f6856 | PostCreatedEvent constructor. | class PostSaved extends BroadcastEvent implements ShouldBroadcast
public function __construct(Post $post)
{
$this->post = $post;
$this->wasRecentlyCreated = $post->wasRecentlyCreated;
} | 0 |
5199f2765693dd84fa7f90a2a7982490 | f89264b20ce9e05a2b85b3c24739959b | 等钻平均时长报表明细报表sql | String zoneCode ="".equals(Convert.toString(queryData.get("zoneCode")))?"0000":Convert.toString(queryData.get("zoneCode"));
String prodId= Convert.toString(queryData.get("prodId"));
StringBuffer sql = new StringBuffer("select DAY_ID,to_char(round(decode(sum(case when PROD_ID=30 then cnt_num end ),0,0,(sum(case... | 1 |
597dc925c8c2ccc6658650fb213a7799 | cc21a0ee3c954808555c7d17efcfc804 | Recomputes the timetable's dispatchable graph. | new = {}
for person in get_ids(db, group[0].lower()):
new[person] = [0 for x in range(200)]
for original in timetable:
slot = 0
for other in timetable[original]:
if other != 0:
new[other][slot] = original
slot += 1
return remove_excess(new... | 1 |
5ca10005c010ea6102a755de6056d8ac | 056a4ef199e784cdaa3b9e4f6bd668bd | @brief This fonction write NDEF file from data given in the geo structure | {
uint16_t status = NDEF_ERROR,Offset = 0;
NDEF_PrepareGeoMessage( pGeoStruct, NDEF_Buffer, &Offset );
status = NfcTag_WriteNDEF( Offset, NDEF_Buffer, mi2cChannel );
return status;
} | 1 |
3f53bdbe2306bc48371d63ac2b8c1ade | 4217c59ccf131e8b68a5c42d398d792b | Méthode exportant le GraphDot vers un {@link data.Graph} | self._method.fit(self._data)
self._adjacency_matrix = self._method.adjacency_matrix_
if labels is not None:
self._labels = labels
self._graph_dot = adjacency_matrix_to_graph(self._adjacency_matrix, self._labels)
self._graph_dot = str_to_dot(self._graph_dot.source)
... | 0 |
d1ddf08dee772fc66e1a258e91d14ffe | d72353ff13f194553cb106b1787f3ce2 | The timeout (in minutes) for creating the cluster. | class ClusterClusterConfigInitializationActionArgs:
def timeout_sec(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "timeout_sec") | 0 |
be99114b05eb196722b1638141f59c52 | 67df21715066a26123b8373a14bd1c9b | Handles events for my custom thumbnail gadgets. | if (isset($args->getData()->thumb)) {
return;
}
switch ($args->getAction()) {
case MOXMAN_Vfs_FileActionEventArgs::DELETE:
$this->deleteThumbnail($args->getFile());
break;
case MOXMAN_Vfs_FileActionEventArgs::COPY:
$this->copyThumbnail($args->getFile(), $args->getTargetFile());
break;
... | 1 |
e13b2437835bc23ff94694443c1f1625 | 4f42e0cb23df00b5f16d1034e4a2dd81 | @brief Function to read humidity level from htu21d. | {
genericI2cHandle_t
i2cProtocol = self.protocol;
uint8_t
cmd[1] = { HTU21D_TRIGGER_HUMD_NOHOLD };
uint8_t
rxBuff[3];
i2c_status_t
status = I2C_DRV_MasterSendDataBlocking (
i2cProtocol.instance,
&(i2cProt... | 1 |
101ff23f1cd585681390338166fee44f | 35c66942353c105ae14db1532329fd71 | Publish a container's port to the host. Can be used multiple times. | namespace DotNet.Testcontainers.Containers.Builders
ITestcontainersBuilder<TDockerContainer> WithPortBinding(int port, bool assignRandomHostPort = false); | 1 |
29a25b9b4159b2dccea1de47edcd7605 | bdf9d2de2ca4ee454043ab299fad6449 | 获取宝石conf信息 | function FriendsDrawModel:get_gift_conf( )
return FriendsDrawConfig:get_gift_conf( )
end | 0 |
9aacefdd599536d2bbebfc52dfb46261 | 995be9c1deb8daf832faba3d36fd8322 | Check if the snapshot has any cookie data. | {
return this._snapshotsData != null && this._snapshotsData.Count > 0;
} | 0 |
874fb0c1c92a504d45e12f6003c458fc | 8cab7910ae1360e2d79f082ee026f47c | Appends cumulative reward to player cumulative reward history | self.rewards.append(reward)
if e.INVALID_ACTION in events:
self.invalid_actions += 1
if e.COIN_COLLECTED in events:
self.coins += 1
if e.KILLED_OPPONENT in events:
self.killed_agents += 1 | 1 |
b814a6a074ae112126cf8eecd0b614fe | 8fad39efba8559395ce412ad7461004a | @brief CONEXIO 920MHz Module Allocate Packet Function
@brief CONEXIO 920MHz Module のパケット生成 関数 | int cgc_new_pkt(packet_t *pkt,
status_t status,
uint32_t seq,
access_t type,
action_t action,
op2type_t op2type,
uint32_t dst,
uint32_t src) {
int ret = SUCCESS;
uint32_t randuint32_t = 0;
if (MAGIC_RND == seq) {
... | 1 |
551c09a11df85546c15a4eed08d1a551 | f296e83ea3352871415b7dfadfe9c951 | Define Modalidade do frete<br />
0- Por conta do emitente;<br />
1- Por conta do destinatário/remetente;<br />
2- Por conta de terceiros;<br />
9- Sem frete (v2.0) | class ModeloTributacaoOperacao extends \Phalcon\Mvc\Model
public function setCofinsModalidade($cofins_modalidade)
{
$this->cofins_modalidade = $cofins_modalidade;
return $this;
} | 0 |
439934a32995b9243059e86f5529714e | e5e63c4fdd086b9bef8f1d9eae8761d3 | The chiral configuration of the atom that is a chiral centre. | public class AtomStructure extends ConcreteCircularOrbit<Nucleus, Electron>
public String getCenterName() {
assert this.elementname.equals("") == false;
return this.elementname;
} | 0 |
1855d5a1be083960ae9a2a559d3d5c97 | 81ddfcf9b0efa4831868ea713512f200 | @brief 端点3数据处理 | void ADK::EndpointXtract(uint32_t conf, uint32_t , uint32_t , uint32_t , const USB_ENDPOINT_DESCRIPTOR *pep) {
if(bNumEP == 3) {
return;
}
bConfNum = conf;
if((pep->bmAttributes & 0x02) == 2) {
uint32_t index = ((pep->bEndpointAddress & 0x80) == 0x80) ? epDataInIndex : epDataOutIndex... | 0 |
931a0943306047729f6ff750955738e1 | 5c2c9c1e592a0fd7103cf4f880cf8731 | Generates a flash message for when a subscription has successfully been
created or removed. | abstract protected function flashSuccess($translationKey, $parameter = []); | 1 |
faee47582470ed90a092bd5ab3d9d962 | a8f307530b42555d7d209b468085be18 | Returns the partner link URI | public class Channel extends AbstractChannel implements IChannel
public void setPartnerLinkURI( String partnerLinkURI )
{
this.partnerLinkURI = partnerLinkURI;
} | 0 |
f35c40410318cf35674f40f751b6b674 | 20cdd363a3665fb6592a46f93d0456e2 | 校验蓝牙权限
Android6.0 蓝牙扫描才需要 | if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {
T.showShort(this, "当前手机不支持BLE蓝牙");
finish();
}
BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
mBluetoothAdapter = bluetoothManage... | 0 |
011a9d8e061d5c7d33c750485244fcae | e4b0619e30bef25dbfbfab2d0084b3f7 | 根据map查询用户部门关联表信息 | List<Department> listByUserId(Map<String, Number> map); | 1 |
97df3e8ed20c976ed28193ba5ec83143 | e0b0097f56514656113db1d7bfb25ad4 | @brief Checks whether `data_type` `type` supports relational comparisons. | return (type == NODE_TYPE_OPERATOR_BINARY_EQ ||
type == NODE_TYPE_OPERATOR_BINARY_NE ||
type == NODE_TYPE_OPERATOR_BINARY_LT ||
type == NODE_TYPE_OPERATOR_BINARY_LE ||
type == NODE_TYPE_OPERATOR_BINARY_GT ||
type == NODE_TYPE_OPERATOR_BINARY_GE ||
type == NO... | 1 |
5d994e0adee4d42051e411301221514a | 76b15844e77720d0941a41f00ea86db8 | 查看某个Order是否被取消 | class User_Model extends CI_Model{
function is_order_valid_cancel($id, $username){
$row = $this->db->get_where(self::TAB_ORDER, array('id' => $id))->row();
if (($row->status == 0) && ($row->username == $username)){
return true;
}
return false;
} | 0 |
447921c83543907fa58ee56570ff0a50 | 1e6028359a6452e98b6c1b3399d64e2e | A file storing mapped signal data in an HDF5 file.
This function opens either a per-read or batched HDF5 file for storing
signal mappings. | class HDFWriter(object):
def __init__(self, filename):
print("HDFWriter: Saving datafile to %s"%filename)
self.h5 = tables.openFile(filename, "w")
self.data = {}
self.msgs = {}
self.f = [] | 1 |
eef832060209497190705e4fbdfc1066 | f3a0f2e32f67df1b21cad47034096522 | Sets the foundation location | class ShoppingCenter extends BaseType implements ShoppingCenterContract, LocalBusinessContract, OrganizationContract, PlaceContract, ThingContract
public function foundingLocation($foundingLocation)
{
return $this->setProperty('foundingLocation', $foundingLocation);
} | 1 |
9ad52ae39922a6f47b951bf6790fadcf | f0bbf16f5b25230510e292a7f8e87913 | See if you are standing in a cell. | class TablePosition extends Record({
tableBlock: null,
rowBlock: null,
cellBlock: null,
contentBlock: null
})
isInCell(): boolean {
return Boolean(this.cellBlock);
} | 1 |
b5848f77cc4b372ae5161e4e13e1685b | e091010eb9981194ef24d21cb1e0a64d | Obtiene variante en Centry. | {
if ($this->variant === null)
return null;
$variants = $this->getVariants(true, true, true);
if ($this->variant >= $variants->getCount())
return null;
return $variants->get($this->variant);
} | 1 |
d30d58a0fcc9b3d905a65d49cd35bfd1 | 9e3c0404aac505490c8e1f5fbdd0b011 | Correlation matrix computed from the covariance matrix
Returns | covMatrix = calculateCov(X)
diag = covMatrix.diagonal().reshape(-1,1)
corrM = np.divide(covMatrix, np.sqrt(np.matmul(diag, diag.T)))
return corrM | 1 |
442b3090ebd37c7f1493f6a3406bba8f | f7f21e71d11aa8280556dd51b2421da0 | Indicates if a search type is supported by this SearchProvider
Currently only the type SEARCH_GAL (Global Address List) is implemented | class GeoSearchManager(QObject):
def supportedSearchTypes(self):
return self.__engine.supportedSearchTypes() | 0 |
ae44f7bee0e44cc208f9ce38b2c9bc3e | c476d73d6541227aadc875cc7f239f34 | 把手牌的最后一张牌放到摸牌位置 | function HandCardsPanel:removeLastPutOutMj()
if self.putOutObj and #self.putOutObj > 0 then
self.putOutObj[#self.putOutObj]:removeFromParent()
table.remove(self.putOutObj, #self.putOutObj)
end
end | 0 |
f7a3c822e35e7e8df8d7278f6199d1d3 | 78151e20eea6eae9511b6778bda0bd67 | Придумываем студенту дату зачисления. | public class Student
public void setStartDate(Calendar startDate) {
this.startDate = startDate;
} | 1 |
fa26acab4b3ec28fde7dc78ef7c6322b | 2f14bdabe027636ad60a5533a86bc2f4 | 添加生活志点赞 | async addLikeAction() {
try {
let obj = {
actionnewsID: this.get('newsID'),
actionuserID: this.get('userID'),
actionuserName: this.get('userName'),
actionCount: this.get('actionCount'),
}
let model = think.model(... | 1 |
80fbd41754149641b67f61f09cd03d24 | 0b381489588c4d087aaac59018a0708c | save the expand/collapse state of the trailer and review sections | for (int k = 0; k < expandSection.Length; k++) {
EditorPrefs.SetBool (SECTION_PREFS + k, expandSection [k]);
}
} | 1 |
bb7192a5cceb2016b1c20205ce67fefc | 76864280d5c5870c3a480a07f13c2144 | Gets the OrderGuideInfoData object represented by the pOrderGuideId. | DataNotFoundException {
OrderGuideData ogd = getOrderGuide(pOrderGuideId);
OrderGuideItemDescDataVector ogsdv = getItems(ogd);
OrderGuideInfoData ret = new OrderGuideInfoData(ogd, ogsdv);
return ret;
} | 1 |
0476a88e73c6c118368fddf900495d50 | 2c8ca8415ca5ee01d5b208956249a2c7 | Returns assignedEmployees as UniqueEmployeeList | {
List<object> ListOfEmployees = new List<object>();
foreach (var emp in _context.Employee.Where(x => x.IsDeleted == false).ToList())
{
string employeeName = emp.FirstName + " " + emp.LastName;
var employee = new
{
... | 0 |
8f0b554d7a6a670712d055d399b688ef | ca3f1aa9557d2bd618a3a2a06b6d7c4a | Creates a new {@code Font} object by replicating this
{@code Font} object and applying a new style and size. | enum class FontFamily
operator fun times(variant: FontVariant) = Font(this, variant) | 0 |
7b0db289969eeda703e505b63d4ba36c | 20602a98a077b98bb82437adac085f44 | Map a Cisco exception to the HTTP status equivalent. | public class JavaSettings
public Map<Integer, String> getHttpStatusCodeToExceptionTypeMapping() {
return httpStatusCodeToExceptionTypeMapping == null
? null : Collections.unmodifiableMap(httpStatusCodeToExceptionTypeMapping);
} | 0 |
c7b6551e2bd4a34b3a9eae906e0d99f4 | 9a873d552e14ed859b36b72e90b477fc | Returns self's full name | class Name:
def full(self):
return self.__makestr(self.names) | 1 |
dbcaabfe175a4d4230daaf12ef11c889 | c277fd9ee96afd27b1f52e515843d1a7 | 设置工程的评价内容 - 会根据radio的标识只设置一个radio为true | @Table("DAYWORK_ITEM")
public class DAYWORK_ITEMObj implements java.io.Serializable,com.google.gwt.user.client.rpc.IsSerializable,
com.ksyzt.gwt.client.data.IFieldValue{
public void setITEM_EVAL(String item_eval) {
this.ITEM_EVAL=item_eval;
} | 0 |
5d7de0f96e9d12a183fde45cefc7b175 | d5b0ab347c23eab929ff729f3867fec3 | Returns maximum Bfactor value | class DecayChain:
def visible_bf(self) -> float:
return self.flatten().bf | 0 |
991b08ed759648c96fd82c2112959e3f | 609f263ea7d20bbd4000d5ee5a145681 | 构建des加密的key,如果长度不是8的倍数,则补齐成8的倍数 | try {
if (keyLength % 8 != 0) {
keyLength = keyLength / 8 * 8;
}
KeyGenerator kg = KeyGenerator.getInstance(DES);
kg.init(keyLength);
SecretKey secretKey = kg.generateKey();
return new String(secretKey.getEncoded(), "UTF-8")... | 1 |
22fabfe59e5307cf153acdd2dd5fb0cb | e12691552fbfcc9cb67f20f387f91be5 | 更新区域平均点 | {
DataTable dt = new DataTable();
dt = GetPoint(strPHHSstore);
if (dt.Rows.Count > 0)
{
string strXYID = "";
for (int i = 0; i < dt.Rows.Count; i++)
{
strXYID = dt.Rows[i]["coordinate_x"].ToString() + "," + dt.Rows[i]["coordinate_y"... | 0 |
e461656d5a2c9d145b29d314e4771cba | f06a771bc3b6a11a0a16719f2e5e9174 | @brief Retrieves the address of the front element from vector
Note that the address (pointer) of the element type is returned,
be sure to cast the return of v_front to the pointer type of
the element, then dereference the casted v_front to yield
the element itself. | int mpxx_stl_list_front( mpxx_stl_list_t *const self_p, void *const el_p, const size_t sizof_element)
{
stl_list_ext_t *const e = get_stl_list_ext(self_p);
queitem_t *__restrict tmp = NULL;
if (e->cnt == 0) {
return ENOENT;
} else if( e->sizof_element != sizof_element ) {
return EINVAL;
}
tmp ... | 0 |
feda227342da399992edaeee3763eb78 | 568ab12ebddcc94c18d695fb6f0845b2 | Diver Helper, Adds call to push_back() the passed value to the passed vector. | std::vector<int>::iterator it;
it = vecStack.begin();
it = vecStack.insert(it, obj);
} | 0 |
54c0d9c8fa42b33ee72a0744de7a1d0f | 5a09c2ad90315ec941b4b40de3ccad9b | Initialisation of MODIS EVI long-term average data product.
Initialises the MODIS EVI long-term average data product. Creates the implementation object which does the actual work of
generating config file sections. | class MODISLSTDataset(BaseDataset):
def __init__(self, interval, product_date, vampire_defaults, region=None):
self.impl = MODISLSTDatasetImpl.MODISLSTDatasetImpl(interval, product_date, vampire_defaults, region)
return | 1 |
2b9aabfb94635a6270f92767805be309 | fa722b32f87647a2f4ef0d96b37ccf0c | Test of getRootNode method, of class Response. | public void testGetRoot() {
System.out.println("getRoot");
FilePreferences instance = null;
Preferences expResult = null;
Preferences result = instance.getRoot();
assertEquals(expResult, result);
fail("The test case is a prototype.");
} | 0 |
ad7db37f1e23f9973aa5075d12a59511 | 9c55000e3840a4803d3ae7b1487d2211 | 当遇到赋值语句时,获取右边expr的值存储到变量表中 | class JSExecute :
def VisitAssignmentExpression(self, node) :
left=node.Left
if left.Type!=Syntax.Identifier :
self.ThrowUnexpectedNode(node)
varName=left.Name
right=node.Right
value=None
if right.Type==Syntax.BinaryExpression or right.Type==Syntax.LogicalExpr... | 1 |
04de6d1528bdc221793bb435f1bc3ab0 | 61886259aab391038b9cfbf2f8f381bf | Builds a flow graph for a list of source files. | def MakeFlowGraph(file, label=''):
db_ = cym.dbopen(file)
ev_ = cym.Evaluator(db=db_, write=False)
return cgr.flow_graph(evaler=ev_, label=label) | 0 |
d4fbb3a2d10027f85173004c8ffaec7e | 52a1020235527e01db88431c1c623812 | 读取指定Key的t_global_s数据 | if(tGlobleParam[_key]) then
return tGlobleParam[_key]
end
for data in execForRows(Player.gamedb, "select * from avatar_init where key = \'" .. _key .. "\'") do
tGlobleParam[_key] = data.value
return data.value
end
print("cannot find \"" .. _key .. "\" in avatar_init db")
return -1
end | 1 |
a8e2fc89fc0a0b77d31799e716e63c58 | ec537b1f65486cd4aebb106501f326fc | Função para a listagem das comissões de apoio cadastradas | class CommissionController extends Controller
public function index()
{
$commissions = Commission::all();
return view('commission.index', compact('commissions'));
} | 1 |
28e609e36bc6782ac2a2784c2b96f6fe | ab2b9385e60c4c836d3858e151746dfb | For Darwin-64, simulate the linktime GOT by using the same non-lazy-pointer
mechanism as 32-bit mode. | ST_FUNC void fill_got(TCCState *s1)
{
Section *s;
ElfW_Rel *rel;
int i;
for(i = 1; i < s1->nb_sections; i++) {
s = s1->sections[i];
if (s->sh_type != SHT_RELX)
continue;
if (s->link != symtab_section)
continue;
for_each_elem(s, 0, rel, ElfW_Rel) {
... | 0 |
333451503bca851e9b3beb3e08a62d15 | 16f54dd15c97c304fcd082b73e57e364 | Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.party.party.Affiliate#getPartyId <em>Party Id</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EClass getPartyTypeAttr(); | 0 |
3ed3417a8c838543c47746eb489d580a | c383af478d64f8d398bfaf11d445f95b | Initialises class, model lattice and figure | self.numNodes = numNodes
self.buffL = buffL
self.fb_state_buff = deque([0.0]*self.buffL)
self.ss_state_buff = deque([0.0]*self.buffL)
self.fig = Figure()
self.ax1 = self.fig.add_subplot(2,1,1)
self.ax2 = self.fig.add_subplot(2,1,2)
FigureCanvas.__init__(se... | 1 |
d0e66b5231a1f0861a27d7b6c2b71138 | 5133e5b8efd70500271b07cb48c53fed | Reads all the CPU percentage in total from psutil | class Android(Profiler):
def get_cpu_usage(self, device):
return device.shell('dumpsys cpuinfo | grep TOTAL').split('%')[0] | 0 |
508da9e696cbcf6306da7b256f0b021b | 4d3950483b4b6aa54c21709ac0165565 | 加载已上传的固件升级包列表 | @Component
public class CenterVerDao
public List<UpRecordinfo> queryUprecords(){
String map=ConvertMapUtil.map(NetupUprecord.class);
String hql = "select "+map+" from NetupUprecord order by Upgradedate desc";
List<UpRecordinfo> upRecordinfos=new ArrayList<UpRecordinfo>();
List<HashMap<String, String>> list = Co... | 1 |
19e2a9392c584f2af7673b577410c9e3 | d4f6a8f700ff57cb3a4457d72809b8b6 | grdQCSegment ROW 추가시 PLANTID, ENTERPRISEID 자동 입력 | namespace Micube.SmartMES.StandardInfo
public partial class DefectCodeManagement : SmartConditionManualBaseForm
private void View_AddingNewRow(Framework.SmartControls.Grid.BandedGrid.SmartBandedGridView sender, Framework.SmartControls.Grid.AddNewRowArgs args)
{
args.NewRow["ENTERPRISEID"] = Fram... | 1 |
3875e06aed9de34155180aa44eae7ecf | a4e959e9f2e039f93026cd4f8f0f5d2b | Scales a glyph vector uniformly by a specified scale. | {
for(int c = 0; c < 3; c++)
{
out[c] = v[c] * scale;
}
} | 1 |
a0c3d3fe28e83e952cadc7d0d039b744 | 232cf6032f49e07aa83f6d8ed37ad345 | Import table (if rows are not existing) and set IDs for replacement | def update_replace_table(con, repoId, table):
source_rows = select_and_fetch_all(con, "SELECT ID FROM `replace_tables` WHERE `REPO_ID` = %s ORDER BY `ID` ASC" ,[repoId])
source_rows = [row[0] for row in source_rows]
table = list(map(lambda x: [x[0].strip(), x[1].strip()], table))
table = list(filter(la... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.