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
324,800
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/embeddings/multimodal_embedding.py
dashscope.embeddings.multimodal_embedding.MultiModalEmbeddingItemText
from dataclasses import dataclass @dataclass(init=False) class MultiModalEmbeddingItemText(MultiModalEmbeddingItemBase): text: str def __init__(self, text: str, factor: float, **kwargs): super().__init__(factor, **kwargs) self.text = text
@dataclass(init=False) class MultiModalEmbeddingItemText(MultiModalEmbeddingItemBase): def __init__(self, text: str, factor: float, **kwargs): pass
3
0
3
0
3
0
1
0
1
3
0
0
1
0
1
47
6
1
5
2
3
0
5
2
3
1
4
0
1
324,801
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/embeddings/text_embedding.py
dashscope.embeddings.text_embedding.TextEmbedding
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.common.utils import _get_task_group_and_task from typing import List, Union from dashscope.client.base_api import BaseApi from dashscope.common.constants import TEXT_EMBEDDING_INPUT_KEY class TextEmbedding(BaseApi): task = 't...
class TextEmbedding(BaseApi): class Models: @classmethod def call(cls, model: str, input: Union[str, List[str]], workspace: str=None, api_key: str=None, **kwargs) -> DashScopeAPIResponse: '''Get embedding of text input. Args: model (str): The embedding model name. ...
4
1
36
2
21
14
2
0.48
1
3
1
0
0
0
1
3
46
4
29
16
20
14
15
10
12
2
1
1
2
324,802
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/files.py
dashscope.files.Files
from dashscope.common.constants import FilePurpose import os from dashscope.client.base_api import DeleteMixin, FileUploadMixin, GetMixin, ListMixin from dashscope.common.error import InvalidFileFormat from dashscope.common.utils import is_validate_fine_tune_file from dashscope.api_entities.dashscope_response import Da...
class Files(FileUploadMixin, ListMixin, DeleteMixin, GetMixin): @classmethod def upload(cls, file_path: str, purpose: str=FilePurpose.fine_tune, description: str=None, api_key: str=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: '''Upload file for model fine-tune or other tasks. ...
9
4
22
2
11
9
2
0.77
4
5
3
0
0
0
4
8
97
12
48
30
20
37
14
6
9
4
1
2
7
324,803
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/io/input_output.py
dashscope.io.input_output.InputResolver
class InputResolver: def __init__(self, input_instance, is_encode_binary: bool=True, custom_type_resolver: dict={}): self._instance = input_instance self._is_encode_binary = is_encode_binary self._custom_type_resolver = custom_type_resolver def __next__(self): while True: ...
class InputResolver: def __init__(self, input_instance, is_encode_binary: bool=True, custom_type_resolver: dict={}): pass def __next__(self): pass def __iter__(self): pass
4
0
4
0
4
0
1
0
0
2
0
0
3
3
3
3
16
2
14
10
7
0
10
7
6
2
0
1
4
324,804
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/model.py
dashscope.model.Model
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.client.base_api import GetMixin, ListMixin class Model(ListMixin, GetMixin): SUB_PATH = 'models' @classmethod def get(cls, name: str, api_key: str=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: ...
class Model(ListMixin, GetMixin): @classmethod def get(cls, name: str, api_key: str=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: '''Get the model information. Args: name (str): The model name. api_key (str, optional): The api key. Defaults to None. ...
5
2
19
2
9
8
1
0.76
2
3
1
0
0
0
2
4
43
6
21
15
7
16
6
4
3
1
1
0
2
324,805
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/models.py
dashscope.models.Models
from dashscope.client.base_api import GetMixin, ListMixin from dashscope.api_entities.dashscope_response import DashScopeAPIResponse class Models(ListMixin, GetMixin): SUB_PATH = 'models' @classmethod def get(cls, name: str, api_key: str=None, **kwargs) -> DashScopeAPIResponse: """Get the model in...
class Models(ListMixin, GetMixin): @classmethod def get(cls, name: str, api_key: str=None, **kwargs) -> DashScopeAPIResponse: '''Get the model information. Args: name (str): The model name. api_key (str, optional): The api key. Defaults to None. workspace (s...
5
2
16
2
6
8
1
1.07
2
3
1
0
0
0
2
4
37
6
15
13
3
16
6
4
3
1
1
0
2
324,806
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/dialog_state.py
dashscope.multimodal.dialog_state.DialogState
from enum import Enum class DialogState(Enum): """ 对话状态枚举类,定义了对话机器人可能处于的不同状态。 Attributes: IDLE (str): 表示机器人处于空闲状态。 LISTENING (str): 表示机器人正在监听用户输入。 THINKING (str): 表示机器人正在思考。 RESPONDING (str): 表示机器人正在生成或回复中。 """ IDLE = 'Idle' LISTENING = 'Listening' THINKING ...
class DialogState(Enum): ''' 对话状态枚举类,定义了对话机器人可能处于的不同状态。 Attributes: IDLE (str): 表示机器人处于空闲状态。 LISTENING (str): 表示机器人正在监听用户输入。 THINKING (str): 表示机器人正在思考。 RESPONDING (str): 表示机器人正在生成或回复中。 ''' pass
1
1
0
0
0
0
0
1.6
1
0
0
0
0
0
0
49
14
1
5
5
4
8
5
5
4
0
4
0
0
324,807
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/dialog_state.py
dashscope.multimodal.dialog_state.StateMachine
class StateMachine: """ 状态机类,用于管理机器人的状态转换。 Attributes: current_state (DialogState): 当前状态。 """ def __init__(self): self.current_state = DialogState.IDLE def change_state(self, new_state: str) -> None: """ 更改当前状态到指定的新状态。 Args: new_state (str)...
class StateMachine: ''' 状态机类,用于管理机器人的状态转换。 Attributes: current_state (DialogState): 当前状态。 ''' def __init__(self): pass def change_state(self, new_state: str) -> None: ''' 更改当前状态到指定的新状态。 Args: new_state (str): 要切换到的新状态。 Raises: ...
4
3
8
1
3
4
1
1.8
0
3
1
0
3
1
3
3
35
7
10
5
6
18
9
5
5
2
0
1
4
324,808
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_constants.py
dashscope.multimodal.multimodal_constants.RequestToRespondType
class RequestToRespondType: TRANSCRIPT = 'transcript' PROMPT = 'prompt'
class RequestToRespondType: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
0
0
0
324,809
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_dialog.py
dashscope.multimodal.multimodal_dialog.MultiModalCallback
class MultiModalCallback: """ 语音聊天回调类,用于处理语音聊天过程中的各种事件。 """ def on_started(self, dialog_id: str) -> None: """ 通知对话开始 :param dialog_id: 回调对话ID """ pass def on_stopped(self) -> None: """ 通知对话停止 """ pass def on_state_change...
class MultiModalCallback: ''' 语音聊天回调类,用于处理语音聊天过程中的各种事件。 ''' def on_started(self, dialog_id: str) -> None: ''' 通知对话开始 :param dialog_id: 回调对话ID ''' pass def on_stopped(self) -> None: ''' 通知对话停止 ''' pass def on_state_changed...
15
15
6
1
2
4
1
1.83
0
2
0
1
14
0
14
14
103
21
29
15
14
53
29
15
14
1
0
0
14
324,810
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_dialog.py
dashscope.multimodal.multimodal_dialog.MultiModalDialog
import dashscope from dashscope.multimodal.multimodal_request_params import RequestParameters, get_random_uuid, DashHeader, RequestBodyInput, DashPayload, RequestToRespondParameters, RequestToRespondBodyInput from dashscope.multimodal import dialog_state import threading from abc import abstractmethod from dashscope.co...
class MultiModalDialog: ''' 用于管理WebSocket连接以进行语音聊天的服务类。 ''' def __init__(self, app_id: str, request_params: RequestParameters, multimodal_callback: MultiModalCallback, workspace_id: str=None, url: str=None, api_key: str=None, dialog_id: str=None, model: str=None): ''' 创建一个语音对话会...
30
18
7
0
5
1
2
0.29
0
11
6
0
28
14
28
28
231
33
155
70
113
45
126
55
97
4
0
2
43
324,811
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_dialog.py
dashscope.multimodal.multimodal_dialog._Request
from dashscope.common.logging import logger from dashscope.multimodal.multimodal_request_params import RequestParameters, get_random_uuid, DashHeader, RequestBodyInput, DashPayload, RequestToRespondParameters, RequestToRespondBodyInput from dashscope.protocol.websocket import ActionType import json import platform cla...
class _Request: def __init__(self): pass def get_websocket_header(self, api_key): pass def generate_start_request(self, direction_name: str, dialog_id: str, app_id: str, request_params: RequestParameters, model: str=None, workspace_id: str=None) -> str: ''' 构建语音聊天服务的启动请求数...
10
7
18
1
12
6
1
0.51
0
8
7
0
9
6
9
9
173
15
105
33
86
54
49
24
39
2
0
1
11
324,812
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_dialog.py
dashscope.multimodal.multimodal_dialog._Response
import json from dashscope.common.logging import logger from dashscope.multimodal import dialog_state class _Response: def __init__(self, state: dialog_state.StateMachine, callback: MultiModalCallback, close_callback=None): super().__init__() self.dialog_id = None self.dialog_state = state...
class _Response: def __init__(self, state: dialog_state.StateMachine, callback: MultiModalCallback, close_callback=None): pass def handle_text_response(self, response_json: str): ''' 处理语音聊天服务的响应数据. :param response_json: 从服务接收到的原始JSON字符串响应。 ''' pass def _ha...
15
2
7
0
6
1
2
0.14
0
7
2
0
14
4
14
14
112
15
87
23
72
12
75
23
60
14
0
3
34
324,813
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.BizParams
from dataclasses import dataclass, field, asdict @dataclass class BizParams: user_defined_params: dict = field(default=None) user_defined_tokens: dict = field(default=None) tool_prompts: dict = field(default=None) user_prompt_params: dict = field(default=None) user_query_params: dict = field(defaul...
@dataclass class BizParams: def to_dict(self): pass
3
0
17
0
17
0
8
0
0
0
0
0
1
0
1
1
26
1
25
10
23
0
25
10
23
8
0
1
8
324,814
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.ClientInfo
from dataclasses import dataclass, field, asdict @dataclass class ClientInfo: user_id: str device: Device = field(default=None) network: Network = field(default=None) location: Locations = field(default=None) def to_dict(self): info = {'user_id': self.user_id} if self.device is not...
@dataclass class ClientInfo: def to_dict(self): pass
3
0
11
0
11
0
4
0
0
0
0
0
1
0
1
1
17
1
16
6
14
0
14
6
12
4
0
1
4
324,815
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.DashHeader
from dataclasses import dataclass, field, asdict @dataclass class DashHeader: action: str task_id: str = field(default=get_random_uuid()) streaming: str = field(default='duplex') def to_dict(self): return {'action': self.action, 'task_id': self.task_id, 'request_id': self.task_id, 'streaming':...
@dataclass class DashHeader: def to_dict(self): pass
3
0
7
0
7
0
1
0.09
0
0
0
0
1
0
1
1
12
1
11
4
9
1
6
4
4
1
0
0
1
324,816
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.DashPayload
from dataclasses import dataclass, field, asdict @dataclass class DashPayload: task_group: str = field(default='aigc') function: str = field(default='generation') model: str = field(default='') task: str = field(default='multimodal-generation') parameters: DashPayloadParameters = field(default=None...
@dataclass class DashPayload: def to_dict(self): pass
3
0
15
3
12
0
3
0
0
0
0
0
1
0
1
1
23
4
19
8
17
0
14
8
12
3
0
1
3
324,817
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.DashPayloadInput
class DashPayloadInput: def to_dict(self): pass
class DashPayloadInput: def to_dict(self): pass
2
0
2
0
2
0
1
0
0
0
0
2
1
0
1
1
3
0
3
2
1
0
3
2
1
1
0
0
1
324,818
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.DashPayloadParameters
class DashPayloadParameters: def to_dict(self): pass
class DashPayloadParameters: def to_dict(self): pass
2
0
2
0
2
0
1
0
0
0
0
2
1
0
1
1
3
0
3
2
1
0
3
2
1
1
0
0
1
324,819
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.Device
import uuid from dataclasses import dataclass, field, asdict @dataclass class Device: uuid: str = field(default=None) def to_dict(self): return {'uuid': self.uuid}
@dataclass class Device: def to_dict(self): pass
3
0
4
0
4
0
1
0
0
0
0
0
1
0
1
1
7
1
6
3
4
0
4
3
2
1
0
0
1
324,820
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.DialogAttributes
from dataclasses import dataclass, field, asdict @dataclass class DialogAttributes: agent_id: str = field(default=None) prompt: str = field(default=None) vocabulary_id: str = field(default=None) def to_dict(self): return {'agent_id': self.agent_id, 'prompt': self.prompt, 'vocabulary_id': self....
@dataclass class DialogAttributes: def to_dict(self): pass
3
0
6
0
6
0
1
0
0
0
0
0
1
0
1
1
11
1
10
5
8
0
6
5
4
1
0
0
1
324,821
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.Downstream
from dataclasses import dataclass, field, asdict @dataclass class Downstream: voice: str = field(default='') sample_rate: int = field(default=0) intermediate_text: str = field(default='transcript') debug: bool = field(default=False) audio_format: str = field(default='pcm') volume: int = field(d...
@dataclass class Downstream: def to_dict(self): pass
3
0
17
0
16
1
4
0.5
0
1
0
0
1
0
1
1
32
1
26
12
24
13
19
12
17
4
0
1
4
324,822
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.Locations
from dataclasses import dataclass, field, asdict @dataclass class Locations: city_name: str = field(default=None) latitude: str = field(default=None) longitude: str = field(default=None) def to_dict(self): return {'city_name': self.city_name, 'latitude': self.latitude, 'longitude': self.longit...
@dataclass class Locations: def to_dict(self): pass
3
0
6
0
6
0
1
0
0
0
0
0
1
0
1
1
11
1
10
5
8
0
6
5
4
1
0
0
1
324,823
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.Network
from dataclasses import dataclass, field, asdict @dataclass class Network: ip: str = field(default=None) def to_dict(self): return {'ip': self.ip}
@dataclass class Network: def to_dict(self): pass
3
0
4
0
4
0
1
0
0
0
0
0
1
0
1
1
7
1
6
3
4
0
4
3
2
1
0
0
1
324,824
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.RequestBodyInput
from dataclasses import dataclass, field, asdict @dataclass class RequestBodyInput(DashPayloadInput): workspace_id: str app_id: str directive: str dialog_id: str def to_dict(self): return {'workspace_id': self.workspace_id, 'app_id': self.app_id, 'directive': self.directive, 'dialog_id': s...
@dataclass class RequestBodyInput(DashPayloadInput): def to_dict(self): pass
3
0
7
0
7
0
1
0
1
0
0
0
1
0
1
2
13
1
12
2
10
0
7
2
5
1
1
0
1
324,825
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.RequestParameters
from dataclasses import dataclass, field, asdict @dataclass class RequestParameters(DashPayloadParameters): upstream: Upstream downstream: Downstream client_info: ClientInfo dialog_attributes: DialogAttributes = field(default=None) biz_params: BizParams = field(default=None) def to_dict(self):...
@dataclass class RequestParameters(DashPayloadParameters): def to_dict(self): pass
3
0
12
1
11
0
3
0
1
0
0
0
1
0
1
2
19
2
17
5
15
0
13
5
11
3
1
1
3
324,826
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.RequestToRespondBodyInput
from dataclasses import dataclass, field, asdict @dataclass class RequestToRespondBodyInput(DashPayloadInput): app_id: str directive: str dialog_id: str type_: str = field(metadata={'alias': 'type'}, default=None) text: str = field(default='') def to_dict(self): return {'app_id': self....
@dataclass class RequestToRespondBodyInput(DashPayloadInput): def to_dict(self): pass
3
0
8
0
8
0
1
0
1
0
0
0
1
0
1
2
15
1
14
4
12
0
8
4
6
1
1
0
1
324,827
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.RequestToRespondParameters
from dataclasses import dataclass, field, asdict @dataclass class RequestToRespondParameters(DashPayloadParameters): images: list = field(default=None) biz_params: BizParams = field(default=None) def to_dict(self): params = {} if self.images is not None: params['images'] = self...
@dataclass class RequestToRespondParameters(DashPayloadParameters): def to_dict(self): pass
3
0
8
0
8
0
3
0
1
0
0
0
1
0
1
2
12
1
11
5
9
0
10
5
8
3
1
1
3
324,828
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/multimodal_request_params.py
dashscope.multimodal.multimodal_request_params.Upstream
from dataclasses import dataclass, field, asdict @dataclass class Upstream: """struct for upstream""" audio_format: str = field(default='pcm') type: str = field(default='AudioOnly') mode: str = field(default='tap2talk') pass_through_params: dict = field(default=None) def to_dict(self): ...
@dataclass class Upstream: '''struct for upstream''' def to_dict(self): pass
3
1
10
0
9
1
2
0.43
0
1
0
0
1
0
1
1
18
1
14
7
12
6
10
7
8
2
0
1
2
324,829
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/multimodal/tingwu/tingwu.py
dashscope.multimodal.tingwu.tingwu.TingWu
from typing import Dict, Any from dashscope.common.error import ModelRequired from dashscope.client.base_api import BaseApi from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.api_entities.api_request_factory import _build_api_request class TingWu(BaseApi): """API for TingWu A...
class TingWu(BaseApi): '''API for TingWu APP. ''' @classmethod def call(cls, model: str, user_defined_input: Dict[str, Any], parameters: Dict[str, Any]=None, api_key: str=None, **kwargs) -> DashScopeAPIResponse: '''Call generation model service. Args: model (str): The reques...
5
2
30
4
18
9
3
0.45
1
4
2
0
0
0
2
4
72
11
42
24
27
19
20
12
17
4
1
2
6
324,830
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/nlp/understanding.py
dashscope.nlp.understanding.Understanding
from dashscope.common.utils import _get_task_group_and_task from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.client.base_api import BaseApi from dashscope.common.logging import logger from dashscope.common.error import InputRequired, ModelRequired class Understanding(BaseApi): ...
class Understanding(BaseApi): class Models: @classmethod def call(cls, model: str, sentence: str=None, labels: str=None, task: str=None, api_key: str=None, **kwargs) -> DashScopeAPIResponse: '''Call generation model service. Args: model (str): The requested model, such as open...
6
1
22
2
15
6
3
0.39
1
5
3
0
0
0
2
4
55
6
36
17
24
14
20
9
16
4
1
1
6
324,831
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/protocol/websocket.py
dashscope.protocol.websocket.ActionType
class ActionType: START = 'run-task' CONTINUE = 'continue-task' FINISHED = 'finish-task'
class ActionType: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0
4
4
3
0
4
4
3
0
0
0
0
324,832
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/protocol/websocket.py
dashscope.protocol.websocket.EventType
class EventType: STARTED = 'task-started' GENERATED = 'result-generated' FINISHED = 'task-finished' FAILED = 'task-failed'
class EventType: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
5
5
4
0
5
5
4
0
0
0
0
324,833
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/protocol/websocket.py
dashscope.protocol.websocket.WebsocketStreamingMode
class WebsocketStreamingMode: NONE = 'none' IN = 'in' OUT = 'out' DUPLEX = 'duplex'
class WebsocketStreamingMode: pass
1
0
0
0
0
0
0
0.6
0
0
0
0
0
0
0
0
6
0
5
5
4
3
5
5
4
0
0
0
0
324,834
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/rerank/text_rerank.py
dashscope.rerank.text_rerank.TextReRank
from dashscope.api_entities.dashscope_response import ReRankResponse from dashscope.common.utils import _get_task_group_and_task from dashscope.common.error import InputRequired, ModelRequired from dashscope.client.base_api import BaseApi from typing import List class TextReRank(BaseApi): task = 'text-rerank' ...
class TextReRank(BaseApi): class Models: @classmethod def call(cls, model: str, query: str, documents: List[str], return_documents: bool=None, top_n: int=None, api_key: str=None, **kwargs) -> ReRankResponse: '''Calling rerank service. Args: model (str): The model to use. ...
4
1
50
6
28
16
5
0.55
1
7
3
0
0
0
1
3
59
8
33
16
22
18
19
8
16
5
1
1
5
324,835
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/messages/files.py
dashscope.threads.messages.files.Files
from dashscope.common.error import InputRequired from dashscope.client.base_api import GetStatusMixin, ListObjectMixin from dashscope.threads.thread_types import MessageFile, MessageFileList class Files(ListObjectMixin, GetStatusMixin): SUB_PATH = 'messages' @classmethod def retrieve(cls, file_id: str, *,...
class Files(ListObjectMixin, GetStatusMixin): @classmethod def retrieve(cls, file_id: str, *, thread_id: str, message_id: str, workspace: str=None, api_key: str=None, **kwargs) -> MessageFile: '''Retrieve the `MessageFile`. Args: thread_id (str): The thread id. message_...
7
3
32
2
19
11
2
0.55
2
6
3
0
0
0
3
5
104
9
62
34
31
34
14
7
10
2
1
1
5
324,836
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/messages/messages.py
dashscope.threads.messages.messages.Messages
from typing import Dict, List, Optional from dashscope.client.base_api import CreateMixin, GetStatusMixin, ListObjectMixin, UpdateMixin from dashscope.common.error import InputRequired from dashscope.threads.thread_types import ThreadMessage, ThreadMessageList class Messages(CreateMixin, ListObjectMixin, GetStatusMixi...
class Messages(CreateMixin, ListObjectMixin, GetStatusMixin, UpdateMixin): @classmethod def call(cls, thread_id: str, *, content: str, role: str='user', file_ids: List[str]=[], metadata: Optional[object]=None, workspace: str=None, api_key: str=None, **kwargs) -> ThreadMessage: '''Create message of thr...
13
6
32
2
19
11
2
0.55
4
7
3
0
0
0
6
10
208
18
123
65
64
68
34
13
27
4
1
1
12
324,837
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/runs/runs.py
dashscope.threads.runs.runs.Runs
from dashscope.client.base_api import CancelMixin, CreateMixin, GetStatusMixin, ListObjectMixin, UpdateMixin import time from dashscope.threads.thread_types import Run, RunList, RunStep, RunStepDelta, Thread, ThreadMessage, ThreadMessageDelta from http import HTTPStatus from dashscope.common.logging import logger from ...
class Runs(CreateMixin, CancelMixin, ListObjectMixin, GetStatusMixin, UpdateMixin): @classmethod def create_thread_and_run(cls, *, assistant_id: str, thread: Optional[Dict]=None, model: Optional[str]=None, instructions: Optional[str]=None, additional_instructions: Optional[str]=None, tools: Optional[List[Dict...
23
9
42
3
29
10
4
0.35
5
16
10
0
0
0
11
16
482
39
330
136
209
114
115
27
103
13
1
5
47
324,838
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/runs/steps.py
dashscope.threads.runs.steps.Steps
from dashscope.common.error import InputRequired from dashscope.client.base_api import GetStatusMixin, ListObjectMixin from dashscope.threads.thread_types import RunStep, RunStepList class Steps(ListObjectMixin, GetStatusMixin): SUB_PATH = 'RUNS' @classmethod def list(cls, run_id: str, *, thread_id: str, ...
class Steps(ListObjectMixin, GetStatusMixin): @classmethod def list(cls, run_id: str, *, thread_id: str, limit: int=None, order: str=None, after: str=None, before: str=None, workspace: str=None, api_key: str=None, **kwargs) -> RunStepList: '''List `RunStep` of `Run`. Args: thread_...
7
3
32
2
19
11
2
0.56
2
6
3
0
0
0
3
5
103
9
61
34
30
34
14
7
10
2
1
1
5
324,839
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.CodeInterpreter
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin from typing import Dict, List, Literal, Optional, Union @dataclass(init=False) class CodeInterpreter(BaseObjectMixin): input: str 'The input to the Code Interpreter tool call.' outputs: List[CodeInterpreterOu...
@dataclass(init=False) class CodeInterpreter(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
6
1
5
0
2
0.63
1
1
0
0
1
0
1
10
16
3
8
3
6
5
8
3
6
2
2
1
2
324,840
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.CodeInterpreterOutputImage
from dataclasses import dataclass from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class CodeInterpreterOutputImage(BaseObjectMixin): image: CodeInterpreterOutputImageImage type: Literal['image'] 'Always `image`....
@dataclass(init=False) class CodeInterpreterOutputImage(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
3
0
3
0
1
0.17
1
2
1
0
1
0
1
10
8
1
6
2
4
1
6
2
4
1
2
0
1
324,841
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.CodeInterpreterOutputImageImage
from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class CodeInterpreterOutputImageImage(BaseObjectMixin): file_id: str '\n The [file](https://platform.openai.com/docs/api-reference/files) ID of the\n image.\n ' def __init__(s...
@dataclass(init=False) class CodeInterpreterOutputImageImage(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
1
1
1
0
0
1
0
1
10
8
0
4
2
2
4
4
2
2
1
2
0
1
324,842
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.CodeInterpreterOutputLogs
from typing import Dict, List, Literal, Optional, Union from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class CodeInterpreterOutputLogs(BaseObjectMixin): logs: str 'The text output from the Code Interpreter tool call.' type: Literal[...
@dataclass(init=False) class CodeInterpreterOutputLogs(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0.4
1
1
0
0
1
0
1
10
8
1
5
2
3
2
5
2
3
1
2
0
1
324,843
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.CodeToolCall
from dataclasses import dataclass from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class CodeToolCall(BaseObjectMixin): id: str 'The ID of the tool call.' code_interpreter: CodeInterpreter 'The Code Interpret...
@dataclass(init=False) class CodeToolCall(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
4
0
4
0
1
0.63
1
2
1
0
1
0
1
10
16
3
8
2
6
5
7
2
5
1
2
0
1
324,844
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.Function
from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class Function(BaseObjectMixin): arguments: str name: str output: Optional[str] = None def __init__(self, **kwargs): ...
@dataclass(init=False) class Function(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
0
1
0
1
10
7
1
6
3
4
0
6
3
4
1
2
0
1
324,845
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.FunctionToolCall
from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class FunctionToolCall(BaseObjectMixin): id: str 'The ID of the tool call object.' function: Function 'The definition of the ...
@dataclass(init=False) class FunctionToolCall(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
3
0
3
0
1
0.71
1
2
1
0
1
0
1
10
15
3
7
2
5
5
7
2
5
1
2
0
1
324,846
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.ImageFile
from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class ImageFile(BaseObjectMixin): file_id: str def __init__(self, file_id, **kwargs): super().__init__(**kwargs)
@dataclass(init=False) class ImageFile(BaseObjectMixin): def __init__(self, file_id, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
0
1
0
1
10
5
1
4
2
2
0
4
2
2
1
2
0
1
324,847
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.LastError
from typing import Dict, List, Literal, Optional, Union from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class LastError(BaseObjectMixin): code: Literal['server_error', 'rate_limit_exceeded'] message: str def __init__(self, **kwargs)...
@dataclass(init=False) class LastError(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
0
1
0
1
10
6
1
5
2
3
0
5
2
3
1
2
0
1
324,848
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.MessageContentImageFile
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class MessageContentImageFile(BaseObjectMixin): type: str = 'image_file' image_file: ImageFile def __init__(self, **kwargs): self.image_file = ImageFile(**kwargs.pop(self.type,...
@dataclass(init=False) class MessageContentImageFile(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
3
0
3
0
1
0
1
2
1
0
1
0
1
10
7
1
6
3
4
0
6
3
4
1
2
0
1
324,849
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.MessageContentText
from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class MessageContentText(BaseObjectMixin): text: Text type: str = 'text' def __init__(self, **kwargs): input_text = kwargs.pop('text', {}) if input_text: se...
@dataclass(init=False) class MessageContentText(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
2
1
0
1
0
1
10
9
1
8
4
6
0
8
4
6
2
2
1
2
324,850
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.MessageCreation
from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class MessageCreation(BaseObjectMixin): message_id: str 'The ID of the message that was created by this run step.' def __init__(self, **kwargs): super().__init__(**kwargs)
@dataclass(init=False) class MessageCreation(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0.25
1
1
0
0
1
0
1
10
5
0
4
2
2
1
4
2
2
1
2
0
1
324,851
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.MessageCreationStepDetails
from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass from typing import Dict, List, Literal, Optional, Union @dataclass(init=False) class MessageCreationStepDetails(BaseObjectMixin): message_creation: MessageCreation type: Literal['message_creation'] 'Always `m...
@dataclass(init=False) class MessageCreationStepDetails(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0.2
1
1
0
0
1
0
1
10
7
1
5
2
3
1
5
2
3
1
2
0
1
324,852
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.MessageFile
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class MessageFile(BaseObjectMixin): id: str message_id: str created_at: int object: str def __init__(self, **kwargs): super().__init__(**kwargs)
@dataclass(init=False) class MessageFile(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
0
1
0
1
10
8
1
7
2
5
0
7
2
5
1
2
0
1
324,853
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.MessageFileList
from dataclasses import dataclass from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class MessageFileList(BaseList): data: List[MessageFile] def __init__(self, **kwargs): super().__init__(**kwargs)
@dataclass(init=False) class MessageFileList(BaseList): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
0
1
0
1
11
5
1
4
2
2
0
4
2
2
1
3
0
1
324,854
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RequiredAction
from dataclasses import dataclass from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class RequiredAction(BaseObjectMixin): submit_tool_outputs: RequiredActionSubmitToolOutputs type: Literal['submit_tool_outputs'] ...
@dataclass(init=False) class RequiredAction(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
4
0
4
0
1
0
1
2
1
0
1
0
1
10
9
2
7
2
5
0
6
2
4
1
2
0
1
324,855
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RequiredActionFunctionToolCall
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class RequiredActionFunctionToolCall(BaseObjectMixin): id: str function: Function type: str = 'function' def __init__(self, **kwargs): self.function = Function(**kwargs.pop...
@dataclass(init=False) class RequiredActionFunctionToolCall(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
3
0
3
0
1
0
1
2
1
0
1
0
1
10
10
3
7
3
5
0
7
3
5
1
2
0
1
324,856
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RequiredActionSubmitToolOutputs
from dashscope.common.base_type import BaseList, BaseObjectMixin from typing import Dict, List, Literal, Optional, Union from dataclasses import dataclass @dataclass(init=False) class RequiredActionSubmitToolOutputs(BaseObjectMixin): tool_calls: List[RequiredActionFunctionToolCall] def __init__(self, **kwargs...
@dataclass(init=False) class RequiredActionSubmitToolOutputs(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
9
0
9
0
3
0
1
2
1
0
1
0
1
10
12
1
11
4
9
0
10
4
8
3
2
2
3
324,857
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RetrievalToolCall
from typing import Dict, List, Literal, Optional, Union from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class RetrievalToolCall(BaseObjectMixin): id: str 'The ID of the tool call object.' retrieval: object 'For now, this is alway...
@dataclass(init=False) class RetrievalToolCall(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0.83
1
1
0
0
1
0
1
10
14
3
6
2
4
5
6
2
4
1
2
0
1
324,858
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.Run
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin from typing import Dict, List, Literal, Optional, Union from dashscope.assistants.assistant_types import Tool, convert_tools_dict_to_objects @dataclass(init=False) class Run(BaseObjectMixin): status_code: int id:...
@dataclass(init=False) class Run(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
9
1
8
0
2
0
1
2
1
0
1
0
1
10
46
12
34
21
32
0
32
21
30
2
2
1
2
324,859
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RunList
from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class RunList(BaseObjectMixin): data: List[Run] def __init__(self, has_more: bool=None, last_id: Optional[str]=None, first_id: Optio...
@dataclass(init=False) class RunList(BaseObjectMixin): def __init__(self, has_more: bool=None, last_id: Optional[str]=None, first_id: Optional[str]=None, data: List[Run]=[], **kwargs): pass
3
0
11
0
11
0
1
0
1
4
1
0
1
0
1
10
14
1
13
7
6
0
4
2
2
1
2
0
1
324,860
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RunStep
from dataclasses import dataclass from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class RunStep(BaseObjectMixin): status_code: int = None id: str 'The identifier of the run step, which can be referenced in API e...
@dataclass(init=False) class RunStep(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
13
0
13
0
3
1.13
1
3
2
0
1
0
1
10
87
19
32
11
30
36
28
11
26
3
2
1
3
324,861
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RunStepDelta
from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class RunStepDelta(BaseObjectMixin): id: str object: str = 'thread.run.step.delta' delta: RunStepDeltaContent def __init__(self, **kwargs): delta = kwargs.pop('delta', None...
@dataclass(init=False) class RunStepDelta(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
7
0
7
0
2
0
1
2
1
0
1
0
1
10
12
1
11
4
9
0
10
4
8
2
2
1
2
324,862
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RunStepDeltaContent
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class RunStepDeltaContent(BaseObjectMixin): step_details: StepDetails def __init__(self, **kwargs): self.step_details = convert_step_details_dict_to_objects(kwargs.pop('step_detail...
@dataclass(init=False) class RunStepDeltaContent(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
4
0
4
0
1
0
1
1
0
0
1
0
1
10
7
1
6
2
4
0
5
2
3
1
2
0
1
324,863
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.RunStepList
from dataclasses import dataclass from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class RunStepList(BaseList): data: List[RunStep] def __init__(self, has_more: bool=None, last_id: Optional[str]=None, first_id: Opti...
@dataclass(init=False) class RunStepList(BaseList): def __init__(self, has_more: bool=None, last_id: Optional[str]=None, first_id: Optional[str]=None, data: List[RunStep]=[], **kwargs): pass
3
0
17
0
17
0
3
0
1
4
1
0
1
0
1
11
20
1
19
9
12
0
10
4
8
3
3
2
3
324,864
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.Text
from typing import Dict, List, Literal, Optional, Union from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class Text(BaseObjectMixin): annotations: List[TextAnnotation] value: str def __init__(self, **kwargs): annotations = kw...
@dataclass(init=False) class Text(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
9
0
9
0
3
0
1
1
0
0
1
0
1
10
13
1
12
4
10
0
11
4
9
3
2
2
3
324,865
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.Thread
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin from typing import Dict, List, Literal, Optional, Union @dataclass(init=False) class Thread(BaseObjectMixin): status_code: int id: str created_at: int metadata: Optional[object] = None object: str = '...
@dataclass(init=False) class Thread(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
0
1
0
1
10
9
1
8
4
6
0
8
4
6
1
2
0
1
324,866
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.ThreadMessage
from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class ThreadMessage(BaseObjectMixin): status_code: int id: str created_at: int thread_id: str role: str content: List...
@dataclass(init=False) class ThreadMessage(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
19
1
18
0
5
0
1
1
0
0
1
0
1
10
32
2
30
11
28
0
26
11
24
5
2
4
5
324,867
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.ThreadMessageDelta
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class ThreadMessageDelta(BaseObjectMixin): status_code: int id: str object: str = 'thread.message.delta' delta: ThreadMessageDeltaContent def __init__(self, **kwargs): ...
@dataclass(init=False) class ThreadMessageDelta(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
7
0
7
0
2
0
1
2
1
0
1
0
1
10
13
1
12
4
10
0
11
4
9
2
2
1
2
324,868
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.ThreadMessageDeltaContent
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class ThreadMessageDeltaContent(BaseObjectMixin): content: Content role: str def __init__(self, **kwargs): contents = kwargs.pop('content', None) if contents: ...
@dataclass(init=False) class ThreadMessageDeltaContent(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
13
0
13
0
5
0
1
3
2
0
1
0
1
10
17
1
16
4
14
0
13
4
11
5
2
3
5
324,869
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.ThreadMessageList
from dataclasses import dataclass from typing import Dict, List, Literal, Optional, Union from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class ThreadMessageList(BaseList): data: List[ThreadMessage] def __init__(self, has_more: bool=None, last_id: Optional[str]=None, fi...
@dataclass(init=False) class ThreadMessageList(BaseList): def __init__(self, has_more: bool=None, last_id: Optional[str]=None, first_id: Optional[str]=None, data: List[ThreadMessage]=[], **kwargs): pass
3
0
11
0
11
0
1
0
1
4
1
0
1
0
1
11
14
1
13
7
6
0
4
2
2
1
3
0
1
324,870
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.ToolCallsStepDetails
from dashscope.common.base_type import BaseList, BaseObjectMixin from typing import Dict, List, Literal, Optional, Union from dataclasses import dataclass @dataclass(init=False) class ToolCallsStepDetails(BaseObjectMixin): tool_calls: List[ToolCall] 'An array of tool calls the run step was involved in.\n\n ...
@dataclass(init=False) class ToolCallsStepDetails(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
4
0
4
0
1
0.71
1
1
0
0
1
0
1
10
14
2
7
2
5
5
6
2
4
1
2
0
1
324,871
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/thread_types.py
dashscope.threads.thread_types.Usage
from dataclasses import dataclass from dashscope.common.base_type import BaseList, BaseObjectMixin @dataclass(init=False) class Usage(BaseObjectMixin): completion_tokens: int 'Number of completion tokens used over the course of the run.' prompt_tokens: int 'Number of prompt tokens used over the course ...
@dataclass(init=False) class Usage(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0.63
1
1
0
0
1
0
1
10
18
5
8
2
6
5
8
2
6
1
2
0
1
324,872
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/threads/threads.py
dashscope.threads.threads.Threads
from dashscope.assistants.assistant_types import DeleteResponse from dashscope.common.error import InputRequired from dashscope.client.base_api import CreateMixin, DeleteMixin, GetStatusMixin, UpdateMixin from typing import Dict, List, Optional from dashscope.threads.thread_types import Run, Thread class Threads(Creat...
class Threads(CreateMixin, DeleteMixin, GetStatusMixin, UpdateMixin): @classmethod def call(cls, *, messages: List[Dict]=None, metadata: Dict=None, workspace: str=None, api_key: str=None, **kwargs) -> Thread: '''Create a thread. Args: messages (List[Dict], optional): List of messag...
15
6
26
2
17
7
3
0.4
4
6
4
0
0
0
7
11
199
20
128
67
69
51
47
16
39
8
1
1
20
324,873
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/tokenizers/Tokenization.py
dashscope.tokenizers.Tokenization.Tokenization
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse, Message, Role from typing import Any, List from dashscope.common.logging import logger from dashscope.common.error import InputRequired, ModelRequired from dashscope.common.constants import CUSTOMIZED_MODEL_ID, DEPRECATED_MESSAGE, HISTORY, MESS...
class Tokenization(BaseApi): class Models: '''List of models currently supported ''' @classmethod def call(cls, model: str, input: Any=None, prompt: Any=None, history: list=None, api_key: str=None, messages: List[Message]=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: ...
6
2
45
4
28
14
7
0.46
1
9
5
0
0
0
2
4
110
10
69
28
55
32
44
18
40
9
1
2
14
324,874
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/tokenizers/qwen_tokenizer.py
dashscope.tokenizers.qwen_tokenizer.QwenTokenizer
from typing import Collection, Dict, List, Set, Union from .tokenizer_base import Tokenizer import unicodedata import base64 class QwenTokenizer(Tokenizer): @staticmethod def _load_tiktoken_bpe(tiktoken_bpe_file: str) -> Dict[bytes, int]: with open(tiktoken_bpe_file, 'rb') as f: contents =...
class QwenTokenizer(Tokenizer): @staticmethod def _load_tiktoken_bpe(tiktoken_bpe_file: str) -> Dict[bytes, int]: pass def __init__(self, vocab_file, errors='replace', extra_vocab_file=None): pass def encode(self, text: str, allowed_special: Union[Set, str]='all', disallowed_special:...
6
0
19
1
17
1
3
0.07
1
5
0
0
3
10
4
7
81
8
71
33
53
5
38
20
32
5
1
3
10
324,875
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/tokenizers/tokenization.py
dashscope.tokenizers.tokenization.Tokenization
from dashscope.common.error import InputRequired, ModelRequired from dashscope.client.base_api import BaseApi from dashscope.common.constants import CUSTOMIZED_MODEL_ID, DEPRECATED_MESSAGE, HISTORY, MESSAGES, PROMPT from dashscope.api_entities.dashscope_response import DashScopeAPIResponse, Message, Role from typing im...
class Tokenization(BaseApi): class Models: '''List of models currently supported ''' @classmethod def call(cls, model: str, input: Any=None, prompt: Any=None, history: list=None, api_key: str=None, messages: List[Message]=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: ...
6
2
45
4
28
14
7
0.46
1
9
5
0
0
0
2
4
110
10
69
28
55
32
44
18
40
9
1
2
14
324,876
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/tokenizers/tokenizer_base.py
dashscope.tokenizers.tokenizer_base.Tokenizer
from typing import List class Tokenizer: """Base tokenizer interface for local tokenizers. """ def __init__(self): pass def encode(self, text: str, **kwargs) -> List[int]: """Encode input text string to token ids. Args: text (str): The string to be encoded. ...
class Tokenizer: '''Base tokenizer interface for local tokenizers. ''' def __init__(self): pass def encode(self, text: str, **kwargs) -> List[int]: '''Encode input text string to token ids. Args: text (str): The string to be encoded. Returns: Li...
4
3
7
1
2
4
1
2
0
2
0
1
3
0
3
3
27
6
7
4
3
14
7
4
3
1
0
0
3
324,877
dashscope/dashscope-sdk-python
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/dashscope_dashscope-sdk-python/dashscope/utils/oss_utils.py
dashscope.utils.oss_utils.OssUtils
from time import mktime from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.common.utils import get_user_agent import mimetypes import os from dashscope.client.base_api import GetMixin import requests from dashscope.common.logging import logger from dashscope.common.error import In...
class OssUtils(GetMixin): @classmethod def _decode_response_error(cls, response: requests.Response): pass @classmethod def upload(cls, model: str, file_path: str, api_key: str=None, **kwargs) -> DashScopeAPIResponse: '''Upload file for model fine-tune or other tasks. Args: ...
7
2
25
1
18
5
2
0.25
1
8
2
0
0
0
3
4
82
7
60
25
46
15
38
14
34
3
1
2
6
324,878
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/exceptions.py
lgtm_ai.ai.exceptions.InvalidGeminiWildcard
import click from lgtm_ai.ai.schemas import SupportedGeminiModel class InvalidGeminiWildcard(click.BadParameter): """Exception raised when a Gemini model name with wildcard is invalid.""" def __init__(self, matches: list[SupportedGeminiModel]) -> None: msg = f"The provided Gemini model name matches mu...
class InvalidGeminiWildcard(click.BadParameter): '''Exception raised when a Gemini model name with wildcard is invalid.''' def __init__(self, matches: list[SupportedGeminiModel]) -> None: pass
2
1
3
0
3
0
1
0.25
0
2
0
0
1
0
1
1
6
1
4
3
2
1
4
3
2
1
0
0
1
324,879
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/exceptions.py
lgtm_ai.ai.exceptions.InvalidModelName
import click class InvalidModelName(click.BadParameter): """Exception raised when an invalid AI model name is provided.""" def __init__(self, model_name: str) -> None: msg = f"Model '{model_name}' is not a valid AI model name" super().__init__(msg)
class InvalidModelName(click.BadParameter): '''Exception raised when an invalid AI model name is provided.''' def __init__(self, model_name: str) -> None: pass
2
1
3
0
3
0
1
0.25
0
2
0
0
1
0
1
1
6
1
4
3
2
1
4
3
2
1
0
0
1
324,880
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/exceptions.py
lgtm_ai.ai.exceptions.InvalidModelWildCard
import click class InvalidModelWildCard(click.BadParameter): """Exception raised when a model name with wildcard is invalid.""" def __init__(self, model_name: str) -> None: msg = f"The provided model name '{model_name}' is not valid. Only one wildcard (*) at the end of the model name is allowed." ...
class InvalidModelWildCard(click.BadParameter): '''Exception raised when a model name with wildcard is invalid.''' def __init__(self, model_name: str) -> None: pass
2
1
3
0
3
0
1
0.25
0
2
0
0
1
0
1
1
6
1
4
3
2
1
4
3
2
1
0
0
1
324,881
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/exceptions.py
lgtm_ai.ai.exceptions.MissingAIAPIKey
import click class MissingAIAPIKey(click.BadParameter): """Exception raised when an AI API key is required but not provided.""" def __init__(self, model_name: str) -> None: msg = f"Model '{model_name}' requires an AI API key to be provided" super().__init__(msg)
class MissingAIAPIKey(click.BadParameter): '''Exception raised when an AI API key is required but not provided.''' def __init__(self, model_name: str) -> None: pass
2
1
3
0
3
0
1
0.25
0
2
0
0
1
0
1
1
6
1
4
3
2
1
4
3
2
1
0
0
1
324,882
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/exceptions.py
lgtm_ai.ai.exceptions.MissingModelUrl
import click class MissingModelUrl(click.BadParameter): """Exception raised when a custom AI model URL is required but not provided.""" def __init__(self, model_name: str) -> None: msg = f"Custom model '{model_name}' requires --model-url to be provided" super().__init__(msg)
class MissingModelUrl(click.BadParameter): '''Exception raised when a custom AI model URL is required but not provided.''' def __init__(self, model_name: str) -> None: pass
2
1
3
0
3
0
1
0.5
0
2
0
0
1
0
1
1
6
1
4
3
2
2
4
3
2
1
0
0
1
324,883
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.AdditionalContext
from typing import Annotated, Final, Literal, Self, get_args from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator class AdditionalContext(BaseModel): """Additional context for the LLM. It is optional and can contain things like project development or stylistic guidelines, com...
class AdditionalContext(BaseModel): '''Additional context for the LLM. It is optional and can contain things like project development or stylistic guidelines, common conventions or even LLM-specific instructions. It can come from a file in the project repository, any file on the internet or provided directly. ...
1
1
0
0
0
0
0
0.16
1
0
0
0
0
0
0
82
24
2
19
4
18
3
4
4
3
0
5
0
0
324,884
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.AgentSettings
from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator from typing import Annotated, Final, Literal, Self, get_args class AgentSettings(BaseModel): """Configurable settings to pass to pydantic-ai agents.""" retries: Annotated[int | None, Field(description='Number of retries the ...
class AgentSettings(BaseModel): '''Configurable settings to pass to pydantic-ai agents.''' pass
1
1
0
0
0
0
0
0.14
1
0
0
0
0
0
0
82
9
1
7
2
6
1
2
2
1
0
5
0
0
324,885
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.CodeSuggestion
from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator from typing import Annotated, Final, Literal, Self, get_args class CodeSuggestion(BaseModel): start_offset: Annotated[CodeSuggestionOffset, Field(description='Offset (from comment line number) to start the suggestion')] end_...
class CodeSuggestion(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
14
0
14
6
13
0
6
6
5
0
5
0
0
324,886
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.CodeSuggestionOffset
from typing import Annotated, Final, Literal, Self, get_args from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator class CodeSuggestionOffset(BaseModel): offset: Annotated[int, Field(description='Offset relative to the comment line number'), AfterValidator(lambda v: abs(v))] di...
class CodeSuggestionOffset(BaseModel): @model_validator(mode='after') def change_direction_of_zero(self) -> Self: pass
3
0
5
0
4
1
2
0.13
1
0
0
0
1
0
1
83
18
1
16
5
13
2
7
4
5
2
5
1
2
324,887
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.GuideChecklistItem
from typing import Annotated, Final, Literal, Self, get_args from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator class GuideChecklistItem(BaseModel): description: Annotated[str, Field(description='Description of the checklist item')]
class GuideChecklistItem(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
2
0
2
2
1
0
2
2
1
0
5
0
0
324,888
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.GuideKeyChange
from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator from typing import Annotated, Final, Literal, Self, get_args class GuideKeyChange(BaseModel): file_name: Annotated[str, Field(description='File name of the key change')] description: Annotated[str, Field(description='Descrip...
class GuideKeyChange(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
3
0
3
3
2
0
3
3
2
0
5
0
0
324,889
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.GuideReference
from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator from typing import Annotated, Final, Literal, Self, get_args class GuideReference(BaseModel): title: Annotated[str, Field(description='Title of the reference')] url: Annotated[str, Field(description='URL of the reference')]
class GuideReference(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
3
0
3
3
2
0
3
3
2
0
5
0
0
324,890
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.GuideResponse
from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator from typing import Annotated, Final, Literal, Self, get_args class GuideResponse(BaseModel): summary: Annotated[str, Field(description='Summary of the review guide')] key_changes: Annotated[list[GuideKeyChange], Field(descri...
class GuideResponse(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
82
5
0
5
5
4
0
5
5
4
0
5
0
0
324,891
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.PublishMetadata
from functools import cached_property from pydantic_ai.usage import RunUsage from uuid import uuid4 import zoneinfo import datetime from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator class PublishMetadata(BaseModel): model_name: str usage: RunUsage @cached_property ...
class PublishMetadata(BaseModel): @cached_property def created_at(self) -> str: pass @cached_property def uuid(self) -> str: pass
5
0
2
0
2
0
1
0
1
3
0
0
2
0
2
84
11
2
9
5
4
0
7
3
4
1
5
0
2
324,892
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.Review
from lgtm_ai.git_client.schemas import PRDiff from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator class Review(BaseModel): """Represent a full code review performed by any AI agent.""" pr_diff: PRDiff review_response: ReviewResponse metadata: PublishMetadata
class Review(BaseModel): '''Represent a full code review performed by any AI agent.''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
82
6
1
4
1
3
1
4
1
3
0
5
0
0
324,893
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.ReviewComment
from typing import Annotated, Final, Literal, Self, get_args from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator class ReviewComment(BaseModel): """Individual comment representation in a PR code review.""" old_path: Annotated[str, Field(description='Path of the file in the ba...
class ReviewComment(BaseModel): '''Individual comment representation in a PR code review.''' pass
1
1
0
0
0
0
0
0.08
1
0
0
0
0
0
0
82
14
1
12
12
11
1
12
12
11
0
5
0
0
324,894
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.ReviewGuide
from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator from lgtm_ai.git_client.schemas import PRDiff class ReviewGuide(BaseModel): """Represent a code review guide generated by the AI agent.""" pr_diff: PRDiff guide_response: GuideResponse metadata: PublishMetadata
class ReviewGuide(BaseModel): '''Represent a code review guide generated by the AI agent.''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
82
6
1
4
1
3
1
4
1
3
0
5
0
0
324,895
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.ReviewResponse
from typing import Annotated, Final, Literal, Self, get_args from pydantic import AfterValidator, BaseModel, Field, computed_field, model_validator class ReviewResponse(BaseModel): """Structured output of any AI agent performing or summarizing code reviews.""" summary: Annotated[str, Field(description='Summary...
class ReviewResponse(BaseModel): '''Structured output of any AI agent performing or summarizing code reviews.''' @computed_field @property def score(self) -> ReviewScore: pass
4
1
2
0
2
0
1
0.21
1
2
0
0
1
0
1
83
18
2
14
6
10
3
6
5
4
1
5
0
1
324,896
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.ReviewerDeps
from dataclasses import dataclass @dataclass(frozen=True, slots=True) class ReviewerDeps: """Dependencies passed to the AI agent performing the code review. This is used to generate the system prompt for the AI agent. """ configured_technologies: tuple[str, ...] configured_categories: tuple[Commen...
@dataclass(frozen=True, slots=True) class ReviewerDeps: '''Dependencies passed to the AI agent performing the code review. This is used to generate the system prompt for the AI agent. ''' pass
2
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
8
2
3
1
2
3
3
1
2
0
0
0
0
324,897
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/ai/schemas.py
lgtm_ai.ai.schemas.SummarizingDeps
from dataclasses import dataclass @dataclass(frozen=True, slots=True) class SummarizingDeps: """Dependencies passed to the AI agent summarizing the code review.""" configured_categories: tuple[CommentCategory, ...]
null
2
1
0
0
0
0
0
0.5
0
0
0
0
0
0
0
0
4
1
2
1
1
1
2
1
1
0
0
0
0
324,898
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/base/exceptions.py
lgtm_ai.base.exceptions.LGTMException
from click import ClickException from typing import IO, Any class LGTMException(ClickException): def show(self, file: IO[Any] | None=None) -> None: """LGTM exceptions expose the traceback in debug mode.""" logger.debug(self.format_message(), exc_info=True) logger.error(self.format_message(...
class LGTMException(ClickException): def show(self, file: IO[Any] | None=None) -> None: '''LGTM exceptions expose the traceback in debug mode.''' pass
2
1
4
0
3
1
1
0.25
1
2
0
13
1
0
1
15
5
0
4
2
2
1
4
2
2
1
4
0
1
324,899
elementsinteractive/lgtm-ai
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/elementsinteractive_lgtm-ai/src/lgtm_ai/base/exceptions.py
lgtm_ai.base.exceptions.NothingToReviewError
class NothingToReviewError(LGTMException): def __init__(self, exclude: tuple[str, ...] | None=None) -> None: exclude = exclude or () super().__init__(f"Nothing to review after excluding file patterns {', '.join(exclude)}.")
class NothingToReviewError(LGTMException): def __init__(self, exclude: tuple[str, ...] | None=None) -> None: pass
2
0
3
0
3
0
1
0
1
3
0
0
1
0
1
16
4
0
4
2
2
0
4
2
2
1
5
0
1