codeset 0.1.0a16__py3-none-any.whl → 0.1.0a17__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of codeset might be problematic. Click here for more details.

codeset/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "codeset"
4
- __version__ = "0.1.0-alpha.16" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.17" # x-release-please-version
@@ -47,6 +47,9 @@ class SamplesResource(SyncAPIResource):
47
47
  self,
48
48
  *,
49
49
  dataset: Optional[str] | Omit = omit,
50
+ page: Optional[int] | Omit = omit,
51
+ page_size: Optional[int] | Omit = omit,
52
+ search: Optional[str] | Omit = omit,
50
53
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
54
  # The extra values given here take precedence over values defined on the client or passed to this method.
52
55
  extra_headers: Headers | None = None,
@@ -55,11 +58,17 @@ class SamplesResource(SyncAPIResource):
55
58
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
56
59
  ) -> SampleListResponse:
57
60
  """
58
- List available samples, optionally filtered by dataset
61
+ List available samples with optional pagination, optionally filtered by dataset
59
62
 
60
63
  Args:
61
64
  dataset: Filter samples by dataset name
62
65
 
66
+ page: Page number (1-based). If not provided, returns all samples
67
+
68
+ page_size: Number of samples per page (max 100). If not provided, returns all samples
69
+
70
+ search: Search for samples by instance_id
71
+
63
72
  extra_headers: Send extra headers
64
73
 
65
74
  extra_query: Add additional query parameters to the request
@@ -75,7 +84,15 @@ class SamplesResource(SyncAPIResource):
75
84
  extra_query=extra_query,
76
85
  extra_body=extra_body,
77
86
  timeout=timeout,
78
- query=maybe_transform({"dataset": dataset}, sample_list_params.SampleListParams),
87
+ query=maybe_transform(
88
+ {
89
+ "dataset": dataset,
90
+ "page": page,
91
+ "page_size": page_size,
92
+ "search": search,
93
+ },
94
+ sample_list_params.SampleListParams,
95
+ ),
79
96
  ),
80
97
  cast_to=SampleListResponse,
81
98
  )
@@ -146,6 +163,9 @@ class AsyncSamplesResource(AsyncAPIResource):
146
163
  self,
147
164
  *,
148
165
  dataset: Optional[str] | Omit = omit,
166
+ page: Optional[int] | Omit = omit,
167
+ page_size: Optional[int] | Omit = omit,
168
+ search: Optional[str] | Omit = omit,
149
169
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
150
170
  # The extra values given here take precedence over values defined on the client or passed to this method.
151
171
  extra_headers: Headers | None = None,
@@ -154,11 +174,17 @@ class AsyncSamplesResource(AsyncAPIResource):
154
174
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
155
175
  ) -> SampleListResponse:
156
176
  """
157
- List available samples, optionally filtered by dataset
177
+ List available samples with optional pagination, optionally filtered by dataset
158
178
 
159
179
  Args:
160
180
  dataset: Filter samples by dataset name
161
181
 
182
+ page: Page number (1-based). If not provided, returns all samples
183
+
184
+ page_size: Number of samples per page (max 100). If not provided, returns all samples
185
+
186
+ search: Search for samples by instance_id
187
+
162
188
  extra_headers: Send extra headers
163
189
 
164
190
  extra_query: Add additional query parameters to the request
@@ -174,7 +200,15 @@ class AsyncSamplesResource(AsyncAPIResource):
174
200
  extra_query=extra_query,
175
201
  extra_body=extra_body,
176
202
  timeout=timeout,
177
- query=await async_maybe_transform({"dataset": dataset}, sample_list_params.SampleListParams),
203
+ query=await async_maybe_transform(
204
+ {
205
+ "dataset": dataset,
206
+ "page": page,
207
+ "page_size": page_size,
208
+ "search": search,
209
+ },
210
+ sample_list_params.SampleListParams,
211
+ ),
178
212
  ),
179
213
  cast_to=SampleListResponse,
180
214
  )
@@ -11,3 +11,12 @@ __all__ = ["SampleListParams"]
11
11
  class SampleListParams(TypedDict, total=False):
12
12
  dataset: Optional[str]
13
13
  """Filter samples by dataset name"""
14
+
15
+ page: Optional[int]
16
+ """Page number (1-based). If not provided, returns all samples"""
17
+
18
+ page_size: Optional[int]
19
+ """Number of samples per page (max 100). If not provided, returns all samples"""
20
+
21
+ search: Optional[str]
22
+ """Search for samples by instance_id"""
@@ -2,20 +2,56 @@
2
2
 
