repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/multi_gpt_v0.ts
turbo/src/lib/compute/multi_gpt_v0.ts
import Deepcopy from 'deep-copy'; import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import _ from 'lodash'; import { format, unwrapFunctionStore } from 'svelte-i18n'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import GPTNode from '$lib/compute/gpt_v0'; im...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/multi_whisper_v0.ts
turbo/src/lib/compute/multi_whisper_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import WhisperNode, { whisper_node_data } from '$lib/compute/whisper_v1'; import { format, unwrapFunctionStore } from 'svelte-i18n'; import _ from 'lodash'; con...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/adder_v0.ts
turbo/src/lib/compute/adder_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { BaseData, DGNodeInterface } from '$lib/node_data_types'; export default class AdderNode { id: string; data: AdderData; position: { x: number; y: number }; type: string; constructor(node_data: AdderNodeInterf...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/open_ai_key_v0.ts
turbo/src/lib/compute/open_ai_key_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; export default class OpenAIKeyNode { id: string; data: OpenAIKeyData; position: { x: number; y: number }; type: string; constructor(node_data) { c...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/whisper_v0.ts
turbo/src/lib/compute/whisper_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils'; import { secondsToHHMMSS } from '$lib/utils'; import OpenAI from 'openai'; import MockOpenAI from '...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/argument_extraction_llama.ts
turbo/src/lib/compute/argument_extraction_llama.ts
// import nodes from '$lib/node_register'; // import categories from '$lib/node_categories'; // import system_prompt from '$lib/mock_data/argument_extraction/system_prompt.txt?raw'; // import { // argument_extraction_llama_system_prompt, // argument_extraction_llama_prompt // } from '$lib/prompts'; // export const ...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/comment_expander_v0.ts
turbo/src/lib/compute/comment_expander_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import _ from 'lodash'; export default class CommentExpanderNode { id: string; data: CommentExpanderData; position: { x: number; y: number }; type: strin...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/multi_audio_v0.ts
turbo/src/lib/compute/multi_audio_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import { readFileFromGCS } from '$lib/utils'; import type { BaseData, DGNodeInterface } from '$lib/node_data_types'; // Todo: this assumes a browser environment. // to also work in node, consider using import { Readable } from 'stre...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/filter_csv_v0.ts
turbo/src/lib/compute/filter_csv_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import _ from 'lodash'; export default class FilterCSVNode { id: string; data: FilterCSVData; position: { x: number; y: number }; type: string; constr...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/merge_v0.ts
turbo/src/lib/compute/merge_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import deepCopy from 'deep-copy'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import _ from 'lodash'; export default class MergeNode { id: string; data: MergeData; position: { x: number; y: number };...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/add_csv_v0.ts
turbo/src/lib/compute/add_csv_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import _ from 'lodash'; export default class AddCSVNode { id: string; data: AddCSVData; position: { x: number; y: number }; type: string; constructor(...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/text_to_csv_v0.ts
turbo/src/lib/compute/text_to_csv_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import { getEncoding } from 'js-tiktoken'; import { format, unwrapFunctionStore } from 'svelte-i18n'; import _ from 'lodash'; const $__ = unwrapFunctionStore(fo...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/merge_cluster_extraction_v0.ts
turbo/src/lib/compute/merge_cluster_extraction_v0.ts
import DeepCopy from 'deep-copy'; import nodes from '$lib/node_register'; import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils'; import { merge_extraction_prompt, cluster_extraction_system_prompt } from '$lib/prompts'; import categories from '$lib/node_categories'; import { format, unwrapFunctionStore } from 's...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/edit_csv_v0.ts
turbo/src/lib/compute/edit_csv_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import deepCopy from 'deep-copy'; import _ from 'lodash'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; class EditCSVNode { id: string; data: EditCSVData; position: { x: number; y: number }; type: st...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/unique_v0.ts
turbo/src/lib/compute/unique_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import _ from 'lodash'; export default class UniqueNode { id: string; data: UniqueData; position: { x: number; y: number }; type: string; constructor(...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/gpt_v0.ts
turbo/src/lib/compute/gpt_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils'; import gpt from '$lib/gpt'; import _ from 'lodash'; import { gpt_v0_prompt } from '$lib/prompts'; import { format, unwrapFunctionStore } from 'svelte-i18n'; import type {...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/llama_v0.ts
turbo/src/lib/compute/llama_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; interface LlamaData extends BaseData { text: string; } export default class LlamaNode { id: string; data: LlamaData; position: { x: number; y: number };...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/translate_v0.ts
turbo/src/lib/compute/translate_v0.ts
import gpt from '$lib/gpt'; import _ from 'lodash'; import jsonpath from 'jsonpath'; import nodes from '$lib/node_register'; import { readFileFromGCS, uploadJSONToGCS, quickChecksum } from '$lib/utils'; import type { DGNodeInterface, GCSBaseData } from '$lib/node_data_types'; import categories from '$lib/node_categori...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/feedback_v0.ts
turbo/src/lib/compute/feedback_v0.ts
import _ from 'lodash'; import nodes from '$lib/node_register'; import DeepCopy from 'deep-copy'; import { db } from '$lib/firebase'; import categories from '$lib/node_categories'; import type { BaseData, DGNodeInterface } from '$lib/node_data_types'; import { format, unwrapFunctionStore } from 'svelte-i18n'; import { ...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/json_v0.ts
turbo/src/lib/compute/json_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import { readFileFromGCS } from '$lib/utils'; import type { GCSBaseData, DGNodeInterface } from '$lib/node_data_types'; export interface JSONNodeInterface extends DGNodeInterface<GCSBaseData> {} class JSONNode implements JSONNodeIn...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/markdown_v0.ts
turbo/src/lib/compute/markdown_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import _ from 'lodash'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; export default class MarkdownNode { id: string; data: MarkdownData; position: { x: number; y: number }; type: string; construc...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/cluster_extraction_v1.ts
turbo/src/lib/compute/cluster_extraction_v1.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils'; import { cluster_extraction_prompt_v1, cluster_extraction_system_prompt, cluster_extraction_prompt_v1_suffix } from '$lib/prompts'; import type { DGNodeInterface, G...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/stringify_v0.ts
turbo/src/lib/compute/stringify_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; export default class StringifyNode { id: string; data: StringifyData; position: { x: number; y: number }; type: string; constructor(node_data: StringifyNodeInterface) { const { id, data, position, type } = node_data; ...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/pyodide_v0.ts
turbo/src/lib/compute/pyodide_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import _ from 'lodash'; let pyodideInstance: any = null; async function loadPyodide() { if (!pyodideInstance) { const module = await import('$lib/pyodide/pyodide.js'); pyodideInstance = await module.loadPyodide(); } r...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/whisper_v1.ts
turbo/src/lib/compute/whisper_v1.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils'; import { secondsToHHMMSS } from '$lib/utils'; import OpenAI from 'openai'; import MockOpenAI from '...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/webpage_v0.ts
turbo/src/lib/compute/webpage_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; export default class WebpageNode { id: string; data: WebpageData; position: { x: number; y: number }; type: string; constructor(node_data: WebpageNode...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/text_v0.ts
turbo/src/lib/compute/text_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import _ from 'lodash'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; export default class TextNode { id: string; data: MarkdownData; position: { x: number; y: number }; type: string; constructor(...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/cluster_extraction_v0.ts
turbo/src/lib/compute/cluster_extraction_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils'; import { cluster_extraction_prompt_v0, cluster_extraction_system_prompt } from '$lib/prompts'; import { format, unwrapFunctionStore } from 'svelte-i18n'; import type { DG...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/jsonata_v0.ts
turbo/src/lib/compute/jsonata_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import jsonata_lib from 'jsonata'; interface BaseData {} interface JsonataData extends BaseData { text: string; output: object; } export default class JsonataNode { id: string; data: JsonataData; position: { x: number; y...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/integer_v0.ts
turbo/src/lib/compute/integer_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { BaseData, DGNodeInterface } from '$lib/node_data_types'; export default class IntegerNode { id: string; data: IntegerData; position: { x: number; y: number }; type: string; constructor(node_data: IntegerNode...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/secret_v0.ts
turbo/src/lib/compute/secret_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; export default class SecretNode { id: string; data: SecretData; position: { x: number; y: number }; type: string; constructor(node_data) { const {...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/report_v0.ts
turbo/src/lib/compute/report_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; export default class ReportNode { id: string; data: ReportData; position: { x: number; y: number }; type: string; constructor(node_data: ReportNodeInterface) { const { id, data, position, type } = node_data; this....
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/pinecone_key_v0.ts
turbo/src/lib/compute/pinecone_key_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import type { DGNodeInterface, BaseData } from '$lib/node_data_types'; export default class PineconeKeyNode { id: string; data: PineconeKeyData; position: { x: number; y: number }; type: string; constructor(node_data) { ...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/chat_v0.ts
turbo/src/lib/compute/chat_v0.ts
import { get } from 'svelte/store'; import { getEncoding } from 'js-tiktoken'; import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import mock_responses from '$lib/mock_data/gpt_responses'; import { openai } from '$lib/gpt'; import CryptoJS from 'crypto-js'; import type { DGNodeInterf...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/compute/jq_v0.ts
turbo/src/lib/compute/jq_v0.ts
import nodes from '$lib/node_register'; import categories from '$lib/node_categories'; import jq_lib from '$lib/jq.js'; export default class JqNodeV0 { id: string; data: JqDataV0; position: { x: number; y: number }; type: string; constructor(node_data: JqNodeV0Interface) { const { id, data, position, ty...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/pyodide/ffi.d.ts
turbo/src/lib/pyodide/ffi.d.ts
// Generated by dts-bundle-generator v6.13.0 interface PyProxy { [x: string]: any; } /** * A :js:class:`~pyodide.ffi.PyProxy` is an object that allows idiomatic use of a Python object from * JavaScript. See :ref:`type-translations-pyproxy`. */ declare class PyProxy { /** @private */ $$flags: number; /** @privat...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
true
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/pyodide/pyodide.d.ts
turbo/src/lib/pyodide/pyodide.d.ts
// Generated by dts-bundle-generator v6.13.0 /** * * The Pyodide version. * * The version here is a Python version, following :pep:`440`. This is different * from the version in ``package.json`` which follows the node package manager * version convention. */ export declare const version: string; interface Canva...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
true
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/turbo/src/lib/mock_data/gpt_responses.ts
turbo/src/lib/mock_data/gpt_responses.ts
const responses = { '17cde08334801e40a6110835ee62489c9e68365ef1fffc0d8c8bf020d3608b61': 'translated response', '0bb27701067939d4b9358f94bce6b77e0cf296e6db67c8cb1e93c88be3e9faf8': 'Crowded streets, vibrant markets, high-rise apartments, diverse, rich culture.', '20f235466b65b040a2a0b11c6656ac1aaed2efe8eecfea59...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/utils.ts
scatter/next-app/utils.ts
export const mean = (arr: number[]) => { return arr.reduce((a, b) => a + b, 0) / arr.length; }; export const isTouchDevice = () => { return "ontouchstart" in window || navigator.maxTouchPoints > 0; };
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/tailwind.config.ts
scatter/next-app/tailwind.config.ts
import type { Config } from 'tailwindcss' const config: Config = { content: [ './pages/**/*.{js,ts,jsx,tsx,mdx}', './components/**/*.{js,ts,jsx,tsx,mdx}', './app/**/*.{js,ts,jsx,tsx,mdx}', ], theme: { extend: { backgroundImage: { 'gradient-radial': 'radial-gradient(var(--tw-gradient...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/types.ts
scatter/next-app/types.ts
export type Argument = { arg_id: string; argument: string; comment_id: string; x: number; y: number; p: number; }; export type CommentObj = { comment: string; agrees?: number; disagrees?: number; video?: string; interview?: string; timestamp?: string; }; export type CommentsMap = { [id: stri...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/icons.tsx
scatter/next-app/icons.tsx
import React from "react"; type CN = { className: string } // Credits: https://heroicons.com/ export const ThumbUp = ({ className }: CN) => <svg className={className} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor"> <path strokeLinecap="round" strokeLinejoi...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/hooks/useRelativePositions.ts
scatter/next-app/hooks/useRelativePositions.ts
import { Cluster } from "@/types"; const useRelativePositions = (clusters: Cluster[]): Cluster[] => { const args = clusters.map((cluster) => cluster.arguments).flat(); const X = args.map((arg) => arg.x); const Y = args.map((arg) => arg.y); const minX = Math.min(...X); const minY = Math.min(...Y); const max...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/hooks/useFilter.ts
scatter/next-app/hooks/useFilter.ts
import { useCallback, useMemo } from "react"; import { Cluster, CommentsMap, Argument } from "@/types"; const useFilter = ( clusters: Cluster[], comments: CommentsMap, minVotes: number, minConsensus: number, dataHasVotes: boolean ) => { const filter = useCallback( (arg: Argument) => { if (!dataH...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/hooks/useClusterColor.ts
scatter/next-app/hooks/useClusterColor.ts
import { useCallback, useMemo } from "react"; const colors: string[] = [ "#8a2be2", // Purple "#ff69b4", // Pink "#1e90ff", // Blue "#008080", // Teal "#00d3d3", // Cyan "#cdcd00", // Yellow "#ffa500", // Orange "#ff0000", // Red "#008000", // Green "#ff4500", // Orange-Red "#32cd32", // Lime Gre...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/hooks/useVoronoiFinder.ts
scatter/next-app/hooks/useVoronoiFinder.ts
import { MouseEventHandler, useMemo } from "react"; import { voronoi } from "@visx/voronoi"; import { Cluster, Argument, Dimensions, CommentsMap, Point } from "@/types"; import { Zoom } from "./useZoom"; const useVoronoiFinder = ( clusters: Cluster[], comments: CommentsMap, color: (cluster_id: string) => string,...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/hooks/useTranslatorAndReplacements.ts
scatter/next-app/hooks/useTranslatorAndReplacements.ts
import { useCallback, useMemo, useState } from "react"; import { Config, Translations, Cluster } from "@/types"; import * as OpenCC from "opencc-js"; let missing: { [key: string]: boolean } = {}; const useTranslatorAndReplacements = ( config: Config, translations: Translations, clusters: Cluster[] ) => { cons...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/hooks/useZoom.ts
scatter/next-app/hooks/useZoom.ts
import { Dimensions } from "@/types"; import { MouseEventHandler, WheelEventHandler, useState } from "react"; const minZoom = 0.2; const maxZoom = 5; const useZoom = (dimensions?: Dimensions, allowZoom?: boolean) => { const [zoom, setZoom] = useState({ scale: 1, panx: 0, pany: 0 }); const [dragging, setDragging] ...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/hooks/useAutoResize.ts
scatter/next-app/hooks/useAutoResize.ts
import { useState, useEffect, useCallback } from "react"; import { Dimensions } from "@/types"; const getDimensions = (width?: number, height?: number, padding?: number) => { console.log("getDimensions", window.innerWidth); const dims = window.innerWidth < 500 ? { width: window.innerWidth! - 10...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/hooks/useInferredFeatures.ts
scatter/next-app/hooks/useInferredFeatures.ts
import { useMemo } from "react"; import { Result } from "@/types"; const useInferredFeatures = (props: Result) => { return useMemo(() => { const { config, comments } = props; const comment0 = comments[Object.keys(comments)[0]]; const langs = config.translation?.languages || []; return { dataHas...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/pages/_app.tsx
scatter/next-app/pages/_app.tsx
import { AppProps } from "next/app" import '../globals.css' export default function App( props: AppProps ) { const { Component, pageProps } = props return ( <Component {...pageProps} /> ) }
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/pages/index.tsx
scatter/next-app/pages/index.tsx
import Head from "next/head" import Link from "next/link" import Report from '../components/Report' import { Result } from '../types' const outputs = '../pipeline/outputs' export async function getStaticProps({ params }: any) { const report = process.env.REPORT if (report && report.length) { const fs = requir...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/pages/report/[name].tsx
scatter/next-app/pages/report/[name].tsx
const outputs = '../pipeline/outputs' import Report from '../../components/Report' import { Result } from '../../types' export async function getStaticPaths() { const report = process.env.REPORT if (report && report.length) { return { paths: [], fallback: false } } const fs = require('fs'); const subfol...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/components/Outline.tsx
scatter/next-app/components/Outline.tsx
import { Translator } from "@/hooks/useTranslatorAndReplacements" import { Cluster } from "@/types" type Props = { clusters: Cluster[], translator: Translator, } const Section = ({ name, target, small }: { name: string, target: string, small?: boolean }) => { let className = "opacity-60 hover:opacity-100 cursor...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/components/Appendix.tsx
scatter/next-app/components/Appendix.tsx
import React, { useEffect, useState } from 'react' import { Config } from '@/types' import { Translator } from '@/hooks/useTranslatorAndReplacements' import { diffWords } from "diff" type Props = { config: Config, translator: Translator, } const Appendix = ({ config, translator }: Props) => { const { t, manualCh...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/components/Report.tsx
scatter/next-app/components/Report.tsx
import React, { useState, useEffect, use, useRef } from 'react'; import { Result, Point } from '@/types'; import useClusterColor from '@/hooks/useClusterColor'; import useTranslatorAndReplacements from '@/hooks/useTranslatorAndReplacements'; import Map from './Map'; import Header from './Header'; import Appendix from '...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/components/VideoLink.tsx
scatter/next-app/components/VideoLink.tsx
import { Play } from "@/icons"; type VideoLinkProps = { video?: string, timestamp?: string, interview?: string, showThumbnail?: boolean, showVideo?: boolean } const VideoLink = ({ video, timestamp, interview, showThumbnail, showVideo }: VideoLinkProps) => { if (!video || !timestamp || !interview) return n...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/components/Map.tsx
scatter/next-app/components/Map.tsx
import React, { useState, useEffect, use } from 'react'; import { Result, Argument, Point } from '@/types'; import Tooltip from '@/components/Tooltip'; import useAutoResize from '@/hooks/useAutoResize'; import useRelativePositions from '@/hooks/useRelativePositions'; import useVoronoiFinder from '@/hooks/useVoronoiFin...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/components/Header.tsx
scatter/next-app/components/Header.tsx
import useInferredFeatures from "@/hooks/useInferredFeatures" import { Translator } from "@/hooks/useTranslatorAndReplacements" import { Result } from "@/types" type HeaderProps = Result & { translator: Translator } const Header = (props: HeaderProps) => { const { config } = props const { t, languages, langInde...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
AIObjectives/talk-to-the-city-reports
https://github.com/AIObjectives/talk-to-the-city-reports/blob/ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0/scatter/next-app/components/Tooltip.tsx
scatter/next-app/components/Tooltip.tsx
import { Zoom } from '@/hooks/useZoom'; import { Point, Dimensions } from '@/types'; import { CSSProperties, useState } from 'react'; import { ThumbUp, ThumbDown } from '@/icons'; import { Translator } from '@/hooks/useTranslatorAndReplacements'; import VideoLink from './VideoLink'; type TooltipProps = { point: Poi...
typescript
Apache-2.0
ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0
2026-01-05T04:59:43.595222Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/index.test.ts
src/index.test.ts
import './cluster/KMeans.test' import './compose/ColumnTransformer.test' import './datasets/makeRegression.test' import './dummy/DummyClassifier.test' import './dummy/DummyRegressor.test' import './ensemble/VotingClassifier.test' import './ensemble/VotingRegressor.test' import './impute/SimpleImputer.test' import './li...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/math.ts
src/math.ts
import { Iterable, Tensor } from './types' import { assert } from './typesUtils' import { getBackend } from './tf-singleton' /* In creating the preprocessors, I wanted functions that computed the min, max, mean, etc... but that also ignored NaN values. The min / max functions that come from Tensorflow don't support ign...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/utils.ts
src/utils.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/mixins.ts
src/mixins.ts
import { Scikit2D, Scikit1D, Tensor2D, Tensor1D } from './types' import { r2Score, accuracyScore } from './metrics/metrics' import { Serialize } from './simpleSerializer' import { assert, isScikit2D } from './typesUtils' import { convertToNumericTensor1D_2D } from './utils' export class TransformerMixin extends Seriali...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/randUtils.ts
src/randUtils.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/simpleSerializer.ts
src/simpleSerializer.ts
import { encode, decode } from 'base64-arraybuffer' import { getBackend } from './tf-singleton' const EstimatorList = [ 'KNeighborsRegressor', 'LinearRegression', 'LassoRegression', 'RidgeRegression', 'ElasticNet', 'LogisticRegression', 'DummyRegressor', 'DummyClassifier', 'MinMaxScaler', 'StandardS...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/tf-singleton.ts
src/tf-singleton.ts
let tf: any = null export function setBackend(tfInput: any) { tf = tfInput } export function getBackend() { if (tf === null) { throw Error(` ============================ Howdy 👋👋. Looks like you are running scikit but you haven't set a Tensorflow backend. To do so, simply import (or require) your tensorflo...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/jestTensorMatchers.ts
src/jestTensorMatchers.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/types.ts
src/types.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/jestTensorMatchers.test.ts
src/jestTensorMatchers.test.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/index.ts
src/index.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/tfUtils.ts
src/tfUtils.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/typesUtils.ts
src/typesUtils.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/model_selection/trainTestSplit.ts
src/model_selection/trainTestSplit.ts
import { Scikit1D, Scikit2D } from '../types' import { assert, isDataFrameInterface, isSeriesInterface, isTensor } from '../typesUtils' import { getLength, sampleWithoutReplacement } from '../utils' import { getBackend } from '../tf-singleton' /** * Validation helper to check if the test/test sizes are meanin...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/model_selection/CrossValidator.ts
src/model_selection/CrossValidator.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/model_selection/trainTestSplit.test.ts
src/model_selection/trainTestSplit.test.ts
import { validateShuffleSplit, getIndices } from './trainTestSplit' import { trainTestSplit, setBackend } from '../index' import * as dfd from 'danfojs-node' import * as tf from '@tensorflow/tfjs' import { DataFrameInterface } from '../types' setBackend(tf) describe('Testing trainTestSplit', function () { it('Testin...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/model_selection/scorers.ts
src/model_selection/scorers.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/model_selection/KFold.test.ts
src/model_selection/KFold.test.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/model_selection/KFold.ts
src/model_selection/KFold.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/model_selection/crossValScore.ts
src/model_selection/crossValScore.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/ensemble/VotingClassifier.test.ts
src/ensemble/VotingClassifier.test.ts
import { makeVotingClassifier, VotingClassifier, DummyClassifier, LogisticRegression, setBackend, fromJSON } from '../index' import * as tf from '@tensorflow/tfjs' setBackend(tf) describe('VotingClassifier', function () { it('Use VotingClassifier on simple example (voting = hard)', async function () { ...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/ensemble/VotingRegressor.ts
src/ensemble/VotingRegressor.ts
import { Scikit1D, Scikit2D, Tensor1D } from '../types' import { RegressorMixin } from '../mixins' import { getBackend } from '../tf-singleton' /* Next steps: 0. Write validation code to check Estimator inputs 1. nFeaturesIn, featureNamesIn 2. Copy most of the code for the VotingClassifier */ export interface ...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/ensemble/VotingClassifier.ts
src/ensemble/VotingClassifier.ts
import { Scikit1D, Scikit2D, Tensor1D, Tensor2D } from '../types' import { getBackend } from '../tf-singleton' import { ClassifierMixin } from '../mixins' import { LabelEncoder } from '../preprocessing/LabelEncoder' /* Next steps: 0. Write validation code to check Estimator inputs 1. nFeaturesIn, featureNamesIn ...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/ensemble/VotingRegressor.test.ts
src/ensemble/VotingRegressor.test.ts
import { makeVotingRegressor, VotingRegressor, DummyRegressor, LinearRegression, setBackend, fromJSON } from '../index' import * as tf from '@tensorflow/tfjs' setBackend(tf) describe('VotingRegressor', function () { it('Use VotingRegressor on simple example ', async function () { const X = [ [1...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/KdTree.test.ts
src/neighbors/KdTree.test.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/KNeighborsRegressor.ts
src/neighbors/KNeighborsRegressor.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/KNeighborsClassifier.ts
src/neighbors/KNeighborsClassifier.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/Neighborhood.ts
src/neighbors/Neighborhood.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/Metric.ts
src/neighbors/Metric.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/CappedMaxHeap.test.ts
src/neighbors/CappedMaxHeap.test.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/CappedMaxHeap.ts
src/neighbors/CappedMaxHeap.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/BruteNeighborhood.test.ts
src/neighbors/BruteNeighborhood.test.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/neighborhoodGenericTests.ts
src/neighbors/neighborhoodGenericTests.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/KNeighborsClassifier.test.ts
src/neighbors/KNeighborsClassifier.test.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/KNeighborsRegressor.test.ts
src/neighbors/KNeighborsRegressor.test.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/KNeighborsBase.ts
src/neighbors/KNeighborsBase.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/BruteNeighborhood.ts
src/neighbors/BruteNeighborhood.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/KdTree.ts
src/neighbors/KdTree.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/neighbors/Metric.test.ts
src/neighbors/Metric.test.ts
/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false
javascriptdata/scikit.js
https://github.com/javascriptdata/scikit.js/blob/f388a67c0127a047b70971b790cfd29e7aa3f709/src/naive_bayes/GaussianNB.ts
src/naive_bayes/GaussianNB.ts
/** * @license * Copyright 2022, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS"...
typescript
MIT
f388a67c0127a047b70971b790cfd29e7aa3f709
2026-01-05T04:59:44.189609Z
false