applied-ai-018 commited on
Commit
2e44652
·
verified ·
1 Parent(s): e47104f

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/conftest.cpython-310.pyc +0 -0
  2. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_common.cpython-310.pyc +0 -0
  3. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_engines.cpython-310.pyc +0 -0
  4. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_frozen.cpython-310.pyc +0 -0
  5. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_indexing.cpython-310.pyc +0 -0
  6. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_old_base.cpython-310.pyc +0 -0
  7. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_setops.cpython-310.pyc +0 -0
  8. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/base_class/__pycache__/__init__.cpython-310.pyc +0 -0
  9. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/base_class/__pycache__/test_constructors.cpython-310.pyc +0 -0
  10. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/base_class/__pycache__/test_setops.cpython-310.pyc +0 -0
  11. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/__init__.cpython-310.pyc +0 -0
  12. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_arithmetic.cpython-310.pyc +0 -0
  13. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_constructors.cpython-310.pyc +0 -0
  14. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_delete.cpython-310.pyc +0 -0
  15. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_formats.cpython-310.pyc +0 -0
  16. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_freq_attr.cpython-310.pyc +0 -0
  17. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_indexing.cpython-310.pyc +0 -0
  18. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_join.cpython-310.pyc +0 -0
  19. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_ops.cpython-310.pyc +0 -0
  20. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_pickle.cpython-310.pyc +0 -0
  21. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_scalar_compat.cpython-310.pyc +0 -0
  22. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_searchsorted.cpython-310.pyc +0 -0
  23. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_setops.cpython-310.pyc +0 -0
  24. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_timedelta.cpython-310.pyc +0 -0
  25. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_timedelta_range.cpython-310.pyc +0 -0
  26. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/methods/__pycache__/test_astype.cpython-310.pyc +0 -0
  27. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/methods/__pycache__/test_factorize.cpython-310.pyc +0 -0
  28. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__init__.py +0 -0
  29. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/__init__.cpython-310.pyc +0 -0
  30. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/common.cpython-310.pyc +0 -0
  31. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/conftest.cpython-310.pyc +0 -0
  32. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_at.cpython-310.pyc +0 -0
  33. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_categorical.cpython-310.pyc +0 -0
  34. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_chaining_and_caching.cpython-310.pyc +0 -0
  35. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_check_indexer.cpython-310.pyc +0 -0
  36. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_coercion.cpython-310.pyc +0 -0
  37. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_datetime.cpython-310.pyc +0 -0
  38. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_floats.cpython-310.pyc +0 -0
  39. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_iat.cpython-310.pyc +0 -0
  40. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_iloc.cpython-310.pyc +0 -0
  41. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_indexers.cpython-310.pyc +0 -0
  42. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_indexing.cpython-310.pyc +0 -0
  43. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_loc.cpython-310.pyc +0 -0
  44. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_na_indexing.cpython-310.pyc +0 -0
  45. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_partial.cpython-310.pyc +0 -0
  46. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_scalar.cpython-310.pyc +0 -0
  47. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/common.py +40 -0
  48. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/conftest.py +127 -0
  49. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/multiindex/__init__.py +0 -0
  50. env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/multiindex/__pycache__/test_datetime.cpython-310.pyc +0 -0
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/conftest.cpython-310.pyc ADDED
Binary file (1.27 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_common.cpython-310.pyc ADDED
Binary file (13 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_engines.cpython-310.pyc ADDED
Binary file (5.91 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_frozen.cpython-310.pyc ADDED
Binary file (4.52 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_indexing.cpython-310.pyc ADDED
Binary file (11.6 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_old_base.cpython-310.pyc ADDED
Binary file (30.1 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/__pycache__/test_setops.cpython-310.pyc ADDED
Binary file (23.3 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/base_class/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (196 Bytes). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/base_class/__pycache__/test_constructors.cpython-310.pyc ADDED
Binary file (3.34 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/base_class/__pycache__/test_setops.cpython-310.pyc ADDED
Binary file (8.27 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (196 Bytes). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_arithmetic.cpython-310.pyc ADDED
Binary file (1.52 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_constructors.cpython-310.pyc ADDED
Binary file (10.3 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_delete.cpython-310.pyc ADDED
Binary file (2.13 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_formats.cpython-310.pyc ADDED
Binary file (3.41 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_freq_attr.cpython-310.pyc ADDED
Binary file (2.23 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_indexing.cpython-310.pyc ADDED
Binary file (11.6 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_join.cpython-310.pyc ADDED
Binary file (1.92 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_ops.cpython-310.pyc ADDED
Binary file (795 Bytes). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_pickle.cpython-310.pyc ADDED
Binary file (757 Bytes). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_scalar_compat.cpython-310.pyc ADDED
Binary file (4.01 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_searchsorted.cpython-310.pyc ADDED
Binary file (1.49 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_setops.cpython-310.pyc ADDED
Binary file (7.1 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_timedelta.cpython-310.pyc ADDED
Binary file (2.41 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/__pycache__/test_timedelta_range.cpython-310.pyc ADDED
Binary file (5.35 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/methods/__pycache__/test_astype.cpython-310.pyc ADDED
Binary file (5.93 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/methods/__pycache__/test_factorize.cpython-310.pyc ADDED
Binary file (1.54 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__init__.py ADDED
File without changes
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (186 Bytes). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/common.cpython-310.pyc ADDED
Binary file (1.29 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/conftest.cpython-310.pyc ADDED
Binary file (3.54 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_at.cpython-310.pyc ADDED
Binary file (8.55 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_categorical.cpython-310.pyc ADDED
Binary file (15.4 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_chaining_and_caching.cpython-310.pyc ADDED
Binary file (19.4 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_check_indexer.cpython-310.pyc ADDED
Binary file (2.87 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_coercion.cpython-310.pyc ADDED
Binary file (25.5 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_datetime.cpython-310.pyc ADDED
Binary file (5.4 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_floats.cpython-310.pyc ADDED
Binary file (14.9 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_iat.cpython-310.pyc ADDED
Binary file (1.72 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_iloc.cpython-310.pyc ADDED
Binary file (44.7 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_indexers.cpython-310.pyc ADDED
Binary file (2.35 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_indexing.cpython-310.pyc ADDED
Binary file (31.9 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_loc.cpython-310.pyc ADDED
Binary file (108 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_na_indexing.cpython-310.pyc ADDED
Binary file (1.95 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_partial.cpython-310.pyc ADDED
Binary file (19.3 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_scalar.cpython-310.pyc ADDED
Binary file (9.75 kB). View file
 
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/common.py ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ common utilities """
2
+ from __future__ import annotations
3
+
4
+ from typing import (
5
+ Any,
6
+ Literal,
7
+ )
8
+
9
+
10
+ def _mklbl(prefix: str, n: int):
11
+ return [f"{prefix}{i}" for i in range(n)]
12
+
13
+
14
+ def check_indexing_smoketest_or_raises(
15
+ obj,
16
+ method: Literal["iloc", "loc"],
17
+ key: Any,
18
+ axes: Literal[0, 1] | None = None,
19
+ fails=None,
20
+ ) -> None:
21
+ if axes is None:
22
+ axes_list = [0, 1]
23
+ else:
24
+ assert axes in [0, 1]
25
+ axes_list = [axes]
26
+
27
+ for ax in axes_list:
28
+ if ax < obj.ndim:
29
+ # create a tuple accessor
30
+ new_axes = [slice(None)] * obj.ndim
31
+ new_axes[ax] = key
32
+ axified = tuple(new_axes)
33
+ try:
34
+ getattr(obj, method).__getitem__(axified)
35
+ except (IndexError, TypeError, KeyError) as detail:
36
+ # if we are in fails, the ok, otherwise raise it
37
+ if fails is not None:
38
+ if isinstance(detail, fails):
39
+ return
40
+ raise
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/conftest.py ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import pytest
3
+
4
+ from pandas import (
5
+ DataFrame,
6
+ Index,
7
+ MultiIndex,
8
+ Series,
9
+ date_range,
10
+ )
11
+
12
+
13
+ @pytest.fixture
14
+ def series_ints():
15
+ return Series(np.random.default_rng(2).random(4), index=np.arange(0, 8, 2))
16
+
17
+
18
+ @pytest.fixture
19
+ def frame_ints():
20
+ return DataFrame(
21
+ np.random.default_rng(2).standard_normal((4, 4)),
22
+ index=np.arange(0, 8, 2),
23
+ columns=np.arange(0, 12, 3),
24
+ )
25
+
26
+
27
+ @pytest.fixture
28
+ def series_uints():
29
+ return Series(
30
+ np.random.default_rng(2).random(4),
31
+ index=Index(np.arange(0, 8, 2, dtype=np.uint64)),
32
+ )
33
+
34
+
35
+ @pytest.fixture
36
+ def frame_uints():
37
+ return DataFrame(
38
+ np.random.default_rng(2).standard_normal((4, 4)),
39
+ index=Index(range(0, 8, 2), dtype=np.uint64),
40
+ columns=Index(range(0, 12, 3), dtype=np.uint64),
41
+ )
42
+
43
+
44
+ @pytest.fixture
45
+ def series_labels():
46
+ return Series(np.random.default_rng(2).standard_normal(4), index=list("abcd"))
47
+
48
+
49
+ @pytest.fixture
50
+ def frame_labels():
51
+ return DataFrame(
52
+ np.random.default_rng(2).standard_normal((4, 4)),
53
+ index=list("abcd"),
54
+ columns=list("ABCD"),
55
+ )
56
+
57
+
58
+ @pytest.fixture
59
+ def series_ts():
60
+ return Series(
61
+ np.random.default_rng(2).standard_normal(4),
62
+ index=date_range("20130101", periods=4),
63
+ )
64
+
65
+
66
+ @pytest.fixture
67
+ def frame_ts():
68
+ return DataFrame(
69
+ np.random.default_rng(2).standard_normal((4, 4)),
70
+ index=date_range("20130101", periods=4),
71
+ )
72
+
73
+
74
+ @pytest.fixture
75
+ def series_floats():
76
+ return Series(
77
+ np.random.default_rng(2).random(4),
78
+ index=Index(range(0, 8, 2), dtype=np.float64),
79
+ )
80
+
81
+
82
+ @pytest.fixture
83
+ def frame_floats():
84
+ return DataFrame(
85
+ np.random.default_rng(2).standard_normal((4, 4)),
86
+ index=Index(range(0, 8, 2), dtype=np.float64),
87
+ columns=Index(range(0, 12, 3), dtype=np.float64),
88
+ )
89
+
90
+
91
+ @pytest.fixture
92
+ def series_mixed():
93
+ return Series(np.random.default_rng(2).standard_normal(4), index=[2, 4, "null", 8])
94
+
95
+
96
+ @pytest.fixture
97
+ def frame_mixed():
98
+ return DataFrame(
99
+ np.random.default_rng(2).standard_normal((4, 4)), index=[2, 4, "null", 8]
100
+ )
101
+
102
+
103
+ @pytest.fixture
104
+ def frame_empty():
105
+ return DataFrame()
106
+
107
+
108
+ @pytest.fixture
109
+ def series_empty():
110
+ return Series(dtype=object)
111
+
112
+
113
+ @pytest.fixture
114
+ def frame_multi():
115
+ return DataFrame(
116
+ np.random.default_rng(2).standard_normal((4, 4)),
117
+ index=MultiIndex.from_product([[1, 2], [3, 4]]),
118
+ columns=MultiIndex.from_product([[5, 6], [7, 8]]),
119
+ )
120
+
121
+
122
+ @pytest.fixture
123
+ def series_multi():
124
+ return Series(
125
+ np.random.default_rng(2).random(4),
126
+ index=MultiIndex.from_product([[1, 2], [3, 4]]),
127
+ )
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/multiindex/__init__.py ADDED
File without changes
env-llmeval/lib/python3.10/site-packages/pandas/tests/indexing/multiindex/__pycache__/test_datetime.cpython-310.pyc ADDED
Binary file (1.3 kB). View file