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,700
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/audio/qwen_omni/omni_realtime.py
dashscope.audio.qwen_omni.omni_realtime.MultiModality
from enum import Enum, unique class MultiModality(Enum): """ MultiModality """ TEXT = 'text' AUDIO = 'audio' def __str__(self): return self.name
class MultiModality(Enum): ''' MultiModality ''' def __str__(self): pass
2
1
2
0
2
0
1
0.6
1
0
0
0
1
0
1
50
9
1
5
4
3
3
5
4
3
1
4
0
1
324,701
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/audio/qwen_omni/omni_realtime.py
dashscope.audio.qwen_omni.omni_realtime.OmniRealtimeCallback
class OmniRealtimeCallback: """ An interface that defines callback methods for getting omni-realtime results. # noqa E501 Derive from this class and implement its function to provide your own data. """ def on_open(self) -> None: pass def on_close(self, close_status_code, close_msg) -> ...
class OmniRealtimeCallback: ''' An interface that defines callback methods for getting omni-realtime results. # noqa E501 Derive from this class and implement its function to provide your own data. ''' def on_open(self) -> None: pass def on_close(self, close_status_code, close_msg)...
4
1
2
0
2
0
1
0.57
0
1
0
0
3
0
3
3
13
2
7
4
3
4
7
4
3
1
0
0
3
324,702
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/audio/qwen_omni/omni_realtime.py
dashscope.audio.qwen_omni.omni_realtime.OmniRealtimeConversation
from dashscope.common.logging import logger import threading import json from dashscope.common.error import InputRequired, ModelRequired import time import platform import uuid import dashscope import websocket from typing import List class OmniRealtimeConversation: def __init__(self, model, callback: OmniRealtim...
class OmniRealtimeConversation: def __init__(self, model, callback: OmniRealtimeCallback, headers=None, workspace=None, url=None, additional_params=None): ''' Qwen Omni Realtime SDK Parameters: ----------- model: str Model name. headers: Dict ...
24
12
14
0
10
4
2
0.41
0
15
4
0
23
16
23
23
353
27
234
71
185
95
126
46
102
12
0
5
46
324,703
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/audio/qwen_tts/speech_synthesizer.py
dashscope.audio.qwen_tts.speech_synthesizer.SpeechSynthesizer
from typing import Generator, Union from dashscope.client.base_api import BaseApi from dashscope.common.error import InputRequired, ModelRequired from dashscope.api_entities.dashscope_response import TextToSpeechResponse class SpeechSynthesizer(BaseApi): """Text-to-speech interface. """ task_group = 'aigc'...
class SpeechSynthesizer(BaseApi): '''Text-to-speech interface. ''' class Models: @classmethod def call(cls, model: str, text: str, api_key: str=None, workspace: str=None, **kwargs) -> Union[TextToSpeechResponse, Generator[TextToSpeechResponse, None, None]]: '''Call the conversation model ...
4
2
55
3
30
22
5
0.65
1
5
3
0
0
0
1
3
67
6
37
18
25
24
19
9
16
5
1
1
5
324,704
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/audio/qwen_tts_realtime/qwen_tts_realtime.py
dashscope.audio.qwen_tts_realtime.qwen_tts_realtime.AudioFormat
from enum import Enum, unique @unique class AudioFormat(Enum): PCM_24000HZ_MONO_16BIT = ('pcm', 24000, 'mono', '16bit', 'pcm16') def __init__(self, format, sample_rate, channels, bit_rate, format_str): self.format = format self.sample_rate = sample_rate self.channels = channels ...
@unique class AudioFormat(Enum): def __init__(self, format, sample_rate, channels, bit_rate, format_str): pass def __repr__(self): pass def __str__(self): pass
5
0
3
0
3
0
1
0.08
1
0
0
0
3
5
3
52
16
3
12
10
8
1
12
10
8
1
4
0
3
324,705
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/audio/qwen_tts_realtime/qwen_tts_realtime.py
dashscope.audio.qwen_tts_realtime.qwen_tts_realtime.QwenTtsRealtime
import uuid import dashscope import json import websocket import threading import time from dashscope.common.logging import logger from dashscope.common.error import InputRequired, ModelRequired import platform class QwenTtsRealtime: def __init__(self, model, headers=None, callback: QwenTtsRealtimeCallback=None, ...
class QwenTtsRealtime: def __init__(self, model, headers=None, callback: QwenTtsRealtimeCallback=None, workspace=None, url=None, additional_params=None): ''' Qwen Tts Realtime SDK Parameters: ----------- model: str Model name. headers: Dict U...
21
11
12
0
9
3
2
0.37
0
11
3
0
20
15
20
20
265
22
179
54
145
67
101
41
80
10
0
5
37
324,706
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/audio/qwen_tts_realtime/qwen_tts_realtime.py
dashscope.audio.qwen_tts_realtime.qwen_tts_realtime.QwenTtsRealtimeCallback
class QwenTtsRealtimeCallback: """ An interface that defines callback methods for getting omni-realtime results. # noqa E501 Derive from this class and implement its function to provide your own data. """ def on_open(self) -> None: pass def on_close(self, close_status_code, close_msg) ...
class QwenTtsRealtimeCallback: ''' An interface that defines callback methods for getting omni-realtime results. # noqa E501 Derive from this class and implement its function to provide your own data. ''' def on_open(self) -> None: pass def on_close(self, close_status_code, close_m...
4
1
2
0
2
0
1
0.57
0
1
0
0
3
0
3
3
13
2
7
4
3
4
7
4
3
1
0
0
3
324,707
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/audio/tts/speech_synthesizer.py
dashscope.audio.tts.speech_synthesizer.ResultCallback
from dashscope.api_entities.dashscope_response import SpeechSynthesisResponse class ResultCallback: """ An interface that defines callback methods for getting speech synthesis results. # noqa E501 Derive from this class and implement its function to provide your own data. """ def on_open(self) -> ...
class ResultCallback: ''' An interface that defines callback methods for getting speech synthesis results. # noqa E501 Derive from this class and implement its function to provide your own data. ''' def on_open(self) -> None: pass def on_complete(self) -> None: pass d...
6
1
2
0
2
0
1
0.36
0
2
2
2
5
0
5
5
19
4
11
6
5
4
11
6
5
1
0
0
5
324,708
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/audio/tts/speech_synthesizer.py
dashscope.audio.tts.speech_synthesizer.SpeechSynthesisResult
from typing import Dict, List from dashscope.api_entities.dashscope_response import SpeechSynthesisResponse class SpeechSynthesisResult: """The result set of speech synthesis, including audio data, timestamp information, and final result information. """ _audio_frame: bytes = None _audio_data: b...
class SpeechSynthesisResult: '''The result set of speech synthesis, including audio data, timestamp information, and final result information. ''' def __init__(self, frame: bytes, data: bytes, sentence: Dict[str, str], sentences: List[Dict[str, str]], response: SpeechSynthesisResponse): pas...
7
6
6
0
4
2
2
0.52
0
3
1
0
6
0
6
6
51
7
29
14
20
15
27
12
20
6
0
1
11
324,709
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/audio/tts/speech_synthesizer.py
dashscope.audio.tts.speech_synthesizer.SpeechSynthesizer
from http import HTTPStatus from typing import Dict, List from dashscope.api_entities.dashscope_response import SpeechSynthesisResponse from dashscope.common.constants import ApiProtocol from dashscope.common.utils import _get_task_group_and_task from dashscope.client.base_api import BaseApi class SpeechSynthesizer(Ba...
class SpeechSynthesizer(BaseApi): '''Text-to-speech interface. ''' class AudioFormat: @classmethod def call(cls, model: str, text: str, callback: ResultCallback=None, workspace: str=None, **kwargs) -> SpeechSynthesisResult: '''Convert text to speech synchronously. Args: ...
4
2
103
9
69
27
15
0.39
1
9
4
0
0
0
1
3
112
10
75
23
66
29
46
17
43
15
1
7
15
324,710
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/audio/tts_v2/enrollment.py
dashscope.audio.tts_v2.enrollment.VoiceEnrollmentException
class VoiceEnrollmentException(Exception): def __init__(self, request_id: str, status_code: int, code: str, error_message: str) -> None: self._request_id = request_id self._status_code = status_code self._code = code self._error_message = error_message def __str__(self): ...
class VoiceEnrollmentException(Exception): def __init__(self, request_id: str, status_code: int, code: str, error_message: str) -> None: pass def __str__(self): pass
3
0
4
0
4
0
1
0
1
2
0
0
2
4
2
12
10
1
9
8
5
0
8
7
5
1
3
0
2
324,711
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/audio/tts_v2/enrollment.py
dashscope.audio.tts_v2.enrollment.VoiceEnrollmentService
from dashscope.common.constants import ApiProtocol, HTTPMethod from dashscope.common.logging import logger from dashscope.client.base_api import BaseApi import time import aiohttp import asyncio from typing import List class VoiceEnrollmentService(BaseApi): """ API for voice clone service """ MAX_QUERY...
class VoiceEnrollmentService(BaseApi): ''' API for voice clone service ''' def __init__(self, api_key=None, workspace=None, model=None, **kwargs) -> None: pass def __call_with_input(self, input): pass def create_voice(self, target_model: str, prefix: str, url: str) -> str: ...
9
6
17
0
14
3
2
0.27
1
9
3
0
8
5
8
10
149
9
110
30
94
30
59
22
50
4
1
3
18
324,712
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/audio/tts_v2/speech_synthesizer.py
dashscope.audio.tts_v2.speech_synthesizer.AudioFormat
from enum import Enum, unique @unique class AudioFormat(Enum): DEFAULT = ('Default', 0, '0', 0) WAV_8000HZ_MONO_16BIT = ('wav', 8000, 'mono', 0) WAV_16000HZ_MONO_16BIT = ('wav', 16000, 'mono', 16) WAV_22050HZ_MONO_16BIT = ('wav', 22050, 'mono', 16) WAV_24000HZ_MONO_16BIT = ('wav', 24000, 'mono', 16...
@unique class AudioFormat(Enum): def __init__(self, format, sample_rate, channels, bit_rate): pass def __str__(self): pass
4
0
4
0
4
0
1
0
1
0
0
0
2
4
2
51
42
4
38
37
35
0
38
37
35
1
4
0
2
324,713
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/audio/tts_v2/speech_synthesizer.py
dashscope.audio.tts_v2.speech_synthesizer.Request
import json import platform from dashscope.protocol.websocket import ACTION_KEY, EVENT_KEY, HEADER, TASK_ID, ActionType, EventType, WebsocketStreamingMode import uuid class Request: def __init__(self, apikey, model, voice, format='wav', sample_rate=16000, bit_rate=64000, volume=50, speech_rate=1.0, pitch_rate=1.0...
class Request: def __init__(self, apikey, model, voice, format='wav', sample_rate=16000, bit_rate=64000, volume=50, speech_rate=1.0, pitch_rate=1.0, seed=0, synthesis_type=0, instruction=None, language_hints: list=None): pass def genUid(self): pass def getWebsocketHeaders(self, headers, ...
7
0
17
0
17
0
2
0.02
0
2
2
0
6
11
6
6
110
6
103
33
85
2
35
22
28
3
0
1
10
324,714
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/audio/tts_v2/speech_synthesizer.py
dashscope.audio.tts_v2.speech_synthesizer.ResultCallback
class ResultCallback: """ An interface that defines callback methods for getting speech synthesis results. # noqa E501 Derive from this class and implement its function to provide your own data. """ def on_open(self) -> None: pass def on_complete(self) -> None: pass def on...
class ResultCallback: ''' An interface that defines callback methods for getting speech synthesis results. # noqa E501 Derive from this class and implement its function to provide your own data. ''' def on_open(self) -> None: pass def on_complete(self) -> None: pass de...
7
1
2
0
2
0
1
0.31
0
2
0
1
6
0
6
6
22
5
13
7
6
4
13
7
6
1
0
0
6
324,715
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/audio/tts_v2/speech_synthesizer.py
dashscope.audio.tts_v2.speech_synthesizer.SpeechSynthesizer
from dashscope.common.logging import logger import threading import time from dashscope.common.error import InputRequired, InvalidTask, ModelRequired import dashscope import json from dashscope.protocol.websocket import ACTION_KEY, EVENT_KEY, HEADER, TASK_ID, ActionType, EventType, WebsocketStreamingMode import websock...
class SpeechSynthesizer: def __init__(self, model, voice, format: AudioFormat=AudioFormat.DEFAULT, volume=50, speech_rate=1.0, pitch_rate=1.0, seed=0, synthesis_type=0, instruction=None, language_hints: list=None, headers=None, callback: ResultCallback=None, workspace=None, url=None, additional_params=None): ...
18
7
20
1
15
5
3
0.38
0
15
7
0
17
29
17
17
367
26
248
72
217
95
192
59
174
15
0
4
59
324,716
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/cli.py
dashscope.cli.Deployments
import time from http import HTTPStatus import dashscope from dashscope.common.constants import DeploymentStatus, FilePurpose, TaskStatus class Deployments: @classmethod def call(cls, args): rsp = dashscope.Deployments.call(model=args.model, capacity=args.capacity, suffix=args.suffix) if rsp.s...
class Deployments: @classmethod def call(cls, args): pass @classmethod def get(cls, args): pass @classmethod def list(cls, args): pass @classmethod def update(cls, args): pass @classmethod def scale(cls, args): pass @classmethod d...
13
0
15
0
14
0
4
0.01
0
4
2
0
0
0
6
6
99
6
93
23
80
1
58
17
51
6
0
5
23
324,717
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/cli.py
dashscope.cli.Files
from http import HTTPStatus import dashscope import json class Files: @classmethod def upload(cls, args): rsp = dashscope.Files.upload(file_path=args.file, purpose=args.purpose, description=args.description, base_address=args.base_url) print(rsp) if rsp.status_code == HTTPStatus.OK: ...
class Files: @classmethod def upload(cls, args): pass @classmethod def get(cls, args): pass @classmethod def list(cls, args): pass @classmethod def delete(cls, args): pass
9
0
9
0
9
0
3
0
0
2
1
0
0
0
4
4
45
3
42
13
33
0
26
9
21
3
0
2
10
324,718
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/cli.py
dashscope.cli.FineTunes
import time import dashscope from dashscope.common.constants import DeploymentStatus, FilePurpose, TaskStatus from http import HTTPStatus class FineTunes: @classmethod def call(cls, args): params = {} if args.n_epochs is not None: params['n_epochs'] = args.n_epochs if args....
class FineTunes: @classmethod def call(cls, args): pass @classmethod def wait(cls, job_id): pass @classmethod def get(cls, args): pass @classmethod def list(cls, args): pass @classmethod def stream_events(cls, job_id): pass @classmeth...
19
0
16
0
15
1
5
0.03
0
4
2
0
0
0
9
9
160
9
149
33
130
5
97
24
87
8
0
4
41
324,719
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/cli.py
dashscope.cli.Oss
import os from dashscope.utils.oss_utils import OssUtils class Oss: @classmethod def upload(cls, args): print('Start oss.upload: model=%s, file=%s, api_key=%s' % (args.model, args.file, args.api_key)) if not args.file or not args.model: print('Please specify the model and file path...
class Oss: @classmethod def upload(cls, args): pass
3
0
27
5
22
0
5
0
0
1
1
0
0
0
1
1
29
5
24
6
21
0
19
5
17
5
0
1
5
324,720
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/cli.py
dashscope.cli.ParseKVAction
import argparse class ParseKVAction(argparse.Action): def __call__(self, parser, namespace, values, option_string=None): setattr(namespace, self.dest, dict()) for each in values: try: key, value = each.split('=') getattr(namespace, self.dest)[key] = valu...
class ParseKVAction(argparse.Action): def __call__(self, parser, namespace, values, option_string=None): pass
2
0
11
0
11
0
3
0
1
4
0
0
1
1
1
8
12
0
12
7
10
0
11
5
9
3
3
2
3
324,721
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/client/base_api.py
dashscope.client.base_api.AsyncAioTaskGetMixin
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQUEST_TIMEOUT_KEYWORD, SSE_CONTENT_TYPE, TaskStatus, HTTPMethod import collections from dashscope.api_entities.api_request_factory import _build_api_req...
class AsyncAioTaskGetMixin: @classmethod async def _get(cls, task_id: str, api_key: str=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: pass @classmethod def _handle_kwargs(cls, api_key: str=None, workspace: str=None, **kwargs): pass @classmethod async def _handle_req...
7
0
15
0
14
1
3
0.04
0
3
2
1
0
0
3
3
51
2
47
19
36
2
28
12
24
3
0
2
8
324,722
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/client/base_api.py
dashscope.client.base_api.AsyncTaskGetMixin
from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url from dashscope.common.logging import logger import requests from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQUEST_TIMEOUT_KEYWORD, ...
class AsyncTaskGetMixin: @classmethod def _get(cls, task_id: str, api_key: str=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: pass
3
0
24
0
24
0
2
0
0
3
1
1
0
0
1
1
26
0
26
13
19
0
13
7
11
2
0
1
2
324,723
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/client/base_api.py
dashscope.client.base_api.BaseAioApi
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.api_entities.api_request_factory import _build_api_request from dashscope.common.error import InvalidParameter, InvalidTask, ModelRequired from dashscope.common.api_key import get_default_api_key class BaseAioApi: """BaseApi,...
class BaseAioApi: '''BaseApi, internal use only. ''' @classmethod def _validate_params(cls, api_key, model): pass @classmethod async def call(cls, model: str, input: object, task_group: str, task: str=None, function: str=None, api_key: str=None, workspace: str=None, **kwargs) -> DashSco...
5
2
27
1
15
11
3
0.73
0
4
2
6
0
0
2
2
61
4
33
15
20
24
14
5
11
3
0
1
5
324,724
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/client/base_api.py
dashscope.client.base_api.BaseApi
from dashscope.common.error import InvalidParameter, InvalidTask, ModelRequired from dashscope.api_entities.api_request_factory import _build_api_request from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.common.api_key import get_default_api_key class BaseApi: """BaseApi, in...
class BaseApi: '''BaseApi, internal use only. ''' @classmethod def _validate_params(cls, api_key, model): pass @classmethod def call(cls, model: str, input: object, task_group: str, task: str=None, function: str=None, api_key: str=None, workspace: str=None, **kwargs) -> DashScopeAPIResp...
5
2
27
1
15
11
3
0.73
0
4
2
22
0
0
2
2
61
4
33
15
20
24
14
5
11
3
0
1
5
324,725
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/client/base_api.py
dashscope.client.base_api.BaseAsyncAioApi
from dashscope.api_entities.api_request_factory import _build_api_request import asyncio from typing import Any, Dict, Iterator, List, Union from dashscope.common.api_key import get_default_api_key from http import HTTPStatus from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQ...
class BaseAsyncAioApi(AsyncAioTaskGetMixin): '''BaseApi, internal use only. ''' @classmethod def _validate_params(cls, api_key, model): pass @classmethod async def async_call(cls, model: str, input: object, task_group: str, task: str=None, function: str=None, api_key: str=None, workspac...
17
5
27
1
20
7
4
0.33
1
9
5
2
0
0
8
11
238
18
167
78
109
55
86
29
77
8
1
3
29
324,726
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/client/base_api.py
dashscope.client.base_api.BaseAsyncApi
from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQUEST_TIMEOUT_KEYWORD, SSE_CONTENT_TYPE, TaskStatus, HTTPMethod from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url from dashscope.comm...
class BaseAsyncApi(AsyncTaskGetMixin): '''BaseAsyncApi,for async task, internal use only. ''' @classmethod def _validate_params(cls, api_key, model): pass @classmethod def call(cls, *args, api_key: str=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: '''Call service...
17
7
31
2
21
9
4
0.39
1
11
6
6
0
0
8
9
269
20
180
82
124
70
89
33
80
9
1
3
30
324,727
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/client/base_api.py
dashscope.client.base_api.CancelMixin
import dashscope from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url from typing import Any, Dict, Iterator, List, Union from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.common.constants ...
class CancelMixin: @classmethod def cancel(cls, target: str, path: str=None, api_key: str=None, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Cancel a job. Args: target (str): The request params, key/value map. api_key (str, optional): The api ...
3
1
39
2
29
8
3
0.26
0
3
1
3
0
0
1
1
41
2
31
15
23
8
16
8
14
3
0
1
3
324,728
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/client/base_api.py
dashscope.client.base_api.CreateMixin
from typing import Any, Dict, Iterator, List, Union from dashscope.api_entities.dashscope_response import DashScopeAPIResponse import requests from dashscope.common.logging import logger from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQUEST_TIMEOUT_KEYWORD, SSE_CONTENT_TYPE,...
class CreateMixin: @classmethod def call(cls, data: object, api_key: str=None, path: str=None, stream: bool=False, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Create a object Args: data (object): The create request json body. api_key (str, op...
3
1
44
2
34
8
3
0.22
0
6
1
8
0
0
1
1
46
2
36
15
27
8
18
7
16
3
0
3
3
324,729
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/client/base_api.py
dashscope.client.base_api.DeleteMixin
import dashscope from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url import requests from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQUEST_TIMEOUT_KEYWORD, SSE_CONTENT_TYPE, TaskStatu...
class DeleteMixin: @classmethod def delete(cls, target: str, api_key: str=None, path: str=None, workspace: str=None, flattened_output=False, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Delete object. Args: target (str): The object to delete, . api_key (str, optio...
3
1
39
2
29
8
3
0.26
0
3
1
6
0
0
1
1
41
2
31
15
22
8
15
7
13
3
0
1
3
324,730
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/client/base_api.py
dashscope.client.base_api.FileUploadMixin
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse import requests from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQUEST_TIMEOUT_KEYWORD, SSE_CONTENT_TYPE, TaskStatus, HTTPMethod import dashscope from typing import Any, Dict, Iterator, List, Union fro...
class FileUploadMixin: @classmethod def upload(cls, files: list, descriptions: List[str]=None, params: dict=None, api_key: str=None, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Upload files Args: files (list): List of (name, opened file, file_name). ...
3
1
43
2
31
10
3
0.3
0
5
1
1
0
0
1
1
45
2
33
16
24
10
16
8
14
3
0
1
3
324,731
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/client/base_api.py
dashscope.client.base_api.GetMixin
from typing import Any, Dict, Iterator, List, Union from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url from dashscope.api_entities.dashscope_response import DashScopeAPIResponse import dashscope class GetMixin: @classmeth...
class GetMixin: @classmethod def get(cls, target, api_key: str=None, params: dict={}, path: str=None, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Get object information. Args: target (str): The target to get, such as model_id. api_key (str, o...
3
1
34
3
23
8
3
0.32
0
3
1
5
0
0
1
1
36
3
25
13
16
8
11
6
9
3
0
1
3
324,732
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/client/base_api.py
dashscope.client.base_api.GetStatusMixin
import dashscope from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from typing import Any, Dict, Iterator, List, Union from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url class GetStatusMixin: @cla...
class GetStatusMixin: @classmethod def get(cls, target, api_key: str=None, path: str=None, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Get object information. Args: target (str): The target to get, such as model_id. api_key (str, optional): T...
3
1
31
2
21
8
3
0.35
0
2
1
8
0
0
1
1
33
2
23
12
15
8
11
6
9
3
0
1
3
324,733
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/client/base_api.py
dashscope.client.base_api.ListMixin
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from typing import Any, Dict, Iterator, List, Union class ListMixin: @classmethod def list(cls, page_no=1, page_size=10, api_key: str=None, path: str=None, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: ""...
class ListMixin: @classmethod def list(cls, page_no=1, page_size=10, api_key: str=None, path: str=None, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''list objects Args: api_key (str, optional): The api api_key, if not present, will get by d...
3
1
27
2
15
10
1
0.59
0
2
1
5
0
0
1
1
29
2
17
12
8
10
6
5
4
1
0
0
1
324,734
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/client/base_api.py
dashscope.client.base_api.ListObjectMixin
from dashscope.common.error import InvalidParameter, InvalidTask, ModelRequired from typing import Any, Dict, Iterator, List, Union class ListObjectMixin: @classmethod def list(cls, limit: int=None, order: str=None, after: str=None, before: str=None, path: str=None, workspace: str=None, api_key: str=None, **k...
class ListObjectMixin: @classmethod def list(cls, limit: int=None, order: str=None, after: str=None, before: str=None, path: str=None, workspace: str=None, api_key: str=None, **kwargs) -> Any: '''List object Args: limit (int, optional): How many object to list. Defaults to None. ...
3
1
41
2
27
12
6
0.41
0
4
1
6
0
0
1
1
43
2
29
14
18
12
16
5
14
6
0
2
6
324,735
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/client/base_api.py
dashscope.client.base_api.LogMixin
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from typing import Any, Dict, Iterator, List, Union import dashscope from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url class LogMixin: @classmeth...
class LogMixin: @classmethod def logs(cls, job_id: str, offset=1, line=1000, api_key: str=None, path: str=None, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Get log of the job. Args: job_id (str): The job id(used for fine-tune) offset (int, op...
3
1
31
2
20
9
2
0.41
0
2
1
1
0
0
1
1
33
2
22
13
12
9
8
5
6
2
0
1
2
324,736
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/client/base_api.py
dashscope.client.base_api.PutMixin
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQUEST_TI...
class PutMixin: @classmethod def put(cls, target: str, json: object, path: str=None, api_key: str=None, workspace: str=None, **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Async update a object Args: target (str): The target to update. json (object): The create requ...
3
1
41
2
30
9
3
0.28
0
4
1
1
0
0
1
1
43
2
32
15
23
9
15
7
13
3
0
1
3
324,737
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/client/base_api.py
dashscope.client.base_api.StreamEventMixin
import dashscope from dashscope.api_entities.dashscope_response import DashScopeAPIResponse import requests from typing import Any, Dict, Iterator, List, Union from dashscope.common.logging import logger from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response...
class StreamEventMixin: @classmethod def _handle_stream(cls, response: requests.Response): pass @classmethod def _handle_response(cls, response: requests.Response): pass @classmethod def stream_events(cls, target, api_key: str=None, workspace: str=None, **kwargs) -> Iterator[Da...
7
1
28
1
24
4
5
0.14
0
6
1
2
0
0
3
3
90
4
77
24
66
11
43
16
39
7
0
4
16
324,738
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/client/base_api.py
dashscope.client.base_api.UpdateMixin
from dashscope.common.constants import DEFAULT_REQUEST_TIMEOUT_SECONDS, REPEATABLE_STATUS, REQUEST_TIMEOUT_KEYWORD, SSE_CONTENT_TYPE, TaskStatus, HTTPMethod import requests from dashscope.common.utils import _handle_http_failed_response, _handle_http_response, _handle_http_stream_response, default_headers, join_url fro...
class UpdateMixin: @classmethod def update(cls, target: str, json: object, api_key: str=None, path: str=None, workspace: str=None, method: str='patch', **kwargs) -> Union[DashScopeAPIResponse, Dict]: '''Async update a object Args: target (str): The target to update. jso...
3
1
53
2
42
9
4
0.2
0
4
1
4
0
0
1
1
55
2
44
17
34
9
18
8
16
4
0
2
4
324,739
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/common/base_type.py
dashscope.common.base_type.BaseList
from dataclasses import dataclass @dataclass(init=False) class BaseList(BaseObjectMixin): status_code: int has_more: bool last_id: str first_id: str def __init__(self, **kwargs): super().__init__(**kwargs)
@dataclass(init=False) class BaseList(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
5
1
0
1
10
8
1
7
2
5
0
7
2
5
1
2
0
1
324,740
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/common/base_type.py
dashscope.common.base_type.BaseObjectMixin
from dataclasses import dataclass import dataclasses from typing import Any, List @dataclass(init=False) class BaseObjectMixin(object): __slots__ = () def __init__(self, **kwargs): field_type_map = self._get_fields_type() for k, v in kwargs.items(): field = field_type_map.get(k, No...
@dataclass(init=False) class BaseObjectMixin(object): def __init__(self, **kwargs): pass def _init_list_element_recursive(self, field, items: list) -> List[Any]: pass def _get_fields_type(self): pass def __setitem__(self, __key: Any, __value: Any) -> None: pass d...
11
0
10
0
9
0
4
0.03
1
4
0
56
9
0
9
9
100
11
87
32
77
3
76
32
66
8
1
4
33
324,741
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/common/constants.py
dashscope.common.constants.ApiProtocol
class ApiProtocol: WEBSOCKET = 'websocket' HTTP = 'http' HTTPS = 'https'
class ApiProtocol: 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,742
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/common/constants.py
dashscope.common.constants.DeploymentStatus
class DeploymentStatus: DEPLOYING = 'DEPLOYING' SERVING = 'RUNNING' DELETING = 'DELETING' FAILED = 'FAILED' PENDING = 'PENDING'
class DeploymentStatus: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6
0
6
6
5
0
6
6
5
0
0
0
0
324,743
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/common/constants.py
dashscope.common.constants.FilePurpose
class FilePurpose: fine_tune = 'fine_tune' assistants = 'assistants'
class FilePurpose: 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,744
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/common/constants.py
dashscope.common.constants.HTTPMethod
class HTTPMethod: GET = 'GET' HEAD = 'HEAD' POST = 'POST' PUT = 'PUT' DELETE = 'DELETE' CONNECT = 'CONNECT' OPTIONS = 'OPTIONS' TRACE = 'TRACE' PATCH = 'PATCH'
class HTTPMethod: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
10
0
10
10
9
0
10
10
9
0
0
0
0
324,745
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/common/constants.py
dashscope.common.constants.TaskStatus
class TaskStatus: PENDING = 'PENDING' SUSPENDED = 'SUSPENDED' SUCCEEDED = 'SUCCEEDED' CANCELED = 'CANCELED' RUNNING = 'RUNNING' FAILED = 'FAILED' UNKNOWN = 'UNKNOWN'
class TaskStatus: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
0
8
8
7
0
8
8
7
0
0
0
0
324,746
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/common/constants.py
dashscope.common.constants.Tasks
class Tasks(object): TextGeneration = 'text-generation' AutoSpeechRecognition = 'asr'
class Tasks(object): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
1
0
0
324,747
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/common/error.py
dashscope.common.error.AssistantError
class AssistantError(DashScopeException): def __init__(self, **kwargs): self.message = None self.code = None self.request_id = None if 'message' in kwargs: import json msg = json.loads(kwargs['message']) if 'request_id' in msg: sel...
class AssistantError(DashScopeException): def __init__(self, **kwargs): pass def __str__(self): pass
3
0
9
0
9
1
3
0.06
1
0
0
0
2
3
2
12
19
1
18
9
14
1
17
9
13
5
4
2
6
324,748
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/common/error.py
dashscope.common.error.AsyncTaskCreateFailed
class AsyncTaskCreateFailed(DashScopeException): pass
class AsyncTaskCreateFailed(DashScopeException): 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
4
0
0
324,749
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/common/error.py
dashscope.common.error.AuthenticationError
class AuthenticationError(DashScopeException): pass
class AuthenticationError(DashScopeException): 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
4
0
0
324,750
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/common/error.py
dashscope.common.error.DashScopeException
class DashScopeException(Exception): pass
class DashScopeException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
25
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
324,751
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/common/error.py
dashscope.common.error.InputDataRequired
class InputDataRequired(DashScopeException): pass
class InputDataRequired(DashScopeException): 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
4
0
0
324,752
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/common/error.py
dashscope.common.error.InputRequired
class InputRequired(DashScopeException): pass
class InputRequired(DashScopeException): 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
4
0
0
324,753
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/common/error.py
dashscope.common.error.InvalidFileFormat
class InvalidFileFormat(DashScopeException): pass
class InvalidFileFormat(DashScopeException): 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
4
0
0
324,754
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/common/error.py
dashscope.common.error.InvalidInput
class InvalidInput(DashScopeException): pass
class InvalidInput(DashScopeException): 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
4
0
0
324,755
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/common/error.py
dashscope.common.error.InvalidModel
class InvalidModel(DashScopeException): pass
class InvalidModel(DashScopeException): 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
4
0
0
324,756
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/common/error.py
dashscope.common.error.InvalidParameter
class InvalidParameter(DashScopeException): pass
class InvalidParameter(DashScopeException): 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
4
0
0
324,757
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/common/error.py
dashscope.common.error.InvalidTask
class InvalidTask(DashScopeException): pass
class InvalidTask(DashScopeException): 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
4
0
0
324,758
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/common/error.py
dashscope.common.error.ModelRequired
class ModelRequired(DashScopeException): pass
class ModelRequired(DashScopeException): 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
4
0
0
324,759
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/common/error.py
dashscope.common.error.MultiInputsWithBinaryNotSupported
class MultiInputsWithBinaryNotSupported(DashScopeException): pass
class MultiInputsWithBinaryNotSupported(DashScopeException): 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
4
0
0
324,760
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/common/error.py
dashscope.common.error.NotImplemented
class NotImplemented(DashScopeException): pass
class NotImplemented(DashScopeException): 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
4
0
0
324,761
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/common/error.py
dashscope.common.error.RequestFailure
class RequestFailure(DashScopeException): def __init__(self, request_id=None, message=None, name=None, http_code=None): self.request_id = request_id self.message = message self.name = name self.http_code = http_code def __str__(self): msg = 'Request failed, request_id: ...
class RequestFailure(DashScopeException): def __init__(self, request_id=None, message=None, name=None, http_code=None): pass def __str__(self): pass
3
0
7
0
7
1
1
0.07
1
0
0
0
2
4
2
12
15
1
14
12
7
1
9
8
6
1
4
0
2
324,762
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/common/error.py
dashscope.common.error.ServiceUnavailableError
class ServiceUnavailableError(DashScopeException): pass
class ServiceUnavailableError(DashScopeException): 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
4
0
0
324,763
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/common/error.py
dashscope.common.error.TimeoutException
class TimeoutException(DashScopeException): pass
class TimeoutException(DashScopeException): 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
4
0
0
324,764
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/common/error.py
dashscope.common.error.UnexpectedMessageReceived
class UnexpectedMessageReceived(DashScopeException): pass
class UnexpectedMessageReceived(DashScopeException): 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
4
0
0
324,765
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/common/error.py
dashscope.common.error.UnknownMessageReceived
class UnknownMessageReceived(DashScopeException): pass
class UnknownMessageReceived(DashScopeException): 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
4
0
0
324,766
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/common/error.py
dashscope.common.error.UnsupportedApiProtocol
class UnsupportedApiProtocol(DashScopeException): pass
class UnsupportedApiProtocol(DashScopeException): 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
4
0
0
324,767
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/common/error.py
dashscope.common.error.UnsupportedData
class UnsupportedData(DashScopeException): pass
class UnsupportedData(DashScopeException): 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
4
0
0
324,768
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/common/error.py
dashscope.common.error.UnsupportedDataType
class UnsupportedDataType(DashScopeException): pass
class UnsupportedDataType(DashScopeException): 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
4
0
0
324,769
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/common/error.py
dashscope.common.error.UnsupportedHTTPMethod
class UnsupportedHTTPMethod(DashScopeException): pass
class UnsupportedHTTPMethod(DashScopeException): 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
4
0
0
324,770
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/common/error.py
dashscope.common.error.UnsupportedModel
class UnsupportedModel(DashScopeException): pass
class UnsupportedModel(DashScopeException): 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
4
0
0
324,771
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/common/error.py
dashscope.common.error.UnsupportedTask
class UnsupportedTask(DashScopeException): pass
class UnsupportedTask(DashScopeException): 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
4
0
0
324,772
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/common/error.py
dashscope.common.error.UploadFileException
class UploadFileException(DashScopeException): pass
class UploadFileException(DashScopeException): 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
4
0
0
324,773
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/common/message_manager.py
dashscope.common.message_manager.MessageManager
from typing import List from collections import deque from dashscope.api_entities.dashscope_response import ConversationResponse, GenerationResponse, Message class MessageManager(object): DEFAULT_MAXIMUM_MESSAGES = 100 def __init__(self, max_length: int=None): if max_length is None: self._...
class MessageManager(object): def __init__(self, max_length: int=None): pass def add_generation_response(self, response: GenerationResponse): pass def add_conversation_response(self, response: ConversationResponse): pass def add_generation_response(self, response: Generation...
6
1
4
0
3
1
1
0.27
1
5
3
0
5
1
5
5
25
6
15
8
9
4
14
8
8
2
1
1
6
324,774
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/common/utils.py
dashscope.common.utils.SSEEvent
from dataclasses import dataclass @dataclass class SSEEvent: id: str eventType: str data: str def __init__(self, id: str, type: str, data: str): self.id = id self.eventType = type self.data = data
@dataclass class SSEEvent: def __init__(self, id: str, type: str, data: str): pass
3
0
4
0
4
0
1
0
0
1
0
0
1
1
1
1
9
1
8
3
6
0
8
3
6
1
0
0
1
324,775
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/customize/customize_types.py
dashscope.customize.customize_types.CancelDeleteStatus
from dataclasses import dataclass from dashscope.common.base_type import BaseObjectMixin @dataclass(init=False) class CancelDeleteStatus(BaseObjectMixin): status: str
@dataclass(init=False) class CancelDeleteStatus(BaseObjectMixin): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
9
2
0
2
1
1
0
2
1
1
0
2
0
0
324,776
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/customize/customize_types.py
dashscope.customize.customize_types.DashScopeBase
from dashscope.common.base_type import BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class DashScopeBase(BaseObjectMixin): status_code: int request_id: str code: str message: str def __init__(self, **kwargs): super().__init__(**kwargs)
@dataclass(init=False) class DashScopeBase(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
7
1
0
1
10
8
1
7
2
5
0
7
2
5
1
2
0
1
324,777
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/customize/customize_types.py
dashscope.customize.customize_types.DashScopeBaseList
from dashscope.common.base_type import BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class DashScopeBaseList(BaseObjectMixin): page_no: int page_size: int total: int def __init__(self, **kwargs): super().__init__(**kwargs)
@dataclass(init=False) class DashScopeBaseList(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
2
1
0
1
10
7
1
6
2
4
0
6
2
4
1
2
0
1
324,778
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/customize/customize_types.py
dashscope.customize.customize_types.Deployment
from dataclasses import dataclass @dataclass(init=False) class Deployment(DashScopeBase): output: DeploymentOutput def __init__(self, **kwargs): output = kwargs.pop('output', {}) if output: self.output = DeploymentOutput(**output) else: self.output = None ...
@dataclass(init=False) class Deployment(DashScopeBase): def __init__(self, **kwargs): pass
3
0
7
0
7
0
2
0
1
2
1
0
1
0
1
11
10
1
9
3
7
0
8
3
6
2
3
1
2
324,779
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/customize/customize_types.py
dashscope.customize.customize_types.DeploymentDelete
from http import HTTPStatus from dataclasses import dataclass @dataclass(init=False) class DeploymentDelete(DashScopeBase): output: CancelDeleteStatus def __init__(self, **kwargs): status_code = kwargs.get('status_code', None) if status_code == HTTPStatus.OK: self.output = CancelDe...
@dataclass(init=False) class DeploymentDelete(DashScopeBase): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
3
1
0
1
0
1
11
8
1
7
3
5
0
7
3
5
2
3
1
2
324,780
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/customize/customize_types.py
dashscope.customize.customize_types.DeploymentList
from http import HTTPStatus from dashscope.common.base_type import BaseObjectMixin from dataclasses import dataclass @dataclass(init=False) class DeploymentList(BaseObjectMixin): output: DeploymentListOutput def __init__(self, **kwargs): status_code = kwargs.get('status_code', None) if status_...
@dataclass(init=False) class DeploymentList(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
3
1
0
1
0
1
10
8
1
7
3
5
0
7
3
5
2
2
1
2
324,781
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/customize/customize_types.py
dashscope.customize.customize_types.DeploymentListOutput
from typing import Dict, List from dataclasses import dataclass @dataclass(init=False) class DeploymentListOutput(DashScopeBaseList): deployments: List[DeploymentOutput] def __init__(self, **kwargs): self.deployments = [] for job in kwargs.pop('deployments', []): self.deployments.a...
@dataclass(init=False) class DeploymentListOutput(DashScopeBaseList): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
2
1
0
1
0
1
11
8
1
7
3
5
0
7
3
5
2
3
1
2
324,782
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/customize/customize_types.py
dashscope.customize.customize_types.DeploymentOutput
from dataclasses import dataclass from dashscope.common.base_type import BaseObjectMixin @dataclass(init=False) class DeploymentOutput(BaseObjectMixin): deployed_model: str gmt_create: str gmt_modified: str status: str model_name: str base_model: str base_capacity: int capacity: int ...
@dataclass(init=False) class DeploymentOutput(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
0
1
0
1
10
17
1
16
2
14
0
16
2
14
1
2
0
1
324,783
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/customize/customize_types.py
dashscope.customize.customize_types.FineTune
from http import HTTPStatus from typing import Dict, List from dataclasses import dataclass @dataclass(init=False) class FineTune(DashScopeBase): output: FineTuneOutput usage: Dict def __init__(self, **kwargs): status_code = kwargs.get('status_code', None) if status_code == HTTPStatus.OK: ...
@dataclass(init=False) class FineTune(DashScopeBase): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
3
1
0
1
0
1
11
9
1
8
3
6
0
8
3
6
2
3
1
2
324,784
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/customize/customize_types.py
dashscope.customize.customize_types.FineTuneCancel
from http import HTTPStatus from dataclasses import dataclass @dataclass(init=False) class FineTuneCancel(DashScopeBase): output: CancelDeleteStatus def __init__(self, **kwargs): status_code = kwargs.get('status_code', None) if status_code == HTTPStatus.OK: self.output = CancelDele...
@dataclass(init=False) class FineTuneCancel(DashScopeBase): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
3
1
0
1
0
1
11
8
1
7
3
5
0
7
3
5
2
3
1
2
324,785
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/customize/customize_types.py
dashscope.customize.customize_types.FineTuneDelete
from http import HTTPStatus from dataclasses import dataclass @dataclass(init=False) class FineTuneDelete(DashScopeBase): output: CancelDeleteStatus def __init__(self, **kwargs): status_code = kwargs.get('status_code', None) if status_code == HTTPStatus.OK: self.output = CancelDele...
@dataclass(init=False) class FineTuneDelete(DashScopeBase): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
3
1
0
1
0
1
11
8
1
7
3
5
0
7
3
5
2
3
1
2
324,786
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/customize/customize_types.py
dashscope.customize.customize_types.FineTuneEvent
from http import HTTPStatus from dataclasses import dataclass @dataclass(init=False) class FineTuneEvent(DashScopeBase): output: str def __init__(self, **kwargs): status_code = kwargs.get('status_code', None) if status_code == HTTPStatus.OK: self.output = kwargs.pop('output', {}) ...
@dataclass(init=False) class FineTuneEvent(DashScopeBase): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
2
0
0
1
0
1
11
8
1
7
3
5
0
7
3
5
2
3
1
2
324,787
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/customize/customize_types.py
dashscope.customize.customize_types.FineTuneList
from dataclasses import dataclass from http import HTTPStatus @dataclass(init=False) class FineTuneList(DashScopeBase): output: FineTuneListOutput def __init__(self, **kwargs): status_code = kwargs.get('status_code', None) if status_code == HTTPStatus.OK: self.output = FineTuneList...
@dataclass(init=False) class FineTuneList(DashScopeBase): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
3
1
0
1
0
1
11
8
1
7
3
5
0
7
3
5
2
3
1
2
324,788
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/customize/customize_types.py
dashscope.customize.customize_types.FineTuneListOutput
from typing import Dict, List from dataclasses import dataclass @dataclass(init=False) class FineTuneListOutput(DashScopeBaseList): jobs: List[FineTuneOutput] def __init__(self, **kwargs): self.jobs = [] for job in kwargs.pop('jobs', []): self.jobs.append(FineTuneOutput(**job)) ...
@dataclass(init=False) class FineTuneListOutput(DashScopeBaseList): def __init__(self, **kwargs): pass
3
0
5
0
5
0
2
0
1
2
1
0
1
0
1
11
8
1
7
3
5
0
7
3
5
2
3
1
2
324,789
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/customize/customize_types.py
dashscope.customize.customize_types.FineTuneOutput
from dashscope.common.base_type import BaseObjectMixin from dataclasses import dataclass from typing import Dict, List @dataclass(init=False) class FineTuneOutput(BaseObjectMixin): job_id: str job_name: str status: str model: str base_model: str finetuned_output: str training_file_ids: List...
@dataclass(init=False) class FineTuneOutput(BaseObjectMixin): def __init__(self, **kwargs): pass
3
0
2
0
2
0
1
0
1
1
0
0
1
0
1
10
21
1
20
2
18
0
20
2
18
1
2
0
1
324,790
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/customize/deployments.py
dashscope.customize.deployments.Deployments
from dashscope.customize.customize_types import Deployment, DeploymentDelete, DeploymentList from dashscope.client.base_api import CreateMixin, DeleteMixin, GetMixin, ListMixin, PutMixin, StreamEventMixin class Deployments(CreateMixin, DeleteMixin, ListMixin, GetMixin, StreamEventMixin, PutMixin): SUB_PATH = 'depl...
class Deployments(CreateMixin, DeleteMixin, ListMixin, GetMixin, StreamEventMixin, PutMixin): @classmethod def call(cls, model: str, capacity: int, version: str=None, suffix: str=None, api_key: str=None, workspace: str=None, **kwargs) -> Deployment: '''Call to deployment a model service. Args:...
11
5
25
2
13
10
1
0.68
6
6
3
0
0
0
5
13
138
15
73
46
36
50
24
15
18
3
1
1
7
324,791
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/customize/finetunes.py
dashscope.customize.finetunes.FineTunes
import time from dashscope.common.constants import TaskStatus from typing import Iterator, Union from http import HTTPStatus from dashscope.customize.customize_types import FineTune, FineTuneCancel, FineTuneDelete, FineTuneEvent, FineTuneList from dashscope.client.base_api import CancelMixin, CreateMixin, DeleteMixin, ...
class FineTunes(CreateMixin, CancelMixin, DeleteMixin, ListMixin, GetStatusMixin, StreamEventMixin, LogMixin): @classmethod def call(cls, model: str, training_file_ids: Union[list, str], validation_file_ids: Union[list, str]=None, mode: str=None, hyper_parameters: dict={}, api_key: str=None, workspace: str=No...
17
7
25
2
15
8
2
0.52
7
12
6
0
0
0
8
17
219
22
130
68
72
67
43
19
34
6
1
4
18
324,792
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/batch_text_embedding.py
dashscope.embeddings.batch_text_embedding.BatchTextEmbedding
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse from dashscope.common.error import InputRequired from typing import Union from dashscope.client.base_api import BaseAsyncApi from dashscope.embeddings.batch_text_embedding_response import BatchTextEmbeddingResponse from dashscope.common.utils im...
class BatchTextEmbedding(BaseAsyncApi): class Models: @classmethod def call(cls, model: str, url: str, api_key: str=None, workspace: str=None, **kwargs) -> BatchTextEmbeddingResponse: '''Call async text embedding service and get result. Args: model (str): The model, reference ...
14
6
29
2
12
16
1
1.16
1
6
3
0
0
0
6
15
196
19
82
52
38
95
25
16
17
2
2
1
7
324,793
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/batch_text_embedding_response.py
dashscope.embeddings.batch_text_embedding_response.BatchTextEmbeddingOutput
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse, DictMixin from attr import dataclass @dataclass(init=False) class BatchTextEmbeddingOutput(DictMixin): task_id: str task_status: str url: str def __init__(self, task_id: str, task_status: str, url: str=None, **kwargs): ...
@dataclass(init=False) class BatchTextEmbeddingOutput(DictMixin): def __init__(self, task_id: str, task_status: str, url: str=None, **kwargs): pass
3
0
10
0
10
0
1
0
1
2
0
0
1
0
1
46
15
1
14
6
8
0
6
2
4
1
3
0
1
324,794
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/batch_text_embedding_response.py
dashscope.embeddings.batch_text_embedding_response.BatchTextEmbeddingResponse
from http import HTTPStatus from attr import dataclass from dashscope.api_entities.dashscope_response import DashScopeAPIResponse, DictMixin @dataclass(init=False) class BatchTextEmbeddingResponse(DashScopeAPIResponse): output: BatchTextEmbeddingOutput usage: BatchTextEmbeddingUsage @staticmethod def ...
@dataclass(init=False) class BatchTextEmbeddingResponse(DashScopeAPIResponse): @staticmethod def from_api_response(api_response: DashScopeAPIResponse): pass
4
0
23
2
21
0
4
0
1
3
2
0
0
0
1
47
28
3
25
5
22
0
13
4
11
4
4
2
4
324,795
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/batch_text_embedding_response.py
dashscope.embeddings.batch_text_embedding_response.BatchTextEmbeddingUsage
from attr import dataclass from dashscope.api_entities.dashscope_response import DashScopeAPIResponse, DictMixin @dataclass(init=False) class BatchTextEmbeddingUsage(DictMixin): total_tokens: int def __init__(self, total_tokens: int=None, **kwargs): super().__init__(total_tokens=total_tokens, **kwargs...
@dataclass(init=False) class BatchTextEmbeddingUsage(DictMixin): def __init__(self, total_tokens: int=None, **kwargs): pass
3
0
2
0
2
0
1
0
1
2
0
0
1
0
1
46
5
1
4
2
2
0
4
2
2
1
3
0
1
324,796
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.MultiModalEmbedding
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 from dashscope.api_entities.dashscope_response import DashScopeAPIResponse, DictMixin from dashscope.utils.oss_utils import pr...
class MultiModalEmbedding(BaseApi): class Models: @classmethod def call(cls, model: str, input: List[MultiModalEmbeddingItemBase], api_key: str=None, workspace: str=None, **kwargs) -> DashScopeAPIResponse: '''Get embedding multimodal contents.. Args: model (str): The embedding...
6
2
28
1
18
10
4
0.45
1
12
4
0
0
0
2
4
65
5
42
21
30
19
27
13
23
4
1
3
8
324,797
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.MultiModalEmbeddingItemAudio
from dataclasses import dataclass @dataclass(init=False) class MultiModalEmbeddingItemAudio(MultiModalEmbeddingItemBase): audio: str def __init__(self, audio: str, factor: float, **kwargs): super().__init__(factor, **kwargs) self.audio = audio
@dataclass(init=False) class MultiModalEmbeddingItemAudio(MultiModalEmbeddingItemBase): def __init__(self, audio: 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,798
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.MultiModalEmbeddingItemBase
from dashscope.api_entities.dashscope_response import DashScopeAPIResponse, DictMixin from dataclasses import dataclass @dataclass(init=False) class MultiModalEmbeddingItemBase(DictMixin): factor: float def __init__(self, factor: float, **kwargs): super().__init__(factor=factor, **kwargs)
@dataclass(init=False) class MultiModalEmbeddingItemBase(DictMixin): def __init__(self, factor: float, **kwargs): pass
3
0
2
0
2
0
1
0
1
2
0
3
1
0
1
46
5
1
4
2
2
0
4
2
2
1
3
0
1
324,799
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.MultiModalEmbeddingItemImage
from dataclasses import dataclass @dataclass(init=False) class MultiModalEmbeddingItemImage(MultiModalEmbeddingItemBase): image: str def __init__(self, image: str, factor: float, **kwargs): super().__init__(factor, **kwargs) self.image = image
@dataclass(init=False) class MultiModalEmbeddingItemImage(MultiModalEmbeddingItemBase): def __init__(self, image: 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