query_id
string
corpus_id
string
query
string
code
string
label
int64
fde886e2a6a7cde82f851059cf00f591
c5614ac5c4db71f633de01e59fb1431f
Check to see if DomainEndpoint property is set
namespace Amazon.Redshift.Model public partial class Cluster internal bool IsSetEndpoint() { return this._endpoint != null; }
0
7de8fea0f0b4b03dc661988e38d94e25
b3dfd19bcd08a7a3b88424db145a40d7
Write performer details to the standard output stream
{ cout << endl; cout << " " << "---- List of all computer scientists in the system ----" << endl; cout << endl; displayTopTable(); vector<Performer> pf = _service.getPerformers(); for (size_t i = 0; i < pf.size(); ++i) { if(pf[i].getName().length() > 16)...
1
d4fafb83c257574858ded620780ba9bc
1db2399316c633a70d43fcab1566705b
1深拷贝
function copy1(target) { let res = target instanceof Array ? [] : {}; for (const [key, value] of Object.entries(target)) { res[key] = (typeof value == 'Object')? arguments.callee(value) : value; } return res; }
1
ec65b6a9d10b65f4cc150833bca0104c
a7f4aaa63f9118c15b4d3a910e81ded9
Function runs command to add ppa and then an upgrade
class GnomePPA(object): def add_ppa(self): RunCmd(self._staging_cmd + "; " + self._gnome_ppa_cmd + "; sudo apt-get update")
1
d9ae2d7c64c521263d8099f97a1c35aa
38de3d48d7129181890494c3072dbd12
Get the tags for a locationFootprint. Get all existing locationFootprint tags.
namespace Infoplus.Api public class LocationBillingTypeApi : ILocationBillingTypeApi public async System.Threading.Tasks.Task GetLocationBillingTypeTagsAsync (int? locationBillingTypeId) { await GetLocationBillingTypeTagsAsyncWithHttpInfo(locationBillingTypeId); }
0
b5d79ea133477c51c0af84f2e9fbdb97
2b8cc1eab4bf633b5931c0b269e70175
The text of the help if it exists. Null otherwise.
public class PrometheusData public String getHelpText() { return helpText; }
0
d83d7c826646da7877d3c4f4e5687303
a0efe17960a62c9bb2af496888b36a77
根据用户id,债转编号获取用户转让明细列表
StringBuffer querySQL = new StringBuffer(" SELECT dt.id AS id, dt.time AS time, dt.invest_id AS invest_id, dt.user_id AS user_id,dt.transaction_user_id as transaction_user_id, dt.title AS title, dt.debt_amount AS debt_amount, dt.debt_principal AS debt_principal, dt.transfer_price AS transfer_price, dt.transfer_period...
0
2304f490e450a00cca7360db30230816
57a9a68abc7c8355916bdafd123d2796
重写hMSet方法,
class CacheRedis extends Cache{ public function hMSet($name, array $values) { return $this->handler->hMSet($name, $values); }
1
d9c01d13fed580ee1b5a71196fd2b697
c6e2c2da802bcf562a4f199cb04c7a3a
Sortowanie po typie materiału (zakładka materiał).
class Type extends SortMethod public function __invoke(Finder $finder): void { $finder->sortByType(); }
1
87f354a03d06920a593b0617be637fad
7309c9479dca829c9532d12288e0b3d4
AboutController
class AboutAjaxController extends Controller public function __construct(MenuRepository $menuRepository ,AboutRepository $aboutRepository , AboutCategoryRepository $aboutCategoryRepository) { $this->menuRepository = $menuRepository; $this->aboutRepository = $aboutRepository; ...
0
adccc3ba38f4871a0e42bb86d94e20f5
912bb55957e8c4f4621a2040c93f0acb
Initialize PhysX
{ gFoundation = PxCreateFoundation(PX_PHYSICS_VERSION, gAllocator, gErrorCallback); if (!gFoundation) { FL_ENGINE_ERROR("PX foundation cration failed"); return false; } gPvd = PxCreatePvd(*gFoundation); physx::PxPvdTransport* transport = physx::PxDefaultPvdSocketTransportCreate(PVD_HOST, 5425, 10); ...
1
7f33246303e2e127f1366d4be7f07874
d8490c77dda0a8c9632084f80e922815
Test that gaussian states match after gate teleportation
bell_st = bell_state(0) a = np.random.rand(3) alice = qubit(*a) phi = bell_st @ alice phi = BellBasis(phi, [1, 2]) bits, result_state = Measure(phi, [1, 2]) if bits == (0, 1): result_state = Pauli_X(result_state) elif bits == (1, 0): ...
0
65c714d648a552957e2c4c9af601367a
7cdf2e82443027c07ac51a6deabebb3e
@brief : pause the sensor
{ int32_t ret = BSP_ERROR_NONE; if(Instance >= AUDIO_IN_INSTANCES_NBR) { return BSP_ERROR_WRONG_PARAM; } if ((amicam1_ctx[Instance].Device & (AUDIO_IN_ANALOG_MIC1 | AUDIO_IN_ANALOG_MIC2 | AUDIO_IN_ANALOG_MIC3| AUDIO_IN_ANALOG_MIC4)) != 0U) { if(AudioDrv->Stop(CompObj, 0) != BSP_ERROR_NONE) { ...
1
dc7c61788d6cb1e23118872eb4253e77
5ec13ed23cf04c377b02dc26de1f7542
Get exercises for this group
export class PersonalRecordService getExercises(muscleGroup) { for (let i = 0; i < PERSONAL_RECORDS.length; i++) { if (PERSONAL_RECORDS[i].name === muscleGroup) { this._muscleGroup.next(PERSONAL_RECORDS[i]); return; } } }
1
1495de81256ead10292d8638536a64f7
2277022e18749da4d611f79eedc577dd
Это деструктор
class DM ~DM() { delete[] Mas; }
1
5d5802ae8d1ce3759d0549888139b156
dcc4d47ddd9621beccd84e35cce82bde
复制商品库存信息
@Component @Entity @EntityKey(fields = { "corp_no_", "code_" }, corpNo = true, cache = CacheLevelEnum.Redis, smallTable = true) @Table(name = PartInfoEntity.TABLE, indexes = { @Index(name = "PRIMARY", columnList = "uid_", unique = true), @Index(name = "uk_corp_code", columnList = "corp_no_,code_", unique = true...
0
85e30fbe0b4633c3ebbdbbc23cc53a68
af6140acabd79a3be9ffff8191a84e32
Returns allowable values of dataCollectionType.
class TaskNodeInfo implements ModelInterface, ArrayAccess public function getDataVolumeTypeAllowableValues() { return [ self::DATA_VOLUME_TYPE_SATA, self::DATA_VOLUME_TYPE_SAS, self::DATA_VOLUME_TYPE_SSD, self::DATA_VOLUME_TYPE_GPSSD, ]; }
0
cef1991cb34031e58241568da6000f5f
fd2c1796c63056a06e1dfb4058b38181
Xpad是平行X方向的读出条, X方向为长方向(对应Geom是Z为长方向) Ypad是平行Y方向的读出条,Y方向为长方形(对应Geom是Y为长方向)
var xl = this.x_len; var yl = this.y_len; return new MaoLineData(this.x0,this.y0,this.x0 + yl, this.y0 - xl); }
0
6d9b1f21f9694c425fbf9e79e5fff67a
9349962a814c0ab749cca0d1d999dad1
if connection is successful, set light to green
void bleConnectCb() { led.blinkOff(); digitalWrite(LED_PIN, HIGH); }
0
c9650df28869c86fac9563cf3225891b
d6d7332f63106b9afcb2d4115ea80b52
Unrolls an array of packed values into a friendly object structure
namespace TT_Games_Explorer.Formats.ExtractHelper public class StructConverter public static object[] Unpack(string fmt, byte[] bytes) { Debug.WriteLine("Format string is length {0}, {1} bytes provided.", fmt.Length, bytes.Length); if (fmt.Length < 1) throw new ArgumentException("For...
1
a486eb1c0a0cb0dd594f8d3b4c4fda00
d6970e4b74f297cc4ec43c0e78ebab0d
Return a list of source lines and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of the lines corresponding to the object and the line number indicates where in the original source file the first line of...
object = unwrap(object) lines, lnum = findsource(object) if istraceback(object): object = object.tb_frame if (ismodule(object) or (isframe(object) and object.f_code.co_name == "<module>")): return lines, 0 else: return getblock(lines[lnum:]), lnum + 1
1
56bfa23ac1aa494cc2b63207ed5b2b58
8a22f889b665f71b595d2964c1f75ffe
设置是否显示列脚
this.mShowFooter = showFooter if (mShowFooter) { val footLP = mFooterView.layoutParams footLP.height = mMaxFooterHeight mFooterView.layoutParams = footLP mLeftListView.scrollToPosition(mColHeaderLayoutManager!!.itemCount - 1) mRightListView.scr...
1
56bae7db87d32c1a5ef4a7914729472f
97236bc8b5132d3e90f09a3a63aadfe2
游戏进行难度,决定使用多少种方块颜色及基础掉落速度等
class GameScene extends egret.DisplayObjectContainer public updateDifficulty():void { this.level++; this.levelText.text = "Level:" + this.level; this.levelText.y = -80; if (this.itemNum < 8)this.itemNum = Math.floor(this.level / 2 + 2); else if (GameData.backgroundSpeed < GameDat...
1
808da123311b8bd92a58644b8ca38180
fc61429b5da3213df1e288597bc9dc19
Test case for create_namespaced_role
class TestRbacAuthorizationV1alpha1Api(unittest.TestCase): def test_patch_rbac_authorization_v1alpha1_namespaced_role(self): pass
0
127b88f3d9ff5b61c12bc582c9da006b
f1f892225a0fc0c10d7301e1e182787d
Reconcile the slot status with the slot report.
try: sleep(1.25) project = Project.objects.get(pk=int(project_id)) status = UpdateStatus.objects.get_or_create(project__pk=project_id)[0] user = User.objects.get(pk=int(user_id)) with pysftp.Connection(project.bravo_server.address, username=project.bravo_server.account, ...
1
19320231eca894df4df395a4bc9925ce
b8b8aed4ea51070ecc5d77f4b5c8fd4e
Function to get \f$a_{ij}\f$ and \f$c_{ij}\f$ coefficients of the Runge-Kutta 5th step.
SEXP Ku0x_, SEXP Ku1x_, SEXP Ku2x_, SEXP K2y_, SEXP intK2y_, SEXP delta_){ BEGIN_RCPP NumericVector W(W_); NumericVector X(X_); NumericVector Y(Y_); NumericVector pX(pX_); NumericVector h1(h1_); NumericVector h2(h2_); NumericMatrix Ku0x(Ku0x_); NumericMatrix Ku1x(Ku1x_)...
0
bb22d4a1129ccf0b06790c689e53872d
4e7ad26d01795f85a0d769fb10dd3712
프로젝트의 리워드 목록 조회
public List<PwListVO> selectProjectWorkList(PagingVO<PwListVO> pagingVO);
0
b8968a9eae18b9d7c3a5a2b0b8c5549b
48ac59c3f23a73a88bf69bc3b241c41f
Constructs a new pear task.
class phpucPhpUnitTask extends phpucAbstractPearTask public function __construct() { parent::__construct(); $this->properties['coverage'] = true; }
1
a68d3baaad55aaa2f919ed2e0260d087
ece82b27be2f48b0adc0b003f2aea0ce
Déplacement vers le haut => Si on peut déplacer l'entité, alors on met a jours son x et son y
turtle.onkeypress(None, "Up") target = (position[0] - 1, position[1]) if int(matrix[target[0]][target[1]]) == 0: one_move(deplacer_haut, "Up", target) position[0] -= 1 elif int(matrix[target[0]][target[1]]) == 1: deplacer_perso() elif int(matrix[targ...
1
0abb1e821cc9a713c4566163f4b2aef7
8c086f6b9b327ace48a309e19fb0d337
Returns a 202.
class ApiResponse: def Generate204(): return HttpResponse(status=204)
0
ef52f115325d8a3e1b5cbb356384d33d
362be6771d2148d282048d1187c096d9
显示怪物防御背景精灵
{ EnemyInfoBg.SetActive(true); WaitForSeconds effectDelay = new WaitForSeconds(0.03f); for (float i = 1f; i <= 1.3f; i += 0.005f) { EnemyInfoBg.transform.localScale = new Vector3(i, i, 1); yield return effectDelay; } EnemyInfoBg.SetActive(false...
1
f96e8ea6305c172fb7cfb0c2ff80b9db
d51e7dbfa134c31cbee72a3d5f9e2c49
获得DrawerArrowDrawable的颜色,默认白色
public class TgBarUtil public static void setColorForDrawerLayout(@NonNull final Activity activity, @NonNull final DrawerLayout drawerLayout, final @ColorInt int color, @IntRange(...
0
b6663c58c252e2a5801690d0c16d2d05
6045668c81f3ce9efd5690400ffbf5e2
アチーブメントインベントリのprogressのリストを文字列返す
ret = [] refresh if r self.achievement_inventories.each do |p| ret << p.achievement_id end ret.join(',') end
0
eef8fe13e9886b974a2b709cd143855a
4147729a3e72be72bc4f21e7b24c746d
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 class AppSyncService extends IntentService public static void setAlarm(Context ctx){ Intent updateIntent = new Intent(ctx,AppSyncService.class); updateIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); if (AppsProvider.getJioAppItems(ctx,null,null).size() == 0) { ctx.startService...
1
093dbd04d2384874aacad080cde19a2d
e7a564b4ad34848c7742f4c6c4542a6d
Retrieve the value for the "Remaining" output from this Choreo execution. ((integer) The number of requests left for the 15 minute window.)
public function getRemaining();
1
c525a014faeaa365acfffa3cb087a107
64380b8e732dff8709a7f1654a0a03b0
Execute and fetch all rows as a pandas DataFrame Returns: pandas.DataFrame:
if chunksize: raise NotImplementedError("Buffered reading not supported yet") query = self.config["query"] params = params or {} logger.debug( "Fetching query {} with params {}...".format( query, params ) ) rows = self.d...
1
7649ffa0c8b42591f3b7c74a3ef785c9
9bbd01bbfda569beb7059648257f9477
This function updates the driver object's geometry information for the memory device.
{ outw( Cmd + info->mbre_bit, info->io_base ); if ( info->bus_type == MGSL_BUS_TYPE_PCI ) inw( info->io_base ); }
0
ce81838c78bc941ed5dc7997ed995a7e
1c7e4b5ac2abd57d46162848a12ef90d
log the line and handle it to the base class.
class LineEvent : public Event void handle() { }
0
b68a94edc627eb9f91b83edf24d8c093
10eea1288425ddc78d516fcec97f3806
Checks whether this graph writer supports storage image thumbnails.
interface ImageLoader fun supportAnimatedGifThumbnail(): Boolean
0
ae04d55c1201d238b6a9b86ac9615639
960f7dcf5c54e148db782ff2bb5bd704
Reduces a dimension of a tensor by averaging all elements in the dimension.
def reduce_mean(input_tensor, axis = nil, keepdims: false, name: nil) reduce(:mean, input_tensor, axis, keepdims: keepdims, name: name) end
1
975d10bc5a1787dadaf71fed1d29a723
ed54e7e41348b178c4e314876bd955ed
シーケンスのうち、同じ要素が追加されていないものを追加します。<para /> マルチスレッド操作に対してロックされません。
{ Error.ThrowIfNull(source, nameof(source)); Error.ThrowIfNull(enumerable, nameof(enumerable)); Set set = new Set(comparer); foreach (object item in enumerable) set.Add(item); foreach (object item in source) { ...
1
12f6f5d91a29ef892ae36fd1cc8179d2
e1c1e88feb0878c12eb0e8bb09488e1e
If window size is not a non negative number, raise ValueError
vec_test = np.arange(7) ws_test = 8 raises(AssertionError, nf.sma_function1, vector=vec_test, window=ws_test)
0
57654b7ac8d6ed1cec45e0dc0b5c5360
5bb8f37865dc64597473b20b6b34a8a3
获取一个UserServiceImpl实例
public class ServiceFactory public static UserService getUserServiceInstance() { return new UserServiceImpl(); }
1
2d3c20910e159681b13b3519483e495e
f076bb91d23e8477bb388d7a52466bd8
Getter method for discovered.
class SSSP(): def getNumberOfDiscovered(self): return self._discovered
1
b0dee007199c4f388422bdba4d27a3eb
92c47aeb065e126100b6dc3022627560
사용자 찜한 가게 총 수
def wishlist_product_count(webapp_owner_id, member_id): return MemberProductWishlist.objects.filter( owner_id=webapp_owner_id, member_id=member_id, is_collect=True ).count()
1
bc50062cb361d400ee5bc4e6dc663f2c
159ad74507b1139bd8fbcde18ef97097
Set the fan state for the specified thermostate
class HoneywellUSThermostat(ClimateEntity): def set_fan_mode(self, fan_mode: str) -> None: self._device.fan_mode = self._fan_mode_map[fan_mode]
1
738ab13d5a972105dce007513c77bc72
5a0c5ef75905f2ed834068339a6c59be
Perform unrestricted KS dft with LDA functional to evalute the energy of a molecule.
def SSFE2C(kets): ket10 = kets[0] if hasattr(ket10, '__call__'): ket10 = ket10(0) nsite = ket10.nsite def solve1(l): ket1, ket2 = kets if hasattr(ket1, '__call__'): ket1, ket2 = ket1(l), ket2(l) nsite = ket1.nsite t0 = time.time() seg1 = get_se...
0
bb96451f24e36886e13c43bb7693ff4e
91da0b66a7a4b74829d78eba612ab596
更新race_round表的is_final字段
try { let race_info = await this.app.mysql.get('race', { race_id: raceData.race_id }); if (race_info.race_status !== 2) { return 0; } let post = { race_status: 3 }; let changeStatu...
0
7c4b6b78a0c032c6107ef72221cf1c2f
e5c6194a1258cd35e4c86e7fbf520193
根据productId删除SKU属性
void deleteProductAttributeValueByProductId(Integer productId);
1
d2ff3ab7494551d7fcbe8811c05907ce
009566bbd9a192351f5723c1e953b656
Runs an A* search to solve the board using manhattan distance as the heuristic function.
def astar(start, goal): return search(start, goal, uniform_cost, h_manhattan)
1
e6fc401d634b625686bb1f40f456b2bb
907cac3057cf8ac3c51dd5ef62695c02
ロボットの観測にガウス雑音を加算
def gaussian_noise(image): h, w, c = image.shape for row in range(h): for col in range(w): s = np.random.normal(0, 20, 3) b = image[row, col, 0] g = image[row, col, 1] r = image[row, col, 2] image[row, col, 0] = clamp(b + s[0]) ...
1
0b7dc455cfbbf9d830feda9eed19d304
d30b871279f11a226d14e3af5568ca67
Handle the event of owning section becoming hidden.
function ListsPanel:OnHide() Addon:GetProfileManager():UnregisterCallback("OnProfileChanged", self.OnSelectionChanged, self); end
1
b0d7c203c2c9160747087766f3443236
c33c98161a448cb8266e91d84da22121
Tell log4php to use our configuration file.
public class MailPrank public static void main(String[] args) { System.setProperty("java.util.logging.SimpleFormatter.format", "%4$s: %5$s%6$s%n"); new MailPrank("config.properties"); }
0
041c48890da9284bad76efbc29145104
a7643534763129265109f4baec4b5c3e
获取选择层的mask属性
export default class DOMBridge implements IBridge<Element> public get maskLayer():HTMLElement { return this._maskLayer; }
0
39ee5ea35a0e8b9362daffbcbd6c8a79
665731a3214fde71d7bd085171d1f4d0
returns list of ids for chars and objects in the order they need to be drawn
objects = [] objects.append(self._player) for mob in self._chef_mobs: objects.append(mob) objects.sort(key = lambda var: var.get_y()) return objects
0
51b4ab76bb3fc9d7c8c984ab36e9c932
c8cd18a8d6bda1c26c21f18b9bf594d5
Gets the value of the officeZipCode property. possible object is {@link String }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Address") public class Address public String getZipCode() { return zipCode; }
0
f6f5cf6a23263eb3bb6c898468dc608b
d88868108e91dc111a465bc18e96c04e
Indicates that this node will be deleted
public function markDelete();
1
17f9d1e32c255958e32aba21180d7d58
f49b550cb103f547a809eb0d3739ff28
刷新周围npc显示情况
export class XinShouCun extends Base refreshnpcbody() { if (this._npc) { for (let key in game.scene.models.SceneModel.getInstance().npclist.keys) { let npc: game.scene.models.NpcBasicVo npc = game.scene.models.SceneModel.getInstance().npclist.get(game.scene.models.SceneModel.getInstance().npclist.keys[...
1
129ec31fef63db331eea672d4f97f2db
58340bb3106d4c34a38ccb507e7c9bde
判断用户是否有指定功能点(数组)的权限
namespace XCLCMS.Lib.Permission public class PerHelper public static bool HasAnyPermission(long userId, List<XCLCMS.Data.CommonHelper.Function.FunctionEnum> functionList) { if (userId<=0 || null == functionList || functionList.Count == 0) { return false; }...
1
70602b46d76876567c36b54c6558f4fa
99e62cbca6cee010d4a6d4d1609d5d95
Get the modifier used when attempting to Immobilize a Vehicle from this direction. Higher numbers mean in is easier to immobilize the vehicle.
String getImm();
0
5707a3371d23f818f7c679485c0b8f08
82d19126bb67b6d36b0e10981b7d4b01
Получить ссылку по нику
class Photo extends \Yandex\Fotki\ApiAbstract public function getImgHref($nick = null) { $result = null; $data = $this->getImg($nick); if (!empty($data)) { $result = $data['href']; } return $result; }
1
3d0f942af4381c0aa8589dbe19b91056
c68bcf88046c04ecc65fbc06833f2d7a
Approve Guest Order Product
$query = 'SELECT * FROM ' . $this->table . ' WHERE guest_email = :guest_email AND isAproved = 1'; $stmt = $this->conn->prepare($query); $stmt->bindParam(':guest_email', $this->guest_email); $stmt->execute(); $result = Utility::stmtToArray($stmt); return ...
0
8684beb5e2e009934fd097060ac70c24
6158c5159eb6637f2f99558aa0e3d593
Compares two functions according to their execution time
{ if (obj == null) return -1; LiftSession session = obj as LiftSession; decimal thisFn = Fn(); decimal objFn = session.Fn(); if (thisFn > objFn) return -1; else if (thisFn < objFn) return 1; ...
0
5d98ec810e9ce2b59e6626251841aa60
075f290abe1bcb0f0d30916e2486796c
Saves the pandas dataframe containing shift information to disk as an HDF5.
def save_df(dataframe, dataframe_name, base_dir): filename = 'collocated_data-%s.h5' % dataframe_name full_name = os.path.join(base_dir, filename) print('Saving dataframe as %s.h5 in %s' % (filename, base_dir)) df = dataframe.copy() df.to_hdf(path_or_buf = full_name, key = 'df', ...
1
51bd93ac98a769c11405d2ec74a6410d
d23b7322dfa3e36fcdd63f254d809840
Установить обратную связь для панели, куда будут отправляться уведомления о системных изменениях (поворот экрана, изменение размера)
BroadcastReceiver receiver = new ScreenReceiver(); IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction("android.intent.action.SCREEN_OFF"); intentFilter.addAction("android.intent.action.SCREEN_ON"); intentFilter.addAction("android.intent.action.USER_PRESENT"); ...
0
18ce6bdf7beb93c93948cb5f617f9a0e
ac305f645e81c91d8493a4296ee99e89
Check if the Player can become a Pony
{ var hypeBonus = PlayerManager.Data.Hype / 5; return playerPoints + hypeBonus > rapperPoints; }
0
a7d77ef701880066a4d537f96ad32ce4
d10eed857c0c78be68f123d768858ab7
converts a weight in kg to weight in lbs
function convertGewicht(number){ var kilo = number * 0.45359237; return Math.round(kilo * 100) / 100; }
0
266f5b8af017d1f81bd95d0bec1ca5c3
44b78fc392a497c190484cb5b899499c
检测敌机与子弹碰撞,有的话删除敌机和子弹,加分
collisions = pygame.sprite.groupcollide(bullets,aliens,True,True) if collisions: for aliens in collisions.values(): stats.score += ai_settings.alien_points * len(aliens) sb.prep_score() check_high_score(stats,sb) if len(aliens) == 0: bullets.empty() ai...
1
1e1b21b6a54b68a4fb0893de66d6f634
584c96bcd96203b45df826241144d29b
按时间排序数据 - 默认从大到小
List<SearchHistoryItemModel> sortlist = new ArrayList<>(); sortlist.addAll(getAll(context,type)); Collections.sort(sortlist, new Comparator<SearchHistoryItemModel>() { @Override public int compare(SearchHistoryItemModel first, SearchHistoryItemModel second) { ...
1
cec04f1dd265ee4736ef7fc618ab98af
5155b618b385a269d7edafb7d07c9fd9
Interpolate the scroll offset and blit the previous map and the new map in their scrolled positions.
void blitter(void) { al_set_target_bitmap(al_get_backbuffer(display)); al_draw_bitmap_region(map_buffer, scroll_x*SCROLL_SCALING_FACTOR_X, scroll_y*SCROLL_SCALING_FACTOR_Y, SCREEN_WIDTH,SCREEN_HEIGHT, SCREEN_ORIGIN_X, SCREEN_ORIGIN_Y, NULL); renderInterfaceLayer(); al_flip_display(); }
0
1704deab0ba5ab16ef59bfe1c2b2eca8
b3459a2ac543e01f0d5de7e74100399f
如果 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
b0aad1eb46b33a28a3a26f7483541dba
Writes a list of colored strings
output = '' strings = list(args) for color in cycle(self.colors): output += color(strings.pop(0)) if not strings: break puts(output)
1
6fd489db7e86616d755c40eaa2207b35
c4e50b7bf8f61b560d0367ab36d6797a
function for when left motor releases off a bumper
void lMotorReleased(){ lMotorBumped = false; lBumpTop.rise(NULL); lBumpBottom.rise(NULL); lBumpTop.fall(NULL); lBumpBottom.fall(NULL); lMotorISREnable.attach(&lMotorBumperEnable, 0.10f); }
1
b75b825b6b7708bbe88e15580904b36c
f4b37eed672f2097d3db78bbd6ff96c6
Perform an HTTP GET with progress reporting capabilities.
c = pycurl.Curl() c.setopt(c.URL, str(url)) c.setopt(c.WRITEFUNCTION, self.AppendData) c.setopt(c.FOLLOWLOCATION, 1) c.setopt(c.MAXREDIRS, 5) c.setopt(c.NOPROGRESS, 0) c.setopt(c.PROGRESSFUNCTION, self.Progress) c.perform() c.close() return self.data
1
c1810210ac4f57421cf146547e777981
cef605222e5060bc42e11a1f5392ed05
This function handles the success of addition of installation from the modal
{ try { if (e.Error != null) { ApplicationContext.Instance.Logger.LogException(MethodBase.GetCurrentMethod().ToString(), e.Error); MessageBoxHelper.ShowDialog(ApplicationContext.Instance.StringResourceReader.GetStrin...
1
670e4550d3325e7e47cbf06807f7db58
0f123e072400ff0688bd0fbe730a0b5d
AJAX返回未收费年月
@ParentPackage("api_package") public class IndexServiceAction extends BaseAction @Action("noPayAble") public String noPayAbleDateil() { try { String sign = getHttpServletRequest().getParameter("sign"); String userId = getHttpServletRequest().getParameter("user_id"); String objStr = appWebService.noPayAbleDa...
1
fa7d47139476886a7e163464ecd39ebb
e54d7e5573d01a0a5a57f48be7d5f9b8
The set of sum components as an array
public class ArchIntervalEquations public static Permutation[] sumComponents(Permutation p) { HashSet<Permutation> comps = new HashSet<>(); for (Permutation c : PermUtilities.plusComponents(p)) { comps.add(c); } return comps.toArray(new Permutation[0]); }
1
2a9a9f5aad27647b9fa369501feee743
641a44af3e407ec46f1fcf88c4b1b340
Returns the fixed command line to call the right python executable.
class ProcessWorker(Worker): def _proc_cmd(self): from testplan.common.utils.path import fix_home_prefix cmd = [sys.executable, fix_home_prefix(self._child_path()), '--index', self.cfg.index, '--address', self.transport.address, '--testplan', os.path.join(os....
1
546138333bbc46d7e9112a7f1eada53c
d3355436e9d2a360ed9eb6e25baaa58e
列出所有爬虫的运行时信息
class _ListSpiders(cli_base.Command): def _work(self): return spiders_util.get_spiders_info()
1
61f01309af76509a195b036c931f12cf
1a71a076d6d91236b9d9084575e0bc02
Check if the response was filtered by the backend.
class T_Test_Response_FilterStub extends T_Response_Filter implements T_Test_Stub function isAborted() { return $this->isAborted !== false; }
0
ad69bcecb888dbaadd4e4b16ade3011a
56d23b976d90aea1f7ef77668c32c09d
the number of samples that should be discarded from the beginning of the stream
public int getNumberToSample();
0
8c8a5b77e7bb708e62f2de1f35dd005e
1d9bc4a0b4476a45d21bfa8d05e98474
Override usage to show nothing.
public class ClassReader extends Command protected void showSpecificUsage(PrintStream out) { }
1
fda937ead0c143b78e9ad70921a01137
d013683e9d857f0d73aa53ee4983a637
Concatenate tabular files column-wise.
def concat_tables(indir,suffix,outfile): count_files = [f for f in os.listdir(indir) if f.endswith(suffix)] dfs = [pd.read_csv(os.path.join(indir, f),sep="\t",header=None,index_col=0) for f in count_files] for i in list(range(0,len(dfs),1)): dfs[i].columns = [count_files[i].split(suffix)[0].split("_...
1
c4e5c8a0f3401e066a030eb17150cb18
034344ce28741613f2b5184b90d17cf7
Launch workflows.
def launch(self, event, jobfolders): for jobfolder in jobfolders: launch_single(self, event, jobfolder)
1
e9e6f824c34ed5b2cbb5f78e2dc7a1c0
70cb535a08cb7ed876287e1685ec461d
Set whether the runtime should check for duplicate resources
public class AbstractGwtCompile extends AbstractGwtTask implements GwtCompileOptions @Override public void setEnforceStrictResources(Boolean enforceStrictResources) { options.setEnforceStrictResources(enforceStrictResources); }
1
f666d24a64a641a2aefae7824d57bb1b
02b77709db851c41517eecd6f54a6d78
Gibt die Breite zurueck
namespace Profil_Rechner_GUI.Geometrien class Sechseck : Geometrie public double GetBreite() { return zBreite; }
1
82adfeb5828092ec93d4602a6e6ebfa1
abd26f174b45e330bfb1280682859f31
Clean up the dispatch state ${D}. The function dispatch_alive(${D}) must have previously returned zero.
{ knl_g_parallel_decode_context *pDecodeCxt = &g_instance.comm_cxt.pdecode_cxt[slotId]; MemoryContext decode_cxt = pDecodeCxt->parallelDecodeCtx; MemoryContext llog_cxt = pDecodeCxt->logicalLogCtx; SpinLockAcquire(&pDecodeCxt->rwlock); pDecodeCxt->parallelDecodeCtx = NULL; pDecodeCxt->logicalLog...
1
a6f66c8c1c59f7eb115d5d6bf6f4cee9
fe5ce21a8c73ce32cace54da74a5f42d
获取客户礼物统计信息
List<Object[]> getCustomerGiftPaymentList(Long customerNo);
1
95c7ba1790d03e4a1294f38f0f8fbc2b
2f734a6521bea85be80209f3515f447c
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 PdbxVirtualAngle extends DelegatingCategory public StrColumn getAtomSiteAuthSeqId3() { return delegate.getColumn("atom_site_auth_seq_id_3", DelegatingStrColumn::new); }
1
5ff74be22060de5342585e7bfda26a98
1ccac53eee77e6d616e7226e213b7712
Create a new Alloy skolem.
self.name = name self.category = category self.multiplicity = Multiplicity(multiplicity) self.categoryP = None self.legacytype = legacytype self.scope = Scope.Scope.parse(scope) self.script = script
0
692a19b9cb394fa4d21b3197a8601f8e
b8dc8f6f0879cce1408d9c81ccf4ce21
移除http协议头
public class PushRestResponseJsonUnmapper private String transformHttpHead(String strContainsHttp) { String ret = strContainsHttp; char[] httpToken = { 'h', 't', 't', 'p', ':', '\\', '\\', '\\', '/', '\\', '\\', '\\', '/' }; StringBuilder strHttpToken = new StringBuilder(); for (char charToken : httpToken) s...
0
e8074942601c9c6831ad407030adc487
5084cbb41cf7fe33af96179d26e0f40f
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_vnf_nst__nst_netslice_subnet_instantiation_parameters_vnf(PybindBase): def _get_internal_vld(self): return self.__internal_vld
0
97382d78454b61878e49a88f88a130a3
b78dc4c8ae54ef2cc8d979c17e666a6a
updates the title with artist's name at the top.
function onGetTitle(data) { if (data.result !== null) { g.clear(); g.setFont8x12(); g.drawString(data.result.name, 0, 0); currentTrackName = data.result.name; var artist = JSON.stringify(data.result.artists[0]); artist = JSON.parse(artist); currentAlbum = artist.name; g.drawString(arti...
1
a36bdc5397503e5015e8b050d34c2782
768501714c7bc89df7051802b1300a1b
Retorna los servicios asociados al valor bitmask del Punto Bip!
key = self.gen_key(punto, distancia) if not self.memory.has_key(key): rank_value = self.raking_zona(punto, distancia) self.memory[key] = self.get_bs_ij(rank_value) return self.memory[key]
0
fb36dbc7e36335ec293df9b40d019eba
6544dda050a6749c2386df7a5f6d927b
Returns all squares to the left of a possible bitboard
Square lsb(bitboard board) { if (!board) return -1; return __builtin_ctzll(board); }
0
eb38c9be64215c7a7efdd8ba52c6e9a0
46962c60f7813f0ddcce733983e08027
Create a [Flow<Key>] value which converts the ANSI values read from a terminal into Konsole's simpler abstraction (which is a flat collection of keys instead of multi-encoded bytes and other historical legacy).
fun keySetOf(initializer: KeySetDSL.() -> Unit): KeySet { return KeySetDSL().apply(initializer).build() }
0
5bce6f3492885a1d8f1b577ade59b988
f5bfc40ecf555fb1eb0f55fd2937860f
metodo senza parametri che ritorna una stringa contente la lista di mail presenti sul server
public class DnsServer public ArrayList<String> getList() { return this.list; }
0
049f9db2bb59ea53a36584be8cea3915
debbaa0236d50b5e96cc8a1b2a9a7653
재료가 필요량만큼 있는지 확인하여 조합가능여부를 리턴하는 함수
public class DIYprefab : MonoBehaviour bool CheckMaterial(AseemblyItem.STATE state, int[] materialID, int[] materialCount, out Item[] materials) { if (state == AseemblyItem.STATE.ASSEMBLYMULTICOUNT) { bool[] isbool = new bool[materialID.Length]; materials = new Item[mate...
1
76c5ad3de7fe8ab0835f47d8f13227be
5e28538b9a7036d30c80421832fc4f3d
Reverse decimal number, e.g., convert d1d2d3 to d3d2d1.
string res; while (s != "") { res.push_back((s[s.length() - 1] - '0') % 2 + '0'); s = strDecDiv2(s); } reverse(res.begin(), res.end()); return res; }
0
ef23a707e8d70c85ed2afe956150eb1e
39daa82f72c39ed5d8c999c1433011a3
新玩家价值--各地区新玩家价值
{ $link = my_connect_mysql($GLOBALS["global_db"]["game_config"]); $arr = array(); $arr2 = array(); if ($area_no < 1) { return array(0=>$arr, 1=>$arr2); } $link = my_connect_mysql($GLOBALS["global_db"]["chongzhi"]); $query = <<<EOT SELECT buy_log.goodsname AS c1 , COUNT(*) AS c2, COUNT(DISTINCT buy_log.playerid...
0