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: def fill linkser_object method of Link
passage: def fill linkser_object self.title = linkser_object.title if linkser_object.title self.description = linkser_object.description if linkser_object.description self.url = linkser_object.last_url r = linkser_object.resource if r and r.type and r.url self.callback_url = r.url en...
ruby
fill
linkser/app/models/link.rb
ging/social_stream
stack-cqs-index
[ "$s", "AALineMixin", "AALinesMixin", "ABogus", "ADFGVXCipher", "Aa", "AbstractGroupTypeTest", "AbstractImageTest", "AbstractStruct", "AbstractType", "Accessors", "AcroForm", "AcrobotEnv", "Addressable", "AgentBuilderAssistant", "Ai", "Alarm", "An", "Analyzable", "AnimatedRect" ...
[ "AnnotationHandler", "ArrayList", "Canvas", "Collections", "Copy", "CreateMasteringVoice", "CreateSourceVoice", "Duration", "Edge", "EvalRange", "Exception", "FAILED", "FileArrayAdapter", "Fill", "FillModifier", "GaussianBlur", "GetAddressOf", "GetState", "Int", "Int64" ]
query: def revision_version_info method of Codedeploy
passage: def revision_version_info s3.head_object(bucket:, key:) rescue Aws::Errors::ServiceError => e error e.message end
ruby
revision_version_info
lib/dpl/providers/codedeploy.rb
travis-ci/dpl
stack-cqs-index
[]
[ "error", "head_object", "message" ]
query: async def embedding_func(texts function embedding_func
passage: async def embedding_func(texts: list[str]) -> np.ndarray: outputs = model(texts) embedding_outputs = np.array([doc.embedding for doc in outputs]) return embedding_outputs
python
embedding_func
libs/ktem/ktem/index/file/graph/lightrag_pipelines.py
Cinnamon/kotaemon
stack-cqs-index
[ "BCOTrainer", "_vectorize_prompt" ]
[ "array", "model" ]
query: void TypecheckVisitor::visit(FunctionStmt *stmt) method of TypecheckVisitor
passage: + insertsize + +, param ( cc, n < idexpr > ( type _ type ) ) ) ; } else if ( auto si = v - > getstatickind ( ) ) { stmt - > items. insert ( stmt - > items. begin ( ) + insertsize + +, param ( cc, n < indexexpr > ( n < idexpr > ( " literal " ), n < idexpr > ( type : : stringfromliteral ( si ) ) ) ) ) ; } else {...
cpp
visit
codon/parser/visitors/typecheck/function.cpp
exaloop/codon
stack-cqs-index
[ "$Resolve", "<a name=\"navigating\"></a>Navigating", "AST", "AWQQuantize", "AbstractMethodObject", "AcceptInvitationUTest", "AcceptNewPoliciesTest", "AccessibilityOverrides", "AccountManagementSystemTest", "AccountTest", "ActionAST", "ActionDispatch", "ActionModelsSystemTest", "ActionViewH...
[ "ALL", "ASMifierClassV", "ASTVisitor", "AbstractRegionVisitor", "AbstractVisitor", "AdviceAdapter", "AnnotationVisitor", "AssertionError", "AwaitingInsnCompareTraverserState", "BaksmaliDumpOut", "BindingEdge", "Bool", "C", "CHECK", "CircularReferenceException", "ClassInfo", "ClassRem...
query: fn flow_control_limit_dup( #[values("cubic", "bbr2_gcongestion")] cc_algorithm_name: &str, ) function flow_control_limit_dup
passage: fn flow_control_limit_dup( #[values("cubic", "bbr2_gcongestion")] cc_algorithm_name: &str, ) { let mut buf = [0; 65535]; let mut pipe = test_utils::Pipe::new(cc_algorithm_name).unwrap(); assert_eq!(pipe.handshake(), Ok(())); let frames = [ // One byte less than stream limit. ...
rust
flow_control_limit_dup
quiche/src/tests.rs
cloudflare/quiche
stack-cqs-index
[]
[ "assert", "assert_eq", "from", "unwrap" ]
query: updateMask(id: string, updater: (mask: Mask) => void) function updateMask
passage: updateMask(id: string, updater: (mask: Mask) => void) { const masks = get().masks; const mask = masks[id]; if (!mask) return; const updateMask = { ...mask }; updater(updateMask); masks[id] = updateMask; set(() => ({ masks })); get().markUpdate(); }
typescript
updateMask
app/store/mask.ts
ChatAnyTeam/ChatAny
stack-cqs-index
[ "async", "updateConfig" ]
[ "createPersistStore", "get", "markUpdate", "set", "updater" ]
query: public void closeDriver() method of CameraManager
passage: public void closeDriver() { if (camera != null) { FlashlightManager.disableFlashlight(); camera.release(); camera = null; } }
java
closeDriver
Android/dokit/src/main/java/com/didichuxing/doraemonkit/zxing/camera/CameraManager.java
didi/DoKit
stack-cqs-index
[ "CaptureActivity", "onPause" ]
[ "disableFlashlight", "release" ]
query: def create_step_hash(test_step) method of Json
passage: def create_step_hash(test_step) step_source = @ast_lookup.step_source(test_step).step step_hash = { keyword: step_source.keyword, name: test_step.text, line: test_step.location.lines.min } step_hash[:doc_string] = create_doc_string_hash(step_source....
ruby
create_step_hash
lib/cucumber/formatter/json.rb
cucumber/cucumber-ruby
stack-cqs-index
[ "Cucumber", "Formatter", "Json", "on_test_step_started" ]
[ "content", "create_data_table_value", "create_doc_string_hash", "data_table", "doc_string", "keyword", "lines", "location", "min", "multiline_arg", "nil?", "step", "step_source", "text" ]
query: private JMenuItem makeExportSubMenu(JClass jClass) method of JClassPopupMenu
passage: private JMenuItem makeExportSubMenu(JClass jClass) { JMenu exportSubMenu = new JMenu(NLS.str("popup.export")); exportSubMenu.add(makeExportMenuItem(jClass, NLS.str("tabs.code"), JClassExportType.Code)); exportSubMenu.add(makeExportMenuItem(jClass, NLS.str("tabs.smali"), JClassExportType.Smali)); expor...
java
makeExportSubMenu
jadx-gui/src/main/java/jadx/gui/ui/popupmenu/JClassPopupMenu.java
skylot/jadx
stack-cqs-index
[ "JClassPopupMenu", "JPackagePopupMenu" ]
[ "JMenu", "add", "makeExportMenuItem", "str" ]
query: public function generateOrderByCart($address, $shipping_method, $payment_method, $clearCart = true, $token = '', $order_remark = '') method of Order
passage: public function generateorderbycart ( $ address, $ shipping _ method, $ payment _ method, $ clearcart = true, $ token = ' ', $ order _ remark = ' ' ) { $ cart = yii : : $ service - > cart - > quote - > getcurrentcart ( ) ; if (! $ cart ) { yii : : $ service - > helper - > errors - > add ( ' current cart is emp...
php
generateOrderByCart
services/Order.php
fecshop/yii2_fecshop
stack-cqs-index
[ "Placeorder", "Wxplaceorder", "getLastData" ]
[ "add", "addByModelErrors", "clearCartProductAndCoupon", "deduct", "empty", "encode", "generateIncrementIdByOrderId", "getByPaymentToken", "getCartInfo", "getCheckoutType", "getCurrencyInfo", "getCurrentCart", "getPrimaryKey", "isAppserver", "is_array", "save", "saveOrderItems", "se...
query: def chunk_scanner(chunk_idx function chunk_scanner
passage: def chunk_scanner(chunk_idx: int) -> AttnChunk: key_chunk = narrow_trunc( key, 1, chunk_idx, kv_chunk_size ) value_chunk = narrow_trunc( value, 1, chunk_idx, kv_chunk_size ) r...
python
chunk_scanner
modules/sub_quadratic_attention.py
AUTOMATIC1111/stable-diffusion-webui
stack-cqs-index
[ "_query_chunk_attention" ]
[ "narrow_trunc", "summarize_chunk" ]
query: def test_whisper_model_removes_file(self, tmp_path) method of TestTranscriptionModelDeleteLocalFile
passage: def test_whisper_model_removes_file(self, tmp_path): model_file = tmp_path / "model.pt" model_file.write_bytes(b"fake model data") model = TranscriptionModel(model_type=ModelType.WHISPER, whisper_model_size=WhisperModelSize.TINY) with patch.object(model, 'get_local_model_path', ...
python
test_whisper_model_removes_file
tests/model_loader_test.py
chidiwilliams/buzz
stack-cqs-index
[]
[ "TranscriptionModel", "delete_local_file", "exists", "object", "str", "write_bytes" ]
query: function ki(e,t,n) function ki
passage: function ki(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=e.options.length;s<u;s++)if(a=e.options[s],i)o=P(r,Li(a))>-1,a.selected!==o&&(a.selected=o);else if(j(Li(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}
javascript
ki
public/js/app.js
guyueyingmu/avbook
stack-cqs-index
[ "$a", "$i", "Ag", "Ao", "Bo", "Br", "C0", "CI", "CS", "Ca", "Ci", "Co", "Di", "Dr", "E1", "EI", "Ea", "Ei", "Eo", "Er" ]
[ "$i", "AO", "Aa", "Ae", "Ai", "An", "Bo", "Bt", "Ca", "Ci", "D", "DK", "Da", "Dn", "Ee", "Ei", "Error", "Fi", "Ge", "H" ]
query: func (s *Server) validate() error method of Server
passage: func (s *Server) validate() error { if s.port == 0 { s.port = 8080 } if s.port < 0 || s.port > 65535 { return fmt.Errorf("the port must be a strictly positive number and be strictly smaller than 65536 (Got %v)", s.port) } return nil }
go
validate
cmd/fyne/internal/commands/serve.go
fyne-io/fyne
stack-cqs-index
[ "$", "0.16.0 (2022-05-30)", "1.5. How to Re-create the Exploit", "2.3.0", "5.4.1 重构请求校验函数", "5.4.2 用 validator 解放体力劳动", "AASM", "AST", "ASVValidatable", "AXEParser", "AbstractAnnotationTest", "AbstractColorChannel", "AbstractComparisonValidatorTestCase", "AbstractField", "AbstractJobInst...
[ "$", "$DIFF", "$mount", "$setValidity", "01-basic-usage", "AccessDeniedHttpException", "Annotate", "Append", "ArgValidationError", "ArrayLoader", "AssertionFailedError", "Atoi", "AuthenticationException", "AutoGroup", "AverageMeter", "BATCH_MINT_TOKENS", "BadParameter", "BadRequest...
query: def initialize(message:, location:) method of UnexpectedError
passage: def initialize(message:, location:) @message = message @location = location end
ruby
initialize
lib/steep/diagnostic/signature.rb
soutaro/steep
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: async def join_voice_channel(self, guild_id method of VoiceConnectionManager
passage: async def join _ voice _ channel ( self, guild _ id : int, channel _ id : int, user _ id : int = none ) - > discord. voiceclient : " " " 加 道 和 道 , 立 定 道 的 。 和 。 @ author : @ ydzat args : guild _ id ( int ) : id channel _ id ( int ) : 道 id user _ id ( int, optional ) : id , returns : discord. voiceclient : rais...
python
join_voice_channel
src/langbot/pkg/platform/sources/discord.py
langbot-app/LangBot
stack-cqs-index
[ "DiscordAdapter", "join_voice_channel" ]
[ "VoiceConnectionError", "VoiceConnectionInfo", "VoiceNetworkError", "_disconnect_internal", "_validate_bot_permissions", "_validate_user_in_channel", "connect", "error", "get_channel", "get_guild", "info", "isinstance", "join_voice_channel", "len", "str", "update_status" ]
query: @Override public UserDTO get(Integer id) method of UserServiceImpl
passage: @Override public UserDTO get(Integer id) { return new UserDTO().setId(id) .setName("没有昵称:" + id) .setGender(id % 2 + 1); // 1 - 男;2 - 女 }
java
get
labx-07-spring-cloud-alibaba-dubbo/labx-07-sca-dubbo-demo05-sentinel/labx-07-sca-dubbo-demo05-provider/src/main/java/cn/iocoder/springcloudalibaba/labx7/providerdemo/service/UserServiceImpl.java
yudaocode/SpringBoot-Labs
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: private Exclusive(long expectedSize) constructor of Exclusive
passage: private Exclusive(long expectedSize) { this.expectedSize = expectedSize; }
java
Exclusive
caffeine/src/testFixtures/java/com/github/benmanes/caffeine/cache/CacheContextSubject.java
ben-manes/caffeine
stack-cqs-index
[ "CacheContextSubject", "ListenerSubject", "SCHEMA", "TestSubscriber", "WithCause", "_sidebar", "contains", "from" ]
[ "addCopies", "awaitUntil", "build", "builder", "check", "collect", "isEqualTo", "map", "removed", "stream", "that", "toImmutableMultiset", "toIntExact" ]
query: func (f *FileReadAtSeeker) Close() error method of FileReadAtSeeker
passage: func (f *FileReadAtSeeker) Close() error { return f.ss.Close() }
go
Close
internal/stream/stream.go
AlistGo/alist
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: inline matcher_memchr_t(char needle) noexcept : needle_(needle) constructor of matcher_memchr_t
passage: inline matcher_memchr_t(char needle) noexcept : needle_(needle) {}
cpp
matcher_memchr_t
scripts/bench_find.cpp
ashvardanian/StringZilla
stack-cqs-index
[]
[ "data", "do_not_optimize", "memchr", "size" ]
query: private function getEventManager(): EventManager method of DependencyFactory
passage: private function getEventManager(): EventManager { if ($this->eventManager !== null) { return $this->eventManager; } if ($this->hasEntityManager()) { return $this->eventManager = $this->getEntityManager()->getEventManager(); } if (method_exi...
php
getEventManager
src/DependencyFactory.php
doctrine/migrations
stack-cqs-index
[ "AbstractTreeRepository", "BaseTestCaseMongoODM", "BaseTestCaseOM", "BaseTestCaseORM", "ClosureTreeTest", "DependencyFactory", "DryRunORMExecutorTest", "ForcedMetadataTest", "LogEntryRepository", "LoggableORMMappingTest", "MongoDBExecutor", "ORMExecutorCommon", "ObjectHydrator", "Persisten...
[ "EventManager", "LoggableListener", "SluggableListener", "SoftDeleteableListener", "TimestampableListener", "TranslatableListener", "TreeListener", "addEventSubscriber", "getConnection", "getEntityManager", "getEventManager", "hasEntityManager", "method_exists" ]
query: Create from raw u8 value pub fn from_u8(value: u8) -> Option<Self> method of ConnectionRole
passage: pub fn from_u8(value: u8) -> Option<Self> { match value { 0x00 => Some(ConnectionRole::Central), 0x01 => Some(ConnectionRole::Peripheral), _ => None, } }
rust
from_u8
embassy-stm32-wpan/src/wba/gap/connection.rs
embassy-rs/embassy
stack-cqs-index
[ "add_characteristic", "add_service", "allow_rebond", "authenticate", "check_status", "choose_adapter", "clear_security_database", "create_principal", "delete_characteristic", "delete_service", "deserialize", "dispatch", "from_legacy", "from_rgba8", "from_vec", "get_member_of", "indic...
[ "Other", "OtherReply", "Some", "to_string", "unreachable" ]
query: static bool ggml_vk_build_graph(ggml_backend_vk_context * ctx, ggml_cgraph * cgraph, int node_idx, ggml_tensor *node_begin, int node_idx_begin, bool last_node, bool almost_ready, bool submit) function ggml_vk_build_graph
passage: _ op _ opt _ step _ sgd : ggml _ vk _ opt _ step _ sgd ( ctx, compute _ ctx, src0, src1, src2, node ) ; break ; default : return false ; } ctx - > tensor _ ctxs [ node _ idx ] = compute _ ctx ; # if defined ( ggml _ vulkan _ check _ results ) / / force context reset on each node so that each tensor ends up in ...
cpp
ggml_vk_build_graph
ml/backend/ggml/ggml/src/ggml-vulkan/ggml-vulkan.cpp
ollama/ollama
stack-cqs-index
[ "ggml_backend_vk_graph_compute" ]
[ "VK_LOG_DEBUG", "clear", "expired", "ggml_get_glu_op", "ggml_get_unary_op", "ggml_glu_op_name", "ggml_is_empty", "ggml_nbytes", "ggml_nrows", "ggml_op_is_empty", "ggml_op_name", "ggml_vk_acc", "ggml_vk_add", "ggml_vk_add1", "ggml_vk_add_id", "ggml_vk_arange", "ggml_vk_argmax", "ggm...
query: def mu_pp obj method of Assertions
passage: def mu_pp obj s = obj.inspect.encode Encoding.default_external return s unless String === obj && (obj.encoding != Encoding.default_external || !obj.valid_encoding?) enc = "# encoding: #{obj.encoding}" val = "# valid: #{obj.valid_encoding?}" [enc, val, s].join "\n" ...
ruby
mu_pp
lib/minitest/assertions.rb
minitest/minitest
stack-cqs-index
[ "Assertions", "IntuitiveExpectations", "Minitest", "QueSpec", "Support", "TestHtml5TreeConstructionBase", "TestMinitestAssertionHelpers", "TestPuma", "assert", "assert_empty", "assert_includes", "assert_includes_in_order", "assert_instance_of", "assert_kind_of", "assert_match", "assert...
[ "default_external", "encode", "encoding", "inspect", "join", "valid_encoding?" ]
query: update() method of qi
passage: update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}
javascript
update
app/frontend/good_job/vendor/bootstrap/bootstrap.bundle.min.js
bensheldon/good_job
stack-cqs-index
[ "$6", "$StateProvider", "$StateRefActiveDirective", "$StateRefDirective", "$UrlRouterProvider", "$b", "$e", "$get", "$m", "$n", "$s", "$t", "0.2.0", "0.4 “Zhang Xu”", "09/14/2021", "2.1 键控状态", "3. Update Retrieval Calls (Critical)", "3.0.0 (2020-11-29)", "3.6 Controllers", "@up...
[ "$", "$$addStateInfo", "$anchorScroll", "$commit", "$derived", "$emit", "$eval", "$evalAsync", "$mount", "$n", "$new", "$nextTick", "$s", "$set", "$state", "$t", "$transclude", "AIRMapUrlTile", "ANGLE", "ASSERT" ]
query: """注册系统自带的 block""" def register_system_blocks(registry function register_system_blocks
passage: def register _ system _ blocks ( registry : blockregistry ) : " " " 的 block " " " # blocks registry. register ( " text _ block ", " internal ", textblock, " : 文 本 " ) registry. register ( " text _ concat _ block ", " internal ", textconcatblock, " : 文 本 " ) registry. register ( " text _ replace _ block ", " in...
python
register_system_blocks
kirara_ai/workflow/implementations/blocks/system_blocks.py
lss233/kirara-ai
stack-cqs-index
[ "init_application" ]
[ "register" ]
query: func TestPluginVerifyOptions_Run_Success(t *testing.T) function TestPluginVerifyOptions_Run_Success
passage: func TestPluginVerifyOptions_Run_Success(t *testing.T) { // Skip this test as it would require real PGP keys and valid signatures // The core verification logic is thoroughly tested in internal/plugin/verify_test.go t.Skip("Success case requires real PGP keys - core logic tested in internal/plugin/verify_te...
go
TestPluginVerifyOptions_Run_Success
pkg/cmd/plugin_verify_test.go
helm/helm
stack-cqs-index
[]
[ "Skip" ]
query: def test_tag_message_not_prefixed_with_space method of TestTags
passage: def test_tag_message_not_prefixed_with_space in_bare_repo_clone do |repo| repo.add_tag('donkey', annotate: true, message: 'hello') tag = repo.tag('donkey') assert_equal(tag.message, 'hello') end end
ruby
test_tag_message_not_prefixed_with_space
tests/units/test_tags.rb
ruby-git/ruby-git
stack-cqs-index
[]
[ "add_tag", "assert_equal", "in_bare_repo_clone", "message", "tag" ]
query: function Parser(options) function Parser
passage: function Parser(options) { this.tokens = []; this.token = null; this.options = options || marked.defaults; this.options.renderer = this.options.renderer || new Renderer; this.renderer = this.options.renderer; this.renderer.options = this.options; }
javascript
Parser
public/docs/swagger-ui/lib/marked.js
vdaubry/github-awards
stack-cqs-index
[ "ASN1Parser", "AbstractMySQLPlatform", "AbstractPlatform", "AbstractServiceProvider", "ArrayLimitPluginTest", "Ast", "BlacklistPluginTest", "Catch", "CheckDependenciesTest", "ClassHooksPluginTest", "ClassMethodsPluginTest", "ClassStaticsPluginTest", "ClassStringsPluginTest", "Connection", ...
[ "@babel/parser", "@babel/parser parseExpression", "@mdx-js/mdx", "@title Parser Architecture", "@typescript-eslint/typescript-estree", "ASN1Error", "ATNDeserializationOptions", "ATNDeserializer", "AT_LEAST_ONE", "AT_LEAST_ONE2", "Add", "AddChild", "AddContextToParseTree", "AddErrorNode", ...
query: Merge settings with defaults (for handling partial updates) pub fn merge_with_defaults(partial: NotificationSettings) -> NotificationSettings function merge_with_defaults
passage: pub fn merge_with_defaults(partial: NotificationSettings) -> NotificationSettings { let _defaults = NotificationSettings::default(); NotificationSettings { recording_notifications: partial.recording_notifications, time_based_reminders: partial.time_based_reminders, meeting_remi...
rust
merge_with_defaults
frontend/src-tauri/src/notifications/settings.rs
Zackriya-Solutions/meetily
stack-cqs-index
[]
[ "default" ]
query: fix(fixer) function fix
passage: fix(fixer) { return fixer.insertTextAfter( lastArgument, ", tableScope" ); }
javascript
fix
eslint-local-rules.js
rowyio/rowy
stack-cqs-index
[ "AbstractFixerTestCase", "AbstractIntegrationTestCase", "AbstractProxyFixer", "AbstractProxyFixerTest", "Agent", "DeDRM", "DescribeCommand", "EclipseGuavaSingularizer", "EclipseJavaUtilListSetSingularizer", "EclipseJavaUtilMapSingularizer", "FixCodeMiddleware", "FixCodeMiddlewareTest", "FixC...
[ "#4776", "#4790", "Add", "FixFailedException", "Has", "IllegalStateException", "NewMapSet", "RequiredFixerConfigurationException", "TODO", "Token", "WarnContext", "ZipInfo", "addSpace", "annotationTypeMatches", "append", "apply", "applyFix", "array_keys", "assert", "bound" ]
query: public static int lineEnd(ByteBuffer buffer, int maxLength) method of BufferUtil
passage: public static int lineEnd(ByteBuffer buffer, int maxLength) { int primitivePosition = buffer.position(); boolean canEnd = false; int charIndex = primitivePosition; byte b; while (buffer.hasRemaining()) { b = buffer.get(); charIndex++; if (b == StrUtil.C_CR) { canEnd = true; } else if ...
java
lineEnd
hutool-core/src/main/java/cn/hutool/core/io/BufferUtil.java
chinabugotech/hutool
stack-cqs-index
[ "$T", "$l", "$t", "Al", "As", "Bf", "Br", "Bt", "BufferUtil", "Cb", "Ce", "Cl", "Cr", "Fn", "Ft", "Gs", "Gt", "He", "Hr", "Hu" ]
[ "IndexOutOfBoundsException", "Pos", "Wj", "__yieldStar", "buffer", "closePath", "collapsedSpanAtEnd", "endOfLine", "find", "format", "get", "getLine", "getOrder", "hasRemaining", "lineEnd", "lineLeft", "lineNo", "linePoint", "lineRight", "pop" ]
query: void KissModem::handleGetDeviceName() method of KissModem
passage: void KissModem::handleGetDeviceName() { const char* name = _board.getManufacturerName(); writeHardwareFrame(HW_RESP(HW_CMD_GET_DEVICE_NAME), (const uint8_t*)name, strlen(name)); }
cpp
handleGetDeviceName
examples/kiss_modem/KissModem.cpp
meshcore-dev/MeshCore
stack-cqs-index
[ "handleHardwareCommand" ]
[ "HW_RESP", "getManufacturerName", "strlen", "writeHardwareFrame" ]
query: public abstract AbstractCodeAreaLine getLine() throws BadLocationException; method of AbstractCodeAreaToken
passage: public abstract AbstractCodeAreaLine getLine() throws BadLocationException;
java
getLine
jadx-gui/src/main/java/jadx/gui/ui/codearea/sync/fallback/AbstractCodeAreaToken.java
skylot/jadx
stack-cqs-index
[ "A", "AbstractBuilder", "AbstractTokenParser", "ActionSniffer", "ActionTranslator", "AgentCommand", "AnnotationTest", "AnonymousClassExtractor", "ApcuAdapter", "Api", "ApiExceptionHandler", "ApiResponse", "ApkInfo", "AppfrontErrorHandler", "Application", "ApplyTokenParser", "Appserve...
[ "$", "Blot", "FallbackSyncException", "JavaCodeAreaLine", "SmaliAreaLine", "TokenSource", "Wj", "__", "array_unique", "charAt", "chunkSize", "count", "describe", "ensureDate", "eq", "evaluateHandle", "expect", "fgets", "floor", "get" ]
query: Did the first future complete first? pub fn is_first(&self) -> bool method of Either5
passage: pub fn is_first(&self) -> bool { matches!(self, Either5::First(_)) }
rust
is_first
embassy-futures/src/select.rs
embassy-rs/embassy
stack-cqs-index
[ "on_internal" ]
[ "matches" ]
query: public function toArray(): array method of ComputerToolCallOutputScreenshot
passage: public function toArray(): array { return [ 'type' => $this->type, 'file_id' => $this->fileId, 'image_url' => $this->imageUrl, ]; }
php
toArray
src/Responses/Responses/Input/ComputerToolCallOutputScreenshot.php
openai-php/client
stack-cqs-index
[ "$A", "$_", "$t", "12/04/2019", "AE", "AND", "ARRAYS", "ASN1", "ASN1AlgorithmIdentifier", "ASN1Test", "AST", "ASTCache", "ATNConfigSet", "ATNState", "AV", "AVCDecoderConfigurationRecord", "AWS", "AaptInvoker", "AbortedGenerations", "AbstractArrayDumper" ]
[ "AccountConfigurationResource", "AccountMessagingTierResource", "AccountResource", "Array", "ArrayConverter", "AttendeeCheckInPublicResource", "AttendeeResource", "AuthorResource", "BackupResource", "BadResponseException", "Boolean", "Cell", "CheckInListResource", "CommentCollection", "C...
query: function j(L) function j
passage: function j(L){const B=!tr(L)||L<0?0:L;d==null||d.clickDistance(B)}
javascript
j
cofounder/api/dist/assets/index-B1d7LZHm.js
nraiden/cofounder
stack-cqs-index
[ "$", "$S", "$c", "$d", "$e", "$n", "$p", "$r", "$s", "$t", "$u", "A", "A0", "Aa", "Ae", "Ag", "An", "Ao", "ApplicationHelper", "Ar" ]
[ "$", "$9", "$_Dt", "$broadcast", "$destroy", "$e", "$eval", "$evalAsync", "$persist", "$setViewValue", ":", "A", "AR", "Ac", "Ae", "Array", "At", "B", "Be", "Bi" ]
query: private analyzeChanges() method of HMR
passage: private analyzeChanges() { /** files pending classification */ const pending: string[] = []; this.accepted = new Set(this.stashed); this.declined = new Set(this.externals); for (const filename of this.stashed) { const { children } = require.cache[filename];...
typescript
analyzeChanges
packages/hydrooj/src/service/hmr.ts
hydro-dev/Hydro
stack-cqs-index
[ "HMR", "triggerLocalReload" ]
[ "add", "has", "includes", "push", "splice" ]
query: fn join_21() function join_21
passage: fn join_21() { assert_eq!( cake_compact::Entity::find() .column_as( Expr::col(("cake_filling_alias", cake_filling::Column::CakeId)), "cake_filling_cake_id" ) .join(JoinType::LeftJoin, cake_compact::Relat...
rust
join_21
src/query/join.rs
SeaQL/sea-orm
stack-cqs-index
[]
[ "assert_eq" ]
query: Hero image with text overlay fn hero_image() -> impl IntoElement function hero_image
passage: fn hero_image() -> impl IntoElement { div() .relative() .w_full() .h(px(500.)) .rounded(px(12.)) .overflow_hidden() .child( img("https://example.com/hero-image.jpg") .absolute() .inset_0() .w_full() ...
rust
hero_image
docs/docs/components/image.md
longbridge/gpui-component
stack-cqs-index
[]
[]
query: fn main() function main
passage: fn main ( ) { let var = std : : env : : var _ os ( " shell _ completions _ dir " ). or _ else ( | | std : : env : : var _ os ( " out _ dir " ) ) ; let outdir = match var { none = > return, some ( outdir ) = > outdir, } ; fs : : create _ dir _ all ( & outdir ). unwrap ( ) ; let mut cmd = build _ cli ( ) ; for s...
rust
main
build.rs
sharkdp/pastel
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: This wrapper involves an extra copy and MAY BE SLOWER fn aead_chacha20_open( buffer: &mut [u8], key: &[u8], counter: u64, data: &[u8], aad: &[u8], ) -> Result<(), WireGuardError> function aead_chacha20_open
passage: fn aead_chacha20_open( buffer: &mut [u8], key: &[u8], counter: u64, data: &[u8], aad: &[u8], ) -> Result<(), WireGuardError> { let mut nonce: [u8; 12] = [0; 12]; nonce[4..].copy_from_slice(&counter.to_le_bytes()); aead_chacha20_open_inner(buffer, key, nonce, data, aad) ...
rust
aead_chacha20_open
boringtun/src/noise/handshake.rs
cloudflare/boringtun
stack-cqs-index
[ "parse_handshake_anon", "receive_handshake_initialization", "receive_handshake_response", "symmetric_chacha20_seal_open" ]
[ "Ok", "aead_chacha20_open_inner", "copy_from_slice", "map_err", "to_le_bytes" ]
query: void regexp::init (const char *regexp_string, int regexp_len) method of regexp
passage: _ script _ allocator =! is _ static ; is _ utf8 = false ; int pcre _ options = 0 ; re2 : : options re2 _ options ( re2 : : latin1 ) ; re2 _ options. set _ log _ errors ( false ) ; bool can _ use _ re2 = true ; for ( int i = regexp _ end + 1 ; i < regexp _ len ; i + + ) { switch ( regexp _ string [ i ] ) { case...
cpp
init
KPHP/runtime/regexp.cpp
vk-com/kphp-kdb
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: updates the "backup" properties, which are preserved in order to compute diffs later on. function backupEventDates(event) function backupEventDates
passage: function backupEventDates(event) { event._allDay = event.allDay; event._start = event.start.clone(); event._end = event.end ? event.end.clone() : null; }
javascript
backupEventDates
public/vendor/fullcalendar/dist/fullcalendar.js
Attendize/Attendize
stack-cqs-index
[ "EventManager", "assignDatesToEvent", "mutateEvents" ]
[ "clone" ]
query: public function getSid(int $fd): string method of SessionSidProvider
passage: public function getSid(int $fd): string { if ($fd === -1 || $fd === 0) { return ''; } $this->session->set('fd', $fd); $this->session->set('server', SocketIO::$serverId); $this->session->save(); return $this->session->getId(); }
php
getSid
src/socketio-server/src/SidProvider/SessionSidProvider.php
hyperf/hyperf
stack-cqs-index
[ "BaseNamespace", "ConnectInfo", "Emitter", "Excel03SaxReader", "Hangover", "Leader", "LeaderBeanTest", "LearnerHandler", "LearnerHandlerBean", "ObserverMaster", "SessionStart", "SmackMyBitch", "Socket", "SocketIO", "SocketTest", "__construct", "closeSockSync", "closeSocket", "cop...
[ "Cookie", "FormValue", "ParseForm", "QueryUnescape", "getId", "getSid", "len", "save", "set" ]
query: pub unsafe fn task_stop(&self) -> Task<'d> method of SequencePwm
passage: pub unsafe fn task_stop(&self) -> Task<'d> { Task::from_reg(self.r.tasks_stop()) }
rust
task_stop
embassy-nrf/src/pwm.rs
embassy-rs/embassy
stack-cqs-index
[ "main" ]
[ "from_reg", "tasks_stop" ]
query: public function getViolations(): ConstraintViolationListInterface method of AssertingContextualValidator
passage: public function getViolations(): ConstraintViolationListInterface { throw new \BadMethodCallException(); }
php
getViolations
Test/ConstraintValidatorTestCase.php
symfony/validator
stack-cqs-index
[ "AssertingContextualValidator", "AtLeastOneOfValidator", "CompoundConstraintTestCase", "ConstraintValidatorTestCase", "ConstraintViolationAssertion", "DocsSite", "ExpressionLanguageProvider", "ExpressionValidatorTest", "FormValidator", "FormValidatorTest", "ImageValidator", "LessThanOrEqualVal...
[ "getViolations" ]
query: func TestComponentColorForSeries(t *testing.T) function TestComponentColorForSeries
passage: func TestComponentColorForSeries(t *testing.T) { c := NewComponent("fred") cc := c.colorForSeries() assert.Len(t, cc, 3) assert.Equal(t, tcell.ColorGreen, cc[0]) assert.Equal(t, tcell.ColorOrange, cc[1]) assert.Equal(t, tcell.ColorOrangeRed, cc[2]) assert.Equal(t, []string{"green", "orange", "orangered...
go
TestComponentColorForSeries
internal/tchart/component_int_test.go
derailed/k9s
stack-cqs-index
[]
[ "Equal", "GetSeriesColorNames", "Len", "NewComponent", "colorForSeries" ]
query: def any_(expr function any_
passage: def any_(expr: _ColumnExpressionArgument[_T] | _T) -> CollectionAggregate[bool]: return sqlalchemy.any_(expr) # type: ignore[arg-type]
python
any_
sqlmodel/sql/expression.py
fastapi/sqlmodel
stack-cqs-index
[ "any_" ]
[ "any_" ]
query: def shear_x(img, factor, **kwargs) function shear_x
passage: def shear_x(img, factor, **kwargs): _check_args_tf(kwargs) return img.transform(img.size, Image.AFFINE, (1, factor, 0, 0, 1, 0), **kwargs)
python
shear_x
timm/data/auto_augment.py
huggingface/pytorch-image-models
stack-cqs-index
[]
[ "_check_args_tf", "transform" ]
query: public function parseMethodParameters(string $class, string $method, array $arguments): array method of ParameterParser
passage: public function parseMethodParameters(string $class, string $method, array $arguments): array { if (! $this->methodDefinitionCollector) { return []; } $definitions = $this->methodDefinitionCollector->getParameters($class, $method); return $this->getInjections($d...
php
parseMethodParameters
src/command/src/ParameterParser.php
hyperf/hyperf
stack-cqs-index
[ "AsCommand", "AsCommandAndClosureCommandTest", "CoreMiddleware", "CoreMiddlewareStub", "CoreMiddlewareTest", "MethodDocBlock", "handle", "handleFound", "parseMethodParameters", "process", "processMethodDocBlock", "testParameterParser", "testParseParameters" ]
[ "RuntimeException", "deserializeMessage", "get", "getAlias", "getAliasManager", "getBody", "getClassDefinition", "getInjections", "getMethodDefinitionCollector", "getName", "getOrParse", "getParameters", "getParentClass", "has", "isAlias", "is_array", "isset", "parseMethodParameter...
query: (a: any, b: any) => function customizer
passage: (a: any, b: any) => { if (typeof a === 'string' && typeof b === 'string') { return a.toLowerCase() === b.toLowerCase(); } }
typescript
customizer
docs/reference/compat/predicate/isEqualWith.md
toss/es-toolkit
stack-cqs-index
[ "SpringBootAdminClientRegistrationClientAutoConfigurationTest", "baseClone", "baseIsMatch", "baseMerge", "baseMergeDeep", "baseSet", "cloneDeepWith", "cloneWith", "contextRunnerCustomizations", "copyObject", "copyObjectWith", "equalArrays", "equalObjects", "isEqualWith", "runInContext", ...
[ "ContextRunnerCustomizerBuilder", "String", "abs", "describe", "forEach", "getFullYear", "getTime", "isArguments", "isArray", "isDate", "isObject", "isPlainObject", "it", "keys", "map", "set", "toLowerCase", "toUpperCase" ]
query: private function getUnopimProductMapping() method of ProductIndexer
passage: private function getunopimproductmapping ( ) { $ driver = db : : getdrivername ( ) ; $ statusmapping = $ driver = = = ' pgsql '? [ ' type ' = > ' boolean ' ] : [ ' type ' = > ' long ' ] ; return [ ' properties ' = > [ ' attribute _ family ' = > [ ' properties ' = > [ ' code ' = > [ ' type ' = > ' text ', ' fie...
php
getUnopimProductMapping
packages/Webkul/ElasticSearch/src/Console/Command/ProductIndexer.php
unopim/unopim
stack-cqs-index
[ "ProductIndexer", "elasticConfiguration" ]
[ "dynamicAttributeMappings", "getDriverName" ]
query: apply(compiler) method of CommonJsChunkFormatPlugin
passage: ##son. stringify ( runtimepath ) } ) ; \ n ` ) ; entrysource. add ( ` $ { runtimeglobals. externalinstallchunk } ( exports ) ; \ n ` ) ; const startupsource = new rawsource ( generateentrystartup ( chunkgraph, runtimetemplate, entries, chunk, false ) ) ; entrysource. add ( hooks. renderstartup. call ( startups...
javascript
apply
lib/javascript/CommonJsChunkFormatPlugin.js
webpack/webpack
stack-cqs-index
[ "$", "$CompileProvider", "$E", "$ExceptionHandlerProvider", "$IntervalProvider", "$LogProvider", "$ParseProvider", "$RootScopeProvider", "$StateProvider", "$TimeoutProvider", "$W", "$X", "$Y", "$ZodFunction", "$a", "$allocate_class", "$b", "$beforeInsert", "$beforeUpdate", "$c"...
[ "A", "AccountSetting", "AlphaAnimation", "Andx", "AnimationException", "Append", "Apply", "ApplyResourceChange", "ApplySettings", "ArgumentMatcherAction", "ArgumentNode", "ArgumentTypeNode", "ArrayCollection", "ArrayStructU64", "ArrayU64", "AssertObjectCompatible", "AssertionError", ...
query: pub(crate) fn constant_folding(&mut self, expr: &mut Box<Expr>) method of Semantic
passage: - right _ val ), exprop : : mul = > some ( left _ val * right _ val ), exprop : : div = > { if right _ val! = 0. 0 { some ( left _ val / right _ val ) } else { none / / , 不 行 } } exprop : : rem = > { if right _ val! = 0. 0 { some ( left _ val % right _ val ) } else { none } } _ = > none, / / 不 } ; if let some ...
rust
constant_folding
nls/src/analyzer/semantic/expressions.rs
nature-lang/nature
stack-cqs-index
[ "analyze_expr", "constant_folding" ]
[ "Literal", "Some", "constant_folding", "format", "is_float", "is_number", "matches", "to_string", "wrapping_add", "wrapping_mul", "wrapping_sub" ]
query: func TestListModelsWithCustomHandler(t *testing.T) function TestListModelsWithCustomHandler
passage: func TestListModelsWithCustomHandler(t *testing.T) { customModels := []ModelInfo{ { ID: "my-custom-model", Name: "My Custom Model", Capabilities: ModelCapabilities{ Supports: ModelSupports{Vision: false, ReasoningEffort: false}, Limits: ModelLimits{MaxContextWindowTokens: 128000}, },...
go
TestListModelsWithCustomHandler
go/client_test.go
github/copilot-sdk
stack-cqs-index
[]
[ "Context", "Errorf", "Fatalf", "ListModels", "NewClient", "len" ]
query: public function __construct(?string $format = null, ?string $dateFormat = null, bool $allowInlineLineBreaks = false, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false) constructor of LineFormatter
passage: public function __construct(?string $format = null, ?string $dateFormat = null, bool $allowInlineLineBreaks = false, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false) { $this->format = $format === null ? static::SIMPLE_FORMAT : $format; $this->allowInlineLineBreaks...
php
__construct
src/Monolog/Formatter/LineFormatter.php
Seldaek/monolog
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 handleLeaveConfirm
passage: () => { leaveDialogVisible.value = false leaveResolve.value?.(true) }
typescript
handleLeaveConfirm
web/frpc/src/views/ProxyEdit.vue
fatedier/frp
stack-cqs-index
[]
[ "value" ]
query: def benchmark() -> None function benchmark
passage: def benchmark() -> None: """ Benchmark multiple functions, with three different length int values. """ from collections.abc import Callable from timeit import timeit def benchmark_a_function(func: Callable, value: int) -> None: call = f"{func.__name__}({value})" timing ...
python
benchmark
maths/sum_of_digits.py
TheAlgorithms/Python
stack-cqs-index
[ "3. Performance Benchmarking (`tests/fixtures/benchmarking.py`)", "ActionController", "ActionView", "Api", "Background", "BasicsTest", "Benchmark", "BenchmarkHelperTest", "BenchmarkPlainHandshake", "BenchmarkPlainStreaming", "BenchmarkSpeedtestJob", "BenchmarkTLSStreaming", "Caching", "Cla...
[ "Benchmark", "Benchmark Tests", "BenchmarkResult", "BenchmarkTracker", "Benchmarks", "Close", "Dial", "EngineConfig", "Errorf", "Event", "Fatalf", "HelperThread", "L3", "LOG_VERBOSE", "Listener", "Motivation", "Movable Type ###", "NewInmemoryListener", "NewListener", "OrderedDi...
query: def __or__(self, value method of OrderedDict
passage: def __or__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, _VT | _T2]: ...
python
__or__
crates/monty-typeshed/vendor/typeshed/stdlib/collections/__init__.pyi
pydantic/monty
stack-cqs-index
[ "JsBigInt", "Signature", "Style", "__ior__", "__or__", "_chain", "_chord" ]
[ "Block", "ColorString", "ComposedLifespan", "Dict", "Index", "IntegerGMP", "Or", "Style", "TypeError", "_MergedFilter", "_StyledGenericColor", "__class__", "__or__", "_chain", "_construct_from_space", "_from_iterable", "_from_value", "_get_current_object", "_int_to_bigint", "_i...
query: pub fn new(opts: crate::JsAgentOpts) -> JsResult<Self> constructor of DeepSeekAgent
passage: ( ) ) ; let tools = match reflect : : get ( & opts, & jsvalue : : from _ str ( " tools " ) ) { ok ( v ) if v. is _ undefined ( ) | | v. is _ null ( ) = > none, ok ( v ) = > { let array = array : : from ( & v ) ; let mut converted = vec : : new ( ) ; for item in array. iter ( ) { let tool = crate : : tool : : j...
rust
new
archived/rig-wasm/src/providers/deepseek.rs
0xPlaygrounds/rig
stack-cqs-index
[ "\"V2\" Command-Line Interface", "10.1 结构体定义", "10.2.1 结构体工厂", "10.2.2 map 和 struct vs new() 和 make()", "16.0 常见的陷阱与错误", "6.5 内置函数", "7.1.1 概念", "7.2.4 new() 和 make() 的区别", "7.2.6 bytes 包", "8.1.1 概念", "Added", "AlertDialog", "Column", "Constructor Patterns", "Dialog", "Enums with T::E...
[ "ADEPTError", "AES", "AES_KEY", "AES_set_decrypt_key", "AES_set_encrypt_key", "APIRoute", "ARC4", "ARC4Cipher", "Absolute", "AccelHandle", "AccessField0", "Accessibility", "AccountId", "ActionConfigDto", "ActionDto", "ActionGroupDto", "ActionGroups", "ActorWaitItem", "AddPanel", ...
query: fn fee_scenarios() function fee_scenarios
passage: fn fee _ scenarios ( ) { let mut t : sp _ io : : testexternalities = frame _ system : : genesisconfig : : < runtime > : : default ( ). build _ storage ( ). unwrap ( ). into ( ) ; t. execute _ with ( | | { let weight _ fee _ per _ gas = weight _ fee. saturating _ mul ( weight _ per _ gas as u128 ) ; let sim = |...
rust
fee_scenarios
operator/runtime/mainnet/tests/fee_adjustment.rs
datahaven-xyz/datahaven
stack-cqs-index
[]
[ "assert_eq", "build_storage", "default", "execute_with", "from_rational", "get", "into", "min_gas_price", "on_finalize", "saturating_mul", "set", "set_block_consumed_resources", "set_block_number", "unwrap" ]
query: func testPreventCorruption(t *testing.T, f *Fs) function testPreventCorruption
passage: ##er must come to rescue. _, err = operations. move ( ctx, f, willychunk, willychunkname, newfile ( " silly5 " ) ) assertoverlaperror ( err ) r, err = willychunk. open ( ctx ) assert. noerror ( t, err ) assert. notpanics ( t, func ( ) { _, err = io. readall ( r ) _ = r. close ( ) } ) assert. noerror ( t, err )...
go
testPreventCorruption
backend/chunker/chunker_internal_test.go
rclone/rclone
stack-cqs-index
[ "InternalTest" ]
[ "Background", "Close", "Contains", "Copy", "Error", "Join", "Mkdir", "Move", "NewBufferString", "NewObject", "NoError", "NotEqual", "NotNil", "NotPanics", "Open", "Purge", "Put", "PutTestContents", "ReadAll", "Remote" ]
query: Update our settings from a given set of stackable parameters. Used when def inherit_settings(namespace_stackable) method of Endpoint
passage: def inherit_settings(namespace_stackable) parent_validations = namespace_stackable[:validations] inheritable_setting.route[:saved_validations].concat(parent_validations) if parent_validations.any? parent_declared_params = namespace_stackable[:declared_params] inheritable_setting.route[:...
ruby
inherit_settings
lib/grape/endpoint.rb
ruby-grape/grape
stack-cqs-index
[ "API", "DSL", "Endpoint", "Grape", "Instance", "Routing", "inherit_settings", "mount" ]
[ "any?", "concat", "each", "flatten", "inherit_from", "inherit_settings", "namespace_stackable", "point_in_time_copy", "reset_routes!", "route" ]
query: function ue(s,t,e) function ue
passage: function ue(s,t,e){let i={};e=e?"-"+e:"";for(let n=0;n<4;n++){let o=Eh[n];i[o]=parseFloat(s[t+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}
javascript
ue
public/js/filament/widgets/components/chart.js
alexjustesen/speedtest-tracker
stack-cqs-index
[ "$a", "$b", "$e", "$i", "$s", "$t", "A", "Ae", "Aoe", "B", "BI", "Bb", "Bc", "Bt", "Ce", "Cr", "Ct", "D_", "De", "Do" ]
[ "$", "$_Cn", "$_Dt", "$docsify", "$t", "A", "Ae", "Be", "Ce", "Cs", "Ct", "Di", "E", "Ee", "Er", "F", "GO", "Gt", "H", "Ia" ]
query: def __init__( self, in_channels constructor of HGTConv
passage: def _ _ init _ _ ( self, in _ channels : union [ int, dict [ str, int ] ], out _ channels : int, metadata : metadata, heads : int = 1, * * kwargs, ) : super ( ). _ _ init _ _ ( aggr = ' add ', node _ dim = 0, * * kwargs ) if out _ channels % heads! = 0 : raise valueerror ( f " ' out _ channels ' ( got { out _ ...
python
__init__
torch_geometric/nn/conv/hgt_conv.py
pyg-team/pytorch_geometric
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: func (*ImportResourceState_Response) ProtoMessage() method of ImportResourceState_Response
passage: func (*ImportResourceState_Response) ProtoMessage() {}
go
ProtoMessage
internal/tfplugin5/tfplugin5.pb.go
opentofu/opentofu
stack-cqs-index
[ "TestTracesData" ]
[]
query: (props: function getValueFromKey
passage: (props: { path: string; data?: any; defaultValue?: any; addons: any; valueType?: string; }): string | boolean => { const { data, path = '', defaultValue = '', addons, valueType } = props; let result: any = null; let negation: any = null; // 否定标识 ! let dataPath = path; if (path.substring(0...
typescript
getValueFromKey
packages/data-render/src/widgets/utils/common.ts
alibaba/x-render
stack-cqs-index
[ "calculate", "displayType", "getFormListLayout", "getValue", "labelWidth", "readOnly", "transDataKeyToData", "transformData" ]
[ "get", "getParamValue", "getSourceData", "includes", "split", "substring" ]
query: private String stringFromResetBits(final int bits) method of PoolBase
passage: private String stringFromResetBits(final int bits) { final var sb = new StringJoiner(", "); for (int ndx = 0; ndx < RESET_STATES.length; ndx++) { if ( (bits & (0b1 << ndx)) != 0) { sb.add(RESET_STATES[ndx]); } } return sb.toString(); }
java
stringFromResetBits
src/main/java/com/zaxxer/hikari/pool/PoolBase.java
brettwooldridge/HikariCP
stack-cqs-index
[ "PoolBase", "resetConnectionState" ]
[ "StringJoiner", "add" ]
query: function nodeCount(node) function nodeCount
passage: function nodeCount(node) { if (node === null) return 0; const l = nodeCount(node.left); const r = nodeCount(node.right); return 1 + l + r; }
javascript
nodeCount
problems/230.kth-smallest-element-in-a-bst.md
azl397985856/leetcode
stack-cqs-index
[ "B", "G", "P", "i", "j", "o", "r" ]
[ "$9", "$derived", "keys", "nodeList" ]
query: def setup method of DeleteTest
passage: def setup @config = ActiveScaffold::Config::Core.new :model_stub @default_link = @config.delete.link end
ruby
setup
test/config/delete_test.rb
activescaffold/active_scaffold
stack-cqs-index
[ "0.19.8 (2021/1/15)", "0.22 Upgrade guide", "0.27.2 (2021/8/17)", "3. Writing Tests", "30 Days Of JavaScript", "30 Dias de JavaScript", "30 Günlük JavaScript dərsləri", "AIbitat", "API", "API em Tempo de Execução {#runtime-api}", "API en Tiempo de Ejecución {#runtime-api}", "API زمان اجرا {#ru...
[ "$", "$O", "$args", "$effect", "$emit", "$f", "$forceUpdate", "$i", "$m", "$mount", "$n", "$nextTick", "$onAction", "$r", "$reset", "$subscribe", "$t", ".", "../../contrib/apt-install", "./glb-healthcheck" ]
query: func (ir *Renderer) SavePNG() error method of Renderer
passage: / var done = make ( chan struct { }, ir. shadowradius ) err : = stackblur. process ( dst, bc. image ( ), uint32 ( ir. shadowradius ), ) if err! = nil { return err } / / < - done dc. drawimage ( dst, 0, 0 ) / / draw rounded rectangle with outline and three button to produce the / / impression of a window with c...
go
SavePNG
src/cli/image/image.go
JanDeDobbeleer/oh-my-posh
stack-cqs-index
[ "SavePNG", "main" ]
[ "Bounds", "DrawCircle", "DrawImage", "DrawLine", "DrawRectangle", "DrawRoundedRectangle", "DrawString", "Fill", "Image", "Max", "MeasureString", "NewContext", "NewNRGBA", "Process", "SavePNG", "SetFontFace", "SetHexColor", "SetLineWidth", "SetRGB255", "Stroke" ]
query: public synchronized byte[] readBytesUntil(int interesting) method of Serial
passage: public synchronized byte[] readBytesUntil(int interesting) { if (bufferIndex == bufferLast) return null; byte what = (byte)interesting; int found = -1; for (int k = bufferIndex; k < bufferLast; k++) { if (buffer[k] == what) { found = k; break; } }...
java
readBytesUntil
tools/linux64/src/maple_loader/src/processing/app/Serial.java
rogerclarkmelbourne/Arduino_STM32
stack-cqs-index
[ "Serial", "WebReadRequest", "readBytesUntil", "readStringUntil" ]
[ "arraycopy", "println", "readBytesUntil", "timedRead" ]
query: private void generateParenChainStatements( final StringBuilder sb, final MALExpressionModel.ParenChainExpr expr) method of MALClassGenerator
passage: private void generateParenChainStatements( final StringBuilder sb, final MALExpressionModel.ParenChainExpr expr) { generateExprStatements(sb, expr.getInner()); emitChainStatements(sb, expr.getMethodChain()); }
java
generateParenChainStatements
oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/v2/compiler/MALClassGenerator.java
apache/skywalking
stack-cqs-index
[ "MALClassGenerator", "generateExprStatements" ]
[ "emitChainStatements", "generateExprStatements", "getInner", "getMethodChain" ]
query: async detach(tabId: number, owner: OwnerTag = 'unknown'): Promise<void> method of CDPSessionManager
passage: async detach(tabId: number, owner: OwnerTag = 'unknown'): Promise<void> { const state = this.getState(tabId); if (!state) return; // Nothing to do // Update ownership/refcount if (state.owners.has(owner)) state.owners.delete(owner); state.refCount = Math.max(0, state.refCount - 1); if...
typescript
detach
app/chrome-extension/utils/cdp-session-manager.ts
hangwin/mcp-chrome
stack-cqs-index
[ "A", "ADARNN", "ADD", "ALSTM", "ARGA", "AST Modification", "AbstractSession", "ActivationBalancer", "ActivationsAndGradients", "ActiveStorageValidations", "AdaRNN", "AdjacentTextMerger", "AgentImage", "AggregateResults", "Analyzer", "AnimeFaceSegment", "AnnotationEditorLayer", "Api...
[ "BadMethodCallException", "ByteVectorPrivate", "DataPrivate", "DoKit", "Exception", "L687", "Ok", "Oo", "StringPrivate", "TextUtils", "VLOG", "_CFXMLNodeGetParent", "_CFXMLNodeGetPrivateData", "_CFXMLUnlinkNode", "_adjustIndex", "_callHook", "_clear_callbacks", "_detach", "_getEv...
query: function funarg(type) function funarg
passage: function funarg(type) { if (type == "spread") return cont(funarg); return pass(pattern, maybetype, maybedefault); }
javascript
funarg
vendor/assets/javascripts/locomotive/codemirror/modes/javascript.js
locomotivecms/engine
stack-cqs-index
[]
[ "cont", "defineMode", "isModifier", "pass", "register", "webpackJsonp" ]
query: fn allocations_from_source< 'a >( &'a self, source: &'a str ) -> impl Iterator< Item = &Allocation > + 'a method of Analysis
passage: fn allocations_from_source< 'a >( &'a self, source: &'a str ) -> impl Iterator< Item = &Allocation > + 'a { self.response.allocations.iter().filter( move |alloc| is_from_source( alloc, source ) ) }
rust
allocations_from_source
integration-tests/src/tests.rs
koute/bytehound
stack-cqs-index
[ "check_allocations_basic_program", "run_jemalloc_test", "test_cross_thread_alloc_culled", "test_cross_thread_alloc_non_culled", "test_cull", "test_dlopen", "test_fork", "test_gather_generic", "test_immediate_exit_stdlib", "test_immediate_exit_unistd", "test_normal_exit", "test_start_stop_gener...
[ "filter", "is_from_source", "iter" ]
query: @see it('duplicate value inside different extensions') */ public function testDuplicateValueInsideDifferentExtensions(): void method of UniqueEnumValueNamesTest
passage: public function testDuplicateValueInsideDifferentExtensions(): void { $this->expectSDLErrorsFromRule( new UniqueEnumValueNames(), ' enum SomeEnum extend enum SomeEnum { FOO } extend enum SomeEnum { FOO } ', nu...
php
testDuplicateValueInsideDifferentExtensions
tests/Validator/UniqueEnumValueNamesTest.php
webonyx/graphql-php
stack-cqs-index
[]
[ "UniqueEnumValueNames", "expectSDLErrorsFromRule" ]
query: private boolean tryToForceImmutableTypes(MethodNode mth) method of FixTypesVisitor
passage: private boolean tryToForceImmutableTypes(MethodNode mth) { boolean fixed = false; for (SSAVar ssaVar : mth.getSVars()) { ArgType type = ssaVar.getTypeInfo().getType(); if (!type.isTypeKnown() && ssaVar.isTypeImmutable()) { if (forceImmutableType(ssaVar)) { fixed = true; } } } if (...
java
tryToForceImmutableTypes
jadx-core/src/main/java/jadx/core/dex/visitors/typeinference/FixTypesVisitor.java
skylot/jadx
stack-cqs-index
[]
[ "forceImmutableType", "getSVars", "getType", "getTypeInfo", "isTypeImmutable", "isTypeKnown", "runTypePropagation" ]
query: def test_get(monkeypatch) function test_get
passage: def test_get(monkeypatch): def mock_pinecone_db(): monkeypatch.setenv("PINECONE_API_KEY", "test_api_key") monkeypatch.setattr("embedchain.vectordb.pinecone.PineconeDB._setup_pinecone_index", lambda x: x) monkeypatch.setattr("embedchain.vectordb.pinecone.PineconeDB._get_or_create_db"...
python
test_get
embedchain/tests/vectordb/test_pinecone.py
mem0ai/mem0
stack-cqs-index
[ "TestHTTPDSL" ]
[ "App", "AppConfig", "AsyncClient", "AsyncResult", "BaseConnector", "BaseEmbedder", "CaseInsensitiveDict", "ChainMapProxy", "ChatMessage", "CliRunner", "Client", "Collection", "ConvertSwooleRequestToIlluminateRequest", "CouchBackend", "CouchbaseBackend", "DummyDBusObject", "DummyHttpC...
query: unsafe fn set_property(env: Env, object: Local, key: &str, value: Local) function set_property
passage: unsafe fn set_property(env: Env, object: Local, key: &str, value: Local) { let key = create_string(env, key); if napi::set_property(env, object, key, value).is_err() { fatal_error("Failed to set an object property"); } }
rust
set_property
crates/neon/src/sys/no_panic.rs
neon-bindings/neon
stack-cqs-index
[ "Element", "GStreamerBackend", "GstPlayer", "RedshiftStatusIcon", "TestMltXml", "__init__", "_main", "_set_file", "_set_first_file", "_set_volume", "add_filter_to_element", "add_track_to_tractor", "add_transition", "compute", "create_blank_project", "create_error", "create_producer",...
[ "G_OBJECT_WARN_INVALID_PROPERTY_ID", "LOG_ERR", "SetProperty", "SubElement", "ZATHURA_FILEMONITOR", "assert", "class", "create_string", "each", "fatal_error", "find", "g_free", "g_value_dup_string", "get", "include?", "is_err", "name", "now", "obj", "options" ]
query: public static function gets() method of Pay
passage: public static function gets() { return Cache::remember('model.pays', 10, function () { return self::query()->get(); }); }
php
gets
app/Pay.php
Tai7sy/card-system
stack-cqs-index
[ "AbstractInputStream", "AbstractInputStreamTest", "AbstractSession", "AcceptanceTest", "Actions", "AdminController", "Agent", "Agree", "Application", "ApplicationController", "ApplicationManager", "Artoo", "Aux", "Backend", "Backup", "Base", "BaseListener", "Basic", "Bcu", "Bin...
[ "Err", "Ok", "OpGet", "Optional", "__next_line", "append", "as_array", "as_micros", "as_string", "as_string_or_raise", "at", "bdestroy", "bgets", "bstringThrow", "bytesize", "catch", "clear", "clone", "close", "closed?" ]
query: public BitSet getPostDoms() method of BlockNode
passage: public BitSet getPostDoms() { return postDoms; }
java
getPostDoms
jadx-core/src/main/java/jadx/core/dex/nodes/BlockNode.java
skylot/jadx
stack-cqs-index
[ "DotGraphUtils", "PostDominatorTree", "SwitchRegionMaker", "TryEdgeScopeGroupMap", "calcSwitchOut", "compute", "createEdgeTerminusMap", "processBlock" ]
[]
query: def test_summary_right method of TestOutlinePr
passage: def test_summary_right assert_equal true, @outline_pr.summary_right end
ruby
test_summary_right
test/workbook/worksheet/tc_outline_pr.rb
randym/axlsx
stack-cqs-index
[]
[ "assert_equal", "summary_right" ]
query: pub async fn decompress_raw( &self, data: &[u8], compress_algo: CompressorAlgo, ) -> Result<Vec<u8>, Error> method of DefaultCompressor
passage: pub async fn decompress_raw( &self, data: &[u8], compress_algo: CompressorAlgo, ) -> Result<Vec<u8>, Error> { match compress_algo { #[cfg(feature = "zstd")] CompressorAlgo::ZstdDefault => DCTX_MAP.with(|map_cell| { let map = map_cell.b...
rust
decompress_raw
easytier/src/common/compressor.rs
EasyTier/EasyTier
stack-cqs-index
[ "decompress", "decompress_packet" ]
[ "Err", "Ok", "borrow", "contains", "decompress", "entry", "into", "len", "or_default", "pow", "to_string", "to_vec", "with" ]
query: def test_include? method of TestNodejsEnv
passage: def test_include? shared_test_env_has_key('include?') end
ruby
test_include?
test/nodejs/test_env.rb
opal/opal
stack-cqs-index
[]
[ "assert_send_type", "include?", "shared_test_env_has_key", "with_string" ]
query: """Test that pipeline discovery finds at least one known pipeline class.""" def test_discover_pipelines_finds_known_classes(self) method of TestDiffusersDynamicLoader
passage: def test_discover_pipelines_finds_known_classes(self): """Test that pipeline discovery finds at least one known pipeline class.""" registry = loader.get_pipeline_registry() # Check that the registry is not empty self.assertGreater(len(registry), 0, "Pipeline registry should not...
python
test_discover_pipelines_finds_known_classes
backend/python/diffusers/test.py
mudler/LocalAI
stack-cqs-index
[]
[ "assertGreater", "assertIn", "get_pipeline_registry", "len", "subTest" ]
query: private final PhysicalTaskExecutorLifecycleEventReporter physicalTaskExecutorEventReporter; property physicalTaskExecutorEventReporter
passage: private final PhysicalTaskExecutorLifecycleEventReporter physicalTaskExecutorEventReporter;
java
physicalTaskExecutorEventReporter
dolphinscheduler-worker/src/main/java/org/apache/dolphinscheduler/server/worker/executor/PhysicalTaskEngineDelegator.java
apache/dolphinscheduler
stack-cqs-index
[]
[]
query: func (ph *PoolHook) OnRemove(_ context.Context, _ *pool.Conn, _ error) method of PoolHook
passage: func (ph *PoolHook) OnRemove(_ context.Context, _ *pool.Conn, _ error) { // Not used }
go
OnRemove
maintnotifications/pool_hook.go
redis/go-redis
stack-cqs-index
[ "ProcessOnRemove", "Remove" ]
[ "DeleteString", "GetCurSel", "GetDlgItem", "GetID", "Lock", "OnAddRemove", "RemoveListener", "Unlock", "delete" ]
query: @SneakyThrows @BeforeAll public static void setUpTestingServer() method of MysqlJdbcRegistryTestCase
passage: @SneakyThrows @BeforeAll public static void setUpTestingServer() { mysqlContainer = new MySQLContainer(DockerImageName.parse("mysql:8.0")) .withUsername("root") .withPassword("root") .withDatabaseName("dolphinscheduler") .withNetwo...
java
setUpTestingServer
dolphinscheduler-registry/dolphinscheduler-registry-plugins/dolphinscheduler-registry-jdbc/src/test/java/org/apache/dolphinscheduler/plugin/registry/jdbc/MysqlJdbcRegistryTestCase.java
apache/dolphinscheduler
stack-cqs-index
[]
[ "HikariConfig", "HikariDataSource", "MySQLContainer", "PostgreSQLContainer", "SqlScriptRunner", "build", "builder", "clearProperty", "clientEndpoints", "cluster", "collect", "deepStart", "execute", "forHealthcheck", "getMappedPort", "join", "joining", "map", "newNetwork", "of" ...
query: def test_inline_unknown method of LATEXBuidlerTest
passage: def test_inline_unknown assert_raises(ReVIEW::ApplicationError) { compile_block("@<img>{n}\n") } assert_match(/unknown image: n/, @log_io.string) @log_io.rewind @log_io.truncate(0) assert_raises(ReVIEW::ApplicationError) { compile_block("@<fn>{n}\n") } assert_match(/unknown footnote: n...
ruby
test_inline_unknown
test/test_latexbuilder.rb
kmuto/review
stack-cqs-index
[]
[ "assert_match", "assert_raises", "compile_block", "each", "rewind", "string", "truncate" ]
query: queueLoad(t,n,r,i) method of KF
passage: queueLoad(t,n,r,i){const s={},o={},a={},l={};return t.forEach(u=>{let f=!0;n.forEach(c=>{const d=`${u}|${c}`;!r.reload&&this.store.hasResourceBundle(u,c)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,f=!1,o[d]===void 0&&(o[d]=!0),s[d]===void 0&&(s[d]=!0),l[c]===v...
javascript
queueLoad
backend/openui/dist/assets/index-B7PjGjI7.js
wandb/openui
stack-cqs-index
[ "KF", "cS", "lC", "prepareLoading" ]
[ "forEach", "hasResourceBundle", "keys", "push" ]
query: func (f *fileServer) createEndpoint(i int) (*http.ServeMux, net.Listener, string, string, error) method of fileServer
passage: fprintln ( w, " < h1 > page not found < / h1 > " ) } return case 200 : if r2 : = f. rewriterequest ( r, strings. trimprefix ( redirect. to, baseurl. path ( ) ) ) ; r2! = nil { requesturi = redirect. to r = r2 } default : w. header ( ). set ( " content - type ", " " ) http. redirect ( w, r, redirect. to, redire...
go
createEndpoint
commands/server.go
gohugoio/hugo
stack-cqs-index
[ "CreateEditEndpointComponent", "KubernetesLabelSelectorEndpointGroup", "NewUDPListener", "addEndpoint", "betterCallProtectedRoute", "betterCallUnprotectedRoute", "bindRouterToTransport", "bulkCreateThings", "createThing", "createUser", "deleteThing", "exposeServerToTraefik", "gameServer", ...
[ "Add", "BaseURLLiveReload", "BuildHTTPRoute", "Clean", "Close", "Contains", "Copy", "Debugf", "Dir", "Do", "Environment", "Errorln", "FileServer", "Fprint", "Fprintln", "GetFirstLanguageConfig", "Handle", "HandleFunc", "HandlerFunc", "Header" ]
query: def update(self, predictions) method of CocoEvaluator
passage: def update(self, predictions): img_ids = list(np.unique(list(predictions.keys()))) self.img_ids.extend(img_ids) for iou_type in self.iou_types: results = self.prepare(predictions, iou_type) coco_dt = loadRes(self.coco_gt, results) if results else COCO() ...
python
update
pytorch_object_detection/retinaNet/train_utils/coco_eval.py
WZMIAOMIAO/deep-learning-for-image-processing
stack-cqs-index
[ "$6", "$StateProvider", "$StateRefActiveDirective", "$StateRefDirective", "$UrlRouterProvider", "$b", "$e", "$get", "$m", "$n", "$s", "$t", "0.2.0", "0.4 “Zhang Xu”", "09/14/2021", "2.1 键控状态", "3. Update Retrieval Calls (Critical)", "3.0.0 (2020-11-29)", "3.6 Controllers", "@up...
[ "$", "$$addStateInfo", "$anchorScroll", "$commit", "$derived", "$emit", "$eval", "$evalAsync", "$mount", "$n", "$new", "$nextTick", "$s", "$set", "$state", "$t", "$transclude", "AIRMapUrlTile", "ANGLE", "ASSERT" ]
query: func validateResponse(t *testing.T, finalImage string, expected string) function validateResponse
passage: func validateResponse(t *testing.T, finalImage string, expected string) { hypervisor := runAndWait(finalImage, t) defer hypervisor.Stop() resp, err := http.Get("http://127.0.0.1:8080/file") if err != nil { t.Fatal("failed to get 127.0.0.1:8080/file") } defer resp.Body.Close() body, err := ioutil.Read...
go
validateResponse
test/go/go_test.go
nanovms/nanos
stack-cqs-index
[ "AzureMaps", "GoogleMaps", "GoogleMapsPlaces", "GrpcTask", "HttpSender", "HttpTask", "List", "Mapbox", "ResponsePlugin", "TestHTTPService_Delete", "TestHTTPService_DeleteWithHeaders", "TestHTTPService_Get", "TestHTTPService_GetWithHeaders", "TestHTTPService_Patch", "TestHTTPService_Patch...
[ "Close", "Error", "Fatal", "Get", "GrpcTaskException", "HandleError", "HandleResponse", "Helper", "InvalidArgument", "InvalidCredentials", "InvalidResponseException", "InvalidServerResponse", "Nil", "NoError", "NotNil", "QuotaExceeded", "ReadAll", "Stop", "TaskException", "Valu...
query: def assert_filter_value(value) function assert_filter_value
passage: def assert_filter_value(value) expect(PORO::DB).to receive(:all) .with(hash_including(conditions: {foo: value})) .and_return([]) records end
ruby
assert_filter_value
spec/filtering_spec.rb
graphiti-api/graphiti
stack-cqs-index
[]
[ "and_return", "describe", "expect", "hash_including", "receive", "to", "with" ]
query: def serialize(rodata) method of KeywordArgPresentInstruction
passage: def serialize(rodata) position = rodata.add(@name.to_s) [instruction_number, position].pack('Cw') end
ruby
serialize
lib/natalie/compiler/instructions/keyword_arg_present_instruction.rb
natalie-lang/natalie
stack-cqs-index
[ "$HttpParamSerializerJQLikeProvider", "A", "AACTrackImpl", "AMDDefineDependency", "AMDRequireArrayDependency", "AMDRequireContextDependency", "AMDRequireDependency", "AR", "AST", "ASTUnserializationBench", "ATNSerializer", "AWSBedrockMessageSerializer", "AbstractBrowser", "AbstractCaffeine...
[ "$", "AIMessage", "Attribute", "BigInt", "BitWriterBuffer", "Boolean", "Borrowed", "Builtin", "ByteArrayInputStream", "ByteArrayOutputStream", "ByteBufOutputStream", "CacheException", "Collection", "Create2Response", "CreateResponse", "Custom", "DataOutputStream", "EasyInputMessage...
query: function LogoCarousel
passage: code - logo - ivory. svg ", instructionsurl : " https : / / code. claude. com / docs / en / skills ", }, { name : " claude ", url : " https : / / claude. ai / ", lightsrc : " / images / logos / claude - ai / claude - logo - slate. svg ", darksrc : " / images / logos / claude - ai / claude - logo - ivory. svg "...
javascript
LogoCarousel
docs/snippets/LogoCarousel.jsx
agentskills/agentskills
stack-cqs-index
[]
[ "filter", "floor", "map", "random", "setShuffled", "shuffle", "useEffect", "useState" ]
query: public int genHashCode() method of RecordedStackTrace
passage: public int genHashCode() { return Objects.hash(truncated, frames); }
java
genHashCode
labs/arthas-jfr-backend/src/main/java/org/example/jfranalyzerbackend/model/jfr/RecordedStackTrace.java
alibaba/arthas
stack-cqs-index
[ "SymbolBase", "hashCode" ]
[ "getDescriptor", "getName", "getPackageName", "getType", "hash", "hashCode" ]
query: fn from( err: VfsErr ) -> Self method of Box
passage: fn from( err: VfsErr ) -> Self { Box::new( err.to_string().into() ) }
rust
from
cli-core/src/script_virtual.rs
koute/bytehound
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" ]