query
stringlengths
17
469
positive
stringlengths
60
2.01k
language
stringclasses
9 values
function_name
stringlengths
0
158
file
stringlengths
5
215
repo
stringlengths
7
53
source
stringclasses
1 value
callers
listlengths
0
20
callees
listlengths
0
20
query: private void initView() method of AlignRulerInfoDoKitView
passage: private void initView() { getDoKitView().setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return mTouchProxy.onTouchEvent(v, event); } }); mAlignHex = findViewById(R.id.alig...
java
initView
Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/alignruler/AlignRulerInfoDoKitView.java
didi/DoKit
stack-cqs-index
[ "AbsDoKitFragment", "AbsParameterFragment", "AdaptCloseActivity", "AdaptHeightActivity", "AdaptWidthActivity", "AlignRulerInfoDoKitView", "AndroidMediaController", "AppStartInfoFragment", "BarChart", "BarStatusActivityAlpha", "BarStatusActivityColor", "BarStatusActivityCustom", "BarStatusAct...
[ "ActionBarDrawerToggle", "ActivityUtils", "AmapNaviPage", "AmapNaviParams", "ApiUtils", "ArrayList", "BarStatusFragmentAlpha", "BarStatusFragmentColor", "BarStatusFragmentCustom", "BarStatusFragmentImageView", "BarUtils", "BatteryUtils", "BitmapFactory", "BitmapShader", "BlockListAdapter...
query: TODO: Move all the animation / tweens / children related code to Animation / Timeline cancel() method of Timer
passage: cancel() { if (this._hasChildren) { forEachChildren(this, (/** @type {Renderable} */child) => child.cancel(), true); } else { forEachChildren(this, removeTweenSliblings); } this._cancelled = 1; // Pausing the timer removes it from the engine return this.pause(); }
javascript
cancel
tests/playground/assets/js/anime.esm.js
juliangarnier/anime
stack-cqs-index
[ "$", "$$RAFProvider", "$RootScopeProvider", "$StateRefDirective", "$TimeoutProvider", "$e", "$f", "0.17.1", "0.25.6", "1.6.8 context 包", "A2aAgentExecutor", "API", "AbsDoKitView", "AbsToast", "AbstractEventParser", "AbstractInstanceRegistry", "AbstractSelectThread", "AbstractShell"...
[ "$emit", "$nextTick", "AtomicBoolean", "Background", "Body", "Cancel", "CancelCompletionNotifier", "CancelIoEx", "CancellationException", "CancelledNotification", "CancelledNotificationParams", "CancelledState", "ClientNotification", "Color", "Colorize", "Ct", "D", "Debugf", "Do"...
query: func TestProviderLegacyString(t *testing.T) function TestProviderLegacyString
passage: func TestProviderLegacyString(t *testing.T) { tests := []struct { Input Provider Want string }{ { Provider{ Type: "test", Hostname: DefaultProviderRegistryHost, Namespace: LegacyProviderNamespace, }, "test", }, { Provider{ Type: "terraform", Hostname: Bu...
go
TestProviderLegacyString
internal/addrs/provider_test.go
opentofu/opentofu
stack-cqs-index
[]
[ "Errorf", "LegacyString", "String" ]
query: public get model(): SelectionModel method of TestSelectionService
passage: public get model(): SelectionModel { return this._model; }
typescript
model
addons/addon-serialize/src/SerializeAddon.test.ts
xtermjs/xterm.js
stack-cqs-index
[ "$", "2 Implementation", "2 实现原理", "A", "AISDataStore", "AIXxlJob", "AMPTrainer", "AP_BWE", "ARToPORO", "About", "AbstractExporter", "AbstractModel", "AccelInferenceEngine", "AccessTokens", "Account", "Accounts", "Action", "ActionLinkHelpers", "Actions", "ActivationsAndGradient...
[ "Activation", "Adam", "Alias", "Array", "Attachment", "Boolean", "Builder", "CalculatorModel", "Collection", "Data Model", "DateTimeFormat", "Dense", "DonutSwinTableRecConfig", "DummyModel", "Exception", "Group", "IModelType", "ImageRequest", "Inner", "JsonResponse" ]
query: def model_class method of AcceptNestedAttributesForMatcher
passage: def model_class @subject.class end
ruby
model_class
lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb
thoughtbot/shoulda-matchers
stack-cqs-index
[ "ActiveRecord", "ActiveRecordClassMethods", "AssociationMatchers", "AssociationSetup", "Avo", "Base", "BaseApplicationController", "BaseController", "BaseLocator", "BelongsToField", "ClassMethods", "ClosureTree", "Cms", "Concerns", "ConfigurationTest", "ConnectorsController", "Conten...
[ "any?", "attr_writer", "camelize", "children", "class", "class_at_path", "classify", "const_set", "constantize", "controller_name", "descendants", "entity_class", "fetch_records", "find", "include", "is_a?", "method_defined?", "model", "model_class", "model_name" ]
query: def get_children_list(proc) function get_children_list
passage: def get_children_list(proc): return bu.get_list_elems( proc['children'].address, # pointer to list object tt.task, # container type "siblings_node" # container's list node member name )
python
get_children_list
other/gdb_scripts/tasks.py
vvaltchev/tilck
stack-cqs-index
[ "children", "printer_struct_process" ]
[ "get_list_elems" ]
query: public static function get80211wOptions(): array method of HotspotService
passage: public static function get80211wOptions(): array { return [ 3 => _('Disabled'), 1 => _('Enabled (for supported clients)'), 2 => _('Required (for supported clients)'), ]; }
php
get80211wOptions
src/RaspAP/Networking/Hotspot/HotspotService.php
RaspAP/raspap-webgui
stack-cqs-index
[ "DisplayHostAPDConfig" ]
[ "_" ]
query: func (d *LenovoNasShare) checkStoken() method of LenovoNasShare
passage: func (d *LenovoNasShare) checkStoken() { // 检查stoken是否过期 if d.expireAt < time.Now().Unix() { d.getStoken() } }
go
checkStoken
drivers/lenovonas_share/driver.go
OpenListTeam/OpenList
stack-cqs-index
[ "Link", "List" ]
[ "Now", "Unix", "getStoken" ]
query: pub fn peek_front_len(&self) -> Option<usize> method of DatagramQueue
passage: pub fn peek_front_len(&self) -> Option<usize> { self.queue.as_ref().and_then(|q| q.front().map(|d| d.len())) }
rust
peek_front_len
quiche/src/dgram.rs
cloudflare/quiche
stack-cqs-index
[ "dgram_recv_front_len", "send_single" ]
[ "and_then", "as_ref", "front", "len", "map" ]
query: public void setOrderByClause(String orderByClause) method of CmsCommentExample
passage: public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
java
setOrderByClause
zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsCommentExample.java
shuzheng/zheng
stack-cqs-index
[ "BlogController", "CmsArticleController", "CmsCategoryController", "CmsCommentController", "CmsMenuController", "CmsPageController", "CmsSettingController", "CmsTagController", "CmsTopicController", "CmsWebInterceptor", "HomeServiceImpl", "IndexController", "LitemallAdExample", "LitemallAd...
[]
query: public function __construct(string $host, ?int $port, $auth, ?int $tls_port = 6378) constructor of TestSuite
passage: public function __construct(string $host, ?int $port, $auth, ?int $tls_port = 6378) { $this->host = $host; $this->port = $port; $this->auth = $auth; $this->tls_port = $tls_port; }
php
__construct
tests/TestSuite.php
phpredis/phpredis
stack-cqs-index
[ "0.3.0", "AMQPArray", "AMQPBasicCancelException", "AMQPChannel", "AMQPConnection", "AMQPConnectionBlockedException", "AMQPProtocolException", "AMQPSSLConnection", "AMQPSocketConnection", "AMQPStreamConnection", "AMQPTimeoutException", "ANullSrcFilter", "APCuIterator", "APICallTypeNotRecogn...
[ "AMQPNotImplementedException", "AMQPOutOfBoundsException", "AMQPRuntimeException", "AMQPWriter", "APC", "AccessInterceptorScopeLocalizerGenerator", "AccessInterceptorValueHolderGenerator", "Action", "Address", "Adminer", "AdminlteAssetsResource", "AdvanceMp4Player", "AdvanceWmaPlayer", "Af...
query: _configAfterMerge(e) method of Backdrop
passage: _configAfterMerge(e){return e.rootElement=getElement(e.rootElement),e}
javascript
_configAfterMerge
vendor/javascript/bootstrap.esm.min.js
errbit/errbit
stack-cqs-index
[ "$", "B", "BaseComponent", "Config", "H", "J", "Ni", "Pe", "Q", "Tooltip", "U", "W", "Z", "_getConfig", "cn", "cs", "gr", "li", "ln", "ps" ]
[ "Boolean", "a", "c", "getElement", "map", "p", "parseFloat", "r", "split", "u" ]
query: def spark_driver_service(num_proc, initial_num_proc=None, fn=fn, args=(), kwargs={}, key=None, nics=None, verbose=2) function spark_driver_service
passage: def spark_driver_service(num_proc, initial_num_proc=None, fn=fn, args=(), kwargs={}, key=None, nics=None, verbose=2): initial_num_proc = initial_num_proc or num_proc key = key or secret.make_secret_key() driver = SparkDriverService(initial_num_proc, num_proc, fn, args, kwar...
python
spark_driver_service
test/utils/spark_common.py
horovod/horovod
stack-cqs-index
[ "SparkTests", "do_test_exec_fn_provides_driver_with_local_rank", "do_test_rsh", "spark_tasks", "test_driver_common_interfaces", "test_driver_common_interfaces_fails", "test_driver_common_interfaces_from_settings", "test_driver_set_local_rank_to_index", "test_spark_driver_host_discovery" ]
[ "SparkDriverClient", "SparkDriverService", "addresses", "make_secret_key", "shutdown" ]
query: func (l *LatencyMetrics) init() method of LatencyMetrics
passage: func (l *LatencyMetrics) init() { if l.estimator == nil { // This compression parameter value is the recommended value // for normal uses as per http://javadox.com/com.tdunning/t-digest/3.0/com/tdunning/math/stats/TDigest.html l.estimator = newTdigestEstimator(100) } }
go
init
lib/metrics.go
tsenart/vegeta
stack-cqs-index
[ "\"V2\" Command-Line Interface", "$", "$ZodAny", "$ZodArray", "$ZodBase64", "$ZodBase64URL", "$ZodBigInt", "$ZodBigIntFormat", "$ZodBoolean", "$ZodCIDRv4", "$ZodCIDRv6", "$ZodCUID", "$ZodCUID2", "$ZodCatch", "$ZodCheckBigIntFormat", "$ZodCheckEndsWith", "$ZodCheckGreaterThan", "$Zo...
[ "$", "$$", "$$optional", "$0", "$args", "$commit", "$dpip", "$ipvsadm", "$mount", "$nextTick", "$on", "$onReorder", "$optional", "$q", "$r", "$set", "$t", "$timeout", "$watch", "/bin/sh" ]
query: function ListIcon(): Malevic.Child function ListIcon
passage: function ListIcon(): Malevic.Child { return <svg viewBox="-1 -1 10 10"> <path d="M0,0 h1 v1 h-1 z m2,0 h6 v1 h-6 z m-2,3.25 h1 v1 h-1 z m2,0 h6 v1 h-6 z m-2,3.25 h1 v1 h-1 z m2,0 h6 v1 h-6 z" fill="currentColor" /> </svg>; }
typescript
ListIcon
src/ui/icons/list-icon.tsx
darkreader/darkreader
stack-cqs-index
[ "TestHiddenFiles", "TestSetView", "TestSetViewPreferences", "TestShowFileOpen", "TestView", "Test_ListIcon_FileSource", "loadIcons", "setView" ]
[ "forwardRef", "safeIconLookup" ]
query: #[DataProvider('getTransChoiceTests')] #[RequiresPhpExtension('intl')] public function testTransChoiceWithDefaultLocale($expected, $id, $number) method of TranslatorTest
passage: #[DataProvider('getTransChoiceTests')] #[RequiresPhpExtension('intl')] public function testTransChoiceWithDefaultLocale($expected, $id, $number) { $translator = $this->getTranslator(); $this->assertEquals($expected, $translator->trans($id, ['%count%' => $number])); }
php
testTransChoiceWithDefaultLocale
Translation/Test/TranslatorTest.php
symfony/contracts
stack-cqs-index
[]
[ "assertEquals", "getTranslator", "trans" ]
query: def wait_for_task_completion(project_id function wait_for_task_completion
passage: except exception as e : if " failed to get task status " in str ( e ) or " task " in str ( e ) and " failed " in str ( e ) : raise consecutive _ errors + = 1 if consecutive _ errors > = max _ consecutive _ errors : raise exception ( f " network error : { str ( e ) } " ) time. sleep ( check _ interval * 2 ) rai...
python
wait_for_task_completion
backend/tests/integration/test_api_full_flow.py
Anionex/banana-slides
stack-cqs-index
[ "TestAPIFullFlow", "test_api_full_flow_create_to_export" ]
[ "Exception", "get", "int", "json", "min", "print", "sleep", "str", "time" ]
query: function isProduction(): boolean function isProduction
passage: function isProduction(): boolean { return ( process.env.NODE_ENV === 'production' && process.env.RUN_MODE !== 'dev' && process.env.RUN_MODE !== 'test' ); // return true; // for animations and other things debugging as in production mode // return false; }
typescript
isProduction
src/common/isProduction.ts
pavlobu/deskreen
stack-cqs-index
[ "AliyunServerlessSparkTask", "AliyunServerlessSparkTaskTest", "AppServiceProvider", "AuthServiceProvider", "AuthorizeLogViewer", "LaravelDebugbar", "Master", "ShipServiceProvider", "appendScripts", "boot", "buildStartJobRunRequest", "da", "disableLazyLoading", "fetchPricingData", "handle...
[ "C", "includes", "indexOf" ]
query: private MultiMap attributes() method of Http1ServerRequest
passage: private MultiMap attributes() { // Create it lazily if (attributes == null) { attributes = MultiMap.caseInsensitiveMultiMap(); } return attributes; }
java
attributes
vertx-core/src/main/java/io/vertx/core/http/impl/http1/Http1ServerRequest.java
eclipse-vertx/vert.x
stack-cqs-index
[ "AIRMapUrlTileCachedOverlay", "AMSActor", "AMSActorSerializer", "AMSAdvertisingCampaign", "AMSAdvertisingCampaignSerializer", "AMSAgency", "AMSAgencySerializer", "AMSAward", "AMSAwardSerializer", "AMSCommentSerializer", "AMSGroupSerializer", "AMSMovie", "AMSMovieSerializer", "AMSMovieType"...
[ "$derived", "Attribute Reference", "AttributeStorage", "Attributes", "Attributes Reference", "CFDictionaryCreateMutable", "Collection", "Err", "HttpServletRequestWrapper", "Kd", "MergeValue", "NSDictionary", "NSFileManager", "NSLog", "NSModelPathKey", "NSObjectURIKey", "NSPersistentS...
query: fn connection_id_retire_exotic_sequence( #[values("cubic", "bbr2_gcongestion")] cc_algorithm_name: &str, #[values(true, false)] discard: bool, ) function connection_id_retire_exotic_sequence
passage: fn connection _ id _ retire _ exotic _ sequence ( # [ values ( " cubic ", " bbr2 _ gcongestion " ) ] cc _ algorithm _ name : & str, # [ values ( true, false ) ] discard : bool, ) { let mut buf = [ 0 ; 65535 ] ; let mut config = config : : new ( protocol _ version ). unwrap ( ) ; assert _ eq! ( config. set _ cc...
rust
connection_id_retire_exotic_sequence
quiche/src/tests.rs
cloudflare/quiche
stack-cqs-index
[]
[ "assert_eq", "load_cert_chain_from_pem_file", "load_priv_key_from_pem_file", "send_pkt_to_server", "set_active_connection_id_limit", "set_application_protos", "set_initial_max_data", "set_initial_max_stream_data_bidi_local", "set_initial_max_stream_data_bidi_remote", "set_initial_max_stream_data_u...
query: async polarSubscriptions() function polarSubscriptions
passage: async polarSubscriptions() { const subs = await db.select().from(subscription).where(eq(subscription.userId, userId)); const now = new Date(); const active = subs.find((sub) => sub.status === 'active' && new Date(sub.currentPeriodEnd) > now); if (active) this.$end(true);...
typescript
polarSubscriptions
app/api/lookout/route.ts
zaidmukaddam/scira
stack-cqs-index
[]
[ "$end", "eq", "find", "from", "log", "select", "where" ]
query: void CMainFrame::OnSelectionCsgmerge() method of CMainFrame
passage: void CMainFrame::OnSelectionCsgmerge() { //if (ActiveXY()) // ActiveXY()->UndoCopy(); Undo_Start("CSG merge"); Undo_AddBrushList(&selected_brushes); CSG_Merge(); Undo_EndBrushList(&selected_brushes); Undo_End(); }
cpp
OnSelectionCsgmerge
q3radiant/MainFrm.cpp
id-Software/Quake-III-Arena
stack-cqs-index
[]
[ "CSG_Merge", "Undo_AddBrushList", "Undo_End", "Undo_EndBrushList", "Undo_Start" ]
query: function updateUser() function updateUser
passage: function updateUser() { const user = new User(); user.name = "Alice"; user.address = new Address(); }
javascript
updateUser
gitnexus/test/fixtures/lang-resolution/js-write-access/service.js
abhigyanpatwari/GitNexus
stack-cqs-index
[ "AccountModal", "AccountNameForm", "AccountSettingsPrompt", "App", "AppController", "AttachmentService", "AuthService", "CacheDemoController", "ChangePassword", "Edit", "EditUserModal", "FacebookCrawler", "FacebookPluginConfigurationController", "FreshRSS_user_Controller", "GET", "Inst...
[ "Address", "AuthUser", "AuthWorkspace", "Body", "CannotUpdateResourceException", "Context", "Date", "Decode", "DecodeJSON", "EmailChangeNotAllowedException", "Error", "ErrorMessage", "Errorf", "FreshRSS_User_Mailer", "GenericController", "Get", "GetUserAuthFromContext", "GetUserByI...
query: public function test__regex_sqlite(string $input, string $sql, array $values): void method of SearchTest
passage: public function test__regex_sqlite(string $input, string $sql, array $values): void { [$filterValues, $filterSearch] = FreshRSS_EntryDAOSQLite::sqlBooleanSearch('e.', new FreshRSS_BooleanSearch($input)); self::assertSame(trim($sql), trim($filterSearch)); self::assertSame($values, $filterValues); }
php
test__regex_sqlite
tests/app/Models/SearchTest.php
FreshRSS/FreshRSS
stack-cqs-index
[]
[ "FreshRSS_BooleanSearch", "assertSame", "sqlBooleanSearch", "trim" ]
query: _isWithActiveTrigger() method of cs
passage: _isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}
javascript
_isWithActiveTrigger
app/assets/javascripts/twitter/bootstrap/bootstrap.min.js
seyhunak/twitter-bootstrap-rails
stack-cqs-index
[ "Et", "Fe", "Ni", "Pe", "Tooltip", "_leave", "cn", "complete", "cs", "e", "gr", "hide", "li", "ln", "ps", "t", "toggle" ]
[ "includes", "values" ]
query: func TestCollectionSaveModel(t *testing.T) function TestCollectionSaveModel
passage: func testcollectionsavemodel ( t * testing. t ) { t. parallel ( ) scenarios : = [ ] struct { name string collection func ( app core. app ) ( * core. collection, error ) expecterror bool expectcolumns [ ] string } { / / trigger validators { name : " create - trigger validators ", collection : func ( app core. a...
go
TestCollectionSaveModel
core/collection_model_test.go
pocketbase/pocketbase
stack-cqs-index
[]
[ "Add", "AddIndex", "Cleanup", "Contains", "Fatal", "Fatalf", "FindCollectionByNameOrId", "GetByName", "HasTable", "NewAuthCollection", "NewBaseCollection", "NewTestApp", "NewViewCollection", "Parallel", "ParseIndex", "RemoveByName", "Run", "Save", "SetName", "String" ]
query: pub fn init_band_mode(mut self, value: i32) -> Self method of CtrlMsg_Req_ConnectAP
passage: pub fn init_band_mode(mut self, value: i32) -> Self { self.r#band_mode = value.into(); self }
rust
init_band_mode
embassy-net-esp-hosted/src/proto.rs
embassy-rs/embassy
stack-cqs-index
[]
[ "into" ]
query: Helper (used in 2 places) function buf2binstring(buf, len) function buf2binstring
passage: function buf2binstring(buf, len) { // use fallback for big arrays to avoid stack overflow if (len < 65537) { if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) { return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len)); } } var result = ''; for (var i =...
javascript
buf2binstring
java/doc/jquery/jszip/dist/jszip.js
libjpeg-turbo/libjpeg-turbo
stack-cqs-index
[ "buf2string" ]
[ "apply", "fromCharCode", "shrinkBuf", "subarray" ]
query: async function getAuditLog(id: number, expand?: AuditLogExpansion[], params = function getAuditLog
passage: async function getAuditLog(id: number, expand?: AuditLogExpansion[], params = {}): Promise<AuditLog> { return await api.get({ url: `/audit-log/${id}`, params: { expand: expand?.join(","), ...params, }, }); }
typescript
getAuditLog
frontend/src/api/backend/getAuditLog.ts
NginxProxyManager/nginx-proxy-manager
stack-cqs-index
[ "AuditServiceTest", "Slf4JAuditLoggerTest", "VotingSystemDemo", "fetchAuditLog", "getAuditLog", "getLists", "run", "testCreateAuditLogs", "testCreateSeqWithTtlAuditLogs", "testCreateWithTtlAuditLogs", "testDeleteAuditLogs", "testEphemralZNodeAuditLogs", "testMultiOperationAuditLogs", "test...
[ "AuditLog", "createLogEvent", "get", "getAuditLog", "getIp", "getName", "getSession", "getUser", "info", "join", "setModelType", "setOperationType", "setUserName" ]
query: async function formatRange(originalText, opts) function formatRange
passage: async function formatrange ( originaltext, opts ) { const { ast, text } = await parsetext ( originaltext, opts ) ; const [ rangestart, rangeend ] = calculaterange ( text, opts, ast )?? [ 0, 0 ] ; const rangestring = text. slice ( rangestart, rangeend ) ; / / try to extend the range backwards to the beginning o...
javascript
formatRange
src/main/core.js
prettier/prettier
stack-cqs-index
[ "AlbumDatesField", "CalendarImpl", "DateEnv", "Details", "EventImpl", "RangeField", "Ri", "buildSegTimeText", "buildTitle", "charsToCharClassContent", "expectViewDates", "formatDiagnostics", "formatDocumentSymbols", "formatHover", "formatInterval", "formatLocation", "formatRange", ...
[ "addMs", "buildDateEnv", "buildFormattingFunc", "calculateRange", "call", "charAt", "charCodeAt", "cmdFormatter", "computeMarkerDiffSeverity", "computePartialFormattingOptions", "convertEndOfLineOptionToCharacter", "coreFormat", "countEndOfLineCharacters", "createFormatter", "createMarke...
query: public function deleteAction(): void method of FreshRSS_category_Controller
passage: public function deleteaction ( ) : void { $ feeddao = freshrss _ factory : : createfeeddao ( ) ; $ catdao = freshrss _ factory : : createcategorydao ( ) ; $ url _ redirect = [ ' c ' = > ' subscription ', ' a ' = > ' index ' ] ; if ( minz _ request : : ispost ( ) ) { invalidatehttpcache ( ) ; $ id = minz _ requ...
php
deleteAction
app/Controllers/categoryController.php
FreshRSS/FreshRSS
stack-cqs-index
[ "FreshRSS_user_Controller", "manageAction" ]
[ "Context", "Delete", "Errorf", "Flags", "GetBool", "Infof", "Inspect", "Is", "IsRegistered", "Psr17Factory", "Reconcile", "UnregisterFromStartAtLogin", "Warnf", "WithError", "_t", "after", "alert", "array_merge", "authorize", "bad" ]
query: public function optimize(array $expression, Call $call, CompilationContext $context) method of ImplodeOptimizer
passage: public function optimize ( array $ expression, call $ call, compilationcontext $ context ) { if (! isset ( $ expression [ ' parameters ' ] ) ) { return false ; } if ( 2! = count ( $ expression [ ' parameters ' ] ) ) { return false ; } / * * process the expected symbol to be returned * / $ call - > processexpec...
php
optimize
src/Optimizers/FunctionCall/ImplodeOptimizer.php
zephir-lang/zephir
stack-cqs-index
[ "Adapters", "BabelSVGInlineImport", "Block", "Bold", "ClientSelectorGenerator", "CodeToken", "ComposerTest", "Conversion", "Cursor", "CustomJuice", "Dex2Asm", "DoWhileStatement", "DumpAutoload", "Editor", "Engine", "EvalExpression", "FileSystemInfo", "FilterHostnameDict", "ForSta...
[ "Aclosing", "AgentWithScores", "CompiledExpression", "CompilerException", "Content", "DO", "DO3", "ExDex2Asm", "Exception", "Expression", "GEPARootAgentPromptOptimizerResult", "Image", "ImportError", "InvalidArgumentException", "LetStatement", "LlmRequest", "NodePattern", "Ok", "...
query: LIBYUV_API int RGB24ToJ420(const uint8_t* src_rgb24, int src_stride_rgb24, uint8_t* dst_y, int dst_stride_y, uint8_t* dst_u, int dst_stride_u, uint8_t* dst_v, int dst_stride_v, int width, int height) function RGB24ToJ420
passage: ##jrow _ c ; void ( * argbtoyjrow ) ( const uint8 _ t * src _ argb, uint8 _ t * dst _ y, int width ) = argbtoyjrow _ c ; # endif if (! src _ rgb24 | |! dst _ y | |! dst _ u | |! dst _ v | | width < = 0 | | height = = 0 ) { return - 1 ; } / / negative height means invert the image. if ( height < 0 ) { height = ...
cpp
RGB24ToJ420
library/src/main/cpp/libyuv/source/convert.cc
begeekmyfriend/yasea
stack-cqs-index
[]
[ "ARGBToUVJRow", "ARGBToYJRow", "IS_ALIGNED", "RGB24ToARGBRow", "RGB24ToUVJRow", "RGB24ToYJRow", "TestCpuFlag", "align_buffer_64", "free_aligned_buffer_64" ]
query: func TestForceUnlock(t *testing.T) function TestForceUnlock
passage: , err = b1. statemgr ( t. context ( ), " test " ) if err! = nil { t. fatal ( err ) } info = statemgr. newlockinfo ( ) info. operation = " test " info. who = " clienta " lockid, err = s1. lock ( t. context ( ), info ) if err! = nil { t. fatal ( " unable to get initial lock : ", err ) } / / s1 is now locked, get...
go
TestForceUnlock
internal/backend/remote-state/kubernetes/client_test.go
opentofu/opentofu
stack-cqs-index
[]
[ "Context", "Error", "Errorf", "Fatal", "Lock", "New", "NewLockInfo", "Now", "Sprintf", "StateEncryptionDisabled", "StateMgr", "TestBackendConfig", "TestWrapConfig", "Unix", "Unlock", "cleanupK8sResources", "createDynamoDBTable", "createS3Bucket", "deleteDynamoDBTable", "deleteS...
query: function onTapLogRow
passage: () => { if (groupHeader > 0) { // (window as any)._vcOrigConsole.log('onTapLogRow', groupHeader); dispatch('groupCollapsed', { groupLabel: log.groupLabel, groupHeader: groupHeader === 1 ? 2 : 1, isGroupCollapsed: groupHeader === 1 ? true : false, }); } }
typescript
onTapLogRow
src/log/logRow.svelte
Tencent/vConsole
stack-cqs-index
[]
[ "dispatch" ]
query: @Override public void onLeftClick() method onLeftClick
passage: @Override public void onLeftClick() { getActivity().onBackPressed(); }
java
onLeftClick
Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/performance/PerformanceFragment.java
didi/DoKit
stack-cqs-index
[ "LogTitleBar", "TitleBar", "init", "onClick" ]
[ "detach", "finish", "getActivity", "minimize", "onBackPressed", "setListener", "setOnTitleBarClickListener", "titleBar" ]
query: func TestFloat64SliceFlagApply_UsesEnvValues_noDefault(t *testing.T) function TestFloat64SliceFlagApply_UsesEnvValues_noDefault
passage: func TestFloat64SliceFlagApply_UsesEnvValues_noDefault(t *testing.T) { t.Setenv("MY_GOAT", "1.0 , 2.0") fl := FloatSliceFlag{Name: "goat", Sources: EnvVars("MY_GOAT")} cmd := &Command{ Flags: []Flag{ &fl, }, } assert.NoError(t, cmd.Run(buildTestContext(t), []string{""})) assert.Equal(t, []float64...
go
TestFloat64SliceFlagApply_UsesEnvValues_noDefault
flag_test.go
urfave/cli
stack-cqs-index
[]
[ "EnvVars", "Equal", "NoError", "Run", "Setenv", "Value", "buildTestContext" ]
query: _maybeParseFieldValue(e) method _maybeParseFieldValue
passage: _maybeParseFieldValue(e){if(this.eat(o.eq)){const t=this._inStaticFieldScope;this._inStaticFieldScope=this.currentThisScope();e.value=this.parseExpression();this._inStaticFieldScope=t}else e.value=null}
javascript
_maybeParseFieldValue
pkg/runner/testdata/actions/node12/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache.js
nektos/act
stack-cqs-index
[ "parseClassElement" ]
[ "currentThisScope", "eat", "parseAwait", "parseExpression" ]
query: public function testGetErrorsWhenNoErrorsProvided(): void method of JsonValidationExceptionTest
passage: public function testGetErrorsWhenNoErrorsProvided(): void { $object = new JsonValidationException('test message'); self::assertEquals([], $object->getErrors()); }
php
testGetErrorsWhenNoErrorsProvided
tests/Composer/Test/Json/JsonValidationExceptionTest.php
composer/composer
stack-cqs-index
[]
[ "JsonValidationException", "assertEquals", "getErrors" ]
query: GrepFile like command grep -E func GrepFile(patten string, filename string) (lines []string, err error) function GrepFile
passage: func GrepFile(patten string, filename string) (lines []string, err error) { re, err := regexp.Compile(patten) if err != nil { return } fd, err := os.Open(filename) if err != nil { return } defer fd.Close() lines = make([]string, 0) reader := bufio.NewReader(fd) prefix := "" var isLongLine bool ...
go
GrepFile
core/utils/file.go
beego/beego
stack-cqs-index
[ "TestGrepFile" ]
[ "Close", "Compile", "MatchString", "NewReader", "Open", "ReadLine", "append", "make", "string" ]
query: protected ?iterable $protectedNullableIterableProperty = ['protectedIterableProperty']; property protectedNullableIterableProperty
passage: protected ?iterable $protectedNullableIterableProperty = ['protectedIterableProperty'];
php
protectedNullableIterableProperty
tests/ProxyManagerTestAsset/ClassWithMixedTypedProperties.php
Ocramius/ProxyManager
stack-cqs-index
[]
[]
query: def host method of DockerWrapper
passage: def host SSHKit::Host.new( user: "deployer", hostname: "localhost", port: SSH_SERVER_PORT, password: "topsecret", ssh_options: host_verify_options ) end
ruby
host
test/support/docker_wrapper.rb
capistrano/sshkit
stack-cqs-index
[ "$UrlRouterProvider", "$get", "AUTH_SPEC_DOMAIN", "AWSFirehoseReceiverModuleProvider", "AccessoryTest", "AccountsController", "AckHandler", "ActionCacheTest", "ActionController", "ActionDispatch", "ActionView", "ActiveRecord", "ActiveRecordHelper", "ActiveRecordSubscriber", "ActiveResour...
[ "CDVWhitelistPattern", "Connection", "Context", "EqualFold", "Errorf", "GetCNAMEFlatten", "GetCanonizedHost", "Host", "IsASCII", "Matching on Host", "NO", "NSNumber", "NSRegularExpression", "NSRegularExpressionCaseInsensitive", "NSString", "NotImplementedError", "ObjectProxy", "OkH...
query: function c(Z) function c
passage: function c(Z){var X=null;try{X=j.getElementById(Z);}catch(Y){}return X;}
javascript
c
miaosha-admin/miaosha-admin-web/src/main/webapp/js/plugins/uploadify/jquery.uploadify.js
qiurunze123/miaosha
stack-cqs-index
[ "$", "$W", "$a", "$e", "$g", "$l", "$m", "$n", "$o", "$s", "$t", "$y", "0.21.0", "A", "A1", "ACLCat", "ACLCatArgs", "ACLDelUser", "ACLDryRun", "ACLGenPass" ]
[ "$", "$$postDigest", "$9", "$_Cn", "$_Dt", "$c", "$digest", "$eval", "$g", "$getOption", "$isEmpty", "$l", "$mount", "$new", "$nextTick", "$o", "$observe", "$on", "$r", "$render" ]
query: def get_handlers(self) method of CacheTest
passage: def get_handlers(self): class EtagHandler(RequestHandler): def get(self, computed_etag): self.write(computed_etag) def compute_etag(self): return self._write_buffer[0] return [("/etag/(.*)", EtagHandler)]
python
get_handlers
tornado/test/web_test.py
tornadoweb/tornado
stack-cqs-index
[ "DefaultHTTPTest", "GzipHTTPTest", "HTTPConnectionTest", "WebTestCase", "get_app" ]
[ "DictLoader", "Event", "Exception", "HTTPError", "NotImplementedError", "bool", "chr", "dict", "dirname", "find", "finish", "flush", "format", "get_argument", "get_browser_locale", "get_cookie", "get_version", "ignore_deprecation", "in_method", "int" ]
query: public function get(string $functionName, CompilationContext $compilationContext, bool $exists): string method of FunctionCache
passage: public function get(string $functionName, CompilationContext $compilationContext, bool $exists): string { if (isset($this->cache[$functionName])) { return $this->cache[$functionName] . ', ' . SlotsCache::getExistingFunctionSlot($functionName); } if (!$exists) { ...
php
get
src/Cache/FunctionCache.php
zephir-lang/zephir
stack-cqs-index
[ "$", "$6", "$7", "$A", "$CompileProvider", "$D", "$DurableObject", "$F", "$FilterProvider", "$HttpProvider", "$I", "$R", "$Resolve", "$RootScopeProvider", "$RouteProvider", "$S", "$SceDelegateProvider", "$StateRefActiveDirective", "$TemplateFactory", "$TemplateRequestProvider" ...
[ "$", "$constructor", "$i", "$mount", "$r", "$t", "A", "AImpl", "APODDumperPlugin", "AQLQuery", "ASN1Error", "AbsoluteUnixPath", "AbstractModule", "AccessDeniedException", "AccessMode", "Add", "AddCookie", "AddInt32", "Address", "Ae" ]
query: pub fn get_users() -> Vec<User> function get_users
passage: pub fn get_users() -> Vec<User> { vec![User { name: "alice".into() }] }
rust
get_users
gitnexus/test/fixtures/lang-resolution/rust-for-call-expr/src/user.rs
abhigyanpatwari/GitNexus
stack-cqs-index
[ "AcfIntegration", "Admin", "Content Retrieval Functions", "New functions", "Rffi_CryptoAuth2_getUsers", "TestHTTPUserAuthOIDC", "TestUser", "Twig", "User", "UserListResource", "WecomClient", "find_admin_user_id", "get", "get_user_by_name", "index", "process_users", "reply", "send_t...
[ "AsyncClient", "Err", "Exception", "Json", "Ok", "User", "UserFactory", "_assert_status_code", "_get_client", "all", "all_disabled", "any?", "append", "bool", "build_grouping", "by_id", "check_access_token_for_contacts", "clone", "collect", "current_page" ]
query: ReadMultiBuffer implements Reader. func (r *BufferedReader) ReadMultiBuffer() (MultiBuffer, error) method of BufferedReader
passage: func (r *BufferedReader) ReadMultiBuffer() (MultiBuffer, error) { if !r.Buffer.IsEmpty() { mb := r.Buffer r.Buffer = nil return mb, nil } return r.Reader.ReadMultiBuffer() }
go
ReadMultiBuffer
common/buf/reader.go
XTLS/Xray-core
stack-cqs-index
[ "BenchmarkPipeReadWrite", "CopyRawConnIfExist", "Dial", "Process", "Read", "ReadAtMost", "ReadFrom", "ReadMultiBuffer", "ReadMultiBufferTimeout", "ReadPacket", "TestAuthenticationReaderWriter", "TestAuthenticationReaderWriterPacket", "TestBlackHoleHTTPResponse", "TestBlackholeHTTPResponse"...
[ "Add", "Adjust", "Advance", "Background", "Base", "Byte", "Bytes", "Clear", "Current", "DecodeUDPPacket", "Destination", "Detach", "Done", "Extend", "Feed", "IPAddress", "InboundFromContext", "Is", "IsEmpty", "IsFull" ]
query: function useDiagramLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<DiagramQuery, DiagramQueryVariables>) function useDiagramLazyQuery
passage: function useDiagramLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<DiagramQuery, DiagramQueryVariables>) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery<DiagramQuery, DiagramQueryVariables>(DiagramDocument, options); }
typescript
useDiagramLazyQuery
wren-ui/src/apollo/client/graphql/diagram.generated.ts
Canner/WrenAI
stack-cqs-index
[]
[ "useLazyQuery" ]
query: function s() function s
passage: function s(){var e=i.id+"::",t=i.id+"::￿",r=n.index("_doc_id_rev").openCursor(IDBKeyRange.bound(e,t)),o=0;r.onsuccess=function(e){var t=e.target.result;if(!t)return i.seq=o,a();var n=t.primaryKey;n>o&&(o=n),t.continue()}}
javascript
s
pouchdb-browser.js
vrtmrz/obsidian-livesync
stack-cqs-index
[ "$", "$C", "$I", "$W", "$a", "$b", "$e", "$f", "$i", "$l", "$n", "$o", "$r", "$s", "$t", "4.7.1 - 2019-10-29", "A", "AL", "ALT_APPLICATION_CONFIG", "APPLICATION_CONFIG" ]
[ "$", "$$addScopeClass", "$$addScopeInfo", "$$keys", "$9", "$T", "$U", "$_Cn", "$_Dt", "$a", "$apply", "$asArray", "$b", "$broadcast", "$e", "$findClosingBracket", "$findClosingTag", "$findOpeningBracket", "$findOpeningTag", "$findTagName" ]
query: pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self method of MouseEventInit
passage: pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_scroll_lock(val); self }
rust
modifier_scroll_lock
crates/web-sys/src/features/gen_MouseEventInit.rs
wasm-bindgen/wasm-bindgen
stack-cqs-index
[]
[ "set_modifier_scroll_lock" ]
query: function o(c) function o
passage: function o(c){function d(c){!(0<b.length)&&(c.type==CKEDITOR.NODE_ELEMENT&&z.test(c.getName())&&!c.getCustomData("selected_cell"))&&(CKEDITOR.dom.element.setMarker(a,c,"selected_cell",!0),b.push(c))}for(var c=c.getRanges(),b=[],a={},e=0;e<c.length;e++){var f=c[e];if(f.collapsed)f=f.getCommonAncestor(),(f=f.get...
javascript
o
js/ckeditor/ckeditor.js
phpipam/phpipam
stack-cqs-index
[ "$", "$0", "$F", "$a", "$e", "$f", "$i", "$ie", "$l", "$n", "$o", "$p", "$r", "$s", "$t", "A", "AI", "A_", "Aa", "Ae" ]
[ "$", "$$postDigest", "$9", "$_Cn", "$_Dt", "$apply", "$broadcast", "$destroy", "$digest", "$emit", "$eval", "$evalAsync", "$i", "$l", "$new", "$nextTick", "$o", "$observe", "$on", "$render" ]
query: @Test public void uses_custom_enforcer_disallows_static_mocks_of_type_with_specific_name() method of DoNotmockEnforcerTest
passage: @Test public void uses_custom_enforcer_disallows_static_mocks_of_type_with_specific_name() { assertThatThrownBy( () -> { MockedStatic<StaticallyNotMockable> notMockable = mockStatic(StaticallyNotMockable.class);...
java
uses_custom_enforcer_disallows_static_mocks_of_type_with_specific_name
mockito-integration-tests/extensions-tests/src/test/java/org/mockitousage/plugins/donotmockenforcer/DoNotmockEnforcerTest.java
mockito/mockito
stack-cqs-index
[]
[ "assertThatThrownBy", "hasMessage", "isInstanceOf", "mockStatic" ]
query: function u(t,e,i) function u
passage: function u(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(i?(t[e].normal=t[e].emphasis=null,n.defaults(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a)}}
javascript
u
public/dist/js/chunk-d2bd86ee.35f9bb8f.js
Tai7sy/card-system
stack-cqs-index
[ "$", "$a", "$c", "$e", "$f", "$g", "$i", "$n", "$p", "$s", "$t", "$y", "A", "A_", "Aa", "Ab", "AbstractCrudController", "AddressComponents", "AddressFormatter", "AdminContextFactory" ]
[ "$", "$$equals", "$$keys", "$$new", "$$validates", "$$values", "$9", "$_Dt", "$addFoldLine", "$apply", "$broadcast", "$clipRangeToDocument", "$destroy", "$eval", "$evalAsync", "$f", "$new", "$observe", "$on", "$setFolding" ]
query: void SP_monster_brain(edict_t *self) function SP_monster_brain
passage: ##index ( " models / monsters / brain / gibs / chest. md2 " ) ; gi. modelindex ( " models / monsters / brain / gibs / door. md2 " ) ; gi. modelindex ( " models / monsters / brain / gibs / head. md2 " ) ; gi. modelindex ( " models / monsters / brain / gibs / pelvis. md2 " ) ; self - > mins = { - 16, - 16, - 24 ...
cpp
SP_monster_brain
rerelease/m_brain.cpp
id-Software/quake2-rerelease-dll
stack-cqs-index
[]
[ "G_FreeEdict", "M_AllowSpawn", "M_SetAnimation", "VectorSet", "assign", "linkentity", "modelindex", "soundindex", "walkmonster_start", "was_key_specified" ]
query: pub async fn start_recording_with_meeting_name<R: Runtime>( app: AppHandle<R>, meeting_name: Option<String>, ) -> Result<(), String> function start_recording_with_meeting_name
passage: : { } ", e ) ; warn! ( " recording will continue with microphone only " ) ; none / / system audio is optional } } } } ; / / always ensure a meeting name is set so incremental saver initializes let effective _ meeting _ name = meeting _ name. clone ( ). unwrap _ or _ else ( | | { / / example : meeting 2025 - 10...
rust
start_recording_with_meeting_name
frontend/src-tauri/src/audio/recording_commands.rs
Zackriya-Solutions/meetily
stack-cqs-index
[ "start_recording", "start_recording_with_devices_and_meeting" ]
[ "Err", "Ok", "Some", "add_transcript_segment", "as_ref", "clone", "default_input_device", "default_output_device", "emit", "error", "format", "info", "listen", "load", "load_recording_preferences", "lock", "map_err", "now", "parse_audio_device", "payload" ]
query: @Override public boolean onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) method onRequestPermissionsResult
passage: @Override public boolean onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { switch (requestCode) { case FILE_DOWNLOAD_PERMISSION_REQUEST: { // If request is cancelled, the result arrays are empty. ...
java
onRequestPermissionsResult
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewModuleImpl.java
react-native-webview/react-native-webview
stack-cqs-index
[ "AbsParameterFragment", "BaseActivity", "BaseFragment", "DetailControlActivity", "DetailFilterActivity", "DetailTransparentActivity", "DevToolActivity", "DoKitMcScanActivity", "DoKitScanActivity", "LoadingActivity", "MainActivity", "PermissionActivityImpl", "PermissionUtils", "ReportActivi...
[ "PermissionListener", "Toast", "beenDone", "checkPermissionResult", "create", "d", "downloadFile", "equals", "error", "finish", "get", "getApplication", "getApplicationContext", "getPermissionsStatus", "getReportInfoMarkdownString", "getResources", "getString", "grantResults", "h...
query: fn main() function main
passage: ##son, mcp _ add _ from _ claude _ desktop, mcp _ serve, mcp _ test _ connection, mcp _ reset _ project _ choices, mcp _ get _ server _ status, mcp _ read _ project _ config, mcp _ save _ project _ config, / / storage management storage _ list _ tables, storage _ read _ table, storage _ update _ row, storage _...
rust
main
src-tauri/src/main.rs
winfunc/opcode
stack-cqs-index
[ "11.1 接口是什么", "13) Use Standard libc Macros When Exiting", "13.10.3 用 pprof 调试", "14-Dec-2024", "14.1.1 什么是协程", "14.1.4 如何用命令行指定使用的核心数量", "14.10.2 卸载 (Teardown):通过信号通道关闭服务器", "14.12 链式协程", "14.2.11 通道的方向", "14.2.2 通信操作符 <-", "14.2.3 通道阻塞", "14.2.6 协程中用通道输出结果", "14.2.7 信号量模式", "14.2.9 用带缓冲通...
[ "\"$CORE_BIN\"", "\"$ECAPTURE_BINARY\"", "\"$GO_CLIENT\"", "\"$METEOR\"", "\"$SCRIPT_DIR/build-docker.sh\"", "\"$SCRIPT_DIR/setup-db.sh\"", "\"$_wasmpackinit\"", "\"${CROSS[@]}\"", "\"${CROSS_ENGINE}\"", "\"${CROSS_UTIL}\"", "\"${CROSS}\"", "\"${INSTALL_PATH}/bin/protoc\"", "\"${NETBIRD_BIN}...
query: fn into_maybe_par_iter_cond(self, cond: bool) -> CondIterator<P, S> method of I
passage: fn into_maybe_par_iter_cond(self, cond: bool) -> CondIterator<P, S> { if cond { self.into_maybe_par_iter() } else { CondIterator::from_serial(self) } }
rust
into_maybe_par_iter_cond
tokenizers/src/utils/parallelism.rs
huggingface/tokenizers
stack-cqs-index
[ "maybe_par_iter_cond", "maybe_par_iter_mut_cond" ]
[ "from_serial", "into_maybe_par_iter" ]
query: def test_location_requests_correct_resource method of TestSet
passage: def test_location_requests_correct_resource @set_cmd.options = @set_cmd.options.merge("profile" => "#{fixture_path}/.trc") stub_post("/1.1/account/update_profile.json").with(body: {location: "San Francisco"}).to_return(body: fixture("sferik.json"), headers: {content_type: "application/json; charset=utf...
ruby
test_location_requests_correct_resource
legacy/test/test_set.rb
sferik/x-cli
stack-cqs-index
[]
[ "assert_requested", "fixture", "location", "merge", "options", "stub_post", "to_return", "with" ]
query: bool Python::is_python_native() const noexcept method of Python
passage: bool Python::is_python_native() const noexcept { return true; }
cpp
is_python_native
libopenage/util/fslike/python.cpp
SFTtech/openage
stack-cqs-index
[]
[]
query: func GinRecovery(stack bool) gin.HandlerFunc function GinRecovery
passage: & info, level : level, } ) global. gva _ log. error ( " [ recovery from panic ] ", zap. any ( " error ", err ), zap. string ( " request ", string ( httprequest ) ), ) } else { form : = " " info : = fmt. sprintf ( " panic : % v \ nrequest : % s ", err, string ( httprequest ) ) level : = " error " _ = service. s...
go
GinRecovery
server/middleware/error.go
flipped-aurora/gin-vue-admin
stack-cqs-index
[ "Routers" ]
[ "Abort", "AbortWithStatus", "Any", "Background", "Contains", "CreateSysError", "DumpRequest", "Error", "Next", "Sprintf", "Stack", "String", "ToLower", "recover", "string" ]
query: func TestShow_config_noJson(t *testing.T) function TestShow_config_noJson
passage: func TestShow_config_noJson(t *testing.T) { view, done := testView(t) c := &ShowCommand{ Meta: Meta{ WorkingDir: workdir.NewDir("."), testingOverrides: metaOverridesForProvider(testProvider()), View: view, }, } args := []string{ "-config", "-no-color", } code := c.Run(...
go
TestShow_config_noJson
internal/command/show_test.go
opentofu/opentofu
stack-cqs-index
[]
[ "Contains", "Errorf", "Fatalf", "NewDir", "Run", "Stderr", "Stdout", "done", "metaOverridesForProvider", "testProvider", "testView" ]
query: private void connectToADB() method of ADBDialog
passage: private void connectToADB() { String tip; try { String host = hostTextField.getText().trim(); String port = portTextField.getText().trim(); tipLabel.setText(NLS.str("adb_dialog.connecting", host, port)); deviceSocket = ADB.listenForDeviceState(this, host, Integer.parseInt(port)); if (deviceS...
java
connectToADB
jadx-gui/src/main/java/jadx/gui/ui/dialog/ADBDialog.java
skylot/jadx
stack-cqs-index
[]
[ "error", "getMessage", "getText", "listenForDeviceState", "parseInt", "setText", "setTitle", "showMessageBox", "str", "trim" ]
query: Clean attributes from permissions which we can't write func cleanPermissionForWrite(perm *drive.Permission) function cleanPermissionForWrite
passage: func cleanPermissionForWrite(perm *drive.Permission) { perm.Deleted = false perm.DisplayName = "" perm.Id = "" perm.Kind = "" perm.PermissionDetails = nil perm.TeamDrivePermissionDetails = nil }
go
cleanPermissionForWrite
backend/drive/metadata.go
rclone/rclone
stack-cqs-index
[ "setPermissions" ]
[]
query: fn from_str(s: &str) -> Result<Self, Self::Err> method of Col
passage: fn from_str(s: &str) -> Result<Self, Self::Err> { let s = s.to_lowercase(); match s.as_ref() { "m" | "mark" => Ok(Self::Mark), "g" | "git" => Ok(Self::Git), "dev" | "device" | "device-id" => Ok(Self::DeviceId), "b" | "branch" => Ok(Self::Branch), ...
rust
from_str
src/display/col.rs
Canop/broot
stack-cqs-index
[ "ALL_COUNTERS", "ALL_PROVIDER_MODELS", "AnyOf", "BackgroundTasksAgent", "Breakpoints", "Button", "Byebug", "ChatState", "ChatTypeMatchRule", "Client", "CodeObject", "ColourConverter", "CommandHelpers", "ConfigEnum", "ContextClass", "ControlNetUiGroup", "Controller", "DEFAULT_COLORS...
[ "All", "Any", "ArgumentParser", "Async", "Atime", "Basic", "Bearer", "Bind", "Both", "BuiltIn", "Channel", "Chars", "ChatCompletionOverride", "CodeName", "Codename", "Color", "Configuration", "DataId", "Defaults", "Delta" ]
query: const unsigned long hwcap32() function hwcap32
passage: const unsigned long hwcap32() { static unsigned long hwcap32; if (hwcap32) { return hwcap32; } u64 isar; /* Instruction Set Attribute Register 0 */ u64 pfr; /* Processor Feature Register 0 */ asm volatile ("mrs %0, ID_AA64PFR0_EL1" : "=r"(pfr)); asm volatile ("mrs %0, ID_A...
cpp
hwcap32
arch/aarch64/cpuid.cc
cloudius-systems/osv
stack-cqs-index
[ "elf", "getauxval" ]
[ "IS_ASIMD_SET", "IS_ATOMIC_SET", "IS_CRC32_SET", "IS_FP_SET", "IS_SHA1_SET", "IS_SHA2_SET" ]
query: #[Test] public function getArtistInformation(): void method of MusicBrainzServiceTest
passage: #[Test] public function getArtistInformation(): void { $this->mockPipelinePipe(GetMbidForArtist::class, 'Skid Row', 'sample-mbid'); $this->mockPipelinePipe(GetArtistWikidataIdUsingMbid::class, 'sample-mbid', 'Q123456'); $this->mockPipelinePipe(GetWikipediaPageTitleUsingWikidataI...
php
getArtistInformation
tests/Integration/Services/MusicBrainzServiceTest.php
koel/koel
stack-cqs-index
[ "EncyclopediaService", "EncyclopediaServiceTest", "FetchArtistInformationController", "FetchArtworkCommand", "GetArtistInfo", "GetCurrentSong", "LastfmServiceTest", "MusicBrainzServiceTest", "__invoke", "getArtistInformation", "getArtistInformationForNonExistentArtist", "getArtistInformationPr...
[ "GetArtistInfoRequest", "addWeek", "all", "andReturn", "assertEquals", "assertNotEmpty", "assertNotNull", "assertSame", "assertSent", "cache", "cache_key", "createOne", "dto", "enabled", "expects", "factory", "fake", "fetchAndStoreArtistImage", "fromWikipediaSummary", "get" ]
query: async deleteDocumentFromNamespace(namespace, docId) method of AstraDB
passage: async deleteDocumentFromNamespace(namespace, docId) { const { DocumentVectors } = require("../../../models/vectors"); const { client } = await this.connect(); namespace = sanitizeNamespace(namespace); if (!(await this.namespaceExists(client, namespace))) throw new Error( "Invalid ...
javascript
deleteDocumentFromNamespace
server/utils/vectorDbProviders/astra/index.js
Mintplex-Labs/anything-llm
stack-cqs-index
[ "Document" ]
[ "camelCase", "collection", "connect", "delete", "deleteEntities", "deleteIds", "deleteMany", "deleter", "do", "end", "flushSync", "getCollection", "join", "logger", "map", "namespace", "namespaceExists", "normalize", "openTable", "query" ]
query: func backtrace(i int, cur string, lmoves int, rmoves int, score int) function backtrace
passage: func backtrace(i int, cur string, lmoves int, rmoves int, score int) { if lmoves < 0 || rmoves < 0 || score < 0 || score > maxScore { return } if lmoves == 0 && rmoves == 0 { if len(cur) == length { if _, ok := mp[cur]; !ok { res = append(res, cur) mp[cur] = 1 } return } } if i == n...
go
backtrace
website/content/ChapterFour/0300~0399/0301.Remove-Invalid-Parentheses.md
halfrost/LeetCode-Go
stack-cqs-index
[ "ABRThandler", "API", "AbstractRequest", "AbstractSession", "ActionController", "ActionHandler", "ActionView", "ActiveAdmin", "ActiveInteraction", "ActiveRecord", "ActiveRecordDoctor", "ActiveScaffold", "ActiveSupport", "ActorState", "ActsAsResourceController", "Adapter", "Adapters",...
[ "Allocation::backtrace", "GetStackFrames", "Map::backtrace", "TRY7", "ValueError", "_Unwind_Backtrace", "_Unwind_GetIPInfo", "add_silencer", "append", "array", "as_ref", "backtrace", "by_ref", "caller", "caller_locations", "check_thread_data", "class", "class_name", "clean", "c...
query: public function testDispatchesMutationOnCustomQueue(): void method of AsyncDirectiveTest
passage: public function testDispatchesMutationOnCustomQueue(): void { $this->mockResolver(static fn (mixed $root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo) => null); $this->schema .= /** @lang GraphQL */ <<<'GRAPHQL' type Mutation { fooAsync: Boolean! @moc...
php
testDispatchesMutationOnCustomQueue
tests/Integration/Async/AsyncDirectiveTest.php
nuwave/lighthouse
stack-cqs-index
[]
[ "assertCount", "assertExactJson", "assertInstanceOf", "assertSame", "call", "fake", "getInstance", "graphQL", "mockResolver", "pushed", "serialize", "unserialize" ]
query: protected void traceException(Throwable ex, SentinelResourceBinding annotation) method of AbstractSentinelInterceptorSupport
passage: protected void traceException(Throwable ex, SentinelResourceBinding annotation) { Class<? extends Throwable>[] exceptionsToIgnore = annotation.exceptionsToIgnore(); // The ignore list will be checked first. if (exceptionsToIgnore.length > 0 && exceptionBelongsTo(ex, exceptionsToIgnore))...
java
traceException
sentinel-extension/sentinel-annotation-cdi-interceptor/src/main/java/com/alibaba/csp/sentinel/annotation/cdi/interceptor/AbstractSentinelInterceptorSupport.java
alibaba/Sentinel
stack-cqs-index
[ "AbstractSentinelAspectSupport", "AbstractSentinelInterceptorSupport", "SentinelResourceAspect", "SentinelResourceInterceptor", "aroundInvoke", "invokeResourceWithSentinel", "traceException" ]
[ "exceptionBelongsTo", "exceptionsToIgnore", "exceptionsToTrace", "trace", "traceException" ]
query: Connect tries a single immediate connect via provider; on failure it starts a background retry. func (f *fileSystem) Connect() method of fileSystem
passage: func (f *fileSystem) Connect() { if f.CommonFileSystem.IsConnected() { return } ctx, cancel := context.WithTimeout(context.Background(), defaultTimeout) defer cancel() err := f.CommonFileSystem.Connect(ctx) if err != nil { if f.CommonFileSystem.Logger != nil { f.CommonFileSystem.Logger.Errorf("G...
go
Connect
pkg/gofr/datasource/file/gcs/fs.go
gofr-dev/gofr
stack-cqs-index
[ "<a name=\"Client.Connect\">func</a> (\\*Client) [Connect](https://github.com/studio-b12/gowebdav/blob/master/client.go?s=1843:1875#L87)", "AddArangoDB", "AddCassandra", "AddClickhouse", "AddCouchbase", "AddDBResolver", "AddDgraph", "AddElasticsearch", "AddFTP", "AddFileStore", "AddInfluxDB", ...
[ "![GitHub stars", "![Official Discord", "Acquire", "Add", "Addr", "AllApprovedRoutes", "Append", "AppendByte", "AppendData", "AppendJitJump", "AppendString", "AppendWord", "ApplyURI", "ArgumentException", "Attrs", "Auth", "Background", "Bucket", "BucketsAPI", "BuildDSN" ]
query: void CMACAddress::CopyTo (u8 *pBuffer) const method of CMACAddress
passage: void CMACAddress::CopyTo (u8 *pBuffer) const { assert (m_bValid); assert (pBuffer != 0); memcpy (pBuffer, m_Address, MAC_ADDRESS_SIZE); }
cpp
CopyTo
lib/macaddress.cpp
rsta2/circle
stack-cqs-index
[ "Adjust", "Arc", "BatchVerifyDraftTokensWithProbAfterTopP", "Build", "CChecksumCalculator", "CInputSwitchControlProxySV2_CreateInstance", "CInputSwitchControlProxy_CreateInstance", "CLauncherTipContextMenu_CreateInstance_IClassFactory_Hook", "CPUSampler", "Close", "CombineWith", "Configure", ...
[ "AMF_RETURN_IF_INVALID_POINTER", "Add", "AddTo", "Clear", "Clone", "CopyTo", "Detach", "Get", "GetBeforeFlush", "HRESULT_FROM_WIN32", "Header", "Initialize", "Join", "ModulePath", "Path", "ReadOnlyData", "Reset", "SUCCEEDED", "Set", "SetBeforeFlush" ]
query: int main(int argc, char *argv[]) function main
passage: strcmp ( famname, " tag16h5 " ) ) { tag16h5 _ destroy ( tf ) ; } else if (! strcmp ( famname, " tagcircle21h7 " ) ) { tagcircle21h7 _ destroy ( tf ) ; } else if (! strcmp ( famname, " tagcircle49h12 " ) ) { tagcircle49h12 _ destroy ( tf ) ; } else if (! strcmp ( famname, " tagstandard41h12 " ) ) { tagstandard4...
cpp
main
example/opencv_demo.cc
AprilRobotics/apriltag
stack-cqs-index
[ "11.1 接口是什么", "13) Use Standard libc Macros When Exiting", "13.10.3 用 pprof 调试", "14-Dec-2024", "14.1.1 什么是协程", "14.1.4 如何用命令行指定使用的核心数量", "14.10.2 卸载 (Teardown):通过信号通道关闭服务器", "14.12 链式协程", "14.2.11 通道的方向", "14.2.2 通信操作符 <-", "14.2.3 通道阻塞", "14.2.6 协程中用通道输出结果", "14.2.7 信号量模式", "14.2.9 用带缓冲通...
[ "\"$CORE_BIN\"", "\"$ECAPTURE_BINARY\"", "\"$GO_CLIENT\"", "\"$METEOR\"", "\"$SCRIPT_DIR/build-docker.sh\"", "\"$SCRIPT_DIR/setup-db.sh\"", "\"$_wasmpackinit\"", "\"${CROSS[@]}\"", "\"${CROSS_ENGINE}\"", "\"${CROSS_UTIL}\"", "\"${CROSS}\"", "\"${INSTALL_PATH}/bin/protoc\"", "\"${NETBIRD_BIN}...
query: def linode_disk_createfromdistribution(linode_id, distro_id, name, size, password) method of Mock
passage: def linode_disk_createfromdistribution(linode_id, distro_id, name, size, password) response = Excon::Response.new response.status = 200 response.body = { "ERRORARRAY" => [], "ACTION" => "linode.disk.createFromDistribution", "DATA" => {...
ruby
linode_disk_createfromdistribution
lib/fog/linode/requests/compute/linode_disk_createfromdistribution.rb
fog/fog
stack-cqs-index
[ "Compute", "Disk", "Fog", "Linode", "create_disk_from_image" ]
[ "body", "rand", "request", "status" ]
query: pub fn composed(&mut self, val: bool) -> &mut Self method of AnimationEventInit
passage: pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self }
rust
composed
crates/web-sys/src/features/gen_AnimationEventInit.rs
wasm-bindgen/wasm-bindgen
stack-cqs-index
[ "Asciidoctor", "Hono", "compile", "execute", "initialize", "prql_to_pl_tree" ]
[ "W", "__esm", "assert", "clone", "compose_display", "compose_location", "defineStore", "describe", "fetch", "get", "set_composed" ]
query: @Test public void completedFutureTimeout() throws Exception method of FutureTest
passage: @Test public void completedFutureTimeout() throws Exception { disableThreadChecks(); completedFutureTimeout(null, io.vertx.core.Future.succeededFuture("value")); }
java
completedFutureTimeout
vertx-core/src/test/java/io/vertx/tests/future/FutureTest.java
eclipse-vertx/vert.x
stack-cqs-index
[ "FutureTest", "completedFutureTimeout", "contextCompletedFutureTimeout" ]
[ "assertEquals", "assertSame", "await", "completedFutureTimeout", "currentContext", "disableThreadChecks", "onComplete", "onSuccess", "succeededFuture", "testComplete", "timeout" ]
query: 元素入堆積 */ push(val) method of MaxHeap
passage: push(val) { // 新增節點 this.#maxHeap.push(val); // 從底至頂堆積化 this.#siftUp(this.size() - 1); }
javascript
push
zh-hant/codes/javascript/chapter_heap/my_heap.js
krahets/hello-algo
stack-cqs-index
[ "$", "$$RAFProvider", "$$TestabilityProvider", "$$render_inner", "$5", "$6", "$7", "$A", "$C", "$CompileProvider", "$G", "$HttpParamSerializerJQLikeProvider", "$HttpParamSerializerProvider", "$HttpProvider", "$I", "$InterpolateProvider", "$LogProvider", "$M", "$O", "$ParseProvi...
[ "AnsiValue", "Append", "Bytes", "CFAllocatorAllocate", "Check_Node_Set_Node_Type", "Close", "Co", "Command: state push", "ContainerRec", "Contains", "Copy", "CreateConnection", "DBUG_ENTER", "DBUG_PRINT", "Debug", "Debugf", "Do", "DoublyListNode", "ENSURE", "Err" ]
query: public function generateString($len): string method of RandomGenerator
passage: public function generateString($len): string { return bin2hex(random_bytes($len)); }
php
generateString
src/nats/src/RandomGenerator.php
hyperf/hyperf
stack-cqs-index
[ "Connection", "MapGenerator", "SlackSender", "User", "formDataToStream", "generateMap", "generateMarkDownTable", "init", "queueSubscribe", "subscribe" ]
[ "ARRAY_SIZE", "StringBuilder", "addMapping", "append", "bin2hex", "ffParseGTK", "ffStrbufAppend", "ffStrbufAppendC", "ffStrbufAppendF", "ffStrbufAppendS", "ffStrbufEqual", "lastIndexOf", "length", "match", "outputFile", "randomFillSync", "random_bytes", "random_int", "sourcePath"...
query: def forward(self, images, debug_percentile=None) method of AugmentPipe
passage: : s = torch. exp2 ( torch. randn ( [ batch _ size, 1, 1 ], device = device ) * self. saturation _ std ) s = torch. where ( torch. rand ( [ batch _ size, 1, 1 ], device = device ) < self. saturation * self. p, s, torch. ones _ like ( s ) ) if debug _ percentile is not none : s = torch. full _ like ( s, torch. e...
python
forward
stylegan_human/training/augment.py
XingangPan/DragGAN
stack-cqs-index
[ "ASPPPooling", "AbstractBrowser", "AbstractBrowserTest", "AbstractControllerTest", "AbstractDataBase", "ActivationHandler", "ActiveRecord", "AdaLoraModel", "AdaptiveDecoderLayer", "AdaptiveEncoderLayer", "Agenda", "AlarmNotifyWorker", "Analyzing the Qwen3 LLM Flamegraph", "AppServlet", "...
[ "A", "ACT", "AF", "ASPP", "AfterCFGCallbackParams", "AgentAudio", "AgentImage", "Array", "AssertionError", "AttrDict", "AudioSignal", "AzureKeyCredential", "B", "B00", "B10", "B20", "BCEWithLogitsLoss", "B_norm", "BaseModelOutput", "BaseModelOutputWithNoAttention" ]
query: fn handle_client_fs_event(this: &TlsReloaderState, event: notify::Result<notify::Event>) method of TlsReloader
passage: ##g. remote _ addr. scheme ( ). alpn _ protocols ( ),! tls. tls _ sni _ disabled, none, some ( tls _ certs ), some ( tls _ key ), ) ; let tls _ connector = match tls _ connector { ok ( cn ) = > cn, err ( err ) = > { error! ( " error while creating tls connector { :? } ", err ) ; return ; } } ; * tls. tls _ con...
rust
handle_client_fs_event
wstunnel/src/tunnel/tls_reloader.rs
erebe/wstunnel
stack-cqs-index
[ "new_for_client", "try_rewatch_certificate" ]
[ "Client", "Some", "alpn_protocols", "as_ref", "clone", "ends_with", "error", "find", "is_access", "iter", "load_certificates_from_pem", "load_private_key_from_file", "scheme", "store", "tls", "tls_connector", "to_path_buf", "trace", "try_rewatch_certificate", "unwrap" ]
query: setup(props: any) function setup
passage: setup(props: any) { onMounted(() => { console.log('child mounted') }) onBeforeUnmount(() => { console.log('child unmount') }) return () => h('div', props.str) }
typescript
setup
packages/vue/__tests__/e2e/ssr-custom-element.spec.ts
vuejs/core
stack-cqs-index
[ "0.19.8 (2021/1/15)", "0.22 Upgrade guide", "0.27.2 (2021/8/17)", "3. Writing Tests", "30 Days Of JavaScript", "30 Dias de JavaScript", "30 Günlük JavaScript dərsləri", "AIbitat", "API", "API em Tempo de Execução {#runtime-api}", "API en Tiempo de Ejecución {#runtime-api}", "API زمان اجرا {#ru...
[ "$", "$O", "$args", "$effect", "$emit", "$f", "$forceUpdate", "$i", "$m", "$mount", "$n", "$nextTick", "$onAction", "$r", "$reset", "$subscribe", "$t", ".", "../../contrib/apt-install", "./glb-healthcheck" ]
query: public function testTimestampsAreReturnedAsObjects() method of ModelTest
passage: public function testTimestampsAreReturnedAsObjects() { Register::setEventDispatcher($events = Mockery::mock(Dispatcher::class)); $events->shouldReceive('dispatch')->times(2)->andReturn(null); $model = $this->getMockBuilder(DateModelStub::class)->onlyMethods(['getDateFormat'])->getM...
php
testTimestampsAreReturnedAsObjects
src/database/tests/ModelTest.php
hyperf/hyperf
stack-cqs-index
[]
[ "andReturn", "any", "assertInstanceOf", "expects", "getMock", "getMockBuilder", "method", "mock", "onlyMethods", "returnValue", "setEventDispatcher", "setRawAttributes", "shouldReceive", "times", "will" ]
query: public function testMap() method of RouteCollectorTest
passage: public function testMap() { $responseFactoryProphecy = $this->prophesize(ResponseFactoryInterface::class); $callableResolverProphecy = $this->prophesize(CallableResolverInterface::class); $routeCollector = new RouteCollector($responseFactoryProphecy->reveal(), $callableResolverProp...
php
testMap
tests/Routing/RouteCollectorTest.php
slimphp/Slim
stack-cqs-index
[ "ConcurrentRemoveIf", "Get", "IteratorAtEnd", "MOAT", "SaJsonTemplateForJackson3Test", "SaJsonTemplateTest", "ToArray", "realMain", "testCaffeine", "testFastjson", "testFastjson2", "testJackson", "testJackson3", "testMap", "testSnack3" ]
[ "Collection", "CyclicBarrier", "Entity", "Map", "Mapper", "ObjectView", "RouteCollector", "RouteCollectorProxy", "Some", "accept", "add", "all", "allOf", "asList", "assertContains", "assertEquals", "assertFalse", "assertInstanceOf", "assertNotNull", "assertNullPointerException"...
query: set(val) function set
passage: set(val) { x.value = Number.parseFloat(val) }
typescript
set
packages/core/useScroll/demo.vue
vueuse/vueuse
stack-cqs-index
[ "$", "$6", "$7", "$E", "$F", "$I", "$ZodDiscriminatedTupleUnion", "$ZodDiscriminatedUnion", "$ZodRegistry", "$advancedStyleDeclarations", "$availableProps", "$canvas", "$computedStyleDeclarations", "$cssVariableDefinitionsByVariable", "$d", "$e", "$g", "$handlePointerDown", "$htt...
[ "$C", "$emit", "$i", "$mount", "$postMessage$", "$propertyChangedCallback", "$set", "A2", "AQLQuery", "ASSERT", "Add", "AddMember", "AfterAllAlreadyExist", "Ao", "Au", "B", "B0", "BSONObjectId", "Ba", "BackendStoreError" ]
query: func TestRouter_AddRouteFiltering(t *testing.T) function TestRouter_AddRouteFiltering
passage: ) }, destination : netip. mustparseprefix ( " 192. 168. 0. 0 / 24 " ), proto : firewall. protocolall, sport : nil, dport : nil, direction : firewall. ruledirectionin, action : firewall. actiondrop, expectset : false, }, } for _, tt : = range tests { t. run ( tt. name, func ( t * testing. t ) { rulekey, err : =...
go
TestRouter_AddRouteFiltering
client/firewall/nftables/router_linux_test.go
netbirdio/netbird
stack-cqs-index
[]
[ "AddRouteFiltering", "Cleanup", "DeleteRouteRule", "Equal", "Exists", "Get", "GetRules", "HashedName", "ID", "Log", "Logf", "MustParsePrefix", "NewPrefixSet", "NewWithProtocol", "NoError", "NotNil", "Reset", "Run", "Skip", "True" ]
query: protected function ___waitingPostsNum(): int method of Stat
passage: protected function ___waitingPostsNum(): int { return $this->db->fetchObject($this->db->select(['COUNT(cid)' => 'num']) ->from('table.contents') ->where('table.contents.type = ? OR table.contents.type = ?', 'post', 'post_draft') ->where('table.contents.status = ?...
php
___waitingPostsNum
var/Widget/Stat.php
typecho/typecho
stack-cqs-index
[]
[ "fetchObject", "from", "select", "where" ]
query: function Alert(element) function Alert
passage: function Alert(element) { this._element = element; } // Getters
javascript
Alert
dist/bootstrap/js/bootstrap.js
RaspAP/raspap-webgui
stack-cqs-index
[ "Alert", "AlertDao", "AlertDaoTest", "AlertEventPendingQueueTest", "AlertListResource", "AlertMapperTest", "AlertSenderTest", "AlertTest", "Basic Components", "Contents", "TestAlert", "TestComboWriter", "TestConsoleWriter", "TestFile1", "TestFile2", "TestFileDailyRotate_01", "TestFil...
[ "ALRT", "Alert", "Alertift", "Alerts Pickers", "AwaitToast", "CDAlertView", "CFNotify", "Called", "Client", "Column", "DateTime", "EZAlertController", "ForeignKey", "FullscreenPopup", "GSMessage", "Kamagari", "Loaf", "Lock", "MijickPopups", "NotificationBanner" ]
query: func (p *GRPCProvider) OpenEphemeralResource(ctx context.Context, r providers.OpenEphemeralResourceRequest) (resp providers.OpenEphemeralResourceResponse) method of GRPCProvider
passage: err : = decodedynamicvalue ( protoresp. result, ephemeralresourceschema. block. impliedtype ( ) ) if err! = nil { resp. diagnostics = resp. diagnostics. append ( err ) return resp } resp. result = result resp. private = protoresp. private if protoresp. renewat! = nil { renewat : = protoresp. renewat. astime ( ...
go
OpenEphemeralResource
internal/plugin/grpc_provider.go
opentofu/opentofu
stack-cqs-index
[ "OpenEphemeralResource", "OpenEphemeralResourceInstance", "TestGRPCProvider_OpenEphemeralResource", "_Provider_OpenEphemeralResource_Handler" ]
[ "Add", "Append", "AppendProtoDiag", "AsString", "AsTime", "AsValueMap", "Call", "ClientCapabilities", "Contains", "ContextProbeReport", "Deferred", "Diagnostic", "DynamicValue", "Errorf", "GetProviderSchema", "HasErrors", "Helper", "ImpliedType", "Invoke", "IsNull" ]
query: function Di(e,t) function Di
passage: function Di(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=ie,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},ie,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=Mi(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.p...
javascript
Di
public/build/assets/date-time-BBOZL-k9.js
vitodeploy/vito
stack-cqs-index
[ "$i", "Aa", "Ag", "Ar", "At", "Bc", "Bi", "C", "Cd", "Ci", "Co", "Cv", "D", "Di", "Dn", "Ds", "Ea", "Ei", "F", "Fi" ]
[ "Ai", "Di", "Ei", "Error", "Fi", "Fn", "Ge", "H", "He", "Hi", "Ii", "Ja", "Jw", "Li", "Ln", "M", "Mi", "N", "Ni", "O" ]
query: """Demonstrate streaming service access with different proxies.""" def demo_streaming_access() function demo_streaming_access
passage: def demo_streaming_access(): """Demonstrate streaming service access with different proxies.""" print('\n📺 Demo 3: Streaming Service Access') print('-' * 40) locations = [('us', 'US'), ('de', 'Germany')] for code, name in locations: print(f'\n🌍 Testing streaming access from {name}:') result = test...
python
demo_streaming_access
examples/cloud/04_proxy_usage.py
browser-use/browser-use
stack-cqs-index
[ "main" ]
[ "get", "print", "sleep", "test_streaming_service_access" ]
query: public function startSession(DesiredCapabilities $desired_capabilities) method of ChromeDriver
passage: public function startSession(DesiredCapabilities $desired_capabilities) { $command = WebDriverCommand::newSession( [ 'capabilities' => [ 'firstMatch' => [(object) $desired_capabilities->toW3cCompatibleArray()], ], 'desi...
php
startSession
lib/Chrome/ChromeDriver.php
php-webdriver/php-webdriver
stack-cqs-index
[ "IjkExoMediaPlayer", "LinkControllerTest", "ManagesTransactions", "McpStreamableHttpRequestHandler", "MongoBankTest", "RecorderManagerImpl", "SshjSftp", "TerminalManagerRuntime", "TerminalViewController", "VideoLifecycleController", "app", "browseWebpage", "checkAndRunMigrations", "createB...
[ "CFBridgingRelease", "IS_ERR", "InMemoryEventStore", "McpStreamableServerSession", "NSAssert", "NSString", "PTR_ERR", "String", "Terminal", "addEventListener", "addObserver", "adminReadEx", "argv", "asCanonicalTurnId", "asRuntimeRequestId", "assertSupportedCodexCliVersion", "attachLi...
query: def assert_spacey_match obj, matcher method of Assertions
passage: def assert_spacey_match obj, matcher og_matcher = matcher msg = proc { <<-MSG.gsub(/^ {10}/, "") Expected this #{obj.class}: ``` #{obj} ``` To match this #{og_matcher.class}: ``` #{og_matcher} ``` MSG ...
ruby
assert_spacey_match
test/support/assertions.rb
testdouble/suture
stack-cqs-index
[ "AuditorTest", "ResultMismatchTest", "ScalpelTest", "Suture", "ValidatesPlanTest", "test_log_errors_when_unexpected", "test_raise_when_args_are_not_set", "test_raise_when_call_both_and_fallback_on_error_are_both_set", "test_raise_when_comparator_is_defined_and_not_callable", "test_raise_when_fallb...
[ "assert", "assert_respond_to", "class", "escape", "gsub", "proc" ]
query: void Spawn() method of ScaleRagdoll
passage: void Spawn() { float jointFrictionTorque = 0.03f; float jointHertz = 1.0f; float jointDampingRatio = 0.5f; CreateHuman( &m_human, m_worldId, { 0.0f, 5.0f }, m_scale, jointFrictionTorque, jointHertz, jointDampingRatio, 1, nullptr, false ); Human_ApplyRandomAngularImpulse( &m_human, 10.0f ); }
cpp
Spawn
samples/sample_joints.cpp
erincatto/box2d
stack-cqs-index
[ "CircleImpulse", "CompoundShapes", "DoohickeyFarm", "Driving", "GetWorkConnFromPool", "LargeWorld", "NewProxy", "NewVisitor", "NewWrapper", "Ragdoll", "Run", "ScaleRagdoll", "ScissorLift", "Spawn", "UpdateGui", "cancels_spawned_futures", "executeCommands", "main", "openTextEditor...
[ "B2_IS_NON_NULL", "B2_IS_NULL", "Command", "CreateHuman", "Human_ApplyRandomAngularImpulse", "Lock", "New", "Now", "Run", "Spawn", "Sprintf", "UnixMilli", "Unlock", "append", "assert", "at_exit", "b2Add", "b2Body_GetLocalPoint", "b2Body_GetMassData", "b2Body_GetPosition" ]
query: private void readNextElement(long expectedSeqNum, boolean verifyChecksum) throws MmapPageIOV2.PageIOInvalidElementException method of MmapPageIOV2
passage: . position ( ) + length ) ; this. checksummer. update ( buffer ) ; buffer. limit ( prevlimit ) ; int checksum = buffer. getint ( ) ; int computedchecksum = ( int ) this. checksummer. getvalue ( ) ; if ( computedchecksum! = checksum ) { throw new mmappageiov2. pageioinvalidelementexception ( " element invalid c...
java
readNextElement
logstash-core/src/main/java/org/logstash/ackedqueue/io/MmapPageIOV2.java
elastic/logstash
stack-cqs-index
[ "MmapPageIOV1", "MmapPageIOV2", "open", "recover" ]
[ "add", "format", "getInt", "getLong", "getValue", "limit", "position", "reset", "update" ]
query: auto makeGenerators( as<T>, U&& val, Gs... moreGenerators ) -> Generators<T> function makeGenerators
passage: auto makeGenerators( as<T>, U&& val, Gs... moreGenerators ) -> Generators<T> { return makeGenerators( value( T( std::forward<U>( val ) ) ), std::forward<Gs>( moreGenerators )... ); }
cpp
makeGenerators
test/catch.hpp
mpaland/printf
stack-cqs-index
[ "Catch", "Generators", "makeGenerators" ]
[ "Generators", "T", "forward", "makeGenerators", "move", "value" ]
query: async def delete( self, executor method of NeptuneEpisodeNodeOperations
passage: async def delete( self, executor: QueryExecutor, node: EpisodicNode, tx: Transaction | None = None, ) -> None: query = """ MATCH (n {uuid: $uuid}) WHERE n:Entity OR n:Episodic OR n:Community DETACH DELETE n """ if t...
python
delete
graphiti_core/driver/neptune/operations/episode_node_ops.py
getzep/graphiti
stack-cqs-index
[ "$", "$I", "$ZodRegistry", "$availableProps", "$dispose", "$e", "$handlePointerMove", "$handlePointerUp", "$n", "$t", "$u", "$variableValuesByInstanceSelector", "--immutable", "0.2.0", "18.3 映射", "2. Storage", "3. Update Retrieval Calls (Critical)", "8.2 测试键值对是否存在及删除元素", "@forceD...
[ "$i", "A", "AQLQuery", "Add", "AddUint64", "AfterCrudActionEvent", "AfterEntityDeletedEvent", "Any", "Argument", "AuthUser", "AuthWorkspace", "Authenticate", "AuthorizationException", "AuxNonconcurrentDB", "BackupDir", "BadRequestException", "BadRequestHttpException", "Base", "Be...
query: function deepClone(obj, seen = new WeakSet()) function deepClone
passage: function deepClone(obj, seen = new WeakSet()) { // Handle primitives if (obj === null || typeof obj !== 'object') { return obj } // Detect circular references if (seen.has(obj)) { throw new Error('Circular reference detected!') } seen.add(obj) // Clone arrays if (Array.isArra...
javascript
deepClone
docs/beyond/concepts/weakmap-weakset.mdx
leonardomso/33-js-concepts
stack-cqs-index
[ "Agent", "AutoTypingResume", "CloneUtilsTest", "Component", "ContainerBuilderDebugDumpPass", "ContentLoaderTrait", "How to reset state", "InMemoryStorageAdapter", "Pool", "PrototypeConfigurator", "ResolveDecoratorStackPass", "START_HOME_RESUME", "ServicesConfigurator", "_BotConfig", "__c...
[ "Person", "_clone", "add", "assertNotEquals", "call", "clone", "create", "deepClone", "describe", "forEach", "fromJson", "get", "getOwnPropertyDescriptors", "getPrototypeOf", "getRefSet", "getType", "has", "hasOwnProperty", "includes", "isArray" ]
query: func BenchmarkCalculationFromComponents(b *testing.B) function BenchmarkCalculationFromComponents
passage: func BenchmarkCalculationFromComponents(b *testing.B) { account := createTestAccount() ctx := context.Background() peerID := testingPeerID validatedPeersMap := make(map[string]struct{}) for i := range numPeers { pid := fmt.Sprintf("peer-%d", i) if pid != offlinePeerID { validatedPeersMap[pid] = str...
go
BenchmarkCalculationFromComponents
management/server/types/networkmap_comparison_test.go
netbirdio/netbird
stack-cqs-index
[]
[ "Background", "CalculateNetworkMapFromComponents", "GetActiveGroupUsers", "GetPeerNetworkMapComponents", "GetResourcePoliciesMap", "GetResourceRoutersMap", "ResetTimer", "Sprintf", "createTestAccount", "make" ]
query: def generate_app function generate_app
passage: def generate_app write "config/app.rb", <<~RUBY module TestApp class App < Hanami::App end end RUBY end
ruby
generate_app
spec/integration/logging/request_logging_spec.rb
hanami/hanami
stack-cqs-index
[]
[ "context", "describe", "inspect", "to_s", "write" ]