id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
323,800 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/images/client.py | air.images.client.ImagesClient | from air.types.constants import DEFAULT_TIMEOUT
import requests
from air import __version__
from air.types import ImagesResponse, SegmentationResponse
class ImagesClient:
"""
A synchronous client for image related endpoints.
This class handles sending requests to image related endpoints
and converts t... |
class ImagesClient:
'''
A synchronous client for image related endpoints.
This class handles sending requests to image related endpoints
and converts the responses into Pydantic models for type safety.
'''
def __init__(self, base_url: str, api_key: str, default_headers: dict[str, str] | None=N... | 4 | 4 | 45 | 5 | 25 | 15 | 2 | 0.67 | 0 | 8 | 2 | 0 | 3 | 3 | 3 | 3 | 145 | 20 | 75 | 41 | 47 | 50 | 27 | 17 | 23 | 3 | 0 | 1 | 7 |
323,801 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/client.py | air.knowledge.client.AsyncKnowledgeClient | import asyncio
from functools import cached_property
class AsyncKnowledgeClient:
"""
Asynchronous client for knowledge services, including Graph API.
"""
def __init__(self, base_url: str, api_key: str, default_headers: dict[str, str] | None=None):
"""
Initialize the async knowledge cli... |
class AsyncKnowledgeClient:
'''
Asynchronous client for knowledge services, including Graph API.
'''
def __init__(self, base_url: str, api_key: str, default_headers: dict[str, str] | None=None):
'''
Initialize the async knowledge client.
Args:
base_url (str): API ba... | 7 | 5 | 11 | 1 | 5 | 5 | 1 | 0.88 | 0 | 4 | 1 | 0 | 4 | 3 | 4 | 4 | 54 | 8 | 25 | 19 | 10 | 22 | 14 | 10 | 8 | 1 | 0 | 1 | 4 |
323,802 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/client.py | air.knowledge.client.KnowledgeClient | from air.knowledge.document_processing_client import DocumentProcessingClient
class KnowledgeClient:
"""
Synchronous client for knowledge services, including document processing.
"""
def __init__(self, base_url: str, api_key: str, default_headers: dict[str, str] | None=None):
"""
Initi... |
class KnowledgeClient:
'''
Synchronous client for knowledge services, including document processing.
'''
def __init__(self, base_url: str, api_key: str, default_headers: dict[str, str] | None=None):
'''
Initialize the sync knowledge client.
Args:
base_url (str): API... | 3 | 3 | 14 | 1 | 7 | 6 | 1 | 1 | 0 | 4 | 1 | 0 | 2 | 4 | 2 | 2 | 34 | 4 | 15 | 12 | 7 | 15 | 8 | 7 | 5 | 1 | 0 | 0 | 2 |
323,803 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/document_processing_client.py | air.knowledge.document_processing_client.DocumentProcessingClient | import functools
from air.api.vector_db import VectorDBRegistry
from typing import Dict, List, Union
import os
import requests
from air.types import Document, DocumentProcessingConfig
import base64
from air import __base_url__, __version__, auth
from air.knowledge.pipeline import ChunkingRegistry, Embedding, VectorDBUp... |
class DocumentProcessingClient:
'''
Interface for interacting with the AI Refinery's knowledge extraction service,
allowing users to extract knowledge from input documents.
'''
def __init__(self, *, base_url: str='') -> None:
'''
Initialize the DocumentProcessingClient with authent... | 5 | 5 | 47 | 4 | 30 | 13 | 4 | 0.47 | 0 | 16 | 6 | 0 | 4 | 7 | 4 | 4 | 201 | 22 | 122 | 39 | 109 | 57 | 68 | 30 | 63 | 6 | 0 | 2 | 16 |
323,804 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/graph_visualization/graph_display.py | air.knowledge.graph_visualization.graph_display.GraphDisplay | import networkx as nx
from matplotlib import colormaps as cm
import matplotlib.pyplot as plt
from typing import List, Union
import numpy as np
class GraphDisplay:
"""
Base class that show processed graph
"""
@classmethod
def _map_edge_color(cls, graph: nx.Graph):
"""
Map the graphn... |
class GraphDisplay:
'''
Base class that show processed graph
'''
@classmethod
def _map_edge_color(cls, graph: nx.Graph):
'''
Map the graphnode weight to a color.
Parameters:
- graph (nxGraph): networkx graph
Return:
- List: The list of color code
... | 5 | 3 | 58 | 8 | 39 | 13 | 5 | 0.36 | 0 | 8 | 0 | 0 | 0 | 0 | 2 | 2 | 123 | 17 | 81 | 32 | 66 | 29 | 47 | 18 | 44 | 7 | 0 | 2 | 9 |
323,805 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/graph_visualization/graph_processing.py | air.knowledge.graph_visualization.graph_processing.GraphProcessing | from graphrag.index.operations.cluster_graph import cluster_graph as graphrag_clustering
import networkx as nx
from typing import Union
import pandas as pd
from air.knowledge.graph_visualization.graph_display import GraphDisplay
class GraphProcessing:
"""
Class that performs graph clustering and visualization
... |
class GraphProcessing:
'''
Class that performs graph clustering and visualization
'''
@classmethod
def cluster_graph(cls, graph: nx.Graph, max_community_size: int=1) -> pd.DataFrame:
'''
Method to perform hierarchical clustering of given graph,
until the resulting final comm... | 7 | 4 | 43 | 2 | 30 | 11 | 4 | 0.39 | 0 | 6 | 1 | 0 | 0 | 0 | 3 | 3 | 140 | 9 | 95 | 33 | 74 | 37 | 37 | 13 | 33 | 7 | 0 | 4 | 11 |
323,806 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/knowledge_graph/base_knowledge_graph.py | air.knowledge.knowledge_graph.base_knowledge_graph.BaseKnowledgeGraph | from air.types import KnowledgeGraphConfig
from typing import Union
import os
from abc import ABCMeta, abstractmethod
class BaseKnowledgeGraph(metaclass=KnowledgeGraphMeta):
"""
Base class for a knowledge graph.
"""
def __init__(self, graph_config: KnowledgeGraphConfig):
self.base_url = os.env... |
class BaseKnowledgeGraph(metaclass=KnowledgeGraphMeta):
'''
Base class for a knowledge graph.
'''
def __init__(self, graph_config: KnowledgeGraphConfig):
pass
@abstractmethod
async def build(self) -> bool:
'''
Add an entity to the knowledge graph.
'''
... | 8 | 4 | 8 | 0 | 5 | 2 | 2 | 0.48 | 1 | 5 | 1 | 2 | 4 | 8 | 4 | 25 | 41 | 4 | 25 | 16 | 17 | 12 | 22 | 13 | 17 | 3 | 4 | 1 | 6 |
323,807 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/knowledge_graph/base_knowledge_graph.py | air.knowledge.knowledge_graph.base_knowledge_graph.KnowledgeGraphMeta | from abc import ABCMeta, abstractmethod
from air.knowledge.knowledge_graph.knowledge_graph_registry import KnowledgeGraphRegistry
class KnowledgeGraphMeta(ABCMeta):
"""
A metaclass that registers any concrete subclass of BaseKnowledgeGraph
in KnowledgeGraphRegistry at creation time.
Because BaseKnowle... |
class KnowledgeGraphMeta(ABCMeta):
'''
A metaclass that registers any concrete subclass of BaseKnowledgeGraph
in KnowledgeGraphRegistry at creation time.
Because BaseKnowledgeGraph already depends on ABC (which uses ABCMeta),
we must inherit from ABCMeta here to avoid a metaclass conflict.
... | 2 | 1 | 10 | 1 | 6 | 3 | 2 | 1.29 | 1 | 2 | 1 | 1 | 1 | 0 | 1 | 21 | 19 | 3 | 7 | 2 | 5 | 9 | 5 | 2 | 3 | 2 | 3 | 1 | 2 |
323,808 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/knowledge_graph/fast_graphrag.py | air.knowledge.knowledge_graph.fast_graphrag.FastGraphRAG | from air.types import KnowledgeGraphConfig
from graphrag.config.enums import IndexingMethod
from air.knowledge.knowledge_graph.graphrag import GraphRAG
from air.knowledge.knowledge_graph.base_knowledge_graph import BaseKnowledgeGraph
class FastGraphRAG(BaseKnowledgeGraph):
"""
FastGraphRAG knowledge graph clas... |
class FastGraphRAG(BaseKnowledgeGraph):
'''
FastGraphRAG knowledge graph class, inherits from BaseKnowledgeGraph
'''
def __init__(self, config: KnowledgeGraphConfig):
'''
Initialize the GraphRAG module
'''
pass
async def build(self) -> bool:
'''
... | 5 | 5 | 6 | 0 | 3 | 4 | 1 | 1.42 | 1 | 4 | 2 | 0 | 4 | 1 | 4 | 29 | 33 | 5 | 12 | 8 | 5 | 17 | 10 | 6 | 5 | 1 | 5 | 0 | 4 |
323,809 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/knowledge_graph/graphrag.py | air.knowledge.knowledge_graph.graphrag.GraphRAG | from graphrag.cli.initialize import initialize_project_at
import asyncio
from pathlib import Path
import networkx as nx
from graphrag.logger.factory import LoggerFactory
import shutil
from typing import Union
from graphrag.config.enums import IndexingMethod, SearchMethod
from air.utils import secure_join
from air.knowl... |
class GraphRAG(BaseKnowledgeGraph):
'''
GraphRAG knowledge graph class, inherits from BaseKnowledgeGraph
'''
def __init__(self, config: KnowledgeGraphConfig):
'''
Initialize the GraphRAG module
'''
pass
@staticmethod
def add_node_edge_labels(communities_df: ... | 7 | 6 | 63 | 2 | 58 | 4 | 7 | 0.08 | 1 | 10 | 2 | 0 | 4 | 5 | 5 | 30 | 327 | 14 | 291 | 69 | 276 | 24 | 152 | 57 | 145 | 12 | 5 | 3 | 34 |
323,810 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/knowledge_graph/graphrag.py | air.knowledge.knowledge_graph.graphrag.HiddenPrints | import os
import sys
class HiddenPrints:
"""
Class to suppress print statements
"""
def __enter__(self):
self._original_stdout = sys.stdout
sys.stdout = open(os.devnull, 'w', encoding='utf-8')
def __exit__(self, exc_type, exc_val, exc_tb):
sys.stdout.close()
sys.st... |
class HiddenPrints:
'''
Class to suppress print statements
'''
def __enter__(self):
pass
def __exit__(self, exc_type, exc_val, exc_tb):
pass | 3 | 1 | 4 | 0 | 3 | 1 | 1 | 0.57 | 0 | 0 | 0 | 0 | 2 | 1 | 2 | 2 | 13 | 2 | 7 | 4 | 4 | 4 | 7 | 4 | 4 | 1 | 0 | 0 | 2 |
323,811 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/knowledge_graph/knowledge_graph_registry.py | air.knowledge.knowledge_graph.knowledge_graph_registry.KnowledgeGraphRegistry | class KnowledgeGraphRegistry:
"""
A global registry that keeps track of all knowledge graph classes
(subclasses of BaseKnowledgeGraph).
"""
_registry = {}
@classmethod
def register(cls, subclass):
"""
Register a subclass in the global registry. The key is the class name,
... | class KnowledgeGraphRegistry:
'''
A global registry that keeps track of all knowledge graph classes
(subclasses of BaseKnowledgeGraph).
'''
@classmethod
def register(cls, subclass):
'''
Register a subclass in the global registry. The key is the class name,
but you can... | 7 | 4 | 6 | 0 | 3 | 4 | 1 | 1.15 | 0 | 2 | 0 | 0 | 0 | 0 | 3 | 3 | 32 | 4 | 13 | 9 | 6 | 15 | 10 | 6 | 6 | 2 | 0 | 1 | 4 |
323,812 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/knowledge_graph_client.py | air.knowledge.knowledge_graph_client.KnowledgeGraphClient | from air.utils import copy_files, secure_join
import logging
from air.types import Document, KnowledgeGraphConfig
import asyncio
from typing import List, Union
from air.knowledge.graph_visualization import GraphProcessing
import os
from air.knowledge.knowledge_graph import KnowledgeGraphRegistry
import aiofiles
class ... |
class KnowledgeGraphClient:
'''
Interface for interacting with the AI Refinery's knowledge extraction service,
with knowledge represented as a graph.
'''
def create_project(self, graph_config: KnowledgeGraphConfig):
'''
Initializes and sets up a knowledge graph project based on the... | 6 | 6 | 36 | 1 | 26 | 10 | 4 | 0.4 | 0 | 11 | 4 | 0 | 5 | 2 | 5 | 5 | 190 | 11 | 130 | 46 | 104 | 52 | 70 | 24 | 64 | 6 | 0 | 3 | 20 |
323,813 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/pipeline/chunking/base_chunking.py | air.knowledge.pipeline.chunking.base_chunking.BaseChunking | from typing import List, Tuple
from abc import ABCMeta, abstractmethod
from air.types import ChunkingConfig, Document
class BaseChunking(metaclass=ChunkingMeta):
"""
Base class for chunking strategies.
"""
def __init__(self, chunking_config: ChunkingConfig):
self.chunk_size = chunking_config.c... |
class BaseChunking(metaclass=ChunkingMeta):
'''
Base class for chunking strategies.
'''
def __init__(self, chunking_config: ChunkingConfig):
pass
@abstractmethod
def run(self, documents: List[Document]) -> Tuple[List[Document], bool]:
'''
Chunk a list of documents a... | 4 | 2 | 4 | 0 | 2 | 2 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 2 | 2 | 23 | 14 | 2 | 6 | 6 | 2 | 6 | 5 | 5 | 2 | 1 | 4 | 0 | 2 |
323,814 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/pipeline/chunking/base_chunking.py | air.knowledge.pipeline.chunking.base_chunking.ChunkingMeta | from abc import ABCMeta, abstractmethod
from air.knowledge.pipeline.chunking.chunking_registry import ChunkingRegistry
class ChunkingMeta(ABCMeta):
"""
A metaclass that registers any concrete subclass of BaseChunking
in ChunkingRegistry at creation time.
Because BaseChunking already depends on ABC (wh... |
class ChunkingMeta(ABCMeta):
'''
A metaclass that registers any concrete subclass of BaseChunking
in ChunkingRegistry at creation time.
Because BaseChunking already depends on ABC (which uses ABCMeta),
we must inherit from ABCMeta here to avoid a metaclass conflict.
'''
def __init__(cl... | 2 | 1 | 10 | 1 | 6 | 3 | 2 | 1.29 | 1 | 2 | 1 | 1 | 1 | 0 | 1 | 21 | 19 | 3 | 7 | 2 | 5 | 9 | 5 | 2 | 3 | 2 | 3 | 1 | 2 |
323,815 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/pipeline/chunking/brute_force_chunking.py | air.knowledge.pipeline.chunking.brute_force_chunking.BruteForceChunking | from air.knowledge.pipeline.chunking.base_chunking import BaseChunking
import uuid
from typing import List, Tuple
from air.types import Document, TextElement
from tqdm import tqdm
class BruteForceChunking(BaseChunking):
"""
BruteForce Chunking strategy class
Split text into fixed-length chunks with option... |
class BruteForceChunking(BaseChunking):
'''
BruteForce Chunking strategy class
Split text into fixed-length chunks with optional overlap.
Instead of allowing nested document structures, each document
will be split into multiple smaller documents, each containing
only one text element.
'''
... | 4 | 4 | 24 | 3 | 14 | 9 | 2 | 0.79 | 1 | 6 | 2 | 0 | 3 | 0 | 3 | 26 | 85 | 13 | 43 | 20 | 35 | 34 | 22 | 16 | 18 | 4 | 5 | 2 | 7 |
323,816 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/pipeline/chunking/chunking_registry.py | air.knowledge.pipeline.chunking.chunking_registry.ChunkingRegistry | class ChunkingRegistry:
"""
A global registry that keeps track of all chunking classes
(subclasses of BaseChunking).
"""
_registry = {}
@classmethod
def register(cls, subclass):
"""
Register a subclass in the global registry. The key is the class name,
but you can ch... | class ChunkingRegistry:
'''
A global registry that keeps track of all chunking classes
(subclasses of BaseChunking).
'''
@classmethod
def register(cls, subclass):
'''
Register a subclass in the global registry. The key is the class name,
but you can choose any naming ... | 7 | 4 | 6 | 0 | 3 | 4 | 1 | 1.15 | 0 | 1 | 0 | 0 | 0 | 0 | 3 | 3 | 32 | 4 | 13 | 9 | 6 | 15 | 10 | 6 | 6 | 2 | 0 | 1 | 4 |
323,817 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/pipeline/chunking/semantic_chunking.py | air.knowledge.pipeline.chunking.semantic_chunking.SemanticChunking | import re
from air.knowledge.pipeline.chunking.base_chunking import BaseChunking, ChunkingConfig
from tqdm import tqdm
import numpy as np
from typing import List, Tuple
from air.types import Document, TextElement
class SemanticChunking(BaseChunking):
"""
Semantic Chunking strategy class
Splits text into se... |
class SemanticChunking(BaseChunking):
'''
Semantic Chunking strategy class
Splits text into semantically meaningful chunks based on sentence embeddings.
'''
def __init__(self, chunking_config: ChunkingConfig):
'''
Initializes the semantic chunker with configuration.
'''
... | 7 | 3 | 17 | 2 | 13 | 2 | 2 | 0.19 | 1 | 10 | 3 | 0 | 5 | 1 | 5 | 28 | 106 | 18 | 74 | 25 | 67 | 14 | 47 | 25 | 40 | 6 | 5 | 3 | 13 |
323,818 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/pipeline/embed.py | air.knowledge.pipeline.embed.Embedding | from requests.exceptions import HTTPError
from typing import List, Tuple
from air.embeddings.client import EmbeddingsClient
from air.types import ClientConfig, Document, EmbeddingConfig
import concurrent.futures
from air import __base_url__, auth
from tenacity import retry, retry_if_exception, stop_after_attempt
from t... |
class Embedding:
'''
Extends Executor to support data embedding functions.
'''
def __init__(self, embedding_config: EmbeddingConfig, base_url: str):
pass
def refresh_client_access_token(self):
'''
Refresh the access token for the OpenAI client.
'''
pass
... | 6 | 4 | 20 | 1 | 16 | 3 | 3 | 0.24 | 0 | 13 | 4 | 0 | 4 | 6 | 4 | 4 | 91 | 7 | 68 | 29 | 59 | 16 | 45 | 22 | 40 | 5 | 0 | 2 | 10 |
323,819 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/knowledge/pipeline/upload.py | air.knowledge.pipeline.upload.VectorDBUpload | from air.api.vector_db import VectorDBConfig, VectorDBRegistry
from typing import List, Tuple
from tqdm import tqdm
import concurrent.futures
from air.types import Document, VectorDBUploadConfig
class VectorDBUpload:
"""
Class to upload data to vector DB
"""
def __init__(self, upload_config: VectorDBU... |
class VectorDBUpload:
'''
Class to upload data to vector DB
'''
def __init__(self, upload_config: VectorDBUploadConfig, vectordb_config: VectorDBConfig):
pass
def run(self, document_list: List[Document]) -> Tuple[None, bool]:
'''
Function to upload list of document data to... | 3 | 2 | 26 | 1 | 21 | 4 | 4 | 0.26 | 0 | 10 | 4 | 0 | 2 | 5 | 2 | 2 | 58 | 4 | 43 | 19 | 38 | 11 | 28 | 16 | 25 | 5 | 0 | 2 | 7 |
323,820 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/logconfig.py | air.logconfig.ColoredFormatter | import sys
import logging
import logging.config
class ColoredFormatter(logging.Formatter):
"""Color codes for the logs"""
COLOR_CODES = {'reset': '\x1b[0m', 'cyan': '\x1b[36m', 'green': '\x1b[32m', 'yellow': '\x1b[33m', 'red': '\x1b[31m'}
LEVEL_COLOR = {logging.DEBUG: 'cyan', logging.INFO: 'green', logging... |
class ColoredFormatter(logging.Formatter):
'''Color codes for the logs'''
def format(self, record):
pass | 2 | 1 | 28 | 5 | 18 | 5 | 4 | 0.18 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 8 | 47 | 8 | 33 | 10 | 31 | 6 | 17 | 10 | 15 | 4 | 2 | 3 | 4 |
323,821 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/models/client.py | air.models.client.AsyncModelsClient | import aiohttp
from air import __version__
from air.types import AsyncPage, Model, SyncPage
class AsyncModelsClient:
"""
An asynchronous client for listing models.
This class handles sending GET requests to the models endpoint
and converts the responses into Pydantic models for type safety.
"""
... |
class AsyncModelsClient:
'''
An asynchronous client for listing models.
This class handles sending GET requests to the models endpoint
and converts the responses into Pydantic models for type safety.
'''
def __init__(self, base_url: str, api_key: str, default_headers: dict[str, str] | None=Non... | 3 | 3 | 31 | 4 | 16 | 11 | 2 | 0.82 | 0 | 7 | 2 | 0 | 2 | 3 | 2 | 2 | 70 | 11 | 33 | 24 | 20 | 27 | 19 | 12 | 16 | 3 | 0 | 2 | 4 |
323,822 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/models/client.py | air.models.client.ModelsClient | import requests
from air import __version__
from air.types import AsyncPage, Model, SyncPage
class ModelsClient:
"""
A synchronous client for listing models.
This class handles sending GET requests to the models endpoint
and converts the responses into Pydantic models for type safety.
"""
def... |
class ModelsClient:
'''
A synchronous client for listing models.
This class handles sending GET requests to the models endpoint
and converts the responses into Pydantic models for type safety.
'''
def __init__(self, base_url: str, api_key: str, default_headers: dict[str, str] | None=None):
... | 3 | 3 | 33 | 4 | 18 | 12 | 2 | 0.83 | 0 | 5 | 2 | 0 | 2 | 3 | 2 | 2 | 75 | 10 | 36 | 22 | 23 | 30 | 17 | 12 | 14 | 3 | 0 | 1 | 4 |
323,823 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.APIResponse | import json
from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
from air.types.base import CustomBaseModel
from pydantic import TypeAdapter, ValidationError
class APIResponse(Generic[T_co])... |
class APIResponse(Generic[T_co]):
'''
Represents a synchronous API response with optional streaming support.
Wraps the parsed result and underlying HTTP response object. Provides
utility methods to iterate over raw or parsed response lines.
'''
def __init__(self, parsed: T_co, http_response: A... | 5 | 3 | 14 | 1 | 10 | 4 | 3 | 0.52 | 1 | 6 | 2 | 0 | 4 | 2 | 4 | 6 | 68 | 7 | 42 | 14 | 37 | 22 | 34 | 13 | 29 | 7 | 1 | 3 | 13 |
323,824 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.ASRResponse | from air.types.base import CustomBaseModel
from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class ASRResponse(CustomBaseModel):
"""Top-level Automatic Speech Recognition response ret... |
class ASRResponse(CustomBaseModel):
'''Top-level Automatic Speech Recognition response returned by the API.
Attributes:
text (Union[str, None]): The transcription of the audio file
success (bool): Whether the transcription request was successful
error (Optional[str]): Optional error mes... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 14 | 2 | 5 | 3 | 4 | 7 | 5 | 3 | 4 | 0 | 6 | 0 | 0 |
323,825 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.AsyncAPIResponse | from air.types.base import CustomBaseModel
import json
from pydantic import TypeAdapter, ValidationError
from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class AsyncAPIResponse(Generic[T... |
class AsyncAPIResponse(Generic[T_co]):
'''
Represents an asynchronous API response with optional streaming support.
Wraps the parsed result and underlying async HTTP response object.
Provides async utilities to iterate over response content.
'''
def __init__(self, parsed: T_co, http_response: ... | 5 | 3 | 15 | 1 | 11 | 4 | 3 | 0.5 | 1 | 6 | 2 | 0 | 4 | 2 | 4 | 6 | 70 | 7 | 44 | 15 | 37 | 22 | 34 | 12 | 29 | 7 | 1 | 3 | 13 |
323,826 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.AsyncResponseContextManager | from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class AsyncResponseContextManager(Generic[T_co]):
"""
An asynchronous context manager wrapper for API responses.
Wraps an `A... |
class AsyncResponseContextManager(Generic[T_co]):
'''
An asynchronous context manager wrapper for API responses.
Wraps an `AsyncContextManager[T]` and delegates enter/exit lifecycle.
Useful for cleanly handling async resource lifetimes, like streamed HTTP responses.
'''
def __init__(self, cm: ... | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.71 | 1 | 0 | 0 | 0 | 3 | 1 | 3 | 5 | 16 | 4 | 7 | 5 | 3 | 5 | 7 | 5 | 3 | 1 | 1 | 0 | 3 |
323,827 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.AsyncStream | from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class AsyncStream(Protocol[T_co]):
"""
Protocol for asynchronous streaming responses.
Represents any object that supports as... |
class AsyncStream(Protocol[T_co]):
'''
Protocol for asynchronous streaming responses.
Represents any object that supports async iteration over items of type `T`,
typically used for consuming async streaming data.
'''
def __aiter__(self) -> AsyncIterator[T_co]:
pass | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 25 | 9 | 2 | 2 | 2 | 1 | 6 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
323,828 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.ChunkingStrategy | from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class ChunkingStrategy(TypedDict, total=False):
"""
Controls how the audio is cut into chunks.
Attributes:
type (Lit... |
class ChunkingStrategy(TypedDict, total=False):
'''
Controls how the audio is cut into chunks.
Attributes:
type (Literal["server_vad"]): Selects server-side VAD chunking (required).
prefix_padding_ms (int, optional): Lead-in context before speech, 0–5000 ms.
silence_duration_ms(int... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2.2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 5 | 1 | 4 | 11 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
323,829 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.Logprob | from air.types.base import CustomBaseModel
from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class Logprob(CustomBaseModel):
"""
Represents the log probability data for a specific... |
class Logprob(CustomBaseModel):
'''
Represents the log probability data for a specific token in a transcription
or language model output.
Attributes:
token (Optional[str]): The text token for which the log probability was computed.
bytes (Optional[List[int]]): The raw byte representatio... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 16 | 2 | 4 | 4 | 3 | 10 | 4 | 4 | 3 | 0 | 6 | 0 | 0 |
323,830 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.ResponseContextManager | from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class ResponseContextManager(Generic[T_co]):
"""
A synchronous context manager wrapper for API responses.
Executes a user-pr... |
class ResponseContextManager(Generic[T_co]):
'''
A synchronous context manager wrapper for API responses.
Executes a user-provided `enter()` function when the context is entered.
Used to encapsulate setup and teardown behavior for blocking API calls.
'''
def __init__(self, enter: Callable[[], ... | 4 | 1 | 2 | 0 | 2 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 3 | 1 | 3 | 5 | 17 | 4 | 7 | 5 | 3 | 7 | 7 | 5 | 3 | 1 | 1 | 0 | 3 |
323,831 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.Stream | from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class Stream(Protocol[T_co]):
"""
Protocol for synchronous streaming responses.
Represents any object that supports iteratio... |
class Stream(Protocol[T_co]):
'''
Protocol for synchronous streaming responses.
Represents any object that supports iteration over items of type `T`,
typically used for non-async streaming data.
'''
def __iter__(self) -> Iterator[T_co]:
pass | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 25 | 9 | 2 | 2 | 2 | 1 | 6 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
323,832 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.TTSResponse | from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
import aiofiles
import json
import os
class TTSResponse:
"""
Response wrapper for TTS audio data.
Mimics OpenAI's HttpxBinar... |
class TTSResponse:
'''
Response wrapper for TTS audio data.
Mimics OpenAI's HttpxBinaryResponseContent for full compatibility
with OpenAI's client interface. Provides both sync and async methods
for reading and streaming audio content.
Attributes:
content: Raw audio bytes from TTS synth... | 30 | 26 | 7 | 1 | 3 | 3 | 1 | 1.14 | 0 | 6 | 0 | 0 | 25 | 2 | 25 | 25 | 223 | 50 | 81 | 53 | 41 | 92 | 67 | 36 | 41 | 3 | 0 | 2 | 35 |
323,833 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.TranscriptionTextDeltaEvent | from air.types.base import CustomBaseModel
from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class TranscriptionTextDeltaEvent(CustomBaseModel):
"""
Represents an incremental tran... |
class TranscriptionTextDeltaEvent(CustomBaseModel):
'''
Represents an incremental transcription update event emitted during streaming transcription.
This event provides a new segment of transcribed text (delta) as it becomes available,
allowing for real-time transcription updates. It may optionally inc... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 17 | 3 | 4 | 2 | 3 | 10 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
323,834 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/audio.py | air.types.audio.TranscriptionTextDoneEvent | from air.types.base import CustomBaseModel
from typing import Annotated, Any, AsyncContextManager, AsyncIterator, Callable, Generic, Iterator, List, Literal, Optional, Protocol, Required, TypeAlias, TypedDict, TypeVar, Union
class TranscriptionTextDoneEvent(CustomBaseModel):
"""
Represents the final transcript... |
class TranscriptionTextDoneEvent(CustomBaseModel):
'''
Represents the final transcription result emitted at the end of the audio input.
This event marks the completion of the transcription stream and contains the full
transcribed text. It may optionally include token-leveln log probabilities if request... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 16 | 3 | 4 | 2 | 3 | 9 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
323,835 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/base.py | air.types.base.AsyncPage | from typing import override, Generic, List, Optional, TypeVar, AsyncIterator, Iterator
class AsyncPage(PageBase[T]):
"""An asynchronously fetched page of items.
Adds asynchronous iteration support::
async for m in page:
...
"""
def __aiter__(self) -> AsyncIterator[T]:
"""... |
class AsyncPage(PageBase[T]):
'''An asynchronously fetched page of items.
Adds asynchronous iteration support::
async for m in page:
...
'''
def __aiter__(self) -> AsyncIterator[T]:
'''Enables async iteration over the data in this page.'''
pass
async def _g... | 3 | 2 | 6 | 1 | 4 | 1 | 2 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 87 | 17 | 5 | 6 | 4 | 3 | 6 | 6 | 4 | 3 | 2 | 7 | 1 | 3 |
323,836 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/base.py | air.types.base.CustomBaseModel | from typing import override, Generic, List, Optional, TypeVar, AsyncIterator, Iterator
from pydantic import BaseModel
class CustomBaseModel(BaseModel):
"""An internal base model with a custom string representation.
Extends Pydantic's BaseModel to override the string representation so that
printing an inst... |
class CustomBaseModel(BaseModel):
'''An internal base model with a custom string representation.
Extends Pydantic's BaseModel to override the string representation so that
printing an instance will display the class name and key-value pairs of the
model fields.
'''
@override
def __str__(sel... | 3 | 2 | 3 | 0 | 2 | 1 | 1 | 1.5 | 1 | 1 | 0 | 21 | 1 | 0 | 1 | 83 | 12 | 2 | 4 | 3 | 1 | 6 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
323,837 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/base.py | air.types.base.PageBase | from typing import override, Generic, List, Optional, TypeVar, AsyncIterator, Iterator
class PageBase(CustomBaseModel, Generic[T]):
"""Common fields and iteration support for SyncPage/AsyncPage objects.
Attributes:
object: String label indicating the object type (e.g., "list").
data: The paylo... |
class PageBase(CustomBaseModel, Generic[T]):
'''Common fields and iteration support for SyncPage/AsyncPage objects.
Attributes:
object: String label indicating the object type (e.g., "list").
data: The payload, typically a list of items of type T.
first_id: Optional identifier for the f... | 2 | 2 | 3 | 0 | 2 | 2 | 1 | 1.25 | 2 | 0 | 0 | 2 | 1 | 0 | 1 | 86 | 20 | 3 | 8 | 5 | 6 | 10 | 8 | 5 | 6 | 1 | 6 | 0 | 1 |
323,838 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/base.py | air.types.base.SyncPage | class SyncPage(PageBase[T]):
"""A synchronously fetched page of items.""" | class SyncPage(PageBase[T]):
'''A synchronously fetched page of items.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 | 0 | 0 |
323,839 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/chat.py | air.types.chat.ChatCompletion | from typing import Any, List, Optional
from air.types.base import CustomBaseModel
class ChatCompletion(CustomBaseModel):
"""Top-level ChatCompletion response returned by the API.
Attributes:
id: Unique identifier for this ChatCompletion.
object: The object type, typically "chat.completion".
... |
class ChatCompletion(CustomBaseModel):
'''Top-level ChatCompletion response returned by the API.
Attributes:
id: Unique identifier for this ChatCompletion.
object: The object type, typically "chat.completion".
created: A UNIX timestamp indicating creation time.
model: The langua... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.22 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 23 | 3 | 9 | 4 | 8 | 11 | 9 | 4 | 8 | 0 | 6 | 0 | 0 |
323,840 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/chat.py | air.types.chat.ChatCompletionMessage | from typing import Any, List, Optional
from air.types.base import CustomBaseModel
class ChatCompletionMessage(CustomBaseModel):
"""Represents one message within a conversation, possibly including tool calls.
Attributes:
role: The role of the sender (e.g., 'assistant', 'user', or 'system').
con... |
class ChatCompletionMessage(CustomBaseModel):
'''Represents one message within a conversation, possibly including tool calls.
Attributes:
role: The role of the sender (e.g., 'assistant', 'user', or 'system').
content: The main text of the message, if any.
refusal: A refusal statement, i... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.22 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 22 | 2 | 9 | 8 | 8 | 11 | 9 | 8 | 8 | 0 | 6 | 0 | 0 |
323,841 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/chat.py | air.types.chat.ChatCompletionMessageToolCall | from air.types.base import CustomBaseModel
from typing import Any, List, Optional
class ChatCompletionMessageToolCall(CustomBaseModel):
"""A single tool-call object within a message.
Attributes:
id: The unique identifier of this tool call.
function: The function details, if any.
type: ... |
class ChatCompletionMessageToolCall(CustomBaseModel):
'''A single tool-call object within a message.
Attributes:
id: The unique identifier of this tool call.
function: The function details, if any.
type: The type of call (e.g., 'function').
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 12 | 2 | 4 | 2 | 3 | 6 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
323,842 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/chat.py | air.types.chat.Choice | from air.types.base import CustomBaseModel
from typing import Any, List, Optional
class Choice(CustomBaseModel):
"""Represents a single choice from a ChatCompletion response.
Attributes:
index: The index of this choice within the list of choices.
finish_reason: The reason this choice completed... |
class Choice(CustomBaseModel):
'''Represents a single choice from a ChatCompletion response.
Attributes:
index: The index of this choice within the list of choices.
finish_reason: The reason this choice completed (e.g., 'stop', 'tool_calls').
message: The message returned with this choi... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 16 | 2 | 6 | 3 | 5 | 8 | 6 | 3 | 5 | 0 | 6 | 0 | 0 |
323,843 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/chat.py | air.types.chat.CompletionUsage | from typing import Any, List, Optional
from air.types.base import CustomBaseModel
class CompletionUsage(CustomBaseModel):
"""Tracks usage details for a ChatCompletion response.
Attributes:
prompt_tokens: Number of tokens used in the prompt.
completion_tokens: Number of tokens produced in the c... |
class CompletionUsage(CustomBaseModel):
'''Tracks usage details for a ChatCompletion response.
Attributes:
prompt_tokens: Number of tokens used in the prompt.
completion_tokens: Number of tokens produced in the completion.
total_tokens: Total tokens used (prompt + completion).
c... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 16 | 2 | 6 | 3 | 5 | 8 | 6 | 3 | 5 | 0 | 6 | 0 | 0 |
323,844 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/chat.py | air.types.chat.Function | from air.types.base import CustomBaseModel
class Function(CustomBaseModel):
"""Represents the function details used in a tool call.
Attributes:
name: The name of the function being invoked.
arguments: A serialized set of arguments for the function call.
"""
name: str
arguments: str |
class Function(CustomBaseModel):
'''Represents the function details used in a tool call.
Attributes:
name: The name of the function being invoked.
arguments: A serialized set of arguments for the function call.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 10 | 2 | 3 | 1 | 2 | 5 | 3 | 1 | 2 | 0 | 6 | 0 | 0 |
323,845 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/a2a_config.py | air.types.distiller.executor.a2a_config.A2AClientAgentConfig | from pydantic import Field, BaseModel, model_validator
class A2AClientAgentConfig(BaseModel):
"""
A2A Client Agent Config
- base_url: Required, must be non-empty
- agent_card: Required, dictionary or instance of AgentCardConfig.
- response_prefs: Optional, dictionary or instance of ResponsePrefsCon... |
class A2AClientAgentConfig(BaseModel):
'''
A2A Client Agent Config
- base_url: Required, must be non-empty
- agent_card: Required, dictionary or instance of AgentCardConfig.
- response_prefs: Optional, dictionary or instance of ResponsePrefsConfig.
- wait_time: Optional, integer.
- contexts... | 3 | 1 | 6 | 1 | 5 | 0 | 2 | 0.28 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 40 | 3 | 29 | 9 | 26 | 8 | 11 | 8 | 9 | 2 | 5 | 1 | 2 |
323,846 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/a2a_config.py | air.types.distiller.executor.a2a_config.AgentCardConfig | from pydantic import Field, BaseModel, model_validator
class AgentCardConfig(BaseModel):
"""
Dictionary containing public or private agent card information.
Two fields, public required.
"""
public: PublicAgentCardConfig = Field(default=PublicAgentCardConfig(public_agent_card_path='dummy_path'), des... |
class AgentCardConfig(BaseModel):
'''
Dictionary containing public or private agent card information.
Two fields, public required.
'''
@model_validator(mode='after')
def check_public_agent_card_non_empty(self):
pass | 3 | 1 | 6 | 1 | 5 | 0 | 2 | 0.29 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 21 | 3 | 14 | 6 | 11 | 4 | 8 | 5 | 6 | 2 | 5 | 1 | 2 |
323,847 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/a2a_config.py | air.types.distiller.executor.a2a_config.PrivateAgentCardConfig | from pydantic import Field, BaseModel, model_validator
class PrivateAgentCardConfig(BaseModel):
"""
Private agent card details.
Two fields, both optional.
"""
extended_agent_card_path: str = Field(default='/agent/authenticatedExtendedCard', description='Path to the extended agent card.')
authen... |
class PrivateAgentCardConfig(BaseModel):
'''
Private agent card details.
Two fields, both optional.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 1 | 6 | 3 | 5 | 4 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
323,848 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/a2a_config.py | air.types.distiller.executor.a2a_config.PublicAgentCardConfig | from pydantic import Field, BaseModel, model_validator
class PublicAgentCardConfig(BaseModel):
"""
Public agent card details.
Two fields, at least one required, not allowed concurrently empty.
"""
public_agent_card_path: str = Field(default='', description='Path to the public agent card.')
rpc_... |
class PublicAgentCardConfig(BaseModel):
'''
Public agent card details.
Two fields, at least one required, not allowed concurrently empty.
'''
@model_validator(mode='after')
def check_public_agent_card_fields(self):
pass | 3 | 1 | 9 | 1 | 8 | 0 | 2 | 0.29 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 21 | 3 | 14 | 7 | 11 | 4 | 9 | 6 | 7 | 2 | 5 | 1 | 2 |
323,849 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/a2a_config.py | air.types.distiller.executor.a2a_config.ResponsePrefsConfig | from pydantic import Field, BaseModel, model_validator
import warnings
class ResponsePrefsConfig(BaseModel):
"""
Dictionary containing the preferences for how to handle the agent's response.
Two fields, both optional, not allowed concurrently True - second ignored if first True.
"""
tracing: bool |... |
class ResponsePrefsConfig(BaseModel):
'''
Dictionary containing the preferences for how to handle the agent's response.
Two fields, both optional, not allowed concurrently True - second ignored if first True.
'''
@model_validator(mode='after')
def check_conflicting_repsonse_prefs(self):
... | 3 | 1 | 9 | 1 | 8 | 0 | 2 | 0.25 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 83 | 23 | 3 | 16 | 7 | 13 | 4 | 9 | 6 | 7 | 2 | 5 | 1 | 2 |
323,850 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/amazon_bedrock_config.py | air.types.distiller.executor.amazon_bedrock_config.AmazonBedrockAgentConfig | from pydantic import Field, BaseModel, model_validator
class AmazonBedrockAgentConfig(BaseModel):
"""
AmazonBedrock Agent Config
"""
client_key: str = Field(default='', description='The environment variable containing the AmazonBedrock Client key.')
client_secret: str = Field(default='', descriptio... |
class AmazonBedrockAgentConfig(BaseModel):
'''
AmazonBedrock Agent Config
'''
@model_validator(mode='after')
def check_connection_params_non_empty(self):
'''
Checking if required connection parameters are populated in the config
'''
pass | 3 | 2 | 36 | 6 | 27 | 3 | 6 | 0.11 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 67 | 8 | 53 | 14 | 50 | 6 | 24 | 13 | 22 | 6 | 5 | 1 | 6 |
323,851 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/azure_config.py | air.types.distiller.executor.azure_config.AzureAgentConfig | from pydantic import Field, BaseModel, model_validator
class AzureAgentConfig(BaseModel):
"""
Azure Agent Config
"""
connection_string: str = Field(default='', description='The environment variable containing the Azure connection string.')
agent_id: str = Field(default='', description='The environm... |
class AzureAgentConfig(BaseModel):
'''
Azure Agent Config
'''
@model_validator(mode='after')
def check_connection_params_non_empty(self):
'''
Checking if required connection parameters are populated in the config
'''
pass | 3 | 2 | 16 | 3 | 10 | 3 | 3 | 0.3 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 31 | 5 | 20 | 7 | 17 | 6 | 11 | 6 | 9 | 3 | 5 | 1 | 3 |
323,852 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/databricks_config.py | air.types.distiller.executor.databricks_config.DatabricksAgentConfig | from pydantic import Field, BaseModel, model_validator
class DatabricksAgentConfig(BaseModel):
"""
Databricks Agent Config
"""
client_id: str = Field(default='', description='The environment variable containing the Databricks Client ID.')
client_secret: str = Field(default='', description='The envi... |
class DatabricksAgentConfig(BaseModel):
'''
Databricks Agent Config
'''
@model_validator(mode='after')
def check_connection_params_non_empty(self):
'''
Checking if required connection parameters are populated in the config
'''
pass | 3 | 2 | 30 | 5 | 22 | 3 | 5 | 0.14 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 56 | 7 | 43 | 12 | 40 | 6 | 20 | 11 | 18 | 5 | 5 | 1 | 5 |
323,853 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/google_config.py | air.types.distiller.executor.google_config.GoogleAgentConfig | from pydantic import Field, BaseModel, model_validator
class GoogleAgentConfig(BaseModel):
"""
Google Vertex Agent Config
"""
resource_name: str = Field(default='', description='The resource name to identify the Google Vertex agent.')
@model_validator(mode='after')
def check_connection_params_... |
class GoogleAgentConfig(BaseModel):
'''
Google Vertex Agent Config
'''
@model_validator(mode='after')
def check_connection_params_non_empty(self):
'''
Checking if required connection parameters are populated in the config
'''
pass | 3 | 2 | 12 | 2 | 7 | 3 | 2 | 0.46 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 23 | 4 | 13 | 5 | 10 | 6 | 7 | 4 | 5 | 2 | 5 | 1 | 2 |
323,854 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/human_config.py | air.types.distiller.executor.human_config.FeedbackFieldConfig | from pydantic import BaseModel, Field
class FeedbackFieldConfig(BaseModel):
"""Schema field configuration for expected user feedback.
Attributes:
type (str): The type of the field (e.g., "str", "int").
description (str): Description of what the field represents.
required (bool): Whethe... |
class FeedbackFieldConfig(BaseModel):
'''Schema field configuration for expected user feedback.
Attributes:
type (str): The type of the field (e.g., "str", "int").
description (str): Description of what the field represents.
required (bool): Whether the field is mandatory in the feedbac... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 2 | 4 | 1 | 3 | 6 | 4 | 1 | 3 | 0 | 5 | 0 | 0 |
323,855 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/human_config.py | air.types.distiller.executor.human_config.HumanAgentConfig | from pydantic import BaseModel, Field
from typing import Dict
class HumanAgentConfig(BaseModel):
"""
Configuration settings for the Human Agent.
"""
wait_time: int = Field(default=300, description='Maximum wait time (in seconds) for human input before timing out.')
user_input_method: str = Field(de... |
class HumanAgentConfig(BaseModel):
'''
Configuration settings for the Human Agent.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.18 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 21 | 1 | 17 | 5 | 16 | 3 | 5 | 5 | 4 | 0 | 5 | 0 | 0 |
323,856 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/mcp_config.py | air.types.distiller.executor.mcp_config.MCPClientAgentConfig | from pydantic import Field, BaseModel, model_validator
class MCPClientAgentConfig(BaseModel):
"""
MCPClient Agent Config
"""
mcp_sse_url: str = Field(default='', description='The URL where the MCP server is hosted.')
enable_interpreter: bool = Field(default=False, description='The setting controlli... |
class MCPClientAgentConfig(BaseModel):
'''
MCPClient Agent Config
'''
@model_validator(mode='after')
def check_connection_params_non_empty(self):
'''
Checking if required connection parameters are populated in the config
'''
pass | 3 | 2 | 12 | 2 | 7 | 3 | 2 | 0.18 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 43 | 4 | 33 | 10 | 30 | 6 | 12 | 9 | 10 | 2 | 5 | 1 | 2 |
323,857 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/salesforce_config.py | air.types.distiller.executor.salesforce_config.SalesforceAgentConfig | from pydantic import Field, BaseModel, model_validator
class SalesforceAgentConfig(BaseModel):
"""
Salesforce Agent Config
"""
client_key: str = Field(default='', description='The environment variable containing the Salesforce Client key.')
client_secret: str = Field(default='', description='The en... |
class SalesforceAgentConfig(BaseModel):
'''
Salesforce Agent Config
'''
@model_validator(mode='after')
def check_connection_params_non_empty(self):
'''
Checking if required connection parameters are populated in the config
'''
pass | 3 | 2 | 30 | 5 | 22 | 3 | 5 | 0.15 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 53 | 7 | 40 | 11 | 37 | 6 | 19 | 10 | 17 | 5 | 5 | 1 | 5 |
323,858 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/sap_config.py | air.types.distiller.executor.sap_config.SAPAgentConfig | from pydantic import BaseModel, Field, model_validator
class SAPAgentConfig(BaseModel):
"""
SAP Agent Config
- url: Required, must be non-empty
- contexts: Optional, list
"""
url: str = Field(default='', description='The URL where the agent is located.')
contexts: list = Field(default_facto... |
class SAPAgentConfig(BaseModel):
'''
SAP Agent Config
- url: Required, must be non-empty
- contexts: Optional, list
'''
@model_validator(mode='after')
def check_empty_url(self):
pass | 3 | 1 | 6 | 1 | 5 | 0 | 2 | 0.42 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 20 | 3 | 12 | 6 | 9 | 5 | 8 | 5 | 6 | 2 | 5 | 1 | 2 |
323,859 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/distiller/executor/writer_config.py | air.types.distiller.executor.writer_config.WriterAIAgentConfig | from pydantic import Field, BaseModel, model_validator
class WriterAIAgentConfig(BaseModel):
"""
WriterAI Agent Config
"""
api_key_env_var: str = Field(default='', description='The environment variable containing the WriterAI API key.')
application_id: str = Field(default='', description='The appli... |
class WriterAIAgentConfig(BaseModel):
'''
WriterAI Agent Config
'''
@model_validator(mode='after')
def check_connection_params_non_empty(self):
'''
Checking if required connection parameters are populated in the config
'''
pass | 3 | 2 | 18 | 3 | 12 | 3 | 3 | 0.23 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 37 | 5 | 26 | 8 | 23 | 6 | 12 | 7 | 10 | 3 | 5 | 1 | 3 |
323,860 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/embeddings.py | air.types.embeddings.CreateEmbeddingResponse | from typing import List
from air.types.base import CustomBaseModel
class CreateEmbeddingResponse(CustomBaseModel):
"""Represents the full response returned by the Embeddings *create* endpoint.
Attributes:
data: A list of embedding objects generated by the model.
model: The model identifier (e.... |
class CreateEmbeddingResponse(CustomBaseModel):
'''Represents the full response returned by the Embeddings *create* endpoint.
Attributes:
data: A list of embedding objects generated by the model.
model: The model identifier (e.g., "text-embedding-3-small").
object: Type label of the ret... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 14 | 2 | 5 | 1 | 4 | 7 | 5 | 1 | 4 | 0 | 6 | 0 | 0 |
323,861 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/embeddings.py | air.types.embeddings.Embedding | from typing import List
from air.types.base import CustomBaseModel
class Embedding(CustomBaseModel):
"""Represents a single embedding vector and its metadata.
Attributes:
object: Identifies the resource type (e.g., "embedding").
embedding: The embedding vector as a list of floats.
inde... |
class Embedding(CustomBaseModel):
'''Represents a single embedding vector and its metadata.
Attributes:
object: Identifies the resource type (e.g., "embedding").
embedding: The embedding vector as a list of floats.
index: Position of this item in the response list.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 12 | 2 | 4 | 1 | 3 | 6 | 4 | 1 | 3 | 0 | 6 | 0 | 0 |
323,862 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/embeddings.py | air.types.embeddings.Usage | from air.types.base import CustomBaseModel
class Usage(CustomBaseModel):
"""Represents token-usage statistics for an embedding request.
Attributes:
prompt_tokens: Number of tokens in the prompt.
total_tokens: The total tokens consumed (identical to prompt_tokens
for the embeddings ... |
class Usage(CustomBaseModel):
'''Represents token-usage statistics for an embedding request.
Attributes:
prompt_tokens: Number of tokens in the prompt.
total_tokens: The total tokens consumed (identical to prompt_tokens
for the embeddings endpoint).
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 11 | 2 | 3 | 1 | 2 | 6 | 3 | 1 | 2 | 0 | 6 | 0 | 0 |
323,863 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/images.py | air.types.images.Image | from air.types.base import CustomBaseModel
from typing import Dict, List, Optional
class Image(CustomBaseModel):
"""Represents one generated image and its metadata.
Attributes:
b64_json: Base64-encoded image data (only present when `response_format="b64_json"`)
revised_prompt: The final prompt... |
class Image(CustomBaseModel):
'''Represents one generated image and its metadata.
Attributes:
b64_json: Base64-encoded image data (only present when `response_format="b64_json"`)
revised_prompt: The final prompt string the model actually used for image generation,
which ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 14 | 2 | 4 | 4 | 3 | 8 | 4 | 4 | 3 | 0 | 6 | 0 | 0 |
323,864 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/images.py | air.types.images.ImagesResponse | from air.types.base import CustomBaseModel
from typing import Dict, List, Optional
class ImagesResponse(CustomBaseModel):
"""Represents the full response returned by the Images *generate* endpoint.
Attributes:
created: The Unix timestamp (in seconds) of when the images were created
data: A lis... |
class ImagesResponse(CustomBaseModel):
'''Represents the full response returned by the Images *generate* endpoint.
Attributes:
created: The Unix timestamp (in seconds) of when the images were created
data: A list of generated images
usage: Aggregate token-usage information for the reque... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 12 | 2 | 4 | 2 | 3 | 6 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
323,865 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/images.py | air.types.images.Mask | from air.types.base import CustomBaseModel
from typing import Dict, List, Optional
class Mask(CustomBaseModel):
"""Represents one segmentation mask and its metadata.
Attributes:
b64_json: Base64-encoded categorical mask image
label: Optional semantic class label, if provided
score: Opt... |
class Mask(CustomBaseModel):
'''Represents one segmentation mask and its metadata.
Attributes:
b64_json: Base64-encoded categorical mask image
label: Optional semantic class label, if provided
score: Optional confidence score from the model, if provided
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 12 | 2 | 4 | 4 | 3 | 6 | 4 | 4 | 3 | 0 | 6 | 0 | 0 |
323,866 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/images.py | air.types.images.SegmentationResponse | from air.types.base import CustomBaseModel
from typing import Dict, List, Optional
class SegmentationResponse(CustomBaseModel):
"""Represents the full response returned by the point-prompt segmentation
endpoint
Attributes:
created: The Unix timestamp (in seconds) when the masks were created
... |
class SegmentationResponse(CustomBaseModel):
'''Represents the full response returned by the point-prompt segmentation
endpoint
Attributes:
created: The Unix timestamp (in seconds) when the masks were created
data: A list of generated masks
usage: Aggregate token-usage information f... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 13 | 2 | 4 | 2 | 3 | 7 | 4 | 2 | 3 | 0 | 6 | 0 | 0 |
323,867 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/images.py | air.types.images.Usage | from typing import Dict, List, Optional
from air.types.base import CustomBaseModel
class Usage(CustomBaseModel):
"""Represents token-usage statistics for image related requests.
Attributes:
input_tokens: The number of tokens (images and text) in the input prompt
input_tokens_details: The input... |
class Usage(CustomBaseModel):
'''Represents token-usage statistics for image related requests.
Attributes:
input_tokens: The number of tokens (images and text) in the input prompt
input_tokens_details: The input tokens detailed information for the image generation
output_tokens: The num... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 14 | 2 | 5 | 1 | 4 | 7 | 5 | 1 | 4 | 0 | 6 | 0 | 0 |
323,868 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/knowledge.py | air.types.knowledge.ChunkingConfig | from pydantic import BaseModel, Field
class ChunkingConfig(BaseModel):
"""
Chunking configuration class
"""
algorithm: str = Field(default='BruteForceChunking', description='Type of Chunking Algorithm')
chunk_size: int = Field(..., description='Max length per chunk')
overlap_size: int = Field(d... |
class ChunkingConfig(BaseModel):
'''
Chunking configuration class
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 1 | 8 | 4 | 7 | 3 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
323,869 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/knowledge.py | air.types.knowledge.ClientConfig | from pydantic import BaseModel, Field
from air import __base_url__
class ClientConfig(BaseModel):
"""
Configuration for the OpenAI client.
"""
base_url: str = Field(default=__base_url__, description='Base URL for the OpenAI API')
api_key: str = Field(..., description='API key for authentication')
... |
class ClientConfig(BaseModel):
'''
Configuration for the OpenAI client.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 1 | 8 | 4 | 7 | 3 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
323,870 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/knowledge.py | air.types.knowledge.Document | from pydantic import BaseModel, Field
from typing import List, Literal, Optional
class Document(BaseModel):
"""
Document Object data class.
Attributes:
filename (str): Name of the file
file_type (str): File type/extension
elements (list): List of file elements
metadata (dic... |
class Document(BaseModel):
'''
Document Object data class.
Attributes:
filename (str): Name of the file
file_type (str): File type/extension
elements (list): List of file elements
metadata (dict): Metadata related to the document
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 15 | 2 | 5 | 5 | 4 | 8 | 5 | 5 | 4 | 0 | 5 | 0 | 0 |
323,871 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/knowledge.py | air.types.knowledge.DocumentProcessingConfig | from pydantic import BaseModel, Field
from air.api.vector_db.base_vectordb import VectorDBConfig
class DocumentProcessingConfig(BaseModel):
"""
Configuration for document processing
"""
upload_config: VectorDBUploadConfig = Field(default=VectorDBUploadConfig(), description='Vector DB upload configurati... |
class DocumentProcessingConfig(BaseModel):
'''
Configuration for document processing
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.27 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 15 | 1 | 11 | 5 | 10 | 3 | 5 | 5 | 4 | 0 | 5 | 0 | 0 |
323,872 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/knowledge.py | air.types.knowledge.EmbeddingConfig | from pydantic import BaseModel, Field
class EmbeddingConfig(BaseModel):
"""
Embedding configuration class
"""
model: str = Field(..., description='Name of the model to use for embedding')
batch_size: int = Field(default=50, description='Number of rows in a batch per embedding request')
max_work... |
class EmbeddingConfig(BaseModel):
'''
Embedding configuration class
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 13 | 1 | 9 | 4 | 8 | 3 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
323,873 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/knowledge.py | air.types.knowledge.KnowledgeGraphConfig | from typing import List, Literal, Optional
from pydantic import BaseModel, Field
class KnowledgeGraphConfig(BaseModel):
"""
KnowledgeGraph configuration class
"""
type: str = Field(default='GraphRAG', description='Type of the Knowledge Graph')
work_dir: str = Field(default='graph_dir', description=... |
class KnowledgeGraphConfig(BaseModel):
'''
KnowledgeGraph configuration class
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.16 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 23 | 1 | 19 | 8 | 18 | 3 | 8 | 8 | 7 | 0 | 5 | 0 | 0 |
323,874 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/knowledge.py | air.types.knowledge.TextElement | from pydantic import BaseModel, Field
from typing import List, Literal, Optional
class TextElement(BaseModel):
"""
Document element data config
Attributes:
id (str): Unique identifier for the element
text (str): Text of the element
page_number (int): Document page number from which... |
class TextElement(BaseModel):
'''
Document element data config
Attributes:
id (str): Unique identifier for the element
text (str): Text of the element
page_number (int): Document page number from which element was extracted
element_type (str): Type of element, one of (text, ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 23 | 2 | 12 | 5 | 11 | 9 | 6 | 5 | 5 | 0 | 5 | 0 | 0 |
323,875 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/knowledge.py | air.types.knowledge.VectorDBUploadConfig | from pydantic import BaseModel, Field
class VectorDBUploadConfig(BaseModel):
"""
VectorDB upload configuration class
"""
batch_size: int = Field(default=50, description='Number of rows in a batch per upload request')
max_workers: int = Field(default=8, description='Number of parallel threads to spa... |
class VectorDBUploadConfig(BaseModel):
'''
VectorDB upload configuration class
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 1 | 8 | 3 | 7 | 3 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
323,876 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/models.py | air.types.models.Model | from air.types.base import CustomBaseModel
from typing import List, Optional
class Model(CustomBaseModel):
"""Represents metadata describing a single model.
Attributes:
id: The model identifier (e.g., "gpt-4o-mini").
created: The Unix timestamp when the model was created.
object: Alway... |
class Model(CustomBaseModel):
'''Represents metadata describing a single model.
Attributes:
id: The model identifier (e.g., "gpt-4o-mini").
created: The Unix timestamp when the model was created.
object: Always "model".
owned_by: The organization that owns this model.
ro... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 20 | 2 | 8 | 1 | 7 | 10 | 8 | 1 | 7 | 0 | 6 | 0 | 0 |
323,877 | Accenture/airefinery-sdk | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/Accenture_airefinery-sdk/air/types/models.py | air.types.models.ModelPermission | from air.types.base import CustomBaseModel
from typing import List, Optional
class ModelPermission(CustomBaseModel):
"""Represents a fine-grained permission set attached to a model.
Attributes:
id: Unique identifier of this permission object.
object: Always "model_permission".
created:... |
class ModelPermission(CustomBaseModel):
'''Represents a fine-grained permission set attached to a model.
Attributes:
id: Unique identifier of this permission object.
object: Always "model_permission".
created: Unix timestamp indicating when this permission was created.
allow_cre... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.15 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 30 | 2 | 13 | 1 | 12 | 15 | 13 | 1 | 12 | 0 | 6 | 0 | 0 |
323,878 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/ai2d/grader.py | benchmarks.ai2d.grader.AI2DGrader | import re
from typing import Any
from ...datasets.interface import Row
from ...graders.interface import IGrader
class AI2DGrader(IGrader):
def __init__(self, grader_id: str):
super().__init__(grader_id)
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str,... |
class AI2DGrader(IGrader):
def __init__(self, grader_id: str):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def topline_metric(self) -> str:
pass
def grade_row(self, row: Row) -> dict[str, Any]:
pa... | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0.04 | 1 | 5 | 0 | 0 | 4 | 0 | 4 | 31 | 33 | 7 | 25 | 12 | 19 | 1 | 19 | 12 | 13 | 2 | 5 | 1 | 7 |
323,879 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/bfcl/grader.py | benchmarks.bfcl.grader.BfclGrader | from ...graders.interface import IGrader, Row
import traceback
from ...evaluator.interface import EvalResult
import re
import json
from ...utils.utils import map_with_progress
from typing import Any
class BfclGrader(IGrader):
def __init__(self, grader_id: str, is_grading_api: bool=False):
super().__init__... |
class BfclGrader(IGrader):
def __init__(self, grader_id: str, is_grading_api: bool=False):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def calculate_overall_metrics(self, subset_metrics: dict[str, dict[str, Any]]) -> ... | 8 | 1 | 36 | 3 | 31 | 2 | 3 | 0.07 | 1 | 9 | 1 | 0 | 7 | 1 | 7 | 34 | 256 | 26 | 215 | 63 | 198 | 15 | 99 | 57 | 88 | 17 | 5 | 5 | 23 |
323,880 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/bfcl/preprocessor.py | benchmarks.bfcl.preprocessor.BfclPreprocessor | import json
from ...datasets.interface import Row
from ...preprocessor.interface import IPreprocessor
class BfclPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
super().__init__(preprocessor_id)
def preprocess_row(self, row: Row) -> Row:
return {'id': row['id'], 'test_ca... |
class BfclPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
pass
def preprocess_row(self, row: Row) -> Row:
pass | 3 | 0 | 14 | 0 | 9 | 6 | 2 | 0.61 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 26 | 30 | 1 | 18 | 3 | 15 | 11 | 5 | 3 | 2 | 2 | 5 | 0 | 3 |
323,881 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/common/graders/chrf.py | benchmarks.common.graders.chrf.ChrfGrader | from llama_verifications.benchmarks.datasets.interface import Row
from llama_verifications.benchmarks.graders.interface import IGrader
from typing import Any
class ChrfGrader(IGrader):
def __init__(self, grader_id: str):
super().__init__(grader_id)
def calculate_aggregate_metrics(self, results: list[... |
class ChrfGrader(IGrader):
def __init__(self, grader_id: str):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def topline_metric(self) -> str:
pass
def grade_row(self, row: Row) -> dict[str, Any]:
pa... | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 5 | 0 | 0 | 4 | 0 | 4 | 31 | 12 | 3 | 9 | 5 | 4 | 0 | 9 | 5 | 4 | 1 | 5 | 0 | 4 |
323,882 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/common/graders/regex_parser_multiple_choice_grader.py | benchmarks.common.graders.regex_parser_multiple_choice_grader.RegexParserMultipleChoiceGrader | import re
from typing import Any
from ....graders.interface import IGrader
from ....datasets.interface import Row
class RegexParserMultipleChoiceGrader(IGrader):
def __init__(self, grader_id: str):
super().__init__(grader_id)
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: ... |
class RegexParserMultipleChoiceGrader(IGrader):
def __init__(self, grader_id: str):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def topline_metric(self) -> str:
pass
def grade_row(self, row: Row) -> dict[... | 5 | 0 | 7 | 1 | 6 | 0 | 2 | 0.04 | 1 | 5 | 0 | 0 | 4 | 0 | 4 | 31 | 33 | 6 | 26 | 12 | 21 | 1 | 19 | 12 | 14 | 4 | 5 | 2 | 7 |
323,883 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/common/preprocessors.py | benchmarks.common.preprocessors.ChatCompletionInputPreprocessor | import json
from ...datasets.interface import Row
from ...preprocessor.interface import IPreprocessor
class ChatCompletionInputPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
super().__init__(preprocessor_id)
def preprocess_row(self, row: Row) -> Row:
return {'expected_... |
class ChatCompletionInputPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
pass
def preprocess_row(self, row: Row) -> Row:
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 26 | 9 | 1 | 8 | 3 | 5 | 0 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
323,884 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/docvqa/grader.py | benchmarks.docvqa.grader.DocVQAGrader | from ...datasets.interface import Row
from typing import Any
from ...graders.interface import IGrader
import json
class DocVQAGrader(IGrader):
def __init__(self, grader_id: str):
super().__init__(grader_id)
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[... |
class DocVQAGrader(IGrader):
def __init__(self, grader_id: str):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def topline_metric(self) -> str:
pass
def grade_row(self, row: Row) -> dict[str, Any]:
... | 5 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 5 | 0 | 0 | 4 | 0 | 4 | 31 | 21 | 3 | 18 | 8 | 13 | 0 | 12 | 8 | 7 | 2 | 5 | 0 | 5 |
323,885 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/docvqa/preprocessor.py | benchmarks.docvqa.preprocessor.DocVQAPreprocessor | import json
from ...datasets.interface import Row
from ...preprocessor.interface import IPreprocessor
class DocVQAPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
super().__init__(preprocessor_id)
def preprocess_row(self, row: Row) -> Row:
encoded_image = pillow_image_to... |
class DocVQAPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
pass
def preprocess_row(self, row: Row) -> Row:
pass | 3 | 0 | 15 | 1 | 14 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 26 | 31 | 2 | 29 | 5 | 26 | 0 | 7 | 5 | 4 | 1 | 5 | 0 | 2 |
323,886 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/ifeval/grader.py | benchmarks.ifeval.grader.IfEvalGrader | from ...graders.interface import IGrader
from typing import Any
from ...datasets.interface import Row
class IfEvalGrader(IGrader):
def __init__(self, grader_id: str):
super().__init__(grader_id)
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
... |
class IfEvalGrader(IGrader):
def __init__(self, grader_id: str):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def topline_metric(self) -> str:
pass
def grade_row(self, row: Row) -> dict[str, Any]:
... | 5 | 0 | 14 | 2 | 12 | 0 | 2 | 0 | 1 | 7 | 0 | 0 | 4 | 0 | 4 | 31 | 59 | 10 | 49 | 15 | 43 | 0 | 31 | 15 | 25 | 5 | 5 | 2 | 8 |
323,887 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/ifeval/preprocessor.py | benchmarks.ifeval.preprocessor.IfEvalPreprocessor | import json
from ...preprocessor.interface import IPreprocessor
from ...datasets.interface import Row
class IfEvalPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
super().__init__(preprocessor_id)
def preprocess_row(self, row: Row) -> Row:
return {'prompt': row['prompt']... |
class IfEvalPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
pass
def preprocess_row(self, row: Row) -> Row:
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 26 | 11 | 1 | 10 | 3 | 7 | 0 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
323,888 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/math500/grader.py | benchmarks.math500.grader.Math500Grader | from ...graders.interface import IGrader
from typing import Any
from ...datasets.interface import Row
class Math500Grader(IGrader):
def __init__(self, grader_id: str):
super().__init__(grader_id)
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
... |
class Math500Grader(IGrader):
def __init__(self, grader_id: str):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def topline_metric(self) -> str:
pass
def grade_row(self, row: Row) -> dict[str, Any]:
... | 5 | 0 | 8 | 1 | 7 | 0 | 1 | 0 | 1 | 5 | 0 | 0 | 4 | 0 | 4 | 31 | 34 | 7 | 27 | 11 | 22 | 0 | 17 | 11 | 12 | 2 | 5 | 0 | 5 |
323,889 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/math500/grader.py | benchmarks.math500.grader.TimeoutError | class TimeoutError(Exception):
pass | class TimeoutError(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
323,890 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/mmmu/grader.py | benchmarks.mmmu.grader.MMMUGrader | from ...graders.interface import IGrader
from .mmmu_utils import eval_multi_choice, eval_open, parse_multi_choice_response, parse_open_response
from typing import Any
from ...datasets.interface import Row
class MMMUGrader(IGrader):
def __init__(self, grader_id: str):
super().__init__(grader_id)
def c... |
class MMMUGrader(IGrader):
def __init__(self, grader_id: str):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def topline_metric(self) -> str:
pass
def grade_row(self, row: Row) -> dict[str, Any]:
pa... | 6 | 0 | 12 | 1 | 10 | 1 | 2 | 0.09 | 1 | 5 | 0 | 0 | 4 | 0 | 4 | 31 | 55 | 7 | 44 | 13 | 38 | 4 | 29 | 13 | 23 | 4 | 5 | 2 | 10 |
323,891 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/mmmu/preprocessor.py | benchmarks.mmmu.preprocessor.MMMUPreprocessor | from ...datasets.interface import Row
from ...preprocessor.interface import IPreprocessor
class MMMUPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
super().__init__(preprocessor_id)
def preprocess_row(self, row: Row) -> Row:
return preprocess(row) |
class MMMUPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
pass
def preprocess_row(self, row: Row) -> Row:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 26 | 6 | 1 | 5 | 3 | 2 | 0 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
323,892 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/mmmu/preprocessor.py | benchmarks.mmmu.preprocessor.MMMUProPreprocessor | from ...preprocessor.interface import IPreprocessor
from ...datasets.interface import Row
class MMMUProPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str, version: str):
super().__init__(preprocessor_id)
self.version = version
def preprocess_row(self, row: Row) -> Row:
... |
class MMMUProPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str, version: str):
pass
def preprocess_row(self, row: Row) -> Row:
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 1 | 2 | 26 | 7 | 1 | 6 | 4 | 3 | 0 | 6 | 4 | 3 | 1 | 5 | 0 | 2 |
323,893 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/registry.py | benchmarks.registry.Benchmark | from typing import Literal
from pydantic import BaseModel
class Benchmark(BaseModel):
dataset_id: str
grader_ids: list[str]
development_status: Literal['verified'] | Literal['under_development'] | Literal['unverified']
preprocessor_id: str | None = None
print_subsets: bool = False
is_multi_turn... |
class Benchmark(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 0 | 9 | 6 | 8 | 3 | 9 | 6 | 8 | 0 | 5 | 0 | 0 |
323,894 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/registry.py | benchmarks.registry.BenchmarkRegistry | class BenchmarkRegistry:
_benchmark_registry: dict[str, Benchmark] = {}
@staticmethod
def register_benchmark(benchmark_id: str, benchmark: Benchmark):
BenchmarkRegistry._benchmark_registry[benchmark_id] = benchmark
@staticmethod
def get_benchmark(benchmark_id: str) -> Benchmark:
re... | class BenchmarkRegistry:
@staticmethod
def register_benchmark(benchmark_id: str, benchmark: Benchmark):
pass
@staticmethod
def get_benchmark(benchmark_id: str) -> Benchmark:
pass
@staticmethod
def get_benchmark_ids() -> list[str]:
pass
@staticmethod
def get_verif... | 9 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 4 | 4 | 22 | 4 | 18 | 11 | 9 | 0 | 10 | 6 | 5 | 1 | 0 | 0 | 4 |
323,895 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/simpleqa/grader.py | benchmarks.simpleqa.grader.SimpleQAGrader | from typing import Any
from ...graders.interface import IGrader
from ...models.interface import IModel
from ...datasets.interface import Row
import re
class SimpleQAGrader(IGrader):
def __init__(self, grader_id: str, grader_model: IModel):
super().__init__(grader_id)
self.grader_model = grader_mod... |
class SimpleQAGrader(IGrader):
def __init__(self, grader_id: str, grader_model: IModel):
pass
def calculate_aggregate_metrics(self, results: list[dict[str, Any]], rows: list[Row]) -> dict[str, Any]:
pass
def topline_metric(self) -> str:
pass
def grade_row(self, row: Row) -> ... | 5 | 0 | 10 | 1 | 9 | 0 | 1 | 0.03 | 1 | 6 | 1 | 0 | 4 | 1 | 4 | 31 | 43 | 6 | 36 | 13 | 31 | 1 | 18 | 13 | 13 | 2 | 5 | 0 | 5 |
323,896 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/benchmarks/simpleqa/preprocessor.py | benchmarks.simpleqa.preprocessor.SimpleQAPreprocessor | from ...datasets.interface import Row
from ...preprocessor.interface import IPreprocessor
class SimpleQAPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
super().__init__(preprocessor_id)
def preprocess_row(self, row: Row) -> Row:
return {'input_query': row['input_query']... |
class SimpleQAPreprocessor(IPreprocessor):
def __init__(self, preprocessor_id: str):
pass
def preprocess_row(self, row: Row) -> Row:
pass | 3 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 26 | 15 | 1 | 14 | 3 | 11 | 0 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
323,897 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/datasets/huggingface.py | datasets.huggingface.HuggingFaceDataset | from .interface import HuggingfaceDataSource, IDataset, Row
from collections.abc import Iterator
class HuggingFaceDataset(IDataset):
def __init__(self, dataset_id: str, config: HuggingfaceDataSource):
super().__init__(dataset_id)
self.config = config
def load(self) -> None:
from datas... |
class HuggingFaceDataset(IDataset):
def __init__(self, dataset_id: str, config: HuggingfaceDataSource):
pass
def load(self) -> None:
pass
def __iter__(self) -> Iterator[Row]:
pass
def __len__(self) -> int:
pass | 5 | 0 | 7 | 0 | 7 | 0 | 3 | 0 | 1 | 6 | 1 | 0 | 4 | 3 | 4 | 28 | 33 | 4 | 29 | 12 | 23 | 0 | 23 | 12 | 17 | 5 | 5 | 3 | 11 |
323,898 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/datasets/interface.py | datasets.interface.DatasetSource | from pydantic import BaseModel
class DatasetSource(BaseModel):
type: str |
class DatasetSource(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 82 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
323,899 | meta-llama/llama-verifications | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/meta-llama_llama-verifications/llama_verifications/benchmarks/datasets/interface.py | datasets.interface.HuggingfaceDataSource | from typing import Any, Literal
class HuggingfaceDataSource(DatasetSource):
type: Literal['huggingface'] = 'huggingface'
args: dict[str, Any]
subsets: list[str] | None = None |
class HuggingfaceDataSource(DatasetSource):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 0 | 4 | 3 | 3 | 0 | 4 | 3 | 3 | 0 | 6 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.