Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
repo: string
language: string
status: string
pairs: int64
edges: int64
source_files: list<item: string>
  child 0, item: string
note: string
callees: list<item: string>
  child 0, item: string
function_name: string
query: string
positive: string
source: string
callers: list<item: string>
  child 0, item: string
file: string
to
{'query': Value('string'), 'positive': Value('string'), 'language': Value('string'), 'function_name': Value('string'), 'file': Value('string'), 'repo': Value('string'), 'source': Value('string'), 'callers': List(Value('string')), 'callees': List(Value('string'))}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1872, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 265, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 120, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              repo: string
              language: string
              status: string
              pairs: int64
              edges: int64
              source_files: list<item: string>
                child 0, item: string
              note: string
              callees: list<item: string>
                child 0, item: string
              function_name: string
              query: string
              positive: string
              source: string
              callers: list<item: string>
                child 0, item: string
              file: string
              to
              {'query': Value('string'), 'positive': Value('string'), 'language': Value('string'), 'function_name': Value('string'), 'file': Value('string'), 'repo': Value('string'), 'source': Value('string'), 'callers': List(Value('string')), 'callees': List(Value('string'))}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1922, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

query
string
positive
string
language
string
function_name
string
file
string
repo
string
source
string
callers
list
callees
list
query: private function queryInternal($method,$mode,$params=array()) method of CDbCommand
passage: ##mand. query ' ) ; $ errorinfo = $ e instanceof pdoexception? $ e - > errorinfo : null ; $ message = $ e - > getmessage ( ) ; yii : : log ( yii : : t ( ' yii ', ' cdbcommand : : { method } ( ) failed : { error }. the sql statement executed was : { sql }. ', array ( ' { method } ' = > $ method, ' { error } ' = > $ message, ' { sql } ' = > $ this - > gettext ( ). $ par ) ), clogger : : level _ error, ' system. db. cdbcommand ' ) ; if ( yii _ debug ) $ message. = '. the sql statement executed was : '. $ this - > gettext ( ). $ par ; throw new cdbexception ( yii : : t ( ' yii ', ' cdbcommand failed to execute the sql statement : { error } ', array ( ' { error } ' = > $ message ) ), ( int ) $ e - > getcode ( ), $ errorinfo ) ; } }
php
queryInternal
framework/yiilite.php
yiisoft/yii
stack-cqs-index
[ "CDbCommand", "query", "queryAll", "queryColumn", "queryRow", "queryScalar" ]
[ "CDbDataReader", "CDbException", "app", "array_merge", "beginProfile", "call_user_func_array", "closeCursor", "endProfile", "execute", "get", "getCode", "getComponent", "getMessage", "getText", "implode", "isset", "log", "prepare", "serialize", "set" ]
query: std::unordered_map<monitoring::EventId, std::shared_ptr<DataWriter>> KatranMonitor::createWriters() method of KatranMonitor
passage: std::unordered_map<monitoring::EventId, std::shared_ptr<DataWriter>> KatranMonitor::createWriters() { std::unordered_map<EventId, std::shared_ptr<DataWriter>> dataWriters; for (auto event : config_.events) { if (config_.storage == PcapStorageFormat::FILE) { std::string fname; folly::toAppend(config_.path, "_", event, &fname); dataWriters.insert({event, std::make_shared<FileWriter>(fname)}); } else if (config_.storage == PcapStorageFormat::IOBUF) { auto res = buffers_.insert({event, folly::IOBuf::create(config_.bufferSize)}); dataWriters.insert( {event, std::make_shared<IOBufWriter>(res.first->second.get())}); } else if (config_.storage == PcapStorageFormat::PIPE) { // PcapStorageFormat::PIPE auto pipeWriter = std::make_shared<PipeWriter>(); auto destIt = pipeWriterDests_.find(event); if (destIt != pipeWriterDests_.end()) { pipeWriter->setWriterDestination(destIt->second); } dataWriters.insert({event, std::move(pipeWriter)}); } else { LOG(ERROR) << "Invalid pcap storage format: " << static_cast<int>(config_.storage); } } VLOG(4) << __func__ << "Data writers created"; return dataWriters; }
cpp
createWriters
katran/lib/KatranMonitor.cpp
facebookincubator/katran
stack-cqs-index
[ "KatranMonitor", "katran", "restartMonitor" ]
[ "LOG", "VLOG", "end", "find", "get", "insert", "make_shared", "move", "setWriterDestination", "static_cast", "toAppend" ]
query: void FileTokenizer::skipWhitespace() method of FileTokenizer
passage: void FileTokenizer::skipWhitespace() { while (true) { if (isWhitespace(currentLine,linePos)) { do { linePos++; } while (isWhitespace(currentLine,linePos)); } else if (isComment(currentLine,linePos)) { linePos = currentLine.size(); } else if (isBlockComment(currentLine,linePos)) { linePos += 2; while(!isBlockCommentEnd(currentLine,linePos)) { linePos++; if (linePos >= currentLine.size()) { if (isInputAtEnd()) { createToken(TokenType::Invalid,linePos,L"Unexpected end of file in block comment"); addToken(token); return; } currentLine = input->readLine(); linePos = 0; lineNumber++; } } linePos += 2; } else { break; } } }
cpp
skipWhitespace
tools/armips.cpp
n64decomp/sm64
stack-cqs-index
[ "Lexer", "NextToken", "Parse", "Parser", "TokenStreamTest", "TomlZiplineApiReader", "advanceToken", "checkForCloseTag", "doesLineIncludeConstant", "findNsisTags", "findRubyTags", "getContentObject", "init", "nextToken", "parse2", "parseArray", "parseAttributeNode", "parseExpr", "...
[ "Js", "_", "__commonJS", "addToken", "advanceChar", "code", "consume", "createToken", "getNext", "getPeek", "getcFromInputFile", "isBlockComment", "isBlockCommentEnd", "isComment", "isInputAtEnd", "isSpace", "isWhitespace", "next", "panic", "peek" ]
query: Clear cache when needed (called when project files change) function clearProjectDirectoryCache() function clearProjectDirectoryCache
passage: function clearProjectDirectoryCache() { projectDirectoryCache.clear(); }
javascript
clearProjectDirectoryCache
server/projects.js
siteboon/claudecodeui
stack-cqs-index
[ "debouncedUpdate", "setupProjectsWatcher" ]
[ "clear" ]
query: fn test_default_tuple() function test_default_tuple
passage: fn test_default_tuple() { assert_de_tokens( &DefaultTupleStruct(1, 2, 3), &[ Token::TupleStruct { name: "DefaultTupleStruct", len: 3, }, Token::I32(1), Token::I32(2), Token::I32(3), Token::TupleStructEnd, ], ); assert_de_tokens( &DefaultTupleStruct(1, 0, 123), &[ Token::TupleStruct { name: "DefaultTupleStruct", len: 3, }, Token::I32(1), Token::TupleStructEnd, ], ); }
rust
test_default_tuple
test_suite/tests/test_annotations.rs
serde-rs/serde
stack-cqs-index
[]
[ "DefaultTupleStruct", "I32", "assert_de_tokens" ]
query: ReadMultiBuffer implements buf.Reader. func (c *Connection) ReadMultiBuffer() (buf.MultiBuffer, error) method of Connection
passage: func (c *Connection) ReadMultiBuffer() (buf.MultiBuffer, error) { return c.reader.ReadMultiBuffer() }
go
ReadMultiBuffer
common/net/cnc/connection.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: </editor-fold> public BallPulseFooter(Context context) constructor of BallPulseFooter
passage: public BallPulseFooter(Context context) { this(context, null); }
java
BallPulseFooter
refresh-footer-ball/src/main/java/com/scwang/smart/refresh/footer/BallPulseFooter.java
scwang90/SmartRefreshLayout
stack-cqs-index
[ "AssignCodeExampleActivity", "RefreshStylesFragment", "onCreate", "onStateChanged", "onViewCreated" ]
[ "AccelerateDecelerateInterpolator", "Paint", "compositeColors", "currentTimeMillis", "dispatchDraw", "dp2px", "drawCircle", "getColor", "getHeight", "getInt", "getInterpolation", "getWidth", "hasValue", "invalidate", "min", "obtainStyledAttributes", "recycle", "restore", "save", ...
query: @Test public void testDigitSeparationReverseOrderNegativeNumbers() method of DigitSeparationTest
passage: @Test public void testDigitSeparationReverseOrderNegativeNumbers() { DigitSeparation digitSeparation = new DigitSeparation(); List<Long> result = digitSeparation.digitSeparationReverseOrder(-123); assertEquals(List.of(3L, 2L, 1L), result); }
java
testDigitSeparationReverseOrderNegativeNumbers
src/test/java/com/thealgorithms/greedyalgorithms/DigitSeparationTest.java
TheAlgorithms/Java
stack-cqs-index
[]
[ "DigitSeparation", "assertEquals", "digitSeparationReverseOrder", "of" ]
query: public function __construct( protected ConnectionResolverInterface $database, ConfigRepository $configRepository, ) constructor of RelationDirective
passage: public function __construct( protected ConnectionResolverInterface $database, ConfigRepository $configRepository, ) { $this->lighthouseConfig = $configRepository->get('lighthouse'); }
php
__construct
src/Schema/Directives/RelationDirective.php
nuwave/lighthouse
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: -------------------------------------------------------------------- protected $_create_database = 'CREATE DATABASE %s'; property _create_database
passage: protected $_create_database = 'CREATE DATABASE %s';
php
_create_database
system/database/DB_forge.php
alextselegidis/easyappointments
stack-cqs-index
[]
[]
query: Inner implements hasInnerError.Inner() func (err *Error) Inner() error method of Error
passage: func (err *Error) Inner() error { if err.inner == nil { return nil } return err.inner }
go
Inner
common/errors/errors.go
v2fly/v2ray-core
stack-cqs-index
[ "Cause", "FieldExclusionTest", "HighlightCodeBlock", "Inner", "Middle", "Nested", "Optional2", "RenderCodeblock", "TestAnonymousClass3a", "TestCls", "TestRankAndAlphaPattern", "ValOutersWithGenerics", "WithByInAnonymousClass", "WithInAnonymousClass", "__init__", "annonymous", "check"...
[ "Enum", "Get", "HTML", "Include", "Inner", "Linear", "Object", "Overview", "Peek", "Run", "Runnable", "Sprintf", "TestCls", "Thread", "Use RenderString", "__init__", "any?", "apply", "assert", "attr_accessor" ]
query: int main() function main
passage: int main() { MathOperations math; cout << "Sum (2 numbers): " << math.add(5, 10) << endl; cout << "Sum (3 numbers): " << math.add(5, 10, 15) << endl; return 0; }
cpp
main
oop/cpp/polymorphism/README.md
ashishps1/awesome-low-level-design
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: static insertMusicSheetBetween( platform: string, id: string, afterPlatform: string | null, afterId: string | null, beforePlatform: string | null, beforeId: string | null, ): boolean method of LocalMusicSheetDB
passage: static insertmusicsheetbetween ( platform : string, id : string, afterplatform : string | null, afterid : string | null, beforeplatform : string | null, beforeid : string | null, ) : boolean { try { let newsortindex : number ; if (! afterplatform & &! afterid ) { / / const firststmt = database. prepare ( " select min ( _ sortindex ) as minsort from localmusicsheets " ) ; const result = firststmt. get ( ) as { minsort : number | null } ; newsortindex = ( result. minsort | | this. sort _ base ) - this. sort _ increment ; } else if (! beforeplatform & &! beforeid ) { / / const laststmt = database. prepare ( " select max ( _ sortindex ) as maxsort from localmusicsheets " ) ; const result = laststmt. get ( ) as { maxsort : number | null } ; newsortindex = ( result. maxsort | | this. sort _ base ) + this. sort _ increment ; } else { / / 中 const afterstmt = database. prepare ( " select _ sortindex from localmusicsheets where platform =? and id =? " ) ; const beforestmt = database. prepare ( " select _ sortindex from localmusicsheets where platform =? and id =? " ) ; const afterresult = afterstmt. get ( afterplatform, afterid ) as { _ sortindex : number } | undefined ; const beforeresult = beforestmt. get ( beforeplatform, beforeid ) as { _ sortindex : number } | undefined ; if (! afterresult | |! beforeresult ) { return false ; } newsortindex = ( afterresult. _ sortindex + beforeresult. _ sortindex ) / 2 ; / / 新 if ( math. abs ( beforeresult
typescript
insertMusicSheetBetween
src/shared/database/preload-backup.ts
maotoumao/MusicFreeDesktop
stack-cqs-index
[]
[ "abs", "error", "get", "prepare", "rebalanceSortIndexes", "updateMusicSheetSort" ]
query: def test_engine_basic(model function test_engine_basic
passage: ##m _ requests + max _ tokens - 1 # run steps for step in range ( num _ steps ) : engine. step ( ) for req _ id, output in enumerate ( outputs ) : print ( f " prompt { req _ id } : { requests [ req _ id ]. inputs [ 0 ] } " ) print ( f " output { req _ id } : { engine. tokenizer. decode ( output ) } \ n " )
python
test_engine_basic
tests/python/serve/test_serve_sync_engine.py
mlc-ai/mlc-llm
stack-cqs-index
[]
[ "EngineConfig", "SyncMLCEngine", "add_request", "create_requests", "decode", "enumerate", "int", "len", "print", "range", "seed", "step", "unpack" ]
query: """Validate file extension.""" def validate_file_extension(value) function validate_file_extension
passage: def validate_file_extension(value): """Validate file extension.""" ext = os.path.splitext(value.name)[1] valid_extensions = ['.jpg', '.jpeg', '.png', '.gif', '.pdf'] if not ext.lower() in valid_extensions: raise ValidationError('Unsupported file extension.')
python
validate_file_extension
skills/django-security/SKILL.md
affaan-m/everything-claude-code
stack-cqs-index
[]
[]
query: @Override public String toString() method of SimpleCodeInfo
passage: @Override public String toString() { return code; }
java
toString
jadx-core/src/main/java/jadx/api/impl/SimpleCodeInfo.java
skylot/jadx
stack-cqs-index
[ "3.0.1", "6.0.1", "Actions", "Added", "Alternatives to `actionCreator.toString()`", "Chainable expressions", "Changed", "Classes & Constructors", "Color objects", "Contributing Documentation and Code Changes", "Draft 3", "Features", "Frequently Asked Questions", "Goals for Gson", "Intern...
[ "$", "$9", "A", "AbstractListener", "AddListener", "AnsiElement", "ArgumentMatcher", "ArgumentTransformer", "AssertionError", "Assisted", "AutocompleteTags", "BI", "Box", "BufferedReader", "ByteArrayOutputStream", "CharArrayWriter", "ClassLoader", "CollectorMetrics", "Compression...
query: def validate_dispatcher method of OptionParser
passage: def validate_dispatcher # Check for missing Dispatcher if !options.dispatcher.url print_error "Missing '--dispatcher-url' option." exit 1 end end
ruby
validate_dispatcher
ui/cli/rpc/client/remote/option_parser.rb
Arachni/arachni
stack-cqs-index
[]
[ "dispatcher", "exit", "print_error", "url" ]
query: """Check if logger is enabled.""" def enabled(self) -> bool method of Logger
passage: def enabled(self) -> bool: """Check if logger is enabled.""" # Avoid formatting the log line if it will not be emitted. return enabled
python
enabled
tests/test_web_log.py
aio-libs/aiohttp
stack-cqs-index
[ "ActionPolicy", "ActiveRecordQueryTrace", "Agent", "ApiAuthenticationController", "App", "AppServiceProvider", "Application", "ApplicationSWT", "ApplicationSystemTestCase", "AssetSync", "Attack", "AuthProviderServiceImpl", "AwtTrayMenuController", "BackgroundService", "Backup", "Basic ...
[ "AtomicBoolean", "Boolean", "ConcurrentStatsCounter", "Dependent Queries", "Err", "NSTrackingArea", "String", "The `enabled` Meta-Argument", "_createForOfIteratorHelper", "access", "addCron", "addTrackingArea", "alloc", "any", "apply", "asProperty", "as_ref", "as_trace", "assert"...
query: fn not_congestion_controlled( #[values(false, true)] overestimate_avoidance: bool, #[values(false, true)] choose_a0_point_fix: bool, ) function not_congestion_controlled
passage: fn not _ congestion _ controlled ( # [ values ( false, true ) ] overestimate _ avoidance : bool, # [ values ( false, true ) ] choose _ a0 _ point _ fix : bool, ) { let mut test _ sender = testsender : : new ( overestimate _ avoidance, choose _ a0 _ point _ fix ) ; let time _ between _ packets = duration : : from _ millis ( 1 ) ; let expected _ bandwidth = bandwidth : : from _ kbits _ per _ second ( regular _ packet _ size as u64 / 2 * 8 ) ; / / send 20 packets, each 1 ms apart. every even packet is not congestion / / controlled. for i in 1.. = 20 { let has _ retransmittable _ data = i % 2 = = 0 ; test _ sender. send _ packet ( i, regular _ packet _ size, has _ retransmittable _ data, ) ; test _ sender. advance _ time ( time _ between _ packets ) ; } / / ensure only congestion controlled packets are tracked. assert _ eq! ( 10, test _ sender. number _ of _ tracked _ packets ( ) ) ; / / ack packets 2 to 21, ignoring every even - numbered packet, while sending / / new packets at the same rate as before. for i in 1.. = 20 { if i % 2 = = 0 { test _ sender. ack _ packet ( i ) ; } let has _ retransmittable _ data = i % 2 = = 0 ; test _ sender. send _ packet ( i + 20, regular _ packet _ size, has _ retransmittable _ data, ) ; test _ sender. advance _ time ( time _ between _ packets ) ; } / / ack the packets 22 to 41 with the same congestion controlled pattern. for i in 21.. = 40 { if i % 2 = = 0 { let last _ bandwidth = test _ sender. ack _ packet ( i ). bandwidth ; assert _ eq! ( expected _ bandwidth, last _ bandwidth ) ; } test _ sender. advance _ time ( time _ between _ packets ) ; } test _ sender. sampler. remove _ obsolete
rust
not_congestion_controlled
quiche/src/recovery/gcongestion/bbr/bandwidth_sampler.rs
cloudflare/quiche
stack-cqs-index
[]
[ "ack_packet", "advance_time", "assert_eq", "from_kbits_per_second", "from_millis", "remove_obsolete_packets", "send_packet" ]
query: def stock_zh_a_gbjg_em(symbol function stock_zh_a_gbjg_em
passage: , " sortcolumns " : " end _ date ", " source " : " hsf10 ", " client " : " pc ", " v " : " 047483522105257925 ", } r = requests. get ( url, params = params ) data _ json = r. json ( ) temp _ df = pd. dataframe ( data _ json [ " result " ] [ " data " ] ) temp _ df. rename ( columns = { " end _ date " : " 日 ", " total _ shares " : " 本 ", " listed _ a _ shares " : " 上 a ", " free _ shares " : " ", " change _ reason " : " 原 ", " limited _ a _ shares " : " ", " limited _ othars " : " 内 ( ) ", " limited _ domestic _ nostate " : " 内 法 人 ( ) ", " limited _ domestic _ natural " : " 内 人 ( ) ", }, inplace = true, ) temp _ df = temp _ df [ [ " 日 ", " 本 ", " ", " 内 ( ) ", " 内 法 人 ( ) ", " 内 人 ( ) ", " ", " 上 a ", " 原 ", ] ] temp _ df [ " 日 " ] = pd. to _ datetime ( temp _ df [ " 日 " ], errors = " coerce " ). dt. date temp _ df [ " 本 " ] = pd. to _ numeric ( temp _ df [ " 本 " ], errors = " coerce " ) temp _ df [ " " ] = pd
python
stock_zh_a_gbjg_em
akshare/stock_fundamental/stock_gbjg_em.py
akfamily/akshare
stack-cqs-index
[]
[ "DataFrame", "get", "json", "rename", "to_datetime", "to_numeric" ]
query: public function get($model, string $key, $value, array $attributes) method of SelfCastingCasterWithStaticDocblockReturn
passage: public function get($model, string $key, $value, array $attributes) { return new static(); }
php
get
tests/Console/ModelsCommand/LaravelCustomCasts/Casts/SelfCastingCasterWithStaticDocblockReturn.php
barryvdh/laravel-ide-helper
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: Freezes the contents of the array, as well as all array elements. The def __nanoc_freeze_recursively method of ArrayExtensions
passage: def __nanoc_freeze_recursively return if frozen? freeze each do |value| if value.respond_to?(:__nanoc_freeze_recursively) value.__nanoc_freeze_recursively else value.freeze end end end
ruby
__nanoc_freeze_recursively
nanoc-core/lib/nanoc/core/core_ext/array.rb
nanoc/nanoc
stack-cqs-index
[ "ArrayExtensions", "Configuration", "Core", "CoreExt", "HashExtensions", "LazyValue", "Nanoc", "Site", "__nanoc_freeze_recursively", "freeze", "value" ]
[ "__nanoc_freeze_recursively", "each", "each_pair", "freeze", "frozen?", "respond_to?" ]
query: Returning a Result from main makes it print a Debug representation of the error, but with Snafu fn main() function main
passage: fn main() { if let Err(e) = run() { eprintln!("{}", e); process::exit(1); } }
rust
main
sources/settings-migrations/archived/v1.20.5/public-control-container-v0-7-13/src/main.rs
bottlerocket-os/bottlerocket
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 test_time_zone_options_no_parms method of FormOptionsHelperTest
passage: def test_time_zone_options_no_parms opts = time_zone_options_for_select assert_dom_equal "<option value=\"A\">A</option>\n" + "<option value=\"B\">B</option>\n" + "<option value=\"C\">C</option>\n" + "<option value=\"D\">D</option>\n" + "<option value=\"E\">E</option>", opts end
ruby
test_time_zone_options_no_parms
vendor/rails/actionpack/test/template/form_options_helper_test.rb
insoshi/insoshi
stack-cqs-index
[]
[ "assert_dom_equal", "uses_mocha" ]
query: pub fn truncate(&mut self, len: usize) method of RustVec
passage: pub fn truncate(&mut self, len: usize) { self.as_mut_vec().truncate(len); }
rust
truncate
src/rust_vec.rs
dtolnay/cxx
stack-cqs-index
[ "API", "AccountsHelper", "AcroForm", "Action", "Actions", "ActiveScaffold", "ActiveStorageExtensions", "ActivitiesHelper", "Activity", "Adapters", "AddHostToProxiedImages", "AdminContextFactory", "AdminTablesSeeder", "Agent", "AgentObserver", "AggregationBuilderTest", "Allocation", ...
[ "Cleanup", "CloseHandle", "CreateFile", "CreateFileW", "DNSHeader", "DNSRecord", "DWORD", "Date", "DateTime", "Defined in lib/html.php", "Dml", "Err", "Exception", "Exec", "FileOutputStream", "FileTxnIterator", "GetLastError", "Helper", "IOException", "IdLexer" ]
query: #[Delete(' method of FirewallRuleController
passage: #[Delete('{firewallRule}', name: 'api.projects.servers.firewall-rules.delete', middleware: 'ability:write')] public function delete(Project $project, Server $server, FirewallRule $firewallRule): Response { $this->authorize('delete', [$firewallRule, $server]); $this->validateRoute($project, $server, $firewallRule); app(ManageRule::class)->delete($firewallRule); return response()->noContent(); }
php
delete
app/Http/Controllers/API/FirewallRuleController.php
vitodeploy/vito
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: WITH_LOCK(lock) constructor WITH_LOCK
passage: WITH_LOCK(lock) { task.cancel_sync(); }
cpp
WITH_LOCK
tests/tst-async.cc
cloudius-systems/osv
stack-cqs-index
[ "allocate", "biodone", "dentry_children_remove", "dentry_move", "drele", "evacuate", "linear_map", "map_jvm", "multiplex_bio_done", "procfs_maps", "pthread_barrier_destroy", "register_exit_notifier", "run_exit_notifiers", "set_jvm", "shrinker", "split", "sysfs_linear_maps", "tcp_se...
[ "BOOST_REQUIRE", "CLR", "ISSET", "LIST_INSERT_HEAD", "LIST_REMOVE", "SET", "TRACEPOINT", "VFS_SYNC", "VFS_UNMOUNT", "_callback", "_cleanup", "_cpu_up", "_release_memory", "_request_memory", "abort", "action", "activate", "add", "add_arc_read_mapping", "add_buf_wait" ]
query: func TestSend_MarkdownShortButHTMLLong_MultipleCalls(t *testing.T) function TestSend_MarkdownShortButHTMLLong_MultipleCalls
passage: func TestSend_MarkdownShortButHTMLLong_MultipleCalls(t *testing.T) { caller := &stubCaller{ callFn: func(ctx context.Context, url string, data *ta.RequestData) (*ta.Response, error) { return successResponse(t), nil }, } ch := newTestChannel(t, caller) // Create markdown whose length is <= 4000 but whose HTML expansion is much longer. // "**a** " (6 chars) becomes "<b>a</b> " (9 chars) in HTML, so repeating it many times // yields HTML that exceeds Telegram's limit while markdown stays within it. markdownContent := strings.Repeat("**a** ", 600) // 3600 chars markdown, HTML ~5400+ chars assert.LessOrEqual(t, len([]rune(markdownContent)), 4000, "markdown content must not exceed chunk size") htmlExpanded := markdownToTelegramHTML(markdownContent) assert.Greater( t, len([]rune(htmlExpanded)), 4096, "HTML expansion must exceed Telegram limit for this test to be meaningful", ) err := ch.Send(context.Background(), bus.OutboundMessage{ ChatID: "12345", Content: markdownContent, }) assert.NoError(t, err) assert.Greater( t, len(caller.calls), 1, "markdown-short but HTML-long message should be split into multiple SendMessage calls", ) }
go
TestSend_MarkdownShortButHTMLLong_MultipleCalls
pkg/channels/telegram/telegram_test.go
sipeed/picoclaw
stack-cqs-index
[]
[ "Background", "Greater", "LessOrEqual", "NoError", "Repeat", "Send", "len", "markdownToTelegramHTML", "newTestChannel", "successResponse" ]
query: int DatabaseManager::set_version() method of DatabaseManager
passage: int DatabaseManager::set_version() { char* error_message = nullptr; std::string query = QString("PRAGMA user_version = %1;").arg(DATABASE_VERSION).toStdString(); int error_code = sqlite3_exec(global_db, query.c_str(), null_callback, nullptr, &error_message); return handle_error("set_version", error_code, error_message); }
cpp
set_version
pdf_viewer/database.cpp
ahrm/sioyek
stack-cqs-index
[ "Base", "Cluster", "IncludeRequestsAutoloader", "Mongo", "SdamFlow", "Test", "Topology", "build_tcp_packet", "client_hello", "compose_ipv4_packet", "create_https_cert_and_privkey", "ensure_schema_compatibility", "get_metadata_for_syslog_ng", "get_scope_and_schema_url", "make_ip", "make...
[ "QString", "RuntimeException", "Some", "arg", "c_str", "debug", "define_singleton_method", "handle_error", "id", "implode", "in_array", "is_string", "notify", "read", "sprintf", "sqlite3_exec", "toStdString", "write" ]
query: fn bindgen_test_layout_malloc_type() function bindgen_test_layout_malloc_type
passage: ! ( " offset of field : ", stringify! ( malloc _ type ), " : : ", stringify! ( ks _ shortdesc ) ) ) ; assert _ eq! ( unsafe { : : std : : ptr : : addr _ of! ( ( * ptr ). ks _ mti ) as usize - ptr as usize }, 24usize, concat! ( " offset of field : ", stringify! ( malloc _ type ), " : : ", stringify! ( ks _ mti ) ) ) ; }
rust
bindgen_test_layout_malloc_type
crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_freebsd.rs
shadowsocks/shadowsocks-rust
stack-cqs-index
[]
[ "as_ptr", "assert_eq", "uninit" ]
query: def _schedule(self) -> SchedulerOutputs method of Scheduler
passage: groups. append ( seq _ group ) self. waiting. pop ( 0 ) continue # if the sequence group cannot be allocated, stop. can _ allocate = self. block _ manager. can _ allocate ( seq _ group ) if can _ allocate = = allocstatus. later : break elif can _ allocate = = allocstatus. never : logger. warning ( f " input prompt ( { num _ prompt _ tokens } tokens ) is too long " f " and exceeds the capacity of block _ manager " ) for seq in waiting _ seqs : seq. status = sequencestatus. finished _ ignored ignored _ seq _ groups. append ( seq _ group ) self. waiting. pop ( 0 ) continue # if the number of batched tokens exceeds the limit, stop. new _ seq _ lens = seq _ lens + [ num _ prompt _ tokens ] num _ batched _ tokens = len ( new _ seq _ lens ) * max ( new _ seq _ lens ) if num _ batched _ tokens > self. scheduler _ config. max _ num _ batched _ tokens : break # the total number of sequences in the running state should not # exceed the maximum number of sequences. num _ new _ seqs = seq _ group. get _ max _ num _ running _ seqs ( ) if num _ curr _ seqs + num _ new _ seqs > self. scheduler _ config. max _ num _ seqs : break num _ paddings = num _ batched _ tokens - sum ( new _ seq _ lens ) if num _ paddings > self. scheduler _ config. max _ paddings : break seq _ lens = new _ seq _ lens seq _ group = self. waiting. pop ( 0 ) self. _ allocate ( seq _ group ) self. running. append ( seq _ group ) num _ curr _ seqs + = num _ new _ seqs scheduled. append ( seq _ group ) if scheduled or
python
_schedule
ChatTTS/model/velocity/scheduler.py
2noise/ChatTTS
stack-cqs-index
[ "CoYield", "Crawler", "LocalRedisLikeClient", "Operation", "OperationQueue", "RateLimiter", "Schedule", "Scheduler", "_addOperations", "_on_gateway_event_sync", "_operationFinished", "_schedule", "addBarrierBlock", "dequantize_group_gemm", "done", "group_gemm", "observeValue", "pub...
[ "CoStkOverflowHook", "InsertToTCBRdyList", "RemoveFromTCBRdyList", "Schedule", "SchedulerOutputs", "SwitchContext", "_allocate", "_append_slot", "_cooperative_fetch", "_fetchCachedIsReady", "_firstPriorityOperation", "_incrementExecutingOperations", "_lock", "_open_spider", "_preempt", ...
query: get filterCount(): number method of Filter
passage: get filterCount(): number { return this.settings.filterCount as number; }
typescript
filterCount
src/layer/filter.ts
BrainJS/brain.js
stack-cqs-index
[]
[ "count", "filters" ]
query: New creates a new backend for Inmem remote state. func New(enc encryption.StateEncryption) backend.Backend function New
passage: func New(enc encryption.StateEncryption) backend.Backend { // Set the schema s := &schema.Backend{ Schema: map[string]*schema.Schema{ "lock_id": &schema.Schema{ Type: schema.TypeString, Optional: true, Description: "initializes the state in a locked configuration", }, }, } backend := &Backend{Backend: s, encryption: enc} backend.Backend.ConfigureFunc = backend.configure return backend }
go
New
internal/backend/remote-state/inmem/backend.go
opentofu/opentofu
stack-cqs-index
[ "1.0.0-rc.2 (21 Feb 2017)", "6. **Echo Config and Constructors**", "AGGREGATE", "API", "APIClientForFrpc", "AS2", "About", "Abs", "AbstractAddition", "Accept", "Acos", "Acquire", "Action", "ActivateChannel", "Add", "AddAllGroup", "AddBaseMenu", "AddCategory", "AddClient", "AddC...
[ "ACLType", "ARC", "Abs", "AbsPathify", "Accept", "AccessiblePrompterEnabled", "Action", "Add", "AddConfig", "AddProtocolAddress", "AddRegexp", "AddServer", "AddUser", "AddWithWeight", "AdditionalProperties", "Addr", "AddrFrom4", "AddrFromSlice", "Address", "AfterFunc" ]
query: on<Prop extends keyof HandlerFuncs>(type: Prop, handler: HandlerFuncs[Prop]) method of Emitter
passage: on<Prop extends keyof HandlerFuncs>(type: Prop, handler: HandlerFuncs[Prop]) { addToHash(this.handlers, type, handler) }
typescript
on
packages/core/src/common/Emitter.ts
fullcalendar/fullcalendar
stack-cqs-index
[ "$", "$CompileProvider", "$D", "$LocationProvider", "$bind", "$f", "$makebutton", "$n", "$navigateTo", "$p", "$propertyChangedCallback", "$q", "$s", "$u", "2. Client Operations", "2.23.0", "A", "A2", "ACCESS_TOKEN_SPLITTER", "AI" ]
[ "$", "$A", "$_Cn", "$_Dt", "$e", "$forceUpdate", "$off", "$t", "A", "Ae", "Array", "B", "Bc", "Boolean", "Context", "Ct", "D", "De", "DoraemonCacheManager", "Dt" ]
query: @Test public void shouldVerifyStringVarargs() method of UsingVarargsTest
passage: @Test public void shouldVerifyStringVarargs() { mock.withStringVarargs(1); mock.withStringVarargs(2, "1", "2", "3"); mock.withStringVarargs(3, "1", "2", "3", "4"); verify(mock).withStringVarargs(1); verify(mock).withStringVarargs(2, "1", "2", "3"); try { verify(mock).withStringVarargs(2, "1", "2", "79", "4"); fail(); } catch (ArgumentsAreDifferent e) { } }
java
shouldVerifyStringVarargs
mockito-core/src/test/java/org/mockitousage/basicapi/UsingVarargsTest.java
mockito/mockito
stack-cqs-index
[]
[ "fail", "verify", "withStringVarargs" ]
query: public function currentWordPosition(): array method of DOMWordsIterator
passage: public function currentWordPosition(): array { return [$this->current, $this->offset, $this->words]; }
php
currentWordPosition
system/src/DOMWordsIterator.php
getgrav/grav
stack-cqs-index
[ "Truncator", "truncateWords" ]
[]
query: PlanNextStep does nothing for the JSON view as it is a hook for user-facing func (v *OperationJSON) PlanNextStep(planPath string, genConfigPath string) method of OperationJSON
passage: func (v *OperationJSON) PlanNextStep(planPath string, genConfigPath string) { }
go
PlanNextStep
internal/command/views/operation.go
opentofu/opentofu
stack-cqs-index
[ "PlanNextStep", "TestOperation_planNextStep", "TestOperation_planNextStepInAutomation", "opPlan" ]
[ "PlanNextStep", "Print", "Sprintf", "TrimSpace", "WordWrap", "outputColumns", "outputHorizRule" ]
query: public function setDbCriteria($criteria) method of CActiveRecord
passage: public function setDbCriteria($criteria) { $this->_c=$criteria; }
php
setDbCriteria
framework/db/ar/CActiveRecord.php
yiisoft/yii
stack-cqs-index
[ "CActiveDataProvider", "calculateTotalItemCount", "fetchData" ]
[]
query: def data_page method of List
passage: def data_page filtered_data[offset, limit] end
ruby
data_page
lib/stripe_mock/data/list.rb
stripe-ruby-mock/stripe-ruby-mock
stack-cqs-index
[]
[]
query: Stroke the outline with the given color. pub fn stroke<C>(self, color: C) -> Self where C: IntoLinSrgba<ColorScalar>, method of DrawingRect
passage: pub fn stroke<C>(self, color: C) -> Self where C: IntoLinSrgba<ColorScalar>, { self.map_ty(|ty| ty.stroke(color)) }
rust
stroke
nannou/src/draw/primitive/rect.rs
nannou-org/nannou
stack-cqs-index
[ "$n", "$s", "$y", "AIRGoogleMapPolyline", "Aa", "AcroForm", "Ai", "Annotations", "AppearanceGenerator", "At", "Ba", "BatchCanvasRectRenderer", "Be", "Border", "Canvas", "CanvasGraphics", "CanvasWatcher", "Cd", "Content", "ContentView" ]
[ "BasicStroke", "Some", "_setStrokeAttributes", "addContent", "addPath", "add_content", "append", "block_given?", "consumePath", "createColorStyle", "createGraphics", "createProperty", "default", "defaultIfNull", "dispose", "drawPath", "drawRect", "endPath", "getClippedPathBoundin...
query: def __init__( self, *, api_key constructor of OpenAIProvider
passage: ##nai | none = openai _ client else : self. _ client = none self. _ stored _ api _ key = api _ key self. _ stored _ base _ url = base _ url self. _ stored _ websocket _ base _ url = websocket _ base _ url self. _ stored _ organization = organization self. _ stored _ project = project if use _ responses is not none : self. _ use _ responses = use _ responses else : self. _ use _ responses = _ openai _ shared. get _ use _ responses _ by _ default ( ) if use _ responses _ websocket is not none : self. _ responses _ transport : _ openai _ shared. openairesponsestransport = ( " websocket " if use _ responses _ websocket else " http " ) else : self. _ responses _ transport = _ openai _ shared. get _ default _ openai _ responses _ transport ( ) # backward - compatibility shim for internal tests / diagnostics that inspect the legacy flag. self. _ use _ responses _ websocket = self. _ responses _ transport = = " websocket " # reuse websocket model wrappers so websocket transport can keep a persistent connection # when callers pass model names as strings through a shared provider. self. _ ws _ model _ cache _ by _ loop : weakref. weakkeydictionary [ asyncio. abstracteventloop, _ wsloopmodelcache ] = weakref. weakkeydictionary ( )
python
__init__
src/agents/models/openai_provider.py
openai/openai-agents-python
stack-cqs-index
[ "1. `__init__()`", "A", "A1z26", "A2AAgent", "A2aAgentExecutor", "ACEAccuracy", "ACEBenchmark", "ACEProcessAccuracy", "ACM", "ACNode", "ACRecordTemp", "ACStrategy", "ADDModel", "ADE20KDataset", "AES", "AES_CBC", "AFF", "AFNB", "AGNNConv", "AGTypeError" ]
[ "A2AChatFormatter", "A2AClient", "A2aAgentExecutorConfig", "A2aRemoteAgentConfig", "ACM", "ACNode", "ADDModel", "ADEPTError", "ADXR", "AES", "AES128", "AESCipher", "AES_KEY", "AES_set_decrypt_key", "AES_set_encrypt_key", "AFF", "AFNB", "AGNNConv", "AHB2Wishbone", "AHBFlash" ]
query: @Override public void add(Long couponId) method of UmsMemberCouponServiceImpl
passage: @ override public void add ( long couponid ) { umsmember currentmember = memberservice. getcurrentmember ( ) ; / / 信 , smscoupon coupon = couponmapper. selectbyprimarykey ( couponid ) ; if ( coupon = = null ) { asserts. fail ( " 不 " ) ; } if ( coupon. getcount ( ) < = 0 ) { asserts. fail ( " " ) ; } date now = new date ( ) ; if ( now. before ( coupon. getenabletime ( ) ) ) { asserts. fail ( " " ) ; } / / 的 smscouponhistoryexample couponhistoryexample = new smscouponhistoryexample ( ) ; couponhistoryexample. createcriteria ( ). andcouponidequalto ( couponid ). andmemberidequalto ( currentmember. getid ( ) ) ; long count = couponhistorymapper. countbyexample ( couponhistoryexample ) ; if ( count > = coupon. getperlimit ( ) ) { asserts. fail ( " " ) ; } / / 生 成 史 smscouponhistory couponhistory = new smscouponhistory ( ) ; couponhistory. setcouponid ( couponid ) ; couponhistory. setcouponcode ( generatecouponcode ( currentmember. getid ( ) ) ) ; couponhistory. setcreatetime ( now ) ; couponhistory. setmemberid ( currentmember. getid ( ) ) ; couponhistory. setmembernickname ( currentmember. getnickname ( ) ) ; / / 主 couponhistory. setgettype ( 1 ) ; / /
java
add
mall-portal/src/main/java/com/macro/mall/portal/service/impl/UmsMemberCouponServiceImpl.java
macrozheng/mall
stack-cqs-index
[ "$", "$E", "$I", "$M", "$Q", "$ZodCheckEndsWith", "$ZodCheckIncludes", "$ZodCheckStartsWith", "$ZodCheckStringFormat", "$ZodDiscriminatedUnion", "$ZodObject", "$ZodRecord", "$a", "$advancedStyleDeclarations", "$animatableDefinedProperties", "$b", "$computedResourceRequests", "$cons...
[ "$", "$9", "$mount", "$on", "$once", "$optional", "$t", "A", "ASSERT", "ASSERT_NE", "AXS", "AccessInfo", "Action", "Add", "AddConfig", "AddInt64", "AddPage", "AdditionCalculatorAction", "Addr", "AddrTools_parseIp" ]
query: def config method of Setup
passage: def config db = RSpec.current_example.metadata.fetch(:database, :postgresql) Apartment::Test.config['connections'][db.to_s].symbolize_keys end
ruby
config
spec/support/setup.rb
influitive/apartment
stack-cqs-index
[ "$LocationDecorator", "$O", "$ZodCatch", "$ZodRecord", "$_", "$ionicTemplateCache", "$x", "3. **Start Docker**", "3.1 Upgrade Guide", "3.1 升級指南", "3.1 升级指南", "3.5 Routes", "4. Route Conventions", "A", "AASM", "AIRGoogleMap", "ALSTM", "AM", "API", "APP" ]
[ "$derived", "@title files: 'config.json'", "AliasRedirects", "ArgumentParser", "Assets", "BaseEmbedderConfig", "BaseLlmConfig", "Builder", "CliRunner", "Client", "ClusterModuleZookeeperConfig", "Common Configuration Parameters", "ComponentResources", "Config", "Config Objects", "Config...
query: public function __construct( private readonly ResultToStringConverter $resultConverter, private readonly ExceptionPresenter $exceptionPresenter, $indentation = 0, private $newlineBefore = false, priva constructor of PrettySetupPrinter
passage: public function __construct( private readonly ResultToStringConverter $resultConverter, private readonly ExceptionPresenter $exceptionPresenter, $indentation = 0, private $newlineBefore = false, private $newlineAfter = false, ) { $this->indentText = str_repeat(' ', intval($indentation)); }
php
__construct
src/Behat/Behat/Output/Node/Printer/Pretty/PrettySetupPrinter.php
Behat/Behat
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: public function __invoke(?Error $error, \Closure $next): ?array method of AlwaysReportingErrorHandler
passage: public function __invoke(?Error $error, \Closure $next): ?array { if ($error === null) { return $next(null); } $this->exceptionHandler->report( $error->getPrevious() ?? $error, ); return $next($error); }
php
__invoke
src/Execution/AlwaysReportingErrorHandler.php
nuwave/lighthouse
stack-cqs-index
[ "AbstractErrorRendererTest", "AccessInterceptorScopeLocalizerFunctionalTest", "AccessInterceptorValueHolderFunctionalTest", "AnyParamCoreMiddlewareTest", "AssetUtilsTrait", "AuthorizationServerMiddlewareTest", "AutoloaderTest", "Automatic Validation", "Caller", "Changed", "ClosureValidationRule"...
[ "AccountConfigurationResource", "AdminAccountDetailResource", "Agent", "AiAssistantResult", "AiRequestContext", "AlterTable", "AnalyticsDomainEventAggregateId", "AnalyticsDomainEventBody", "AnalyticsDomainEventId", "AnalyticsDomainEventName", "Application", "ApplicationBooted", "ArgvInput", ...
query: std::string CallableTrait::debugString(char mode) const method of CallableTrait
passage: std::string CallableTrait::debugString(char mode) const { auto s = args[0]->debugString(mode); return fmt::format("CallableTrait[{},{}]", startswith(s, "Tuple") ? s.substr(5) : s, args[1]->debugString(mode)); }
cpp
debugString
codon/parser/ast/types/traits.cpp
exaloop/codon
stack-cqs-index
[ "SignatureParser", "__wbg___wbindgen_debug_string_5398f5bb970e0daa", "__wbg_get_imports", "__wbindgen_debug_string", "canWrapExpr", "consume", "consumeObjectType", "consumeType", "cythonizeFunction", "debugString", "dump", "getRealizationTypes", "populateStaticVarTypesLoop", "prepareVTable...
[ "back", "call", "charAt", "debugString", "emplace_back", "empty", "escape", "exec", "format", "getClass", "getIntStatic", "getName", "getPartialFunc", "getPartialMask", "getRetType", "getType", "insert", "isArray", "isGeneric", "isValue" ]
query: def add_annotation_type(name, image_path, rgb) method of EditViewSWT
passage: def add_annotation_type(name, image_path, rgb) rgb = Swt::Graphics::RGB.new(rgb[0], rgb[1], rgb[2]) @mate_text.addAnnotationType(name, image_path, rgb) end
ruby
add_annotation_type
plugins/edit_view_swt/lib/edit_view_swt.rb
danlucraft/redcar
stack-cqs-index
[ "AddAnnotations", "Annotation", "EditView", "Error", "MateExample", "Redcar", "SyntaxCheck", "add_annotation_type", "annotate", "run" ]
[ "addAnnotationType", "add_annotation_type", "expand_path", "icons_directory" ]
query: def initialize(options, log_destination = $stderr) method of Base
passage: def initialize(options, log_destination = $stderr) @dest = log_destination @show_timing = options[:debug] || options[:show_timing] end
ruby
initialize
lib/brakeman/logger.rb
presidentbeef/brakeman
stack-cqs-index
[ "$s", "13. Host-Worker Protocol", "A", "A2AServerRegistry", "A5Cipher", "A5KeyStreamGenerator", "A5KeyStreamGeneratorTest", "API", "ATNConfig", "ATNConfigSet", "AVSDeployer", "AWSFirehoseReceiverModuleProvider", "AbstractAdapter", "AbstractClassMetadataFactory", "AbstractDeadLetterQueueW...
[ "$", "ARRAY_SIZE", "AbstractModule", "Adam", "Add", "AddCaller", "AddThreadSelectorEventLoop", "AddToUsizeField", "AnnotationReader", "AnoymousAction", "Args", "ArrayAdapter", "ArrayLoader", "As", "Assert", "AssetsBundle", "AsyncAnthropic", "AsyncClient", "AsyncHttpxClientWrapper...
query: def set_tmp_dir(self, tmp_path) method of TrlTestCase
passage: def set_tmp_dir(self, tmp_path): self.tmp_dir = str(tmp_path)
python
set_tmp_dir
tests/testing_utils.py
huggingface/trl
stack-cqs-index
[ "keepalived_main" ]
[ "getenv", "str" ]
query: protected function buildModel($sourcePath,$options) method of ApiCommand
passage: protected function buildModel($sourcePath,$options) { $files=CFileHelper::findFiles($sourcePath,$options); $model=new ApiModel; $model->build($files); return $model; }
php
buildModel
build/commands/ApiCommand.php
yiisoft/yii
stack-cqs-index
[ "ApiCommand", "ModelLexer", "analyze", "run" ]
[ "ApiModel", "Index", "Model", "addColumn", "addIndex", "addInterface", "addRelationship", "addTrait", "array_map", "before", "build", "buildColumn", "columnNameFromRelationship", "config", "current", "disablePrimaryKey", "disableTimestamps", "empty", "enableSoftDeletes", "enabl...
query: fn on_internal( &mut self, w: &mut W, invocation_parser: Option<&InvocationParser>, internal_exec: &InternalExecution, input_invocation: Option<&VerbInvocation>, trigger_type: TriggerType, app_state: method of PreviewState
passage: ##g ( input _ invocation, internal _ exec, 1 ) ; self. mut _ preview ( ). move _ selection ( - count, true ) ; ok ( cmdresult : : keep ) } internal : : line _ down _ no _ cycle = > { let count = get _ arg ( input _ invocation, internal _ exec, 1 ) ; self. mut _ preview ( ). move _ selection ( count, false ) ; ok ( cmdresult : : keep ) } internal : : line _ up _ no _ cycle = > { let count = get _ arg ( input _ invocation, internal _ exec, 1 ) ; self. mut _ preview ( ). move _ selection ( - count, false ) ; ok ( cmdresult : : keep ) } internal : : page _ down = > { self. mut _ preview ( ). try _ scroll ( scrollcommand : : pages ( 1 ) ) ; ok ( cmdresult : : keep ) } internal : : page _ up = > { self. mut _ preview ( ). try _ scroll ( scrollcommand : : pages ( - 1 ) ) ; ok ( cmdresult : : keep ) } / / internal : : restore _ pattern = > { / / debug! ( " restore _ pattern " ) ; / / self. pending _ pattern = self. removed _ pattern. take ( ) ; / / ok ( cmdresult : : keep ) / / } internal : : panel _ left if self. removed _ pattern. is _ some ( ) = > { self. pending _ pattern = self. removed _ pattern. take ( ) ; ok ( cmdresult : : keep ) } internal : : panel _ left _ no _ open if self. removed _ pattern. is _ some ( ) = > { self. pending _ pattern = self. removed _ pattern. take ( ) ; ok ( cmdresult : : keep ) } internal : : panel _ right if self. filtered _ preview. is _ some ( ) = > { self. on _ pattern ( inputpattern : : none ( ), app _ state, con ) } internal : : panel _ right _ no _ open if self. filtered _
rust
on_internal
src/preview/preview_state.rs
Canop/broot
stack-cqs-index
[ "PanelState", "execute_verb", "on_command", "on_input_internal", "on_internal" ]
[ "DisplayError", "HandleInApp", "Message", "Ok", "Pages", "Some", "and_then", "as_ref", "clone", "collect", "components", "count", "debug", "default_location", "delete", "delete_all", "determine_path", "displayed_tree", "displayed_tree_mut", "error" ]
query: private _getOrCreateScopeForPath(path: (string | number)[]): Scope method of Atom
passage: private _getOrCreateScopeForPath(path: (string | number)[]): Scope { let curScope = this._rootScope for (const pathEl of path) { curScope = curScope.getOrCreateChild(pathEl) } return curScope }
typescript
_getOrCreateScopeForPath
packages/dataverse/src/Atom.ts
theatre-js/theatre
stack-cqs-index
[ "Atom", "onPathValueChange" ]
[ "getOrCreateChild" ]
query: Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. func (x *ServerReflectionRequest) GetHost() string method of ServerReflectionRequest
passage: func (x *ServerReflectionRequest) GetHost() string { if x != nil { return x.Host } return "" }
go
GetHost
reflection/grpc_reflection_v1alpha/reflection.pb.go
grpc/grpc-go
stack-cqs-index
[ "CUSBEndpoint", "Command", "CompletionRoutine", "Configure", "ConfigureHID", "DisablePort", "EnumeratePorts", "FromProto", "GetDescriptor", "GetFromDescriptor", "GetLanguageID", "GetSubdomainFull", "HandlePortStatusChange", "Host", "HostList", "InitTerminalControlInfo", "Initialize",...
[ "Contains", "Get", "GetDb", "GetHostById", "GetIntNoErr", "GetIntNoErrByStr", "GetMapKeys", "Index", "Load", "NewReader", "Parse", "ReadRequest", "ServeJSON", "append", "make", "readRequest" ]
query: fn bytes() function bytes
passage: fn bytes() { let mut reqs = Vec::new(); let sizes = [10, 100, 1000, 10000, 100_000]; for size in &sizes { let expect_hdrs = Some(vec![ Header::new(b":status", b"200"), Header::new(b"content-length", size.to_string().as_bytes()), ]); let testpoint = format!("{}/{}", "bytes", size); let url = endpoint(Some(&testpoint)); reqs.push(Http3Req::new("GET", &url, None, expect_hdrs)); } assert_eq!(Ok(()), do_test(reqs, assert_headers_only, true)); }
rust
bytes
tools/http3_test/tests/httpbin_tests.rs
cloudflare/quiche
stack-cqs-index
[ "ABogus", "AFM", "Actions", "Addressable", "Admin", "AflUnicornEngine", "Agent", "AifcWriter", "Asm", "AssetBundleManager", "AsymmetricDecryptor", "AsymmetricEncryptor", "AsymmetricJWTSigner", "AsyncReadPacket", "AsyncSocket", "AttachmentController", "Auth", "AuthorizationHandler",...
[ "Add", "Base64", "Binary", "BodyReadError", "ByteArray", "ByteArrayOutputStream", "Debug", "Err", "Error", "Errorf", "Failure", "Field25519", "FileIOUtils", "Incomplete", "Ok", "Pointer", "RequestError", "Size", "Slice", "Some" ]
query: def test_base_types method of RBS::TypeParsingTest
passage: of types : : bases : : class, type assert _ equal " class ", type. location. source end parser. parse _ type ( " any " ). yield _ self do | type | assert _ instance _ of types : : alias, type assert _ equal " any ", type. location. source end end
ruby
test_base_types
test/rbs/type_parsing_test.rb
ruby/rbs
stack-cqs-index
[]
[ "assert_equal", "assert_instance_of", "location", "parse_type", "source", "yield_self" ]
query: Good for: Handling errors for specific operations async function getProfileWithFallback(userId) function getProfileWithFallback
passage: async function getProfileWithFallback(userId) { const user = await fetchUser(userId) // Only this operation has fallback behavior const posts = await fetchPosts(userId).catch(() => []) // This will still throw if it fails const friends = await fetchFriends(userId) return { user, posts, friends } }
javascript
getProfileWithFallback
docs/concepts/async-await.mdx
leonardomso/33-js-concepts
stack-cqs-index
[]
[]
query: evaluateBinaryExpression(e,t) method evaluateBinaryExpression
passage: evaluatebinaryexpression ( e, t ) { const n = this. evaluate ( e. left, t ) ; switch ( e. operator. value ) { case " and " : return n. _ _ bool _ _ ( ). value? this. evaluate ( e. right, t ) : n ; case " or " : return n. _ _ bool _ _ ( ). value? n : this. evaluate ( e. right, t ) } const r = this. evaluate ( e. right, t ) ; switch ( e. operator. value ) { case " = = " : return new j ( n. value = = r. value ) ; case "! = " : return new j ( n. value! = r. value ) } if ( n instanceof k | | r instanceof k ) throw new error ( " cannot perform operation on undefined values " ) ; if ( n instanceof x | | r instanceof x ) throw new error ( " cannot perform operation on null values " ) ; if ( n instanceof n & & r instanceof n ) switch ( e. operator. value ) { case " + " : return new n ( n. value + r. value ) ; case " - " : return new n ( n. value - r. value ) ; case " * " : return new n ( n. value * r. value ) ; case " / " : return new n ( n. value / r. value ) ; case " % " : return new n ( n. value % r. value ) ; case " < " : return new j ( n. value < r. value ) ; case " > " : return new j ( n. value > r. value ) ; case " > = " : return new j ( n. value > = r. value ) ; case " < = " : return new j ( n. value < = r. value ) } else if ( n instanceof u & & r instanceof u ) { if ( " + " = = = e. operator. value ) return new u ( n. value. concat ( r. value ) ) } else if ( r instanceof u ) { const t = void 0! = = r. value. find ( ( e =
javascript
evaluateBinaryExpression
webui/js/transformers@3.0.2.js
agent0ai/agent-zero
stack-cqs-index
[ "evaluate" ]
[ "__bool__", "concat", "evaluate", "find", "has", "includes" ]
query: def build_body(source = "") method of HTTPRequestBodyTest
passage: def build_body(source = "") HTTP::Request::Body.new(source) end
ruby
build_body
test/http/request/body_test.rb
httprb/http
stack-cqs-index
[ "EPUBMaker", "HTTPRequestBodyTest", "IDGXMLMaker", "ReVIEW", "TEXTMaker", "WEBMaker", "_M.do_request", "from_http_request", "generate_html_files", "generate_idgxml_files", "generate_text_files", "produce", "test_chunked_encoding_header_preserved", "test_each_return_value_when_body_is_a_str...
[ "Ok", "add_item", "app_error", "as_str", "build_binary_body", "build_chap", "build_form_body", "build_graphql_body", "build_multipart_body", "build_part", "build_text_body", "chapters", "cleanup_graphimg", "contains_key", "dirname", "each", "error!", "file?", "find", "into" ]
query: private void addSyncConfigToCache(String configName, ESSyncConfig config) method of ESAdapter
passage: private void addsyncconfigtocache ( string configname, essyncconfig config ) { properties envproperties = this. envproperties ; schemaitem schemaitem = sqlparser. parse ( config. getesmapping ( ). getsql ( ) ) ; config. getesmapping ( ). setschemaitem ( schemaitem ) ; druiddatasource datasource = datasourceconfig. data _ sources. get ( config. getdatasourcekey ( ) ) ; if ( datasource = = null | | datasource. geturl ( ) = = null ) { throw new runtimeexception ( " no data source found : " + config. getdatasourcekey ( ) ) ; } pattern pattern = pattern. compile ( ". * : (. * ) : / /. * / (. * ) \ \?. * $ " ) ; matcher matcher = pattern. matcher ( datasource. geturl ( ) ) ; if (! matcher. find ( ) ) { throw new runtimeexception ( " not found the schema of jdbc - url : " + config. getdatasourcekey ( ) ) ; } string schema = matcher. group ( 2 ) ; schemaitem. getaliastableitems ( ). values ( ). foreach ( tableitem - > { map < string, essyncconfig > essyncconfigmap ; string schemakey = tableitem. getschema ( ) = = null? schema : tableitem. getschema ( ) ; if ( envproperties! = null & &! " tcp ". equalsignorecase ( envproperties. getproperty ( " canal. conf. mode " ) ) ) { essyncconfigmap = dbtableessyncconfig. computeifabsent ( stringutils. trimtoempty ( config. getdestination ( ) ) +
java
addSyncConfigToCache
client-adapter/escore/src/main/java/com/alibaba/otter/canal/client/adapter/es/core/ESAdapter.java
alibaba/canal
stack-cqs-index
[ "ClickHouseAdapter", "ESAdapter", "HbaseAdapter", "KuduAdapter", "PhoenixAdapter", "RdbAdapter", "TablestoreAdapter", "addConfig", "updateConfig" ]
[ "DefaultCredentials", "DefaultTableStoreWriter", "RuntimeException", "compile", "computeIfAbsent", "create", "equalsIgnoreCase", "find", "forEach", "get", "getAliasTableItems", "getDataSourceKey", "getDatabase", "getDbMapping", "getDestination", "getEsMapping", "getGroupId", "getHb...
query: fn live(&self) -> bool method of TabsTransitionState
passage: fn live(&self) -> bool { self.current_time < self.duration }
rust
live
druid/src/widget/tabs.rs
linebender/druid
stack-cqs-index
[ "AttributeGroupResource", "AttributesRelationManager", "Built-in Components", "ChannelRelationManager", "ChannelResource", "CollectionGroupResource", "CommandsAppTest", "Config", "DiscountResource", "DisplaysOrderAddresses", "EditProduct", "HasShieldFormComponents", "ManageOrder", "ManageP...
[ "LiveRepository", "WebSocket", "`LiveRepository`", "app", "append", "container_prefix", "defineSource", "execute", "extend", "listen", "live", "map", "myFetch", "on_roles", "println", "propagateLiveCount", "proxy_exec", "proxy_hosts", "roles", "run" ]
query: @Override public int compare(String str1, String str2) method of StringComparator
passage: @Override public int compare(String str1, String str2) { return Integer.compare(str2.length(), str1.length()); }
java
compare
connector/core/src/main/java/com/alibaba/otter/canal/connector/core/filter/AviaterRegexFilter.java
alibaba/canal
stack-cqs-index
[ "$CompileProvider", "--no-slow-hash", "A", "AMQPWriter", "ASet", "AbstractDelayEvent", "AbstractOperationTreeBuilder", "AbstractRunTests", "Acronym", "AdaptiveMergeSortTest", "AdministersTest", "AdvancedMatcher", "App", "AppHelper", "ArrayIndexedComparator", "ArrayUtil", "ArtResizer"...
[ "$", "ATBL", "Ae", "After", "Atoi", "AuthType", "Before", "BigInteger", "Bool", "BufferedReader", "BytesIO", "CFRange", "CFStringCompareWithOptionsAndLocale", "CanConvert", "Check", "Column", "Comparable", "Comparator", "Compare", "Complex" ]
query: (e,t)=> function Bf
passage: (e,t)=>{if(t.startsWith(`Format:`)){e.styleFormat=t;return}if(t.startsWith(`Style:`)){e.styleLines.push(t);return}e.preEventLines.push(t)}
javascript
Bf
dist/vot-min.user.js
ilyhalight/voice-over-translation
stack-cqs-index
[ "$f", "Df", "Ds", "Ef", "Ep", "HN", "Hf", "Hg", "IN", "Ip", "Nf", "Pb", "Rf", "SS", "So", "VU", "Yf", "e", "fn", "getProjectionStyles" ]
[ "$", "$b", "$n", "$watch", "$watchGroup", "Ac", "Array", "At", "Bt", "Cc", "Cn", "D", "Df", "E", "Ec", "Ff", "H", "Il", "Jc", "Ke" ]
query: func TestDirStructSize(t *testing.T) function TestDirStructSize
passage: func TestDirStructSize(t *testing.T) { t.Logf("Dir struct has size %d bytes", unsafe.Sizeof(Dir{})) }
go
TestDirStructSize
vfs/dir_test.go
rclone/rclone
stack-cqs-index
[]
[ "Logf", "Sizeof" ]
query: fn validate_setup_setting_path(name: &str, setting_path: &str) -> Result<(), ExtensionError> method of ExtensionManager
passage: fn validate_setup_setting_path(name: &str, setting_path: &str) -> Result<(), ExtensionError> { if Self::is_allowed_setup_setting_path(name, setting_path) { return Ok(()); } Err(ExtensionError::Other(format!( "Invalid setting_path '{}' for extension '{}': only 'extensions.{}.*' or approved settings may be written", setting_path, name, name ))) }
rust
validate_setup_setting_path
src/extensions/manager.rs
nearai/ironclaw
stack-cqs-index
[ "configure" ]
[ "Err", "Ok", "Other", "format", "is_allowed_setup_setting_path" ]
query: bool ItlIwn:: iwn_attach(struct iwn_softc *sc, struct pci_attach_args *pa) method of ItlIwn
passage: _ fwmem ( sc ) )! = 0 ) { xylog ( " : could not allocate memory for firmware \ n " ) ; return false ; } / * allocate " keep warm " page. * / if ( ( error = iwn _ alloc _ kw ( sc ) )! = 0 ) { xylog ( " : could not allocate keep warm page \ n " ) ; goto fail1 ; } / * allocate ict table for 5000 series. * / if ( sc - > hw _ type! = iwn _ hw _ rev _ type _ 4965 & & ( error = iwn _ alloc _ ict ( sc ) )! = 0 ) { xylog ( " : could not allocate ict table \ n " ) ; goto fail2 ; } / * allocate tx scheduler " rings ". * / if ( ( error = iwn _ alloc _ sched ( sc ) )! = 0 ) { xylog ( " : could not allocate tx scheduler rings \ n " ) ; goto fail3 ; } / * allocate tx rings ( 16 on 4965agn, 20 on > = 5000 ). * / for ( i = 0 ; i < sc - > ntxqs ; i + + ) { if ( ( error = iwn _ alloc _ tx _ ring ( sc, & sc - > txq [ i ], i ) )! = 0 ) { xylog ( " : could not allocate tx ring % d \ n ", i ) ; goto fail4 ; } } / * allocate rx ring. * / if ( ( error = iwn _ alloc _ rx _ ring ( sc, & sc - > rxq ) )! = 0 ) { xylog ( " : could not allocate rx ring \ n " ) ; goto fail4 ; } / * clear pending interrupts. * / iwn _ write ( sc, iwn _ int, 0xffffffff ) ; / * count the number of available chains. * / sc - > ntxchains = ( ( sc - > txchainmask > > 2 ) &
cpp
iwn_attach
itlwm/hal_iwn/ItlIwn.cpp
OpenIntelWireless/itlwm
stack-cqs-index
[ "attach" ]
[ "DEVNAME", "DPRINTF", "IWN_READ", "IWN_WRITE", "XYLog", "addEventSource", "configRead16", "enable", "ether_sprintf", "filterInterruptEventSource", "getController", "getInterruptType", "ieee80211_ifattach", "ieee80211_media_init", "if_attach", "iwn4965_attach", "iwn5000_attach", "iw...
query: def test_caching_javascript_include_tag_when_caching_off method of AssetTagHelperTest
passage: / javascript " > < / script > \ n < script src = " / javascripts / controls. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / application. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / bank. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / robber. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / subdir / subdir. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / version. 1. 0. js " type = " text / javascript " > < / script > ), javascript _ include _ tag ( : all, : cache = > true, : recursive = > true ) ) assert! file. exist? ( file. join ( actionview : : helpers : : assettaghelper : : javascripts _ dir, ' all. js ' ) ) assert _ dom _ equal ( % ( < script src = " / javascripts / prototype. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / effects. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / dragdrop. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / controls. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / application. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / bank. js " type = " text / javascript " > < / script > \ n < script src = " / javascripts / robber. j
ruby
test_caching_javascript_include_tag_when_caching_off
vendor/rails/actionpack/test/template/asset_tag_helper_test.rb
insoshi/insoshi
stack-cqs-index
[]
[ "assert", "assert_dom_equal", "exist?", "javascript_include_tag", "join", "perform_caching" ]
query: fn drop(&mut self, self_: Resource<RequestOptions>) -> wasmtime::Result<()> method of WasiHttpCtxView
passage: fn drop(&mut self, self_: Resource<RequestOptions>) -> wasmtime::Result<()> { latest::http::types::HostRequestOptions::drop(self, self_) }
rust
drop
crates/factor-outbound-http/src/wasi_2023_11_10.rs
spinframework/spin
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: def initialize(bypass: false, directory: "/test", memory_config: nil) method of MockAgentDefinition
passage: def initialize(bypass: false, directory: "/test", memory_config: nil) @bypass_permissions = bypass @directory = directory @memory_config = memory_config end
ruby
initialize
test/swarm_memory/adapters/virtual_entries_test.rb
parruda/swarm
stack-cqs-index
[ "$s", "13. Host-Worker Protocol", "A", "A2AServerRegistry", "A5Cipher", "A5KeyStreamGenerator", "A5KeyStreamGeneratorTest", "API", "ATNConfig", "ATNConfigSet", "AVSDeployer", "AWSFirehoseReceiverModuleProvider", "AbstractAdapter", "AbstractClassMetadataFactory", "AbstractDeadLetterQueueW...
[ "$", "ARRAY_SIZE", "AbstractModule", "Adam", "Add", "AddCaller", "AddThreadSelectorEventLoop", "AddToUsizeField", "AnnotationReader", "AnoymousAction", "Args", "ArrayAdapter", "ArrayLoader", "As", "Assert", "AssetsBundle", "AsyncAnthropic", "AsyncClient", "AsyncHttpxClientWrapper...
query: function ThirdPartyAgentPage() function ThirdPartyAgentPage
passage: function thirdpartyagentpage ( ) { const { iszh } = uselanguage ( ) return ( < div > < h1 classname = " text - 4xl font - bold mb - 6 " > { iszh? ' 三 方 agent ' : ' third - party agent integration ' } < / h1 > < p classname = " mb - 6 leading - relaxed text - gray - 600 dark : text - gray - 300 " > { iszh? ' pageagent 的 手 agent , 成 agent 的 和 手 。 ' : ' integrate pageagent as a tool in your support assistant or agent system, becoming the eyes and hands of your agent. ' } < / p > < heading id = " integration - method " classname = " text - 2xl font - bold mb - 4 " > { iszh? ' 成 方 ' : ' integration method ' } < / heading > < div classname = " space - y - 4 mb - 6 " > < div classname = " p - 4 bg - green - 50 dark : bg - green - 900 / 20 rounded - lg " > < h3 classname = " text - lg font - semibold mb - 2 text - green - 900 dark : text - green - 300 " > 1. function calling < / h3 > < codeeditor code = { ` / / $ { iszh? ' 定 ' : ' define tool ' } const pageagenttool = { name : " page _ agent ", description : " $ { iszh? ' 行 ' : ' execute web page operations ' } ", parameters : { type : " object ", properties : { instruction : { type : " string ", description : " $ { iszh? ' ' : ' operation instruction ' } " } }, required : [ " instruction " ] }, execute : async ( params ) = > { const result = await pageagent. execute ( params. instruction ) return { success : result. success, message : result. data } } } / / $ { iszh? '
typescript
ThirdPartyAgentPage
packages/website/src/pages/docs/features/third-party-agent/page.tsx
alibaba/page-agent
stack-cqs-index
[]
[ "useLanguage" ]
query: public function testValueMatchesMsgIdSpec() method of IdentificationHeaderTest
passage: public function testValueMatchesMsgIdSpec() { /* -- RFC 2822, 3.6.4. message-id = "Message-ID:" msg-id CRLF in-reply-to = "In-Reply-To:" 1*msg-id CRLF references = "References:" 1*msg-id CRLF msg-id = [CFWS] "<" id-left "@" id-right ">" [CFWS] id-left = dot-atom-text / no-fold-quote / obs-id-left id-right = dot-atom-text / no-fold-literal / obs-id-right no-fold-quote = DQUOTE *(qtext / quoted-pair) DQUOTE no-fold-literal = "[" *(dtext / quoted-pair) "]" */ $header = new IdentificationHeader('Message-ID', 'id-left@id-right'); $this->assertEquals('<id-left@id-right>', $header->getBodyAsString()); }
php
testValueMatchesMsgIdSpec
Tests/Header/IdentificationHeaderTest.php
symfony/mime
stack-cqs-index
[]
[ "IdentificationHeader", "assertEquals", "getBodyAsString" ]
query: constexpr int dblsqr(int n) function dblsqr
passage: constexpr int dblsqr(int n) { return 2 * sqr(n); // Error: Enclosing function is not consteval // and sqr(n) is not a constant }
cpp
dblsqr
Units/parser-cxx.r/properties-consteval.d/input.cc
universal-ctags/ctags
stack-cqs-index
[]
[ "sqr" ]
query: public DashboardUserAPI(Main main) constructor of DashboardUserAPI
passage: public DashboardUserAPI(Main main) { super(main, RECIPE_ID.DASHBOARD.toString()); }
java
DashboardUserAPI
src/main/java/io/supertokens/webserver/api/dashboard/DashboardUserAPI.java
supertokens/supertokens-core
stack-cqs-index
[ "Webserver", "setupRoutes" ]
[ "Gson", "JsonObject", "JsonParser", "ServletException", "UserIdNotFoundException", "add", "addProperty", "deleteUserWithEmail", "deleteUserWithUserId", "enforcePublicTenantAndGetPublicTenantStorage", "getAppIdentifier", "getAsJsonObject", "getDashboardUserByEmail", "getQueryParamOrThrowErr...
query: private function buildNameGenerator(): NameGeneratorInterface method of FeatureSet
passage: private function buildNameGenerator(): NameGeneratorInterface { if ($this->enablePecl) { return new PeclUuidNameGenerator(); } return (new NameGeneratorFactory())->getGenerator(); }
php
buildNameGenerator
src/FeatureSet.php
ramsey/uuid
stack-cqs-index
[ "FeatureSet", "__construct" ]
[ "NameGeneratorFactory", "PeclUuidNameGenerator", "getGenerator" ]
query: def record_and_check_match( prompt function record_and_check_match
passage: def record_and_check_match( prompt: Any, sampled: str, expected: Union[str, list[str], tuple[str]], separator: Callable[[str], bool] = None, options: Optional[list[str]] = None, ): """ Records and checks if a sampled response from a CompletionFn matches the expected result. Args: prompt: The input prompt. sampled: The sampled response from the model. expected: The expected response or list of responses. separator: Optional function to check if a character is a separator. options: Optional list of options to match against the sampled response. Returns: The matched option or None if no match found. """ if isinstance(expected, tuple): expected = list(expected) elif not isinstance(expected, list): expected = [expected] if options is None: options = expected picked = None for option in options: if not sampled.startswith(option): continue if ( separator is not None and len(sampled) > len(option) and not separator(sampled[len(option)]) ): continue picked = option break result = { "prompt": prompt, "sampled": sampled, "options": options, "picked": picked, } match = picked in expected result["expected"] = expected result["match"] = match record_match(match, expected=expected, picked=picked, sampled=sampled, options=options) return picked
python
record_and_check_match
evals/api.py
openai/evals
stack-cqs-index
[ "Lambada", "Match", "MatchWithSolvers", "MultipleChoice", "SkillAcquisition", "_eval_non_retrieval_sample", "_eval_retrieval_sample", "eval_sample" ]
[ "isinstance", "len", "list", "record_match", "separator", "startswith" ]
query: fn from(value: TuiBindings) -> Self method of Bindings
passage: , address _ mode _ both : keybinding : : from ( value. address _ mode _ both ), toggle _ freeze : keybinding : : from ( value. toggle _ freeze ), toggle _ chart : keybinding : : from ( value. toggle _ chart ), toggle _ map : keybinding : : from ( value. toggle _ map ), toggle _ flows : keybinding : : from ( value. toggle _ flows ), expand _ privacy : keybinding : : from ( value. expand _ privacy ), contract _ privacy : keybinding : : from ( value. contract _ privacy ), expand _ hosts : keybinding : : from ( value. expand _ hosts ), contract _ hosts : keybinding : : from ( value. contract _ hosts ), expand _ hosts _ max : keybinding : : from ( value. expand _ hosts _ max ), contract _ hosts _ min : keybinding : : from ( value. contract _ hosts _ min ), chart _ zoom _ in : keybinding : : from ( value. chart _ zoom _ in ), chart _ zoom _ out : keybinding : : from ( value. chart _ zoom _ out ), clear _ trace _ data : keybinding : : from ( value. clear _ trace _ data ), clear _ dns _ cache : keybinding : : from ( value. clear _ dns _ cache ), clear _ selection : keybinding : : from ( value. clear _ selection ), toggle _ as _ info : keybinding : : from ( value. toggle _ as _ info ), toggle _ hop _ details : keybinding : : from ( value. toggle _ hop _ details ), quit : keybinding : : from ( value. quit ), quit _ preserve _ screen : keybinding : : from ( value. quit _ preserve _ screen ), } }
rust
from
crates/trippy-tui/src/frontend/binding.rs
fujiapple852/trippy
stack-cqs-index
[ "$", "$E", "$T", "$ZodUnion", "$a", "$advancedStyleDeclarations", "$availableProps", "$availableVariables", "$breakpointOptions", "$c", "$computedStyleDeclarations", "$d", "$e", "$getSelections", "$handlePointerDown", "$handlePointerMove", "$handlePointerUp", "$i", "$loadingState...
[ "A", "Access", "AccessDenied", "Acl", "AclRestrictions", "Action", "ActiveLocks", "Adapter", "Address", "AddressBook", "AddressGroup", "AddressList", "Album", "Alt", "AmbiguousCssModuleClass", "Any", "AnyElement", "AnyhowError", "Append", "Approve" ]
query: Emit all collected warnings via LogCollector def emit_warnings(agent_name) method of ClaudeCodeAgentAdapter
passage: def emit_warnings(agent_name) return if @warnings.empty? @warnings.each do |warning| LogCollector.emit( type: "claude_code_conversion_warning", agent: agent_name, message: warning, ) end end
ruby
emit_warnings
lib/swarm_sdk/claude_code_agent_adapter.rb
parruda/swarm
stack-cqs-index
[ "ClaudeCodeAgentAdapter", "SwarmSDK", "parse" ]
[ "each", "emit", "empty?" ]
query: func (c *Command) enforceFlagGroupsForCompletion() method of Command
passage: the group are set, mark all flags in the group / / as required if! isset { for _, fname : = range strings. split ( flaglist, " " ) { _ = c. markflagrequired ( fname ) } } } / / if a flag that is mutually exclusive to others is present, we hide the other / / flags of that group so the shell completion does not suggest them for flaglist, flagnameandstatus : = range mutuallyexclusivegroupstatus { for flagname, isset : = range flagnameandstatus { if isset { / / one of the flags of the mutually exclusive group is set, mark the other ones as hidden / / don ' t mark the flag that is already set as hidden because it may be an / / array or slice flag and therefore must continue being suggested for _, fname : = range strings. split ( flaglist, " " ) { if fname! = flagname { flag : = c. flags ( ). lookup ( fname ) flag. hidden = true } } } } } }
go
enforceFlagGroupsForCompletion
flag_groups.go
spf13/cobra
stack-cqs-index
[ "getCompletions" ]
[ "Flags", "Lookup", "MarkFlagRequired", "Split", "VisitAll", "processFlagForGroupAnnotation" ]
query: function condense( unmatched, map, filter, context, xml ) function condense
passage: function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( ( elem = unmatched[ i ] ) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { map.push( i ); } } } } return newUnmatched; }
typescript
condense
src/static/js/vendors/jquery.ts
ether/etherpad-lite
stack-cqs-index
[ "Ene", "RichTextRun", "TestCell", "TestFont", "Usage at a glance", "condenseWhitespace", "hydrate", "matcherFromGroupMatchers", "onattribend", "refreshEvents", "setMatcher", "test_condense", "test_initialiation", "tokenizer", "upload" ]
[ "charCodeAt", "clone", "copy", "define", "expect", "filter", "find", "intersect_constraints", "isWhitespace", "iter_mut", "n", "push", "reduce", "refreshEvents", "save", "vec" ]
query: function a(t) function a
passage: function a(t){return(new Date).getTime()-t.getTime()}
javascript
a
public/assets/application-efad721948fc6d5a972961aa1c62d871.js
iobridge/thingspeak
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: public function testUtcTimeWithoutSeconds(): void method of X509Test
passage: public function testutctimewithoutseconds ( ) : void { $ test = ' - - - - - begin certificate - - - - - miigfdccbpygawibagidkchvma0gcsqgsib3dqebbquamihcmqswcqydvqqgewjvuzeqma4ga1ue cbmhqxjpem9uytetmbega1uebxmku2nvdhrzzgfsztelmcmga1uechmcu3rhcmzpzwxkifrly2hu b2xvz2llcywgsw5jlje5mdcga1uecxmwahr0cdovl2nlcnrpzmljyxrlcy5zdgfyzmllbgr0zwno lmnvbs9yzxbvc2l0b3j5mtewlwydvqqdeyhtdgfyzmllbgqgu2vjdxjlienlcnrpzmljyxrpb24g qxv0ag9yaxr5mrewdwydvqqfewgxmdy4odqzntacfwsxndaxmdcwmdawwhcnmtywndaxmdcwmdaw wjcb6zetmbegcysgaqqbgjc8agedewjvuzeymbygcysgaqqbgjc8agecewdbcml6b25hmr0wgwyd vqqpexrqcml2yxrlie9yz2fuaxphdglvbjeumbiga1uebrmlui0xnzi0nzqxltyxczajbgnvbayt alvtmrawdgydvqqiewdbcml6b25hmrmweqydvqqhewpty290dhnkywxlmsqwigydvqqkexttdgfy zmllbgqgvgvjag5vbg9nawvzlcbmtemxkzapbgnvbamtinzhbglklnnmas5jyxrlc3quc3
php
testUtcTimeWithoutSeconds
tests/Unit/File/X509/X509Test.php
phpseclib/phpseclib
stack-cqs-index
[]
[ "assertEquals", "load" ]
query: @BeforeEach void setUp() method of IndexQueryTest
passage: @BeforeEach void setUp() { // insert some data for query tests var fake1 = createFake("fake1"); fake1.setStringValue("string1"); var fake2 = createFake("fake2"); fake2.setStringValue("string2"); var fake3 = createFake("fake3"); fake3.setStringValue("string3"); insert(fake1); insert(fake2); insert(fake3); }
java
setUp
application/src/test/java/run/halo/app/extension/index/SingleValueIndexTest.java
halo-dev/halo
stack-cqs-index
[ "AAOTest", "ACLTest", "AIOSMTPActionTest", "ASTBuilderTest", "AbstractBladeTestCase", "AbstractConsumerTest", "AbstractDispatcherLoopTest", "AbstractExternalTaskTestCase", "AbstractFieldFunctionalTest", "AbstractFixerTestCase", "AbstractGeneratorCommand", "AbstractHttpTest", "AbstractInjecto...
[ "A", "A5Cipher", "A5KeyStreamGenerator", "ACL", "AVLTree", "AWSStaticCredentialsProvider", "AbstractGroup", "AbstractHandler", "AbstractListAdapter", "AbstractMigrationStub", "AbstractModule", "AbstractPermissionValidatorImpl", "AbstractVIPResource", "AcceptParser", "AcceptSuggestionActi...
query: public Builder stableKey(String stableKey) method of Builder
passage: public Builder stableKey(String stableKey) { this.stableKey = stableKey; return this; }
java
stableKey
Android/dokit/src/main/java/com/didichuxing/doraemonkit/picasso/Request.java
didi/DoKit
stack-cqs-index
[ "RequestCreator", "stableKey" ]
[ "stableKey" ]
query: CamelCase returns the CamelCased name. func CamelCase(s string) string function CamelCase
passage: func CamelCase(s string) string { if s == "" { return "" } t := make([]byte, 0, 32) i := 0 if s[0] == '_' { // Need a capital letter; drop the '_'. t = append(t, 'X') i++ } // Invariant: if the next letter is lower case, it must be converted // to upper case. // That is, we process a word at a time, where words are marked by _ or // upper case letter. Digits are treated as words. for ; i < len(s); i++ { c := s[i] if c == '_' && i+1 < len(s) && isASCIILower(s[i+1]) { continue // Skip the underscore in s. } if isASCIIDigit(c) { t = append(t, c) continue } // Assume we have a letter now - if not, it's a bogus identifier. // The next word is a sequence of characters that must start upper case. if isASCIILower(c) { c ^= ' ' // Make it a capital letter. } t = append(t, c) // Guaranteed not lower case. // Accept lower case sequence that follows. for i+1 < len(s) && isASCIILower(s[i+1]) { i++ t = append(t, s[i]) } } return string(t) }
go
CamelCase
cmd/protoc-gen-micro/generator/generator.go
micro/go-micro
stack-cqs-index
[ "BenchmarkCamelCase", "CamelCaseSlice", "Configuration", "Custom filters", "DescName", "GenMain", "TestAllCase", "TestCamelCase", "buildServiceSpec", "defaultConstantName", "genCallGroup", "genCallInCompatibility", "genFunction", "genFunctions", "genLogicFunction", "genServerGroup", ...
[ "Capitalize", "Join", "ToLower", "Words", "[play", "append", "article", "before", "camel", "describe", "getAttribute", "getFillable", "isASCIIDigit", "isASCIILower", "keyTransform", "len", "make", "setAttribute", "snake", "string" ]
query: First returns the first Metadata entity from the query. func (mq *MetadataQuery) First(ctx context.Context) (*Metadata, error) method of MetadataQuery
passage: func (mq *MetadataQuery) First(ctx context.Context) (*Metadata, error) { nodes, err := mq.Limit(1).All(setContextOp(ctx, mq.ctx, "First")) if err != nil { return nil, err } if len(nodes) == 0 { return nil, &NotFoundError{metadata.Label} } return nodes[0], nil }
go
First
ent/metadata_query.go
cloudreve/cloudreve
stack-cqs-index
[ "Acquire", "AddBaseMenu", "AddChunk", "AddFunc", "AddMRUItem", "AddMenuAuthority", "AdminDeleteUserSubscription", "AdminInvalidateUserSubscription", "AnonymousGroup", "ApiGetStreamInfo", "ApiOverwrite", "ApiReadDirectory", "BenchmarkFirst", "BenchmarkItFirst", "BindWithProviderMethodModu...
[ "Acquire", "AddClause", "Aggregator", "All", "BuildCondition", "Context", "Error", "Execute", "FailWithMessage", "First", "Get", "Indirect", "Interface", "Issues", "Kind", "Len", "Limit", "Model", "New", "OkWithDetailed" ]
query: public static HttpRequestForOAuthProvider.Response proxyFormPOST(Main main, HttpServletRequest req, HttpServletResponse resp, AppIdentifier appIdentifier, Storage storage, String clientIdToCheck, Stri method of OAuthProxyHelper
passage: public static HttpRequestForOAuthProvider.Response proxyFormPOST(Main main, HttpServletRequest req, HttpServletResponse resp, AppIdentifier appIdentifier, Storage storage, String clientIdToCheck, String path, boolean proxyToAdmin, boolean camelToSnakeCaseConversion, Map<String, String> formFields, Map<String, String> headers) throws IOException, ServletException { try { return OAuth.doOAuthProxyFormPOST(main, appIdentifier, storage, clientIdToCheck, path, proxyToAdmin, camelToSnakeCaseConversion, formFields, headers); } catch (OAuthClientNotFoundException e) { handleOAuthClientNotFoundException(resp); } catch (OAuthAPIException e) { handleOAuthAPIException(resp, e); } catch (StorageQueryException | TenantOrAppNotFoundException | FeatureNotEnabledException | InvalidConfigException e) { throw new ServletException(e); } return null; }
java
proxyFormPOST
src/main/java/io/supertokens/webserver/api/oauth/OAuthProxyHelper.java
supertokens/supertokens-core
stack-cqs-index
[ "OAuthTokenAPI", "OAuthTokenIntrospectAPI", "RevokeOAuthTokenAPI", "doPost", "handle" ]
[ "ServletException", "doOAuthProxyFormPOST", "handleOAuthAPIException", "handleOAuthClientNotFoundException" ]
query: void pipe_buffer::detach_sender() method of pipe_buffer
passage: void pipe_buffer::detach_sender() { std::lock_guard<mutex> guard(mtx); if (sender) { sender = nullptr; if (receiver) poll_wake(receiver, POLLHUP); may_read.wake_all(); } }
cpp
detach_sender
libc/pipe_buffer.cc
cloudius-systems/osv
stack-cqs-index
[ "close", "pipe_writer", "shutdown_af_local", "~pipe_writer" ]
[ "poll_wake", "wake_all" ]
query: ( string: string ): Map<Instance["id"], Instance> => function parseInstanceData
passage: ( string: string ): Map<Instance["id"], Instance> => { const list = parseCompactInstanceData(string); return new Map(list.map((item) => [item.id, item])); }
typescript
parseInstanceData
packages/project-build/src/db/build.ts
webstudio-is/webstudio
stack-cqs-index
[ "action" ]
[ "map", "parseCompactInstanceData" ]
query: @java.lang.SuppressWarnings("all") @lombok.Generated public ConstructorsWithBuilderDefaults() constructor of ConstructorsWithBuilderDefaults
passage: @java.lang.SuppressWarnings("all") @lombok.Generated public ConstructorsWithBuilderDefaults() { this.y = 0; this.x = ConstructorsWithBuilderDefaults.$default$x(); }
java
ConstructorsWithBuilderDefaults
test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults.java
projectlombok/lombok
stack-cqs-index
[ "ConstructorsWithBuilderDefaults", "ConstructorsWithBuilderDefaultsBuilder", "build" ]
[ "$default$x", "$default$z", "ConstructorsWithBuilderDefaults", "equals", "getQ", "getX", "getY", "getZ", "hashCode" ]
query: def test_running_filters_with_class method of FilterTest
passage: def test_running_filters_with_class assert test_process(AuditController).template.assigns["was_audited"] end
ruby
test_running_filters_with_class
vendor/rails/actionpack/test/controller/filters_test.rb
insoshi/insoshi
stack-cqs-index
[]
[ "assert", "assigns", "template", "test_process" ]
query: def get_config(app function get_config
passage: def get_config(app: Sanic, ssl: SanicSSLContext | CertSelector | SSLContext): # TODO: # - proper selection needed if service with multiple certs insted of # just taking the first if isinstance(ssl, CertSelector): ssl = cast(SanicSSLContext, ssl.sanic_select[0]) if app.config.LOCAL_CERT_CREATOR is LocalCertCreator.TRUSTME: raise SanicException( "Sorry, you cannot currently use trustme as a local certificate " "generator for an HTTP/3 server. This is not yet supported. You " "should be able to use mkcert instead. For more information, see: " "https://github.com/aiortc/aioquic/issues/295." ) if not isinstance(ssl, SanicSSLContext): raise SanicException("SSLContext is not SanicSSLContext") config = QuicConfiguration( alpn_protocols=H3_ALPN + H0_ALPN + ["siduck"], is_client=False, max_datagram_frame_size=65536, ) password = app.config.TLS_CERT_PASSWORD or None config.load_cert_chain( ssl.sanic["cert"], ssl.sanic["key"], password=password ) return config
python
get_config
sanic/http/http3.py
sanic-org/sanic
stack-cqs-index
[ "AIService", "Action", "AnthropicImageProvider", "AnthropicTextProvider", "App", "AppHarness", "AppHarnessProd", "Backend", "BaseHadoopJobTask", "BaseLogging", "BaseState", "Binary", "CI_Config", "CI_Lang", "CI_Log", "CONFIG", "CharTokenizer", "ChoiceTest", "CmdlineTest", "Conf...
[ "CN", "ChatSenderMatchRuleConfig", "ChatTypeMatchRuleConfig", "ConfigDoesNotExistException", "ConfigParser", "ConfigRetrievalError", "Depends", "DoesNotExist", "EmbeddedError", "Err", "GetConfigResponse", "IMInstanceMatchRuleConfig", "InvalidConfiguration", "InvalidKey", "KeywordRuleConf...
query: def test_singleton_aref method of HashTest
passage: def test_singleton_aref Hash[a: 42, b: 43] Hash[[[:a, 1], [:b, 3]]] Hash[:a, 1, :b, 3] end
ruby
test_singleton_aref
test/stdlib/Hash_test.rb
ruby/rbs
stack-cqs-index
[]
[]
query: (p: Position): Position => method of MoveLeft
passage: (p: Position): Position => { const line = vimState.document.lineAt(p.line).text; if (p.character === 0) { return p; } if ( isLowSurrogate(line.charCodeAt(p.character)) && isHighSurrogate(line.charCodeAt(p.character - 1)) ) { p = p.getLeft(); } const newPosition = p.getLeft(); if ( newPosition.character > 0 && isLowSurrogate(line.charCodeAt(newPosition.character)) && isHighSurrogate(line.charCodeAt(newPosition.character - 1)) ) { return newPosition.getLeft(); } else { return newPosition; } }
typescript
getLeftWhile
src/actions/motion.ts
VSCodeVim/Vim
stack-cqs-index
[ "MoveLeft", "execAction" ]
[ "charCodeAt", "getLeft", "isHighSurrogate", "isLowSurrogate", "lineAt" ]
query: public function __construct(?string $name = null, string $type = 'callback', ?string $rule = null, ?bool $singleton = null, ?string $mutexPool = null, ?int $mutexExpires = null, ?bool $onOneServer = n constructor of Crontab
passage: public function __construct(?string $name = null, string $type = 'callback', ?string $rule = null, ?bool $singleton = null, ?string $mutexPool = null, ?int $mutexExpires = null, ?bool $onOneServer = null, null|array|string $callback = null, ?string $memo = null, array|bool|string $enable = true) { }
php
__construct
src/ide-helper/output/Hyperf/Crontab/Annotation/Crontab.php
hyperf/hyperf
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: Parse parses #tag syntax using Unicode-aware validation. func (*tagParser) Parse(_ gast.Node, block text.Reader, _ parser.Context) gast.Node method of tagParser
passage: func (*tagParser) Parse(_ gast.Node, block text.Reader, _ parser.Context) gast.Node { line, _ := block.PeekLine() // Must start with # if len(line) == 0 || line[0] != '#' { return nil } // Check if it's a heading (## or space after #) if len(line) > 1 { if line[1] == '#' { // It's a heading (##), not a tag return nil } if line[1] == ' ' { // Space after # - heading or just a hash return nil } } else { // Just a lone # return nil } // Parse tag using UTF-8 aware rune iteration tagStart := 1 pos := tagStart runeCount := 0 for pos < len(line) { r, size := utf8.DecodeRune(line[pos:]) // Stop at invalid UTF-8 if r == utf8.RuneError && size == 1 { break } // Validate character using Unicode categories if !isValidTagRune(r) { break } // Enforce max length (by rune count, not byte count) runeCount++ if runeCount > MaxTagLength { break } pos += size } // Must have at least one character after # if pos <= tagStart { return nil } // Extract tag (without #) tagName := line[tagStart:pos] // Make a copy of the tag name tagCopy := make([]byte, len(tagName)) copy(tagCopy, tagName) // Advance reader block.Advance(pos) // Create node node := &mast.TagNode{ Tag: tagCopy, } return node }
go
Parse
plugin/markdown/parser/tag.go
usememos/memos
stack-cqs-index
[ "12.4.2 flag 包", "13.4 自定义包中的错误处理和 panicking", "15.7.1 字段替换:`{{.FieldName}}`", "A", "APICall", "APISecretAuth", "AboutForm", "AbsoluteURI", "AbsoluteURL", "AbstractAddition", "AbstractMetadata", "ActivateContext", "Adapt", "AddColumn", "AddContextRoot", "AddJob", "AddRemote", "AddR...
[ "Abs", "AbsolutePath", "Add", "AddBracketStringToken", "AddFilter", "AddGlobalSym", "AddMeta", "AddMsg", "AddOperator", "AddParseTree", "AddProperty", "AddSeconds", "AddSort", "AddStringToken", "AddToken", "AddressEntry", "Advance", "Alg", "Allocate", "Annotate" ]
query: The position of the mouse relative to the middle of the window in focus.. pub fn position(&self) -> Point2 method of Mouse
passage: pub fn position(&self) -> Point2 { [self.x, self.y].into() }
rust
position
nannou/src/state.rs
nannou-org/nannou
stack-cqs-index
[ "AIRGoogleMap", "AMapRouteOverlay", "API", "Abilities", "AbstractBox", "AbstractBoxParser", "AbstractDescriptorBox", "AbstractFontProcessorTest", "AbstractFrameDecorator", "ActionLinkHelpers", "ActionLinkTest", "ActiveRecord", "ActiveRecordCursor", "ActiveScaffold", "AdminPropertiesFacto...
[ "$$", "ByteInput", "ColumnPinningPosition", "Exception", "IllegalArgumentException", "Ok", "Position", "RowPinningPosition", "Some", "UnsupportedOperationException", "_association", "_getFS", "_get_position", "_index", "_lockFS", "_unlockFS", "`ColumnPinningPosition`", "`RowPinning...
query: Close closes the resources associated with input helper func (h *Helper) Close() error method of Helper
passage: func (h *Helper) Close() error { var err error if h.InputsHTTP != nil { err = h.InputsHTTP.Close() } return err }
go
Close
pkg/input/transform.go
projectdiscovery/nuclei
stack-cqs-index
[ "11.2 接口嵌套接口", "2. Update Probe Structure", "4.1 MessageBus", "A - C", "API", "APICall", "ARCSize", "Abort", "AbstractAddition", "AbstractMetadata", "Accept", "AcceptInvite", "Acquire", "AcquireConn", "Add", "AddDelDeviceAddr", "AddDevice", "AddFile", "AddFileInfoToError", "Add...
[ "AAsset_close", "ASSERT", "Abandon", "Abort", "Add", "AddInt32", "Addr", "After", "AfterFunc", "All", "Annotate", "Any", "Append", "Assert", "AtDebug", "AtWarning", "Atoi", "Attach", "Background", "Base" ]
query: public function setRouteName(string $routeName): void method of DashboardDto
passage: public function setRouteName(string $routeName): void { $this->routeName = $routeName; }
php
setRouteName
src/Dto/DashboardDto.php
EasyCorp/EasyAdminBundle
stack-cqs-index
[ "Action", "AdminContextFactory", "AdminUrlGeneratorTest", "DashboardContext", "DashboardContextTest", "LaravelLocalizationRoutes", "MenuFactoryTest", "RouteMenuItem", "__construct", "createRouteMenuItem", "forTesting", "getAdminUrlGenerator", "getDashboardDto", "handle", "linkToRoute", ...
[]
query: ------------------------------------------------------------------------------ HistoryDb::ExpandResult HistoryDb::expand(const char* line, StrBase& out) const method of HistoryDb
passage: HistoryDb::ExpandResult HistoryDb::expand(const char* line, StrBase& out) const { using_history(); char* expanded = nullptr; int32 result = history_expand((char*)line, &expanded); if (result >= 0 && expanded != nullptr) out.copy(expanded); free(expanded); return ExpandResult(result); }
cpp
expand
clink/app/src/history/history_db.cpp
mridgers/clink
stack-cqs-index
[ "$", "$a", "A", "AbstractBaseIntegrationTest", "Accordion", "AnyStyle", "Api", "ApplicationHelper", "Array2DHashSet", "Attend", "Attention", "AttentionPool", "AttentionPool2d", "AttentionPoolLatent", "AttnProcessor", "AutoModelForSentenceEmbedding", "B", "BBox", "BOFTLayer", "B...
[ "Concrete", "D", "Draw", "Err", "Exception", "Expand", "Expand Tags", "ExpandResult", "FindAllStringSubmatch", "INTPAR", "IllegalStateException", "LLIST_link", "LongArray", "Normal", "Ok", "PolygonBox", "Prop", "ReplaceAll", "Router", "S" ]
query: function render() method of Listbox
passage: " > < label class = " control - label " for = " { $ prop } " > { $ label } < / label > < div class = " controls " > < select class = " { $ inputclass } " id = " { $ prop } " name = " data [ { $ prop } ] " { $ disabled } { $ popover } { $ onchange } > { $ srenderedoptions } < / select > { $ helpblock } < / div > < / div > html ; return $ shtml. $ this - > renderwitness ( ) ; }
php
render
Core/Frameworks/Formal/Element/Listbox.php
sabre-io/Baikal
stack-cqs-index
[ "$", "$b", "$e", "$m", "$s", "$t", "**cloneElement:**", "1.48.0", "2.26.0", "2.30.0", "<img alt=\"chi\" src=\"https://cdn.rawgit.com/go-chi/chi/master/_examples/chi.svg\" width=\"220\" />", "A", "AIME25Eval", "ANoDispatch", "AOwnProps", "API", "APIController", "APIControllerGenerat...
[ "$", "$broadcast", "$c", "$createElement", "$digest", "$emit", "$forceUpdate", "$h", "$mount", "$on", "$r", "$s", "$t", "A", "ASSERT", "Accordion", "Ad", "Ansi", "AnsiValue", "AppendToml" ]
query: function Fu(n,t,e,r) function Fu
passage: function Fu(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}
javascript
Fu
explainshell/web/static/js/d3.v3.min.js
idank/explainshell
stack-cqs-index
[ "$0", "Be", "Cl", "D_", "Ep", "F", "Fn", "Gn", "Gu", "Hu", "Iu", "Ko", "Ku", "Lo", "Lu", "ND", "Pb", "Pu", "Si", "VC" ]
[ "Ar", "Au", "C", "Dt", "Fe", "Ht", "Hu", "Kt", "Ln", "Me", "Mu", "Nt", "Oi", "Qn", "Tt", "Ue", "Uu", "Vu", "Wr", "Yt" ]
End of preview.

CQS Code Search 200K

Balanced code search training dataset with call graph metadata.

Overview

200,000 (query, code) pairs across 9 programming languages, extracted from ~5,000 high-quality GitHub repositories using cqs semantic code indexing.

Unique features:

  • Perfectly balanced: 22,222 pairs per language
  • Call graph metadata: caller/callee names per function (from tree-sitter AST analysis)
  • Enriched NL queries: generated from type signatures, doc comments, and call context
  • 9 languages: Go, Java, JavaScript, PHP, Python, Ruby, Rust, TypeScript, C++

Intended Use

Training code search embedding models (e.g., E5-base-v2 LoRA fine-tuning). The call graph metadata enables:

  • False-negative filtering: skip hard negatives that are callers/callees of the positive
  • Structural training signals: teach embeddings that callers are semantically related

Dataset Structure

Each record contains:

  • query: Natural language description (from cqs NL generation)
  • positive: Source code (truncated to 2000 chars)
  • language: Programming language
  • function_name: Function/method name
  • file: Source file path
  • repo: GitHub repository
  • callers: List of functions that call this function (up to 20)
  • callees: List of functions this function calls (up to 20)

Creation

Extracted using cqs v1.7.0:

  1. Clone repos from GitHub (filtered by stars, size)
  2. cqs index each repo (tree-sitter parsing, call graph extraction, NL generation)
  3. Extract (NL, code) pairs from the cqs index
  4. Balance to 22,222 per language
  5. Attach call graph edges from the same index
Downloads last month
22

Models trained or fine-tuned on jamie8johnson/cqs-code-search-200k