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/test/jq_v1.test.ts | turbo/src/test/jq_v1.test.ts | import { describe, it, vi } from 'vitest';
import { expect } from 'vitest';
import JqNodeV1, { jq_node_data } from '$lib/compute/jq_v1';
import _ from 'lodash';
const log = console.log;
const input = { input: { x: [{ y: 2 }, { y: 4 }] } };
// Please note these tests do not cover backend node-jq functionality
// They ... | 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/test/multi_audio_v0.test.ts | turbo/src/test/multi_audio_v0.test.ts | import { describe, it, expect, vi, beforeEach } from 'vitest';
import MultiAudioNode, { audio_node_data } from '$lib/compute/multi_audio_v0';
import deepCopy from 'deep-copy';
import { readFileFromGCS } from '$lib/utils';
import File from './test/mocks/File';
import { getDataset } from './test/mocks/dataset';
globalTh... | 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/test/report.test.ts | turbo/src/test/report.test.ts | import ReportNode, { report_node_data } from '$lib/compute/report_v0';
import deepCopy from 'deep-copy';
import { describe, it } from 'vitest';
import { expect } from 'vitest';
describe('ReportNode class', () => {
it('should set the output of the node to the input data', async () => {
const node = new ReportNode... | 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/test/cluster_extraction_v0.test.ts | turbo/src/test/cluster_extraction_v0.test.ts | import { describe, it, vi } from 'vitest';
import { expect } from 'vitest';
import ClusterExtractionNode, {
cluster_extraction_node_data_v0
} from '$lib/compute/cluster_extraction_v0';
import deepCopy from 'deep-copy';
import mock_cluster_extraction_data from '$lib/mock_data/cluster_extraction/cluster_extraction.json... | 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/test/multi_cluster_extraction_v0.test.ts | turbo/src/test/multi_cluster_extraction_v0.test.ts | import { vi, describe, it, expect, beforeEach } from 'vitest';
import MultiClusterExtractionNode, {
multi_cluster_extraction_node_data
} from '$lib/compute/multi_cluster_extraction_v0';
import deepCopy from 'deep-copy';
import csv_data from '$lib/mock_data/csv/csv.json';
import _ from 'lodash';
import { getEncoding }... | 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/test/cluster_extraction_v1.test.ts | turbo/src/test/cluster_extraction_v1.test.ts | import ClusterExtractionNode, {
cluster_extraction_node_data_v1
} from '$lib/compute/cluster_extraction_v1';
import deepCopy from 'deep-copy';
import { describe, it, vi, beforeEach } from 'vitest';
import { expect } from 'vitest';
import mock_cluster_extraction_data from '$lib/mock_data/cluster_extraction/cluster_ext... | 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/test/utils.test.ts | turbo/src/test/utils.test.ts | import { secondsToHHMMSS, HHMMSSToSeconds } from '$lib/utils';
import { describe, it } from 'vitest';
import { expect } from 'vitest';
describe('Utils tests', () => {
it('Test secondsToHHMMSS', async () => {
expect(secondsToHHMMSS(0)).toEqual('00:00:00');
expect(secondsToHHMMSS(1)).toEqual('00:00:01');
e... | 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/test/register.test.ts | turbo/src/test/register.test.ts | import { describe, it } from 'vitest';
import { expect } from 'vitest';
import GridNode, { grid_node_data } from '$lib/compute/grid_v0';
import nodes from '$lib/node_register';
import fs from 'fs';
import path from 'path';
const computePath = path.resolve(__dirname, '../lib/compute');
describe('Register class', () =>... | 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/test/score_argument_relevance.test.ts | turbo/src/test/score_argument_relevance.test.ts | import ScoreArgumentRelevanceNode, {
score_argument_relevance_node_data
} from '$lib/compute/score_argument_relevance_v0';
import deepCopy from 'deep-copy';
import { describe, it, vi } from 'vitest';
import { expect } from 'vitest';
import mock_argument_extraction_data from '$lib/mock_data/argument_extraction/argumen... | 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/test/argument_extraction_v0.test.ts | turbo/src/test/argument_extraction_v0.test.ts | import ArgumentExtractionNode, {
argument_extraction_node_data_v0
} from '$lib/compute/argument_extraction_v0';
import deepCopy from 'deep-copy';
import { describe, it, vi, beforeEach } from 'vitest';
import { expect } from 'vitest';
import mock_argument_extraction_data from '$lib/mock_data/argument_extraction/argume... | 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/test/open_ai_key.test.ts | turbo/src/test/open_ai_key.test.ts | import { describe, it } from 'vitest';
import { expect } from 'vitest';
import OpenAIKeyNode, { open_ai_key_node_data } from '$lib/compute/open_ai_key_v0';
import deepCopy from 'deep-copy';
import Cookies from './test/mocks/js-cookie';
describe('OpenAIKeyNode class', () => {
it('should set the key in cookies if the ... | 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/test/python.test.ts | turbo/src/test/python.test.ts | import { describe, it, vi, expect, beforeEach, afterEach } from 'vitest';
import PythonNodeV0, { python_node_data } from '$lib/compute/python_v0';
import type PythonData from '$lib/compute/python_v0';
import deepCopy from 'deep-copy';
import _ from 'lodash';
describe('PythonNodeV0 mocking', () => {
let node: PythonN... | 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/test/csv.test.ts | turbo/src/test/csv.test.ts | import { describe, it, vi, beforeEach } from 'vitest';
import { expect } from 'vitest';
import CSVNode, { csv_node_data } from '$lib/compute/csv_v0';
import deepCopy from 'deep-copy';
import * as utils from '$lib/utils';
describe('CSVNode class', () => {
beforeEach(() => {
// Reset module mocking before each tes... | 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/test/chat_v0.test.ts | turbo/src/test/chat_v0.test.ts | import { describe, it, vi, expect, beforeEach } from 'vitest';
import ChatNode, { chat_node_data } from '$lib/compute/chat_v0';
import deepCopy from 'deep-copy';
import _ from 'lodash';
vi.mock('$lib/gpt', () => ({
openai: vi.fn()
}));
describe('ChatNode class', () => {
let node;
let inputData;
let Cookies;
... | 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/test/edit_csv.test.ts | turbo/src/test/edit_csv.test.ts | import EditCSVNode, { edit_csv_node_data } from '$lib/compute/edit_csv_v0';
import deepCopy from 'deep-copy';
import { describe, it, vi } from 'vitest';
import { expect } from 'vitest';
describe('EditCSVNode class', () => {
it('generates new columns', async () => {
const nodeData = deepCopy(edit_csv_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/test/python.integration.test.ts | turbo/src/test/python.integration.test.ts | import { describe, it, vi, expect } from 'vitest';
import PythonNodeV0, { python_node_data } from '$lib/compute/python_v0';
import deepCopy from 'deep-copy';
import _ from 'lodash';
import dotenv from 'dotenv';
dotenv.config();
describe('PythonNodeV0 integration', () => {
it('should execute python script and return ... | 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/test/multi_whisper_v0.test.ts | turbo/src/test/multi_whisper_v0.test.ts | import { describe, it, expect, vi, beforeEach } from 'vitest';
import MultiWhisperNode, { multi_whisper_node_data } from '$lib/compute/multi_whisper_v0';
import deepCopy from 'deep-copy';
import { getDataset } from './test/mocks/dataset';
import File from './test/mocks/File';
import WhisperNode from '$lib/compute/whisp... | 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/test/pinecone_v0.test.ts | turbo/src/test/pinecone_v0.test.ts | import { describe, it, vi, expect, beforeEach } from 'vitest';
import { getDataset } from './test/mocks/dataset';
describe('PineconeNode class', () => {
let node;
let inputData;
let dataset;
const timeout = 60000;
beforeEach(() => {
vi.mock('@pinecone-database/pinecone', () => ({
Pinecone: vi.fn()... | 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/test/limit_csv.test.ts | turbo/src/test/limit_csv.test.ts | import { describe, it, vi } from 'vitest';
import { expect } from 'vitest';
import LimitCSVNode, { limit_csv_node_data } from '$lib/compute/limit_csv_v0';
describe('limit_csv function', () => {
it('should let all data pass through if number is left blank', async () => {
const node = new LimitCSVNode(limit_csv_no... | 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/test/translate_v0.test.ts | turbo/src/test/translate_v0.test.ts | import { describe, it, vi, expect, beforeEach } from 'vitest';
import TranslateNode, { translate_node_data } from '$lib/compute/translate_v0';
import deepCopy from 'deep-copy';
import { getDataset } from './test/mocks/dataset';
describe('TranslateNode class', () => {
let node;
let inputData;
let dataset;
befo... | 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/test/participant_filter.test.ts | turbo/src/test/participant_filter.test.ts | import ParticipantFilterNode, {
participant_filter_node_data
} from '$lib/compute/participant_filter_v0';
import deepCopy from 'deep-copy';
import { describe, it } from 'vitest';
import { expect } from 'vitest';
describe('ParticipantFilterNode class', () => {
it('filters participants based on the provided name', a... | 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/test/merge.test.ts | turbo/src/test/merge.test.ts | import { describe, it } from 'vitest';
import { expect } from 'vitest';
import MergeNode, { merge_node_data } from '$lib/compute/merge_v0';
import deepCopy from 'deep-copy';
import mock_cluster_extraction_data from '$lib/mock_data/cluster_extraction/cluster_extraction.json';
import mock_argument_extraction_data 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/test/pyodide.test.ts | turbo/src/test/pyodide.test.ts | import { describe, it, vi, expect } from 'vitest';
import PyodideNodeV0, { pyodide_node_data } from '$lib/compute/pyodide_v0';
import deepCopy from 'deep-copy';
import _ from 'lodash';
describe('PyodideNodeV0 tests', () => {
it('should execute python script and return outputData', async () => {
const node = new ... | 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/test/pinecone_key_v0.test.ts | turbo/src/test/pinecone_key_v0.test.ts | import { describe, it, expect, vi, beforeEach } from 'vitest';
import PineconeKeyNode, { pinecone_key_node_data } from '$lib/compute/pinecone_key_v0';
import deepCopy from 'deep-copy';
import Cookies from 'js-cookie';
describe('PineconeKeyNode class', () => {
let node;
let inputData;
const slug = 'test_slug';
... | 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/test/merge_cluster_extraction.test.ts | turbo/src/test/merge_cluster_extraction.test.ts | import MergeClusterExtractionNode, {
merge_cluster_extraction_node_data
} from '$lib/compute/merge_cluster_extraction_v0';
import deepCopy from 'deep-copy';
import { describe, it, vi } from 'vitest';
import { expect } from 'vitest';
import mock_cluster_extraction_data from '$lib/mock_data/cluster_extraction/cluster_e... | 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/test/add_csv_v0.test.ts | turbo/src/test/add_csv_v0.test.ts | import { describe, it, expect, vi, beforeEach } from 'vitest';
import AddCSVNode, { add_csv_node_data } from '$lib/compute/add_csv_v0';
import deepCopy from 'deep-copy';
describe('AddCSVNode class', () => {
let node;
let inputData;
let outputData;
beforeEach(() => {
node = new AddCSVNode(deepCopy(add_csv_... | 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/test/markdown.test.ts | turbo/src/test/markdown.test.ts | import MarkdownNode, { markdown_node_data } from '$lib/compute/markdown_v0';
import deepCopy from 'deep-copy';
import { describe, it, expect } from 'vitest';
describe('MarkdownNode class', () => {
// Existing test in the prompt
it('should set markdown data if input is a string', async () => {
const node = new ... | 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/test/json.test.ts | turbo/src/test/json.test.ts | import { describe, it, vi, beforeEach } from 'vitest';
import { expect } from 'vitest';
import JSONNode, { json_node_data } from '$lib/compute/json_v0';
import deepCopy from 'deep-copy';
import * as utils from '$lib/utils';
describe('JSONNode class', () => {
beforeEach(() => {
vi.restoreAllMocks();
});
it('... | 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/test/filter_csv_v0.test.ts | turbo/src/test/filter_csv_v0.test.ts | import { describe, it, expect, vi, beforeEach } from 'vitest';
import FilterCSVNode, { filter_csv_node_data } from '$lib/compute/filter_csv_v0';
import deepCopy from 'deep-copy';
describe('FilterCSVNode class', () => {
let node;
let inputData;
beforeEach(() => {
node = new FilterCSVNode(deepCopy(filter_csv_... | 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/test/multi_gpt_v0.test.ts | turbo/src/test/multi_gpt_v0.test.ts | import { describe, it, vi, expect, beforeEach } from 'vitest';
import MultiGPTNode, { multi_gpt_node_data } from '$lib/compute/multi_gpt_v0';
import { gpt_v0_prompt, gpt_v0_prompt_1, gpt_v0_prompt_2 } from '$lib/prompts';
import deepCopy from 'deep-copy';
describe('MultiGPTNode class', () => {
let node;
let inputD... | 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/test/grid.test.ts | turbo/src/test/grid.test.ts | import { describe, it, vi, beforeEach } from 'vitest';
import { expect } from 'vitest';
import GridNode, { grid_node_data } from '$lib/compute/grid_v0';
import deepCopy from 'deep-copy';
describe('GridNode class', () => {
beforeEach(() => {
// Reset module mocking before each test
vi.restoreAllMocks();
});... | 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/test/text_to_csv_v0.test.ts | turbo/src/test/text_to_csv_v0.test.ts | import { describe, it, expect, beforeEach } from 'vitest';
import TextToCSV, { text_to_csv_node_data } from '$lib/compute/text_to_csv_v0';
import deepCopy from 'deep-copy';
describe('TextToCSV class', () => {
let node;
let inputData;
const timeout = 60000;
beforeEach(() => {
node = new TextToCSV(deepCopy(... | 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/test/whisper_v0.test.ts | turbo/src/test/whisper_v0.test.ts | import { describe, it, expect, vi, beforeEach } from 'vitest';
import WhisperNode, { whisper_node_data } from '$lib/compute/whisper_v0';
import deepCopy from 'deep-copy';
import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils';
import MockOpenAI from '$lib/mock_open_ai';
import File from './test/mocks/File';
impo... | 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/test/stringify.test.ts | turbo/src/test/stringify.test.ts | import StringifyNode, { stringify_node_data } from '$lib/compute/stringify_v0';
import deepCopy from 'deep-copy';
import { describe, it } from 'vitest';
import { expect } from 'vitest';
describe('StringifyNode class', () => {
it('should correctly stringify input data', async () => {
const node = new StringifyNod... | 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/test/unique_v0.test.ts | turbo/src/test/unique_v0.test.ts | import { describe, it, expect, beforeEach } from 'vitest';
import UniqueNode, { unique_node_data } from '$lib/compute/unique_v0';
import deepCopy from 'deep-copy';
describe('UniqueNode class', () => {
let node;
let inputData;
beforeEach(() => {
node = new UniqueNode(deepCopy(unique_node_data));
inputDat... | 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/test/test/mocks/File.ts | turbo/src/test/test/mocks/File.ts | export default class CustomFile {
parts: BlobPart[];
filename: string;
properties: FilePropertyBag;
constructor(parts: BlobPart[], filename: string, properties: FilePropertyBag = {}) {
this.parts = parts;
this.filename = filename;
this.name = filename;
this.properties = properties;
if (!pro... | 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/test/test/mocks/js-cookie.ts | turbo/src/test/test/mocks/js-cookie.ts | const cookies = {};
export default {
get: (key) => cookies[key],
set: (key, value) => {
cookies[key] = value;
},
remove: (key) => {
delete cookies[key];
}
};
| 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/test/test/mocks/dataset.ts | turbo/src/test/test/mocks/dataset.ts | // stock
import deepCopy from 'deep-copy';
// data
import cluster_prompt from '$lib/mock_data/cluster_extraction/prompt.txt?raw';
import cluster_system_prompt from '$lib/mock_data/cluster_extraction/system_prompt.txt?raw';
import arg_prompt from '$lib/mock_data/argument_extraction/v1/prompt.txt?raw';
import arg_prompt... | 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/routes/+layout.ts | turbo/src/routes/+layout.ts | import { browser } from '$app/environment';
import { locale, waitLocale } from 'svelte-i18n';
import type { LayoutLoad } from './$types';
import { get } from 'svelte/store';
import Cookies from 'js-cookie';
import '$lib/templates';
import '$lib/i18n';
if (typeof global === 'undefined') {
window.global = window;
}
e... | 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/routes/api-docs/+page.ts | turbo/src/routes/api-docs/+page.ts | import { dev } from '$app/environment';
// we don't need any JS on this page, though we'll load
// it in dev so that we get hot module replacement
export const csr = dev;
// since there's no dynamic data here, we can prerender
// it so that it gets served as a static asset in production
export const prerender = true;... | 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/routes/about/+page.ts | turbo/src/routes/about/+page.ts | import { dev } from '$app/environment';
// we don't need any JS on this page, though we'll load
// it in dev so that we get hot module replacement
export const csr = dev;
// since there's no dynamic data here, we can prerender
// it so that it gets served as a static asset in production
export const prerender = true;... | 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/routes/api/+server.ts | turbo/src/routes/api/+server.ts | /** @type {import('./$types').RequestHandler} */
export async function GET({ url, request }) {
return new Response('', {
status: 302,
headers: {
Location: '/api.html'
}
});
}
| 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/routes/api/readability/+server.ts | turbo/src/routes/api/readability/+server.ts | import { JSDOM } from 'jsdom';
import { Readability } from '@mozilla/readability';
export async function GET({ request }) {
const requestUrl = new URL(request.url);
const articleUrl = requestUrl.searchParams.get('url');
if (articleUrl) {
try {
const response = await fetch(articleUrl);
const html ... | 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/routes/api/tmp/+server.ts | turbo/src/routes/api/tmp/+server.ts | // import serviceAccount from '$lib/service-account-pk.json' assert { type: 'json' };
// import { authenticated } from '$lib/server_utils';
// import admin from 'firebase-admin';
// if (!admin.apps.length) {
// admin.initializeApp({
// credential: admin.credential.cert(serviceAccount)
// });
// }
// /**
// * @o... | 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/routes/api/db/conform/+server.ts | turbo/src/routes/api/db/conform/+server.ts | import _ from 'lodash';
import { query, getDocs, orderBy } from 'firebase/firestore/lite';
import type { QueryConstraint } from 'firebase/firestore';
import { datasetCollection } from '$lib/firebase';
import { authenticated } from '$lib/server_utils';
import { Dataset } from '$lib/dataset';
/**
* @openapi
* /api/d... | 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/routes/api/dataset/[dataset]/+server.ts | turbo/src/routes/api/dataset/[dataset]/+server.ts | import { Dataset } from '$lib/dataset';
import { authenticated } from '$lib/server_utils';
/**
* @openapi
* /api/dataset/{dataset}:
* get:
* operationId: getDataset
* summary: Retrieves a dataset
* description: Loads and processes a dataset based on the provided slug.
* parameters:
* - ... | 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/routes/api/dataset/[dataset]/chat/completions/+server.ts | turbo/src/routes/api/dataset/[dataset]/chat/completions/+server.ts | import { tick } from 'svelte';
import { Dataset } from '$lib/dataset';
import nodes from '$lib/node_register';
import { get } from 'svelte/store';
import serviceAccount from '$lib/service-account-pk.json' assert { type: 'json' };
import _ from 'lodash';
import admin from 'firebase-admin';
if (!admin.apps.length) {
a... | 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/routes/api/dataset/[dataset]/node/[node]/+server.ts | turbo/src/routes/api/dataset/[dataset]/node/[node]/+server.ts | import { Dataset } from '$lib/dataset';
import { authenticated } from '$lib/server_utils';
/**
* @openapi
* /api/dataset/{dataset}/node/{node}:
* get:
* operationId: getNode
* summary: Retrieves a specific node from a dataset
* description: This endpoint retrieves a node from a dataset using the pro... | 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/routes/api/spec/+server.ts | turbo/src/routes/api/spec/+server.ts | import swaggerJsdoc from 'swagger-jsdoc';
import _ from 'lodash';
import fs from 'fs';
export async function GET({ url, request }) {
const options = {
failOnErrors: true,
definition: {
openapi: '3.0.0',
info: {
title: 'Talk to the City Turbo',
version: '0.0.1'
},
compo... | 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/routes/api/users/info/email/+server.ts | turbo/src/routes/api/users/info/email/+server.ts | import serviceAccount from '$lib/service-account-pk.json' assert { type: 'json' };
import { authenticated } from '$lib/server_utils';
import admin from 'firebase-admin';
if (!admin.apps.length) {
admin.initializeApp({
credential: admin.credential.cert(serviceAccount)
});
}
const cache = {};
async function f... | 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/routes/api/authenticated-proxy/openai/v1/chat/completions/+server.ts | turbo/src/routes/api/authenticated-proxy/openai/v1/chat/completions/+server.ts | import serviceAccount from '$lib/service-account-pk.json' assert { type: 'json' };
import { query, where, getDocs, addDoc, doc, setDoc } from 'firebase/firestore/lite';
import { keysCollection } from '$lib/firebase';
import admin from 'firebase-admin';
import { checkRateLimit } from '$lib/rateLimitter';
if (!admin.app... | 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/routes/static-report/+layout.server.ts | turbo/src/routes/static-report/+layout.server.ts | import type { Load } from '@sveltejs/kit';
import { Dataset } from '$lib/dataset';
export async function load(x): Promise<Load> {
const slug = 'heal-michigan-9';
console.log('loading');
const dataset = await Dataset.loadDataset(slug);
await dataset?.processNodes('load');
console.log(dataset);
dataset.clear... | 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/routes/static-report/+page.ts | turbo/src/routes/static-report/+page.ts | export const prerender = true;
| 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/routes/docs/+page.ts | turbo/src/routes/docs/+page.ts | import { dev } from '$app/environment';
// we don't need any JS on this page, though we'll load
// it in dev so that we get hot module replacement
export const csr = dev;
// since there's no dynamic data here, we can prerender
// it so that it gets served as a static asset in production
export const prerender = true;... | 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/components/toast/theme.ts | turbo/src/components/toast/theme.ts | import { toast } from '@zerodevx/svelte-toast';
import type { SvelteToastOptions } from '@zerodevx/svelte-toast/stores.d.ts';
export const success = (m: string | SvelteToastOptions) =>
toast.push(m, {
theme: {
'--toastBackground': '#1e824c',
'--toastColor': '#fff',
'--toastBarBackground': '#17a... | 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/migrations/v0.0.0-aoi__initial-migration.ts | turbo/src/migrations/v0.0.0-aoi__initial-migration.ts | import type { MigrateOptions } from 'fireway';
export async function migrate({ firestore }: MigrateOptions) {
console.log('migrate');
}
| 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/graph.ts | turbo/src/lib/graph.ts | import { getAuth } from 'firebase/auth';
import { tick } from 'svelte';
import type { Node, Edge } from '@xyflow/svelte';
import { DGNode } from '$lib/node';
import deepCopy from 'deep-copy';
import type { Writable } from 'svelte/store';
import { writable, get } from 'svelte/store';
import nodesRegister from '$lib/node... | 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/gpt.ts | turbo/src/lib/gpt.ts | import CryptoJS from 'crypto-js';
import workerpool from 'workerpool';
import mock_responses from '$lib/mock_data/gpt_responses';
import { format, unwrapFunctionStore } from 'svelte-i18n';
import _ from 'lodash';
const $__ = unwrapFunctionStore(format);
const pool = workerpool.pool({ maxWorkers: 50 });
export async ... | 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/firebase.ts | turbo/src/lib/firebase.ts | import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { type Auth } from 'firebase/auth';
import { collection, doc, getFirestore } from 'firebase/firestore/lite';
import { getStorage } from 'firebase/storage';
const firebaseConfig = {
apiKey: import.meta.env.VITE_APP_API_KEY,
... | 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/types.d.ts | turbo/src/lib/types.d.ts | export interface User {
id: string;
}
export interface Claim {
id: string;
topicName: string;
subtopicName: string;
interview: string;
quote: string;
claim: string;
commentId: 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/turbo/src/lib/node_view_types.ts | turbo/src/lib/node_view_types.ts | import PineconeNode from '$components/graph/nodes/PineconeNode.svelte';
import NumberInputNode from '$components/graph/nodes/NumberInputNode.svelte';
import TextInputNode from '$components/graph/nodes/TextInputNode.svelte';
import PromptNode from '$components/graph/nodes/PromptNode.svelte';
import AudioNode from '$comp... | 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/mock_open_ai.ts | turbo/src/lib/mock_open_ai.ts | import CryptoJS from 'crypto-js';
import sample from '$lib/mock_data/speech_to_text/sample.json';
import responses from '$lib/mock_data/gpt_responses';
import _ from 'lodash';
type Message = {
role: 'system' | 'user';
content: string;
};
type CompletionRequest = {
messages: Message[];
model: string;
tempera... | 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/templates.ts | turbo/src/lib/templates.ts | import { getDocs, doc, setDoc, query } from '@firebase/firestore/lite';
import { templatesCollection } from '$lib/firebase';
import { type DocumentData } from 'firebase/firestore';
import { open_ai_key_node } from './compute/open_ai_key_v0';
import { translate_node } from './compute/translate_v0';
import { csv_node } ... | 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/utils.ts | turbo/src/lib/utils.ts | import _ from 'lodash';
import { getStorage, ref as storageRef, uploadBytes, getDownloadURL } from 'firebase/storage';
import { getAuth, type User } from 'firebase/auth';
import type { DGNodeInterface, GCSBaseData, DGEdgeInterface } from '$lib/node_data_types';
export async function uploadJSONToGCS(node: any, data: an... | 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/checkLangFiles.ts | turbo/src/lib/checkLangFiles.ts | import { readFileSync } from 'fs';
import { join } from 'path';
import _ from 'lodash';
console.log('checking lang files');
const languages = ['en-US', 'zh-TW'];
const langDir = '$lib/i18n';
const langFiles = languages.map((lang) => {
const filePath = join(langDir, `${lang}.json`);
const fileContent = readFileSyn... | 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/prompts.ts | turbo/src/lib/prompts.ts | export const argument_extraction_system_prompt =
'You are a professional research assistant. You have helped run many public consultations, surveys and citizen assemblies. You have good instincts when it comes to extracting interesting insights. You are familiar with public consultation tools like Pol.is and you unde... | 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/store.ts | turbo/src/lib/store.ts | import { writable } from 'svelte/store';
import type { Writable } from 'svelte/store';
import type { User } from 'firebase/auth';
const reportStore: Writable<Record<string, any>> = writable(null);
const fitViewStore: Writable<number> = writable(0);
const user: Writable<User | null> = writable(null);
const globalViewMo... | 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/logger.ts | turbo/src/lib/logger.ts | import { success, error, info } from '$components/toast/theme';
import type { Log } from '$lib/node_data_types';
export function logger(node, showSuccess = true, showInfo = true, showError = true) {
const log = (node.data.log = []);
return {
success: (m, detail) => {
log.push({ title: m, detail: detail, ... | 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/node_types.ts | turbo/src/lib/node_types.ts | // Autogenerated - do not edit ->
import '$lib/compute/add_csv_v0.ts';
import '$lib/compute/adder_v0.ts';
import '$lib/compute/argument_extraction_llama.ts';
import '$lib/compute/argument_extraction_v0.ts';
import '$lib/compute/argument_extraction_v1.ts';
import '$lib/compute/audio_v0.ts';
import '$lib/compute/chat_v0... | 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/i18n.ts | turbo/src/lib/i18n.ts | import { browser } from '$app/environment';
import { locale } from 'svelte-i18n';
import { init, register } from 'svelte-i18n';
import _ from 'lodash';
import Cookies from 'js-cookie';
// clear old locale, we are now using fully qualified locale
// not ISO 639-1
if (Cookies.get('locale') == 'en') Cookies.set('locale',... | 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/node_register.ts | turbo/src/lib/node_register.ts | import { browser } from '$app/environment';
import { init } from 'svelte-i18n';
import Cookies from 'js-cookie';
import _ from 'lodash';
import type { DGNodeInterface, BaseData } from '$lib/node_data_types.d.ts';
const defaultLocale = Cookies.get('locale') || 'en-US';
init({
fallbackLocale: defaultLocale,
initial... | 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/node_data_types.d.ts | turbo/src/lib/node_data_types.d.ts | import type { Writable } from 'svelte/store';
export interface Log {
title: string;
detail: string;
type: 'success' | 'error' | 'info';
}
export interface BaseData {
processing?: boolean;
label: string;
dirty: boolean;
compute_type: string;
input_ids: { [key: string]: string | object[] };
output_ids... | 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/reportUtils.ts | turbo/src/lib/reportUtils.ts | import _ from 'lodash';
import { findAncestor } from '$lib/hierarchy';
import { scaleOrdinal } from 'd3-scale';
import { hsl } from 'd3-color';
const customColors = [
'#125761',
'#D67A0A',
'#0073D1',
'#A72E16',
'#6A9217',
'#004C9E',
'#704A01',
'#70398A',
'#00808A',
'#B85914',
'#3F2A7E',
'#A9448... | 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/elk.ts | turbo/src/lib/elk.ts | import ELK from 'elkjs/lib/elk.bundled.js';
import { Position, type Node, type Edge } from '@xyflow/svelte';
const elk = new ELK();
export const elkOptions = {
'elk.algorithm': 'layered',
'elk.layered.spacing.nodeNodeBetweenLayers': '200',
'elk.spacing.nodeNode': '200'
};
export function getLayoutedElements(no... | 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/svelte-codemirror-editor.d.ts | turbo/src/lib/svelte-codemirror-editor.d.ts | declare module 'svelte-codemirror-editor';
| 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/server_utils.ts | turbo/src/lib/server_utils.ts | import serviceAccount from '$lib/service-account-pk.json' assert { type: 'json' };
import jwt from 'jsonwebtoken';
import admin from 'firebase-admin';
if (!admin.apps.length) {
admin.initializeApp({
credential: admin.credential.cert(serviceAccount)
});
}
export const checkJWT = (token: string): Promise<any> =... | 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/hierarchy.ts | turbo/src/lib/hierarchy.ts | import type { HierarchyNode } from 'd3-hierarchy';
/**
* Find first ancestor matching filter, including node.
* Similar to `node.find()` (https://github.com/d3/d3-hierarchy#node_find) but checks ancestors instead of descendants
*/
export function findAncestor<T = any>(node: HierarchyNode<T>, filter: (node) => boo... | 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/rateLimitter.ts | turbo/src/lib/rateLimitter.ts | import { query, where, getDocs, doc, setDoc, collection, Timestamp } from 'firebase/firestore/lite';
import { db } from '$lib/firebase';
const rateLimiterCollection = collection(db, 'rateLimiter');
const getRateLimitData = async (ip) => {
const q = query(rateLimiterCollection, where('ip', '==', ip));
const queryS... | 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/dataset.ts | turbo/src/lib/dataset.ts | import { refreshStore } from '$lib/store';
import { type User } from 'firebase/auth';
import { goto } from '$app/navigation';
import Cookies from 'js-cookie';
import { get } from 'svelte/store';
import Deepcopy from 'deep-copy';
import { saveTemplate } from '$lib/templates';
import nodes from '$lib/node_register';
impo... | 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/node.ts | turbo/src/lib/node.ts | import _ from 'lodash';
import { getAuth } from 'firebase/auth';
import nodesRegister from '$lib/node_register';
import { getStorage, ref as storageRef, deleteObject } from 'firebase/storage';
import { readFileFromGCS, uploadDataToGCS } from '$lib/utils';
import { info } from '$components/toast/theme';
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/node_categories.ts | turbo/src/lib/node_categories.ts | export type Category = {
label: string;
id: string;
};
interface CategoriesDictionary {
[categoryName: string]: Category;
}
const categories: CategoriesDictionary = {
input: {
label: 'input',
id: 'input'
},
ml: {
label: 'ML',
id: 'ml'
},
lang: {
label: 'lang',
id: 'lang'
},
... | 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/csv_v0.ts | turbo/src/lib/compute/csv_v0.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import papa from 'papaparse';
import { browser } from '$app/environment';
import { readFileFromGCS } from '$lib/utils';
import type { BaseData, GCSBaseData, DGNodeInterface } from '$lib/node_data_types';
export interface CSVNodeInte... | 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/grid_v0.ts | turbo/src/lib/compute/grid_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 GridNode {
id: string;
data: GridData;
position: { x: number; y: number };
type: string;
constructor(node... | 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_v1.ts | turbo/src/lib/compute/report_v1.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import _ from 'lodash';
import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils';
import { format, unwrapFunctionStore } from 'svelte-i18n';
import type { DGNodeInterface, GCSBaseData } from '$lib/node_data_types';
import { loca... | 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/audio_v0.ts | turbo/src/lib/compute/audio_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';
// Todo: this assumes a browser environment.
// to also work in node, consider using import { Readable } 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/download_v0.ts | turbo/src/lib/compute/download_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 DownloadNode {
id: string;
data: DownloadData;
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/pinecone_v0.ts | turbo/src/lib/compute/pinecone_v0.ts | import { Dataset } from '$lib/dataset';
import { Pinecone } from '@pinecone-database/pinecone';
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 PineconeNode {
id:... | 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_v1.ts | turbo/src/lib/compute/jq_v1.ts | import { browser } from '$app/environment';
import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import * as jq_web from 'jq-web/jq.asm.bundle.js';
import type { DGNodeInterface, BaseData } from '$lib/node_data_types';
import _ from 'lodash';
export default class JqNodeV1 {
id: str... | 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/score_argument_relevance_v0.ts | turbo/src/lib/compute/score_argument_relevance_v0.ts | import nodes from '$lib/node_register';
import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils';
import { cluster_extraction_system_prompt, score_claim_relevance_prompt } from '$lib/prompts';
import deepCopy from 'deep-copy';
import categories from '$lib/node_categories';
import gpt from '$lib/gpt';
import _ 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/gpt_embeddings_v0.ts | turbo/src/lib/compute/gpt_embeddings_v0.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import type { DGNodeInterface, GCSBaseData } from '$lib/node_data_types';
import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils';
import _ from 'lodash';
import { Dataset } from '$lib/dataset';
import { format, unwrapFunctionS... | 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_v1.ts | turbo/src/lib/compute/argument_extraction_v1.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils';
import {
argument_extraction_prompt_v1,
argument_extraction_system_prompt,
argument_extraction_prompt_v1_suffix
} from '$lib/prompts';
import gpt from '$lib/gpt';
i... | 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/limit_csv_v0.ts | turbo/src/lib/compute/limit_csv_v0.ts | 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';
const $__ = unwrapFunctionStore(format);
export default class LimitCSVNode {
... | 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/count_tokens_v0.ts | turbo/src/lib/compute/count_tokens_v0.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import { getEncoding } from 'js-tiktoken';
import type { TiktokenEncoding } from 'js-tiktoken';
import _ from 'lodash';
import { format, unwrapFunctionStore } from 'svelte-i18n';
import type { DGNodeInterface, BaseData } from '$lib/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/turbo/src/lib/compute/summarize_v0.ts | turbo/src/lib/compute/summarize_v0.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import type { DGNodeInterface, GCSBaseData } from '$lib/node_data_types';
import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils';
import _ from 'lodash';
import gpt from '$lib/gpt';
import { summarize_v0_prompt } from '$lib/pr... | 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_v1.ts | turbo/src/lib/compute/merge_cluster_extraction_v1.ts | import nodes from '$lib/node_register';
import {
merge_extraction_v1_system_prompt,
merge_extraction_prompt_v1,
merge_extraction_v1_suffix
} from '$lib/prompts';
import categories from '$lib/node_categories';
import type { DGNodeInterface, GCSBaseData } from '$lib/node_data_types';
import GPTNode from '$lib/compu... | 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_cluster_extraction_v0.ts | turbo/src/lib/compute/multi_cluster_extraction_v0.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import type { DGNodeInterface, BaseData } from '$lib/node_data_types';
import DeepCopy from 'deep-copy';
import ClusterExtractionNode, {
cluster_extraction_node_data_v1
} from '$lib/compute/cluster_extraction_v1';
import {
multi_... | 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/python_v0.ts | turbo/src/lib/compute/python_v0.ts | import type { DGNodeInterface, BaseData } from '$lib/node_data_types';
import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import _ from 'lodash';
const scriptTemplate = `
import json
inputData = {inputData}
outputData = None
{script}
`;
const dev = 'http://localhost:8000/';
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/turbo/src/lib/compute/test_v0.ts | turbo/src/lib/compute/test_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 TestNode {
id: string;
data: TestData;
position: { x: number; y: number };
type: string;
constructor(node_data: TestNodeInterface... | 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/participant_filter_v0.ts | turbo/src/lib/compute/participant_filter_v0.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import { browser } from '$app/environment';
import type { DGNodeInterface, BaseData } from '$lib/node_data_types';
export default class ParticipantFilterNode {
id: string;
data: ParticipantFilterData;
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/argument_extraction_v0.ts | turbo/src/lib/compute/argument_extraction_v0.ts | import nodes from '$lib/node_register';
import categories from '$lib/node_categories';
import { readFileFromGCS, uploadJSONToGCS } from '$lib/utils';
import { argument_extraction_prompt_v0, argument_extraction_system_prompt } from '$lib/prompts';
import gpt from '$lib/gpt';
import _ from 'lodash';
import { format, unwr... | typescript | Apache-2.0 | ca3453f8e60b0ad25332a4dfa7df96cf767aa9d0 | 2026-01-05T04:59:43.595222Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.