text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
#!/usr/bin/env node
/**
* extract-structure.mjs
*
* Deterministic structural extraction script for the file-analyzer agent.
* Uses PluginRegistry (TreeSitterPlugin + non-code parsers) from @understand-anything/core
* to replace the LLM-generated throwaway regex scripts in Phase 1.
*
* Usage:
* node extract-st... | fim | Egonex-AI/Understand-Anything | javascript |
<|fim_prefix|>#!/usr/bin/env python3
"""
merge-batch-graphs.py β Merge and normalize batch analysis results.
Combines batch-*.json files from the intermediate directory into a single
assembled graph with normalized IDs, complexity values, and cleaned edges.
Called at the end of Phase 2 of /understand. Phase 3 (ASSEMB... | fim | Egonex-AI/Understand-Anything | python |
<|fim_prefix|>#!/usr/bin/env python3
"""
merge-subdomain-graphs.py β Merge subdomain knowledge-graph files into one.
Auto-discovers *knowledge-graph*.json files in .understand-anything/
(excluding knowledge-graph.json itself), loads the existing
knowledge-graph.json as a base if present, and merges everything
into a s... | fim | Egonex-AI/Understand-Anything | python |
<|fim_prefix|>#!/usr/bin/env node
/**
* scan-project.mjs
*
* Deterministic file enumeration + language/category detection for the
* project-scanner agent. Replaces the LLM-written prose scanner that used to
* (a) author a per-run Node.js script (`tmp/ua-project-scan.js`), (b) walk the
* file tree, and (c) classif... | fim | Egonex-AI/Understand-Anything | javascript |
<|fim_prefix|>#!/usr/bin/env python3
"""
extract-domain-context.py β Lightweight codebase scanner for domain knowledge extraction.
Scans a project directory and produces a structured JSON context file that the
domain-analyzer agent uses to identify business domains, flows, and steps.
Usage:
python extract-domain-... | fim | Egonex-AI/Understand-Anything | python |
<|fim_suffix|>ame
# Try to find a better name from index.md H1
index_path = root / "wiki" / "index.md"
if not index_path.is_file():
index_path = root / "index.md"
if index_path.is_file():
text = index_path.read_text(encoding="utf-8", errors="replace")
h1_match = re.search(r"^#\s+... | fim | Egonex-AI/Understand-Anything | python |
<|fim_prefix|>#!/usr/bin/env python3
"""
Deterministic parser for Karpathy-pattern LLM wikis.
Detects the three-layer pattern (raw sources + wiki markdown + schema),
extracts structure from markdown files, resolves wikilinks, and derives
categories from index.md section headings.
Usage:
python parse-knowledge-bas... | fim | Egonex-AI/Understand-Anything | python |
<|fim_prefix|>import { describe, it, expect } from "vitest";
import { buildChatContext, formatContextForPrompt } from "../context-builder.js";
import type { KnowledgeGraph, GraphNode, GraphEdge, Layer } from "@understand-anything/core";
const makeNode = (
overrides: Partial<GraphNode> & { id: string; name: string },... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_prefix|>import { describe, it, expect } from "vitest";
import { buildDiffContext, formatDiffAnalysis } from "../diff-analyzer.js";
import type { KnowledgeGraph } <|fim_suffix|> const ctx = buildDiffContext(sampleGraph, ["src/service.ts"]);
expect(ctx.changedNodes.map((n) => n.id)).toContain("file:src/servic... | fim | Egonex-AI/Understand-Anything | typescript |
import { describe, it, expect } from "vitest";
import { buildExplainContext, formatExplainPrompt } from "../explain-builder.js";
import type { KnowledgeGraph } from "@understand-anything/core";
const sampleGraph: KnowledgeGraph = {
version: "1.0.0",
project: {
name: "test-project",
languages: ["typescript"... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_prefix|>import { describe, it, expect } from "vitest";
import { buildResult } from "../../skills/understand/extract-structure.mjs";
const file = (overrides = {}) => ({
path: "src/foo.py",
language: "python",
fileCategory: "code",
...overrides,
});
const analysis = (overrides = {}) => ({
functions: [],... | fim | Egonex-AI/Understand-Anything | javascript |
import { describe, it, expect, beforeEach, afterEach } from "vitest";
import { spawnSync } from "node:child_process";
import { mkdirSync, mkdtempSync, rmSync, writeFileSync, readFileSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { fileURLToPath } from "node:url";
impor... | fim | Egonex-AI/Understand-Anything | javascript |
<|fim_prefix|>import { describe, it, expect } from "vitest";
import { buildOnboardingGuide } from "../onboard-builder.js";
import type { KnowledgeGraph } from "@understand-anything/core";
const sampleGraph: KnowledgeGraph = {
version: "1.0.0",
project: {
name: "test-project",
languages: ["typescript", "pyt... | fim | Egonex-AI/Understand-Anything | typescript |
// Validates the worktree-redirect bash snippet embedded in
// `skills/understand/SKILL.md` Phase 0 step 1 and
// `skills/understand-domain/SKILL.md` Phase 0.
//
// If you edit the snippet in either SKILL.md, mirror the change to RESOLVE_SNIPPET
// below β there is no shared script to source (per-skill convention in th... | fim | Egonex-AI/Understand-Anything | javascript |
<|fim_suffix|>(edge.target)) {
expandedIds.add(edge.source);
}
}
// Collect the actual node objects
const nodeMap = new Map(graph.nodes.map((n) => [n.id, n]));
const relevantNodes: GraphNode[] = [];
for (const id of expandedIds) {
const node = nodeMap.get(id);
if (node) {
relevantNode... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_suffix|>ush("");
}
lines.push("## Risk Assessment");
lines.push("");
const complexChanges = ctx.changedNodes.filter(
(n) => n.complexity === "complex",
);
const crossLayerCount = new Set(ctx.affectedLayers.map((l) => l.id)).size;
if (complexChanges.length > 0) {
lines.push(
`- **High... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_suffix|>rns, idioms, or design decisions worth noting");
lines.push("5. Potential gotchas or areas of complexity");
lines.push("");
return lines.join("\n");
}
<|fim_prefix|>import type {
KnowledgeGraph,
GraphNode,
GraphEdge,
Layer,
} from "@understand-anything/core";
export interface ExplainContex... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_prefix|>export {
buildChatContext,
formatContextForPrompt,
type ChatContext,
} from "./context-builder.js";
export { buildChatPrompt } from "./understand-chat.js";
export {
buildDiffContext,
formatDiffAnalysis<|fim_suffix|>onboard-builder.js";
<|fim_middle|>,
type DiffContext,
} from "./diff-analyzer.... | fim | Egonex-AI/Understand-Anything | typescript |
import type { KnowledgeGraph } from "@understand-anything/core";
/**
* Generate a structured onboarding guide from the knowledge graph.
* Output is standalone markdown suitable for a README, wiki, or docs.
*/
export function buildOnboardingGuide(graph: KnowledgeGraph): string {
const { project, nodes, edges, laye... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_prefix|>import type { KnowledgeGraph } from "@understand-anything/core";
import { buildChatContext, formatContextForPrompt } from "./context-builder.js";
/**
* Build a<|fim_suffix|>are a knowledgeable assistant that answers questions about a software codebase.",
"Use the following knowledge graph context to... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_suffix|>with `pnpm test` instead.
export default defineConfig({
test: {
include: [],
},
});
<|fim_prefix|>import { defineConfig<|fim_middle|> } from 'vitest/config';
// The plugin package no longer ships any test files β they were relocated
// to the repo-root `tests/` tree so they no longer ride along w... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_suffix|>ackages/dashboard/**/*.test.{js,mjs,ts,tsx}',
],
exclude: [
'**/node_modules/**',
'**/dist/**',
'understand-anything-plugin/packages/core/**',
],
},
});
<|fim_prefix|>import { defineConfig } from 'vitest/config';
// Single-config aggregation for the whole monorepo. Picks u... | fim | Egonex-AI/Understand-Anything | typescript |
<|fim_suffix|> = LatestReleaseNotes.SemVersion;
Version = propsVersion.ToString();
if (GitHubActions != null)
{
Log.Debug("Add Version Postfix if under CI - GithubAction(s)...");
var buildNumber = GitHubActions.RunNumber;
if (ScheduledTargets.Contains(Defau... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>sPath)
{
var doc = XDocument.Load(propsPath);
var versionElement = doc
.Descendants()
.FirstOrDefault(e => e.Name.LocalName == "Version");
if (Version.TryParse(versionElement?.Value.Trim(), out var version))
{
version = new Version(... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using System;
using System.ComponentModel;
using System.Linq;
using Nuke.Common.Tooling;
[TypeConverter(typeof(TypeConverter<Configuration>))]
public class Configur<|fim_suffix|>perator string(Configuration configuration)
{
return configuration.Value;
}
}
<|fim_middle|>ation : Enumeration... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
// ReSharper disable once CheckNamespace
/// <summary>
/// Contains extensi<|fim_suffix... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Represent releas... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpression... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>lic static bool operator <(SemVersion operand1, SemVersion operand2)
=> operand1 is { }
? operand1.CompareTo(operand2) == -1
: operand2 is { };
/// <summary>
/// The greater than or equal to-operator for the SemVersion class.
/// </summary>
/// <param name=... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>tion<T> receiver)
{
var actionT = this.GetEventActionT<T>();
actionT += receiver;
this.SetEventActionT(actionT);
}
public bool Unregister(Action receiver)
{
this.eventAction -= receiver;
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>.GetLoginItemSettingsAsync(null, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// If you provided path and args options to <see cref="SetLoginItemSettings"/> then you need to pass the same
/// arguments here for <see cref="LoginItemSettings.OpenAtLogin"/> to b... | fim | ElectronNET/Electron.NET | csharp |
using ElectronNET.API.Entities;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
// ReSharper disable InconsistentNaming
namespace ElectronNET.API
{
/// <summary>
/// Enable apps to automatically update themselves. Based on electron-updater.
/// </summary>
public sealed cl... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using ElectronNET.API.Entities;
using System.Threading.Tasks;
namespace ElectronNET.API
{
/// <summary>
/// A BrowserView can be used to embed additional web content into a BrowserWindow.
/// It is like a child window, except that it is positioned relative to its owning window.
/// It is ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>ble.
/// </summary>
/// <returns></returns>
[SupportedOSPlatform("Linux")]
[SupportedOSPlatform("Windows")]
public Task<bool> IsMenuBarVisibleAsync() => this.InvokeAsync<bool>();
/// <summary>
/// Sets whether the window should be visible on all workspaces.
///
/// No... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>This method uses synchronous IPC
/// when called from the renderer process. The cached value is reread from the
/// find pasteboard whenever the application is activated.
/// </summary>
/// <returns></returns>
[SupportedOSPlatform("macOS")]
public Task<strin... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώusing System.Threading;
using System.Threading.Tasks;
namespace ElectronNET.API
{
/// <summary>
/// Manipulate the command line arguments for your app that Chromium reads.
/// </summary>
public sealed class CommandLine
{
internal CommandLine()
{
}
int... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>ies-changed" + Id);
}
}
}
private event Action<Cookie, CookieChangedCause, bool> _changed;
/// <summary>
/// Sends a request to get all cookies matching filter, and resolves a callack with the response.
/// </summary>
/// <par... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using ElectronNET.API.Entities;
using System;
using System.Runtime.Versioning;
using System.Text.Json;
using System.Threading.Tasks;
namespace ElectronNET.API
{
/// <summary>
/// Display native system dialogs for opening and saving files, alerting, etc.
/// </summary>
public sealed class ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using System.Collections.Generic;
using System.Runtime.Versioning;
using System.Threading;
using System.Threading.Tasks;
using ElectronNET.API.Entities;
using ElectronNET.API.Extensions;
namespace ElectronNET.API
{
/// <summary>
/// Control your app in the macOS dock.
/// </summary>
[Supp... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> }
}
/// <summary>
/// Allows you to execute native JavaScript/TypeScript code from the host process.
///
/// It is only possible if the Electron.NET CLI has previously added an
/// ElectronHostHook directory:
/// <c>electronize add Host... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// About panel options.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class AboutPanelOptions
{
/// <summary>
/// The app's name.
/// </su... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>Factor { get; set; } = 1.0f;
/// <summary>
/// Gets or sets the buffer containing the raw image data.
/// </summary>
public byte[] Buffer { get; set; }
/// <summary>
/// Gets or sets the data URL containing a base 64 encoded PNG or JPEG image.
/// ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
[SupportedOSPlatform("windows")]
public class AppDetailsOptions
{
/// <summary>
/// Window's App Us... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>/
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class AutoResizeOptions
{
/// <summary>
/// If `true`, the view's width will grow and shrink together with the window.
/// `false` by default.
/// </summary>
[DefaultVa... | fim | ElectronNET/Electron.NET | csharp |
ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class BitmapOptions
{
/// <summary>
/// The image scale factor. Defaults to 1.0.
/// </summary>
public float ScaleFactor { get; ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> /// </summary>
public string Type { get; } = "blob";
/// <summary>
/// The UUID of the Blob being uploaded
/// </summary>
public string BlobUUID { get; set; }
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <<|fim_middle|>summary>
///
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>er package).
/// This information can be obtained from the file itself, but it requires additional HTTP request,
/// so, to reduce request count, block map size is specified in the update metadata too.
/// </summary>
public double BlockMapSize { get; set; }
/// <su... | fim | ElectronNET/Electron.NET | csharp |
ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class BrowserViewConstructorOptions
{
/// <summary>
/// Gets or sets the web preferences for the view (see WebPreferences).
/// </summar... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using ElectronNET.Converter;
using System.ComponentModel;
using System.Text.Json.Serialization;
using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
public class BrowserWindowOptions
{
/// <summary>
/// Window's width ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>ays return 0 on Windows.
/// </summary>
public double IdleWakeupsPerSecond { get; set; }
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class CPUUsage
{
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>conds
/// </summary>
public int ValidStart { get; set; }
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class Certificate
{
/// <summary>
//... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>/// <summary>
/// Common Name
/// </summary>
public string CommonName { get; set; }
/// <summary>
/// Country or region
/// </summary>
public string Country { get; set; }
/// <summary>
/// Locality
/// </summary>
pub... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>
/// The message to display to the user.
/// </summary>
public string Message { get; set; }
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class Certifi... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>rome extension
/// </summary>
public string Name { get; set; }
/// <summary>
/// Version of the Chrome extension
/// </summary>
public string Version { get; set; }
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
/// Provide ... | fim | ElectronNET/Electron.NET | csharp |
ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class ClearStorageDataOptions
{
/// <summary>
/// Should follow window.location.originβs representation scheme://host:port.
/// </summar... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>/// </summary>
public bool? Session { get; set; }
/// <summary>
/// Gets or sets the expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies.
/// </summary>
public double? ExpirationDate { get; set; }
/... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>ookie was automatically removed as it expired.
/// </summary>
expired,
/// <summary>
/// The cookie was automatically evicted during garbage collection.
/// </summary>
evicted,
/// <summary>
/// The cookie was overwritten with an already-ex... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>ed", "no_restriction", "lax" or "strict". Default is "lax".
/// </summary>
public string SameSite { get; set; }
}
}<|fim_prefix|>ο»Ώusing System.ComponentModel;
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron A... | fim | ElectronNET/Electron.NET | csharp |
ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class CookieFilter
{
/// <summary>
/// (optional) - Retrieves cookies which are associated with url. Empty implies retrieving cookies of all URL... | fim | ElectronNET/Electron.NET | csharp |
ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class CreateFromBitmapOptions
{
/// <summary>
/// Gets or sets the width in pixels. Required for nativeImage.createFromBitmap(buffer, options).
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>ght. Required for bitmap buffers passed to nativeImage.createFromBuffer.
/// </summary>
public int? Height { get; set; }
/// <summary>
/// The image scale factor. Optional, defaults to 1.0.
/// </summary>
public float ScaleFactor { get; set; } = 1.0f;
}... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> /// </summary>
public int Offset { get; set; }
/// <summary>
/// Total length of the download.
/// </summary>
public int Length { get; set; }
/// <summary>
/// Last-Modified header value.
/// </summary>
public string LastModifi... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
public class Data
{
/// <summary>
/// Gets or sets the text.
/// </summary>
/// <value>
/// The text.
/// </value>
public string Text { get; set; }
/... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>n Modern Math.
/// </summary>
public string Math { get; set; }
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.<|fim_middle|>API.Entities
{
/// <summary>
///
/// </summary>
public class DefaultFontFamily
{
/// <summary>
/// Defaults to Times New Roman.
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> right,
/// <summary>
/// The bottom
/// </summary>
bottom,
/// <summary>
/// The undocked
/// </summary>
undocked,
/// <summary>
/// The detach
/// </summary>
detach,
/// <summary>
/// ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>rome.
/// </summary>
public bool Monochrome { get; set; }
/// <summary>
/// Gets or sets the size.
/// </summary>
/// <value>
/// The size.
/// </value>
public Size Size { get; set; }
/// <summary>
/// Gets or sets t... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> /// <value>
/// The title.
/// </value>
public string Title { get; set; }
/// <summary>
/// Gets or sets the content.
/// </summary>
/// <value>
/// The content.
/// </value>
public string Content { get; set; }
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>/// The dock icon will bounce for one second.
/// </summary>
[Description("informational")]
Informational
}
}<|fim_prefix|>ο»Ώusing System.ComponentModel;
using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Defines the DockBounceType e... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> /// <summary>
/// Download rate in Bps. Defaults to 0 which will disable download throttling.
/// Electron documents this as a Number (Double).
/// </summary>
public double DownloadThroughput { get; set; }
/// <summary>
/// Upload rate in Bps. Defaults... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
/// Docs: https://electronjs.org/docs/api/structures/extension
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class Extension
{
/// <summary>
///
/// </summary>
publ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> /// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>
/// The name.
/// </value>
public string Name { get; set; }
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>U<|fi... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>pported on macOS).
/// </summary>
public string Size { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="FileIconOptions"/> class.
/// </summary>
/// <param name="fileIconSize">Size of the file icon.</param>
public F... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>app.getFileIcon size mapping).
/// </summary>
[SupportedOSPlatform("Linux")]
[SupportedOSPlatform("Windows")]
large
}
}<|fim_prefix|>ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>ve app even if another app is currently active.
/// You should seek to use the steal option as sparingly as possible.
/// </summary>
[SupportedOSPlatform("macOS")]
public bool Steal { get; set; }
}
}<|fim_prefix|>ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using System.Text.Json.Serialization;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Graphics Feature Status from chrome://gpu/ as returned by app.getGPUFeatureStatus().
/// Each field reflects the status of a GPU capability reported by Chromium.
///
/// Possible values for a... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>}
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
/// Represents a postData item for loadURL/webContents.loadURL options.
/// Valid types per Electron docs: 'rawData' and 'file'.
//<|fim_middle|>/ </summary>
/// <remarks>Up-to-date with Electron API 39.2</remar... | fim | ElectronNET/Electron.NET | csharp |
ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Options for app.importCertificate(options) on Linux.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
[SupportedOSPlatform("linux")]
public class ImportCertificateOptions
{
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> ratio (Integer, optional).
/// </summary>
public int? AccelerationRatioY { get; set; }
/// <summary>
/// For MouseWheelInputEvent: True if wheel deltas are precise (optional).
/// </summary>
public bool? HasPreciseScrollingDeltas { get; set; }
///... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities;
/// <summary>
///
/// </summary>
public enum InputEventType
{
/// <summary>
///
/// </summary>
undefined,
/// <summary>
///
/// </summary>
mouseDown,
/// <summary>
///
/// </summary>
mouseUp,
/// <summary>
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using System.Text.Json.Serialization;
using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Jump List category definition used with app.setJumpList(categories).
/// Matches Electron's JumpListCategory structure.
/// </summary>
/// <remarks>Up-to-date ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary<|fim_suffix|>/// </summary>
custom
}
}<|fim_middle|>>
/// Jump list category kinds for app.setJumpList (Windows).
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
[Su... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using System.Text.Json.Serialization;
using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Jump List item used in app.setJumpList(categories) on Windows.
/// Matc<|fim_suffix|>ram icon.
/// </summary>
public string IconPath { get; set; }
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>
}<|fim_prefix|>ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Jump list item kinds for app.setJumpList (Windows).
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
[SupportedOSPlatform("Windows")]
public enum JumpLis... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>ser has explicitly removed from custom categories
/// in the Jump List. These items must not be re-added to the Jump List in the next call to app.setJumpList(categories);
/// Windows will not display any custom category that contains any of the removed items.
/// </summary>
... | fim | ElectronNET/Electron.NET | csharp |
ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
/// Options for BrowserWindow.loadURL(url, options) / webContents.loadURL(url, options).
/// Matches Electron's loadURL options.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class LoadURLOptions
{
/... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> settings.
/// </summary>
public bool Enabled { get; set; }
}
}<|fim_prefix|>using System.Runtime.Versioning;
namespace ElectronNET.AP<|fim_middle|>I.Entities
{
/// <summary>
/// Windows launch entry as returned by app.getLoginItemSettings().launchItems.
/// </summary>
... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>uires-approval</c>, or <c>not-found</c>.
/// </summary>
[SupportedOSPlatform("macos")]
public string Status { get; set; }
/// <summary>
/// Windows: true if app is set to open at login and its run key is not deactivated.
/// Differs from <c>OpenAtLogin</c> ... | fim | ElectronNET/Electron.NET | csharp |
ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
public class LoginItemSettingsOptions
{
/// <summary>
/// The executable path to compare against. Defaults to process.execPath.
/// </summary>
[SupportedOSPlatfor... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>/// <summary>
/// Value name to write into registry. Defaults to the app's AppUserModelId().
/// </summary>
[SupportedOSPlatform("windows")]
public string Name { get; set; }
}
}<|fim_prefix|>ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
///... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities;
/// <summary>
/// Margins object used by webContents.print options and webContents.printToPDF.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class Margins
{
/// <summary>
/// Gets or sets the margin type. Can be `default`, `non... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώusing System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Process memory info as returned by process.getProcessMemoryInfo().
/// Values are reported in Kilobytes.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class Me... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using System;
using System.Text.Json.Serialization;
using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
///
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class MenuItem
{
/// <summary>
/// Will be ca... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>// <summary>
/// Toggle smart dashes (macOS).
/// </summary>
toggleSmartDashes,
/// <summary>
/// Toggle text replacement (macOS).
/// </summary>
toggleTextReplacement,
// Backwards-compatibility aliases (old identifiers) to avoid breaking ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|> </summary>
submenu,
/// <summary>
/// Checkbox item.
/// </summary>
checkbox,
/// <summary>
/// Radio item.
/// </summary>
radio,
/// <summary>
/// Header item (macOS 14+).
/// </summary>
[Supported... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>untouched on Windows. For example, a button label of "View" will be converted to "Vie_w" on Linux and "View" on macOS and can be selected via Alt-W on Windows and
/// Linux.
/// </summary>
public bool NormalizeAccessKeys { get; set; }
/// <summary>
/// Initializes ... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>t Response { get; set; }
/// <summary>
/// The checked state of the checkbox if CheckboxLabel was set; otherwise false.
/// </summary>
public bool CheckboxChecked { get; set; }
}
}<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
/// Result retu... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>ο»Ώnamespace ElectronNET.API.Entities
{
/// <summary>
/// Message box type for dialog.showMessageBox/showMessageBoxSync.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
p<|fim_suffix|> /// The error
/// </summary>
error,
/// <summary... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>trol,
/// <summary>
/// The Control key (alias for control).
/// </summary>
ctrl,
/// <summary>
/// The Alt key.
/// </summary>
alt,
/// <summary>
/// The Meta key.
/// </summary>
meta,
/// <summary>
/// The Command key.
/// </summary>
co... | fim | ElectronNET/Electron.NET | csharp |
<|fim_prefix|>using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Runtime.Versioning;
namespace ElectronNET.API.En... | fim | ElectronNET/Electron.NET | csharp |
<|fim_suffix|>vert.FromBase64String(item.Value);
newDictionary.Add(item.Key, Image.FromStream(new MemoryStream(bytes)));
}
return new NativeImage(newDictionary);
}
}
}<|fim_prefix|>using ElectronNET.API.Serialization;
using System;
using System.Collections.Generic;
u... | fim | ElectronNET/Electron.NET | csharp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.