3
3
  from typing import List, Optional
4
4
  from datetime import datetime
5
- from typing_extensions import Literal, TypeAlias
5
+ from typing_extensions import Literal
6
6
 
7
7
  from .._models import BaseModel
8
8
 
9
- __all__ = ["SampleListResponse", "SampleListResponseItem"]
9
+ __all__ = ["SampleListResponse", "Sample"]
10
10
 
11
11
 
12
- class SampleListResponseItem(BaseModel):
12
+ class Sample(BaseModel):
13
+ base_commit: str
14
+ """Base commit hash for the sample."""
15
+
16
+ environment_setup_commit: str
17
+ """Environment setup commit hash for the sample."""
18
+
19
+ fail_to_fail: List[str]
20
+ """List of test names that remained FAIL to FAIL."""
21
+
22
+ fail_to_pass: List[str]
23
+ """List of test names that changed from FAIL to PASS."""
24
+
25
+ hints_text: str
26
+ """Hints text for the sample (concatenated issue comments)."""
27
+
28
+ instance_id: str
29
+ """Instance identifier for the sample (e.g., 'psf\\__\\__requests-1234')."""
30
+
13
31
  language: str
14
32
  """Primary programming language of the sample."""
15
33
 
34
+ non_code_patch: str
35
+ """Non-code patch for the sample."""
36
+
37
+ pass_to_pass: List[str]
38
+ """List of test names that remained PASS to PASS."""
39
+
40
+ patch: str
41
+ """Code patch (diff) that fixes the bug for the sample."""
42
+
43
+ problem_statement: str
44
+ """Problem statement for the sample (issue title + body)."""
45
+
46
+ repo: str
47
+ """Repository full name for the sample (e.g., 'psf/requests')."""
48
+
16
49
  sample_id: str
17
50
  """Unique identifier for the sample (e.g., 'traccar-1')."""
18
51
 
52
+ test_patch: str
53
+ """Test patch (diff) for the sample."""
54
+
19
55
  verifier: Literal["test_suite", "static_analysis", "linter", "custom"]
20
56
  """The type of verifier used for this sample."""
21
57
 
@@ -38,4 +74,18 @@ class SampleListResponseItem(BaseModel):
38
74
  """Description of this version."""
39
75
 
40
76
 
