query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
0abb1e821cc9a713c4566163f4b2aef7 | 11a16006030d9086ce6c33b59757b459 | Returns a 202. | class StatusChecker:
def status204(self) -> None:
pass | 0 |
ef52f115325d8a3e1b5cbb356384d33d | edf7d7cda120aaccf60fa172c5e517ac | 显示怪物防御背景精灵 | char buffer[32];
CCNode* pNode = CCNode::create();
pNode->setPosition(ccp(0, m_pGameState->getBottomOffset()));
addChild(pNode, 3, NODE_TAG);
CCSprite* pBgSprite = CCSprite::createWithSpriteFrameName("gz_cityBg.png");
pBgSprite->setAnchorPoint(CCPointZero);
pBgSprite->setPosition(ccp(0.0f, m... | 1 |
f96e8ea6305c172fb7cfb0c2ff80b9db | b200d8f086fbb7b668088eddd8e7761b | 获得DrawerArrowDrawable的颜色,默认白色 | try {
return new ColorDrawable(Color.parseColor(color));
} catch (Exception e) {
LogPrintUtils.eTag(TAG, e, "getColorDrawable");
}
return null;
} | 0 |
b6663c58c252e2a5801690d0c16d2d05 | eaf06df28e498081d93c82bb6327c55d | アチーブメントインベントリのprogressのリストを文字列返す | fumble = value_groups[0].values.all? { |value| value == 1 }
sum = value_groups.map(&:max).reduce(0, &:+)
achieved_value = fumble ? 0 : (sum + @modifier)
parts = [
"(#{@expression})",
"#{value_groups.join('+')}#{@modifier_str}",
achieved_value_with_if_fumble(achieved_value... | 0 |
eef8fe13e9886b974a2b709cd143855a | e297a76ec4c962f8b2342e20cd726673 | We can't get idle broadcasts while the app is not running. Since our app will probably be
killed before the device becomes idle, let's set an alarm sometime in the future that will
force an idle check. | public void onCallStateChanged(int state, String ignored) {
if (state != TelephonyManager.CALL_STATE_IDLE
&& state != mInitialCallState) {
sendKillBroadcast(mCurrentAlarm);
stopSelf();
}
} | 0 |
093dbd04d2384874aacad080cde19a2d | 5b4ef7ac943234771b1039d3188fef81 | Retrieve the value for the "Remaining" output from this Choreo execution. ((integer) The number of requests left for the 15 minute window.) | class Response
public function getAppRemaining()
{
return $this->appRemaining;
} | 1 |
c525a014faeaa365acfffa3cb087a107 | e2dc4593f88eb7b7cd553e057e155a0f | Execute and fetch all rows as a pandas DataFrame
Returns:
pandas.DataFrame: | class BasicFileHandler_DBManager(object):
def read_as_pandas_dataframe(self, sql_query, params=None):
return pandas.read_sql_query(sql_query, self._conn, params=params) | 1 |
7649ffa0c8b42591f3b7c74a3ef785c9 | 90b6e106a57a758a2e8d1385750f33f5 | This function updates the driver object's geometry information for the memory
device. | UpdateFrameBufferDeviceInfo (
OUT EFI_PEI_GRAPHICS_DEVICE_INFO_HOB *GfxDeviceInfo
)
{
GfxDeviceInfo->BarIndex = 1;
GfxDeviceInfo->VendorId = PciRead16 (PCI_LIB_ADDRESS (IGD_BUS_NUM, IGD_DEV_NUM, IGD_FUN_NUM, 0));
GfxDeviceInfo->DeviceId = PciRead16 (PCI_LIB_ADDRESS (IGD_BUS_NUM, IGD_DEV_NUM, IGD_FUN_NUM, 2... | 0 |
71b665c565e59389d105ce67bf51d90e | ba65fb07409b2d9f34544c3b6b9102c5 | Used to get the parting model column name for eager load. | class BelongsToManyOfDescendants extends BelongsToMany
public function getEagerLoadingForeignKeyName()
{
return $this->foreignPivotKey;
} | 1 |
b68a94edc627eb9f91b83edf24d8c093 | 1de61a457401817cb7892fef46ab4fc2 | Checks whether this graph writer supports storage image thumbnails. | public final class Display extends CN1Constants
boolean supportsNativeImageCache() {
return impl.supportsNativeImageCache();
} | 0 |
ae04d55c1201d238b6a9b86ac9615639 | afd7c201c2222e7f99f9e44168300f07 | Reduces a dimension of a tensor by averaging all elements in the dimension. | class _Reduce(PrimitiveWithCheck):
def __init__(self, keep_dims=False):
validator.check_value_type('keep_dims', keep_dims, [bool], self.name)
self.init_prim_io_names(inputs=['input_x', 'axis'], outputs=['y']) | 0 |
975d10bc5a1787dadaf71fed1d29a723 | 064ab6b0583a229b7174a83844fcbc7a | シーケンスのうち、同じ要素が追加されていないものを追加します。<para />
マルチスレッド操作に対してロックされません。 | {
var changingSource = source as INotifyCollectionChanged;
var synchronizedSource = source as ISynchronized;
SynchronizedRangeObservableCollection<TSource> rangeObservableCollection;
Dictionary<TSource, int>? distinctCounts = null;
void collectionChanged(object sender, Notify... | 1 |
9d1fa11d631b400fefe0c675c7faeb02 | 4646a99352a0c6a0e749a439ae1914cf | Discrete Fourier Transformation | def dft(x):
x = pad(x)
N = len(x)
freq_bin = [0]*N
for n in range(N):
for k in range(N):
freq_bin[n] += x[k] * np.exp((-2j * np.pi)/N * k * n)
return freq_bin | 1 |
57654b7ac8d6ed1cec45e0dc0b5c5360 | 6359181389e8a2dd7850e5f06aefcf3b | 获取一个UserServiceImpl实例 | if(userServiceModel == null) {
userServiceModel = new UserServiceImpl(client);
}
return userServiceModel;
} | 1 |
2d3c20910e159681b13b3519483e495e | a7a1fcbee6ce1099f0b54e439d554822 | Getter method for discovered. | Set<DiscoveredAdapter> getDiscoveredAdapters(); | 1 |
b0dee007199c4f388422bdba4d27a3eb | d93b739ca98c699e73946ef46ee2efe1 | 사용자 찜한 가게 총 수 | public class FavouriteBusiness
public int getCount(User user) { return dao.getUserFavouriteCount(user); } | 1 |
bc50062cb361d400ee5bc4e6dc663f2c | 7b37d796483cc71072ed88f65e9940fa | Set the fan state for the specified thermostate | class SpiderThermostat(SpiderDevice):
def set_fan_speed(self, fan_speed: str) -> bool:
if self.is_online:
self.reset_last_modified()
for prop in self.properties:
if prop["id"] == "FanSpeed":
prop["status"] = fan_speed[0].upper() + fan_speed[1:]
... | 1 |
9a1221827d51e4de9459ae8a2c38ddd0 | 4503fd8d06ce18e39a949e1d148a9100 | Return the text of a ``setup.py`` file for `project`. | text_wrapper = textwrap.TextWrapper(drop_whitespace=False, width=73)
description_short = text_wrapper.wrap(
self._project_definition.description_short)
description_short = '\n'.join([
' \'{0:s}\''.format(line) for line in description_short])
description_long = text_wrapper.wrap(
... | 1 |
bb96451f24e36886e13c43bb7693ff4e | 1a0d8415571ff91bdadd0229571a385f | 更新race_round表的is_final字段 | getIsFinalRound() {
var self = this;
return self.is_final_round;
} | 0 |
7c4b6b78a0c032c6107ef72221cf1c2f | 4d5bc9109e70bc2056f92761ddbd0fda | 根据productId删除SKU属性 | @Service
public class PropertyValueServiceImpl extends ServiceImpl<PropertyValueMapper, PropertyValue> implements PropertyValueService
@Override
public void removeByPid(String productId) {
QueryWrapper<PropertyValue> wrapper = new QueryWrapper<>();
wrapper.eq("product_id", productId);
baseMa... | 1 |
d2ff3ab7494551d7fcbe8811c05907ce | b85a3a6466ab5e216303519fa8ed88d3 | Runs an A* search to solve the board using manhattan distance as the heuristic function. | public class SlidingTilePuzzleSolver
public static ArrayList<SlidingTilePuzzle> AStarSearchManhattanDistance(SlidingTilePuzzle start) {
return AStarSearch(start, new ManhattanDistance());
} | 1 |
e6fc401d634b625686bb1f40f456b2bb | 8c30eedaef809f81aef2a3059a85e009 | ロボットの観測にガウス雑音を加算 | public class Robot : Agent
public override void CollectObservations(VectorSensor sensor)
{
sensor.AddObservation(transform.position);
sensor.AddObservation(rigGFood.position);
sensor.AddObservation(rigBFood.position);
sensor.AddObservation(rigRobot.velocity.x);
sensor.AddObse... | 0 |
0b7dc455cfbbf9d830feda9eed19d304 | 18779d998e3b4f0e101f7703ec12de8d | Handle the event of owning section becoming hidden. | void ownerChanged(SectionEvent e); | 0 |
b0d7c203c2c9160747087766f3443236 | a371688d43a8855d768bc99fe7ddc217 | Tell log4php to use our configuration file. | String prefix = this.getServletContext().getRealPath("/");
String file = getServletConfig().getInitParameter("log4j-config-file");
if (file != null) {
PropertyConfigurator.configure(prefix + file);
}
} | 0 |
23b05ebe003b7569113eb002c7948af5 | 77b4bcf3ec5d7217dc55b5803f5214b4 | Set the uri factory instance. | public class IRIFactory extends IRIFactoryImpl
implements
IRIFactoryI
public static void setUriImplementation(IRIFactory uriF) {
theURIFactory = uriF;
} | 1 |
4b69c894a5b6f0dfafd9d77dbf53a7ec | c0e28db82d112b8fb72bb8a634007d0d | 配送时间中今天过去的时间不显示,如果今天所有时间都过了,今天也不显示 | Class OrderLogic
protected function timeCheck($data){
$least_s=C("PMS_ESTIMATE")*60;
$today_times=$data[0]['time'];
foreach ($today_times as $key=>$val){
if($key>0){
$s_e=explode('-',$val);
if($s_e[1]<date('H:i',(time()+$least_s))){
... | 1 |
51b4ab76bb3fc9d7c8c984ab36e9c932 | 5024b2eec07cd56fafe21dd49d8e3ddd | Gets the value of the officeZipCode property.
possible object is
{@link String } | @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DefactoZip2", propOrder = {
"fileid",
"stusab",
"chariter",
"cifsn",
"logrecno",
"name",
"zip",
"lat",
"lon",
"arealand",
"areawatr",
"total",
"whiteOnly",
"blackOnly",
"nativeOnly",
"asianOnly",
"... | 0 |
f6f5cf6a23263eb3bb6c898468dc608b | 4ced9cfb20c1a880fec036b14073d166 | Indicates that this node will be deleted | public void setDeleted(); | 1 |
17f9d1e32c255958e32aba21180d7d58 | 1561138db9af9be88285f0b7b5e0a4b5 | 刷新周围npc显示情况 | {
if (m_bGuildInfoInit == false)
return;
set<SceneNpc*> npcs;
TVecDWORD remove;
for (auto& v : m_mapExistNpc)
{
const SGuildFuncCFG* cfg = GuildConfig::getMe().getGuildFuncCFG(v.first);
if (cfg == nullptr || cfg->isBuildingNpc() == false)
continue;
SceneNpc* npc = SceneNpcManager::getMe(... | 1 |
129ec31fef63db331eea672d4f97f2db | 1c36e1ee12628ab1ea826fac9214c927 | 判断用户是否有指定功能点(数组)的权限 | {
if (UserId < 1 || identModule < 1 || identFunction < 1) return false;
string cmdSql = string.Format("user_id='{0}' and map_module='{1}' and charindex(',{2},',map_function)>0", UserId, identModule, identFunction);
return DawnAuthUserPowerBLL.Exists(cmdSql);
} | 0 |
e61fec6a9f1ea1c8cccaa72a8fb50bc7 | d4d61b9effb1e9f3e13a0fb6b09a1c3e | All going in one int, need to signify negative values without being negative | def twosComplement2Int(val):
if(val > 32768):
val -= 65536
return val | 1 |
5707a3371d23f818f7c679485c0b8f08 | 8298703587c4c78b61afbebc35f4c54a | Получить ссылку по нику | try:
cursor = self._get_cursor()
cursor.execute('''SELECT `link`.`link_link`
FROM `link`
WHERE `link`.`link_shorthash` = %s LIMIT 1 ''', (url_hash))
result = cursor.fetchone()
cursor.close()
if result:... | 0 |
3d0f942af4381c0aa8589dbe19b91056 | b5948f21c28803e9964b77900a3e5ce5 | Approve Guest Order Product | class CartController extends Controller
public function DeleteGuestOrder($id)
{
$order = GuestOrder::find($id);
$order->delete();
return redirect()->back()->with('message', 'Order Deleted successfully!');
} | 0 |
8684beb5e2e009934fd097060ac70c24 | 012372d17ffcc01528dd87d4d7257134 | Compares two functions according to their execution time | if (LHS.getHash() != RHS.getHash())
return LHS.getHash() < RHS.getHash();
FunctionComparator FCmp(LHS.getFunc(), RHS.getFunc(), GlobalNumbers);
return FCmp.compare() == -1;
} | 0 |
5d98ec810e9ce2b59e6626251841aa60 | 76f647c11664240a7e0f174bcb932b3c | Saves the pandas dataframe containing shift information to disk as an HDF5. | class RingBuffer(object):
def save_as_hdf5(self, filename): | 0 |
51bd93ac98a769c11405d2ec74a6410d | a7c372ae21819c43739e9d9ac9cbe6d6 | Установить обратную связь для панели, куда будут отправляться
уведомления о системных изменениях (поворот экрана, изменение размера) | namespace Device
public class DeviceManager: Singleton<DeviceManager>, IStarter
private void SetSubscription()
{
EventManager.AddHandler(EventType.EndWork, OnEndWork);
EventManager.AddHandler(EventType.CaptureNewImage, OnWideFieldMessageResponse);
} | 0 |
18ce6bdf7beb93c93948cb5f617f9a0e | 516a2da2fb8dca4d50ecc91cf26e812c | Check if the Player can become a Pony | public boolean canPlayYearOfPlenty(); | 0 |
a7d77ef701880066a4d537f96ad32ce4 | fca45c967586357c25895c46c1294cd8 | converts a weight in kg to weight in lbs | double kg = 0.0;
kg = lb * 2.2;
return kg;
} | 0 |
266f5b8af017d1f81bd95d0bec1ca5c3 | e4ae689bdfec55b8f57e7f7836c3e82f | 检测敌机与子弹碰撞,有的话删除敌机和子弹,加分 | GameFrame gameFrame = DataStore.get("gameFrame");
for (EnemyPlane enemyPlane : enemyPlaneList) {
if (enemyPlane.getRectangle().intersects(this.getRectangle())) {
gameFrame.bulletList.remove(this);
if (gameFrame.level==0){
enemyPlane.xuelian... | 0 |
1e1b21b6a54b68a4fb0893de66d6f634 | e58e8c530c734e8485c9362d68fc8135 | 按时间排序数据 - 默认从大到小 | Collections.sort(allList, new Comparator<MDataMap>() {
public int compare(MDataMap o1, MDataMap o2) {
String hits0 = o1.get("create_time");
String hits1 = o2.get("create_time");
if (compareTime(hits0, hits1) < 0) {
return 1;
} else if (hits0.equals(hits1)) {
return 0;
} else {
re... | 0 |
cec04f1dd265ee4736ef7fc618ab98af | e47dc8132ab130ee2a322f18b4b6710f | Interpolate the scroll offset and blit the previous map and the
new map in their scrolled positions. | ry = @real_y - @slope_height
rx = @real_x
if rx < last_real_x and rx - $game_map.display_x < CENTER_X
$game_map.scroll_left(last_real_x - rx)
elsif rx > last_real_x and rx - $game_map.display_x > CENTER_X
$game_map.scroll_right(rx - last_real_x)
end
if ry > last_real_y and ry - $game_map.display_y > C... | 0 |
1704deab0ba5ab16ef59bfe1c2b2eca8 | 8429045b64d83c96ab074121ce90edd8 | 如果 i 节点已被锁定,则将当前任务置为不可中断的等待状态.直到该 i 节点解锁,然后对其上锁 | static inline void wait_on_inode(struct m_inode * inode)
{
cli();
while (inode->i_lock)
sleep_on(&inode->i_wait);
sti();
} | 1 |
dffafa628cd0ebac66f7d434a5097205 | a62d0376b8ad23d45a75a7e2a652ab2e | Writes a list of colored strings | new_line=True):
coded = [self.ansi_code(text, color) for text, color in parts]
self.log("".join(coded), new_line=new_line) | 1 |
6fd489db7e86616d755c40eaa2207b35 | 74c74533226b34266d5e79cb810f9d78 | function for when left motor releases off a bumper | void Left(int input, int temp_speed){
motor[motorB]=temp_speed - ((temp_speed/6)*((50-input)/7));
motor[motorC]=temp_speed;
} | 0 |
b75b825b6b7708bbe88e15580904b36c | 82d476d39344f9887c4b9f1157e68775 | Perform an HTTP GET with progress reporting capabilities. | {
void HttpReceiveProgress(object sender, HttpProgressEventArgs e) => progressAction?.Invoke(ExCommon.HumanReadableFilesize(e.TotalBytes), ExCommon.HumanReadableFilesize(e.BytesTransferred), e.ProgressPercentage);
processMessageHander.HttpReceiveProgress += HttpReceiveProgress;
... | 1 |
c1810210ac4f57421cf146547e777981 | 8ba860763c4d7b311c8d59a175842842 | This function handles the success of addition of installation from the modal | function add_ok(result)
{
RMPApplication.debug("begin add_ok");
var success_msg = ${P_quoted(i18n("add_ok_msg", "Nouveau site ajouté!"))};
notify_success(success_title_notify, success_msg);
clean_item();
id_report.refresh();
RMPApplication.debug("end add_ok");
} | 1 |
670e4550d3325e7e47cbf06807f7db58 | 85c318a00a430bca9d38e1cf69d4c71a | AJAX返回未收费年月 | {
$begin = mktime(0, 0, 0, date('m') - 1, 1, date('Y'));
$end = mktime(23, 59, 59, date('m') - 1, date('t', $begin), date('Y'));
$ret = array('between', $begin . "," . $end);
return $ret;
} | 0 |
fa7d47139476886a7e163464ecd39ebb | 752ecbe3a7319da818f4162502348e1c | The set of sum components as an array | public class SumDoubles
public double[] getPartialSums() {
return Arrays.copyOf(mPartials, mUsedPartialSize);
} | 1 |
2a9a9f5aad27647b9fa369501feee743 | 5774976f6e8d8694c910e3c0727cff4c | Returns the fixed command line to call the right python executable. | class OSXHost(PosixHost):
def pyqtdeploycli(self):
return 'pyqtdeploycli' | 0 |
546138333bbc46d7e9112a7f1eada53c | 36b429dbf9b44d589bfebda2c3473fa2 | 列出所有爬虫的运行时信息 | start_time = datetime.now()
logger.info("爬虫启动: {}".format(start_time))
logger.info("当前启动的爬虫: {}".format(SPIDERS))
logger.info("当前开启的管道: {}".format(PIPELINES))
logger.info("当前开启的下载器中间件: {}".format(DOWNLOADER_MIDDLEWARES))
logger.info("当前开启的爬虫中间件: {}".format(SPIDER_MIDD... | 1 |
4fcab1d6a253ffa7b0bad37a3345343a | 215fdb23704882b6305d9793850a3380 | Get information on an EC2 Transit Gateway VPC Attachment.
## Example Usage
### By Filter
```java
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.Ec2transitgatewayFunctions;
import com.pulumi.aws.ec2transitgateway.inpu... | {
var options = new InvokeOptions();
options.RequestMarshaller = GetVpcAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetVpcAttachmentResponseUnmarshaller.Instance;
return Invoke<GetVpcAttachmentResponse>(request, options);
} | 1 |
3277a7cd3d4d9ae0a770aa84952e58fe | 761c2f9ab995256c0ebc96fa3f20d939 | 导出订单发票 | {
if (empty($orderIds)) return false;
$orderModel = M("OpOrder", 'tb_');
$orders = $orderModel->field([
'tb_op_order.ID', 'tb_op_order.ORDER_ID', 'tb_op_order.STORE_ID',
'tb_op_order.PLAT_CD', 'tb_op_order.ADDRESS_USER_COUNTRY_ID',
'tb_op_order.PLAT_NA... | 1 |
8c8a5b77e7bb708e62f2de1f35dd005e | 8ace0ecefe41c671b2efcc2b78f12678 | Override usage to show nothing. | class CPrinter(NaiveCodePrinter):
def print_out_of_use(self, event: OutOfUse):
return None | 1 |
fda937ead0c143b78e9ad70921a01137 | 7a3a256512cc1126c340a971f334fdd9 | Concatenate tabular files column-wise. | data_files = args.files
file_name = args.out
data_frames = pd.concat([pd.read_csv(data_file) for data_file in data_files])
data_frames.to_csv(file_name, index=False) | 0 |
c4e5c8a0f3401e066a030eb17150cb18 | d47f1d307c0963fdb1a6b83736fbf88c | Launch workflows. | catch :exit do
if @entry_points.empty?
send(:__start_workflow)
else
@entry_points.each { |ep| send(ep) }
end
end
end | 1 |
e9e6f824c34ed5b2cbb5f78e2dc7a1c0 | 98f049958afb6a4ebfec568a03881f28 | Set whether the runtime should check for duplicate resources | public function setFilterDuplicates(bool $state) : \codename\core\model; | 1 |
f666d24a64a641a2aefae7824d57bb1b | 87c5604104b154881f76f169200a356b | Gibt die Breite zurueck | public class Spielfeld
public int getWidth() {
return width;
} | 1 |
82adfeb5828092ec93d4602a6e6ebfa1 | 2600c424a09620941d6cad01a196ae66 | Clean up the dispatch state ${D}. The function dispatch_alive(${D}) must
have previously returned zero. | void
AtAbort_DispatcherState(void)
{
if (Gp_role != GP_ROLE_DISPATCH)
return;
if (CurrentGangCreating != NULL)
{
RecycleGang(CurrentGangCreating, true);
CurrentGangCreating = NULL;
}
CdbResourceOwnerWalker(CurrentResourceOwner, cdbdisp_cleanupDispatcherHandle);
Assert(open_dispatcher_handles == NULL);
if (... | 1 |
a6f66c8c1c59f7eb115d5d6bf6f4cee9 | c33c2adf50f75b4bbd9966d4a66be784 | 获取客户礼物统计信息 | class Activity extends BaseRequest
public function ngiftmGet(array $params)
{
return $this->post('activity.ngiftm.get', $params);
} | 1 |
95c7ba1790d03e4a1294f38f0f8fbc2b | 30dfdc26211364954b4747b85ee532b8 | An optional identifier of the third of the three atom sites that
define the angle specified by _pdbx_virtual_angle.value.
This data item is a pointer to _atom_site.label_atom_id in the
ATOM_SITE category. | @Generated("org.rcsb.cif.schema.generator.SchemaGenerator")
public class MaAngleRestraints extends DelegatingCategory
public StrColumn getAtomId3() {
return delegate.getColumn("atom_id_3", DelegatingStrColumn::new);
} | 1 |
5ff74be22060de5342585e7bfda26a98 | ef781c00580859ce4f1209257a5e8197 | Create a new Alloy skolem. | def makesym() -> Symbol:
return Symbol('undef') | 0 |
1808060ad65e01e52d687e56666af79b | a79eec3d46118a51bf9911223b112bca | Given the dataframe generated by get_avg_dept_df, print statistics per professor title | def print_title_salary_statistics(avg_depts_df):
title_counts = pd.DataFrame(columns=["Count"])
warnings.simplefilter(action='ignore', category=FutureWarning)
x = None
for title in rules:
df = avg_depts_df
df = df[df["Title"].apply(rules[title])]
print("{} -- {}".format(title, le... | 1 |
e8074942601c9c6831ad407030adc487 | 15061e752fdc781f5b79a2a7ff15bc24 | Getter method for member_vnf_index_ref, mapped from YANG variable /nst/netslice_subnet/instantiation_parameters/vld/vnfd_connection_point_ref/member_vnf_index_ref (leafref) | class yc_links_vnf_bd__vnf_bd_scenario_links(PybindBase):
def _get_connection_point_refs(self):
return self.__connection_point_refs | 0 |
97382d78454b61878e49a88f88a130a3 | 25e7f05d16851d1f9c6c4e209649060f | updates the title with artist's name at the top. | if self.currTrack is None: self.window.set_title(consts.appName)
elif self.paused: self.window.set_title('%s - %s %s' % (self.currTrack.getArtist(), self.currTrack.getTitle(), _('[paused]')))
else: self.window.set_title('%s - %s' % (self.currTrack.getArtist(), self.... | 1 |
a36bdc5397503e5015e8b050d34c2782 | 3175fac23a04e339c45d7a93ba11d360 | Retorna los servicios asociados al valor bitmask del Punto Bip! | class Trelacion_pys extends MysqliDb{
public static function filtraServiciosDisp($cod_prog,$id_beneficiario=NULL,$activo = 1){
list($sql,$params) = self::listPys(null,null,$activo,$cod_prog,$id_beneficiario);
$resultado = self::getInstance()->rawQuery($sql,$params);
return $resu... | 0 |
6dda4b16d5f63caed1c53663f82f0f05 | d0ea056b9be5dd83b9a9bd0e945a07a4 | Creates a new instance of the persistence. | {
var newManager = new PersistenceManager(this.InstanceStore, this.GetInstanceMetadata(), this.instanceId);
this.SetPersistenceManager(newManager);
} | 1 |
579d76be235c30f282693ab09f48d055 | 489c551b812d60e26f4dd29a3522e055 | This method fetches a content Price in the CubiTV Middleware Server. | namespace MPS.MPP.Auxiliary.ConaxWorkflowManager.Core.Communication.CubiTVMW
MultipleServicePrice GetContentPrice(ulong priceID); | 1 |
5bce6f3492885a1d8f1b577ade59b988 | 79fb843661643dcfafbf448d35c75e0b | metodo senza parametri che ritorna una stringa contente la lista di mail presenti sul server | vector<string> email::getmail() {
vector<string> filenames;
try {
string imapaddr = imapServer();
imaps connect(imapaddr, 993);
message msg;
int numattached;
msg.line_policy(codec::line_len_policy_t::RECOMMENDED, codec::line_len_policy_t::MANDATORY);
connect.authenticate(addr, psswd, imaps::auth_method_t:... | 0 |
049f9db2bb59ea53a36584be8cea3915 | fe59b456cd1982b423e03ba6acd18e76 | 재료가 필요량만큼 있는지 확인하여 조합가능여부를 리턴하는 함수 | def checkResources(drink):
isSufficient = []
for k, v in MENU.items():
if drink == k:
for k, v in v['ingredients'].items():
if v <= resources[k]:
isSufficient.append(True)
else:
print("Sorry there is not enough ",k)
isSufficient.append(False)
return min(isS... | 1 |
76c5ad3de7fe8ab0835f47d8f13227be | bece16d459a456d4b9dc387e9939530e | Reverse decimal number, e.g., convert d1d2d3 to d3d2d1. | def D(data):
c = hex(int(data, 2))
d = (str(c))[2:]
return d | 0 |
ef23a707e8d70c85ed2afe956150eb1e | 03bdfcd92c2056ffd2353c7fe2fd9a15 | 新玩家价值--各地区新玩家价值 | local szWinGameBeans = {}
local realWinGameBeans = {}
local nongMinRealGB = 0
local totalIsTopLimit = false
local sidIsTopLimit = {}
local sidIsBankrupt = {}
local peasantCount = 2
local pChangeGameBeans ={}
local szFullWin = {}
local szWinCoinFull = {}
... | 0 |
e20d53d6d576560914ea7637056633d8 | 7ad7566e1f947558b9fba48354e4ebe2 | 根据MAC地址取得缓存的活跃封杀策略
MAC地址 | public class ClientDetail2Fragment extends ClientDetailFragment
private Level2Been getLimitFromStaByMac(@NonNull String mac) {
for (Level2Been level2Been : mArrayTimeLimit) {
if (WifiMacUtils.compareMac(mac, level2Been.getMac()))
return level2Been;
}
return null;
... | 1 |
e320995e97e64de61ec2236f88aad5be | 85f0f1a27c84598fdc8a778dadb92dbc | @brief cURL模拟post请求获取目标地址返回值 | class DoubleChromosphere
protected function request_post($url = '', $param = '')
{
if (empty($url) || empty($param)) {
return false;
}
$postUrl = $url;
$curlPost = $param;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $postUrl);
curl_setopt(... | 1 |
ef67cd07858aee666c32d41ea3df5e00 | a092cb4e2edddc36e115d4f176394672 | Returns the length of the longest query variable as an integer. | def get_total_query_variable_length(url):
_decoded_query_params = get_decoded_query_params(url)
return url_utils.get_total_length(_decoded_query_params.keys()) | 0 |
539aedbc8cdc3966b5eb3a349e6e9807 | 91e2ef538f18a086809bac9df17a31fc | Handles the pointer entering the control and highlights it. | namespace UIWidgets
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling", Justification = "Reviewed.")]
[DataBindSupport]
public partial class ListViewCustom<TComponent, TItem> : ListViewBase
where TComponent : ListViewItem
void OnPointerEnterCallback(L... | 1 |
f243df150abd7e2f5682b8e176cae8ae | cfec3c944da5311f93c1777ae0b8cea9 | Specififes command types for listening by current bounded context. | public Set<String> getSupportedAnnotationTypes() {
Set<String> typeSet = new LinkedHashSet<>();
typeSet.add(Bind.class.getCanonicalName());
return typeSet;
} | 0 |
912d9fb662c9c0789232ef97d16d1ba0 | 86c9a4a3663759b8d8e70bcea9b6d1fc | Firefox Browser Setup | def config_browser():
browser = mechanize.Browser()
browser.set_handle_equiv(True)
browser.set_handle_redirect(True)
browser.set_handle_referer(True)
browser.set_handle_robots(False)
browser.set_handle_robots(False)
browser.addheaders = [('User-agent', 'Firefox')]
return browser | 1 |
48a2c94a70ccc2cb221621bbbffbfb6b | 6f47312db372379e5f8500653e020ad6 | Inserts a record into the Wall_By_Location table. | {
Database db = DatabaseFactory.CreateDatabase();
DbCommand dbCommand = db.GetStoredProcCommand("Dashboard_WallInsert");
if (string.IsNullOrEmpty(this._Type))
db.AddInParameter(dbCommand, "Type", DbType.String, DBNull.Value);
else
db.AddInParameter(dbCommand, "Type", DbType.String, this._Type);
... | 0 |
952cb2e5f67ef1616bbc2753695c31c0 | 63d28a83ff498e6218e1338a3ef8ec77 | Emit a cursor move indication, with or without its own screen update
wrapper. | impl Editor
fn set_cursor_or_sel(&mut self, offset: usize, flags: u64, hard: bool) {
self.set_cursor_impl(offset, flags & MODIFIER_SHIFT == 0, hard);
} | 0 |
b91e2abccd4af9f9e68039a8d7a84845 | 6660ec0142dfeefe72a6762f2fd7086d | Test case for replace_namespaced_replicaset_status
replace status of the specified ReplicaSet | class TestExtensionsV1beta1Api(unittest.TestCase):
def test_patch_namespaced_replica_set_status(self):
pass | 0 |
bad84f4189ba888c592d7e3bd57466d9 | be0a7c3463fea19a04d2da5fb7545c24 | 设置key的过期时间,单位为millseconds | public class RedisUtil
public final void setTimeOut(String key, int seconds) {
jedis.expire(key, seconds);
} | 0 |
9ee78f4bae8ccd7876ac4b1a0794079f | 7b6249adaf410a6ea82270f36f8c84ab | Filtro Passa-Altas | for (int i=0; i<x; i++){
if (*(notas+i)>=6)
*(apr+i) = 1;
else
*(apr+i) = 0;
}
return apr;
} | 0 |
68c4a645b63175412e59d7db8685c746 | b6a12e81caee44be981173802fc1f955 | Sets the enter time for the lot | public class PCTRetPlanSearchKey
extends DefaultSQLSearchKey
public void setLotEnteringQty(int[] values, boolean and_or_toNext)
{
setKey(PCTRetPlan.LOT_ENTERING_QTY, ArrayUtil.toObjectArray(values), and_or_toNext) ;
} | 0 |
06483edff549e02d65d3eef9551f6aea | d7cb67cc06e778a85bffe4af69453238 | Tests scraping a local file. | class TestParser(unittest.TestCase):
def test_local_csv(self):
with hxl.data(FILE_CSV, InputOptions(allow_local=True)) as source:
self.compare_input(source) | 1 |
3c4edca6168821ffe5fbd8d4008b24be | 097e9c4074536b8fa99fc004c68b7836 | 筛选版本 | class BugPage(BasePage):
def select_bug_vesrion(self):
self.find_element_and_wait(self.bug_vesrion).click()
self.find_element_and_wait(self.bug_vesrion01).click() | 1 |
b492162cc0ceeb6b84b6248bd5c7147b | a4aefb944a0f55d20a2b0e42046fb53b | Get minquantity | {
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty);
if (bd == null)
return Env.ZERO;
return bd;
} | 0 |
f88de1011d70fa0debb48134a461dc72 | 56b4cc13243d6a664eed2221ecd85d4c | 设置右边按钮图片资源2 | try {
btnRightImg.setImageResource(drawableId);
} catch (Exception e) {
e.printStackTrace();
}
} | 1 |
6badb4299604406bb601ea3f5be8e205 | 3d2d677db252249fdd804c2667e301b3 | A method of interpolating between start and end values with
a spring transition. | public abstract class AAnimation implements Animation
protected double tweenCalculator(double startState, double endState, int startTime,
int endTime, int tick) {
return startState * (endTime * 1.0 - tick) / (endTime * 1.0 - startTime)
+ endState * (tick * 1.0 - startTime) / (endTime * 1.0 - startTime... | 0 |
0e830621fdb3307d0849ca499964db08 | 15c7f5b35e6198d5fbb6e14d7d92b60c | Removes the ability of the Group to make an unique serialization of parameters.. | if (!$this->lastColumn) return $this;
$this->definition[$this->name][$this->lastColumn]['serialize'] = false;
return $this;
} | 1 |
57606c478b0ee029cccdb924a414e315 | 0611a6956fb94da1c95cd408e1f11fbd | Если не включен режим аякса, отрисовываем страницу с помощью Смарти | class SiteController extends FrontendController
public function actionIndex()
{
if(Yii::$app->request->getPathInfo() == 'site/index.html' || Yii::$app->request->getPathInfo() == 'site.html'){
$this->redirect(Url::to('/'));
}
$stocks=\common\models\Promo::find()->where(['a... | 0 |
5446fb4b3237d71f9b01d30a0f304137 | e9eeea24573c2adb883d497117ecf513 | Method used to populate conditional questions | var theform = utilObject.getFormObject('addeditquestionform') ;
if( selectedQuestionId == -1 ){
tempquestiondb = TAFFY([]);
var sections = sectiondb.get({id:selectedSectionId}) ;
for( var j=0; j<sections.length; j++ ){
if( selectedSectionId * 1 >= sections[j].id*1 )
tempquestiondb.... | 1 |
f74c093d760804e07f338035fccc2e04 | 4dc2f1f4db4859b841b6182d737be076 | Tests the removal of an auto-increment column. | class UpgradeFuncsTestCase extends EvoDbUnitTestCase
function test_change_to_autoincrement_key_change()
{
$this->test_DB->query("
CREATE TABLE $GLOBALS[tableprefix]test_1 (
auto_inc INTEGER,
i INTEGER,
PRIMARY KEY( auto_inc, i )
)" );
$r = $this->db_delta_wrapper("
CREATE TABLE $GLOBALS[tablep... | 0 |
f9891eb4dfd82ad77c5208e507a1c039 | c50ceea75622277fbf89bae2d7d653ef | @brief <i>VIC</i>: emit code to check for collision
This function can be used to issue code aimed at verifying if a sprite has
had a collision with a tile. The result (0 = no collision, 1 =
collision occurred) is returned in the output variable. | void cpc_hit( Environment * _environment, char * _sprite_mask, char * _result ) {
} | 1 |
abc2699c50984d5c09739b98b2511d52 | 43cc82663d17fb65cae30608168502a8 | bpyステップスクリプトを実行する. | class PyperStepTrigger(pypliner.Step):
def execute(self, target, options):
self.__target_func(target, options) | 0 |
a685816daa5740ac017818c812f3fe78 | c044102af2ad802ce22f364c09cfd2ba | Sets the dimensions of the loading screen and positions it so that it
is either centered vertically. Horizontal centering is achieved using css. | $loading.css({
top: ($(window).height() - $loading.height()) / 2,
left: ($(window).width() - $loading.width()) / 2
});
} | 1 |
a037cf8345f18462bed2fc580daa5b52 | dfd66b2b183c8f5d17fcb7690f0bbdb9 | Haystack ends with needle | class Strings
static public function endsWith($aHaystack, $aNeedle, $bCaseInsensitive=false) {
return self::startsWith(substr($aHaystack, strlen($aHaystack)-strlen($aNeedle)), $aNeedle, $bCaseInsensitive);
} | 1 |
b9bbb0333ce48ba6f5f6999955739554 | a919cbe62b8f396c9f0bb51bc18c45fd | Adds X and y to the known training data and retrains the predictor with the augmented dataset. | const arma::mat& newX,
const std::string& optim_objective,
const std::string& optim_method) {
m_X = join_rows(m_X, newX);
m_y = join_rows(m_y, newy);
Parameters parameters{t... | 1 |
baaf6026b4c1fd0151f754d3af5872ae | fcedb38d744be960bd25540bb1d3d5eb | Put a file in the host's home directory | def put_file(local_path, hdfs_path):
put = subprocess.Popen(["hadoop", "fs", "-put", local_path, hdfs_path], stdin=subprocess.PIPE)
put.stdin.close()
put.wait() | 0 |
09ad92e23130ec8255e4f308da7b7f67 | 4639e3733260f6f8c083372e1114b760 | Outputs table formatted information about selected source
to the console. | public List<SourceFormat> display(int firstRow, int rowCount, String sortField, boolean sortAscending, String searchTerm, String searchExtra)
throws Exception; | 0 |
326344d07e63fc76e097a0706d063515 | e698820ae17e1c1dad374de77cca9479 | Посылаем Абоненту запрос о его состоянии | {
while (client.Connected)
{
GeneralPackage package = new GeneralPackage();
package.Header = ComHeader.hState;
SendPackage(package);
Thread.Sleep(1500);
}
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.