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: public function __construct( protected AgentRepository $agentRepository, protected CredentialRepository $credentialRepository, ) constructor of AgentController | passage: public function __construct(
protected AgentRepository $agentRepository,
protected CredentialRepository $credentialRepository,
) {
$this->middleware(function ($request, $next) {
if (! bouncer()->hasPermission('ai-agent.agents')) {
abort(401, trans('ai-age... | php | __construct | packages/Webkul/AiAgent/src/Http/Controllers/AgentController.php | unopim/unopim | 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 test_url_with_cms_domain_prefix_with_public_site method of HomeControllerCachingEnabledTest | passage: def test_url_with_cms_domain_prefix_with_public_site
@request.host = "foo.com"
@request.path = "/cms"
assert_equal "http://cms.foo.com/cms",
@controller.send(:url_with_cms_domain_prefix)
end | ruby | test_url_with_cms_domain_prefix_with_public_site | test/functional/cms/home_controller_test.rb | browsermedia/browsercms | stack-cqs-index | [] | [
"assert_equal",
"host",
"path",
"send"
] |
query: func TestIPSetCompat(t *testing.T) function TestIPSetCompat | passage: format starts with version byte ( 1 ) + uint64 count require. true ( t, len ( newbuf. bytes ( ) ) > = 9, " output too short " ) require. equal ( t, byte ( 1 ), newbuf. bytes ( ) [ 0 ], " version byte mismatch " ) / / new write - > old read ( varbin. read with pre - allocated slice works correctly ) readback, e... | go | TestIPSetCompat | common/srs/compat_test.go | SagerNet/sing-box | stack-cqs-index | [] | [
"Bytes",
"Equal",
"NewReader",
"NoError",
"Parallel",
"Run",
"True",
"buildIPSet",
"buildLargeIPSet",
"byte",
"len",
"oldReadIPSet",
"readIPSet",
"requireIPSetEqual",
"writeIPSet"
] |
query: func TestPrepareCommandsNoOsNoArch(t *testing.T) function TestPrepareCommandsNoOsNoArch | passage: func TestPrepareCommandsNoOsNoArch(t *testing.T) {
cmdMain := "sh"
cmdArgs := []string{"-c", "echo \"test\""}
cmds := []PlatformCommand{
{OperatingSystem: "no-os", Architecture: "no-arch", Command: "pwsh", Args: []string{"-c", "echo \"error\""}},
{OperatingSystem: "", Architecture: "", Command: "sh", A... | go | TestPrepareCommandsNoOsNoArch | internal/plugin/subprocess_commands_test.go | helm/helm | stack-cqs-index | [] | [
"DeepEqual",
"Fatal",
"Fatalf",
"PrepareCommands"
] |
query: fetchIfRef(obj) method of XRefMock | passage: fetchIfRef(obj) {
if (obj instanceof Ref) {
return this.fetch(obj);
}
return obj;
} | javascript | fetchIfRef | test/unit/test_utils.js | mozilla/pdf.js | stack-cqs-index | [
"AnnotationFactory",
"ButtonWidgetAnnotation",
"Catalog",
"ChoiceWidgetAnnotation",
"ColorSpaceUtils",
"FileSpec",
"InkAnnotation",
"InternalViewerUtils",
"NameOrNumberTree",
"PDFDocument",
"PDFEditor",
"PDFFunction",
"PDFFunctionFactory",
"PDFImage",
"Parser",
"PartialEvaluator",
"S... | [
"fetch"
] |
query: NewClientV3 creates a new grpc client connection to the member func NewClientV3(m *Member) (*clientv3.Client, error) constructor NewClientV3 | passage: func NewClientV3(m *Member) (*clientv3.Client, error) {
if m.GRPCURL == "" {
return nil, fmt.Errorf("member not configured for grpc")
}
cfg := clientv3.Config{
Endpoints: []string{m.GRPCURL},
DialTimeout: 5 * time.Second,
MaxCallSendMsgSize: m.ClientMaxCallSendMsgSize,
MaxCallRecv... | go | NewClientV3 | tests/framework/integration/cluster.go | etcd-io/etcd | stack-cqs-index | [
"Launch",
"NewClientV3",
"TestGRPCRequireLeader",
"TestGRPCStreamRequireLeader",
"TestTLSGRPCAcceptSecureAll",
"TestTLSGRPCRejectInsecureClient",
"TestTLSGRPCRejectSecureClient",
"TestV3LeaseRecoverAndRevoke",
"TestV3LeaseRecoverKeyWithDetachedLease",
"TestV3LeaseRecoverKeyWithMultipleLease",
"T... | [
"ClientConfig",
"Errorf",
"Named",
"NewClientV3",
"append",
"newClientV3"
] |
query: void guardian_fire_blaster(edict_t *self) function guardian_fire_blaster | passage: void guardian_fire_blaster(edict_t *self)
{
vec3_t forward, right, target;
vec3_t start;
monster_muzzleflash_id_t id = MZ2_GUARDIAN_BLASTER;
AngleVectors(self->s.angles, forward, right, nullptr);
start = M_ProjectFlashSource(self, monster_flash_offset[id], forward, right);
target = self->enemy->s.origin... | cpp | guardian_fire_blaster | rerelease/m_guardian.cpp | id-Software/quake2-rerelease-dll | stack-cqs-index | [] | [
"AngleVectors",
"M_ProjectFlashSource",
"crandom_open",
"monster_fire_blaster",
"normalize",
"visible"
] |
query: def inst_add(dst, src, op2, mode = 'sxtw') method of AArch64 | passage: def inst_add(dst, src, op2, mode = 'sxtw')
check_register!(dst)
src = arg_to_lambda(src)
op2 = arg_to_lambda(op2)
raise_unsupported('add', dst, src, op2) unless op2.is_a?(Integer) && mode == 'sxtw'
registers[dst] = src + op2
end | ruby | inst_add | lib/one_gadget/emulators/aarch64.rb | david942j/one_gadget | stack-cqs-index | [] | [
"arg_to_lambda",
"check_register!",
"is_a?",
"raise_unsupported"
] |
query: def test_zipimport_traceback(selenium) function test_zipimport_traceback | passage: def test_zipimport_traceback(selenium):
"""
Test that traceback of modules loaded from zip file are shown as intended.
For .py files, the traceback should show the path to the .py file in the
zip file, e.g. "/lib/python311.zip/path/to/module.py".
For .pyc files (TODO), the traceback only ... | python | test_zipimport_traceback | src/tests/test_stdlib_fixes.py | pyodide/pyodide | stack-cqs-index | [] | [
"JSONDecoder",
"Path",
"decode",
"exc_info",
"extract_tb",
"split",
"write_text"
] |
query: func robotsTXT(fs fs.FS) func(http.Handler) http.Handler function robotsTXT | passage: func robotsTXT(fs fs.FS) func(http.Handler) http.Handler {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if strings.HasSuffix(r.URL.Path, "/robots.txt") {
r.URL.Path = "/robots.txt"
http.FileServerFS(fs).ServeHTTP(w, r)
} e... | go | robotsTXT | server/middlewares.go | navidrome/navidrome | stack-cqs-index | [
"initRoutes"
] | [
"FileServerFS",
"HandlerFunc",
"HasSuffix",
"ServeHTTP"
] |
query: def basic(self) method of port | passage: def basic(self):
cxn = self._cxn(port=2222)
assert cxn.port == 2222 | python | basic | tests/connection.py | fabric/fabric | stack-cqs-index | [
"ActiveGraph",
"Adapters",
"BaseITZipkinEureka",
"Blazer",
"Categories",
"Certificates Stores",
"ClickTest",
"ConnectionPatchTest",
"Consumer",
"DomainRedirectsInputFilter",
"Exposing Services with Traefik on Docker - Advanced",
"Exposing Services with Traefik on Docker Swarm - Advanced",
"E... | [
"Agent",
"Basic",
"Basic Configuration",
"Basic usage",
"Behavior",
"Browser",
"CLI 基础配置",
"ChatBrowserUse",
"Exposing Services with Traefik on Docker - Basic",
"Exposing Services with Traefik on Docker Swarm - Basic",
"Exposing Services with Traefik on Kubernetes - Basic",
"OA1",
"Ok",
"R... |
query: def test_input_and_output_transformers method of WorkflowTest | passage: def test_input_and_output_transformers
swarm = SwarmSDK.workflow do
name("Transformer Test")
agent(:agent1) do
model(@model_id)
provider(@provider)
description("Agent 1")
system_prompt("Agent 1")
coding_agent(false)
end
a... | ruby | test_input_and_output_transformers | test/swarm_sdk/workflow_test.rb | parruda/swarm | stack-cqs-index | [] | [
"agent",
"assert",
"coding_agent",
"content",
"depends_on",
"description",
"input",
"input_transformer",
"model",
"name",
"node",
"nodes",
"output",
"output_transformer",
"provider",
"start_node",
"system_prompt",
"workflow"
] |
query: public async assertDuplicationModalEnvHostname( expectedHostname: string ): Promise<void> method of Modals | passage: public async assertDuplicationModalEnvHostname(
expectedHostname: string
): Promise<void> {
await utils.assertElementText(
$(this.envHostnameSelector),
expectedHostname
);
} | typescript | assertDuplicationModalEnvHostname | packages/app/test/libs/modals.ts | mockoon/mockoon | stack-cqs-index | [] | [
"$",
"assertElementText"
] |
query: private resolveMode(requested?: WorkspaceSkillSearchMode): WorkspaceSkillSearchMode method of WorkspaceSkills | passage: private resolveMode(requested?: WorkspaceSkillSearchMode): WorkspaceSkillSearchMode {
if (!requested) {
return this.defaultMode;
}
if (requested === "vector" || requested === "hybrid") {
if (!this.embedding || !this.vector) {
throw new Error("Vector search is not configured for... | typescript | resolveMode | packages/core/src/workspace/skills/index.ts | VoltAgent/voltagent | stack-cqs-index | [
"IntervalIdleChecker",
"WorkspaceSearch",
"WorkspaceSkills",
"getKeywords",
"getMode",
"initialize",
"markActivity",
"resolveMode",
"resolvedMode",
"runTick",
"search",
"setupCommand"
] | [
"Boolean",
"bold",
"createObj",
"dim",
"em",
"error",
"get",
"green",
"hasKeywordSearch",
"hasOwnProperty",
"isDocumentHidden",
"resolveMode",
"select",
"split",
"test",
"trim",
"webpackJsonp"
] |
query: public function hasInheritance() method of Parser | passage: public function hasInheritance()
{
return $this->parent || 0 < \count($this->traits);
} | php | hasInheritance | src/Parser.php | twigphp/Twig | stack-cqs-index | [
"CoreExtension",
"parseParentFunction"
] | [] |
query: public function getError(): ?InvalidEmail method of MessageIDValidation | passage: public function getError(): ?InvalidEmail
{
return $this->error;
} | php | getError | src/Validation/MessageIDValidation.php | egulias/EmailValidator | stack-cqs-index | [
"ActivityUtils",
"AjaxJson",
"AlarmRule",
"AmSocketServer",
"Application",
"ApplicationTest",
"ArthasMcpToolsIT",
"AuthAppleRequest",
"CErrorHandler",
"CFileValidator",
"CHtml",
"CModelTest",
"CUploadedFile",
"CUploadedFileTest",
"CiIntegrationTest",
"ClassNotFoundErrorEnhancer",
"Cl... | [
"AjaxJson",
"As",
"Contains",
"Error",
"F",
"HasPrefix",
"Interface",
"Is",
"IsNil",
"String",
"Type",
"_invoke",
"assign",
"call",
"createAppWorkerClient",
"format",
"get",
"getCode",
"getDebugName",
"getError"
] |
query: @Test public void testBigDecimal() method of JsonArrayTest | passage: @Test
public void testBigDecimal() {
BigDecimal bd1 =
new BigDecimal("124567890.0987654321");
// storing BigDecimal should not be an issue
JsonArray json = new JsonArray();
json.add(bd1);
assertEquals(bd1, json.getValue(0));
assertSame(bd1, json.getValue(0));
// copy() sho... | java | testBigDecimal | vertx-core/src/test/java/io/vertx/tests/json/JsonArrayTest.java | eclipse-vertx/vert.x | stack-cqs-index | [] | [
"BigDecimal",
"EqualsBuilder",
"JsonArray",
"JsonObject",
"add",
"append",
"assertEquals",
"assertSame",
"assertThat",
"assertThrows",
"assertTrue",
"copy",
"encode",
"fromString",
"getValue",
"hasMessageThat",
"isEqualTo",
"isEquals",
"put",
"readNumber"
] |
query: async fn test_failover_with_single_provider_failing() function test_failover_with_single_provider_failing | passage: / second call : provider is in cooldown, but it ' s the only one, / / so " never skip all " should try it anyway. let result = failover2. complete ( make _ request ( ) ). await ; assert! ( result. is _ err ( ), " should still fail but not panic " ) ; assert _ eq! ( solo2. call _ count ( ), 2, " sole provider s... | rust | test_failover_with_single_provider_failing | src/llm/failover.rs | nearai/ironclaw | stack-cqs-index | [] | [
"always_fail",
"assert",
"assert_eq",
"complete",
"from_secs",
"make_request",
"panic",
"unwrap",
"unwrap_err",
"vec",
"with_cooldown"
] |
query: """Interpret a plugin environment variable value. def interpret_plugin_env(value function interpret_plugin_env | passage: def interpret_plugin_env(value: str, field_name: str) -> Plugin:
"""Interpret a plugin environment variable value.
Resolves a fully qualified import path and returns an instance of the Plugin.
Args:
value: The environment variable value (e.g. "reflex.plugins.sitemap.SitemapPlugin").
... | python | interpret_plugin_env | reflex/environment.py | reflex-dev/reflex | stack-cqs-index | [
"TestInterpretFunctions",
"interpret_env_var_value",
"test_interpret_plugin_env_import_error",
"test_interpret_plugin_env_invalid_class",
"test_interpret_plugin_env_invalid_format",
"test_interpret_plugin_env_missing_class",
"test_interpret_plugin_env_valid"
] | [
"EnvironmentVarValueError",
"interpret_plugin_class_env",
"plugin_class"
] |
query: void clearSelection() function clearSelection | passage: void clearSelection() {
g_qeglobals.d_select_mode = sel_brush;
g_qeglobals.selectObject = NULL;
} | cpp | clearSelection | q3radiant/SELECT.CPP | id-Software/Quake-III-Arena | stack-cqs-index | [
"AccessibilityManager",
"AgendaView",
"B",
"BlockEvents",
"BlockSelection",
"BookListTableWidget",
"C",
"Caret",
"ChatRouteGlobalShortcuts",
"CliRenderer",
"ClipboardService",
"CoreBrowserTerminal",
"CrossBlockSelection",
"DayEventRenderer",
"DragCanvasState",
"Drag_Setup",
"Dragdrop... | [
"_forEach",
"_removeMouseDownListeners",
"blur",
"clear",
"clearOverlays",
"clearSelectedNodes",
"clearSelection",
"collapseToEnd",
"collapseToStart",
"component",
"delay",
"emit",
"empty",
"evaluate",
"execCommand",
"fire",
"focus",
"forEach",
"getOnItemSelectedListener",
"get... |
query: refining globals */ function fn0() function fn0 | passage: function fn0() {
if (typeof BAZ !== 'undefined' &&
typeof BAZ.stuff === 'function') {
BAZ.stuff(123);
}
BAZ.stuff(123); // error, refinement is gone
} | javascript | fn0 | tests/format/flow/flow-repo/refinements/typeof.js | prettier/prettier | stack-cqs-index | [] | [
"stuff",
"test"
] |
query: #define MIPS_VFPU4(VALUE) (MIPS_OP(52) | MIPS_RS(VALUE)) macro MIPS_VFPU4 | passage: #define MIPS_VFPU4(VALUE) (MIPS_OP(52) | MIPS_RS(VALUE))
| cpp | MIPS_VFPU4 | tools/armips.cpp | n64decomp/sm64 | stack-cqs-index | [] | [] |
query: async () => function renderChart | passage: async () => {
if (!isMounted) return;
try {
setError(null);
setSvg('');
// Render the chart directly without preprocessing
const { svg: renderedSvg } = await mermaid.render(idRef.current, chart);
if (!isMounted) return;
let processedSvg = rendered... | typescript | renderChart | src/components/Mermaid.tsx | AsyncFuncAI/deepwiki-open | stack-cqs-index | [
"Chart",
"ChartComponent",
"ChartTab",
"Chartable",
"RailsPerformanceChart",
"ZoomableMermaid",
"componentDidMount",
"createChart",
"renderPercentageChart",
"renderRTChart",
"renderTIRChart",
"renderUsageChart"
] | [
"String",
"addDownloadButton",
"callAdapter",
"cloneData",
"contentLoaded",
"dataEmpty",
"dataTransform",
"defineComponent",
"error",
"getTremorColor",
"h",
"propsFactory",
"random",
"ref",
"reforwardRef",
"render",
"replace",
"setError",
"setSvg",
"setText"
] |
query: The macro used to define overridden intrinsics. macro_rules! intrinsics macro intrinsics | passage: macro _ rules! intrinsics { ( ) = > { } ; ( # [ slower _ than _ default ] $ ( # [ $ ( $ attr : tt ) * ] ) * extern $ abi : tt fn $ name : ident ( $ ( $ argname : ident : $ ty : ty ), * ) - > $ ret : ty { $ ( $ body : tt ) * } $ ( $ rest : tt ) * ) = > { / / not exported, but defined so the actual implementatio... | rust | intrinsics | embassy-rp/src/intrinsics.rs | embassy-rs/embassy | stack-cqs-index | [
"Fortran",
"Lexers",
"Membrane",
"Rouge",
"addIntrinsics"
] | [] |
query: async fn copy_container( server: &Server, access_token: &AccessToken, from_account_id: u32, from_document_id: u32, from_children_ids: Vec<u32>, from_resource_path: String, to_account_id: u32, to_docum function copy_container | passage: ##ete ( access _ token, from _ account _ id, from _ child _ document _ id, from _ document _ id, none, & mut batch, ). caused _ by ( trc : : location! ( ) )? ; } let to _ document _ id = server. store ( ). assign _ document _ ids ( to _ account _ id, collection : : contactcard, 1 ). await. caused _ by ( trc : ... | rust | copy_container | crates/dav/src/card/copy_move.rs | stalwartlabs/stalwart | stack-cqs-index | [
"handle_calendar_copy_move_request",
"handle_card_copy_move_request",
"handle_file_copy_move_request",
"move_container"
] | [
"Code",
"DestroyArchive",
"Ok",
"Some",
"archive",
"assign_document_ids",
"caused_by",
"clear",
"clone",
"cmp",
"commit_batch",
"commit_point",
"copy_item",
"custom",
"delete",
"delete_with_cards",
"delete_with_events",
"document_id",
"format_collection",
"get"
] |
query: func TestNextNumber(t *testing.T) function TestNextNumber | passage: func TestNextNumber(t *testing.T) {
var tests = []struct {
input string
num int
rest string
err bool
}{
{
input: "12h", num: 12, rest: "h",
},
{
input: "3d", num: 3, rest: "d",
},
{
input: "4d9h", num: 4, rest: "d9h",
},
{
input: "7m5d", num: 7, rest: "m5d",
},
{
... | go | TestNextNumber | internal/data/duration_test.go | restic/restic | stack-cqs-index | [] | [
"Errorf",
"Fatal",
"Run",
"nextNumber"
] |
query: Decrements the counter. If the counter reaches zero, def dec method of Counter | passage: def dec
@mutex.synchronize do
@counter -= 1 if @counter.positive?
@condition.signal if @counter.zero?
end
end | ruby | dec | profile/driver_bench/parallel/counter.rb | mongodb/mongo-ruby-driver | stack-cqs-index | [
"A",
"ADDModel",
"BenchmarkResultEncodings",
"CacheTest",
"Class",
"Class2",
"Decode",
"DecoderFor",
"Endpoint",
"Foo",
"Foo2",
"Invoke",
"LocalMetricsTest",
"MyClass",
"NewBenchmark",
"PrometheusGaugeMetrics",
"ServeDelivery",
"ServeGRPC",
"ServeHTTP",
"ServeMsg"
] | [
"DecodeString",
"Exception",
"GaugeMetrics",
"_",
"__torch_dispatch__",
"actions",
"addInitializer",
"assertEq",
"assertSeeIn",
"assertThrows",
"call",
"click",
"create",
"custom_op",
"custom_triton_ops_decomposition_disabled",
"dec",
"decrby",
"dedent",
"exec",
"fn"
] |
query: constructor(source, err, loaders, type) method of ModuleParseError | passage: " " ) } ` ; } loc = { start : err. loc } ; } else if ( err & & err. stack ) { message + = ` \ n $ { err. stack } ` ; } super ( message ) ; / * * @ type { string } * / this. name = " moduleparseerror " ; this. loc = loc ; this. error = err ; } | javascript | constructor | lib/ModuleParseError.js | webpack/webpack | stack-cqs-index | [
"**cloneElement:**",
"A",
"AdapterGenerator",
"AttributeBasedAutowiring",
"AutowireDefinitionHelperTest",
"AutowireDefinitionTest",
"BaseConstructor",
"BaseQuickAdapter",
"BaseSelect",
"Build",
"Build, test and run",
"BuildChain",
"BuildMiddlewareChain",
"Builder",
"CoercibleDate",
"Co... | [
"$",
"$1",
"$9",
"$Q",
"$a",
"$createNode$",
"$d",
"$derived",
"$effect",
"$f",
"$h",
"$i",
"$l",
"$n",
"$r",
"$s",
"$state",
"$t",
"$y",
"A"
] |
query: fn run_c_compiler_error_handling() -> Result<()> function run_c_compiler_error_handling | passage: fn run_c_compiler_error_handling() -> Result<()> {
let env = TestEnvironment::new("test_c_compiler_error")?;
// Create a C program with syntax errors
env.create_source_files(&[(
"broken.c",
r#"
#include <stdio.h>
int main() {
printf("Hello, World!\n" // Mis... | rust | run_c_compiler_error_handling | integration-tests/tests/fixtures/infrastructure.rs | rizsotto/Bear | stack-cqs-index | [] | [
"Ok",
"assert",
"create_source_files",
"run_c_compiler"
] |
query: @Override public void uncaughtException(Thread t, Throwable e) method of RootThreadGroup | passage: @Override
public void uncaughtException(Thread t, Throwable e) {
CrashHandler handler = VClientImpl.gClient.crashHandler;
if (handler != null) {
handler.handleUncaughtException(t, e);
} else {
VLog.e("uncaught", e);
Sys... | java | uncaughtException | VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java | android-hacker/VirtualXposed | stack-cqs-index | [
"App",
"BallThreadTest",
"CatchingExecutors",
"CrashCaptureManager",
"CrashHandler",
"CrashUtils",
"IsolatedJvm",
"JavaCrashHandler",
"NonIsolatedJvm",
"SampleUncaughtExceptionHandler",
"Server",
"TinkerUncaughtHandler",
"callHandler",
"getUncaughtExceptionHandler",
"internalMain",
"ru... | [
"CrashInfo",
"Date",
"ExceptionDialog",
"FileWriter",
"PrintWriter",
"Runnable",
"SimpleDateFormat",
"UncaughtExceptionHandler",
"add",
"asyncSaveCrashScreenshot",
"buildExceptionData",
"closeQuietly",
"e",
"error",
"exists",
"exit",
"finishAllActivities",
"format",
"generateFile... |
query: def test_fastmcp_not_in_with(self) method of TestBuildUvxCommand | passage: def test_fastmcp_not_in_with(self):
cmd = _build_uvx_command("server.py", with_packages=["fastmcp", "numpy"])
# fastmcp is the command itself, so it shouldn't appear in --with
with_indices = [i for i, v in enumerate(cmd) if v == "--with"]
with_values = [cmd[i + 1] for i in with_... | python | test_fastmcp_not_in_with | tests/cli/test_goose.py | PrefectHQ/fastmcp | stack-cqs-index | [] | [
"_build_uvx_command",
"enumerate"
] |
query: Info returns the option pod and container info. func (o *LogOptions) Info() string method of LogOptions | passage: func (o *LogOptions) Info() string {
if o.Container != "" {
return fmt.Sprintf("%s (%s)", o.Path, o.Container)
}
return o.Path
} | go | Info | internal/dao/log_options.go | derailed/k9s | stack-cqs-index | [
"AIChatStream",
"API",
"About",
"Abstract",
"Add",
"AddConfigPath",
"AddConnection",
"AddInterface",
"AddMember",
"AddPeer",
"AddRemote",
"AddRemoteProvider",
"AddSecureRemoteProvider",
"AddTask",
"AggregateHourlyStats",
"Alias",
"Alive",
"ApplyPWAManifest",
"ApplySeo",
"ApplyU... | [
"AddCallerSkip",
"AddTraceEvent",
"Any",
"Atoi",
"AutoStartedIdentifier",
"Background",
"Base",
"Body",
"Call",
"Called",
"CallerSkipFrame",
"CheckHTTPResponse",
"Close",
"Contains",
"CurrentProfile",
"Debug",
"Debugf",
"Decode",
"DecodeResponse",
"DetectEncryption"
] |
query: function AuthCallback | passage: ( state ) ; if (! validatedstate ) { setstate ( { loading : false, errormessage : " failed to authorize. invalid or expired state parameter. this may indicate a csrf attack attempt. ", } ) ; return ; } const { identityprovidername, returnurl, codeverifier } = validatedstate ; const redirecturi = absolutifylink... | typescript | AuthCallback | web/src/pages/AuthCallback.tsx | usememos/memos | stack-cqs-index | [] | [
"absolutifyLink",
"decodeURIComponent",
"get",
"handleError",
"initialize",
"isEmpty",
"lazyWithReload",
"navigateTo",
"setAccessToken",
"setState",
"signIn",
"timestampDate",
"useAuth",
"useEffect",
"useNavigateTo",
"useRef",
"useSearchParams",
"useState",
"validateOAuthState"
] |
query: """Builder endpoints must not be registered when web=False (e.g. deploy).""" def test_builder_endpoints_not_registered_without_web( mock_session_service, mock_artifact_service, mock_memory_service, mock_agent_loader, mock_eval_sets_manager, mock_eval_set_results_manager, ) function test_builder_endpoints_not_reg... | passage: def test_builder_endpoints_not_registered_without_web(
mock_session_service,
mock_artifact_service,
mock_memory_service,
mock_agent_loader,
mock_eval_sets_manager,
mock_eval_set_results_manager,
):
"""Builder endpoints must not be registered when web=False (e.g. deploy)."""
client =... | python | test_builder_endpoints_not_registered_without_web | tests/unittests/cli/test_fast_api.py | google/adk-python | stack-cqs-index | [] | [
"_create_test_client",
"get",
"post"
] |
query: assert_line_text ignores the prompt line, so we can't use it to assert the prompt transition def assert_raw_line_text(expectation) method of IrbTest | passage: def assert_raw_line_text(expectation)
@scenario.push(Proc.new do |test_info|
assert_include(test_info.last_backlog.join, expectation)
end)
end | ruby | assert_raw_line_text | test/console/irb_test.rb | ruby/debug | stack-cqs-index | [
"DEBUGGER__",
"IrbTest",
"test_irb_command_switches_console_to_irb",
"test_irb_console_config_activates_irb"
] | [
"assert_include",
"join",
"last_backlog",
"push"
] |
query: public Criteria andSortIsNotNull() method of GeneratedCriteria | passage: public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
} | java | andSortIsNotNull | mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionProductRelationExample.java | macrozheng/mall-swarm | stack-cqs-index | [] | [
"addCriterion"
] |
query: public Builder clearVersionPresent() method of Builder | passage: public Builder clearVersionPresent() {
versionPresentCase_ = 0;
versionPresent_ = null;
onChanged();
return this;
} | java | clearVersionPresent | protocol/src/main/java/com/alibaba/otter/canal/protocol/AdminPacket.java | alibaba/canal | stack-cqs-index | [] | [
"onChanged"
] |
query: Runs the application mode. pub fn run(self) -> ExitCode method of Mode | passage: pub fn run(self) -> ExitCode {
let status = match self {
Self::Intercept(interceptor, command) => interceptor.run(command),
Self::Replay(semantic) => semantic.run(),
};
status.unwrap_or_else(|error| {
log::error!("{error}");
ExitCode::FAIL... | rust | run | bear/src/modes/mod.rs | rizsotto/Bear | stack-cqs-index | [
"$",
"$I",
"$ZodArray",
"$ZodCatch",
"$ZodCheckProperty",
"$ZodCodec",
"$ZodDefault",
"$ZodDiscriminatedTupleUnion",
"$ZodDiscriminatedUnion",
"$ZodExactOptional",
"$ZodIntersection",
"$ZodLazy",
"$ZodMap",
"$ZodNonOptional",
"$ZodNullable",
"$ZodObject",
"$ZodOptional",
"$ZodPipe"... | [
"\"$@\"",
"\"${@}\"",
"\"${CONVERT}\"",
"\"${CTAGS}\"",
"\"${FFMPEG}\"",
"\"${OPTIPNG}\"",
"\"${PNGQUANT}\"",
"$",
"$$rAF",
"$*",
"$@",
"$CTAGS",
"$CTR",
"$EXAMPLE_FN",
"$SH",
"$cmd",
"$config",
"$state",
"$timeout",
"${CTAGS}"
] |
query: LRESULT CALLBACK TrayIcon::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) method of TrayIcon | passage: windowhandle ) { lpcwstr folderpath = ( lpcwstr ) cds - > lpdata ; skin * skin = getrainmeter ( ). getskin ( folderpath ) ; return ( skin )? ( lresult ) skin - > getwindow ( ) : 0 ; } } return 1 ; case wm _ timer : if ( wparam = = timer _ traymeasure ) { if ( tray - > m _ measure ) { tray - > m _ measure - > u... | cpp | WndProc | Library/TrayIcon.cpp | rainmeter/rainmeter | stack-cqs-index | [
"main"
] | [
"BeginPaint",
"BitBlt",
"CHAR_CMD",
"CORD_chars",
"CORD_len",
"CORD_to_char_star",
"CalcWindowSize",
"CallNextHookEx",
"CenterWindow",
"ChangeStateManual",
"CheckFlags",
"CheckTrayIcon",
"ClayVideoDemo_CreateLayout",
"Clay_SetDebugModeEnabled",
"Clay_SetLayoutDimensions",
"Clay_SetPoin... |
query: public boolean isSingleValue() method of Criterion | passage: public boolean isSingleValue() {
return singleValue;
} | java | isSingleValue | zheng-upms/zheng-upms-dao/src/main/java/com/zheng/upms/dao/model/UpmsLogExample.java | shuzheng/zheng | stack-cqs-index | [
"Comparison",
"compare"
] | [
"is_scalar"
] |
query: u32 Device::ioctl(u32 id,u8* buffer) method of Device | passage: u32 Device::ioctl(u32 id,u8* buffer){
return NOT_DEFINED;
} | cpp | ioctl | src/kernel/core/device.cc | SamyPesse/How-to-Make-a-Computer-Operating-System | stack-cqs-index | [
"Adaptors",
"AdjustedBeep",
"Artoo",
"AsyncTCPSocketMakeNonBlocking",
"BMP085_detect",
"CDAudio_CloseDoor",
"CDAudio_Eject",
"CDAudio_GetAudioDiskInfo",
"CDAudio_Pause",
"CDAudio_Play",
"CDAudio_Resume",
"CDAudio_Stop",
"CDAudio_Update",
"CheckEthernet",
"ClassMethods",
"ClearHalt",
... | [
"BgaIsAvailable",
"BgaSetVideoMode",
"CancelOnDrop",
"Ok",
"Pending",
"Pointer",
"SCOPE_LOCK",
"Syscall",
"TRACE_OCALL_FAIL",
"VOP_IOCTL",
"WARN_ONCE",
"apply",
"borrow_mut",
"clear",
"debug",
"decode_from_bytes",
"defuse",
"encode",
"error",
"fdesc_put"
] |
query: protected function wrapAliasedValue($value, $prefixAlias = false) method of Grammar | passage: protected function wrapAliasedValue($value, $prefixAlias = false)
{
$segments = preg_split('/\s+as\s+/i', $value);
// If we are wrapping a table we need to prefix the alias with the table prefix
// as well in order to generate proper syntax. If this is a column of course
//... | php | wrapAliasedValue | src/database/src/Grammar.php | hyperf/hyperf | stack-cqs-index | [
"Grammar",
"wrap"
] | [
"preg_split",
"wrap",
"wrapValue"
] |
query: def process_item(self, item) method of UppercasePipeline | passage: def process_item(self, item):
return {"url": item["url"].upper()} | python | process_item | tests/AsyncCrawlerProcess/asyncio_deferred_signal.py | scrapy/scrapy | stack-cqs-index | [
"Base",
"Command",
"CustomPipelineManager",
"Kimurai",
"Pry",
"Scraper",
"Slop",
"TestBaseMediaPipeline",
"TestCustomPipelineManager",
"TestFilesPipeline",
"TestMediaFailedFailure",
"TestMediaPipeline",
"TestSettings",
"ZeroPlugin",
"commands",
"export_data",
"parse!",
"process_bit... | [
"DSV_FORMAT_TYPE",
"Deferred",
"DeferredList",
"DropItem",
"ExtStrAppendLine",
"ExtStrTrimEnd",
"Failure",
"INSERT_FORMAT_TYPE",
"InitExtStr",
"ResetExtStr",
"ValueError",
"_process_request",
"_set_compat_spider",
"accepts_optional_argument?",
"addCallback",
"append",
"arg_to_iter",
... |
query: @Override public void deleteCode_Transaction(TenantIdentifier tenantIdentifier, TransactionConnection con, String deviceIdHash) throws StorageQueryException method of Start | passage: @Override
public void deleteCode_Transaction(TenantIdentifier tenantIdentifier, TransactionConnection con,
String deviceIdHash) throws StorageQueryException {
Connection sqlCon = (Connection) con.getConnection();
try {
PasswordlessQueries.d... | java | deleteCode_Transaction | src/main/java/io/supertokens/inmemorydb/Start.java | supertokens/supertokens-core | stack-cqs-index | [
"Passwordless",
"Start",
"deleteCode_Transaction",
"removeCode"
] | [
"StorageQueryException",
"deleteCode_Transaction",
"getAppId",
"getConfig",
"getConnection",
"getPasswordlessCodesTable",
"getTenantId",
"setString",
"update"
] |
query: pub fn r#resp(&self) -> &i32 method of CtrlMsg_Resp_SetCountryCode | passage: pub fn r#resp(&self) -> &i32 {
&self.r#resp
} | rust | r#resp | embassy-net-esp-hosted/src/proto.rs | embassy-rs/embassy | stack-cqs-index | [] | [] |
query: def main() function main | passage: def main():
create_db_and_tables()
create_heroes()
select_heroes() | python | main | docs_src/tutorial/connect/select/tutorial005_py310.py | fastapi/sqlmodel | 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: You must implement in subclasses def self.handle_scheme?(_scheme) method handle_scheme? | passage: def self.handle_scheme?(_scheme)
false
end | ruby | handle_scheme? | bridgetown-core/lib/bridgetown-core/model/origin.rb | bridgetownrb/bridgetown | stack-cqs-index | [
"Base",
"Bridgetown",
"Model",
"origin_for_id"
] | [] |
query: async function validateTypeScript(): Promise<ValidationResult[]> function validateTypeScript | passage: = = = " tsconfig. json " ) continue ; const fullpath = path. join ( tsdir, file ) ; const block = manifest. blocks. find ( ( b ) = > b. outputfile = = = ` typescript / $ { file } ` ) ; const errors = fileerrors. get ( fullpath ) | | fileerrors. get ( file ) | | [ ] ; results. push ( { file : ` typescript / $ {... | typescript | validateTypeScript | scripts/docs-validation/validate.ts | github/copilot-sdk | stack-cqs-index | [] | [
"execFileSync",
"existsSync",
"find",
"get",
"glob",
"has",
"join",
"loadManifest",
"log",
"match",
"push",
"set",
"split",
"stringify",
"trim",
"writeFileSync"
] |
query: def test_local_cache_should_deserialize_entries_on_multi_get method of LocalCacheBehavior | passage: def test_local_cache_should_deserialize_entries_on_multi_get
keys = Array.new(5) { SecureRandom.uuid }
values = keys.index_with(true)
@cache.with_local_cache do
assert @cache.write_multi(values)
assert_equal values, @cache.read_multi(*keys)
end
end | ruby | test_local_cache_should_deserialize_entries_on_multi_get | test/unit/behaviors/local_cache_behavior.rb | rails/solid_cache | stack-cqs-index | [] | [
"assert",
"assert_equal",
"index_with",
"read_multi",
"uuid",
"with_local_cache",
"write_multi"
] |
query: async def test_call_included_tool(self) method of TestToolTags | passage: async def test_call_included_tool(self):
mcp = self.create_server(include_tags={"a"})
result_1 = await mcp.call_tool("tool_1", {})
assert result_1.structured_content == {"result": 1}
with pytest.raises(NotFoundError, match="Unknown tool"):
await mcp.call_tool("tool_... | python | test_call_included_tool | tests/server/providers/local_provider_tools/test_tags.py | PrefectHQ/fastmcp | stack-cqs-index | [] | [
"call_tool",
"create_server",
"raises"
] |
query: isActionStale(actionContext) method isActionStale | passage: isActionStale(actionContext) {
if (!actionContext) return false;
return this.actionsGeneration !== actionContext.gen || this.videoData?.videoId !== actionContext.videoId;
} | javascript | isActionStale | dist/vot.user.js | ilyhalight/voice-over-translation | stack-cqs-index | [
"Ag",
"Eg",
"Hs",
"Og",
"Tg",
"Vs",
"applyTranslationSource",
"hg",
"isProbeCancelled",
"kg",
"pg",
"requestAndApplyTranslation",
"requestApplyAndCacheTranslation",
"retryTranslationWithDirectSource",
"shouldRetryTranslationSource",
"translateFunc",
"updateTranslation",
"updateTran... | [] |
query: def _extract_attachment(self, files, post, attachment, preview=False) method of FanslyExtractor | passage: def _ extract _ attachment ( self, files, post, attachment, preview = false ) : media = attachment [ " preview " if preview else " media " ] variants = media. pop ( " variants " ) or [ ] if media. get ( " locations " ) : variants. append ( media ) fmts = self. formats formats = [ ( variant [ " width " ], ( typ... | python | _extract_attachment | gallery_dl/extractor/fansly.py | mikf/gallery-dl | stack-cqs-index | [
"FanslyExtractor",
"_extract_attachment",
"_extract_files"
] | [
"_extract_attachment",
"append",
"get",
"info",
"json_loads",
"max",
"parse_timestamp",
"pop",
"startswith",
"update",
"warning"
] |
query: withRawTxOnly(rawTxOnly: boolean) method of PrecompileContract | passage: withRawTxOnly(rawTxOnly: boolean) {
if (rawTxOnly === false) {
this.rawTxOnly = undefined;
}
return this;
} | typescript | withRawTxOnly | test/moonwall/helpers/precompile-contract-calls.ts | datahaven-xyz/datahaven | stack-cqs-index | [] | [] |
query: @Test void listAsTreeMore() method of CategoryFinderImplTest | passage: @Test
void listAsTreeMore() {
when(client.listAll(eq(Category.class), any(ListOptions.class), any(Sort.class)))
.thenReturn(Flux.fromIterable(moreCategories()));
List<CategoryTreeVo> treeVos = categoryFinder.listAsTree().collectList().block();
String s = visualizeTree(tr... | java | listAsTreeMore | application/src/test/java/run/halo/app/theme/finders/impl/CategoryFinderImplTest.java | halo-dev/halo | stack-cqs-index | [] | [
"any",
"assertThat",
"block",
"collectList",
"eq",
"fromIterable",
"isEqualTo",
"listAll",
"listAsTree",
"moreCategories",
"thenReturn",
"visualizeTree",
"when"
] |
query: set isAdmin(isAdmin) function isAdmin | passage: set isAdmin(isAdmin) {
this._isAdmin = isAdmin;
} | javascript | isAdmin | client/app/services/auth.js | getredash/redash | stack-cqs-index | [
"AbstractMessageHandler",
"AccountConfigurationController",
"Admin",
"Api",
"App",
"AuthTest",
"BaseServiceImpl",
"BaseServiceTest",
"GenerateKeyCommand",
"InsightEOYStreamController",
"InsightStreamController",
"K8SNamespaceServiceImpl",
"ListKeysCommand",
"PermissionManager",
"PluginCo... | [
"AllocateAndInitializeSid",
"Errorf",
"GetCurrentProcessToken",
"IsMember",
"Token",
"and",
"call_user_func",
"camel",
"cb",
"eq",
"error",
"from",
"get",
"getFrom",
"getId",
"getItem",
"getUserType",
"has",
"hasPermission",
"in_array"
] |
query: @RequestMapping("/insert") @ResponseBody @XxlSso(role = Consts.ADMIN_ROLE) public Response<String> insert(XxlJobGroup xxlJobGroup) method of JobGroupController | passage: getaddresstype ( )! = 0 ) { if ( stringtool. isblank ( xxljobgroup. getaddresslist ( ) ) ) { return response. offail ( i18nutil. getstring ( " jobgroup _ field _ addresstype _ limit " ) ) ; } if ( xxljobgroup. getaddresslist ( ). contains ( " > " ) | | xxljobgroup. getaddresslist ( ). contains ( " < " ) ) { re... | java | insert | xxl-job-admin/src/main/java/com/xxl/job/admin/controller/biz/JobGroupController.java | xuxueli/xxl-job | stack-cqs-index | [
"$",
"$e",
"$h",
"$m",
"2.23.0",
"ACAutoMata",
"AES",
"ALL_MODULES",
"AND",
"APODContentProvider",
"ATNConfigSet",
"ATNState",
"AVL",
"AVLNode",
"AVLSimple",
"AVLTreeTest",
"AWPlus",
"AbstractAdapter",
"AbstractColumnTestCase",
"AbstractDb"
] | [
"$",
"$A",
"ACNode",
"AddMetadata",
"AnnotationException",
"Any",
"Array",
"AvlTree",
"BA",
"BTreeNode",
"BinaryTreeNode",
"Boolean",
"ByteSizeLong",
"CDbException",
"CFArrayInsertValueAtIndex",
"CLIResult",
"Collection",
"Count",
"Create",
"Create Rows - Use the Session - INSE... |
query: def test_reconnect_to_main(self, celery_setup method of test_broker_failover | passage: def test_reconnect_to_main(self, celery_setup: CeleryTestSetup):
assert len(celery_setup.broker_cluster) > 1
celery_setup.broker_cluster[0].kill()
expected = "test_broker_failover"
res = identity.s(expected).apply_async(queue=celery_setup.worker.worker_queue)
assert res.... | python | test_reconnect_to_main | t/smoke/tests/failover/test_broker_failover.py | celery/celery | stack-cqs-index | [] | [
"apply_async",
"get",
"kill",
"len",
"restart",
"s"
] |
query: void ModMenu::mod_dragged(uint32_t mod_index, EventDrag drag) method of ModMenu | passage: < mod _ entry _ buttons. size ( ) ; i + + ) { mod _ entry _ buttons [ i ] - > set _ mod _ details ( mod _ details [ i ] ) ; mod _ entry _ buttons [ i ] - > set _ mod _ thumbnail ( generate _ thumbnail _ src _ for _ mod ( mod _ details [ i ]. mod _ id ) ) ; mod _ entry _ buttons [ i ] - > set _ mod _ enabled ( ... | cpp | mod_dragged | src/ui/ui_mod_menu.cpp | Zelda64Recomp/Zelda64Recomp | stack-cqs-index | [
"create_mod_list",
"recompui"
] | [
"generate_thumbnail_src_for_mod",
"get_absolute_left",
"get_absolute_top",
"get_client_height",
"get_client_width",
"is_mod_enabled_or_auto",
"set_display",
"set_focused",
"set_height",
"set_left",
"set_mod_details",
"set_mod_enabled",
"set_mod_thumbnail",
"set_selected",
"set_target_hei... |
query: def utime(modified_time, *filenames) method of File | passage: def utime(modified_time, *filenames)
filenames.each do |filename|
find_entry(filename).time = modified_time
end
end | ruby | utime | lib/zip/filesystem/file.rb | rubyzip/rubyzip | stack-cqs-index | [
"--fast-list",
"ActionView",
"Agent",
"ArchiveImportTask",
"AssetCollection",
"AssetTagHelper",
"AzureContainerSynchronizer",
"Benchmark",
"Bridgetown",
"Bug",
"C",
"CLICommandsTest",
"CachedAzureBlobWorkspace",
"ClaudeSwarm",
"CopyTimeStat",
"CpuSampler",
"CpuUsage",
"DemoFileIOHe... | [
"CHECK_MISSING_REAL",
"DONT_FAKE_TIME",
"LOG_DEBUG",
"Time",
"_encodeMetadata",
"_getChildPath",
"_hasChildPath",
"_isInitialized",
"_isRegNameType",
"_utime32",
"_utime64",
"as_rational",
"as_string",
"as_time",
"at",
"atime",
"c_str",
"checkOpExists",
"context_clear_err",
"co... |
query: def write_triton_stats(stats, summary_file) function write_triton_stats | passage: write ( f " model name is { model _ state [ ' name ' ] } \ n " ) model _ inference _ stats = model _ state [ " inference _ stats " ] total _ queue _ time _ s = int ( model _ inference _ stats [ " queue " ] [ " ns " ] ) / 1e9 total _ infer _ time _ s = int ( model _ inference _ stats [ " compute _ infer " ] [ "... | python | write_triton_stats | src/f5_tts/runtime/triton_trtllm/client_grpc.py | SWivid/F5-TTS | stack-cqs-index | [
"main"
] | [
"int",
"open",
"write"
] |
query: function App( function App | passage: function App({ Component, pageProps }: AppProps) {
const router = useRouter()
React.useEffect(() => {
function onRouteChangeComplete() {
if (fathomId) {
Fathom.trackPageview()
}
if (posthogId) {
posthog.capture('$pageview')
}
}
if (fathomId) {
Fa... | typescript | App | pages/_app.tsx | transitive-bullshit/nextjs-notion-starter-kit | stack-cqs-index | [
"**cloneElement:**",
"AbstractFactoryTest",
"Action",
"AdkWebServer",
"AdminServiceTest",
"AdminServiceTransactionTest",
"App",
"AppEdge",
"AppFactory",
"AppIfConfigured",
"AppRepositoryTest",
"AppServiceTest",
"AppTest",
"AppWindow",
"BackgroundTask",
"Balancer",
"BaseBot",
"BaseP... | [
"$",
"$on",
"$t",
"AbstractModule",
"AccountCreateEvent",
"Action",
"Activate",
"ActorSystem",
"AdaptiveRateLimiter",
"Address",
"AddressFilter",
"Admin",
"AdvancedSorceress",
"AdvancedWizard",
"AlbumInvocationHandler",
"AlchemistShop",
"Animal",
"AnonymousTelemetry",
"App",
"A... |
query: pub fn set_always_on_top(&self, always_on_top: bool) method of WindowHandle | passage: pub fn set_always_on_top(&self, always_on_top: bool) {
if let Some(state) = self.state.upgrade() {
state.window.set_keep_above(always_on_top);
}
} | rust | set_always_on_top | druid-shell/src/backend/gtk/window.rs | linebender/druid | stack-cqs-index | [
"apply_to_builder",
"build",
"close_thumb",
"focus_translator_window",
"get_screenshot_window",
"get_thumb_window",
"handle_single_instance",
"new",
"set_always_on_top",
"set_translator_window_always_on_top",
"shared_set_always_on_top"
] | [
"SetAlwaysOnTop",
"Some",
"defer",
"error",
"is_main_window",
"msg_send",
"set_always_on_top",
"set_keep_above",
"set_macos_panel",
"set_window_level",
"shared_set_always_on_top",
"upgrade",
"warn"
] |
query: function au(t,n) function au | passage: function au(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e} | javascript | au | server/vditor/js/markmap/markmap.min.js | blinkospace/blinko | stack-cqs-index | [
"$r",
"Ca",
"E",
"Fo",
"Fr",
"Gi",
"Gr",
"Hr",
"KE",
"Lu",
"Mo",
"No",
"Of",
"Or",
"Ou",
"Ox",
"Pi",
"Pu",
"Qa",
"So"
] | [
"Ah",
"Be",
"Br",
"COMMENT",
"Error",
"Hs",
"Kr",
"Kt",
"Number",
"O",
"P",
"Pe",
"Q",
"Qi",
"Ve",
"Wj",
"Wt",
"Zr",
"Zt",
"_u"
] |
query: def already_ran method of Spork | passage: def already_ran
@already_ran ||= []
end | ruby | already_ran | lib/spork.rb | sporkrb/spork | stack-cqs-index | [] | [] |
query: private function authenticate(SFTP $connection): void method of SftpConnectionProvider | passage: private function authenticate(SFTP $connection): void
{
if ($this->privateKey !== null) {
$this->authenticateWithPrivateKey($connection);
} elseif ($this->useAgent) {
$this->authenticateWithAgent($connection);
} else {
$this->authenticateWithUsern... | php | authenticate | src/PhpseclibV3/SftpConnectionProvider.php | thephpleague/flysystem | stack-cqs-index | [
"$get",
"ATMSystem",
"ActionController",
"Agents",
"Ahoy",
"Airplay",
"Api",
"ApiClientTest",
"Apipie",
"ApipiesController",
"App",
"Auth",
"AuthController",
"AuthProvider",
"AuthTest",
"AuthTool",
"Authenticate",
"AuthenticateAndRenew",
"AuthenticateToken",
"AuthenticateUserCo... | [
"$q",
"Add",
"Auth",
"AuthCredentials",
"Authenticate",
"AuthenticateHook",
"AuthenticateUserCommand",
"AuthenticatedUser",
"AuthenticationErr",
"AuthenticationFailed",
"AuthenticationRejected",
"Authenticator",
"BadCredentialsException",
"BeatportClient",
"BlobHttpContent",
"ByteArray... |
query: config(settings) function config | passage: config(settings) {
settings.addTextSetting({
prefKey: "deeplcustom.endpoint",
nameKey: "service-deeplcustom-dialog-endPoint",
});
} | typescript | config | src/modules/services/deeplcustom.ts | windingwind/zotero-pdf-translate | stack-cqs-index | [
"$LocationDecorator",
"$O",
"$ZodCatch",
"$ZodRecord",
"$_",
"$ionicTemplateCache",
"$x",
"3. **Start Docker**",
"3.1 Upgrade Guide",
"3.1 升級指南",
"3.1 升级指南",
"3.5 Routes",
"4. Route Conventions",
"A",
"AASM",
"AIRGoogleMap",
"ALSTM",
"AM",
"API",
"APP"
] | [
"$derived",
"@title files: 'config.json'",
"AliasRedirects",
"ArgumentParser",
"Assets",
"BaseEmbedderConfig",
"BaseLlmConfig",
"Builder",
"CliRunner",
"Client",
"ClusterModuleZookeeperConfig",
"Common Configuration Parameters",
"ComponentResources",
"Config",
"Config Objects",
"Config... |
query: @GetMapping("/envs/ method of InstanceController | passage: @GetMapping("/envs/{env}/instances/by-namespace-and-releases-not-in")
public List<InstanceDTO> getByReleasesNotIn(@PathVariable String env, @RequestParam String appId,
@RequestParam String clusterName, @RequestParam String namespaceName,
@RequestParam String releaseIds) {
Set<Long> releaseId... | java | getByReleasesNotIn | apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/InstanceController.java | apolloconfig/apollo | stack-cqs-index | [
"InstanceConfigControllerTest",
"InstanceController",
"InstanceControllerTest",
"InstanceService",
"getByReleasesNotIn",
"shouldParseReleaseIdsAndDeduplicateWhenQueryingInstances",
"shouldRejectEmptyReleaseIds",
"testGetByReleasesNotIn"
] | [
"BadRequestException",
"InstanceConfigDTO",
"add",
"asList",
"batchTransform",
"collect",
"create",
"emptyList",
"findByReleaseIds",
"findByReleaseKeys",
"findInstanceConfigsByNamespaceWithReleaseKeysNotIn",
"findInstancesByIds",
"get",
"getByReleasesNotIn",
"getDataChangeLastModifiedTim... |
query: fn test_merge() function test_merge | passage: fn test_merge() {
let a = serde_json::json!({"key1": "value1"});
let b = serde_json::json!({"key2": "value2"});
let result = merge(a, b);
let expected = serde_json::json!({"key1": "value1", "key2": "value2"});
assert_eq!(result, expected);
} | rust | test_merge | rig/rig-core/src/json_utils.rs | 0xPlaygrounds/rig | stack-cqs-index | [
"main",
"test_use_tree_merge_crate",
"test_use_tree_merge_module",
"test_use_tree_merge_one",
"tests"
] | [
"ASSERT_PTR_EQ",
"ASSERT_PTR_NE",
"CHECK_SUCCESS_AND_CLEANUP",
"CLEANUP",
"FLAG_TEST",
"Interval",
"PREPARE",
"TEST_DONE",
"Task",
"_gen",
"_process_msgs",
"add",
"add_thread",
"assert",
"assertEqual",
"assert_eq",
"assert_equal",
"assert_in_delta",
"assert_match",
"assert_send... |
query: @FindBy(className = "btn-create-queue") private WebElement buttonCreateQueue; property buttonCreateQueue | passage: @FindBy(className = "btn-create-queue")
private WebElement buttonCreateQueue; | java | buttonCreateQueue | dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/pages/security/QueuePage.java | apache/dolphinscheduler | stack-cqs-index | [
"QueuePage",
"create"
] | [] |
query: public ObjectVO getThrowExp() method of TimeFragmentVO | passage: public ObjectVO getThrowExp() {
return throwExp;
} | java | getThrowExp | core/src/main/java/com/taobao/arthas/core/command/model/TimeFragmentVO.java | alibaba/arthas | stack-cqs-index | [
"TimeTunnelCommand",
"TimeTunnelTable",
"TimeTunnelView",
"createTimeFragmentVO",
"draw",
"drawThrowException"
] | [] |
query: void v(final String tag, final String fmt, final Object... values); method of ShareTinkerLog | passage: void v(final String tag, final String fmt, final Object... values); | java | v | tinker-android/tinker-android-loader/src/main/java/com/tencent/tinker/loader/shareutil/ShareTinkerLog.java | Tencent/tinker | stack-cqs-index | [
"$",
"$e",
"$p",
"$s",
"$t",
"3.3、LCA与RMQ的关联性",
"A",
"ASMifierAnnotationV",
"ASMifierClassV",
"ASMifierCodeV",
"AbstractUVCCameraHandler",
"AcquireFile",
"Adapters",
"AdwareLiveData",
"Ae",
"Ag",
"Ai",
"Ajv",
"An",
"Aoe"
] | [
"$",
"$$addScopeClass",
"$$addScopeInfo",
"$9",
"$_Dt",
"$broadcast",
"$destroy",
"$emit",
"$eval",
"$i",
"$isEmpty",
"$new",
"$nextTick",
"$observe",
"$on",
"$render",
"$setViewValue",
"$t",
"$watch",
"$watchCollection"
] |
query: def legal_person_nit(self) -> str method of Provider | passage: def legal_person_nit(self) -> str:
"""
https://es.wikipedia.org/wiki/N%C3%BAmero_de_Identificaci%C3%B3n_Tributaria
:example: '967807269'
"""
return self.numerify(self.random_element(self.legal_person_nit_formats)) | python | legal_person_nit | faker/providers/ssn/es_CO/__init__.py | joke2k/faker | stack-cqs-index | [
"Provider",
"TestEsCO",
"legal_person_nit_with_check_digit",
"test_legal_person_nit"
] | [
"numerify",
"random_element"
] |
query: async def _save_side_effect(*_args, **_kwargs) method of TestSaveFilesAsArtifactsPlugin | passage: async def _save_side_effect(*_args, **_kwargs):
nonlocal save_calls
save_calls += 1
if save_calls == 2:
raise Exception("Storage error on second file")
return 0 | python | _save_side_effect | tests/unittests/plugins/test_save_files_as_artifacts.py | google/adk-python | stack-cqs-index | [] | [
"Exception"
] |
query: def self.assemble(minio_pool_id, index) method assemble | passage: def self.assemble(minio_pool_id, index)
unless (minio_pool = MinioPool[minio_pool_id])
fail "No existing pool"
end
DB.transaction do
ubid = MinioServer.generate_ubid
vm_st = Prog::Vm::Nexus.assemble_with_sshable(
Config.minio_service_project_id,
sshable_unix_user... | ruby | assemble | prog/minio/minio_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: clang-format on inline size_t get_simple_type_size(save_type_id_t id, bool fatal = true) function get_simple_type_size | passage: inline size_t get_simple_type_size(save_type_id_t id, bool fatal = true)
{
switch (id)
{
case ST_BOOL:
return sizeof(bool);
case ST_INT8:
case ST_UINT8:
return sizeof(uint8_t);
case ST_INT16:
case ST_UINT16:
return sizeof(uint16_t);
case ST_INT32:
case ST_UINT32:
return sizeof(uint32_t);
case... | cpp | get_simple_type_size | rerelease/g_save.cpp | id-Software/quake2-rerelease-dll | stack-cqs-index | [
"get_complex_type_size",
"read_save_type_json",
"write_save_type_json"
] | [
"Com_ErrorFmt"
] |
query: pub unsafe fn from_slice<T>(slice: &[T]) -> &[u8] where T: Copy + Sized, function from_slice | passage: pub unsafe fn from_slice<T>(slice: &[T]) -> &[u8]
where
T: Copy + Sized,
{
let len = slice.len() * std::mem::size_of::<T>();
let ptr = slice.as_ptr() as *const u8;
std::slice::from_raw_parts(ptr, len)
} | rust | from_slice | nannou_wgpu/src/lib.rs | nannou-org/nannou | stack-cqs-index | [
"AgentOrigin",
"EXECUTORS",
"EthereumGatewayAddress",
"Nested Rope - O(log n) access to deeply nested data",
"Nested Rope - complex line and chunk operations",
"Nested Rope - create line with chunks",
"Nested Rope - delete chunk from line",
"Nested Rope - delete line from document",
"Nested Rope - e... | [
"Ok",
"Some",
"array_buffer",
"as_mut_slice",
"as_ptr",
"buffer",
"copy_from_slice",
"from_buffer",
"from_bytes",
"from_fd",
"from_raw_parts",
"from_slice",
"from_sliceWithConfig",
"len",
"size_of_val",
"unwrap",
"with_slice",
"write"
] |
query: fn flush(&mut self) -> io::Result<()> method of TestWriter | passage: fn flush(&mut self) -> io::Result<()> {
Ok(())
} | rust | flush | src/process/file_source.rs | rust-lang/rustup | stack-cqs-index | [
"0.5 - 2024-11-28",
"3.18.2",
"3.3.2 `std` 模块",
"4.2.0 - 2018-01-30",
"AIRMapLocalTileProvider",
"AMQPConnection",
"API",
"AbstractBulkWriteProcessor",
"AbstractCrudController",
"AbstractFieldFunctionalTest",
"AbstractJarSign",
"AbstractUVCCameraHandler",
"AcceptThread",
"AccessInterceptor... | [
"A",
"AbstractCodec",
"AfterBatch",
"An",
"Animation",
"AnimationRange",
"AnimationRangeEnd",
"AnimationRangeStart",
"AnimationTimeline",
"ArrayList",
"AssertionError",
"AtDebug",
"AtomicFileOutputStream",
"AudioQueueFlush",
"AudioUnitReset",
"Background",
"BackgroundClip",
"BatchS... |
query: get color(): string function color | passage: get color(): string {
return lighten(0.6, theme.panel.bg)
} | typescript | color | packages/studio/src/css.tsx | theatre-js/theatre | stack-cqs-index | [
"0.19.9",
"3. What the command outputs",
"A",
"AIRMapPolylineRenderer",
"AbstractAlphaBlendingAwareDrawerTest",
"AbstractClassFactoryTest",
"AbstractDrawerTest",
"AbstractEffectsTest",
"AbstractFontTest",
"AbstractImageTest",
"AbstractImagineTest",
"AbstractIsImageEqualTest",
"AbstractLayers... | [
"CGPathAddLineToPoint",
"CGPathCreateMutable",
"CGPathMoveToPoint",
"CMYKColor",
"Color",
"Color Module",
"ColorForWidget",
"ColorProvider",
"Colors",
"DoraemonNavBarItemModel",
"Faker::Color",
"Gi",
"GrayColor",
"HWC3",
"InvalidArgumentException",
"Jt",
"Ok",
"Qt",
"RGBColor",
... |
query: function getFrontendTutorials(steps: function getFrontendTutorials | passage: function getFrontendTutorials(steps: { [key: string]: Step[] }) {
return data.filter(t => t.type === 'frontend' && !t.comingSoon).map(stack => {
const tutorialSteps = steps[stack.key]
return {
...tutorialSteps[0],
title: stack.title,
}
})
} | typescript | getFrontendTutorials | src/utils/tutorials.ts | howtographql/howtographql | stack-cqs-index | [
"frontendTutorials"
] | [
"filter",
"map"
] |
query: fn body_mut(&mut self) -> Pin<&mut dyn futures_util::io::AsyncRead> method of Response | passage: fn body_mut(&mut self) -> Pin<&mut dyn futures_util::io::AsyncRead> {
if self.body.is_none() {
let body = mem::replace(
self.inner.body_mut(),
async_impl::body::boxed(http_body_util::Empty::new()),
);
self.body = Some(Box::pin(
... | rust | body_mut | src/blocking/response.rs | seanmonstar/reqwest | stack-cqs-index | [
"add_body",
"add_form",
"add_json",
"body",
"body_mut",
"buffer_request_body",
"chunk",
"clone_request",
"doit",
"echo",
"form",
"get_next_request",
"handle",
"handle_edit_file",
"handle_hash_file",
"handle_internal",
"handle_lock",
"handle_send_file",
"handle_tokengen",
"handl... | [
"Some",
"as_mut",
"body_mut",
"boxed",
"expect",
"into_async_read",
"into_data_stream",
"is_none",
"map_err",
"pin",
"replace",
"wrap"
] |
query: bool Measure::ParseSubstitute(std::wstring buffer) method of Measure | passage: bool Measure::ParseSubstitute(std::wstring buffer)
{
if (buffer.empty()) return true;
do
{
std::wstring word1 = ExtractWord(buffer);
std::wstring sep = ExtractWord(buffer);
if (sep.size() != 1 || sep[0] != L':') return false;
std::wstring word2 = ExtractWord(buffer);
if (wcscmp(word1.c_str(), wo... | cpp | ParseSubstitute | Library/Measure.cpp | rainmeter/rainmeter | stack-cqs-index | [
"ReadOptions"
] | [
"ExtractWord",
"c_str",
"empty",
"push_back",
"size",
"wcscmp"
] |
query: function isTranslationCompleted(array $translationStatus): bool function isTranslationCompleted | passage: function isTranslationCompleted(array $translationStatus): bool
{
return $translationStatus['total'] === $translationStatus['translated'] && 0 === count($translationStatus['mismatches']);
} | php | isTranslationCompleted | Resources/bin/translation-status.php | symfony/translation | stack-cqs-index | [
"calculateTranslationStatus"
] | [
"count"
] |
query: public Criteria andCityLike(String value) method of GeneratedCriteria | passage: public Criteria andCityLike(String value) {
addCriterion("city like", value, "city");
return (Criteria) this;
} | java | andCityLike | mall-mbg/src/main/java/com/macro/mall/model/UmsMemberExample.java | macrozheng/mall | stack-cqs-index | [] | [
"addCriterion"
] |
query: def test_word method of TestLoremKR | passage: def test_word
assert_match(KOREAN_WORD_MATCHER, @tester.word)
end | ruby | test_word | test/test_lorem_kr.rb | ffaker/ffaker | stack-cqs-index | [] | [
"assert_greater_than_or_equal_to",
"assert_includes",
"assert_kind_of",
"assert_match",
"deterministically_verify",
"isinstance",
"length",
"range",
"translate",
"word"
] |
query: function C(e) function C | passage: function C(e){var t=I.data(e.get(0),"tokeninput"),n=r.onDelete,o=e.prevAll().length;a<o&&o--,e.remove(),p=null,u.focus(),i=i.slice(0,o).concat(i.slice(o+1)),o<a&&a--,w(i,d),--s,null!==r.tokenLimit&&u.show().val("").focus(),I.isFunction(n)&&n.call(d,t)} | javascript | C | admin/js/tokeninput.js | typecho/typecho | stack-cqs-index | [
"$",
"$t",
"$y",
"A",
"Ad",
"AdaptSubclassTest",
"Ae",
"Af",
"App",
"Application Security Learning Resources",
"Asc",
"AuthUser",
"Awesome Awesomeness",
"Ay",
"B",
"BO",
"Be",
"Bm",
"Bo",
"Br"
] | [
"$",
"$$setStateInfo",
"$9",
"$_Cn",
"$_Dt",
"$apply",
"$eval",
"$o",
"$observe",
"$on",
"$set",
"$watch",
"%E5%85%B3%E4%BA%8E%E4%BD%9C%E8%80%85",
"(PDF)",
"-t Thread",
"256-Color VGA Programming in C",
"@9Ajiang",
"@Tianchi Gao",
"@Veeja Liu",
"@VerSion1312"
] |
query: @Override public void onActivityPostStarted(@NonNull Activity activity) method of UtilsActivityLifecycleImpl | passage: @Override
public void onActivityPostStarted(@NonNull Activity activity) {/**/} | java | onActivityPostStarted | lib/utilcode/src/main/java/com/blankj/utilcode/util/UtilsActivityLifecycleImpl.java | Blankj/AndroidUtilCode | stack-cqs-index | [] | [] |
query: """Return the response body as a string""" async def text(self) -> str method of FetchResponse | passage: async def text(self) -> str:
"""Return the response body as a string"""
self._raise_if_failed()
return await self.js_response.text() | python | text | src/py/pyodide/http/_pyfetch.py | pyodide/pyodide | stack-cqs-index | [
"$",
"$d",
"$i",
"$o",
"$translateSanitizationProvider",
"$u",
"A",
"A simple function-based handler",
"API",
"API Reference",
"APIResponse",
"APIResponseAssertions",
"API_Common",
"AST",
"AXMLParser",
"AboutCommand",
"AboutFragment",
"Abs",
"AbstractDrawerTest",
"AbstractField... | [
"$derived",
"$eval",
"$state",
"ActionText",
"AttributeError",
"B",
"Borrowed",
"Bytes",
"DecodeRune",
"DoraemonLocalizedString",
"E",
"Err",
"FontFactory",
"HTMLPurifier_Token_Text",
"HTTPResponse",
"HTTPUnsupportedMediaType",
"IntervalSet",
"InvalidArgumentException",
"Len",
... |
query: func RegisterSettingItemHook(key string, hook SettingItemHook) function RegisterSettingItemHook | passage: func RegisterSettingItemHook(key string, hook SettingItemHook) {
settingItemHooks[key] = hook
} | go | RegisterSettingItemHook | internal/op/hook.go | OpenListTeam/OpenList | stack-cqs-index | [
"init"
] | [] |
query: static void set_client_CA_list(ssl::context& ctx, const std::string& cert_path) function set_client_CA_list | passage: static void set_client_CA_list(ssl::context& ctx, const std::string& cert_path)
{
STACK_OF(X509_NAME) *cert_names;
cert_names = ::SSL_load_client_CA_file(cert_path.c_str());
if (cert_names == NULL) {
throw std::runtime_error("No CA names found in " + cert_path);
}
::SSL_CTX_set_clie... | cpp | set_client_CA_list | modules/httpserver-api/ssl_server.cc | cloudius-systems/osv | stack-cqs-index | [
"http",
"make_ssl_context",
"server"
] | [
"SSL_CTX_set_client_CA_list",
"SSL_load_client_CA_file",
"STACK_OF",
"c_str",
"native_handle",
"runtime_error"
] |
query: func TestStorageAdapter_CopyObject_CreateDestinationError(t *testing.T) function TestStorageAdapter_CopyObject_CreateDestinationError | passage: t, err ) adapter : = & storageadapter { cfg : & config { sharename : " testshare " }, shareclient : shareclient, } err = adapter. copyobject ( context. background ( ), " source. txt ", " dest. txt " ) require. error ( t, err ) assert. contains ( t, err. error ( ), " failed to copy object " ) } | go | TestStorageAdapter_CopyObject_CreateDestinationError | pkg/gofr/datasource/file/azure/storage_adapter_test.go | gofr-dev/gofr | stack-cqs-index | [] | [
"Background",
"Close",
"Contains",
"CopyObject",
"Error",
"HandlerFunc",
"Header",
"NoError",
"NotFound",
"Set",
"Write",
"WriteHeader",
"createTestShareClient",
"setupAzureTestServer"
] |
query: Process authenticated additional data (AAD) for GCM/CCM modes. pub fn aad_blocking<'c, C>(&mut self, ctx: &mut Context<'c, C>, aad: &[u8], last: bool) -> Result<(), Error> where C: Cipher<'c> + CipherAuthenticated<16>, method of Saes | passage: pub fn aad _ blocking < ' c, c > ( & mut self, ctx : & mut context < ' c, c >, aad : & [ u8 ], last : bool ) - > result < ( ), error > where c : cipher < ' c > + cipherauthenticated < 16 >, { / / reuse aes implementation logic let p = t : : regs ( ) ; if ctx. header _ processed & & last { return ok ( ( ) ) ; }... | rust | aad_blocking | embassy-stm32/src/saes/mod.rs | embassy-rs/embassy | stack-cqs-index | [
"main"
] | [
"Ok",
"assert_eq",
"ccf",
"copy_from_slice",
"cr",
"fflush",
"fill",
"from_bits",
"get_header_block",
"icr",
"ifem",
"isr",
"len",
"load_context",
"min",
"modify",
"panic",
"read",
"regs",
"set_crypen"
] |
query: def _is_package_available(package_name function _is_package_available | passage: def _is_package_available(package_name: str) -> bool:
return importlib.util.find_spec(package_name) is not None | python | _is_package_available | src/smolagents/utils.py | huggingface/smolagents | stack-cqs-index | [
"AgentAudio",
"GradioUI",
"MLXModel",
"PipelineTool",
"VLLMModel",
"__init__",
"_is_package_version_at_least",
"_is_package_version_below",
"_patch_vllm_logging",
"get_repetition_penalty_reward",
"install_dependencies",
"is_apollo_available",
"is_deepspeed_available",
"is_fastapi_available... | [
"find_spec",
"getattr",
"import_module",
"replace",
"version"
] |
query: uint8 SPIClass::nssPin(void) method of SPIClass | passage: uint8 SPIClass::nssPin(void) {
return (_currentSetting->pins)->nss;
} | cpp | nssPin | STM32F4/libraries/SPI/src/SPI.cpp | rogerclarkmelbourne/Arduino_STM32 | stack-cqs-index | [
"init"
] | [
"dev_to_spi_pins"
] |
query: disconnectDevPlugin() method of PluginManagerStore | passage: disconnectDevPlugin() {
if (this.ws) {
this.ws.close();
this.ws = null;
}
this.wsConnectionStatus = 'disconnected';
this.devWebscoketUrl.save('');
this.removeCssFiles("dev");
} | typescript | disconnectDevPlugin | app/src/store/plugin/pluginManagerStore.ts | blinkospace/blinko | stack-cqs-index | [
"PluginManagerStore",
"connectDevPlugin",
"handleDisconnect"
] | [
"close",
"removeCssFiles",
"save"
] |
query: function Sn(e,t) function Sn | passage: function Sn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[o];i||(i=f),n[s]=d,r[s]=f;let h=o,b=0;for(;h!==s;)b+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i<t)return;const g=l&&f-l;return g?Math.round(b*1e3/g):void 0}} | javascript | Sn | public/build/assets/app-CKl8NZMC.js | unopim/unopim | stack-cqs-index | [
"Ai",
"An",
"Bn",
"Ci",
"Cn",
"Co",
"Dn",
"Do",
"Ey",
"F",
"Fa",
"Fn",
"Fp",
"Ft",
"Gw",
"Hl",
"Hn",
"I",
"In",
"Jr"
] | [
"$",
"$destroy",
"$n",
"$on",
"A",
"An",
"Array",
"Ba",
"Bi",
"Bo",
"En",
"F",
"Ft",
"G",
"H",
"I",
"In",
"Ke",
"Ln",
"Lt"
] |
query: func (db *database) init() error method of database | passage: func ( db * database ) init ( ) error { if _, err : = db. conn. exec ( " pragma foreign _ keys = on " ) ; err! = nil { return fmt. errorf ( " enable foreign keys : % w ", err ) } schema : = fmt. sprintf ( ` create table if not exists settings ( id integer primary key check ( id = 1 ), device _ id text not null... | go | init | app/store/database.go | ollama/ollama | 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: encoder.jpeg(pixbuf, width, height, quality, callback) NAN_METHOD(encodeToJpegBuffer) constructor NAN_METHOD | passage: NAN_METHOD(encodeToJpegBuffer) {
Nan::HandleScope();
Local<Object> buff = info[0].As<Object>();
size_t width = info[1].As<Integer>()->Value();
size_t height = info[2].As<Integer>()->Value();
int quality = info[3].As<Integer>()->Value();
Nan::Callback * callback = new Nan::Callback(info... | cpp | NAN_METHOD | src/encoder/init.cpp | EyalAr/lwip | stack-cqs-index | [] | [
"AsyncQueueWorker",
"BlurWorker",
"BooleanValue",
"CopyBuffer",
"CropWorker",
"Data",
"DecodeBufferWorker",
"EncodeToGifBufferWorker",
"EncodeToJpegBufferWorker",
"EncodeToPngBufferWorker",
"GetReturnValue",
"HSLAWorker",
"HandleScope",
"Holder",
"IsNull",
"IsUndefined",
"LwipImage",... |
query: pub async fn text(&mut self) -> String method of File | passage: pub async fn text(&mut self) -> String {
self.blob.text().await
} | rust | text | modules/llrt_buffer/src/file.rs | awslabs/llrt | stack-cqs-index | [
"$",
"$d",
"$i",
"$o",
"$translateSanitizationProvider",
"$u",
"A",
"A simple function-based handler",
"API",
"API Reference",
"APIResponse",
"APIResponseAssertions",
"API_Common",
"AST",
"AXMLParser",
"AboutCommand",
"AboutFragment",
"Abs",
"AbstractDrawerTest",
"AbstractField... | [
"$derived",
"$eval",
"$state",
"ActionText",
"AttributeError",
"B",
"Borrowed",
"Bytes",
"DecodeRune",
"DoraemonLocalizedString",
"E",
"Err",
"FontFactory",
"HTMLPurifier_Token_Text",
"HTTPResponse",
"HTTPUnsupportedMediaType",
"IntervalSet",
"InvalidArgumentException",
"Len",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.