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: function $RootScopeProvider() function $RootScopeProvider
passage: # $ watch watchers } * until no more listeners are firing. this means that it is possible to get into an infinite * loop. this function will throw ` ' maximum iteration limit exceeded. ' ` if the number of * iterations exceeds 10. * * usually, you don ' t call ` $ digest ( ) ` directly in * { @ link ng. direct...
javascript
$RootScopeProvider
examples/server/php/public/vendor/angular.js
sahat/satellizer
stack-cqs-index
[]
[ "$$applicationDestroyed", "$$checkUrlChange", "$$watchDelegate", "$apply", "$broadcast", "$digest", "$eval", "$evalAsync", "$exceptionHandler", "$on", "$parse", "$rootScopeMinErr", "$watch", "apply", "arrayRemove", "assertArgFn", "beginPhase", "bind", "call", "cancel" ]
query: """Generate the bank provider's ISO 3166-1 alpha-2 country code.""" def bank_country(self) -> str method of Provider
passage: def bank_country(self) -> str: """Generate the bank provider's ISO 3166-1 alpha-2 country code.""" return self.country_code
python
bank_country
faker/providers/bank/__init__.py
joke2k/faker
stack-cqs-index
[]
[]
query: private final ServerStatusEvaluator serverStatusEvaluator; property serverStatusEvaluator
passage: private final ServerStatusEvaluator serverStatusEvaluator;
java
serverStatusEvaluator
eureka-client/src/main/java/com/netflix/discovery/shared/transport/decorator/RetryableEurekaHttpClient.java
Netflix/eureka
stack-cqs-index
[]
[ "legacyEvaluator" ]
query: export all notes as csv def csv_notes method of DataController
passage: def csv_notes content_type = 'text/csv' CSV.generate(result = "") do |csv| csv << ["id", "User ID", "Project", "Note", "Created at", "Updated at"] # had to remove project include because it's association order is leaking # through and causing an ambiguous column ref even with_exclusiv...
ruby
csv_notes
app/controllers/data_controller.rb
TracksApp/tracks
stack-cqs-index
[]
[ "body", "created_at", "each", "generate", "id", "name", "nil?", "notes", "project", "project_id", "reorder", "send_data", "to_formatted_s", "updated_at", "user_id" ]
query: Full-width divider line def full(char: "─", color: :dim) method of Divider
passage: def full(char: "─", color: :dim) @pastel.public_send(color, char * @terminal_width) end
ruby
full
lib/swarm_cli/ui/components/divider.rb
parruda/swarm
stack-cqs-index
[ "AcceptLanguageTest", "Adaboost", "AllOne", "Append", "Attention", "AugmentPipe", "AutoTextSemanticInstructionDataset", "AutoTextSemanticInstructionIterableDataset", "BatchedInferencePipeline", "BinaryCrossEntropy", "BlockQueue", "Box", "Branches", "CFM", "CNBBLoss", "CPOTrainer", "C...
[ "ErrorPage", "FullPath", "Object", "_generate_body", "_generate_output", "array_push", "assertThat", "better_position", "bitCount", "compact", "conv", "current_index", "dict", "example", "filter", "filter_fn", "format", "fstat", "full", "html" ]
query: Array<Request> Step(EngineState estate) final method of BatchDraftActionObj
passage: ##bedding " ) ; tvm _ ffi _ icheck _ le ( input _ tokens. size ( ), engine _ config _ - > prefill _ chunk _ size ) ; objectref embeddings = models _ [ model _ id ] - > tokenembed ( { inttuple { input _ tokens. begin ( ), input _ tokens. end ( ) } } ) ; record _ event ( trace _ recorder _, request _ ids, " fini...
cpp
Step
cpp/serve/engine_actions/batch_draft.cc
mlc-ai/mlc-llm
stack-cqs-index
[ "Animate", "AttributePath", "AutoSpecDecodeActionObj", "BadBody", "BenchmarkCapacity", "BenchmarkCast", "BenchmarkCreateDestroy", "BenchmarkJunkyard", "BenchmarkManyTumblers", "BenchmarkRain", "BenchmarkSensor", "BenchmarkShapeDistance", "BenchmarkSleep", "BenchmarkSpinner", "BipedalWalk...
[ "ActionStepPostProcess", "Add", "AddDraftToken", "AddNewSequence", "AddText", "AllocSlots", "ApplyLogitProcessorAndSample", "AsType", "B2_ASSERT", "B2_ID_EQUALS", "B2_IS_NON_NULL", "B2_IS_NULL", "Base64Encode", "BatchDecode", "BatchDecodeToLastHidden", "BatchPrefill", "BatchPrefillTo...
query: func (r *LightRenderer) closePlatform() method of LightRenderer
passage: func (r *LightRenderer) closePlatform() { windows.SetConsoleMode(windows.Handle(r.outHandle), r.origStateOutput) windows.SetConsoleMode(windows.Handle(r.inHandle), r.origStateInput) }
go
closePlatform
lib/helpers/fzf/src/tui/light_windows.go
ttscoff/doing
stack-cqs-index
[ "Close" ]
[ "Close", "Handle", "SetConsoleMode" ]
query: protected onUpdate(deltaTime: number): void method of Renderable
passage: protected onUpdate(deltaTime: number): void { // Default implementation: do nothing // Override this method to provide custom rendering }
typescript
onUpdate
packages/core/src/Renderable.ts
anomalyco/opentui
stack-cqs-index
[ "AddForeignKeysToAttachmentsTable", "AddForeignKeysToBranchesTable", "AddForeignKeysToCommentsTable", "AddForeignKeysToCommitFilePhpcsTable", "AddForeignKeysToCommitFilesTable", "AddForeignKeysToCommitsTable", "AddForeignKeysToFavoritesTable", "AddForeignKeysToIssuesHasUsersTable", "AddForeignKeysTo...
[ "Component", "CreateGameReducer", "DiscoveryResult", "GcRequest", "Intent", "IsLongFormMove", "Js", "Log", "PendingIntent", "RemoteViews", "Request", "String", "Utils", "_compileArgs", "_fusionUpdate", "_getArgs", "abs", "add", "addAll", "addImmediately" ]
query: public final PendingIntentData createFromParcel(Parcel source) method createFromParcel
passage: public final PendingIntentData createFromParcel(Parcel source) { return new PendingIntentData(source); }
java
createFromParcel
VirtualApp/lib/src/main/java/com/lody/virtual/remote/PendingIntentData.java
android-hacker/VirtualXposed
stack-cqs-index
[ "ActivityController", "AppHelper", "ConvertUtils", "IJobScheduler", "Proxy", "Stub", "TestCls", "TestIssue13a", "VPackageManagerService", "bytes2Parcelable", "generatePackageInfo", "getAppList", "getPendingJob", "onTransact", "replaceShellCommand", "test" ]
[ "AppInfoLite", "AppTaskInfo", "BadgerInfo", "DisplayMetricsInfo", "Entry", "ExternalAdaptInfo", "IllegalArgumentException", "InstallResult", "InstalledAppInfo", "IntentInfo", "JobConfig", "JobId", "LogcatReaderLoader", "MPPointF", "PackageSetting", "PackageUserState", "ParcelableTest...
query: protected get firstEl(): HTMLElement method of NzCarouselBaseStrategy
passage: protected get firstEl(): HTMLElement { return this.contents[0].el; }
typescript
firstEl
components/carousel/strategies/base-strategy.ts
NG-ZORRO/ng-zorro-antd
stack-cqs-index
[]
[]
query: HSET Benchmark Tests func BenchmarkHSET(b *testing.B) function BenchmarkHSET
passage: func BenchmarkHSET(b *testing.B) { ctx := context.Background() // Setup Redis client rdb := redis.NewClient(&redis.Options{ Addr: "localhost:6379", DB: 0, }) defer rdb.Close() // Test connection if err := rdb.Ping(ctx).Err(); err != nil { b.Skipf("Redis server not available: %v", err) } // ...
go
BenchmarkHSET
hset_benchmark_test.go
redis/go-redis
stack-cqs-index
[]
[ "Background", "Close", "Err", "FlushDB", "NewClient", "Ping", "Run", "Skipf", "Sprintf", "benchmarkHSETOperations" ]
query: FTPServer#closePassive std::string FTPServer::getCurrentDirectory() method of FTPServer
passage: std::string FTPServer::getCurrentDirectory() { char maxDirectory[256]; std::string currentDirectory = getcwd(maxDirectory, sizeof(maxDirectory)); return currentDirectory; }
cpp
getCurrentDirectory
cpp_utils/FTPServer.cpp
nkolban/esp32-snippets
stack-cqs-index
[ "CustomFileChooser", "MainController", "NokogiriEntityResolver", "ParserContext", "XmlSchema", "createProjectLanguageService", "createSchemaInstance", "emitDtsFiles", "extractExports", "getExports", "getVueCompilerOptions", "main", "onDir", "onOpen", "onPWD", "onSaveAllSources", "onS...
[ "_wgetcwd", "convertUtf8ToWString", "free", "getcwd" ]
query: fn drop(&mut self) method of WindowHandle
passage: fn drop(&mut self) { unsafe { tracing::debug!("Destroying window handle..."); // Post a message to the window to tell it to exit PostMessageW(self.hwnd, WM_CLOSE, 0, 0); } }
rust
drop
backend/tauri/src/shutdown_hook.rs
libnyanpasu/clash-nyanpasu
stack-cqs-index
[ "APODContentProvider", "APODSQLiteOpenHelper", "AST", "AVLNode", "AccountsController", "ActionCable", "ActiveJob", "ActiveScaffold", "AdapterRequirements", "Adapters", "Add", "AddAffiliatesTable", "AddDatabaseServersTable", "AddDatabasesTables", "AddPackSupport", "AddQuestionAnswersTab...
[ "$", "$showError", "AddInt64", "Borrowed", "CFRelease", "CancelOnDrop", "CloseHandle", "CoUninitialize", "DLOG", "Debugf", "Deferred", "Delete", "DestroyAcceleratorTable", "DestroyIcon", "DestroyMenu", "DestroyWindow", "Dr", "Drop", "DropCommand", "DropTable" ]
query: function addDropdownItem(dropdown: HTMLElement, title: string, filterCategory: string, filterValue: string): void function addDropdownItem
passage: function addDropdownItem(dropdown: HTMLElement, title: string, filterCategory: string, filterValue: string): void { const filterQuery = `${filterCategory}:${filterValue}`; const searchQuery = SearchQuery.from(location); const isSelected = searchQuery.includes(filterQuery); const filtersToRemove = searchQ...
typescript
addDropdownItem
source/features/pr-filters.tsx
refined-github/refined-github
stack-cqs-index
[ "addChecksFilter", "addDraftFilter" ]
[ "append", "filter", "from", "getQueryParts", "includes", "remove", "startsWith" ]
query: async fn test_non_root_before_and_after() -> Result<(), Error> function test_non_root_before_and_after
passage: async fn test _ non _ root _ before _ and _ after ( ) - > result < ( ), error > { / / create a unique tempdir for this test let temp _ dir = tempdir : : new ( ). unwrap ( ) ; let db _ path = temp _ dir. path ( ). join ( " tasks. db " ) ; let script1 = create _ basic _ script ( " 1 " )? ; let script2 = create _...
rust
test_non_root_before_and_after
devenv-tasks/src/tests/mod.rs
cachix/devenv
stack-cqs-index
[]
[ "Ok", "as_slice", "assert_matches", "build", "builder", "create_basic_script", "inspect_tasks", "join", "json", "path", "run", "try_from", "unwrap", "with_db_path" ]
query: async function appendLeaderNotificationDeferredEvent(params) function appendLeaderNotificationDeferredEvent
passage: async function appendLeaderNotificationDeferredEvent(params) { const eventsDir = join(params.stateDir, 'team', params.teamName, 'events'); const eventsPath = join(eventsDir, 'events.ndjson'); const event = { event_id: `leader-deferred-${Date.now()}-${Math.random().toString(16).slice(2, 8)}`...
javascript
appendLeaderNotificationDeferredEvent
dist/hooks/team-dispatch-hook.js
Yeachan-Heo/oh-my-claudecode
stack-cqs-index
[ "drainPendingTeamDispatch" ]
[ "appendFile", "catch", "join", "mkdir", "now", "random", "slice", "stringify" ]
query: function RootLayout( function RootLayout
passage: function RootLayout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <title>CJS Violation Fixture</title> </head> <body>{children}</body> </html> ); }
typescript
RootLayout
tests/fixtures/app-cjs-violation/app/layout.tsx
cloudflare/vinext
stack-cqs-index
[]
[ "Number", "addEventListener", "changeLanguage", "cookieToInitialState", "cookies", "createClient", "createElement", "createServerClient", "dehydrate", "detectLocaleServer", "filter", "findMany", "get", "getConfig", "getDictionary", "getFullYear", "getPageMap", "getServerUrl", "ge...
query: static createResponse<ParsedT>( client: OpenAI, params: ResponseStreamParams, options?: RequestOptions, ): ResponseStream<ParsedT> method of ResponseStream
passage: static createResponse<ParsedT>( client: OpenAI, params: ResponseStreamParams, options?: RequestOptions, ): ResponseStream<ParsedT> { const runner = new ResponseStream<ParsedT>(params as ResponseCreateParamsStreaming); runner._run(() => runner._createOrRetrieveResponse(client, params...
typescript
createResponse
src/lib/responses/ResponseStream.ts
openai/openai-node
stack-cqs-index
[ "AbstractHttpProvider", "AccessTokenControllerTest", "App", "AppFactoryTest", "AppTest", "ApproveAuthorizationControllerTest", "AsyncOnSuccessNoExceptionTest", "AsyncOnSuccessTest", "AuthorizationControllerTest", "Block", "Body", "BodyParsingMiddlewareTest", "CallableTest", "ChildComponent...
[ "ApiResponse", "Boolean", "Cookie", "DefaultFullHttpResponse", "DefaultHttpResponse", "EmptyResponse", "FormatFactory", "FulfilledPromise", "ImplicitOptionsMiddleware", "PSR7ObjectProvider", "Repeat", "RequestException", "Response", "SimpleHttpResponse", "_createOrRetrieveResponse", "_...
query: ( context: SetupWorkerInternalContext, ): StartHandler => function createStartHandler
passage: 5000, ) / / warn the user when loading the page that lies outside / / of the worker ' s scope. validateworkerscope ( registration, context. startoptions ) return registration } const workerregistration = startworkerinstance ( ). then ( async ( registration ) = > { const pendinginstance = registration. installi...
typescript
createStartHandler
src/browser/setupWorker/start/createStartHandler.ts
mswjs/msw
stack-cqs-index
[ "SetupWorkerApi", "start" ]
[ "addEventListener", "catch", "checkWorkerIntegrity", "clearInterval", "createRequestListener", "createResponseListener", "enableMocking", "error", "formatMessage", "getWorkerInstance", "on", "postMessage", "removeAllListeners", "resolve", "setInterval", "startWorkerInstance", "then",...
query: repairUnclosedArgValues inserts missing </arg_value> closing tags. func repairUnclosedArgValues(s string) string function repairUnclosedArgValues
passage: func repairUnclosedArgValues(s string) string { var result strings.Builder for { openIdx := strings.Index(s, "<arg_value>") if openIdx == -1 { result.WriteString(s) break } afterOpen := openIdx + len("<arg_value>") closeIdx := strings.Index(s[afterOpen:], "</arg_value>") nextKeyIdx := strin...
go
repairUnclosedArgValues
x/models/glm4_moe_lite/parser.go
ollama/ollama
stack-cqs-index
[ "parseToolCall" ]
[ "Index", "String", "WriteString", "len" ]
query: pub fn new(filepath: String, cache_policy: CachePolicy) -> Result<Self> constructor of Searcher
passage: pub fn new(filepath: String, cache_policy: CachePolicy) -> Result<Self> { let mut file = File::open(Path::new(&filepath))?; let mut buf = [0; HEADER_INFO_LENGTH]; file.read_exact(&mut buf)?; let header = Header::try_from(&buf)?; debug!(?header, "Load xdb file with heade...
rust
new
binding/rust/ip2region/src/searcher.rs
lionsoul2014/ip2region
stack-cqs-index
[ "\"V2\" Command-Line Interface", "10.1 结构体定义", "10.2.1 结构体工厂", "10.2.2 map 和 struct vs new() 和 make()", "16.0 常见的陷阱与错误", "6.5 内置函数", "7.1.1 概念", "7.2.4 new() 和 make() 的区别", "7.2.6 bytes 包", "8.1.1 概念", "Added", "AlertDialog", "Column", "Constructor Patterns", "Dialog", "Enums with T::E...
[ "ADEPTError", "AES", "AES_KEY", "AES_set_decrypt_key", "AES_set_encrypt_key", "APIRoute", "ARC4", "ARC4Cipher", "Absolute", "AccelHandle", "AccessField0", "Accessibility", "AccountId", "ActionConfigDto", "ActionDto", "ActionGroupDto", "ActionGroups", "ActorWaitItem", "AddPanel", ...
query: fn path_validation( #[values("cubic", "bbr2_gcongestion")] cc_algorithm_name: &str, ) function path_validation
passage: fn path _ validation ( # [ values ( " cubic ", " bbr2 _ gcongestion " ) ] cc _ algorithm _ name : & str, ) { let mut config = config : : new ( protocol _ version ). unwrap ( ) ; assert _ eq! ( config. set _ cc _ algorithm _ name ( cc _ algorithm _ name ), ok ( ( ) ) ) ; config. load _ cert _ chain _ from _ pem...
rust
path_validation
quiche/src/tests.rs
cloudflare/quiche
stack-cqs-index
[]
[ "assert_eq", "create_cid_and_reset_token", "load_cert_chain_from_pem_file", "load_priv_key_from_pem_file", "parse", "server_addr", "set_active_connection_id_limit", "set_application_protos", "unwrap", "verify_peer", "with_config" ]
query: public TcpServerConfig setHost(String host) method of TcpServerConfig
passage: public TcpServerConfig setHost(String host) { this.host = host; return this; }
java
setHost
vertx-core/src/main/java/io/vertx/core/net/TcpServerConfig.java
eclipse-vertx/vert.x
stack-cqs-index
[ "AMQPConnectionConfigTest", "AbstractConnectionTest", "AbstractTaskInstanceFactory", "AbstractTaskStateAction", "Adb4pgUtil", "AdminRouteGenerator", "AdsClientProxy", "AlertPluginInstanceServiceTest", "AndroidDocumentProvider", "AnimateRunner", "AzureSQLDataSourceProcessor", "BackupFormat", ...
[ "Client", "Emit", "ID", "Store", "addDefaults", "addRequirements", "boolean", "empty", "extractInlineDefaultsAndRequirements", "filterHost", "mqtt_client_set_host", "mutationTree", "requireNonNull", "rtrim", "setHost", "strtolower", "throwIfNot", "throwIfNotNull", "throwIfNull", ...
query: async def rewind() -> None function rewind
passage: async def rewind() -> None: nonlocal rewinds rewinds += 1
python
rewind
tests/test_model_retry.py
openai/openai-agents-python
stack-cqs-index
[ "ARGFTest", "ASVAttachable", "AbstractBox", "AbstractBoxParser", "AbstractCsv", "AbstractCursor", "AbstractDataBase", "AbstractDescriptorBox", "AbstractElasticCursor", "AbstractExporter", "AbstractImporter", "AbstractRequest", "ActionController", "Actions", "ActiveJobTest", "ActiveReco...
[ "AssertionError", "BadMethodCallException", "CDbException", "Err", "Exception", "ForceRewindSequence", "IOException", "NSRange", "Ok", "RuntimeException", "Undo-based Rewind", "advance", "asArray", "assert", "assert_eq", "batchDeleteAndThenUpdate", "batchDeletePoi", "buffer", "bu...
query: func (d *Driver) Greet(name string) (string, error) method of Driver
passage: func (d *Driver) Greet(name string) (string, error) { client, err := d.getClient() if err != nil { return "", err } greeting, err := client.Greet(context.Background(), &GreetRequest{ Name: name, }) if err != nil { return "", err } return greeting.Message, nil }
go
Greet
scaling-acceptance-tests.md
quii/learn-go-with-tests
stack-cqs-index
[ "A slight diversion in to the \"adapter\" design pattern", "App", "Main", "MyGreeterHandler", "Process", "Program", "TestGreet", "handler", "main", "process" ]
[ "Done", "Err", "Fprintf", "Greeting", "HelloReq", "HelloResp", "HiReq", "HiResp", "Placeholder", "Printf", "Sprintf", "equal", "getState", "group", "terminate", "test" ]
query: fn path_validation( #[values("cubic", "bbr2_gcongestion")] cc_algorithm_name: &str, ) function path_validation
passage: _ and _ reset _ token ( 16 ) ; assert _ eq! ( pipe. client. new _ scid ( & c _ cid, c _ reset _ token, true ), ok ( 1 ) ) ; let ( s _ cid, s _ reset _ token ) = test _ utils : : create _ cid _ and _ reset _ token ( 16 ) ; assert _ eq! ( pipe. server. new _ scid ( & s _ cid, s _ reset _ token, true ), ok ( 1 ) ...
rust
path_validation
quiche/src/tests.rs
cloudflare/quiche
stack-cqs-index
[]
[ "assert_eq", "create_cid_and_reset_token", "load_cert_chain_from_pem_file", "load_priv_key_from_pem_file", "parse", "server_addr", "set_active_connection_id_limit", "set_application_protos", "unwrap", "verify_peer", "with_config" ]
query: """Check if AddTextLetterByLetter works for non-empty text.""" def test_non_empty_text_creation() function test_non_empty_text_creation
passage: def test_non_empty_text_creation(): """Check if AddTextLetterByLetter works for non-empty text.""" s = Text("Hello") anim = AddTextLetterByLetter(s) assert anim.mobject.text == "Hello"
python
test_non_empty_text_creation
tests/module/animation/test_creation.py
ManimCommunity/manim
stack-cqs-index
[]
[ "AddTextLetterByLetter", "Text" ]
query: function t(t,e,n) function t
passage: function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=yt(),this._mapName=t,this._specialAreas=n,this._geoJSON=U(i=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}
javascript
t
server/vditor/js/echarts/echarts.min.js
blinkospace/blinko
stack-cqs-index
[ "$", "$$t", "$1", "$A", "$T", "$_", "$a", "$c", "$de", "$e", "$i", "$ie", "$k", "$l", "$le", "$n", "$o", "$r", "$re", "$s" ]
[ "$", "$$keys", "$CTAGS", "$_Cn", "$_Dt", "$apply", "$applyAsync", "$broadcast", "$d", "$destroy", "$digest", "$eval", "$i", "$isEmpty", "$n", "$new", "$o", "$observe", "$on", "$r" ]
query: private final Map<String, Artist> artists = new HashMap<>(); property artists
passage: private final Map<String, Artist> artists = new HashMap<>();
java
artists
solutions/java/src/musicstreamingservice/MusicStreamingSystem.java
ashishps1/awesome-low-level-design
stack-cqs-index
[ "AlbumTest", "ArtistTest", "ArtistsControllerTest", "AttachCoverImageFromDiscogsJobTest", "DanbooruExtractor", "E621Extractor", "SongTest", "UserTest", "artists", "format", "formatCoverList", "items_artists", "new", "on_command" ]
[ "Some", "artists", "as_listitem", "clone", "collect", "filter", "flatMap", "get", "iter", "join", "len", "map", "nil?", "parse_int", "parse_query", "request_json", "run", "select", "songs", "sort" ]
query: function n() function n
passage: ##s, this. regional [ " " ] ), this. regional. en = t. extend (! 0, { }, this. regional [ " " ] ), this. regional [ " en - us " ] = t. extend (! 0, { }, this. regional. en ), this. dpdiv = s ( t ( " < div id = ' " + this. _ maindivid + " ' class = ' ui - datepicker ui - widget ui - widget - content ui - helper...
javascript
n
dist/main.js
electerious/Lychee
stack-cqs-index
[ "$", "$S", "$U", "$_", "$a", "$e", "$f", "$h", "$ie", "$l", "$le", "$n", "$o", "$p", "$r", "$re", "$s", "$t", "$vocabulary_$vocabulary", "$z" ]
[ "$", "$$addScopeClass", "$$addScopeInfo", "$$completeOutstandingRequest", "$$incOutstandingRequestCount", "$$postDigest", "$_Cn", "$_Dt", "$a", "$apply", "$applyAsync", "$c", "$derived", "$digest", "$doCheck", "$e", "$eval", "$isEmpty", "$l", "$new" ]
query: function e(e) function e
passage: function e(e){this.attributes=void 0,this.attributes=e||{}}
javascript
e
webui/vendor/katex/katex.min.js
agent0ai/agent-zero
stack-cqs-index
[ "$", "$T", "$W", "$a", "$e", "$f", "$g", "$h", "$i", "$n", "$o", "$r", "$s", "$t", "$u", "$x", "A", "A2", "ABridgeService", "AI" ]
[ "$", "$$annotate", "$$postDigest", "$$unwrapTrustedValue", "$_", "$addObserver", "$addResizeObserver", "$apply", "$applyAsync", "$b", "$broadcast", "$destroy", "$digest", "$e", "$emit", "$eval", "$evalAsync", "$f", "$get", "$i" ]
query: def command_check(sock, command_payload, expected_response) function command_check
passage: def command_check(sock, command_payload, expected_response): command_packet = mosq_test.gen_publish(topic="$CONTROL/broker/v1", qos=0, payload=json.dumps(command_payload)) sock.send(command_packet) response = json.loads(mosq_test.read_publish(sock)) if response != expected_response: pri...
python
command_check
test/broker/17-control-list-listeners.py
eclipse-mosquitto/mosquitto
stack-cqs-index
[ "check_details" ]
[ "ValueError", "dumps", "gen_publish", "loads", "print", "read_publish", "send" ]
query: Create a new TaskCache with the given cache directory. pub async fn new(cache_dir: &Path) -> CacheResult<Self> constructor of TaskCache
passage: pub async fn new(cache_dir: &Path) -> CacheResult<Self> { let db_path = cache_dir.join("tasks.db"); Self::with_db_path(db_path).await }
rust
new
devenv-tasks/src/task_cache.rs
cachix/devenv
stack-cqs-index
[ "\"V2\" Command-Line Interface", "10.1 结构体定义", "10.2.1 结构体工厂", "10.2.2 map 和 struct vs new() 和 make()", "16.0 常见的陷阱与错误", "6.5 内置函数", "7.1.1 概念", "7.2.4 new() 和 make() 的区别", "7.2.6 bytes 包", "8.1.1 概念", "Added", "AlertDialog", "Column", "Constructor Patterns", "Dialog", "Enums with T::E...
[ "ADEPTError", "AES", "AES_KEY", "AES_set_decrypt_key", "AES_set_encrypt_key", "APIRoute", "ARC4", "ARC4Cipher", "Absolute", "AccelHandle", "AccessField0", "Accessibility", "AccountId", "ActionConfigDto", "ActionDto", "ActionGroupDto", "ActionGroups", "ActorWaitItem", "AddPanel", ...
query: @hide */ @Override public Drawable getDrawableForDensity(int id, int density) throws NotFoundException method of XResources
passage: @Override public Drawable getDrawableForDensity(int id, int density) throws NotFoundException { try { if (incrementMethodDepth("getDrawableForDensity") == 1) { Object replacement = getReplacement(id); if (replacement instanceof DrawableLoader) { try { Drawable result = ((DrawableLoader...
java
getDrawableForDensity
core/src/main/java/android/content/res/XResources.java
LSPosed/LSPosed
stack-cqs-index
[ "ResolverActivity", "XResources", "getDrawableForDensity", "getIcon" ]
[ "ColorDrawable", "decrementMethodDepth", "getDrawableForDensity", "getId", "getReplacement", "getResources", "incrementMethodDepth", "log", "newDrawableForDensity" ]
query: createContext(parentContext?: EggRuntimeContext): EggRuntimeContext method of EventContextFactory
passage: createContext(parentContext?: EggRuntimeContext): EggRuntimeContext { return this.creator(parentContext); }
typescript
createContext
tegg/core/eventbus-runtime/src/EventContextFactory.ts
eggjs/egg
stack-cqs-index
[ "**cloneElement:**", "AH", "APIContext", "APIWrapperContext", "AT", "AbstractVisitorTestCase", "AccentColorContext", "AccessFormThemeContext", "AccordionContext", "AccordionItemContext", "AccordionRootContext", "ActionContext", "ActionParamsContext", "ActiveChatContext", "ActiveTypeRefCo...
[ "AIConfigBuilder", "AnnotationConfigApplicationContext", "ApplicationProtocolConfig", "Co", "ConstraintViolationList", "Context", "ContextImpl", "DependencyContext", "EAGLContext", "EventExecutor", "EventLoopExecutor", "ExecutionContext", "FileOccurrence", "FilesCollection", "IdentityTra...
query: public function testKeyboardMethods(): void method of KeyboardTest
passage: public function testKeyboardMethods(): void { $keyboard_obj = new Keyboard([]); self::assertEmpty($keyboard_obj->getOneTimeKeyboard()); self::assertEmpty($keyboard_obj->getResizeKeyboard()); self::assertEmpty($keyboard_obj->getSelective()); $keyboard_obj->setOneTim...
php
testKeyboardMethods
tests/Unit/Entities/KeyboardTest.php
php-telegram-bot/core
stack-cqs-index
[]
[ "Keyboard", "assertEmpty", "assertFalse", "assertTrue", "getOneTimeKeyboard", "getResizeKeyboard", "getSelective", "setOneTimeKeyboard", "setResizeKeyboard", "setSelective" ]
query: virtual bool is_single_byte_encoding() const override final method of Utf32BeEncodingObject
passage: virtual bool is_single_byte_encoding() const override final { return false; }
cpp
is_single_byte_encoding
include/natalie/encoding/utf32be_encoding_object.hpp
natalie-lang/natalie
stack-cqs-index
[ "Natalie", "byte_index_to_char_index", "char_count", "char_index_to_byte_index", "encode", "ref_fast_range", "ref_fast_range_endless" ]
[]
query: go test -run Test_App_HandlersCount func Test_App_HandlersCount(t *testing.T) function Test_App_HandlersCount
passage: func Test_App_HandlersCount(t *testing.T) { t.Parallel() app := New() app.Use("/path0", testEmptyHandler) app.Get("/path2", testEmptyHandler) app.Post("/path3", testEmptyHandler) app.startupProcess() count := app.HandlersCount() require.Equal(t, uint32(4), count) }
go
Test_App_HandlersCount
app_test.go
gofiber/fiber
stack-cqs-index
[]
[ "Equal", "Get", "HandlersCount", "New", "Parallel", "Post", "Use", "startupProcess", "uint32" ]
query: LinkedBlockingQueue4Util(boolean isAddSubThreadFirstThenAddQueue) constructor of LinkedBlockingQueue4Util
passage: LinkedBlockingQueue4Util(boolean isAddSubThreadFirstThenAddQueue) { super(); if (isAddSubThreadFirstThenAddQueue) { mCapacity = 0; } }
java
LinkedBlockingQueue4Util
lib/utilcode/src/main/java/com/blankj/utilcode/util/ThreadUtils.java
Blankj/AndroidUtilCode
stack-cqs-index
[ "ThreadPoolExecutor4Util", "ThreadUtils", "createPool" ]
[ "getMaximumPoolSize", "getPoolSize", "offer", "size" ]
query: func TestManager_MaxRetryCredentials_LimitsCrossCredentialRetries(t *testing.T) function TestManager_MaxRetryCredentials_LimitsCrossCredentialRetries
passage: func testmanager _ maxretrycredentials _ limitscrosscredentialretries ( t * testing. t ) { request : = cliproxyexecutor. request { model : " test - model " } testcases : = [ ] struct { name string invoke func ( * manager ) error } { { name : " execute ", invoke : func ( m * manager ) error { _, errexecute : = ...
go
TestManager_MaxRetryCredentials_LimitsCrossCredentialRetries
sdk/cliproxy/auth/conductor_overrides_test.go
router-for-me/CLIProxyAPI
stack-cqs-index
[]
[ "Background", "Calls", "Execute", "ExecuteCount", "ExecuteStream", "Fatalf", "Run", "invoke", "newCredentialRetryLimitTestManager" ]
query: private final Map<String, PromptSpecification> prompts; property prompts
passage: private final Map<String, PromptSpecification> prompts;
java
prompts
arthas-mcp-server/src/main/java/com/taobao/arthas/mcp/server/protocol/server/McpStatelessServerFeatures.java
alibaba/arthas
stack-cqs-index
[ "Agent Configuration", "ArthasMcpServer", "BackgroundRemoving", "CannyText2Image", "Core Components", "Core MCP Concepts", "Debugging tools overview", "DepthText2Image", "HedText2Image", "Image2Canny", "Image2Depth", "Image2Hed", "Image2Line", "Image2Normal", "Image2Pose", "Image2Scrib...
[ "Agent Instructions", "Basic Usage", "Listing Prompts", "Prompts", "User Input Prompts", "User Interaction Model", "What Are Prompts?", "`Prompts`", "char_length", "default", "defaultConnectionString", "getName", "getPrompt", "getState", "grey", "indexOf", "integer", "notNull", "...
query: def expect_deprecated(message = %r{deprecated}, &block) function expect_deprecated
passage: def expect_deprecated(message = %r{deprecated}, &block) expect(Datagrid::Utils.deprecator).to receive(:warn).with(message) block.call end
ruby
expect_deprecated
spec/spec_helper.rb
bogdan/datagrid
stack-cqs-index
[]
[ "call", "deprecator", "expect", "receive", "to", "with" ]
query: public function GetResult_code() method of WxPayReport
passage: public function GetResult_code() { return $this->values['result_code']; }
php
GetResult_code
lib/wxpay/lib/WxPay.Data.php
fecshop/yii2_fecshop
stack-cqs-index
[]
[]
query: fn execute_remote_command( path: &[String], leaf: &ArgMatches, args: &[String], context: &CommandContext, backend: &mut dyn Backend, out: &mut dyn Write, err: &mut dyn Write, ) -> Result<i32, CommandE function execute_remote_command
passage: ( ), v2 _ user _ fields. to _ string ( ) ), ( " expansions ". to _ string ( ), v2 _ user _ expansions. to _ string ( ) ), ( " tweet. fields ". to _ string ( ), v2 _ tweet _ fields. to _ string ( ) ), ], )? ; print _ users ( & extract _ users ( & response ), leaf, out ) ; ok ( 0 ) } [ single ] if single = = " w...
rust
execute_remote_command
src/runner.rs
sferik/x-cli
stack-cqs-index
[ "execute_remote_with_profile_backend", "run_with_optional_backend" ]
[ "Ok", "Some", "active_profile", "active_profile_name_or_unknown", "and_then", "any", "arg_or_active_name", "as_str", "authenticated_user_id", "clone", "cloned", "collect", "collect_collection_entries", "collect_owned_lists_paginated", "collect_tweets_paginated", "collect_user_search_pa...
query: bool HashObject::eq(Env *env, Value other_value, SymbolObject *method_name) method of HashObject
passage: bool HashObject::eq(Env *env, Value other_value, SymbolObject *method_name) { auto lambda = [&](bool is_recursive) -> bool { if (!other_value.is_hash()) return false; HashObject *other = other_value.as_hash(); if (size() != other->size()) return false; ...
cpp
eq
src/hash_object.cpp
natalie-lang/natalie
stack-cqs-index
[ "$", "$CompileProvider", "$e", "$getResult", "$h", "$replyTemplate", "$t", "$template", "@search", "A", "AASM", "AHB2Wishbone", "AHBFlash", "AXI2AXILite", "AXIArbiter", "AXIBurst2Beat", "AXIDecoder", "AXIDownConverter", "AXILite2AXI", "AXILite2Wishbone" ]
[ "Bool", "Comparable", "Comparison", "Complex", "Eq", "Equals", "EqualsWithDelta", "Error", "Errorf", "Float", "Int", "Interface", "IsValid", "Ja", "Join", "LongArrayQueryCondition", "LongQueryCondition", "Nr", "Ns", "Ok" ]
query: private List<String> systemDatabases = Arrays.asList("SAMPLES", "SECURITY"); property systemDatabases
passage: private List<String> systemDatabases = Arrays.asList("SAMPLES", "SECURITY");
java
systemDatabases
chat2db-server/chat2db-plugins/chat2db-kingbase/src/main/java/ai/chat2db/plugin/kingbase/KingBaseMetaData.java
CodePhiliaX/Chat2DB
stack-cqs-index
[]
[ "asList" ]
query: async fn get_keys_async( &self, _max_result_bytes: usize, ) -> ( tokio::sync::mpsc::Receiver<String>, tokio::sync::oneshot::Receiver<Result<(), v3::Error>>, ) method of MockStore
passage: async fn get_keys_async( &self, _max_result_bytes: usize, ) -> ( tokio::sync::mpsc::Receiver<String>, tokio::sync::oneshot::Receiver<Result<(), v3::Error>>, ) { todo!() }
rust
get_keys_async
crates/factor-key-value/tests/factor_test.rs
spinframework/spin
stack-cqs-index
[ "get_keys" ]
[ "Err", "Ok", "Other", "as_str", "blocking_send", "channel", "clone", "format", "get_keys_query", "into_paginator", "iter", "len", "lock", "map", "map_err", "next", "next_item", "prepare_cached", "projection_expression", "query" ]
query: std::shared_ptr<Value> value(T& t) function value
passage: std::shared_ptr<Value> value(T& t) { return std::make_shared<values::standard_value<T>>(&t); }
cpp
value
include/cxxopts.hpp
madMAx43v3r/chia-plotter
stack-cqs-index
[ "$UrlMatcherFactory", "$_", "$i", "$n", "A", "AASM", "ADAPTER", "ADTFractionTest", "APPNP", "AS", "AST", "AST__Node__TypeApplicationTest", "ATOMIC_BOOLEAN", "ATOMIC_INTEGER", "ATOMIC_INTEGER_ARRAY", "AbstractAdminUiApplicationTest", "AbstractColor", "AbstractColorChannel", "Abstr...
[ "$derived", "$e", "$eval", "A", "AbstractModule", "AnnotationHandler", "ArrayValueContext", "Assisted", "At", "Blue", "Bt", "CREATE_MEM_FUNC_SYMBOL_ENTRY", "ChoiceValue", "CodeBlock", "ConfigChangeWatcher", "ConfigurationError", "Contains", "Convert", "Ct", "D" ]
query: TEST(STDIO_TEST, seek_tell_family_smoke) constructor TEST
passage: ... as does our fpos _ t from 8192. assert _ eq ( 0, fsetpos ( fp, & eight _ k _ pos ) ) ; assertfileoffsetat ( fp, 8192 ) ; / / do fseeko and fseeko64 work too? assert _ eq ( 0, fseeko ( fp, 1234, seek _ set ) ) ; assertfileoffsetat ( fp, 1234 ) ; assert _ eq ( 0, fseeko64 ( fp, 5678, seek _ set ) ) ; assertf...
cpp
TEST
tests/tst-stdio.cc
cloudius-systems/osv
stack-cqs-index
[ "AcquireBuffer", "BasicTestAllocatePages", "BenchmarkAlgorithmsCase", "CreateAllocation", "CreateBuffer", "CreateImage", "CustomCpuFree", "Defragment", "Main2", "MainTest", "ManuallyTestLinearAllocator", "PerformCustomMainTest", "PerformMainTests", "ProcessDefragmentationPass", "Recreate...
[ "![Coverage Status", "![Docker", "![Known Vulnerabilities", "![NPM", "ACQUIRE", "ADD", "ADD_FAILURE", "ALIGN_BACKWARD", "ALLOCATE_FILE_ERROR", "APPEND", "APPEND_EXPECT", "APPEND_MANY", "APPEND_SUBMIT", "APPEND_WAIT", "APPLY_ADD_ONE", "ARRAY", "ARRAY_SIZE", "ASSERT", "ASSERT_CONTE...
query: pub fn high(mut self, high: impl Fn(&T) -> Y + 'static) -> Self method of CandlestickChart
passage: pub fn high(mut self, high: impl Fn(&T) -> Y + 'static) -> Self { self.high = Some(Rc::new(high)); self }
rust
high
crates/ui/src/chart/candlestick_chart.rs
longbridge/gpui-component
stack-cqs-index
[ "ArithmeticCoding", "ArithmeticCodingTest", "Gd", "PivotPoint1", "Tm", "VEBTree", "Vortex", "_DirectionalIndicator", "__init__", "compress", "compute_delta", "compute_left_endpoint_for_shorter_interval_case", "compute_right_endpoint_for_shorter_interval_case", "compute_round_up_for_shorter...
[ "Some", "assert_eq", "get_high", "otherwise" ]
query: (i,t)=> function Rl
passage: (i,t)=>{if(!i||!t.allowReinits&&Oi.isInited(i.NAME))return;Oi.add(i.NAME);const e=Il(i),s=(e==null?void 0:e.isToggler)||!1;if(Ll(i),e!=null&&e.advanced){e==null||e.advanced(i,e==null?void 0:e.selector);return}if(s){e==null||e.callback(i,e==null?void 0:e.selector);return}h.find(e==null?void 0:e.selector).forEac...
javascript
Rl
core/http/static/assets/tw-elements.js
mudler/LocalAI
stack-cqs-index
[ "$l", "Ai", "Ak", "Bl", "Cl", "EI", "Fl", "GE", "Gl", "Hl", "Kl", "Ll", "Ml", "Nl", "Ol", "Pd", "RM", "Rh", "Rl", "S_" ]
[ "$l", "A", "Al", "Be", "Bl", "Br", "Cf", "Cl", "Dp", "El", "Error", "F", "Fl", "Fp", "G", "GE", "Gl", "H", "Hi", "I" ]
query: func TestAgentRegistry_GetAgent_Normalize(t *testing.T) function TestAgentRegistry_GetAgent_Normalize
passage: func TestAgentRegistry_GetAgent_Normalize(t *testing.T) { cfg := testCfg([]config.AgentConfig{ {ID: "my-agent", Default: true}, }) registry := NewAgentRegistry(cfg, &mockRegistryProvider{}) agent, ok := registry.GetAgent("My-Agent") if !ok || agent == nil { t.Fatal("expected to find agent with normal...
go
TestAgentRegistry_GetAgent_Normalize
pkg/agent/registry_test.go
sipeed/picoclaw
stack-cqs-index
[]
[ "Errorf", "Fatal", "GetAgent", "NewAgentRegistry", "testCfg" ]
query: setMTU sets MTU on the interface by given name func setMTU(name string, mtu uint32) error function setMTU
passage: func setMTU(name string, mtu uint32) error { socket, err := unix.Socket(unix.AF_INET, unix.SOCK_DGRAM, 0) if err != nil { return err } defer unix.Close(socket) ifr := unix.IfreqMTU{MTU: int32(mtu)} copy(ifr.Name[:], name) return unix.IoctlSetIfreqMTU(socket, &ifr) }
go
setMTU
proxy/tun/tun_darwin.go
XTLS/Xray-core
stack-cqs-index
[ "Create", "New", "SetMTU", "begin", "setup" ]
[ "Close", "Command", "Debugf", "ESP_LOGD", "ESP_LOGE", "Errorf", "IoctlSetIfreqMTU", "Itoa", "LinkSetMTU", "Pointer", "Run", "SetMTU", "Socket", "String", "Syscall", "copy", "esp_ble_gatt_set_local_mtu", "int32", "uint32", "uintptr" ]
query: public function setApiVersion($apiVersion) method of AlipayMarketingCampaignCashListQueryRequest
passage: public function setApiVersion($apiVersion) { $this->apiVersion=$apiVersion; }
php
setApiVersion
lib/alipay/aop/request/AlipayMarketingCampaignCashListQueryRequest.php
fecshop/yii2_fecshop
stack-cqs-index
[ "AbstractExtensionTest", "CiliumFlowListener", "DefaultNotificationCenterTest", "DefaultSettingFetcherTest", "ExtensionCreateHandlerTest", "ExtensionDeleteHandlerTest", "ExtensionOperator", "ExtensionUpdateHandlerTest", "JacksonJson3Test", "JsonExtensionConverterTest", "JsonExtensionTest", "Re...
[ "TextNode", "TwitterOAuthException", "in_array", "set", "setNestedValue" ]
query: """Ensure masks are created correctly using the size keyword.""" def test_mask__size_kwarg(self) method of MaskTypeTest
passage: def test_mask__size_kwarg(self): """Ensure masks are created correctly using the size keyword.""" width, height = 73, 83 expected_size = (width, height) fill_counts = {True: width * height, False: 0} for fill, expected_count in fill_counts.items(): msg = f"f...
python
test_mask__size_kwarg
test/mask_test.py
pygame/pygame
stack-cqs-index
[]
[ "Mask", "assertEqual", "assertIsInstance", "count", "get_size", "items" ]
query: marshalCan returns a static function signature for the can function. func marshalCan(can function.Function) *FunctionSignature function marshalCan
passage: func marshalCan(can function.Function) *FunctionSignature { return &FunctionSignature{ Description: can.Description(), ReturnType: cty.Bool, Parameters: []*parameter{ { Name: can.Params()[0].Name, Description: can.Params()[0].Description, IsNullable: can.Params()[0].AllowNull, ...
go
marshalCan
internal/command/views/jsonfunction/function.go
opentofu/opentofu
stack-cqs-index
[ "Marshal" ]
[ "Description", "Params" ]
query: function encode_param(a) function encode_param
passage: ##0, 3623878657 : 0, 3892314113 : 33280, 4160749569 : 8421378 }, { " 0 " : 1074282512, 16777216 : 16384, 33554432 : 524288, 50331648 : 1074266128, 67108864 : 1073741840, 83886080 : 1074282496, 100663296 : 1073758208, 117440512 : 16, 134217728 : 540672, 150994944 : 1073758224, 167772160 : 1073741824, 184549376 ...
javascript
encode_param
akshare/air/outcrypto.js
akfamily/akshare
stack-cqs-index
[ "EventMachine", "HttpEncoding", "Middleware", "OAuth2", "encode", "encode_cookie", "encode_query", "update_uri!" ]
[ "DES", "Error", "MD5", "Ok", "_14", "_20", "_3", "_30", "_4", "_5", "_6", "_8", "_9", "abs", "apply", "call", "ceil", "charAt", "charCodeAt", "clamp" ]
query: """Asynchronous mock reward function that simulates API call.""" async def mock_async_reward_function( data_source function mock_async_reward_function
passage: async def mock_async_reward_function( data_source: str, solution_str: str, ground_truth: str, extra_info: dict, **kwargs ) -> float: """Asynchronous mock reward function that simulates API call.""" # Record API call for rate tracking await api_counter.record_call() # Simulate async API cal...
python
mock_async_reward_function
tests/experimental/reward_loop/test_rate_limited_reward_manager_on_cpu.py
verl-project/verl
stack-cqs-index
[]
[ "record_call", "sleep", "strip" ]
query: (content: object) => function debug
passage: (content: object) => { if (!logEnabled) { return; } fs.appendFile(logTarget, JSON.stringify(content) + "\n", (err) => { if (err != null) { throw err; } }); }
typescript
debug
src/utils/log.ts
microsoft/inshellisense
stack-cqs-index
[ "$process", "1. Logger", "A", "A1111Context", "A1z26", "ADBDevice", "ADBDialog", "AIAdapter", "AISDataStore", "AIService", "ALLanguageServer", "API", "APIRequest", "ASGResource", "ATAMetricItem", "AWS", "AWSBedrockLLM", "AWSCognitoProvider", "AbortRegistry", "AboutBlankWatchdog...
[ "AbstractInternalLogger", "AssertionError", "Audit", "Boolean", "Color", "Context", "Debug", "DebugValue", "Debugging PicoClaw", "Debugging and troubleshooting", "Depuração do PicoClaw", "DoKitReal", "Down", "Débogage de PicoClaw", "ELPP_INTERNAL_INFO", "ELPP_UNUSED", "ELPP_WRITE_LOG...
query: public async open(filePath: string) method of Dialogs
passage: public async open(filePath: string) { await electronMock.call(`/dialogs#open#${filePath}`); }
typescript
open
packages/app/test/libs/dialogs.ts
mockoon/mockoon
stack-cqs-index
[ "$f", "(1) 发起同步请求", "**cloneElement:**", "3.3.2 `std` 模块", "3.3.3 `os` 模块", "A", "A2AAgentCardResolverTest", "ABTestAnalyzer", "ACEBenchmark", "ACKTimer", "AES", "AESEncryptionTests", "AFLShowMapWorker", "AFMParser", "AIOSMTPActionTest", "AIRMapLocalTileProvider", "AIService", "AJA...
[ "$", "$derived", "$emit", "$nextTick", "AbstractID", "Account", "Append", "AppriseDiskIOError", "AppriseFileNotFound", "ArchiveIOException", "Args", "ArrayList", "As", "AtomicAzureBlobFile", "AtomicBoolean", "AtomicFtpFile", "AtomicGCSFile", "AtomicRemoteFileWriter", "AtomicS3Fil...
query: function createDummyClient (seatReservation: matchMaker.ISeatReservation, options: any = function createDummyClient
passage: function createDummyClient (seatReservation: matchMaker.ISeatReservation, options: any = {}) { let client = new WebSocketClient(seatReservation.sessionId); (client as any).options = options; return client; }
typescript
createDummyClient
bundles/colyseus/test/utils/index.ts
colyseus/colyseus
stack-cqs-index
[]
[]
query: function swapAfterEnd(target, fragment, settleInfo) function swapAfterEnd
passage: function swapAfterEnd(target, fragment, settleInfo) { return insertNodesBefore(parentElt(target), target.nextSibling, fragment, settleInfo) }
javascript
swapAfterEnd
dist/htmx.js
bigskysoftware/htmx
stack-cqs-index
[ "swapWithStyle" ]
[ "define", "insertNodesBefore", "parentElt" ]
query: def zcount(self, key, min_, max_) method of Redis
passage: def zcount(self, key, min_, max_): return len(self.zrangebyscore(key, min_, max_))
python
zcount
t/unit/backends/test_redis.py
celery/celery
stack-cqs-index
[ "Distributed", "Lint", "Redis", "RedisBackend", "RedisClusterProxy", "RedisJobRepository", "RedisOnlineTrackable", "RedisUtil", "RelayClusterProxy", "RelayProxy", "Sidekiq", "SidekiqUniqueJobs", "Sorted sets", "SortedSet", "SortedSets", "Testing", "User", "ZCOUNT_Test", "countJob...
[ "error", "getMessage", "getResource", "initializeLazyObject", "len", "node_for", "redis", "returnResource", "send_command", "zcount", "zrangebyscore" ]
query: public Criteria andSalePriceNewLessThanOrEqualTo(BigDecimal value) method of GeneratedCriteria
passage: public Criteria andSalePriceNewLessThanOrEqualTo(BigDecimal value) { addCriterion("sale_price_new <=", value, "salePriceNew"); return (Criteria) this; }
java
andSalePriceNewLessThanOrEqualTo
mall-mbg/src/main/java/com/macro/mall/model/PmsProductOperateLogExample.java
macrozheng/mall
stack-cqs-index
[]
[ "addCriterion" ]
query: function useSync() function useSync
passage: function useSync() { const [primitiveMetadata, setPrimitiveMetadata] = useAtom(primitiveMetadataAtom) const { logout, login } = useLogin() const toaster = useToast() useDebounce(async () => { const fn = async () => { try { await uploadMetadata(primitiveMetadata) } catch (e: any...
typescript
useSync
src/hooks/useSync.ts
ourongxing/newsnow
stack-cqs-index
[ "RootComponent" ]
[ "downloadMetadata", "fn", "logout", "preprocessMetadata", "setPrimitiveMetadata", "toaster", "uploadMetadata", "useAtom", "useDebounce", "useLogin", "useMount", "useToast" ]
query: Formats an error for user-facing display. fn format_error_for_display(error: &CommandError) -> String function format_error_for_display
passage: fn format_error_for_display(error: &CommandError) -> String { if let CommandError::Backend(BackendError::Http(message)) = error { // Strip leading "NNN: " prefix added by format_api_error if let Some(rest) = message .strip_prefix(|c: char| c.is_ascii_digit()) .and_th...
rust
format_error_for_display
src/runner.rs
sferik/x-cli
stack-cqs-index
[ "format_error_for_display_passes_through_non_http_errors", "format_error_for_display_strips_status_code_prefix" ]
[ "and_then", "is_ascii_digit", "strip_prefix", "to_string" ]
query: fn tag_fixed_size_array() function tag_fixed_size_array
passage: fn tag_fixed_size_array() { use crate::bytes::streaming::tag; fn test(i: &[u8]) -> IResult<&[u8], &[u8]> { tag(&[0x42][..])(i) } fn test2(i: &[u8]) -> IResult<&[u8], &[u8]> { tag(&[0x42][..])(i) } let input = [0x42, 0x00]; assert_eq!(test(&input), Ok((&b"\x00"[..], &b"\x42"[..]))); ass...
rust
tag_fixed_size_array
src/bytes/tests.rs
rust-bakery/nom
stack-cqs-index
[]
[ "assert_eq", "tag" ]
query: set current(v: T) function current
passage: set current(v: T) { if (v === current) return current = v setState(v) }
typescript
current
packages/studio/src/utils/useRefAndState.ts
theatre-js/theatre
stack-cqs-index
[ "A", "AMQP", "AMQPAbstractCollection", "ANSI", "API", "APIKeysTest", "AbsoluteValueTest", "AbstrHttpConnectionExpiryHandler", "Abstract", "AbstractBrowser", "AbstractBrowserTest", "AbstractChoiceListTestCase", "AbstractComparatorTestCase", "AbstractConsumerTest", "AbstractCursor", "Abs...
[ "AsyncIOMainLoop", "AuthorElement", "ColorDrawable", "ComponentElement", "DoKitConnectManager", "Err", "ExtElement", "FileResource", "Frame", "GetTickCount", "Host", "Js", "LogOptions", "LogicException", "MetadataBag", "Ok", "OnClickListener", "Other", "PostFactory", "Process" ...
query: pub fn event(&self, event: &Event<'_>) method of Dispatch
passage: pub fn event(&self, event: &Event<'_>) { let subscriber = self.subscriber(); if subscriber.event_enabled(event) { subscriber.event(event); } }
rust
event
tracing-core/src/dispatcher.rs
tokio-rs/tracing
stack-cqs-index
[ "A", "AIRMap", "AbstractDatabase", "AbstractDriver", "AccountController", "ActiveModelTest", "ActiveRecord", "ActiveRecordCallback", "ActiveRecordTest", "Activities", "ActivitiesHelper", "ActivityLogFeed", "AddResourceToGroup", "AdminLte", "AdvanceExamplesTest", "Agent", "AgentBuilde...
[ "@event", "Box", "Character", "Clay_SetDebugModeEnabled", "Command", "Content", "E", "Error", "Event", "EventRangeExpectation", "Events", "Events Report Protocol", "Examples", "GsonUtils", "Horizontal", "InstanceRegisteredEvent", "Internal", "L24", "L27", "L28" ]
query: def test_filter_info_has_params(self) method of TestExpandedFilters
passage: def test_filter_info_has_params(self): info = filt_mod.get_filter_info("sharpen") assert "params" in info assert info["name"] == "sharpen"
python
test_filter_info_has_params
shotcut/agent-harness/cli_anything/shotcut/tests/test_core.py
HKUDS/CLI-Anything
stack-cqs-index
[]
[ "get_filter_info" ]
query: def test_json_module_object method of ObjectJuice
passage: def test_json_module_object obj = One::Two::Three::Deep.new() dump_and_load(obj, false) end
ruby
test_json_module_object
test/test_object.rb
ohler55/oj
stack-cqs-index
[]
[ "dump_and_load", "dump_to_json_and_load" ]
query: constructor(private afs: AngularFirestore) method of AppComponent
passage: constructor(private afs: AngularFirestore) { this.itemsCollection = afs.collection<Item>('items'); this.items = this.itemsCollection.valueChanges(['added', 'removed']); }
typescript
constructor
site/src/firestore/collections.md
angular/angularfire
stack-cqs-index
[ "**cloneElement:**", "A", "AdapterGenerator", "AttributeBasedAutowiring", "AutowireDefinitionHelperTest", "AutowireDefinitionTest", "BaseConstructor", "BaseQuickAdapter", "BaseSelect", "Build", "Build, test and run", "BuildChain", "BuildMiddlewareChain", "Builder", "CoercibleDate", "Co...
[ "$", "$1", "$9", "$Q", "$a", "$createNode$", "$d", "$derived", "$effect", "$f", "$h", "$i", "$l", "$n", "$r", "$s", "$state", "$t", "$y", "A" ]
query: function a(t) function a
passage: function a(t){return((i(t)?t.ownerDocument:t.document)||window.document).documentElement}
javascript
a
assets/vendor/popper/popper-base.min.js
solstice23/argon-theme
stack-cqs-index
[ "$", "$0", "$V", "$W", "$b", "$c", "$e", "$f", "$ie", "$l", "$o", "$p", "$s", "$t", "$vocabulary_$vocabulary", "0.21.0", "3.2.4 Go 汇编中的伪寄存器", "3.4.4 函数中的局部变量", "=> 2", "A" ]
[ "$", "$$createComment", "$$postDigest", "$_Cn", "$_Dt", "$addFoldLine", "$apply", "$asArray", "$broadcast", "$c", "$char", "$clipRangeToDocument", "$destroy", "$digest", "$e", "$effect", "$eval", "$f", "$g", "$i" ]
query: Returns the local address that this socket is bound to. pub fn local_addr(&self) -> io::Result<SocketAddr> method of UdpRedirSocket
passage: pub fn local_addr(&self) -> io::Result<SocketAddr> { self.io.get_ref().local_addr() }
rust
local_addr
crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs
shadowsocks/shadowsocks-rust
stack-cqs-index
[ "accept", "add_custom_server", "add_new_socket", "add_udp_port_forward", "associate", "base_url", "bind", "bind_random", "bind_request", "bind_twice_bad", "build", "build_server", "build_tunnel", "check_udp_socket_local_addr", "clearing_previous_response_id_does_not_disable_late_done_fil...
[ "Net", "Ok", "Other", "Some", "Unix", "as_pathname", "as_socket", "deref", "get_ref", "local_addr", "map", "map_err", "to_path_buf", "unimplemented", "unwrap" ]
query: async def test_prepare_input_with_session_rejects_non_callable_callback() function test_prepare_input_with_session_rejects_non_callable_callback
passage: async def test_prepare_input_with_session_rejects_non_callable_callback(): session = SimpleListSession() with pytest.raises(UserError, match="session_input_callback"): await prepare_input_with_session("hello", session, cast(Any, "bad_callback"))
python
test_prepare_input_with_session_rejects_non_callable_callback
tests/test_agent_runner.py
openai/openai-agents-python
stack-cqs-index
[]
[ "SimpleListSession", "cast", "prepare_input_with_session", "raises" ]
query: function LazyUnwrapUseEffect
passage: div > unwrap data : { datafromtrigger?. amount?? ' no trigger amount ' } < / div > < / div > ) } return ( < div classname = " outer " > < button onclick = { ( ) = > handleload ( ) } > load data < / button > < button onclick = { ( ) = > handlemutate ( ) } > update data < / button > { content } < / div > ) }
typescript
LazyUnwrapUseEffect
packages/toolkit/src/query/tests/buildHooks.test.tsx
reduxjs/redux-toolkit
stack-cqs-index
[]
[ "consoleErrorSpy", "handleLoad", "handleMutate", "setDataFromQuery", "setDataFromTrigger", "triggerGetIncrementedAmount", "triggerUpdate", "unwrap", "useEffect", "useLazyQuery", "useMutation", "useState" ]
query: pub fn code(&mut self, val: u16) -> &mut Self method of CloseEventInit
passage: pub fn code(&mut self, val: u16) -> &mut Self { self.set_code(val); self }
rust
code
crates/web-sys/src/features/gen_CloseEventInit.rs
wasm-bindgen/wasm-bindgen
stack-cqs-index
[ "$", "1. kprobes", "1. perf_buffer_poll()", "2. open_perf_buffer()", "2021-10", "3. Tracepoints", "4. uprobes", "5. uretprobes", "6. USDT probes", "8. system call tracepoints", "AFMParser", "ANSI highlighting", "API", "APIClient", "APIError", "ARROW", "AWS", "AbstractAuthMicrosoftR...
[ "Basic", "Code", "CodeRequest", "E", "Errorf", "Faker::Code", "File", "Front", "Import", "Importación", "Importation", "J", "JadxCodeAssertions", "L", "Len", "M", "Methods", "NEW", "NSDictionary", "NSError" ]
query: function declaration_duplicate(node, name) function declaration_duplicate
passage: function declaration_duplicate(node, name) { e(node, 'declaration_duplicate', `\`${name}\` has already been declared\nhttps://svelte.dev/e/declaration_duplicate`); }
javascript
declaration_duplicate
packages/svelte/src/compiler/errors.js
sveltejs/svelte
stack-cqs-index
[ "Scope", "declare" ]
[ "e" ]
query: def test_setting_link method of CreateTest
passage: def test_setting_link @config.create.link = ActiveScaffold::DataStructures::ActionLink.new('update', label: 'Monkeys') assert_not_equal @default_link, @config.create.link end
ruby
test_setting_link
test/config/create_test.rb
activescaffold/active_scaffold
stack-cqs-index
[]
[ "assert_not_equal", "create", "delete", "field_search", "link", "search", "show" ]
query: public function delete(Request $request): JsonResponse method of TwoFactorController
passage: public function delete(Request $request): JsonResponse { if (!password_verify($request->input('password') ?? '', $request->user()->password)) { throw new BadRequestHttpException('The password provided was not valid.'); } /** @var \Pterodactyl\Models\User $user */ ...
php
delete
app/Http/Controllers/Api/Client/TwoFactorController.php
pterodactyl/panel
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: protected function xmlRoot() method of Sumex
passage: protected function xmlRoot() { $node = $this->doc->createElement('invoice:request'); $node->setAttribute('xmlns:invoice', 'http://www.forum-datenaustausch.ch/invoice'); $node->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); $node->setAttribute('xmlns:...
php
xmlRoot
application/libraries/Sumex.php
InvoicePlane/InvoicePlane
stack-cqs-index
[ "Sumex", "Zugferdv10Xml", "xml" ]
[ "createElement", "setAttribute" ]
query: function select( selector, context, results, seed, xml ) function select
passage: function select ( selector, context, results, seed, xml ) { var i, tokens, token, type, find, match = tokenize ( selector ), j = match. length ; if (! seed ) { / / try to minimize operations if there is only one group if ( match. length = = = 1 ) { / / take a shortcut and set the context if the root selector i...
javascript
select
assets/jquery-1.8.2.js
discourse/message_bus
stack-cqs-index
[ "$", "$m", "04/11/2019", "A", "A labeled slider component", "AASM", "AI_MODELS", "AMQPIOReader", "AMQPStreamConnectionTest", "ANIMATION_CONFIGS", "AO", "API", "AR", "ARTask", "ARUser", "ASAPooling", "AST", "ASVBlobMetadatable", "ASVValidatable", "AbcCheck" ]
[ "$", "$emit", "$getResult", "AMQPIOWaitException", "AnnotationHandler", "Bool", "CGRectMake", "CacheCorruptedException", "CachedXYT", "ChoiceQuestion", "CollectionUtils", "ColorOutput", "Command: workspace select", "Count2", "CustomOutput", "DONT_FAKE_TIME", "Default", "DispatchLis...
query: function is_boolean_attribute(name) function is_boolean_attribute
passage: function is_boolean_attribute(name) { return DOM_BOOLEAN_ATTRIBUTES.includes(name); }
javascript
is_boolean_attribute
packages/svelte/src/utils.js
sveltejs/svelte
stack-cqs-index
[ "attributes", "build_element_attributes" ]
[ "includes" ]
query: Component() function Component
passage: Component() { return ( <Link id="link" to="/page"> Go to page </Link> ); }
typescript
Component
packages/react-router/__tests__/react-transitions-test.tsx
remix-run/react-router
stack-cqs-index
[ "AngularComponent", "App", "AppComponent", "AppTextField", "ApplyProjectConfigDefaults", "AsyncTabsTestComponent", "BoruvkaAlgorithm", "BoruvkaState", "CheckboxGroupTestComponent", "CheckboxGroupWithCustomLayoutTestComponent", "ChildComponent", "Chromatic", "ComponentDiscoveryEngine", "Com...
[ "$intercept", "AliasChoices", "BadMethodCallException", "BinaryUUIDField", "CharField", "ChildrenTypeError", "ComponentAttributeBag", "ComponentFn", "ComponentName", "Disabled", "Execution", "Field", "ForeignKeyField", "ImportVar", "InvokableComponentVariable", "JSONField", "JetBrain...
query: This is a one-liner method to write a config setting, read the config def rw_config(key, value, default_value = nil) method of Config
passage: def rw_config(key, value, default_value = nil) if value.nil? acts_as_authentic_config.include?(key) ? acts_as_authentic_config[key] : default_value else self.acts_as_authentic_config = acts_as_authentic_config.merge(key => value) value end end
ruby
rw_config
lib/authlogic/config.rb
binarylogic/authlogic
stack-cqs-index
[ "ActsAsAuthentic", "Authlogic", "Base", "Config", "ConfigTest", "Email", "LoggedInStatus", "Login", "Password", "PerishableToken", "Session", "SessionMaintenance", "SingleAccessToken", "allow_http_basic_auth", "change_single_access_token_with_password", "check_passwords_against_databas...
[ "acts_as_authentic_config", "include?", "merge", "nil?" ]
query: public static function setVersion(int $version): void method of PuTTY
passage: public static function setVersion(int $version): void { if ($version != 2 && $version != 3) { throw new RuntimeException('Only supported versions are 2 and 3'); } self::$version = $version; }
php
setVersion
phpseclib/Crypt/Common/Formats/Keys/PuTTY.php
phpseclib/phpseclib
stack-cqs-index
[ "ACLCB", "AbstractAppleMetaDataBox", "AbstractFunctionParser", "AbstractInstanceRegistry", "AbstractMigrationTest", "AbstractParser", "AddVersionDialog", "AdminNettyUtils", "AdminPacket", "AliyunSmsSender", "ApkDecoder", "App", "AppInfoTest", "AppServiceProvider", "AppState", "AppleCov...
[ "Debug", "Duration", "Error", "Errorf", "Exception", "IllegalArgumentException", "InvalidArgumentException", "New", "RuntimeException", "Set", "Sprintf", "String", "UnsupportedOperationException", "UpdateVersion", "Version4", "appendChild", "buildVersionURL", "clear", "count", ...
query: function $http(requestConfig) function $http
passage: function $ http ( requestconfig ) { if (! angular. isobject ( requestconfig ) ) { throw minerr ( ' $ http ' ) ( ' badreq ', ' http request configuration must be an object. received : { 0 } ', requestconfig ) ; } var config = extend ( { method : ' get ', transformrequest : defaults. transformrequest, transformr...
javascript
$http
test/angular/1.3/angular.js
angular-ui/ui-router
stack-cqs-index
[ "$HttpProvider", "$translateStaticFilesLoader", "Local", "OAuth", "createShortMethods", "createShortMethodsWithData", "doImportNamespace", "importNamespaceModalDirective", "login", "resourceFactory", "signup", "unlink" ]
[ "$httpMinErrLegacyFn", "assertArgFn", "cookies", "execHeaders", "executeHeaderFns", "extend", "fn", "forEach", "get", "headerFn", "headersGetter", "isFunction", "isObject", "isString", "isSuccess", "isUndefined", "lowercase", "mergeHeaders", "minErr", "push" ]
query: function useDrag(target, opts) function useDrag
passage: removedraglisteners ( ) target. removeeventlistener ( ' mousedown ', onmousedown ) target. removeeventlistener ( ' click ', preventunwantedclick ) relinquishcursorlock ( ) if ( moderef. current! = = ' notdragging ' ) { optsref. current. ondragend & & optsref. current. ondragend ( moderef. current = = = ' dragg...
javascript
useDrag
examples/r3f-cra/src/useDrag.js
theatre-js/theatre
stack-cqs-index
[ "AggregateKeyframeConnector", "AlbumDatagridRow", "ArtistDatagridRow", "AudioTitle", "BasicNumberInput", "Box", "Consumer", "Cover", "Drag", "DragItem", "DragableBodyRow", "EditableAnnotation", "FocusRangeZone", "ItemRenderer", "NodeWrapper", "NodesSelection", "PanelDragZone", "Pan...
[ "XYDrag", "abort", "abs", "addDragListeners", "addEventListener", "autoPan", "calcAutoPan", "calcNextPosition", "call", "cancelAnimationFrame", "capturePointer", "ceil", "createCursorLock", "current", "destroy", "detectShift", "didPointerLockCauseMovement", "drag", "dragStartHand...
query: public com.alibaba.otter.canal.protocol.CanalPacket.Get.UnitPresentCase getUnitPresentCase(); method of CanalPacket
passage: public com.alibaba.otter.canal.protocol.CanalPacket.Get.UnitPresentCase getUnitPresentCase();
java
getUnitPresentCase
protocol/src/main/java/com/alibaba/otter/canal/protocol/CanalPacket.java
alibaba/canal
stack-cqs-index
[ "Builder", "CanalPacket", "Get", "equals", "mergeFrom" ]
[ "forNumber" ]
query: const coord::tile_delta Portal::get_entry_end(sector_id_t entry_sector) const method of Portal
passage: const coord::tile_delta Portal::get_entry_end(sector_id_t entry_sector) const { ENSURE(entry_sector == this->sector0 || entry_sector == this->sector1, "Invalid entry sector"); if (entry_sector == this->sector0) { return this->get_sector0_end(); } return this->get_sector1_end(); }
cpp
get_entry_end
libopenage/pathfinding/portal.cpp
SFTtech/openage
stack-cqs-index
[ "connect_exits", "create_portal_tiles", "path_demo_1" ]
[ "ENSURE", "get_sector0_end", "get_sector1_end" ]
query: fn name(&self) -> &str method of RelayChannel
passage: fn name(&self) -> &str { self.provider.channel_name() }
rust
name
src/channels/relay/channel.rs
nearai/ironclaw
stack-cqs-index
[ "A", "A2", "AASM", "ACME", "AES", "AESTest", "AFMParser", "AIRGoogleMap", "AISDataStore", "ALL_NAME_LIST", "AMSActor", "AMSMovie", "ANON_CLASS_FOR_NEW", "ANTLRMessage", "API", "ARBITRARY_OUTSIDE_STRING", "ASGResource", "ASGStatus", "ASMifierAnnotationV", "ASMifierCodeV" ]
[ "AssertionError", "Attribute", "AttributeError", "Base", "BigDecimal", "Borrowed", "Bytes", "CAShapeLayer", "CATextLayer", "CGRectMake", "CLI Option Name", "CTFontCopyName", "Call", "ClassName", "Custom Command Name", "DeviceUtils", "DnsRecord", "EndpointNameGroupingRule4OpenapiWat...
query: def test_id_from_response method of BaseTest
passage: def test_id_from_response p = Person.new resp = { "Location" => "/foo/bar/1" } assert_equal "1", p.__send__(:id_from_response, resp) resp["Location"] += ".json" assert_equal "1", p.__send__(:id_from_response, resp) end
ruby
test_id_from_response
test/cases/base_test.rb
rails/activeresource
stack-cqs-index
[]
[ "__send__", "assert_equal" ]
query: public addCloudEnvironment( environment?: Environment, setActive = false, storeUpdateOptions = method of EnvironmentsService
passage: public addCloudEnvironment( environment?: Environment, setActive = false, storeUpdateOptions = { force: false, emit: true } ) { const user = this.store.get('user'); if (this.isQuotaReached()) { this.loggerService.logMessage('error', 'CLOUD_SYNC_QUOTA_EXCEEDED', { quota: use...
typescript
addCloudEnvironment
packages/app/src/renderer/app/services/environments.service.ts
mockoon/mockoon
stack-cqs-index
[ "CommandPaletteService", "EnvironmentsMenuComponent", "EnvironmentsService", "MainApiListenerService", "OpenapiImportModalComponent", "SyncPayloadsService", "addCloudEnvironmentFromLocalFile", "applySyncAction", "convertCurrentEnvironmentToCloud", "duplicateToCloud", "generateCommands", "impor...
[ "BuildEnvironment", "addEnvironment", "get", "getEnvironmentByteSize", "isQuotaReached", "logMessage" ]
query: def test_multiple_messages(self) method of TestJson
passage: def test_multiple_messages(self): key = self.clean_key() n = 100 for i in range(n): lpush_response = self.exec('LPUSH', key, f'value-{i}') self.assertEqual(lpush_response, {'LPUSH': i + 1}) self.assertEqual(self.exec('LLEN', key), {'LLEN': n})
python
test_multiple_messages
tests/ws-tests.py
nicolasff/webdis
stack-cqs-index
[]
[ "assertEqual", "clean_key", "close", "count", "create", "doBoth", "exec", "fill", "get_message", "locator", "prepare_multimodal_messages_vllm", "press", "range", "send_message", "set_code", "wait_for", "wait_for_function" ]
query: def self.select_option(select_option) method select_option
passage: def self.select_option(select_option) select_option[:display_name] end
ruby
select_option
lib/content_generator.rb
ubicloud/ubicloud
stack-cqs-index
[ "Actions", "BrowserUseTool", "CMB2_Type_Taxonomy_Select", "CMB2_Type_Taxonomy_Select_Hierarchical", "Capybara", "Element", "Element Methods (DOM Interactions)", "ElementHandle", "Frame", "Interactions", "Locator", "Node", "Page", "attribute_effect", "bind_select_value", "execute", "e...
[ "Element", "Ok", "_get_node_id", "_sync", "build_children", "chrome_edge?", "click", "cloned", "command", "convert_select_option_values", "default", "describeNode", "dict", "disabled?", "dispatchEvent", "empty", "evaluate_script", "execute_script", "focus", "from_maybe_impl" ]
query: fn drop(&mut self) method of TempFile
passage: fn drop(&mut self) { use std::fs::remove_file; remove_file(&self.path).expect("couldn't delete temp file"); }
rust
drop
src/test/mod.rs
rust-lang/rustfmt
stack-cqs-index
[ "APODContentProvider", "APODSQLiteOpenHelper", "AST", "AVLNode", "AccountsController", "ActionCable", "ActiveJob", "ActiveScaffold", "AdapterRequirements", "Adapters", "Add", "AddAffiliatesTable", "AddDatabaseServersTable", "AddDatabasesTables", "AddPackSupport", "AddQuestionAnswersTab...
[ "$", "$showError", "AddInt64", "Borrowed", "CFRelease", "CancelOnDrop", "CloseHandle", "CoUninitialize", "DLOG", "Debugf", "Deferred", "Delete", "DestroyAcceleratorTable", "DestroyIcon", "DestroyMenu", "DestroyWindow", "Dr", "Drop", "DropCommand", "DropTable" ]
query: public function testGetCurrentItemWithAncestor() method of MenuTest
passage: public function testGetCurrentItemWithAncestor() { // Set REQUEST_URI to a non-matching URL so WordPress doesn't auto-mark any item as current $_SERVER['REQUEST_URI'] = '/non-existent-test-page'; $items = []; $items[] = (object) [ 'type' => 'link', '...
php
testGetCurrentItemWithAncestor
tests/MenuTest.php
timber/timber
stack-cqs-index
[]
[ "assertEquals", "buildMenu", "current_item", "get_menu", "link" ]
query: def test_safe_find_by method of HomeController
passage: def test_safe_find_by User.find_or_create_by_name(params[:name], :code => (params[:x] + "code")) end
ruby
test_safe_find_by
test/apps/rails2/app/controllers/home_controller.rb
presidentbeef/brakeman
stack-cqs-index
[]
[ "find_or_create_by_name" ]
query: fn stdout(&self) -> Cow<str> method of CompilationResult
passage: fn stdout(&self) -> Cow<str> { String::from_utf8_lossy(&self.0.stdout) }
rust
stdout
tests/cpp_compile/mod.rs
dtolnay/cxx
stack-cqs-index
[ "Airplay", "AnnotateEndOfFile", "AuthorEmail", "AuthorName", "Backend", "BackgroundProcess", "Base", "Bcu", "BerksfileCheck", "Berkshelf", "Binary", "Brakeman", "BuildVersion", "BundleAudit", "BundleCheck", "BundleInstall", "BundleOutdated", "CLI", "Capture", "Capturing" ]
[ "ByteArrayOutputStream", "GetStdHandle", "Iterator", "Out", "Printf", "Println", "Repeat", "Stdout", "String", "StringBuilder", "TestWriter", "Total", "Utf8Error", "__spreadProps", "_send", "any_number_of_times", "callback", "class", "clone", "color_choice" ]
query: public static void main(String[] args) method of OrderServiceApplication
passage: public static void main(String[] args) { SpringApplication.run(OrderServiceApplication.class, args); }
java
main
labx-17/labx-17-sc-seata-at-feign-demo/labx-17-sc-seata-at-feign-demo-order-service/src/main/java/cn/iocoder/springcloud/labx17/orderservice/OrderServiceApplication.java
yudaocode/SpringBoot-Labs
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}...