query
stringlengths
17
469
positive
stringlengths
60
2.01k
language
stringclasses
9 values
function_name
stringlengths
0
158
file
stringlengths
5
215
repo
stringlengths
7
53
source
stringclasses
1 value
callers
listlengths
0
20
callees
listlengths
0
20
query: @Test public void testThrowExceptionWhenGivenStringWithoutSeparatorOrPassword() method of CloudSettingAuthTest
passage: @Test public void testThrowExceptionWhenGivenStringWithoutSeparatorOrPassword() { Exception thrownException = assertThrows(org.jruby.exceptions.ArgumentError.class, () -> { new CloudSettingAuth("foobarbaz"); }); assertThat(thrownException.getMessage(), containsString("Cl...
java
testThrowExceptionWhenGivenStringWithoutSeparatorOrPassword
logstash-core/src/test/java/org/logstash/util/CloudSettingAuthTest.java
elastic/logstash
stack-cqs-index
[]
[ "CloudSettingAuth", "assertThat", "assertThrows", "containsString", "getMessage" ]
query: (e,t)=> function Yn
passage: (e,t)=>{e.innerHTML=t;let i=e.querySelector(".filepond--label-action");return i&&se(i,"tabindex","0"),t}
javascript
Yn
public/js/filament/forms/components/file-upload.js
alexjustesen/speedtest-tracker
stack-cqs-index
[ "$h", "$n", "A", "Ac", "Bm", "Bn", "Bt", "Cc", "Ec", "Et", "Fn", "Fr", "Fs", "Gn", "Go", "Hh", "Hn", "I", "In", "Jn" ]
[ "$n", "A", "Ai", "Ao", "Bm", "Bn", "Bo", "Bt", "C", "Cf", "Cn", "Co", "Di", "Dn", "Do", "Dt", "Eo", "Error", "F", "G" ]
query: getDefaultTableOptions(table) function getDefaultTableOptions
passage: getDefaultTableOptions(table) { return { onSortingChange: makeStateUpdater('sorting', table), isMultiSortEvent: (e: unknown) => { return (e as MouseEvent).shiftKey }, } }
typescript
getDefaultTableOptions
packages/table-core/src/features/row-sorting/rowSortingFeature.ts
TanStack/table
stack-cqs-index
[ "MySQLInheritCharsetTest", "MySQLSchemaManager", "Schema", "constructTable", "createComparator", "createTable", "getTableOptionsForOverride" ]
[ "Column Sizing", "DefaultTableOptions", "assert", "fetchNumeric", "makeStateUpdater" ]
query: uint32_t Attack::getDeauthPkts() method of Attack
passage: uint32_t Attack::getDeauthPkts() { return deauthPkts; }
cpp
getDeauthPkts
esp8266_deauther/Attack.cpp
SpacehuhnTech/esp8266_deauther
stack-cqs-index
[ "setup" ]
[]
query: init(e= method of Vi
passage: init ( e = { }, r ) { this. isinitializing =! 0, typeof e = = " function " & & ( r = e, e = { } ), e. defaultns = = null & & e. ns & & ( ke ( e. ns )? e. defaultns = e. ns : e. ns. indexof ( " translation " ) < 0 & & ( e. defaultns = e. ns [ 0 ] ) ) ; const s = bg ( ) ; this. options = {... s,... this. options...
javascript
init
api/webui/assets/index-DvClRayq.js
NanmiCoder/MediaCrawler
stack-cqs-index
[ "\"V2\" Command-Line Interface", "$", "$ZodAny", "$ZodArray", "$ZodBase64", "$ZodBase64URL", "$ZodBigInt", "$ZodBigIntFormat", "$ZodBoolean", "$ZodCIDRv4", "$ZodCIDRv6", "$ZodCUID", "$ZodCUID2", "$ZodCatch", "$ZodCheckBigIntFormat", "$ZodCheckEndsWith", "$ZodCheckGreaterThan", "$Zo...
[ "$", "$$", "$$optional", "$0", "$args", "$commit", "$dpip", "$ipvsadm", "$mount", "$nextTick", "$on", "$onReorder", "$optional", "$q", "$r", "$set", "$t", "$timeout", "$watch", "/bin/sh" ]
query: (e) => function useGva
passage: (e) => { if (e && form.value.fields.length) { ElMessageBox.confirm( '如果您开启GVA默认结构,会自动添加ID,CreatedAt,UpdatedAt,DeletedAt字段,此行为将自动清除您目前在下方创建的重名字段,是否继续?', '注意', { confirmButtonText: '继续', cancelButtonText: '取消', type: 'warning' } ) ...
javascript
useGva
web/src/view/systemTools/autoCode/index.vue
flipped-aurora/gin-vue-admin
stack-cqs-index
[]
[ "catch", "confirm", "filter", "some", "then" ]
query: public function tearDown() method of CListTest
passage: public function tearDown() { $this->list=null; $this->item1=null; $this->item2=null; $this->item3=null; }
php
tearDown
tests/framework/collections/CListTest.php
yiisoft/yii
stack-cqs-index
[ "AIOSMTPActionTest", "AbstractBladeTestCase", "AbstractCrudTestCase", "AbstractFieldFunctionalTest", "AbstractFixerTestCase", "AbstractFixerWithAliasedOptionsTestCase", "AbstractIntegrationTestCase", "AbstractJersey2EurekaHttpClientTest", "AbstractReporterTestCase", "AbstractTestCase", "Abstract...
[ "AddTraceEvent", "AfterBackgroundTested", "AfterExerciseCompleted", "AfterFeatureScope", "AfterFeatureTested", "AfterOutlineTested", "AfterScenarioScope", "AfterScenarioTested", "AfterStepScope", "AfterStepTested", "AfterSuiteScope", "AfterSuiteTested", "AssertionError", "BeforeBackgroundT...
query: async function handle( req: NextApiRequest, res: NextApiResponse, ) function handle
passage: async function handle ( req : nextapirequest, res : nextapiresponse, ) { if ( req. method = = = " patch " ) { / / post / api / account const session = await getserversession ( req, res, authoptions ) ; if (! session ) { res. status ( 401 ). end ( " unauthorized " ) ; throw new error ( " unauthorized " ) ; } co...
typescript
handle
pages/api/account/index.ts
mfts/papermark
stack-cqs-index
[ "14.11 限制同时处理的请求数", "APIControllerGeneratorCommand", "APIGeneratorCommand", "APIRequestsGeneratorCommand", "APIScaffoldGeneratorCommand", "AbandonOrderActionPublic", "AbstractActivePathTraverserHandler", "AbstractBlockPathTraverserHandler", "AbstractConnection", "AbstractController", "AbstractDr...
[ "$", "$queryRaw", "$transaction", "ALLEGE", "ASTVisitor", "AbstractHandler", "AccessDeniedHttpException", "AccountCreated", "AccountNotVerifiedException", "AccountRegistrationDisabledException", "Add", "Added", "AdminDashboardResponseDTO", "AfterActivation", "AfterChunk", "AfterConsume...
query: public function __construct( ?array $options = null, ?string $message = null, ?array $groups = null, mixed $payload = null, ?string $format = null, ) constructor of Ulid
passage: public function __construct( ?array $options = null, ?string $message = null, ?array $groups = null, mixed $payload = null, ?string $format = null, ) { if (null !== $options) { throw new InvalidArgumentException(\sprintf('Passing an array of optio...
php
__construct
Constraints/Ulid.php
symfony/validator
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: def __init__( self, model constructor of RewardTrainer
passage: _ kwargs ` to the ` rewardconfig `, but your model is already instantiated. " " the ` model _ init _ kwargs ` will be ignored. " ) # validate that the model has num _ labels = 1 ( required for reward models ) if getattr ( model. config, " num _ labels ", none )! = 1 : raise valueerror ( f " the model has ` num...
python
__init__
trl/trainer/reward_trainer.py
huggingface/trl
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: fn print_distance_matrix( out: &mut dyn Write, brush: Brush, colors: &[Color], metric: DistanceMetric, ) -> Result<()> function print_distance_matrix
passage: fn print _ distance _ matrix ( out : & mut dyn write, brush : brush, colors : & [ color ], metric : distancemetric, ) - > result < ( ) > { let count = colors. len ( ) ; let distance = | c1 : & color, c2 : & color | match metric { distancemetric : : cie76 = > c1. distance _ delta _ e _ cie76 ( c2 ), distancemet...
rust
print_distance_matrix
src/cli/commands/distinct.rs
sharkdp/pastel
stack-cqs-index
[ "run" ]
[ "Ok", "ansi_style", "blue_red_yellow", "distance", "distance_delta_e_cie76", "distance_delta_e_ciede2000", "len", "on", "paint", "powf", "text_color", "to_rgb_hex_string", "write", "writeln" ]
query: public function getPhpVersion(): PhpVersion method of ReverseEmulator
passage: public function getPhpVersion(): PhpVersion { return $this->emulator->getPhpVersion(); }
php
getPhpVersion
lib/PhpParser/Lexer/TokenEmulator/ReverseEmulator.php
nikic/PHP-Parser
stack-cqs-index
[ "Cache", "ConfigDataCollectorTest", "Emulative", "PhpCompatUtilTestFixture", "ReverseEmulator", "Signature", "SignatureTest", "__construct", "equals", "getPhpVersion", "getVersionForTest", "testCollect", "testCollectWithoutKernel", "testConstructorSetsValues", "toJson" ]
[ "empty", "fileExists", "fromComponents", "fromString", "getFileContents", "getPhpVersion", "getRootDirectory", "json_decode" ]
query: def methods(env) method of Methods
passage: def methods(env) candidate_names.each_with_object([]) do |name, methods| method = access(env, name) methods << method if method end end
ruby
methods
ruby/lib/mutant/matcher/methods.rb
mbj/mutant
stack-cqs-index
[ "0.14.10", "API", "AccountsServer", "Action %{#actions}%", "Actions", "ActiveRecord", "Add & AddAssign", "AliasTest", "ArgumentChecker", "AsRef & AsMut", "AsyncUserCodeErrorsRoute", "Avo", "Base", "BaseField", "BaseObjectTest", "BaseReporter", "Basic implementation", "BatchLoader",...
[ "/full/allow", "/full/deny", "/full/meteor_apply", "/full/meteor_call", "/full/meteor_error", "/full/meteor_methods", "/full/method_unblock", "Accounts.removeDefaultRateLimit", "ByteArray", "Collections article", "Discover Meteor two-tiered methods pattern", "EJSON", "False", "Fibers", "...
query: static fromSchema(schema: SchemaYaml): ArtifactGraph method of ArtifactGraph
passage: static fromSchema(schema: SchemaYaml): ArtifactGraph { return new ArtifactGraph(schema); }
typescript
fromSchema
src/core/artifact-graph/graph.ts
Fission-AI/OpenSpec
stack-cqs-index
[ "BuildClientSchemaTest", "Cg", "DiffView", "FromRelationalSchema", "HistoryEditor", "IntrospectionTest", "Is", "MarkdownClipboard", "PrintSchemaCommand", "Ys", "addProseMirrorPlugins", "assertCycleIntrospection", "buildDocumentFromContent", "fromHTML", "generateJSON", "getHTMLFromFragm...
[ "InvariantViolation", "Marshal", "Unmarshal", "append", "array_merge", "executeQuery", "getIntrospectionQuery", "len", "make", "marksFromSchema", "nodesFromSchema", "printSafeJson", "schemaRules", "string", "toVulnerabilityItem" ]
query: public findAll<T extends Node>(predicate: (node: any) => node is T): T[] method of Node
passage: public findAll<T extends Node>(predicate: (node: any) => node is T): T[] { const result: T[] = []; const queue = this.reversedChildren(); while (queue.length > 0) { const node = queue.pop()!; if (predicate(node)) { result.push(node); } const children = node.children(...
typescript
findAll
packages/2d/src/lib/components/Node.ts
motion-canvas/motion-canvas
stack-cqs-index
[ "AbstractDb", "AbstractEventStoreTest", "AbstractInstanceRepositoryTest", "AdminServiceHealthIndicator", "AdminServiceTransactionTest", "Agent", "AnnotationBasedRepositoryTest", "ApiKeyRepositoryTest", "ApolloAuditLogApiJpaImpl", "ApolloAuditLogApiJpaImplTest", "ApolloAuditLogService", "App", ...
[ "$$", "CustomException", "Document", "EntityListHandler", "FETCH_FIRST_ROWS_ONLY", "FROM", "Gm", "Ie", "Le", "ModuleFinder", "Move", "OFFSET_ROWS", "ORDER_BY", "SELECT", "SQL", "XPath", "Xm", "accept", "add", "all" ]
query: astCompile(parts, details = method of ExtSelectorCompiler
passage: astcompile ( parts, details = { } ) { if ( array. isarray ( parts ) = = = false ) { return ; } if ( parts. length = = = 0 ) { return ; } if ( parts [ 0 ]. data. type! = = ' selectorlist ' ) { return ; } const out = { selector : ' ' } ; const prelude = [ ] ; const tasks = [ ] ; let startofselector = true ; for ...
javascript
astCompile
src/js/static-filtering-parser.js
gorhill/uBlock
stack-cqs-index
[ "ExtSelectorCompiler", "compileArgumentAst", "compileSelector" ]
[ "astSerializePart", "compileArgumentAst", "createSpathTask", "endsWith", "isArray", "join", "push", "trim" ]
query: TODO check errors LRESULT customDrawExplorerRebar(NMCUSTOMDRAW *nm) function customDrawExplorerRebar
passage: LRESULT customDrawExplorerRebar(NMCUSTOMDRAW *nm) { HTHEME theme; RECT r; if (nm->dwDrawStage != CDDS_PREPAINT) return CDRF_DODEFAULT; theme = OpenThemeData(nm->hdr.hwndFrom, L"CommandModule"); GetClientRect(nm->hdr.hwndFrom, &r); drawExplorerBackground(theme, nm->hdc, &r, &(nm->rc)); // TODO dwItemS...
cpp
customDrawExplorerRebar
_doc/misctests/winrebarexplorertheme.cpp
andlabs/libui
stack-cqs-index
[]
[ "CloseThemeData", "GetClientRect", "OpenThemeData", "drawExplorerBackground", "drawExplorerChevron" ]
query: function touch (event, root, evt) function touch
passage: function touch (event, root, evt) { var frame = iframe(root); var d = frame ? frame.contentDocument.documentElement : document.documentElement; var touches = evt.changedTouches; var t = time(); if (touches) { for (var i = 0; i < touches.length; i++) { var entry = t...
javascript
touch
tests/integrations/clarity/clarity.bundle.js
QwikDev/partytown
stack-cqs-index
[ "AIRMap", "AbsoluteFileConverterTest", "AbstractCaptcha", "AbstractEventFuture", "AbstractFile", "AbstractMimeTypeGuesserTestCase", "AbstractStore", "AbstractVideo", "Action", "ActiveRecordInstrumentationTest", "ActsAsParanoid", "Add", "Added", "Agent", "Agents", "AlbumFileTest", "An...
[ "Activator", "Behavior", "ButterKnifeProcessor", "Chtimes", "FileNotFoundError", "IOException", "IORuntimeException", "MissingSessionException", "Ok", "S_ISDIR", "SetBody", "Some", "StoreInt32", "TouchCallable", "UnexpectedValueException", "UnsupportedOperation", "X", "_", "_clea...
query: fn from(id: u8) -> Self method of IpVersion
passage: fn from(id: u8) -> Self { match id { 4 => Self::Ipv4, 6 => Self::Ipv6, p => Self::Other(p), } }
rust
from
crates/trippy-packet/src/ip.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: public function __construct( string $name = '', ?string $key = null, $requirements = null, $default = null, string $description = '', array $incompatibles = [], bool $strict = true, bool $map = false, constructor of RequestParam
passage: public function __construct( string $name = '', ?string $key = null, $requirements = null, $default = null, string $description = '', array $incompatibles = [], bool $strict = true, bool $map = false, bool $nullable = false, bool $...
php
__construct
Controller/Annotations/RequestParam.php
FriendsOfSymfony/FOSRestBundle
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: function h(e) function h
passage: function h(e){return"string"==typeof e?Qu(n,e,s.value.path):Lu({},e)}
javascript
h
public/vendor/log-viewer/app.js
vitodeploy/vito
stack-cqs-index
[ "$", "$d", "$e", "$f", "$n", "$o", "$r", "$s", "2. Define Component Implementations", "A", "ASCIIFont", "A_", "AbstractPrinter", "AccountsHelper", "ActionBar", "ActionLinkHelpers", "ActionView", "ActiveScaffold", "ActivitiesHelper", "Adminer" ]
[ "$", "$$annotate", "$$postDigest", "$9", "$_Cn", "$_Dt", "$b", "$e", "$evalAsync", "$o", "$on", "$onChanges", "$r", "$setValidity", "$setViewValue", "$validate", "$watch", "$watchGroup", ":", "A" ]
query: qboolean QGL_Init(const char *dllname ) function QGL_Init
passage: hgldll, " gldepthrange " ) ; qgldisable = dlldisable = gpa ( g _ hgldll, " gldisable " ) ; qgldisableclientstate = dlldisableclientstate = gpa ( g _ hgldll, " gldisableclientstate " ) ; qgldrawarrays = dlldrawarrays = gpa ( g _ hgldll, " gldrawarrays " ) ; qgldrawbuffer = dlldrawbuffer = gpa ( g _ hgldll, " gl...
cpp
QGL_Init
q3radiant/QGL_WIN.CPP
id-Software/Quake-III-Arena
stack-cqs-index
[ "GLW_LoadOpenGL", "InitInstance", "R_Init" ]
[ "Com_sprintf", "Con_Printf", "FormatMessage", "FreeLibrary", "GPA", "GetLastError", "GetSystemDirectory", "GlideIsValid", "LoadLibrary", "MAKELANGID", "Printf", "QGL_EnableLogging", "Q_strcat", "Q_strncpyz", "assert", "dlerror", "dlopen", "getcwd", "getuid", "putenv" ]
query: close(code?: number, reason?: string) method of WsSocketWrapper
passage: close(code?: number, reason?: string) { if (this.readyState !== 1) return; this.readyState = 3; try { this.ws.close(code, reason); } catch (e) { // Socket already closed } }
typescript
close
apps/server/src/collaboration/extensions/redis-sync/ws-socket-wrapper.ts
docmost/docmost
stack-cqs-index
[ "$", "$d", "$h", "**cloneElement:**", "0.10.6 / 2017-01-22", "0.11.1 / 2021-05-24", "1.5.6 基于 Channel 的通信", "14.3 协程的同步:关闭通道-测试阻塞的通道", "17) Cast to `(void)` When Intentionally Ignoring Return Values", "2.2.2 Windows 与 Linux 套接字编程的主要区别", "2.27.0", "2.9.0 (2023-02-05)", "3.3.0 (2023-02-06)", ...
[ "$", "$closeModal", "$confirm", "$dispatch", "$e", "$emit", "$t", "Accessibility", "ActionResult", "Add", "Addr", "After", "AfterSheet", "Append", "AssertionError", "AsyncEval", "AtomicInteger", "AudioComponentInstanceDispose", "AudioUnitSetProperty", "Background" ]
query: Base layer methods func (d *Misskey) request(path, method string, callback base.ReqCallback, resp interface method of Misskey
passage: func (d *Misskey) request(path, method string, callback base.ReqCallback, resp interface{}) error { url := d.Endpoint + "/api/drive" + path req := base.RestyClient.R() req.SetAuthToken(d.AccessToken).SetHeader("Content-Type", "application/json") if callback != nil { callback(req) } else { req.SetBod...
go
request
drivers/misskey/util.go
AlistGo/alist
stack-cqs-index
[ "$require", "11. Schema parameter removed from `request()`, `send()`, and `callTool()`", "3. Producing Server Events (Server as Producer)", "6. Error Handling", "AFTER_REQUEST_CALLBACK", "APIClient", "APIEntrySubmissionService", "APIRequest", "AbstractAdapter", "AbstractAttributeRoutingTestCase", ...
[ "$", "$eval", "APIConnectionError", "APITimeoutError", "AbortExtraction", "AccountFollowersFeedResponse", "AccountFollowingFeedResponse", "Acme", "Acquire", "ActionStatus", "ActivityUtils", "Add", "AddError", "AjaxJson", "Any", "AppInfo", "AssertionError", "AsyncDeferredLock", "A...
query: initOffsets() method initOffsets
passage: initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=bi(e,this.min),this._tableRange=bi(e,this.max)-this._minPos,super.initOffsets(t)}
javascript
initOffsets
public/js/filament/widgets/components/chart.js
alexjustesen/speedtest-tracker
stack-cqs-index
[ "Eo", "No", "Ro", "TimeScale", "TimeSeriesScale", "afterAutoSkip", "buildTicks", "initOffsets", "ka", "va", "wa", "xa" ]
[ "Ho", "Io", "J", "K", "Ma", "Ro", "Wo", "Y", "Z", "_getTimestampsForTable", "_limitValue", "bi", "buildLookupTable", "freeze", "getDecimalForValue", "initOffsets", "interpolate", "xi", "ya" ]
query: tsParseNonArrayType() method tsParseNonArrayType
passage: tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let e=this.startNode(),s=this.lookahead();return s.type!==135&&s.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSL...
javascript
tsParseNonArrayType
backend/openui/dist/assets/babel-CqqbTYm7.js
wandb/openui
stack-cqs-index
[ "tsParseArrayTypeOrHigher", "tsParseTupleElementType", "yr" ]
[ "D", "Ur", "bind", "finishNode", "lookahead", "lookaheadCharCode", "mr", "next", "parseMaybeUnary", "startNode", "tsLookAhead", "tsParseImportType", "tsParseLiteralTypeNode", "tsParseMappedType", "tsParseParenthesizedType", "tsParseTemplateLiteralType", "tsParseThisTypeOrThisTypePred...
query: Returns the domain part (the right hand side of the @ sign in the email address) of def domain(output_type = :decode) method of Address
passage: def domain(output_type = :decode) parse unless @parsed Encodings.decode_encode(strip_all_comments(get_domain), output_type) if get_domain end
ruby
domain
lib/mail/elements/address.rb
mikel/mail
stack-cqs-index
[ "$", "A", "AST", "AccountsServer", "AclEntry", "Actions", "ActivitiesHelper", "ActsAsTenant", "AddOrigin", "Address", "Addressable", "Ag", "AppendingLineChart", "ApplicationMailer", "Applying", "Arachni", "AreaChart", "AsyncSocket", "Authorize", "AuthorizeDomain" ]
[ "Domain", "DomainServicesImpl", "L7", "Source", "Tools for domain", "_addIssue", "`types`", "addIssue", "array_shift", "belongsTo", "boolean", "call", "category", "decode_encode", "define", "domain", "domain name", "empty", "ensureStartsWith", "enum" ]
query: fn poll_flush( self: std::pin::Pin<&mut Self>, cx: &mut std::task::Context<'_>, ) -> std::task::Poll<Result<(), std::io::Error>> method of SocksTcpStream
passage: fn poll_flush( self: std::pin::Pin<&mut Self>, cx: &mut std::task::Context<'_>, ) -> std::task::Poll<Result<(), std::io::Error>> { match self.get_mut() { SocksTcpStream::Tcp(ref mut stream) => std::pin::Pin::new(stream).poll_flush(cx), SocksTcpStream::SmolTcp...
rust
poll_flush
easytier/src/gateway/socks5.rs
EasyTier/EasyTier
stack-cqs-index
[ "poll", "poll_flush", "poll_ready", "poll_shutdown" ]
[ "Err", "IOError", "Ok", "Ready", "as_mut", "as_pin_mut", "as_ptr", "clear", "enter", "flush", "forward_call", "get_mut", "get_ref", "into", "into_poll", "is_empty", "lock", "map", "map_err", "map_ok" ]
query: void LoopAtan32(const float *in, size_t is, float *out, size_t os, size_t n) function LoopAtan32
passage: void LoopAtan32(const float *in, size_t is, float *out, size_t os, size_t n) { UnaryLoop<float, AtanFunctor>(in, is, out, os, n); }
cpp
LoopAtan32
codon/runtime/numpy/loops.cpp
exaloop/codon
stack-cqs-index
[]
[ "UnaryLoop" ]
query: RSSQuery() constructor of RSSQuery
passage: RSSQuery() { RtlZeroMemory(&rsp, sizeof(rsp)); rsp.Header.Type = NDIS_OBJECT_TYPE_RSS_PARAMETERS; rsp.Header.Revision = NDIS_RECEIVE_SCALE_PARAMETERS_REVISION_2; rsp.Header.Size = NDIS_SIZEOF_RECEIVE_SCALE_PARAMETERS_REVISION_2; }
cpp
RSSQuery
NetKVM/Common/ParaNdis_Protocol.cpp
virtio-win/kvm-guest-drivers-windows
stack-cqs-index
[ "QueryCurrentRSS" ]
[ "RtlZeroMemory" ]
query: void ggml_compute_forward_flash_attn_ext( const ggml_compute_params * params, ggml_tensor * dst) function ggml_compute_forward_flash_attn_ext
passage: void ggml_compute_forward_flash_attn_ext( const ggml_compute_params * params, ggml_tensor * dst) { switch (dst->op_params[3]) { case GGML_PREC_DEFAULT: case GGML_PREC_F32: { // uses F32 accumulators ggml_compute_forward_flash_attn_...
cpp
ggml_compute_forward_flash_attn_ext
ml/backend/ggml/ggml/src/ggml-cpu/ops.cpp
ollama/ollama
stack-cqs-index
[ "ggml_compute_forward" ]
[ "GGML_ABORT", "ggml_compute_forward_flash_attn_ext_f16" ]
query: global(set) function global
passage: global(set) { set([ { type: 'Icon', title, onClick() { refs.current.callback() }, svgSource: refs.current.svgSource, }, ]) return () => {} }
typescript
global
packages/playground/src/shared/utils/useExtensionButton.ts
theatre-js/theatre
stack-cqs-index
[ "Api", "AppWindow", "Arachni", "Base", "Bridgetown", "Client", "CommandTest", "ConfigManagerTest", "ConfigTest", "ContentView", "Convention", "DMGeneratorTest", "DSL", "Dependency management", "Disabling online restart", "Dispatcher", "Dispatchers", "Distributor", "DoraemonDemoCo...
[ "$state", "COMPOSER_HOME", "DispatchQueue", "Global", "Global Parameter", "Global installation", "Global section", "Int", "JadxEventsImpl", "Wrapper", "a", "assert", "borrow_mut", "call", "callback", "channel", "class", "clone", "collector", "composer-home" ]
query: func (c *Client) getAndIteratePagination(endpoint string, v any) error method of Client
passage: ##page : = resp. header. get ( " x - next - page - start " ) if len ( nextpage ) > 0 { query : = urlapi. query ( ) query. set ( " pagestart ", nextpage ) endpoint = urlapi. scheme + " : / / " + urlapi. host + urlapi. path + "? " + query. encode ( ) } } rv. elem ( ). set ( resources ) return nil }
go
getAndIteratePagination
src/pkg/reg/adapter/dtr/client.go
goharbor/harbor
stack-cqs-index
[ "getTags" ]
[ "AppendSlice", "Close", "Do", "Elem", "Encode", "Errorf", "Get", "Indirect", "Interface", "Kind", "New", "NewRequest", "Parse", "Query", "ReadAll", "Set", "SetBasicAuth", "Type", "Unmarshal", "ValueOf" ]
query: Like `%`, but always positive. pub fn mod_positive(x: Scalar, y: Scalar) -> Scalar function mod_positive
passage: pub fn mod_positive(x: Scalar, y: Scalar) -> Scalar { (x % y + y) % y }
rust
mod_positive
src/helper.rs
sharkdp/pastel
stack-cqs-index
[ "from", "interpolate_angle", "value" ]
[]
query: bool RegexpObject::has_match(Env *env, Value other, Optional<Value> start) method of RegexpObject
passage: bool RegexpObject::has_match(Env *env, Value other, Optional<Value> start) { assert_initialized(env); if (other.is_nil()) return false; if (other.is_symbol()) other = other.as_symbol()->to_s(env); other.assert_type(env, Object::Type::String, "String"); StringObject *str_obj...
cpp
has_match
src/regexp_object.cpp
natalie-lang/natalie
stack-cqs-index
[ "Natalie", "empty_query_should_always_match", "exact_match_should_return_true", "has_match", "match_with_delimiters_in_between", "non_match_should_return_false", "parse_alpn_extension", "parse_server_name_extension", "partial_match_should_return_true", "prop_positions_should_match_characters_in_st...
[ "CHECK_ALLOC", "Ok", "as_regexp", "as_str", "as_string", "as_symbol", "assert_initialized", "assert_type", "fnmatch", "free", "has_match", "integer", "is_integer", "is_match", "is_nil", "is_symbol", "length", "lines", "malloc", "memcpy" ]
query: func BenchmarkMapEntries(b *testing.B) function BenchmarkMapEntries
passage: func BenchmarkMapEntries(b *testing.B) { for _, n := range lengths { m := genMap(n) b.Run(strconv.Itoa(n), func(b *testing.B) { for i := 0; i < b.N; i++ { _ = lo.MapEntries(m, func(k string, v int) (string, int) { return k, v * 2 }) } }) } }
go
BenchmarkMapEntries
benchmark/core_map_bench_test.go
samber/lo
stack-cqs-index
[]
[ "Itoa", "MapEntries", "Run", "genMap" ]
query: function Vt(t,e) function Vt
passage: function Vt(t,e){var i;void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(ht(e))>=0?e.ownerDocument.body:ft(e)&&Ft(e)?e:t(At(e))}(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=dt(n),r=s?[o].concat(o.visualViewport||[],Ft(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Vt(At(r)...
javascript
Vt
public/js/bootstrap.bundle.min.js
changeweb/Unifiedtransform
stack-cqs-index
[ "$d", "$n", "$t", "AA", "AF", "Ab", "An", "At", "Bt", "CA", "CF", "Cd", "Ce", "Co", "Cy", "DA", "DS", "Dh", "Dj", "E" ]
[ "$", "$_Cn", "$_Dt", "$emit", "$on", "$t", "An", "At", "Bo", "Boolean", "Br", "Bt", "C", "Ce", "Ct", "D", "Da", "Dt", "E", "Eg" ]
query: ClientKillByFilter is new style syntax, while the ClientKill is old func (c cmdable) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd method of cmdable
passage: func (c cmdable) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd { args := make([]interface{}, 2+len(keys)) args[0] = "client" args[1] = "kill" for i, key := range keys { args[2+i] = key } cmd := NewIntCmd(ctx, args...) _ = c(ctx, cmd) return cmd }
go
ClientKillByFilter
commands.go
redis/go-redis
stack-cqs-index
[]
[ "Call", "Helper", "NewIntCmd", "RecordCallWithMethodType", "TypeOf", "append", "c", "len", "make" ]
query: private function shouldBeCached(?Definition $definition = null) : bool method of SourceCache
passage: private function shouldBeCached(?Definition $definition = null) : bool { return // Cache missing definitions ($definition === null) // Object definitions are used with `make()` || ($definition instanceof ObjectDefinition) // Autowired defi...
php
shouldBeCached
src/Definition/Source/SourceCache.php
PHP-DI/PHP-DI
stack-cqs-index
[ "SourceCache", "getDefinition" ]
[]
query: func (s *TypeBlockAliasContext) GetRuleContext() antlr.RuleContext method of TypeBlockAliasContext
passage: func (s *TypeBlockAliasContext) GetRuleContext() antlr.RuleContext { return s }
go
GetRuleContext
tools/goctl/api/parser/g4/gen/api/apiparser_parser4.go
zeromicro/go-zero
stack-cqs-index
[ "EnterRule", "ExitRule", "TreesGetNodeText" ]
[]
query: func (pq *PriorityQueueOfInt) Pop() interface method of PriorityQueueOfInt
passage: func (pq *PriorityQueueOfInt) Pop() interface{} { n := len(*pq) item := (*pq)[n-1] *pq = (*pq)[:n-1] return item }
go
Pop
website/content/ChapterFour/0100~0199/0173.Binary-Search-Tree-Iterator.md
halfrost/LeetCode-Go
stack-cqs-index
[ "11.12.6 接口的继承", "ATNDeserializer", "Add", "Algo_3_16", "Algo_3_17", "Algo_3_18", "Algo_3_19", "Algo_3_22", "Algo_3_31", "Algo_4_14", "Algo_6_37", "Algo_6_38", "Algo_7_24", "Algo_8_12", "ArrayStackTests", "Back", "Backward", "BenchmarkJobQueuePushPopDone10k", "BorrowPages", "Bu...
[ "ACSAssert", "Back", "Bucket", "Capacity", "DeallocateRegister", "DeallocateSlot", "Debugf", "Delete", "Empty", "Exception", "Get", "IndexOutOfRangeException", "InvalidOperationException", "IsAnchor", "IsDynamicAnchor", "IsEmpty", "IsFpRegisterSlotAlias", "IsId", "IsRecursiveAnch...
query: A variant of send_lock() with the following differences: bool mutex::send_lock_unless_already_waiting(wait_record *wr) method of mutex
passage: bool mutex::send_lock_unless_already_waiting(wait_record *wr) { trace_mutex_send_lock(this, wr); assert(owned()); // count could not have been zero, so no need to test for it count.fetch_add(1, std::memory_order_acquire); for (auto& x : waitqueue) { if (wr->thread() == x.thread()) ...
cpp
send_lock_unless_already_waiting
core/lfmutex.cc
cloudius-systems/osv
stack-cqs-index
[ "WITH_LOCK", "wake_lock" ]
[ "assert", "fetch_add", "owned", "push", "thread", "trace_mutex_send_lock" ]
query: def __setitem__(self, key, value) method of LineSeries
passage: def __setitem__(self, key, value): setattr(self.lines, self.lines._getlinealias(key), value)
python
__setitem__
backtrader/lineseries.py
mementum/backtrader
stack-cqs-index
[ "ArrayBase", "AttrDict", "BaseState", "CaseInsensitiveDict", "CaselessDict", "CgroupArray", "Config", "ConfigDict", "CtxDict", "CustomMlxLayer", "Dict", "DictRow", "DictToAttrRecursive", "EasyDict", "ExpiredDict", "Face", "Frame", "JITPersistentCache", "LocalCache", "LocalWeakR...
[ "AppriseInvalidData", "AttributeError", "ConfigDict", "Err", "Exception", "FileDesc", "IndexError", "KeyError", "Leaf", "NotImplementedError", "Ok", "RuntimeError", "TypeError", "UnimplementedMethodException", "ValueError", "__delattr__", "__getattribute__", "__load_cache", "__se...
query: The cuboid with some padding applied to the top side. pub fn pad_top(self, pad: S) -> Self method of Cuboid
passage: pub fn pad_top(self, pad: S) -> Self { Cuboid { y: self.y.pad_end(pad), ..self } }
rust
pad_top
nannou_core/src/geom/cuboid.rs
nannou-org/nannou
stack-cqs-index
[]
[ "move_down", "pad_end" ]
query: def downgrade() -> None function downgrade
passage: , name = " post _ reaction _ api _ client _ id _ fkey " ), sa. foreignkeyconstraint ( [ " person _ id " ], [ " person. id " ], name = " post _ reaction _ person _ id _ fkey " ), sa. foreignkeyconstraint ( [ " work _ package _ id " ], [ " work _ package. id " ], name = " post _ reaction _ work _ package _ id _ ...
python
downgrade
backend/alembic/versions/2022_12_30_2054-abb47e9d145a_name_changes_person_user_post_message_.py
LAION-AI/Open-Assistant
stack-cqs-index
[ "ColorSuite", "ColorSuiteCached", "ConverterV2", "LegacyWindowsTerm", "Rffi_setTimeout", "Style", "_make_ansi_codes", "accept", "add_book", "add_panel", "add_panel_with_active", "add_route", "app", "build", "build_foreign_network_manager_accessor", "build_rpc_tspt", "build_ui", "ce...
[ "ARRAY", "AutoString", "BOOLEAN", "Boolean", "Color", "ColorTriplet", "Column", "DOUBLE_PRECISION", "DateTime", "ForeignKeyConstraint", "GUID", "Global", "INTEGER", "Identity", "Integer", "JSON", "JSONB", "PrimaryKeyConstraint", "Scoped", "String" ]
query: Exec executes the deletion query and returns how many vertices were deleted. func (sd *SettingDelete) Exec(ctx context.Context) (int, error) method of SettingDelete
passage: func (sd *SettingDelete) Exec(ctx context.Context) (int, error) { return withHooks(ctx, sd.sqlExec, sd.mutation, sd.hooks) }
go
Exec
ent/setting_delete.go
cloudreve/cloudreve
stack-cqs-index
[ "AddColumn", "AddProjectMember", "AlterColumn", "Append", "ApplyStorageDiff", "BatchInsert", "Become", "BenchmarkProtocolV2Exec", "BenchmarkScanSlice", "BenchmarkScanSlicePointer", "BenchmarkShellPolling", "BenchmarkShellQuickCommands", "BenchmarkUnixSocketProtocolV2Exec", "CanLaunchAttack...
[ "AUTH", "AbandonPath", "AddStdFd", "AliasOrIdentifier", "All", "AndOrderBy", "AndWhere", "As", "Background", "Blink", "Build", "BuildExpr", "BuildExprWithLimit", "BuildUnmarshalerMap", "Bytes", "CLS", "Call", "Called", "Ceil", "CheckFramePointer" ]
query: function loadSkillById(skillId, projectRoot) function loadSkillById
passage: function loadSkillById(skillId, projectRoot) { const skills = loadAllSkills(projectRoot); return skills.find(s => s.metadata.id === skillId) || null; }
javascript
loadSkillById
dist/hooks/learner/loader.js
Yeachan-Heo/oh-my-claudecode
stack-cqs-index
[]
[ "find", "loadAllSkills" ]
query: public Criteria andUrlLessThanOrEqualTo(String value) method of GeneratedCriteria
passage: public Criteria andUrlLessThanOrEqualTo(String value) { addCriterion("url <=", value, "url"); return (Criteria) this; }
java
andUrlLessThanOrEqualTo
zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/model/CmsMenuExample.java
shuzheng/zheng
stack-cqs-index
[]
[ "addCriterion" ]
query: Mono<Void> deleteFileIfExists(Path path) method of PluginEndpoint
passage: Mono<Void> deleteFileIfExists(Path path) { return deleteFileSilently(path, this.scheduler).then(); }
java
deleteFileIfExists
application/src/main/java/run/halo/app/core/endpoint/console/PluginEndpoint.java
halo-dev/halo
stack-cqs-index
[ "DesktopEntryUtils", "MapService", "MappingExporter", "RagService", "RunDownloadJob", "UsageFileAdapter", "ZimService", "createDesktopEntry", "delete", "deleteFileBySource", "doResumableDownload", "downloadBaseAssets", "embedTextAndCleanup", "exportMappings", "handle", "load", "onCom...
[ "deleteFileSilently", "deleteIfExists", "then", "unlink" ]
query: public setRate(rate: number) method of PlayerController
passage: public setRate(rate: number) { const statusStore = useStatusStore(); const audioManager = useAudioManager(); if (!Number.isFinite(rate)) { console.warn("⚠️ 无效的播放速率:", rate); return; } if (!audioManager.capabilities.supportsRate) { console.warn("⚠️ 当前引擎不支持倍速播放"); retu...
typescript
setRate
src/core/player/PlayerController.ts
imsyy/SPlayer
stack-cqs-index
[ "AudioManager", "MediaSessionManager", "PlayerController", "ProductFilterService", "SamplingPolicySettingsReader", "SetRate", "TrackPlayer", "addPlatformFeeToProduct", "crossfadeTo", "dmpInitialize", "handleMediaEvent", "initMpvIpc", "loadAndPlay", "onRatePress", "rampRateTo", "readDef...
[ "catch", "fabs", "isFinite", "max", "min", "send", "sendCommand", "setDividers", "setRate", "setTempo", "updatePlaybackRate", "useAudioManager", "useStatusStore", "warn" ]
query: function In(s) function In
passage: function In(s){return s&&s.barStart!==void 0&&s.barEnd!==void 0}
javascript
In
public/js/filament/widgets/components/chart.js
alexjustesen/speedtest-tracker
stack-cqs-index
[ "$e", "$n", "$o", "A", "Aa", "Ab", "AddTo", "Ae", "Ai", "An", "AppendHTTPDate", "BO", "BenchmarkInWithCaching", "BenchmarkInWithoutCaching", "BenchmarkUnboundedChann", "Bg", "Bind", "Bn", "Build", "CallMethodByName" ]
[ "$", "$e", "$n", "Add", "An", "Array", "Ba", "Be", "Bn", "Call", "CleanKey", "Cn", "CompareAndSwap", "Contains", "Ct", "CubicBezier", "D", "Dn", "Error", "Ge" ]
query: void validate_data(_In_ const std::vector<std::string>& expected_messages) method of perf_buffer_test_helper
passage: void validate_data(_In_ const std::vector<std::string>& expected_messages) { std::lock_guard<std::mutex> guard(context.lock); REQUIRE(context.received_data.size() == expected_messages.size()); for (size_t i = 0; i < expected_messages.size(); i++) { REQUIRE(context.re...
cpp
validate_data
tests/api_test/api_test.cpp
microsoft/ebpf-for-windows
stack-cqs-index
[]
[ "REQUIRE", "add", "data", "keys", "length", "parse", "present?", "size" ]
query: public final TypeAdapterFactory createAdapterFactory(String datePattern) method of DateType
passage: public final TypeAdapterFactory createAdapterFactory(String datePattern) { return createFactory(new DefaultDateTypeAdapter<>(this, datePattern)); }
java
createAdapterFactory
gson/src/main/java/com/google/gson/internal/bind/DefaultDateTypeAdapter.java
google/gson
stack-cqs-index
[ "DefaultDateTypeAdapterTest", "GsonBuilder", "addDateTypeAdapters", "assertFormattingAlwaysEmitsUsLocale", "testDatePattern", "testInvalidDatePattern", "testParsingDatesFormattedWithSystemLocale", "testParsingDatesFormattedWithUsLocale" ]
[ "createFactory" ]
query: waitForDiagnostics(filePath, timeoutMs = 2000) method of LspClient
passage: waitForDiagnostics(filePath, timeoutMs = 2000) { const uri = fileUri(filePath); // If diagnostics are already present, resolve immediately. if (this.diagnostics.has(uri)) { return Promise.resolve(); } return new Promise((resolve) => { let resolved...
javascript
waitForDiagnostics
dist/tools/lsp/client.js
Yeachan-Heo/oh-my-claudecode
stack-cqs-index
[ "runLspAggregatedDiagnostics" ]
[ "clearTimeout", "delete", "fileUri", "get", "has", "push", "resolve", "resolve6", "set", "setTimeout" ]
query: fn drop(self: Pin<&mut Self>) method of Socks5UdpStream
passage: fn drop(self: Pin<&mut Self>) { if let Some(keys_to_delete) = self.keys_to_delete.upgrade() { keys_to_delete.write().push((self.peer, self.destination.clone())); } }
rust
drop
wstunnel/src/protocols/socks5/udp_server.rs
erebe/wstunnel
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: PrepareConfig implements backend.Backend. func (b *Remote) PrepareConfig(obj cty.Value) (cty.Value, tfdiags.Diagnostics) method of Remote
passage: func ( b * remote ) prepareconfig ( obj cty. value ) ( cty. value, tfdiags. diagnostics ) { var diags tfdiags. diagnostics if obj. isnull ( ) { return obj, diags } if val : = obj. getattr ( " organization " ) ; val. isnull ( ) | | val. asstring ( ) = = " " { diags = diags. append ( tfdiags. attributevalue ( tf...
go
PrepareConfig
internal/backend/remote/backend.go
opentofu/opentofu
stack-cqs-index
[ "BackendForLocalPlan", "PrepareConfig", "TestBackendConfig", "TestBackendConfigWarningsAndErrors", "TestBackendConfig_InvalidRegion", "TestBackendConfig_PrepareConfigValidation", "TestBackendConfig_PrepareConfigValidationWarnings", "TestBackendConfig_PrepareConfigWithEnvVars", "TestBackendConfig_STS...
[ "Append", "AsString", "AttributeValue", "CoerceValue", "Convert", "CoreConfigSchema", "DefaultValue", "Errorf", "GetAttr", "GetAttrPath", "Getenv", "HCL2ValueFromConfigValue", "HasPrefix", "HasSuffix", "IsNull", "ParseRetryMode", "PrepareConfig", "PrepareConfigFn", "RawEquals", ...
query: double Transaction::getAmount() const method of Transaction
passage: double Transaction::getAmount() const { return amount; }
cpp
getAmount
solutions/cpp/vendingmachine/Transaction.cpp
ashishps1/awesome-low-level-design
stack-cqs-index
[ "AccessInterceptorScopeLocalizerFunctionalTest", "AccessInterceptorValueHolderFunctionalTest", "AccountServiceTest", "AdminAftersaleController", "App", "Auction", "AuctionSystemDemo", "BitcoinMoneyFormatter", "BitcoinMoneyParserTest", "ChargeRecordDto", "ChargeRefundUpdatedHandler", "CoffeeVen...
[ "N", "actions", "error", "getActualAmount", "getDefaultFractionDigits", "parseFloat", "post", "setAmount", "setAmountLoading", "showError", "test", "views" ]
query: pub fn new( context: Rc<GraphicsContext>, view_resolution: UVec2, swapchain_textures: [Vec<u32>; 2], initial_hud_message: &str, ) -> Self constructor of LobbyRenderer
passage: pub fn new ( context : rc < graphicscontext >, view _ resolution : uvec2, swapchain _ textures : [ vec < u32 > ; 2 ], initial _ hud _ message : & str, ) - > self { let device = & context. device ; let hud _ texture = super : : create _ texture ( device, uvec2 : : one * hud _ texture _ side as u32, sdr _ format...
rust
new
alvr/graphics/src/lobby.rs
alvr-org/ALVR
stack-cqs-index
[ "\"V2\" Command-Line Interface", "10.1 结构体定义", "10.2.1 结构体工厂", "10.2.2 map 和 struct vs new() 和 make()", "16.0 常见的陷阱与错误", "6.5 内置函数", "7.1.1 概念", "7.2.4 new() 和 make() 的区别", "7.2.6 bytes 包", "8.1.1 概念", "Added", "AlertDialog", "Column", "Constructor Patterns", "Dialog", "Enums with T::E...
[ "ADEPTError", "AES", "AES_KEY", "AES_set_decrypt_key", "AES_set_encrypt_key", "APIRoute", "ARC4", "ARC4Cipher", "Absolute", "AccelHandle", "AccessField0", "Accessibility", "AccountId", "ActionConfigDto", "ActionDto", "ActionGroupDto", "ActionGroups", "ActorWaitItem", "AddPanel", ...
query: def file_from_root_for_url(url, repo_url) method of Gitlab
passage: def file_from_root_for_url(url, repo_url) ref_pattern = %r{\A[^/]+/} url.sub(repo_url, '').sub('/-', '').sub('/raw/', '').sub(ref_pattern, '') end
ruby
file_from_root_for_url
lib/gitlab.rb
greasyfork-org/greasyfork
stack-cqs-index
[ "Github", "Gitlab", "info_from_release_event" ]
[ "join", "split", "starts_with?", "sub" ]
query: func ParseShow(args []string) (*Show, func(), tfdiags.Diagnostics) function ParseShow
passage: ##s. args ( ) )! = 0 { diags = diags. append ( tfdiags. sourceless ( tfdiags. error, " unexpected command line arguments ", " this command does not expect any positional arguments when using a target - selection option. ", ) ) return show, closer, diags } targettypes : = 0 if statetarget { targettypes + + show...
go
ParseShow
internal/command/arguments/show.go
opentofu/opentofu
stack-cqs-index
[ "Run", "TestParseShow_invalid", "TestParseShow_valid" ]
[ "AddFlags", "Append", "Args", "BoolVar", "Error", "Parse", "Sourceless", "StringVar", "extendedFlagSet", "len" ]
query: def self.assemble(victoria_metrics_resource_id) method assemble
passage: def self.assemble(victoria_metrics_resource_id) vr = VictoriaMetricsResource[victoria_metrics_resource_id] fail "No existing VictoriaMetricsResource" unless vr DB.transaction do ubid = VictoriaMetricsServer.generate_ubid vm_st = Prog::Vm::Nexus.assemble_with_sshable( Config.vic...
ruby
assemble
prog/victoria_metrics/victoria_metrics_server_nexus.rb
ubicloud/ubicloud
stack-cqs-index
[ "4. Code out your solution while talking through it", "AdminModelSpecHelper", "Build", "Clover", "CmdDatasetAdd", "CmdDatasetUpdate", "Color", "Dryrun", "File", "Get", "GetByDigest", "GithubRunner", "Grid", "ImageItem", "Inspect", "InstallApplicationCommand", "ItemControllerTest", ...
[ "CliOptionsConfig", "CommonTokenStream", "CommonTreeNodeStream", "DexBuilder", "Drain", "Duration", "Err", "Errorf", "File", "FileInputStream", "From", "InputStreamReader", "IsImageIndex", "ListReferences", "MemoryDataStore", "NamespaceTextModel", "New", "Now", "Ok", "Os" ]
query: QString QZBar::videoDevice () const method of QZBar
passage: QString QZBar::videoDevice () const { return(_videoDevice); }
cpp
videoDevice
qt/QZBar.cpp
ZBar/ZBar
stack-cqs-index
[]
[]
query: Test to check whether implemented reverseList() method handles NullPointer Exception for @Test void reverseListNullPointer() method of SinglyLinkedListTest
passage: @Test void reverseListNullPointer() { // Creating a linkedlist with first node assigned to null SinglyLinkedList list = new SinglyLinkedList(); SinglyLinkedListNode first = list.getHead(); // Reversing the linkedlist SinglyLinkedListNode head = list.reverseListIter(...
java
reverseListNullPointer
src/test/java/com/thealgorithms/datastructures/lists/SinglyLinkedListTest.java
TheAlgorithms/Java
stack-cqs-index
[]
[ "SinglyLinkedList", "assertEquals", "getHead", "reverseListIter" ]
query: eventDidMount(arg) function eventDidMount
passage: eventDidMount(arg) { expect(arg.el).toHaveClass('customeventclass') done() }
typescript
eventDidMount
tests/src/legacy/events-json-feed.ts
fullcalendar/fullcalendar
stack-cqs-index
[]
[ "$", "addClass", "count", "css", "describe", "describeOptions", "done", "expect", "initCalendar", "it", "pushOptions", "setAttribute", "setProp", "setTimeout", "toBe", "toEqual", "toHaveClass", "xit" ]
query: function revert(&$variable) function revert
passage: function revert(&$variable) { $cache = $variable; return function () use (&$variable, $cache) { $variable = $cache; }; }
php
revert
src/helpers.php
livewire/livewire
stack-cqs-index
[ "AdBlockingTileService", "Animatable", "Animation", "As", "AutoLayout", "Base", "BlockBuilder", "Ca", "Chain", "Cms", "CommandReceiver", "Contributing to RxJS", "Draggable", "EVM", "Fc", "Ge", "Git", "Hint", "HomeViewModel", "I" ]
[ "AllLocalFiles", "Append", "Bt", "Ct", "Debugf", "EntityWrapper", "Error", "Errorf", "Exception", "Flush", "FlushIfFull", "GetGlobalFile", "HostErrorException", "InfoContext", "IsDeleted", "IsDirectory", "IsEquivalentOptional", "IsNotExist", "IsReceiveOnlyChanged", "Log" ]
query: def psych_wkt_generator method of Factory
passage: def psych_wkt_generator @psych_wkt_generator ||= RGeo::WKRep::WKTGenerator.new(tag_format: :wkt12) end
ruby
psych_wkt_generator
lib/rgeo/geographic/factory.rb
rgeo/rgeo
stack-cqs-index
[ "BasicGeometryMethods", "FFIFactory", "Geos", "ImplHelper", "RGeo", "ZMGeometryMethods", "encode_with", "write_for_psych" ]
[]
query: func TestTSExperimentalDecorator(t *testing.T) function TestTSExperimentalDecorator
passage: ", " < stdin > : error : decorators are not valid here \ n " ) expectparseerrorexperimentaldecoratorts ( t, " @ dec namespace foo { } ", " < stdin > : error : decorators are not valid here \ n " ) expectparseerrorexperimentaldecoratorts ( t, " @ dec function foo ( ) { } ", " < stdin > : error : decorators are ...
go
TestTSExperimentalDecorator
internal/js_parser/ts_parser_test.go
evanw/esbuild
stack-cqs-index
[]
[ "expectParseErrorExperimentalDecoratorTS", "expectPrintedExperimentalDecoratorTS", "expectPrintedTS", "expectPrintedTargetExperimentalDecoratorTS" ]
query: public function setId(string $id): void method of Session
passage: public function setId(string $id): void { $this->id = $id; }
php
setId
src/session/src/Session.php
hyperf/hyperf
stack-cqs-index
[ "ACLTest", "AbstractModel", "AbstractProxyTest", "AbstractSQLConfig", "AbstractSQLExecutor", "AbstractSessionListener", "AbstractSofaRpcFilterTest", "AbstractTaskInstanceFactory", "AccessKeyController", "AccessKeyService", "AccessKeyServiceWithCacheTest", "AccessTokenResourcePermissionCheckTes...
[ "IllegalArgumentException", "TranslatedException", "actions", "analysisId", "assign", "checkInt32", "checkString", "checkUint64", "ctype_alnum", "formatId", "getId", "getIdKey", "getInstance", "getMaxIdLength", "getSession", "isActive", "isReal", "isValidId", "is_string", "leng...
query: public ClassNode getTopParentClass() method of ClassNode
passage: public ClassNode getTopParentClass() { ClassNode parent = getParentClass(); return parent == this ? this : parent.getTopParentClass(); }
java
getTopParentClass
jadx-core/src/main/java/jadx/core/dex/nodes/ClassNode.java
skylot/jadx
stack-cqs-index
[ "ClassGen", "ClassInfo", "ClassNode", "CodeCommentNode", "CodeGenUtils", "CommentSearchProvider", "DbgUtils", "DecompilerScheduler", "ExcludeAndroidRClass", "FieldNode", "InsnGen", "IntegrationTest", "JadxDecompiler", "JadxTokenMaker", "JavaClass", "JavaField", "JavaMethod", "JavaV...
[ "getCodeParent", "getParentClass", "getTopParentClass" ]
query: int SingleGamepad_::getInterface(uint8_t* interfaceCount) method of SingleGamepad_
passage: int SingleGamepad_::getInterface(uint8_t* interfaceCount) { *interfaceCount += 1; // uses 1 HIDDescriptor hidInterface = { D_INTERFACE(pluggedInterface, 1, USB_DEVICE_CLASS_HUMAN_INTERFACE, HID_SUBCLASS_NONE, HID_PROTOCOL_NONE), D_HIDREPORT(sizeof(_hidReportDescriptorGamepad)), D_ENDPOINT(USB_ENDPOINT_...
cpp
getInterface
src/SingleReport/SingleGamepad.cpp
NicoHood/HID
stack-cqs-index
[ "AbstractDubboFilter", "AbstractDubboFilterTest", "BatteryStatsStub", "ClipBoardStub", "DeviceFilter", "DubboExceptionFilter", "DubboTestUtil", "DubboUtils", "DubboUtilsTest", "ExceptionListener", "ExceptionListenerX", "FullSupportScriptEngine", "JavaScriptEngine", "LauncherAppsStub", "M...
[ "D_ENDPOINT", "D_HIDREPORT", "D_INTERFACE", "USB_ENDPOINT_IN", "USB_SendControl", "append", "asBinder", "call", "checkConnection", "find", "genProxy", "get", "getAlternateSetting", "getContext", "getId", "getInterface", "getInterfaceCount", "getInterfaceName", "getInterfaces", ...
query: async function exists(path: string): Promise<boolean> function exists
passage: async function exists(path: string): Promise<boolean> { try { await access(path); return true; } catch { return false; } }
typescript
exists
cli/src/utils/extract.ts
nextlevelbuilder/ui-ux-pro-max-skill
stack-cqs-index
[ "$F", "$p", "$t", "A2AAgentCardResolverTest", "AB", "ABTestAnalyzer", "ACEBenchmark", "ACLTest", "ADBDialog", "AHFrame", "AIFilter", "AIService", "ALLanguageServer", "AMDGPU", "API", "AP_BWE", "ASMifierFileV", "AST", "ASTCache", "AUTH_STORAGE_FILE" ]
[ "Any", "Boolean", "ChainWrappers", "Close", "ConsoleMessage", "Database", "Db", "DirectoryIterator", "Do", "Err", "Exception", "Exists", "ExistsRequest", "ExistsWatchRegistration", "File", "FileAlreadyExists", "From", "Get", "HDFSCliError", "IOException" ]
query: def warn_add_children_to_leaf(node) method of Siblings
passage: def warn_add_children_to_leaf(node) ::I18n::Tasks::Logging.log_warn "'#{node.full_key}' was a leaf, now has children (value <- scope conflict)" end
ruby
warn_add_children_to_leaf
lib/i18n/tasks/data/tree/siblings.rb
glebm/i18n-tasks
stack-cqs-index
[ "Siblings", "conditionally_warn_add_children_to_leaf" ]
[ "full_key", "log_warn" ]
query: public function testOnlineCount() method of NodeTest
passage: public function testOnlineCount() { $this->post('/mu/nodes/'.$this->id.'/online_count', [ 'count' => $this->count, ]); $this->assertEquals('200', $this->response->getStatusCode()); }
php
testOnlineCount
tests/Mu/NodeTest.php
orvice/ss-panel
stack-cqs-index
[]
[ "assertEquals", "getStatusCode", "post" ]
query: function getAgentDefinitions(options?: function getAgentDefinitions
passage: = = = = = = = = ' security - reviewer ' : securityrevieweragent, ' code - reviewer ' : coderevieweragent, / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = / / domain specialists / / = = = = = = = = = = = = = = = = = = = = = = = = = = = ...
typescript
getAgentDefinitions
src/agents/definitions.ts
Yeachan-Heo/oh-my-claudecode
stack-cqs-index
[ "Creating a New Agent", "Key Files", "createOmcSession", "enforceModel", "getModelForAgent", "main" ]
[ "entries", "getConfiguredAgentModel", "loadConfig", "parseDisallowedTools" ]
query: def embedded_by_reference? method of Association
passage: def embedded_by_reference? false end
ruby
embedded_by_reference?
lib/identity_cache/cached/recursive/association.rb
Shopify/identity_cache
stack-cqs-index
[ "Association", "Cached", "ClassMethods", "Encoder", "ExpiryHook", "IdentityCache", "QueryAPI", "coder_from_record", "each_id_embedded_association", "embedded?", "only_on_foreign_key_change?" ]
[ "raise" ]
query: @Test public void testNullSubtype() method of RuntimeTypeAdapterFactoryTest
passage: @Test public void testNullSubtype() { RuntimeTypeAdapterFactory<BillingInstrument> rta = RuntimeTypeAdapterFactory.of(BillingInstrument.class); assertThrows(NullPointerException.class, () -> rta.registerSubtype(null)); }
java
testNullSubtype
extras/src/test/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactoryTest.java
google/gson
stack-cqs-index
[]
[ "assertThrows", "of", "registerSubtype" ]
query: bool TFT_ILI9163C::boundaryCheck(int16_t x,int16_t y) method of TFT_ILI9163C
passage: bool TFT_ILI9163C::boundaryCheck(int16_t x,int16_t y){ if ((x >= _width) || (y >= _height)) return true; return false; }
cpp
boundaryCheck
STM32F1/libraries/MapleCoOS116/examples/coos_display_blink/TFT_ILI9163C.cpp
rogerclarkmelbourne/Arduino_STM32
stack-cqs-index
[ "drawFastHLine", "drawFastVLine", "drawPixel", "fillRect", "setCursor", "writeHLine_cont_noCS_noFill", "writePixel_cont_noCS", "writeVLine_cont_noCS_noFill" ]
[]
query: func (v *staggered) Clean(ctx context.Context) error method of staggered
passage: func (v *staggered) Clean(ctx context.Context) error { return clean(ctx, v.versionsFs, v.toRemove) }
go
Clean
lib/versioner/staggered.go
syncthing/syncthing
stack-cqs-index
[ "Abs", "AbsPathify", "AbsoluteURI", "Add", "AddNode", "AddPath", "AddPicture", "AgentFileEndpoint", "BasePath", "CanonicalURLPath", "Canonicalize", "Capture", "Clean", "CleanKey", "CleanPath", "CleanString", "CleanWorker", "ClearError", "CommonPrefix", "CompareAndDelete" ]
[ "Add", "Before", "Called", "Clean", "Dispose", "Done", "Duration", "Err", "Error", "Exec", "FindAllNamedRegexMatch", "ForEach-Object", "FromContext", "FromType", "Get", "GetCompiledRegex", "GetGlob", "GetGoid", "GetTemplateDir", "IsDir" ]
query: void Tracker::activate() method of Tracker
passage: void Tracker::activate() { // NOTE: Tracker::s_mutex must be held s_instance = s_instance_owner.get(); }
cpp
activate
src/memray/_memray/tracking_api.cpp
bloomberg/memray
stack-cqs-index
[ "$", "AMapLocationSourceProxy", "Activate", "ActivateLicenseCommand", "ActivateLicenseController", "ActivateSteps", "ActivationController", "ActiveAliasController", "ActiveDomainController", "ActiveResourcesTest", "ActiveRuleController", "ActiveUsernameController", "AddonManager", "Ag", ...
[ "$", "$emit", "$nextTick", "$onPulling", "AMapLocationChangedListenerProxy", "Activate", "ActivateLicenseRequest", "Activated", "ApolloAuditScope", "Body", "CDVCommandStatus_OK", "CDVPluginResult", "Child", "Clear", "Configurator", "CreateBooleanComponent", "CreateHapticComponent", ...
query: function observeState() function observeState
passage: function observeState() { if (observer.next) { observer.next(getState()); } }
typescript
observeState
packages/redux-devtools-instrument/src/instrument.ts
reduxjs/redux-devtools
stack-cqs-index
[ "createStore", "observable", "subscribe", "unliftStore" ]
[ "getState", "next" ]
query: function Home() function Home
passage: function Home() { return ( <> <Head> <title>Vercel Edge Test</title> <meta name="description" content="Generated by create next app" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="icon" href="/favicon.ico" /> </Head> ...
typescript
Home
ecosystem-tests/vercel-edge/src/pages/index.tsx
openai/openai-node
stack-cqs-index
[ "Add", "Apply", "DirMatchesOneOf", "Enabled", "Home", "Internal Links", "Links", "LoginTest", "Markdownify", "Motion_Trigger", "Path", "README", "ReplaceHomeDirPrefixWithTilde", "ReplaceTildePrefixWithHomeDir", "Sections", "TestLoadConfig", "TestLoadConfigLanguageParamsOverrideIssue1...
[ "Called", "Chat", "CheckReady", "Debug", "Deskreen Repo", "Deskreen wiki", "Getenv", "Home", "Introduction", "NextJS", "Number", "String", "WinFsp - Windows File System Proxy", "_hideBanner", "access_token", "addEventListener", "addFiles", "addToast", "agentCommandAvailable", "...
query: public function test_delete_server(): void method of ServerTest
passage: public function test_delete_server(): void { Sanctum::actingAs($this->user, ['read', 'write']); SSH::fake(); $this->json('DELETE', route('api.projects.servers.delete', [ 'project' => $this->server->project_id, 'server' => $this->server->id, ])) ...
php
test_delete_server
tests/Feature/API/ServerTest.php
vitodeploy/vito
stack-cqs-index
[]
[ "actingAs", "assertDatabaseMissing", "assertNoContent", "assertSessionDoesntHaveErrors", "delete", "fake", "json", "route" ]
query: def fast_copy_chain(base_dir, targets, options={}) method of Host
passage: sleep 1 ; done " } raise " fifo not found on # { t } after 10 tries " unless checker _ th. join ( 10 ) workers < < thread. new { t. ssh _ cmd " cd # { dir } & & nc - l # { port } | tee # { fifo } # { decryption _ pipe } # { decompression _ pipe } | tar x " } t. confirm _ listening _ on _ port port t. output " ...
ruby
fast_copy_chain
lib/jetpants/host.rb
tumblr/jetpants
stack-cqs-index
[ "DB", "Host", "Jetpants", "Pool", "Shard", "clone_to!", "collect_and_compare_queries!", "multi_threaded_cloning", "set_up_aggregate_node", "ship_schema_to" ]
[ "compare_dir", "compress_with", "confirm_installed", "confirm_listening_on_port", "count", "decompress_with", "decrypt_with", "dir_list", "each", "each_with_index", "encrypt_with", "free_mem_min_mb", "include?", "inject", "ip", "is_a?", "join", "keys", "map", "nil?" ]
query: (val: string) => function handleSearchUpdate
passage: (val: string) => { searchValue.value = val; performSearch(val); }
typescript
handleSearchUpdate
src/views/List/streaming-playlist.vue
imsyy/SPlayer
stack-cqs-index
[]
[ "performSearch" ]
query: def test_create_bnb_peft_model_from_config(self) method of TestPeftModel
passage: def test_create_bnb_peft_model_from_config(self): r""" Simply creates a peft model and checks that it can be loaded. """ from bitsandbytes.nn import Linear8bitLt from transformers import BitsAndBytesConfig trl_model = AutoModelForCausalLMWithValueHead.from_pretr...
python
test_create_bnb_peft_model_from_config
tests/experimental/test_ppo_trainer.py
huggingface/trl
stack-cqs-index
[]
[ "BitsAndBytesConfig", "from_pretrained", "isinstance", "numel", "parameters", "sum" ]
query: @Valid private Map<NotificationType, NotificationSettings> scheduledNotifications; property scheduledNotifications
passage: @Valid private Map<NotificationType, NotificationSettings> scheduledNotifications;
java
scheduledNotifications
notification-service/src/main/java/com/piggymetrics/notification/domain/Recipient.java
sqshq/piggymetrics
stack-cqs-index
[]
[]
query: def initialize(string) method of Chars
passage: def initialize(string) @wrapped_string = string @wrapped_string.force_encoding(Encoding::UTF_8) unless @wrapped_string.frozen? end
ruby
initialize
vendor/rails/activesupport/lib/active_support/multibyte/chars.rb
insoshi/insoshi
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 test_dont_show_flash_message_when_user_cannot_be_saved method of UpdateActionBaseTest
passage: def test_dont_show_flash_message_when_user_cannot_be_saved User.stubs(:find).returns(mock_user(update: false, errors: {some: :error})) put :update, params: { id: '42' } assert_empty flash end
ruby
test_dont_show_flash_message_when_user_cannot_be_saved
test/base_test.rb
activeadmin/inherited_resources
stack-cqs-index
[]
[ "assert_empty", "mock_user", "post", "put", "returns", "stubs" ]
query: private String nameServer; property nameServer
passage: private String nameServer;
java
nameServer
client/src/main/java/com/alibaba/otter/canal/client/rabbitmq/RabbitMQCanalConnector.java
alibaba/canal
stack-cqs-index
[]
[]
query: function Yd(e,t) function Yd
passage: function Yd(e,t){var r;return function(){var n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}
javascript
Yd
public/vendor/livewire/livewire.min.js
alexjustesen/speedtest-tracker
stack-cqs-index
[ "$d", "CA", "Fn", "G0", "Gd", "Hl", "Jo", "KP", "Pu", "Ud", "Vd", "Vu", "Wd", "Xd", "Xl", "Yd", "Zc", "Zd", "af", "append" ]
[ "$f", "Af", "Ao", "Cb", "E", "Fi", "Gh", "Gt", "L", "Md", "Mr", "Nf", "Pf", "Rb", "String", "Ue", "We", "Xc", "Xr", "Yd" ]
query: func (c *ChatInstance) GetEndpoint() string method of ChatInstance
passage: func (c *ChatInstance) GetEndpoint() string { return c.Endpoint }
go
GetEndpoint
adapter/zhipuai/struct.go
coaidev/coai
stack-cqs-index
[ "AddAndLoginClient", "CDWHCITransferStageData", "ChannelInterruptHandler", "CreateStreamChatRequest", "GetChangeEndpoint", "GetChatEndpoint", "GetDomain", "GetHealthEndpoint", "GetImageEndpoint", "GetImagineEndpoint", "New", "NewChatInstanceFromConfig", "ProcessError", "QueueDelayedTransac...
[ "Sprintf", "getEndpoint" ]
query: function checkInvalidHeaderChar(val?: string) function checkInvalidHeaderChar
passage: function checkInvalidHeaderChar(val?: string) { val += ""; if (val.length < 1) return false; if (!validHdrChars[val.charCodeAt(0)]) { debug('invalid header, index 0, char "%s"', val.charCodeAt(0)); return true; } if (val.length < 2) return false; if (!validHdrChars[val.charCodeAt(1)]) { ...
typescript
checkInvalidHeaderChar
packages/engine.io/lib/server.ts
socketio/socket.io
stack-cqs-index
[ "verify" ]
[ "charCodeAt", "debug" ]
query: fn set_active_updates_default_profile() function set_active_updates_default_profile
passage: fn set_active_updates_default_profile() { let (_temp, profile) = sample_profile(); let mut cmd = cargo_bin_cmd!("x"); cmd.args([ "set", "active", "erik", "key_a", "--profile", utf8_path(&profile), ]) .assert() .success() .stdout(predi...
rust
set_active_updates_default_profile
tests/cli_behavior.rs
sferik/x-cli
stack-cqs-index
[]
[ "args", "assert", "cargo_bin_cmd", "contains", "expect", "read_to_string", "sample_profile", "stdout", "success", "utf8_path" ]
query: void ParaNdis6_Fill620PowerCapabilities(PNDIS_PM_CAPABILITIES pPower620Caps) function ParaNdis6_Fill620PowerCapabilities
passage: / / if wake on magic packet supported ppower620caps - > minmagicpacketwakeup = ( ppower620caps - > supportedwolpacketpatterns & ndis _ pm _ wol _ magic _ packet _ supported )? ndisdevicestated3 : ndisdevicestateunspecified ; / / if wake on link change supported ppower620caps - > minlinkchangewakeup = ndisdevic...
cpp
ParaNdis6_Fill620PowerCapabilities
NetKVM/wlh/ParaNdis6_Oid.cpp
virtio-win/kvm-guest-drivers-windows
stack-cqs-index
[ "ParaNdis6_Initialize" ]
[ "NdisZeroMemory" ]
query: private static function absolutize( &$path, $base ) method of Configurator
passage: private static function absolutize( &$path, $base ) { if ( ! empty( $path ) ) { $path = Path::expand_tilde( $path ); if ( ! Path::is_absolute( $path ) ) { $path = $base . DIRECTORY_SEPARATOR . $path; } } }
php
absolutize
php/WP_CLI/Configurator.php
wp-cli/wp-cli
stack-cqs-index
[ "Configurator", "EVAL_IN_CONTEXT_PATH", "IriTest", "Layout", "Misc", "REQUIRE_IN_RUNTIME_PATH", "Requests", "Session", "absolute_path", "absolutize", "absolutize_url", "add_alias", "build_renderer_raw", "examplesLoader", "findUserWebpackConfig", "load_yml", "merge_request", "parse_...
[ "$", "IRI", "absolutize", "class", "cwd", "empty", "expand_tilde", "format", "get", "getLayout", "getOffsetParent", "getStyle", "get_iri", "into", "is_absolute", "is_valid", "it", "join", "map", "relativeTo" ]
query: def default_authenticate(authorization function default_authenticate
passage: def default_authenticate(authorization: str = Header(...)) -> None: if authorization != f"Bearer {AUTH_KEY}": raise HTTPException(status_code=401, detail="Invalid key")
python
default_authenticate
tests/llm_adapters/mock_app/app.py
lss233/kirara-ai
stack-cqs-index
[]
[ "HTTPException", "Header" ]
query: def assert_py_to_js_to_py(selenium, name) function assert_py_to_js_to_py
passage: def assert_py_to_js_to_py(selenium, name): selenium.run_js( f""" self.obj = pyodide.runPython('{name}'); pyodide.runPython(` from js import obj assert obj is {name} `); obj.destroy(); """ )
python
assert_py_to_js_to_py
src/tests/test_typeconversions.py
pyodide/pyodide
stack-cqs-index
[ "test_dict_py2js2py", "test_error_py2js2py", "test_list_py2js2py" ]
[ "run_js" ]
query: public function test_it_has_approved_scope() method of CommentTest
passage: public function test_it_has_approved_scope() { factory(Comment::class)->create(['comment_approved' => 0]); $lastComment = Comment::orderBy('created_at', 'desc')->approved()->first(); $this->assertNull($lastComment); $comment = factory(Comment::class)->create(['comment_appro...
php
test_it_has_approved_scope
tests/Unit/Model/CommentTest.php
corcel/corcel
stack-cqs-index
[]
[ "approved", "assertEquals", "assertNotNull", "assertNull", "create", "factory", "first", "orderBy" ]
query: (absPath) => function fileUrl
passage: (absPath) => { if (!agentName) return absPath return apiUrl(`/api/agents/${encodeURIComponent(agentName)}/files?path=${encodeURIComponent(absPath)}`) }
javascript
fileUrl
core/http/react-ui/src/components/ResourceCards.jsx
mudler/LocalAI
stack-cqs-index
[ "AppDelegate", "Logan", "ResourceCards", "appId", "createShallowClone", "date", "deviceId", "extractMetadataArtifacts", "fileUrl", "loadWithXHR", "resultBlock", "setupRepoAndClone", "unionId", "uploadFile", "uploadFileToServer" ]
[ "_filePath", "apiUrl", "encodeURIComponent", "fileUrl", "forEach", "fullPath", "get", "ref" ]
query: public static boolean containsVar(InsnNode insn, RegisterArg arg) method of InsnUtils
passage: public static boolean containsVar(InsnNode insn, RegisterArg arg) { if (insn == null) { return false; } RegisterArg result = insn.getResult(); if (result != null && result.sameRegAndSVar(arg)) { return true; } if (insn.getArgsCount() == 0) { return false; } for (InsnArg insnArg : insn....
java
containsVar
jadx-core/src/main/java/jadx/core/utils/InsnUtils.java
skylot/jadx
stack-cqs-index
[ "InsnArg", "InsnNode", "InsnUtils", "LoopRegion", "LoopRegionVisitor", "checkForIndexedLoop", "checkPreCondition", "containsVar", "isUseVar" ]
[ "containsVar", "getArgsCount", "getArguments", "getResult", "getWrapInsn", "isEmpty", "isInsnWrap", "isRegister", "sameRegAndSVar" ]