41
- SampleListResponse: TypeAlias = List[SampleListResponseItem]
77
+ class SampleListResponse(BaseModel):
78
+ has_more: bool
79
+ """Indicates if more pages of results are available."""
80
+
81
+ page: int
82
+ """Current page number (1-based)."""
83
+
84
+ page_size: int
85
+ """Number of samples per page."""
86
+
87
+ samples: List[Sample]
88
+ """List of samples for the current page."""
89
+
90
+ total_count: int
91
+ """Total number of samples available."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codeset
3
- Version: 0.1.0a16
3
+ Version: 0.1.0a17
4
4
  Summary: The official Python library for the codeset API
5
5
  Project-URL: Homepage, https://github.com/codeset-ai/codeset-sdk
6
6
  Project-URL: Repository, https://github.com/codeset-ai/codeset-sdk
@@ -11,7 +11,7 @@ codeset/_resource.py,sha256=MhmvrwixEq6echG2IFv1gO_nE_zfFTNw65s0JjsMee0,1106
11
11
  codeset/_response.py,sha256=lC6V1z6Az0X_Rk9MgwN8hOzYUSEwtp6_py_H3agR04A,28794
12
12
  codeset/_streaming.py,sha256=HqkgFE-gv9S7T4QfGa5pD4suEOvQ8BHZRxJR_NQcXak,10104
13
13
  codeset/_types.py,sha256=VRDtyYVMs3WfFHJBcoUb5Vxjs5sAe0mQWYP-BnLyMQg,7237
14
- codeset/_version.py,sha256=A78e6H0A1rOYiu9x-ZJwWYmhDjX_S_7BHv-eiA2wiVc,168
14
+ codeset/_version.py,sha256=DlyJs-Jfv_2BowcAhYrwFzM5fQcSoeDu_0x9sm8y6GY,168
15
15
  codeset/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  codeset/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  codeset/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -29,7 +29,7 @@ codeset/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
29
  codeset/resources/__init__.py,sha256=EDBQUuv365y3NSSxTAoV0yL9ea71emPMFJF52YSclgI,1967
30
30
  codeset/resources/datasets.py,sha256=gmQ-EAxxvLDqQmo0BZTUmvpT9hLhogi2RaAE3Bf5ixE,4929
31
31
  codeset/resources/health.py,sha256=yjMq6lObrPoUCL71YteI-N9WbV7vvXnvvD60Di-iX7Y,4859
32
- codeset/resources/samples.py,sha256=nC3FoVC7OgLTbwvXuLbO3hbHMohELiqCEl1MMuy6qHM,9925
32
+ codeset/resources/samples.py,sha256=C0uTU6xQPRprlSKcGoykeBr3I0yU2fspF5r35nkYB50,11169
33
33
  codeset/resources/sessions/__init__.py,sha256=NinDKd-EXVeconYzUm9S-pKs1VHxZUCWFsascKZLdRQ,1028
34
34
  codeset/resources/sessions/sessions.py,sha256=GlxXAhgpLaNVsIyAyRIzZQrIFraVfFnlK2jVvmu65Oc,24567
35
35
  codeset/resources/sessions/verify.py,sha256=G5sXSbTQHQ-FYGo8yfKHM91olilYn2GR3pP_3uDSIOs,9334
@@ -39,8 +39,8 @@ codeset/types/dataset_list_response.py,sha256=gR-UJDaTPi75JNVCbbZWLHoeJ8osHNsgQP
39
39
  codeset/types/error_info.py,sha256=1yThCkLmcA_bA31pLlm4h-tk9TsmqnPb0yS5p1UQBPI,305
40
40
  codeset/types/health_check_response.py,sha256=hHMXvlEIQj98rsbkiKSX2SZaaRl-3mVuAFKY5k1FM_c,437
41
41
  codeset/types/sample_download_params.py,sha256=tRPvOupAg4rkWgdtQlWYKQHqbvTZIQYNM4u8TwLyuAE,346
42
- codeset/types/sample_list_params.py,sha256=OPtSgytRJH4m_9_qjBzxCpST8pTOFovgzXNupcqnxJY,341
43
- codeset/types/sample_list_response.py,sha256=KtllR5nvU-XZTzDb2U_vlOcpIe9bDobI6mRleBUyAos,1182
42
+ codeset/types/sample_list_params.py,sha256=mxZxeiyw-g1PSDWaG8evChNB1-CErFkRbVUBsWZNIBs,622
43
+ codeset/types/sample_list_response.py,sha256=cA5MKmezykQ8sfX0_LgirFuQwCcX4YZW8tDfxD8ckh4,2447
44
44
  codeset/types/session.py,sha256=SDQo7a3FbNxfgN0xW6JL2hqviV8o5fKXO0eHE4DksgE,1263
45
45
  codeset/types/session_close_response.py,sha256=_vWgm4IHWcwUuw4lmGolEG3CkIv0H0A5yf8eaWB4f-I,342
46
46
  codeset/types/session_create_params.py,sha256=cFl5O1jI5qAjh9SqfLRerHo10TnY4QIYwi9j1Fv70MY,504
@@ -55,7 +55,7 @@ codeset/types/sessions/__init__.py,sha256=hRiBeT3umo01iicnTjI3UOh_Q6AspqzyyG-OEt
55
55
  codeset/types/sessions/job_status.py,sha256=347Rz0GmlCYv5yeHJnsG-Ddr5xkpKvX2sHXYRz0opXI,262
56
56
  codeset/types/sessions/verify_start_response.py,sha256=Dk1iyafuj1IAL39VQji_znUUMxDXI8QXn2QKB-ME4uw,482
57
57
  codeset/types/sessions/verify_status_response.py,sha256=hjYWo5nJdsznnPWmfVF0T5Hw9WfB8b06VtkYqhCMX0k,1983
58
- codeset-0.1.0a16.dist-info/METADATA,sha256=PGMCqQONF29RK_X7BazaedzPBNFFplRsMWrGR4oomhs,13382
59
- codeset-0.1.0a16.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
60
- codeset-0.1.0a16.dist-info/licenses/LICENSE,sha256=SzrebAd3MnL58zf3dEBLJvstQvQe33mCCY2TmzKEmY8,11337
61
- codeset-0.1.0a16.dist-info/RECORD,,
58
+ codeset-0.1.0a17.dist-info/METADATA,sha256=sg1QvCHMmuaZtrXMUSzu9Th56K3VHzrNrN-sgUbTUTs,13382
59
+ codeset-0.1.0a17.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
60
+ codeset-0.1.0a17.dist-info/licenses/LICENSE,sha256=SzrebAd3MnL58zf3dEBLJvstQvQe33mCCY2TmzKEmY8,11337
61
+ codeset-0.1.0a17.dist-info/RECORD,,