text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|># --coding:utf-8-- # # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. import re import sys import pytest import time from nebula3.graph import ttypes from tests.common.nebula_test_suite import NebulaTestSuite class TestDropSpaceIfExists(N...
fim
vesoft-inc/nebula
python
<|fim_suffix|>dex_1;') self.check_resp_failed(resp) resp = self.execute('DROP EDGE INDEX serve_index_1;') self.check_resp_succeeded(resp) resp = self.execute('DESCRIBE EDGE INDEX serve_index_1;') self.check_resp_failed(resp) resp = self.execute('DROP EDGE INDEX like_in...
fim
vesoft-inc/nebula
python
# --coding:utf-8-- # # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. import re import sys import pytest import time from nebula3.graph import ttypes from tests.common.nebula_test_suite import NebulaTestSuite class TestReservedKeyword(NebulaTestSuite): ...
fim
vesoft-inc/nebula
python
<|fim_suffix|>like(degree) VALUES 102->103:(70)') self.check_resp_succeeded(resp) resp = self.execute('INSERT EDGE teammate(years) VALUES 100->101:(8)') self.check_resp_succeeded(resp) resp = self.execute('INSERT EDGE teammate(years) VALUES 100->102:(3)') self.check_resp_succeede...
fim
vesoft-inc/nebula
python
<|fim_suffix|> query = 'CREATE TAG {}(id int)'.format(self.gen_name(length)) resp = self.execute(query) self.check_resp_failed(resp, ttypes.ErrorCode.E_SYNTAX_ERROR) @classmethod def cleanup(self): resp = self.execute('DROP SPACE test_range_checking') self.check_resp_succeed...
fim
vesoft-inc/nebula
python
# --coding:utf-8-- # # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. import time from tests.common.nebula_test_suite import NebulaTestSuite from tests.common.nebula_test_suite import T_EMPTY class TestSchema(NebulaTestSuite): @classmethod def ...
fim
vesoft-inc/nebula
python
<|fim_suffix|> # type conversion failed try: cmd = 'GO FROM 1004 OVER is_schoolmate YIELD $$.person.name as name, $$.student.age as age \ INTERSECT \ GO FROM 1005 OVER is_schoolmate YIELD $$.person.name as name, $$.student.gender as gender;' resp = s...
fim
vesoft-inc/nebula
python
<|fim_suffix|>lt) # multi tags cmd = 'UPDATE VERTEX 100 SET person.name = "cc", student.name = "cc";' resp = self.execute(cmd) self.check_resp_failed(resp) # set YIELD cmd = 'UPDATE VERTEX 100 SET person.name = "cc", person.age = 15' \ 'YIELD $^.person.nam...
fim
vesoft-inc/nebula
python
<|fim_prefix|># --coding:utf-8-- # # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. import time from tests.common.nebula_test_suite import NebulaTestSuite class TestWh<|fim_suffix|> self.check_resp_succeeded(resp) resp = self.execute('INSERT V...
fim
vesoft-inc/nebula
python
<|fim_prefix|># --coding:utf-8-- # # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. import time from tests.common.nebula_test_suite import NebulaTestSuite class TestYield(NebulaTestSuite): @classmethod def prepare(self): resp = self.exec...
fim
vesoft-inc/nebula
python
<|fim_suffix|> r"(?P<unit>a|an) (?P<err_type>\w+) should be raised at (?P<time>runtime|compile time)(?P<sym>:|.)(?P<msg>.*)" ) ) def raised_type_error(unit, err_type, time, sym, msg, exec_ctx): res = exec_ctx["result_set"][0] ngql = exec_ctx['ngql'] assert not res.is_succeeded(), f"Response should be ...
fim
vesoft-inc/nebula
python
<|fim_suffix|>ble['value'] = v @then('The type of the parsed value should be <_type>') def parsed_as_expected(string_table, _type): val = string_table['value'] type = val.getType() if type == 0: actual = 'EMPTY' elif type == 1: null = val.get_nVal() if null == 0: ac...
fim
vesoft-inc/nebula
python
<|fim_prefix|># Copyright (c) 2021 vesoft inc. All rights reserved.<|fim_suffix|>ing after {duration}s')) def check_nebula_cluster_stop(request, class_fixture_variables, duration, pytestconfig): print('check cluster status...') time.sleep(int(duration)) cluster = class_fixture_variables["cluster"] stopp...
fim
vesoft-inc/nebula
python
<|fim_prefix|># Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 Licens<|fim_suffix|>mport scenarios scenarios('job/Job.feature') <|fim_middle|>e. from pytest_bdd i<|endoftext|>
fim
vesoft-inc/nebula
python
<|fim_suffix|>icense. from pytest_bdd import scenarios scenarios('slowquery/PermissionViaDifferentService.feature') <|fim_prefix|># Copy<|fim_middle|>right (c) 2022 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 L<|endoftext|>
fim
vesoft-inc/nebula
python
# Copyright (c) 2022 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. from pytest_bdd import scenarios scenarios('slowquery/PermissionViaSameService.feature') <|endoftext|>
fim
vesoft-inc/nebula
python
<|fim_prefix|># Copyright (c) 2022 vesoft inc. All rights r<|fim_suffix|>dd import scenarios scenarios('slowquery/KillSlowQueryBaseTest.feature') <|fim_middle|>eserved. # # This source code is licensed under Apache 2.0 License. from pytest_b<|endoftext|>
fim
vesoft-inc/nebula
python
<|fim_suffix|> source code is licensed under Apache 2.0 License. from pytest_bdd import scenarios scenarios('slowquery/KillSlowQueryViaDiffrentService.feature') <|fim_prefix|># Copyright (c) 2021 vesoft i<|fim_middle|>nc. All rights reserved. # # This<|endoftext|>
fim
vesoft-inc/nebula
python
<|fim_prefix|># Copyright (c) 2021 vesoft inc. All rights<|fim_suffix|>er Apache 2.0 License. from pytest_bdd import scenarios scenarios('slowquery/KillSlowQueryViaSameService.feature') <|fim_middle|> reserved. # # This source code is licensed und<|endoftext|>
fim
vesoft-inc/nebula
python
<|fim_prefix|># Copyright (c) 2021 vesoft inc. All rights reserved. # # T<|fim_suffix|>rom pytest_bdd import scenarios scenarios('ldbc') <|fim_middle|>his source code is licensed under Apache 2.0 License. f<|endoftext|>
fim
vesoft-inc/nebula
python
<|fim_prefix|># Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed unde<|fim_suffix|>test_bdd import scenarios scenarios('features', 'openCypher/features') <|fim_middle|>r Apache 2.0 License. from py<|endoftext|>
fim
vesoft-inc/nebula
python
<|fim_suffix|> assert mmh2(b'hello') == 2762169579135187400 assert mmh2(b'World') == -295471233978816215 assert mmh2(b'Hello World') == 2146989006636459346 assert mmh2(b'Hello Wo') == -821961639117166431 <|fim_prefix|># Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed und...
fim
vesoft-inc/nebula
python
<|fim_prefix|># Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. # import re import ply.lex as lex import ply.yacc as yacc if __name__ == "__main__": from mmh2 import mmh2 else: from tests.tck.utils.mmh2 import mmh2 from nebula3.common.ttypes impo...
fim
vesoft-inc/nebula
python
<|fim_suffix|>e, variables: dict): ds = DataSet() column_names = string_table['column_names'] ds.column_names = column_names ds.rows = [ Row(values=[ _parse_value(row[i], variables) for i in range(len(column_names)) ]) for row in string_table['rows'] ] return ds <|fim...
fim
vesoft-inc/nebula
python
<|fim_suffix|>ault: { return nebula::Value::kNullValue; } } } <|fim_prefix|>/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #include "standard_deviation.h" #include <cmath> #include <vector> #include "../src/common/datatypes/List.h" ...
fim
vesoft-inc/nebula
cpp
<|fim_prefix|>/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #ifndef UDF_PROJECT_STANDARD_DEVIATION_H #define UDF_PROJECT_STANDARD_DEVIATION_H #include "../src/common/function/GraphFunction.h" // Example of a UDF function that calculates the st...
fim
vesoft-inc/nebula
c
<|fim_suffix|><|fim_prefix|>const btn = document.ge<|fim_middle|>tElementById('btn') let count = 0 function render() { btn.innerText = `Count: ${count}` } btn.addEventListener('click', () => { // Count from 1 to 10. if (count < 10) { count += 1 render() } })<|endoftext|>
fim
viatsko/awesome-vscode
javascript
<|fim_suffix|>s.path: sys.path.append(src_path) <|fim_prefix|>import sys from pathlib import Path # Add the src directory to Python path for imports # This is a temporary solution while we develop the backend src_path = str(Path(__fil<|fim_middle|>e__).parent.parent.parent / "src") if src_path not in sy<|endoftext...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from logging.config import fileConfig from sqlalchemy import engine_from_config from sqlalchemy import pool from alembic import context # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the config file for Python...
fim
virattt/ai-hedge-fund
python
"""add_data_column_to_hedge_fund_flows Revision ID: 1b1feba3d897 Revises: 5274886e5bee Create Date: 2025-06-22 17:30:50.992184 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision: str = '1b1feba3d897' down_revision: Union[str, None...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|> sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_hedge_fund_flow_runs_id'), 'hedge_fund_flow_runs', ['id'], unique=False) op.create_index(op.f('ix_hedge_fund_flow_runs_flow_id'), 'hedge_fund_flow_runs', ['flow_id'], unique=False) # ### end Alembic commands ### def downgrade()...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>"""Add HedgeFundFlowRunCycle table and update HedgeFundFlowRun Revision ID: 3f9a6b7c8d2e Revises: 2f8c5d9e4b1a Create Date: 2024-11-27 10:00:00.000000 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3f9a6b7c8d2e' down_revision = '2f8c5d9e4b1a' bra...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>"""Add HedgeFundFlow table Revision ID: 5274886e5bee Revises: Create Date: 2025-06-20 14:50:24.736989 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision: str = '5274886e5bee' down_revision: Union[str, None] = None b...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>"""add_api_keys_table Revision ID: d5e78f9a1b2c Revises: 3f9a6b7c8d2e Create Date: 2025-07-27 15:20:00.000000 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision: str = 'd5e78f9a1b2c' down_revision: Union[str, None] =...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from .connection <|fim_suffix|>SessionLocal", "Base"] <|fim_middle|>import get_db, engine, SessionLocal from .models import Base __all__ = ["get_db", "engine", "<|endoftext|>
fim
virattt/ai-hedge-fund
python
<|fim_suffix|> finally: db.close() <|fim_prefix|>from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import os from pathlib import Path # Get the backend directory path BACKEND_DIR = Path(__file_<|fim_middle|>_).parent.parent DATA...
fim
virattt/ai-hedge-fund
python
from sqlalchemy import Column, Integer, String, DateTime, Text, Boolean, JSON, ForeignKey from sqlalchemy.sql import func from .connection import Base class HedgeFundFlow(Base): """Table to store React Flow configurations (nodes, edges, viewport)""" __tablename__ = "hedge_fund_flows" id = Column(Inte...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware import logging import asyncio from app.backend.routes import api_router from app.backend.database.connection import engine from app.backend.database.models import Base from app.backend.services.ollama_service import ollama_ser...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>rt of processing""" type: Literal["start"] = "start" timestamp: Optional[str] = None class ProgressUpdateEvent(BaseEvent): """Event containing an agent's progress update""" type: Literal["progress"] = "progress" agent: str ticker: Optional[str] = None status: str timesta...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>lass BacktestPerformanceMetrics(BaseModel): sharpe_ratio: Optional[float] = None sortino_ratio: Optional[float] = None max_drawdown: Optional[float] = None max_drawdown_date: Optional[str] = None long_short_ratio: Optional[float] = None gross_exposure: Optional[float] = None ne...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>FlowRepository"] <|fim_prefix|>from .flow_repository <|fim_middle|>import FlowRepository __all__ = ["<|endoftext|>
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from sqlalchemy.orm import Session from sqlalchemy import func from typing import List, Optional from datetime import datetime from app.backend.database.models import ApiKey class ApiKeyRepository: """Repository for API key database operations""" def __init__(self, db: Session): se...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|> nodes=original.nodes, edges=original.edges, viewport=original.viewport, data=original.data, is_template=False, # Copies are not templates by default tags=original.tags ) <|fim_prefix|>from typing import List, Optional from sqlal...
fim
virattt/ai-hedge-fund
python
from typing import List, Optional, Dict, Any from datetime import datetime from sqlalchemy.orm import Session from sqlalchemy import desc, func from app.backend.database.models import HedgeFundFlowRun from app.backend.models.schemas import FlowRunStatus class FlowRunRepository: """Repository for HedgeFundFlowRun ...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from fastapi import APIRouter from app.backend.routes.hedge_fund import router as hedge_fund_router from app.backend.routes.health import router as health_router from app.backend.routes.storage import router as storage_router fr<|fim_suffix|>_router, tags=["hedge-fund"]) api_router.include_router(storage...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from fastapi import APIRouter, HTTPException, Depends from sqlalchemy.orm import Session from typing import List from app.backend.database import get_db from app.backend.repositories.api_key_repository import ApiKeyRepository from app.backend.models.schemas import ( ApiKeyCreateRequest, ApiKeyUpd...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from fastapi import APIRouter, HTTPException, Depends, Query from sqlalchemy.orm import Session from typing import List, Optional from app.backend.database import get_db from app.backend.repositories.flow_run_repository import FlowRunRepository from app.backend.repositories.flow_repository import FlowRep...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from fastapi import APIRouter, HTTPException, Depends from sqlalchemy.orm import Session from typing import List from app.backend.database import get_db from app.backend.repositories.flow_repository import FlowRepository from app.backend.models.schemas import ( FlowCreateRequest, FlowUpdateReque...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>ield f"data: {json.dumps(data)}\n\n" # Wait 1 second await asyncio.sleep(1) return StreamingResponse(event_generator(), media_type="text/event-stream") <|fim_prefix|>from fastapi import APIRouter from fastapi.responses import StreamingResponse import asyncio import json rout...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from fastapi import APIRouter, HTTPException, Request, Depends from fastapi.responses import StreamingResponse from sqlalchemy.orm import Session import asyncio from app.backend.database import get_db from app.backend.models.schemas import ErrorResponse, HedgeFundRequest, BacktestRequest, BacktestDayResu...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>": ErrorResponse, "description": "Internal server error"}, }, ) async def get_language_model_providers(): """Get the list of available model providers with their models grouped.""" try: models = get_models_list() # Group models by provider providers = {} ...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>"/models/recommended", response_model=List[RecommendedModel], responses={ 500: {"model": ErrorResponse, "description": "Internal server error"}, }, ) async def get_recommended_models(): """Get list of recommended Ollama models.""" try: models = await ollama_service.get_...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>sn't exist project_root = Path(__file__).parent.parent.parent.parent # Navigate to project root outputs_dir = project_root / "outputs" outputs_dir.mkdir(exist_ok=True) # Construct file path file_path = outputs_dir / request.filename # Save...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>. :return: A new function that can be called by LangGraph. """ return partial(agent_function, agent_id=agent_id) <|fim_prefix|>from functools import partial from typing import Callable from src.graph.state impo<|fim_middle|>rt AgentState def create_agent_function(agent_function: Callable, age...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|> """ api_keys = self.repository.get_all_api_keys(include_inactive=False) return {key.provider: key.key_value for key in api_keys} def get_api_key(self, provider: str) -> Optional[str]: """Get a specific API key by provider""" api_key = self.repository.get_api_k...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta import pandas as pd import numpy as np from typing import Callable, Dict, List, Optional, Any import asyncio from src.tools.api import ( get_company_news, get_price_data, get_prices, get_financial_me...
fim
virattt/ai-hedge-fund
python
<|fim_suffix|>gent_key(unique_agent_id) # Track portfolio manager nodes for special handling (before ANALYST_CONFIG check) if base_agent_key == "portfolio_manager": portfolio_manager_nodes.add(unique_agent_id) continue # Skip if the base agent key is...
fim
virattt/ai-hedge-fund
python
import asyncio import os import sys import platform import subprocess import time import re import json import queue import threading from pathlib import Path from typing import Dict, List, Optional, AsyncGenerator import logging import signal import ollama logger = logging.getLogger(__name__) class OllamaService: ...
fim
virattt/ai-hedge-fund
python
from typing import Optional, List from app.backend.models.schemas import PortfolioPosition def create_portfolio(initial_cash: float, margin_requirement: float, tickers: list[str], portfolio_positions: Optional[List[PortfolioPosition]] = None) -> dict: # Initialize base portfolio structure portfolio = { ...
fim
virattt/ai-hedge-fund
python
<|fim_prefix|>/** @type {import('postcss-l<|fim_suffix|>dcss: {}, autoprefixer: {}, }, }; export default config; <|fim_middle|>oad-config').Config} */ const config = { plugins: { tailwin<|endoftext|>
fim
virattt/ai-hedge-fund
javascript
<|fim_suffix|>/> ); } <|fim_prefix|>import { Layout } from './components/layout'; import { Toaster } from './components/<|fim_middle|>ui/sonner'; export default function App() { return ( <> <Layout /> <Toaster /> <<|endoftext|>
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Background, BackgroundVariant, ColorMode, Connection, Edge, EdgeChange, MarkerType, NodeChange, ReactFlow, addEdge, useEdgesState, useNodesState } from '@xyflow/react'; import { useTheme } from 'next-themes'; import { useCallback, useEffect, useRef, useState } from 'react'...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|> </TabsProvider> </FlowProvider> </ReactFlowProvider> </SidebarProvider> ); }<|fim_prefix|>import { BottomPanel } from '@/components/panels/bottom/bottom-panel'; import { LeftSidebar } from '@/components/panels/left/left-sidebar'; import { RightSidebar } from '@/components/panels/...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>ResetIcon /> </ControlButton> </Controls> ); } <|fim_prefix|>import { ResetIcon } from '@radix-ui/react-icons'; import { ControlButton, Controls } from '@xyflow/react'; type CustomControlsProps = { onReset: () => void; }; export function CustomControls({ onReset }: CustomControlsProp...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>vider */} <div className="w-px h-5 bg-ramp-grey-700 mx-1" /> {/* Settings */} <Button variant="ghost" size="sm" onClick={onSettingsClick} className="h-8 w-8 p-0 text-muted-foreground hover:text-foreground hover:bg-ramp-grey-700 transition-colors" ...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>HeightChange?.(height); }, [height, onHeightChange]); if (isCollapsed) { return null; } return ( <div ref={elementRef} className={cn( "bg-panel flex flex-col relative border-t", isDragging ? "select-none" : "" )} style={{ height: `${heigh...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'; import { cn } from '@/lib/utils'; import { MoreHorizontal } from 'lucide-react'; import { getActionColor } from './output-...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>interface DebugConsoleTabProps { className?: string; } export function DebugConsoleTab({ className }: DebugConsoleTabProps) { return ( <div className={className}> <div className="h-full bg-background/50 rou<|fim_suffix|> Debug console is ready... </div> </div> </d...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>export { DebugConsol<|fim_suffix|>ottom/tabs/output-tab'; export { ProblemsTab } from '@/components/panels/bottom/tabs/problems-tab'; export { TerminalTab } from '@/components/panels/bottom/tabs/terminal-tab'; <|fim_middle|>eTab } from '@/components/panels/bottom/tabs/debug-console-tab'; export { OutputT...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>le, color: 'text-green-500' }; case 'error': return { icon: XCircle, color: 'text-red-500' }; case 'in_progress': return { icon: MoreHorizontal, color: 'text-yellow-500' }; default: return { icon: Clock, color: 'text-muted-foreground' }; } } // Helper function to get signa...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { useFlowContext } from '@/contexts/flow-context'; import { useNodeContext } from '@/contexts/node-context'; import { cn } from '@/lib/utils'; import { useEffect, useState } from 'react'; import { BacktestOutput } from './backtest-output'; import { sortAgents } from './output-tab-utils'; import { R...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>interface ProblemsTabProps { className?: string; } export function ProblemsTab({ className }: ProblemsTabProps) { return ( <div className={<|fim_suffix|>-3 text-sm overflow-auto"> <div className="text-muted-foreground"> No problems detected </div> </div> </div>...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Copy } from 'lucide-react'; import { useState } from 'react'; import { isJsonString } from './output-tab-utils'; // Component to render reasoning content with JSON formatting and copy button export function ReasoningContent({ content }: { content: any }) { const [copySuccess, setCopySuccess] =...
fim
virattt/ai-hedge-fund
typescript
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { cn } from '@/lib/utils'; import { useEffect, u...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>imary">Welcome to AI Hedge Fund Terminal</span> {'\n'} <span className="text-muted-foreground">Type commands here...</span> {'\n'} <span className="text-blue-500">$ </span> <span className="animate-pulse">_</span> </div> </div> </div> )...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|> variant="ghost" size="icon" onClick={onCreate} className="h-6 w-6 text-primary hover-bg" title="Create new flow" > <Plus size={14} /> </Button> </div> </div> ); } <|fim_prefix|>import { Button } from '@/components/ui/butt...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>f (event.key === 'Escape') { onClose(); } }; if (isOpen) { document.addEventListener('mousedown', handleClickOutside); document.addEventListener('keydown', handleEscape); } return () => { document.removeEventListener('mousedown', handleClickOutside); ...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } <|fim_suffix|> </Dialog> ); } <|fim_middle|>from '@/components/ui/dialog'; import { Input } from '@/components/ui/input'; import { useT...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>; const { updateFlowTabTitle } = useTabsContext(); // Update form when flow changes useEffect(() => { if (flow) { setName(flow.name); setDescription(flow.description || ''); } }, [flow]); const handleSave = async () => { if (!flow || !name.trim()) { error('Flow na...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|> onDeleteFlow={onDeleteFlow} onRefresh={onRefresh} isActive={currentFlowId === flow.id} /> {index < flows.length - 1 && ( <Separator className="mx-4" /> )} </div> ))} </div> ...
fim
virattt/ai-hedge-fund
typescript
import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { useFlowConnectionState } from '@/hooks/use-flow-connection'; import { cn } from '@/lib/utils'; import { flowService } from '@/services/flow-service'; import { Flow } from '@/types/flow'; import { Calendar, FileT...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { FlowItemGroup } from '@/components/panels/left/flow-item-group'; import { SearchBox } from '@/components/panels/search-box'; import { Accordion } from '@/components/ui/accordion'; import { useTabsContext } from '@/contexts/tabs-context'; import { Flow } from '@/types/flow'; import { FolderOpen } ...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>emplateFlows} onSearchChange={setSearchQuery} onAccordionChange={handleAccordionChange} onLoadFlow={handleOpenFlowInTab} onDeleteFlow={handleDeleteFlow} onRefresh={handleRefresh} /> {/* Resize handle - on the right side for left sidebar */} ...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>ons({ }: ComponentActionsProps) { return ( <div className="p-2 flex justify-between flex-shrink-0 items-center border-b mt-4"> <span className="text-primary text-sm font-medium ml-4">Components</span> {/* <div className="flex items-center gap-1"> <Button variant="ghost"...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import ComponentItem from '@/components/panels/right/component-item'; import { AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; import { useFlowContext } from '@/contexts/flow-context'; import { ComponentGroup } from '@/data/sideba<|fim_suffix|>ctiveItem }: ComponentIt...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|> className="h-5 w-5 hover-bg hover:text-primary text-muted-foreground flex items-center justify-center" onClick={handlePlusClick} aria-label="Add" > <Plus size={14} /> </Button> </div> </div> ); } <|fim_prefix|>import { Button } from "@/components/...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>ilteredGroups: ComponentGroup[]; activeItem: string | null; onSearchChange: (query: string) => void; onAccordionChange: (value: string[]) => void; } export function ComponentList({ componentGroups, searchQuery, isLoading, openGroups, filteredGroups, activeItem, onSearchChange, onAcc...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { ComponentGroup, getComponentGroups } from '@/data/sidebar-components'; import { useComponentGroups } from '@/hooks/use-component-groups'; import { useResizable } from '@/hooks/use-resizable'; import { cn } from '@/lib/utils'; import { ReactNode, useEffect, useState } from 'react'; import { Compon...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Button } from '@/components/ui/button'; import { Search } from 'lucide-react'; interface SearchBoxProps { value: string; o<|fim_suffix|>lue} onChange={(e) => onChange(e.target.value)} /> {value && ( <Button variant="ghost" size="ico...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; import { apiKeysService } from '@/services/api-keys-api'; import { Eye, EyeOff, Key, Trash2 } from 'lucide-react'; import { useEf...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|> })} </div> </CardContent> </Card> </div> ); } <|fim_prefix|>import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { cn } from '@/lib/utils'; import { Monitor, Moon, Sun } from 'lucid...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>loud'; export { OllamaSettings } from './models/ollama'; <|fim_prefix|>export { ApiKeysSettings } from './api-keys'; export { ThemeSettings } from './appearance'; export { Model<|fim_middle|>s } from './models'; export { CloudModels } from './models/c<|endoftext|>
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Badge } from '@/components/ui/badge'; import { cn } from '@/lib/utils'; import { Cloud, RefreshCw } from 'lucide-react'; import { useEffect, useState } from 'react'; interface CloudModelsProps { className?: string; } interface CloudModel { display_name: string; model_name: string; provi...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'; import { cn } from '@/lib/utils'; import { AlertTriangle, Brain, CheckCircle, Download...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>t-blue-500 shadow-sm" : isDisabled ? "text-muted-foreground cursor-not-allowed" : "text-primary hover:text-primary hover-bg" )} > <Icon className="h-4 w-4" /> {section.label} {isDisab...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>Name={cn( "w-full flex items-center gap-3 px-3 py-2 text-left rounded-md text-sm transition-colors", isSelected ? "active-bg text-blue-500" : "text-primary hover-item" )} > ...
fim
virattt/ai-hedge-fund
typescript
<|fim_prefix|>import { Flow } from '@/components/Flow'; import { useFlowContext } from '@/contexts/flow-context'; import { useTabsContext } from '@/contexts/tabs-context'; import { setNodeInternalState, setCurrentFlowId as setNodeStateFlowId } from '@/hooks/use-node-state'; import { cn } from '@/lib/utils'; import { fl...
fim
virattt/ai-hedge-fund
typescript
<|fim_suffix|>ick={(e) => { e.stopPropagation(); closeTab(tab.id); }} onMouseDown={(e) => e.stopPropagation()} // Prevent drag when clicking close button title="Close tab" > <X size={11} className="transition-transform d...
fim
virattt/ai-hedge-fund
typescript
import { useTabsContext } from '@/contexts/tabs-context'; import { cn } from '@/lib/utils'; import { TabService } from '@/services/tab-service'; import { FileText, FolderOpen } from 'lucide-react'; import { useEffect } from 'react'; interface TabContentProps { className?: string; } export function TabContent({ clas...
fim
virattt/ai-hedge-fund
typescript
import * as React from "react" import * as AccordionPrimitive from "@radix-ui/react-accordion" import { ChevronDown } from "lucide-react" import { cn } from "@/lib/utils" const Accordion = AccordionPrimitive.Root const AccordionItem = React.forwardRef< React.ElementRef<typeof AccordionPrimitive.Item>, React.Comp...
fim
virattt/ai-hedge-fund
typescript