qq-2 commited on
Commit
84f5733
·
verified ·
1 Parent(s): 0540350

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. grounding-dino/.eval_venv/lib64/python3.11/site-packages/__pycache__/__editable___mmdet_3_3_0_finder.cpython-311.pyc +0 -0
  2. grounding-dino/.eval_venv/lib64/python3.11/site-packages/__pycache__/cython.cpython-311.pyc +0 -0
  3. grounding-dino/.eval_venv/lib64/python3.11/site-packages/_distutils_hack/__init__.py +239 -0
  4. grounding-dino/.eval_venv/lib64/python3.11/site-packages/_distutils_hack/__pycache__/__init__.cpython-311.pyc +0 -0
  5. grounding-dino/.eval_venv/lib64/python3.11/site-packages/_distutils_hack/__pycache__/override.cpython-311.pyc +0 -0
  6. grounding-dino/.eval_venv/lib64/python3.11/site-packages/_distutils_hack/override.py +1 -0
  7. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/INSTALLER +1 -0
  8. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/METADATA +207 -0
  9. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/RECORD +266 -0
  10. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/WHEEL +6 -0
  11. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/licenses/LICENSE.txt +29 -0
  12. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/licenses/LICENSE_GEOS +509 -0
  13. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/top_level.txt +1 -0
  14. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/__init__.cpython-311.pyc +0 -0
  15. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_coverage.cpython-311.pyc +0 -0
  16. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_enum.cpython-311.pyc +0 -0
  17. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_geometry.cpython-311.pyc +0 -0
  18. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_ragged_array.cpython-311.pyc +0 -0
  19. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_version.cpython-311.pyc +0 -0
  20. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/plotting.cpython-311.pyc +0 -0
  21. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/predicates.cpython-311.pyc +0 -0
  22. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/prepared.cpython-311.pyc +0 -0
  23. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/set_operations.cpython-311.pyc +0 -0
  24. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/speedups.cpython-311.pyc +0 -0
  25. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/strtree.cpython-311.pyc +0 -0
  26. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/testing.cpython-311.pyc +0 -0
  27. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/validation.cpython-311.pyc +0 -0
  28. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/wkb.cpython-311.pyc +0 -0
  29. grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/wkt.cpython-311.pyc +0 -0
  30. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/INSTALLER +1 -0
  31. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/LICENSE +21 -0
  32. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/METADATA +99 -0
  33. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/RECORD +22 -0
  34. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/WHEEL +4 -0
  35. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/entry_points.txt +0 -0
  36. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__init__.py +17 -0
  37. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/__init__.cpython-311.pyc +0 -0
  38. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/ascii_table.cpython-311.pyc +0 -0
  39. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/base_table.cpython-311.pyc +0 -0
  40. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/build.cpython-311.pyc +0 -0
  41. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/github_table.cpython-311.pyc +0 -0
  42. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/other_tables.cpython-311.pyc +0 -0
  43. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/terminal_io.cpython-311.pyc +0 -0
  44. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/width_and_alignment.cpython-311.pyc +0 -0
  45. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/ascii_table.py +55 -0
  46. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/base_table.py +217 -0
  47. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/build.py +151 -0
  48. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/github_table.py +70 -0
  49. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/other_tables.py +177 -0
  50. grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/terminal_io.py +98 -0
grounding-dino/.eval_venv/lib64/python3.11/site-packages/__pycache__/__editable___mmdet_3_3_0_finder.cpython-311.pyc ADDED
Binary file (5.7 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/__pycache__/cython.cpython-311.pyc ADDED
Binary file (1.08 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/_distutils_hack/__init__.py ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # don't import any costly modules
2
+ import os
3
+ import sys
4
+
5
+ report_url = (
6
+ "https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml"
7
+ )
8
+
9
+
10
+ def warn_distutils_present():
11
+ if 'distutils' not in sys.modules:
12
+ return
13
+ import warnings
14
+
15
+ warnings.warn(
16
+ "Distutils was imported before Setuptools, but importing Setuptools "
17
+ "also replaces the `distutils` module in `sys.modules`. This may lead "
18
+ "to undesirable behaviors or errors. To avoid these issues, avoid "
19
+ "using distutils directly, ensure that setuptools is installed in the "
20
+ "traditional way (e.g. not an editable install), and/or make sure "
21
+ "that setuptools is always imported before distutils."
22
+ )
23
+
24
+
25
+ def clear_distutils():
26
+ if 'distutils' not in sys.modules:
27
+ return
28
+ import warnings
29
+
30
+ warnings.warn(
31
+ "Setuptools is replacing distutils. Support for replacing "
32
+ "an already imported distutils is deprecated. In the future, "
33
+ "this condition will fail. "
34
+ f"Register concerns at {report_url}"
35
+ )
36
+ mods = [
37
+ name
38
+ for name in sys.modules
39
+ if name == "distutils" or name.startswith("distutils.")
40
+ ]
41
+ for name in mods:
42
+ del sys.modules[name]
43
+
44
+
45
+ def enabled():
46
+ """
47
+ Allow selection of distutils by environment variable.
48
+ """
49
+ which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
50
+ if which == 'stdlib':
51
+ import warnings
52
+
53
+ warnings.warn(
54
+ "Reliance on distutils from stdlib is deprecated. Users "
55
+ "must rely on setuptools to provide the distutils module. "
56
+ "Avoid importing distutils or import setuptools first, "
57
+ "and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. "
58
+ f"Register concerns at {report_url}"
59
+ )
60
+ return which == 'local'
61
+
62
+
63
+ def ensure_local_distutils():
64
+ import importlib
65
+
66
+ clear_distutils()
67
+
68
+ # With the DistutilsMetaFinder in place,
69
+ # perform an import to cause distutils to be
70
+ # loaded from setuptools._distutils. Ref #2906.
71
+ with shim():
72
+ importlib.import_module('distutils')
73
+
74
+ # check that submodules load as expected
75
+ core = importlib.import_module('distutils.core')
76
+ assert '_distutils' in core.__file__, core.__file__
77
+ assert 'setuptools._distutils.log' not in sys.modules
78
+
79
+
80
+ def do_override():
81
+ """
82
+ Ensure that the local copy of distutils is preferred over stdlib.
83
+
84
+ See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
85
+ for more motivation.
86
+ """
87
+ if enabled():
88
+ warn_distutils_present()
89
+ ensure_local_distutils()
90
+
91
+
92
+ class _TrivialRe:
93
+ def __init__(self, *patterns) -> None:
94
+ self._patterns = patterns
95
+
96
+ def match(self, string):
97
+ return all(pat in string for pat in self._patterns)
98
+
99
+
100
+ class DistutilsMetaFinder:
101
+ def find_spec(self, fullname, path, target=None):
102
+ # optimization: only consider top level modules and those
103
+ # found in the CPython test suite.
104
+ if path is not None and not fullname.startswith('test.'):
105
+ return None
106
+
107
+ method_name = 'spec_for_{fullname}'.format(**locals())
108
+ method = getattr(self, method_name, lambda: None)
109
+ return method()
110
+
111
+ def spec_for_distutils(self):
112
+ if self.is_cpython():
113
+ return None
114
+
115
+ import importlib
116
+ import importlib.abc
117
+ import importlib.util
118
+
119
+ try:
120
+ mod = importlib.import_module('setuptools._distutils')
121
+ except Exception:
122
+ # There are a couple of cases where setuptools._distutils
123
+ # may not be present:
124
+ # - An older Setuptools without a local distutils is
125
+ # taking precedence. Ref #2957.
126
+ # - Path manipulation during sitecustomize removes
127
+ # setuptools from the path but only after the hook
128
+ # has been loaded. Ref #2980.
129
+ # In either case, fall back to stdlib behavior.
130
+ return None
131
+
132
+ class DistutilsLoader(importlib.abc.Loader):
133
+ def create_module(self, spec):
134
+ mod.__name__ = 'distutils'
135
+ return mod
136
+
137
+ def exec_module(self, module):
138
+ pass
139
+
140
+ return importlib.util.spec_from_loader(
141
+ 'distutils', DistutilsLoader(), origin=mod.__file__
142
+ )
143
+
144
+ @staticmethod
145
+ def is_cpython():
146
+ """
147
+ Suppress supplying distutils for CPython (build and tests).
148
+ Ref #2965 and #3007.
149
+ """
150
+ return os.path.isfile('pybuilddir.txt')
151
+
152
+ def spec_for_pip(self):
153
+ """
154
+ Ensure stdlib distutils when running under pip.
155
+ See pypa/pip#8761 for rationale.
156
+ """
157
+ if sys.version_info >= (3, 12) or self.pip_imported_during_build():
158
+ return
159
+ clear_distutils()
160
+ self.spec_for_distutils = lambda: None
161
+
162
+ @classmethod
163
+ def pip_imported_during_build(cls):
164
+ """
165
+ Detect if pip is being imported in a build script. Ref #2355.
166
+ """
167
+ import traceback
168
+
169
+ return any(
170
+ cls.frame_file_is_setup(frame) for frame, line in traceback.walk_stack(None)
171
+ )
172
+
173
+ @staticmethod
174
+ def frame_file_is_setup(frame):
175
+ """
176
+ Return True if the indicated frame suggests a setup.py file.
177
+ """
178
+ # some frames may not have __file__ (#2940)
179
+ return frame.f_globals.get('__file__', '').endswith('setup.py')
180
+
181
+ def spec_for_sensitive_tests(self):
182
+ """
183
+ Ensure stdlib distutils when running select tests under CPython.
184
+
185
+ python/cpython#91169
186
+ """
187
+ clear_distutils()
188
+ self.spec_for_distutils = lambda: None
189
+
190
+ sensitive_tests = (
191
+ [
192
+ 'test.test_distutils',
193
+ 'test.test_peg_generator',
194
+ 'test.test_importlib',
195
+ ]
196
+ if sys.version_info < (3, 10)
197
+ else [
198
+ 'test.test_distutils',
199
+ ]
200
+ )
201
+
202
+
203
+ for name in DistutilsMetaFinder.sensitive_tests:
204
+ setattr(
205
+ DistutilsMetaFinder,
206
+ f'spec_for_{name}',
207
+ DistutilsMetaFinder.spec_for_sensitive_tests,
208
+ )
209
+
210
+
211
+ DISTUTILS_FINDER = DistutilsMetaFinder()
212
+
213
+
214
+ def add_shim():
215
+ DISTUTILS_FINDER in sys.meta_path or insert_shim()
216
+
217
+
218
+ class shim:
219
+ def __enter__(self) -> None:
220
+ insert_shim()
221
+
222
+ def __exit__(self, exc: object, value: object, tb: object) -> None:
223
+ _remove_shim()
224
+
225
+
226
+ def insert_shim():
227
+ sys.meta_path.insert(0, DISTUTILS_FINDER)
228
+
229
+
230
+ def _remove_shim():
231
+ try:
232
+ sys.meta_path.remove(DISTUTILS_FINDER)
233
+ except ValueError:
234
+ pass
235
+
236
+
237
+ if sys.version_info < (3, 12):
238
+ # DistutilsMetaFinder can only be disabled in Python < 3.12 (PEP 632)
239
+ remove_shim = _remove_shim
grounding-dino/.eval_venv/lib64/python3.11/site-packages/_distutils_hack/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (12 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/_distutils_hack/__pycache__/override.cpython-311.pyc ADDED
Binary file (379 Bytes). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/_distutils_hack/override.py ADDED
@@ -0,0 +1 @@
 
 
1
+ __import__('_distutils_hack').do_override()
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/METADATA ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: shapely
3
+ Version: 2.1.2
4
+ Summary: Manipulation and analysis of geometric objects
5
+ Author: Sean Gillies
6
+ Maintainer: Shapely contributors
7
+ License: BSD 3-Clause
8
+ Project-URL: Documentation, https://shapely.readthedocs.io/
9
+ Project-URL: Repository, https://github.com/shapely/shapely
10
+ Keywords: geometry,topology,gis
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: BSD License
15
+ Classifier: Operating System :: Unix
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
24
+ Classifier: Topic :: Scientific/Engineering :: GIS
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/x-rst
27
+ License-File: LICENSE.txt
28
+ License-File: LICENSE_GEOS
29
+ Requires-Dist: numpy>=1.21
30
+ Provides-Extra: test
31
+ Requires-Dist: pytest; extra == "test"
32
+ Requires-Dist: pytest-cov; extra == "test"
33
+ Requires-Dist: scipy-doctest; extra == "test"
34
+ Provides-Extra: docs
35
+ Requires-Dist: numpydoc==1.1.*; extra == "docs"
36
+ Requires-Dist: matplotlib; extra == "docs"
37
+ Requires-Dist: sphinx; extra == "docs"
38
+ Requires-Dist: sphinx-book-theme; extra == "docs"
39
+ Requires-Dist: sphinx-remove-toctrees; extra == "docs"
40
+ Dynamic: license-file
41
+
42
+ =======
43
+ Shapely
44
+ =======
45
+
46
+ .. Documentation at RTD — https://readthedocs.org
47
+
48
+ .. image:: https://readthedocs.org/projects/shapely/badge/?version=stable
49
+ :alt: Documentation Status
50
+ :target: https://shapely.readthedocs.io/en/stable/
51
+
52
+ .. Github Actions status — https://github.com/shapely/shapely/actions
53
+
54
+ .. |github-actions| image:: https://github.com/shapely/shapely/workflows/Tests/badge.svg?branch=main
55
+ :alt: Github Actions status
56
+ :target: https://github.com/shapely/shapely/actions?query=branch%3Amain
57
+
58
+ .. PyPI
59
+
60
+ .. image:: https://img.shields.io/pypi/v/shapely.svg
61
+ :alt: PyPI
62
+ :target: https://pypi.org/project/shapely/
63
+
64
+ .. Anaconda
65
+
66
+ .. image:: https://img.shields.io/conda/vn/conda-forge/shapely
67
+ :alt: Anaconda
68
+ :target: https://anaconda.org/conda-forge/shapely
69
+
70
+ .. Coverage
71
+
72
+ .. |coveralls| image:: https://coveralls.io/repos/github/shapely/shapely/badge.svg?branch=main
73
+ :target: https://coveralls.io/github/shapely/shapely?branch=main
74
+
75
+ .. Zenodo
76
+
77
+ .. .. image:: https://zenodo.org/badge/191151963.svg
78
+ .. :alt: Zenodo
79
+ .. :target: https://zenodo.org/badge/latestdoi/191151963
80
+
81
+ Manipulation and analysis of geometric objects in the Cartesian plane.
82
+
83
+ .. image:: https://c2.staticflickr.com/6/5560/31301790086_b3472ea4e9_c.jpg
84
+ :width: 800
85
+ :height: 378
86
+
87
+ Shapely is a BSD-licensed Python package for manipulation and analysis of
88
+ planar geometric objects. It is using the widely deployed open-source
89
+ geometry library `GEOS <https://libgeos.org/>`__ (the engine of `PostGIS
90
+ <https://postgis.net/>`__, and a port of `JTS <https://locationtech.github.io/jts/>`__).
91
+ Shapely wraps GEOS geometries and operations to provide both a feature rich
92
+ `Geometry` interface for singular (scalar) geometries and higher-performance
93
+ NumPy ufuncs for operations using arrays of geometries.
94
+ Shapely is not primarily focused on data serialization formats or coordinate
95
+ systems, but can be readily integrated with packages that are.
96
+
97
+ What is a ufunc?
98
+ ----------------
99
+
100
+ A universal function (or ufunc for short) is a function that operates on
101
+ *n*-dimensional arrays on an element-by-element fashion and supports array
102
+ broadcasting. The underlying ``for`` loops are implemented in C to reduce the
103
+ overhead of the Python interpreter.
104
+
105
+ Multithreading
106
+ --------------
107
+
108
+ Shapely functions generally support multithreading by releasing the Global
109
+ Interpreter Lock (GIL) during execution. Normally in Python, the GIL prevents
110
+ multiple threads from computing at the same time. Shapely functions
111
+ internally release this constraint so that the heavy lifting done by GEOS can
112
+ be done in parallel, from a single Python process.
113
+
114
+ Usage
115
+ =====
116
+
117
+ Here is the canonical example of building an approximately circular patch by
118
+ buffering a point, using the scalar Geometry interface:
119
+
120
+ .. code-block:: pycon
121
+
122
+ >>> from shapely import Point
123
+ >>> patch = Point(0.0, 0.0).buffer(10.0)
124
+ >>> patch
125
+ <POLYGON ((10 0, 9.952 -0.98, 9.808 -1.951, 9.569 -2.903, 9.239 -3.827, 8.81...>
126
+ >>> patch.area
127
+ 313.6548490545941
128
+
129
+ Using the vectorized ufunc interface (instead of using a manual for loop),
130
+ compare an array of points with a polygon:
131
+
132
+ .. code:: python
133
+
134
+ >>> import shapely
135
+ >>> import numpy as np
136
+ >>> geoms = np.array([Point(0, 0), Point(1, 1), Point(2, 2)])
137
+ >>> polygon = shapely.box(0, 0, 2, 2)
138
+
139
+ >>> shapely.contains(polygon, geoms)
140
+ array([False, True, False])
141
+
142
+ See the documentation for more examples and guidance: https://shapely.readthedocs.io
143
+
144
+ Requirements
145
+ ============
146
+
147
+ Shapely 2.1 requires
148
+
149
+ * Python >=3.10
150
+ * GEOS >=3.9
151
+ * NumPy >=1.21
152
+
153
+ Installing Shapely
154
+ ==================
155
+
156
+ We recommend installing Shapely using one of the available built
157
+ distributions, for example using ``pip`` or ``conda``:
158
+
159
+ .. code-block:: console
160
+
161
+ $ pip install shapely
162
+ # or using conda
163
+ $ conda install shapely --channel conda-forge
164
+
165
+ See the `installation documentation <https://shapely.readthedocs.io/en/latest/installation.html>`__
166
+ for more details and advanced installation instructions.
167
+
168
+ Integration
169
+ ===========
170
+
171
+ Shapely does not read or write data files, but it can serialize and deserialize
172
+ using several well known formats and protocols. The shapely.wkb and shapely.wkt
173
+ modules provide dumpers and loaders inspired by Python's pickle module.
174
+
175
+ .. code-block:: pycon
176
+
177
+ >>> from shapely.wkt import dumps, loads
178
+ >>> dumps(loads('POINT (0 0)'))
179
+ 'POINT (0.0000000000000000 0.0000000000000000)'
180
+
181
+ Shapely can also integrate with other Python GIS packages using GeoJSON-like
182
+ dicts.
183
+
184
+ .. code-block:: pycon
185
+
186
+ >>> import json
187
+ >>> from shapely.geometry import mapping, shape
188
+ >>> s = shape(json.loads('{"type": "Point", "coordinates": [0.0, 0.0]}'))
189
+ >>> s
190
+ <POINT (0 0)>
191
+ >>> print(json.dumps(mapping(s)))
192
+ {"type": "Point", "coordinates": [0.0, 0.0]}
193
+
194
+ Support
195
+ =======
196
+
197
+ Questions about using Shapely may be asked on the `GIS StackExchange
198
+ <https://gis.stackexchange.com/questions/tagged/shapely>`__ using the "shapely"
199
+ tag.
200
+
201
+ Bugs may be reported at https://github.com/shapely/shapely/issues.
202
+
203
+ Copyright & License
204
+ ===================
205
+
206
+ Shapely is licensed under BSD 3-Clause license.
207
+ GEOS is available under the terms of GNU Lesser General Public License (LGPL) 2.1 at https://libgeos.org.
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/RECORD ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ shapely-2.1.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ shapely-2.1.2.dist-info/METADATA,sha256=DcLprtnVfzFL5g6IVaDK7FOGXL1MlnUrisT_9XHRoto,6816
3
+ shapely-2.1.2.dist-info/RECORD,,
4
+ shapely-2.1.2.dist-info/WHEEL,sha256=_CFvICYDmZlAYHt8L7Zn3n-BGLj8dkZLQPp22Piy5JE,151
5
+ shapely-2.1.2.dist-info/licenses/LICENSE.txt,sha256=SiB-rJvyV-0obhxvD84lPRq_2xNPxh7IVeN_VpKj91Q,1583
6
+ shapely-2.1.2.dist-info/licenses/LICENSE_GEOS,sha256=E4ssL5RQBz18EWq-OXykOCYlZxx1K3qaXzILM_w_Pyo,26786
7
+ shapely-2.1.2.dist-info/top_level.txt,sha256=fxc5UIKKldpKP3lx2dvM5R3hWeKwlmVW6-nfikr3iU0,8
8
+ shapely.libs/libgeos-3ef06f11.so.3.13.1,sha256=WeATnRzOqaMxuTLGCzmZdLr9_1wOB7VUxqXfgO2s8VA,5315353
9
+ shapely.libs/libgeos_c-abcdd5fa.so.1.19.2,sha256=kVifUgZwcqtmFSTPGByvhWCX_JAcHsxKmFhdA_VFLAI,514225
10
+ shapely/__init__.py,sha256=7EaUQ1fhIHeYITv5jnFc-GKQbsMXCCSU-YI_I3D9cOM,1031
11
+ shapely/__pycache__/__init__.cpython-311.pyc,,
12
+ shapely/__pycache__/_coverage.cpython-311.pyc,,
13
+ shapely/__pycache__/_enum.cpython-311.pyc,,
14
+ shapely/__pycache__/_geometry.cpython-311.pyc,,
15
+ shapely/__pycache__/_ragged_array.cpython-311.pyc,,
16
+ shapely/__pycache__/_version.cpython-311.pyc,,
17
+ shapely/__pycache__/affinity.cpython-311.pyc,,
18
+ shapely/__pycache__/conftest.cpython-311.pyc,,
19
+ shapely/__pycache__/constructive.cpython-311.pyc,,
20
+ shapely/__pycache__/coordinates.cpython-311.pyc,,
21
+ shapely/__pycache__/coords.cpython-311.pyc,,
22
+ shapely/__pycache__/creation.cpython-311.pyc,,
23
+ shapely/__pycache__/decorators.cpython-311.pyc,,
24
+ shapely/__pycache__/errors.cpython-311.pyc,,
25
+ shapely/__pycache__/geos.cpython-311.pyc,,
26
+ shapely/__pycache__/io.cpython-311.pyc,,
27
+ shapely/__pycache__/linear.cpython-311.pyc,,
28
+ shapely/__pycache__/measurement.cpython-311.pyc,,
29
+ shapely/__pycache__/ops.cpython-311.pyc,,
30
+ shapely/__pycache__/plotting.cpython-311.pyc,,
31
+ shapely/__pycache__/predicates.cpython-311.pyc,,
32
+ shapely/__pycache__/prepared.cpython-311.pyc,,
33
+ shapely/__pycache__/set_operations.cpython-311.pyc,,
34
+ shapely/__pycache__/speedups.cpython-311.pyc,,
35
+ shapely/__pycache__/strtree.cpython-311.pyc,,
36
+ shapely/__pycache__/testing.cpython-311.pyc,,
37
+ shapely/__pycache__/validation.cpython-311.pyc,,
38
+ shapely/__pycache__/wkb.cpython-311.pyc,,
39
+ shapely/__pycache__/wkt.cpython-311.pyc,,
40
+ shapely/_coverage.py,sha256=yiCL5ZtMKMDHVw6ElHkR8C_C2n0DtRpsgsGJhhuucL4,5732
41
+ shapely/_enum.py,sha256=yjnEScziJZJLaM0P1rYGPekN_-mWd64-rme5PsaKeHk,704
42
+ shapely/_geometry.py,sha256=XZxvmLB_jg0lHoMiHgKFd_LNSij4nrJ_QYNKpq-hboQ,29155
43
+ shapely/_geometry_helpers.cpython-311-x86_64-linux-gnu.so,sha256=lD2rDfnKcf5iTy7W950b4_ks6kpLN3ol4_9q9eGx6ek,2756897
44
+ shapely/_geos.cpython-311-x86_64-linux-gnu.so,sha256=JHaF0wV7FBeQz4ODQK5Ysa0KvAKJ2wKCVYRszPcWEkU,371481
45
+ shapely/_geos.pxd,sha256=GPVuqpe1YIaQVbMRJoZIiCjxdme0cJAg_z4DpcE7vDc,3209
46
+ shapely/_pygeos_api.pxd,sha256=Eq4ZaI0ufjGXA_TGkpHS5sOOaT1is4w3XaQ4swq9KH8,2090
47
+ shapely/_ragged_array.py,sha256=-eaMAVJtZv3P0dzGdcZwx8qJEt49EFmS384VAUlTAQE,17445
48
+ shapely/_version.py,sha256=88xJ9sC_zAQ5QJvIa1nV1IvqPLcsEtgujz_kovXokx0,497
49
+ shapely/affinity.py,sha256=7hWT9l_MiEkj9VECKukdAUz_NYSoh3vI6hvNV9A6PYo,8255
50
+ shapely/algorithms/__init__.py,sha256=ZHIivuQ5w5GJXB7hwLp0zckd_b226k68wjBhT0k9Ayo,41
51
+ shapely/algorithms/__pycache__/__init__.cpython-311.pyc,,
52
+ shapely/algorithms/__pycache__/_oriented_envelope.cpython-311.pyc,,
53
+ shapely/algorithms/__pycache__/cga.cpython-311.pyc,,
54
+ shapely/algorithms/__pycache__/polylabel.cpython-311.pyc,,
55
+ shapely/algorithms/_oriented_envelope.py,sha256=aXoxegHXQKzESqo8KU0qXyvYLh8ALJjWlGt0GORS8vQ,1933
56
+ shapely/algorithms/cga.py,sha256=KNXvGaIT5JxH2k_6wnLBknNdROT3coD2fYIup-YP76I,1757
57
+ shapely/algorithms/polylabel.py,sha256=gzV5lcbzZlvl_wUNCWQFa78m3hPyuZCuBMlA_4HuaWQ,1344
58
+ shapely/conftest.py,sha256=B-sFq61da65kTXfRgMf-WjPcZZ_put27XAdbqfK0fGo,1947
59
+ shapely/constructive.py,sha256=nIFNT7D25eOiqag4Gno_8el8lVaZXuJcX0N5E-Gv0XM,56189
60
+ shapely/coordinates.py,sha256=tvEeJIM1GMnwYZNEKh-3m51cHgJabZYaASShDhE8-xM,12575
61
+ shapely/coords.py,sha256=IbuodmCNibkZc8_Xpa8e7HFxT4W-oCMY4ftvJTuDGXk,3032
62
+ shapely/creation.py,sha256=wtp6USiIY6wp4Jp96xsy2ae7a9KgK9S5nFb0PbZEs20,30987
63
+ shapely/decorators.py,sha256=EwVrR1b54NjNM8LRW0xfaueLsHit1LQCnJIxNxkn8ck,5694
64
+ shapely/errors.py,sha256=MNWjK339jfpZ59UmVZgVsX2tyZCw3nRCZa0j_zI8zlw,2398
65
+ shapely/geometry/__init__.py,sha256=-YrRxKZ-HfT3yVG4klD5EEvdFHfwWNAK6ovjuuNhhlo,763
66
+ shapely/geometry/__pycache__/__init__.cpython-311.pyc,,
67
+ shapely/geometry/__pycache__/base.cpython-311.pyc,,
68
+ shapely/geometry/__pycache__/collection.cpython-311.pyc,,
69
+ shapely/geometry/__pycache__/geo.cpython-311.pyc,,
70
+ shapely/geometry/__pycache__/linestring.cpython-311.pyc,,
71
+ shapely/geometry/__pycache__/multilinestring.cpython-311.pyc,,
72
+ shapely/geometry/__pycache__/multipoint.cpython-311.pyc,,
73
+ shapely/geometry/__pycache__/multipolygon.cpython-311.pyc,,
74
+ shapely/geometry/__pycache__/point.cpython-311.pyc,,
75
+ shapely/geometry/__pycache__/polygon.cpython-311.pyc,,
76
+ shapely/geometry/base.py,sha256=ew2WuCfPl-iOrJsr34Nlm6hOmdAOlxgp-nHIzBQ3YSI,40375
77
+ shapely/geometry/collection.py,sha256=xEjq5ArbA5e-e3x6pbc6XDQ7YyiBiS-5JbneytDEM3Q,1736
78
+ shapely/geometry/geo.py,sha256=U3civBiWmrozAApjhiqpXYBPi3YSjwrAJqzsMFCiPTc,4366
79
+ shapely/geometry/linestring.py,sha256=YG_xDpCeGrizQqEObKj8D4U6yVyfvq_Ybh8vZIGfQXI,7599
80
+ shapely/geometry/multilinestring.py,sha256=tRKc6crL6mWtrUp0PRIdKZJpibwVOKkF9042K1rjEl4,2942
81
+ shapely/geometry/multipoint.py,sha256=dGyKGxMOuvIM1DAbzxB9X3XSjDvYpSUNtYkUgFY1p_g,3222
82
+ shapely/geometry/multipolygon.py,sha256=BTkOVpK8zE6P64EzeKv3NmAcy6-ol-ViCR0jnPhCbY4,3955
83
+ shapely/geometry/point.py,sha256=pIB8Vc_6N7VNnnbguqjHwOA9uS49BbSE2UwOMC58XbE,4731
84
+ shapely/geometry/polygon.py,sha256=LVNHuAbp1oeQeUc6I5C470CV9Pg6Ojs3-jJJICM8Ucg,11082
85
+ shapely/geos.py,sha256=CAPZSwI3su1ktoQG4iqtWfDGLZTIL7YgZ416LtlqoCQ,520
86
+ shapely/io.py,sha256=Ad71zu0LwctyD7RatVcwZFsvOQ_VN-bLykJAOBOr9jE,15108
87
+ shapely/lib.cpython-311-x86_64-linux-gnu.so,sha256=-UAbaZ-UKGKfFg5qvR6y4zWfQRKbwczagVhLCJXWv6U,757001
88
+ shapely/linear.py,sha256=r7g7Oirr13TxppORtGoI7RGBKoEfc5pfwIsQPYELn7E,8675
89
+ shapely/measurement.py,sha256=KJ5FWb87DuaF8qTR-jJ77-Y8GzH4z4TZ4WJRbSdHmVo,10622
90
+ shapely/ops.py,sha256=O3p4feybWouVbxx_OfOtphAPP6qZR61XzRy-IL7IxcQ,25679
91
+ shapely/plotting.py,sha256=2fuLnZdjw0NklD71VbEjJyRxoFaaKDv6FxXyF-iXJXs,6322
92
+ shapely/predicates.py,sha256=chSrPqgrahH8-1yVknoo4L_UsfoYWNXI9fdKsW-dZog,39673
93
+ shapely/prepared.py,sha256=Q97afxEhuqXMyxdgNgxzsoMjpYqiMzHXwn1HF8Wbmuk,2351
94
+ shapely/set_operations.py,sha256=HXLd-K772kUN39-x6_EKytM3TWhlnFYs9qSIy5x_l68,27437
95
+ shapely/speedups.py,sha256=vzWABtP1-3zBdX4bYZxzbwxLUgEsWjPTKAgGY3iGtag,1038
96
+ shapely/strtree.py,sha256=IqS-rPYu8bVPV50Hbf1GaItLOPKH172RL3Ze1Z9uPSI,20649
97
+ shapely/testing.py,sha256=CN2zAnObFnWsBBxxq-uMkmDTmKU0Rt0db0B8yQ3qAlc,6472
98
+ shapely/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
99
+ shapely/tests/__pycache__/__init__.cpython-311.pyc,,
100
+ shapely/tests/__pycache__/common.cpython-311.pyc,,
101
+ shapely/tests/__pycache__/test_constructive.cpython-311.pyc,,
102
+ shapely/tests/__pycache__/test_coordinates.cpython-311.pyc,,
103
+ shapely/tests/__pycache__/test_coverage.cpython-311.pyc,,
104
+ shapely/tests/__pycache__/test_creation.cpython-311.pyc,,
105
+ shapely/tests/__pycache__/test_creation_indices.cpython-311.pyc,,
106
+ shapely/tests/__pycache__/test_decorators.cpython-311.pyc,,
107
+ shapely/tests/__pycache__/test_geometry.cpython-311.pyc,,
108
+ shapely/tests/__pycache__/test_io.cpython-311.pyc,,
109
+ shapely/tests/__pycache__/test_linear.cpython-311.pyc,,
110
+ shapely/tests/__pycache__/test_measurement.cpython-311.pyc,,
111
+ shapely/tests/__pycache__/test_misc.cpython-311.pyc,,
112
+ shapely/tests/__pycache__/test_plotting.cpython-311.pyc,,
113
+ shapely/tests/__pycache__/test_predicates.cpython-311.pyc,,
114
+ shapely/tests/__pycache__/test_ragged_array.cpython-311.pyc,,
115
+ shapely/tests/__pycache__/test_set_operations.cpython-311.pyc,,
116
+ shapely/tests/__pycache__/test_strtree.cpython-311.pyc,,
117
+ shapely/tests/__pycache__/test_testing.cpython-311.pyc,,
118
+ shapely/tests/common.py,sha256=hDiyxkeechWKNB631A4jYRZg1rNupovi1CLp_GK-iUE,10151
119
+ shapely/tests/geometry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
120
+ shapely/tests/geometry/__pycache__/__init__.cpython-311.pyc,,
121
+ shapely/tests/geometry/__pycache__/test_collection.cpython-311.pyc,,
122
+ shapely/tests/geometry/__pycache__/test_coords.cpython-311.pyc,,
123
+ shapely/tests/geometry/__pycache__/test_decimal.cpython-311.pyc,,
124
+ shapely/tests/geometry/__pycache__/test_emptiness.cpython-311.pyc,,
125
+ shapely/tests/geometry/__pycache__/test_equality.cpython-311.pyc,,
126
+ shapely/tests/geometry/__pycache__/test_format.cpython-311.pyc,,
127
+ shapely/tests/geometry/__pycache__/test_geometry_base.cpython-311.pyc,,
128
+ shapely/tests/geometry/__pycache__/test_hash.cpython-311.pyc,,
129
+ shapely/tests/geometry/__pycache__/test_linestring.cpython-311.pyc,,
130
+ shapely/tests/geometry/__pycache__/test_multi.cpython-311.pyc,,
131
+ shapely/tests/geometry/__pycache__/test_multilinestring.cpython-311.pyc,,
132
+ shapely/tests/geometry/__pycache__/test_multipoint.cpython-311.pyc,,
133
+ shapely/tests/geometry/__pycache__/test_multipolygon.cpython-311.pyc,,
134
+ shapely/tests/geometry/__pycache__/test_point.cpython-311.pyc,,
135
+ shapely/tests/geometry/__pycache__/test_polygon.cpython-311.pyc,,
136
+ shapely/tests/geometry/test_collection.py,sha256=AremmkB08oV9nIDjVUkHFnLlDI97M6uj5dJxUW51Zo8,2669
137
+ shapely/tests/geometry/test_coords.py,sha256=EYUzCoy7EV7eKFBOcq8kNUKrqnL-lxLS73l8qbblcYw,3990
138
+ shapely/tests/geometry/test_decimal.py,sha256=AlHN5t3gzvvQ5w9iCIMvJsIibC4sdE3pfyQWpcBXI9c,2846
139
+ shapely/tests/geometry/test_emptiness.py,sha256=FIPHsZWLgRoehKpvoezAsqjjzJnosL7y08a-AbHlbA4,2362
140
+ shapely/tests/geometry/test_equality.py,sha256=qhe9DQpNAqRmO2bAb8sQvV0TuTI4FkXOTfeOHQVsEg0,9436
141
+ shapely/tests/geometry/test_format.py,sha256=GuNXkzeOFkGWFjaBhG0yIGHziXK-4-77AgmNMzPEGEU,4518
142
+ shapely/tests/geometry/test_geometry_base.py,sha256=2PiO4VfL3AQRQCVb2jRgo-H4Yg5pJ2J8yap023rcyR4,10726
143
+ shapely/tests/geometry/test_hash.py,sha256=EtQyaRUtTUIL8AiCjyvVC4KRJQ_E3uqr-4Wn_oaW-Ac,673
144
+ shapely/tests/geometry/test_linestring.py,sha256=ovKJ9LxcOGS_tASrst5imdYgLS9Gw8ydYlzTLTqiTt4,7043
145
+ shapely/tests/geometry/test_multi.py,sha256=Zaxc1MljTkpx82ySRlsURMcYH-pg1YmPh9Am_k2I59o,297
146
+ shapely/tests/geometry/test_multilinestring.py,sha256=Vd5oYTh0UP3jb5uJtUnOUjEFviTdgdRHE5LOyz1PVjw,2834
147
+ shapely/tests/geometry/test_multipoint.py,sha256=LCs7amyChhJwfWCkoipKTletSrLvm_t2PMM8i9T3mCo,3047
148
+ shapely/tests/geometry/test_multipolygon.py,sha256=nC7R2GWN82NINIoFk_4flWswKFnHM32uhGEvn4vLa7g,4907
149
+ shapely/tests/geometry/test_point.py,sha256=18Wn10MxH_YvUxdXbCLHc7L2DESxGBWxUxTjlJ5th84,5332
150
+ shapely/tests/geometry/test_polygon.py,sha256=RjwkejycT_Oiuwe3smoMYFZOCIY-jk8MEYIKrFYifuQ,15303
151
+ shapely/tests/legacy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
152
+ shapely/tests/legacy/__pycache__/__init__.cpython-311.pyc,,
153
+ shapely/tests/legacy/__pycache__/conftest.cpython-311.pyc,,
154
+ shapely/tests/legacy/__pycache__/test_affinity.cpython-311.pyc,,
155
+ shapely/tests/legacy/__pycache__/test_box.cpython-311.pyc,,
156
+ shapely/tests/legacy/__pycache__/test_buffer.cpython-311.pyc,,
157
+ shapely/tests/legacy/__pycache__/test_cga.cpython-311.pyc,,
158
+ shapely/tests/legacy/__pycache__/test_clip_by_rect.cpython-311.pyc,,
159
+ shapely/tests/legacy/__pycache__/test_create_inconsistent_dimensionality.cpython-311.pyc,,
160
+ shapely/tests/legacy/__pycache__/test_delaunay.cpython-311.pyc,,
161
+ shapely/tests/legacy/__pycache__/test_empty_polygons.cpython-311.pyc,,
162
+ shapely/tests/legacy/__pycache__/test_equality.cpython-311.pyc,,
163
+ shapely/tests/legacy/__pycache__/test_geointerface.cpython-311.pyc,,
164
+ shapely/tests/legacy/__pycache__/test_invalid_geometries.cpython-311.pyc,,
165
+ shapely/tests/legacy/__pycache__/test_linear_referencing.cpython-311.pyc,,
166
+ shapely/tests/legacy/__pycache__/test_linemerge.cpython-311.pyc,,
167
+ shapely/tests/legacy/__pycache__/test_locale.cpython-311.pyc,,
168
+ shapely/tests/legacy/__pycache__/test_make_valid.cpython-311.pyc,,
169
+ shapely/tests/legacy/__pycache__/test_mapping.cpython-311.pyc,,
170
+ shapely/tests/legacy/__pycache__/test_minimum_clearance.cpython-311.pyc,,
171
+ shapely/tests/legacy/__pycache__/test_ndarrays.cpython-311.pyc,,
172
+ shapely/tests/legacy/__pycache__/test_nearest.cpython-311.pyc,,
173
+ shapely/tests/legacy/__pycache__/test_operations.cpython-311.pyc,,
174
+ shapely/tests/legacy/__pycache__/test_operators.cpython-311.pyc,,
175
+ shapely/tests/legacy/__pycache__/test_orient.cpython-311.pyc,,
176
+ shapely/tests/legacy/__pycache__/test_parallel_offset.cpython-311.pyc,,
177
+ shapely/tests/legacy/__pycache__/test_persist.cpython-311.pyc,,
178
+ shapely/tests/legacy/__pycache__/test_pickle.cpython-311.pyc,,
179
+ shapely/tests/legacy/__pycache__/test_polygonize.cpython-311.pyc,,
180
+ shapely/tests/legacy/__pycache__/test_polylabel.cpython-311.pyc,,
181
+ shapely/tests/legacy/__pycache__/test_predicates.cpython-311.pyc,,
182
+ shapely/tests/legacy/__pycache__/test_prepared.cpython-311.pyc,,
183
+ shapely/tests/legacy/__pycache__/test_products_z.cpython-311.pyc,,
184
+ shapely/tests/legacy/__pycache__/test_shape.cpython-311.pyc,,
185
+ shapely/tests/legacy/__pycache__/test_shared_paths.cpython-311.pyc,,
186
+ shapely/tests/legacy/__pycache__/test_singularity.cpython-311.pyc,,
187
+ shapely/tests/legacy/__pycache__/test_snap.cpython-311.pyc,,
188
+ shapely/tests/legacy/__pycache__/test_split.cpython-311.pyc,,
189
+ shapely/tests/legacy/__pycache__/test_substring.cpython-311.pyc,,
190
+ shapely/tests/legacy/__pycache__/test_svg.cpython-311.pyc,,
191
+ shapely/tests/legacy/__pycache__/test_transform.cpython-311.pyc,,
192
+ shapely/tests/legacy/__pycache__/test_union.cpython-311.pyc,,
193
+ shapely/tests/legacy/__pycache__/test_validation.cpython-311.pyc,,
194
+ shapely/tests/legacy/__pycache__/test_vectorized.cpython-311.pyc,,
195
+ shapely/tests/legacy/__pycache__/test_voronoi_diagram.cpython-311.pyc,,
196
+ shapely/tests/legacy/__pycache__/test_wkb.cpython-311.pyc,,
197
+ shapely/tests/legacy/__pycache__/test_wkt.cpython-311.pyc,,
198
+ shapely/tests/legacy/__pycache__/threading_test.cpython-311.pyc,,
199
+ shapely/tests/legacy/conftest.py,sha256=FvQ2x-Q2ZPMEmQJXwX0vKaKMWLm9OnF7nN3UsSEi-bA,334
200
+ shapely/tests/legacy/test_affinity.py,sha256=cAKrdDYgLfyM68x1g7e_RaZ4SHEG6fC__kNatC4mB4I,12483
201
+ shapely/tests/legacy/test_box.py,sha256=dWUFGKq_ItxQNw613IPqkAJu0vAbCKDSiXNtXfaU7yI,599
202
+ shapely/tests/legacy/test_buffer.py,sha256=BFNlI-dF7f05aoLUlMZ47Hhi1Q-O0a8Kn3Ope176ExI,6596
203
+ shapely/tests/legacy/test_cga.py,sha256=gjE9_4XqJEMX3QvKitDW9OKMvqHkvT0RLsukNNoxtfQ,1509
204
+ shapely/tests/legacy/test_clip_by_rect.py,sha256=Q9bgHlFxGnZG-yqttpv0qnWWbCh8kNWL7iSqPJZTAH0,4156
205
+ shapely/tests/legacy/test_create_inconsistent_dimensionality.py,sha256=Wr8rRg6053uVao4dPfO27MeM40cgMGeYAe5FTVaoz5U,10672
206
+ shapely/tests/legacy/test_delaunay.py,sha256=TubjNzbTxij9N9VDRX9Po_3MpxytonkCoAExq5aVaRs,838
207
+ shapely/tests/legacy/test_empty_polygons.py,sha256=pNjl0EVWuphek4TPHHqydPq10JqImQC0y963erL5K7E,683
208
+ shapely/tests/legacy/test_equality.py,sha256=HlvORMfrEdmuPIi88N27mRdqmeGluS7a5cv7VDpN_2A,747
209
+ shapely/tests/legacy/test_geointerface.py,sha256=dAsuOZSaVTZjWXquLlC0bA7MufQ8-Rr67J7FWQCfj4o,3648
210
+ shapely/tests/legacy/test_invalid_geometries.py,sha256=6Cdas1Z2Au6ZDqjO7LNRTU002y3fLHvPTFtFnBmM6HY,891
211
+ shapely/tests/legacy/test_linear_referencing.py,sha256=CBHU1SXOHor7WKGww1ZmoSgLqa0QsuhfVPK21aiNv0Y,2914
212
+ shapely/tests/legacy/test_linemerge.py,sha256=6jyoJbj1ZOvRbqFW6Cc7bS9G7DHCkKN-sxAUiAMolsQ,1329
213
+ shapely/tests/legacy/test_locale.py,sha256=RbH6dY44qDonZWRuYkqdl86kku5c9G1ZPH39VumT88Y,1434
214
+ shapely/tests/legacy/test_make_valid.py,sha256=qZVvJ4-N6TSrJz-LxL0V8HN_c_s3CYtiCzRfbK_xlxs,479
215
+ shapely/tests/legacy/test_mapping.py,sha256=CWq3y5US69POt8d_q1PFhMJy5AY54fAl4uMDsbMQH4s,395
216
+ shapely/tests/legacy/test_minimum_clearance.py,sha256=uXnBqMisUz5zgoZAsurfizsPGutgr2u63y6BqmqA9GQ,694
217
+ shapely/tests/legacy/test_ndarrays.py,sha256=5_sHeWOJ49rt41pLl5j41IbWFDDcSW0kAFqtC45jKkU,1244
218
+ shapely/tests/legacy/test_nearest.py,sha256=eXHfHQA0k1cUYNcn9WvL9SpnwhCjFb2CeN2NAMHQ0M0,476
219
+ shapely/tests/legacy/test_operations.py,sha256=RYhfq-OWNI5zRuq-RNuDaHt2Dmn8yX6wK1yYejJaTAY,4307
220
+ shapely/tests/legacy/test_operators.py,sha256=aWjGgHOmLm6Jx21BiR9APBFokL4hxOrC1IRY8YHo0QU,1948
221
+ shapely/tests/legacy/test_orient.py,sha256=i2g2Iez4Ceu1IRJnzA04hS6FMOo62GW-j956zd7xOqY,3515
222
+ shapely/tests/legacy/test_parallel_offset.py,sha256=GRiJa48w2-z7NXDVgjyh5wPTCt_lQZg5l_b1bExDZ4U,2332
223
+ shapely/tests/legacy/test_persist.py,sha256=4oUuI953DcRHZRvJABanw38iLhJr_KyATL52t1Pt3Bg,1710
224
+ shapely/tests/legacy/test_pickle.py,sha256=kEZJ_HRrJvplR9TvL94ZhNiFn3uuisfQFgrx79S_i4g,2368
225
+ shapely/tests/legacy/test_polygonize.py,sha256=QTe3FuJk397uJselWzw3GDtPPYo_n8Qb10Fmq-kO_P4,1388
226
+ shapely/tests/legacy/test_polylabel.py,sha256=Kd9uoVs41uqsMtcEZg-0i9wwwAtVoAerBR7IbUK3OI0,3143
227
+ shapely/tests/legacy/test_predicates.py,sha256=rK9ruVT6tqWsTER21tJKMy1-9ic68XgGKBBGRTeTUVg,2958
228
+ shapely/tests/legacy/test_prepared.py,sha256=ImLBEnXk0ZJZLe6jcHtxhNJBgJrK9GuwQzA9Btcdvx8,2476
229
+ shapely/tests/legacy/test_products_z.py,sha256=CrN95z-8sl3J76YZE05E5tYvMLrhGDTp_Rivbblbq5g,388
230
+ shapely/tests/legacy/test_shape.py,sha256=Mcv6027NrA9jYIfbCbcgA968HjHWl5Cf4tf8cq4qGWo,1809
231
+ shapely/tests/legacy/test_shared_paths.py,sha256=KZ1FM6s2O315voIw1XOEluwMnfzhyLd91yXnpNmnt7Y,1434
232
+ shapely/tests/legacy/test_singularity.py,sha256=GI-_673c18SIAq1UQZT3ZOnfeSbhBEuGAYgCuzPldho,381
233
+ shapely/tests/legacy/test_snap.py,sha256=fCWAaneOQn5rxmZySdiNI7LDwtZaqfYOLGseoJYRV6Q,763
234
+ shapely/tests/legacy/test_split.py,sha256=7SwUuaz8-VkuKHKAvCpcJeAoEbQaCMj5P73AmnA0jHU,11331
235
+ shapely/tests/legacy/test_substring.py,sha256=1SimMTaVc34uk84ylVSriJNx4T2Ah0axebz9IFbFZaU,21162
236
+ shapely/tests/legacy/test_svg.py,sha256=xIXhkL44w1PJl3suxvDjXKd9nPO7ljkYMTz3qoD7DG0,8253
237
+ shapely/tests/legacy/test_transform.py,sha256=s5GWsu9EeW__D0QHT4L9ivr1lygeiSxRNLEyGgmdksk,2705
238
+ shapely/tests/legacy/test_union.py,sha256=MJp3Lsufq1MPOl59hGtQq3w-H2U3VmmDMxhL_Z9c8Zc,2094
239
+ shapely/tests/legacy/test_validation.py,sha256=L33s2pjag9R_HoDa-mUG1oEOZcK-pexhnQHX4xlZu6I,238
240
+ shapely/tests/legacy/test_vectorized.py,sha256=EHTI4KYl3RAlzM2O9BuZfRLv2kxznutJtGWMubJYl8g,3723
241
+ shapely/tests/legacy/test_voronoi_diagram.py,sha256=z3ZK8Vk0NkMCtLG50vPSvQucBAaTHw3GH9sk1l2b8qE,4080
242
+ shapely/tests/legacy/test_wkb.py,sha256=npCjNYrtvFv2nhwtAciAj2te7pf1pb1g8RMrKxnBr2M,5558
243
+ shapely/tests/legacy/test_wkt.py,sha256=j0AbQI2QSktLjmSbBn7ZigvwWtN_EsNqxoKq7UAKQRU,1600
244
+ shapely/tests/legacy/threading_test.py,sha256=lWyBDOwysMaoPok5xGvDNv7CUn5jkEdDUu3bILUYqzA,1004
245
+ shapely/tests/test_constructive.py,sha256=0fKiYrfG1O3LZyDkkToLZzd_6EWshoGVqW4dsKXRlVQ,46079
246
+ shapely/tests/test_coordinates.py,sha256=7T9veZS6UCOv_bkZvymSGzCb6lLaLM0xdLXy9qUMWQw,13294
247
+ shapely/tests/test_coverage.py,sha256=_A7luPwyh2RPHFIpjd4rbo9Y0wU5VBeJ6mKHOWyUhHo,9578
248
+ shapely/tests/test_creation.py,sha256=is-CNyOwFcr7XI7vCr0bZQMX-kxlyx_VR-r7u07mOto,22345
249
+ shapely/tests/test_creation_indices.py,sha256=RC4AyfZJffy4KADDPmRKZTufaGsuwrrShX6dcxDwYQA,18597
250
+ shapely/tests/test_decorators.py,sha256=8ilvycBR-Czql8Oz-mMdKi40yFaqJyTl2uHS5eBv6mI,3699
251
+ shapely/tests/test_geometry.py,sha256=FnWY-s9Tdbg6J4CUqm-vfATlbURcgN9RIKzv_h22Qrw,23821
252
+ shapely/tests/test_io.py,sha256=Rj-fXhoyAJJQH91iZ4AM_ulbtK4FYhkDHu0ZInDYiaE,50062
253
+ shapely/tests/test_linear.py,sha256=EpAyncRrvIb91V1OT1FM6Mr8_CaohkRjaOwAii_v4vw,7726
254
+ shapely/tests/test_measurement.py,sha256=eGIt5BoaNOe6SnSN9WM8U6oXC3WHOpqDjJ3BlVdavUo,9948
255
+ shapely/tests/test_misc.py,sha256=UcccpoSvNf9E2zJBrsICxkI5_zZBFdmtdyn5B-qWrFs,5394
256
+ shapely/tests/test_plotting.py,sha256=pnq6CRfHBKZSz1Q1vLAjIllht--yZmDXngTXQOu8J88,4043
257
+ shapely/tests/test_predicates.py,sha256=rIf7QAA8a4sD6pqESEwy4aZdd0LB1bPW7XhnjcR_pzo,13714
258
+ shapely/tests/test_ragged_array.py,sha256=aJE7PsoP6gWghh39en1bOSz9Ye3Y88h_XE5ptsI_e9M,21067
259
+ shapely/tests/test_set_operations.py,sha256=x_e0_wD2IyXF5iFhn499fTTQw9rbpBx1TeoT4V6ipSk,17702
260
+ shapely/tests/test_strtree.py,sha256=049gkeywCzpVdXQoFv-noDhjMpQt80lzc2GYDeXHfRU,73511
261
+ shapely/tests/test_testing.py,sha256=fOWFjo3MyHCA_sEVjQanZ-_FNsQtm7Ng8hZgWQatM8A,2846
262
+ shapely/validation.py,sha256=AivYbY--pi2eV9hVoTRAeOwtS69m4S39w-wl3bRcPoQ,1471
263
+ shapely/vectorized/__init__.py,sha256=4FDHw--KsI8YPosvaEdtmR14BYod4CCwPqfwDmpfitU,2812
264
+ shapely/vectorized/__pycache__/__init__.cpython-311.pyc,,
265
+ shapely/wkb.py,sha256=Ne_kT9ZnEn7haUA674eUuWa7Dztfu55HgjHdKFn-1p4,1937
266
+ shapely/wkt.py,sha256=AmJ0Sv-EMUDKYKWxWqZbP_zqgkj1ORQBcD-0TnHwzyA,1733
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/WHEEL ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-cp311-manylinux_2_17_x86_64
5
+ Tag: cp311-cp311-manylinux2014_x86_64
6
+
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/licenses/LICENSE.txt ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2007, Sean C. Gillies. 2019, Casper van der Wel. 2007-2022, Shapely Contributors.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/licenses/LICENSE_GEOS ADDED
@@ -0,0 +1,509 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This binary distribution of pygeos also bundles the following software:
2
+
3
+ Name: Geometry Engine Open Source (GEOS)
4
+ Files: libgeos-*.so.*, libgeos_c-*.so.*, libgeos.dylib, libgeos_c.dylib, geos-*.dll, geos_c-*.dll
5
+ Availability: https://libgeos.org
6
+ License: LGPLv2.1
7
+
8
+ GNU LESSER GENERAL PUBLIC LICENSE
9
+ Version 2.1, February 1999
10
+
11
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
12
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
13
+ Everyone is permitted to copy and distribute verbatim copies
14
+ of this license document, but changing it is not allowed.
15
+
16
+ [This is the first released version of the Lesser GPL. It also counts
17
+ as the successor of the GNU Library Public License, version 2, hence
18
+ the version number 2.1.]
19
+
20
+ Preamble
21
+
22
+ The licenses for most software are designed to take away your
23
+ freedom to share and change it. By contrast, the GNU General Public
24
+ Licenses are intended to guarantee your freedom to share and change
25
+ free software--to make sure the software is free for all its users.
26
+
27
+ This license, the Lesser General Public License, applies to some
28
+ specially designated software packages--typically libraries--of the
29
+ Free Software Foundation and other authors who decide to use it. You
30
+ can use it too, but we suggest you first think carefully about whether
31
+ this license or the ordinary General Public License is the better
32
+ strategy to use in any particular case, based on the explanations below.
33
+
34
+ When we speak of free software, we are referring to freedom of use,
35
+ not price. Our General Public Licenses are designed to make sure that
36
+ you have the freedom to distribute copies of free software (and charge
37
+ for this service if you wish); that you receive source code or can get
38
+ it if you want it; that you can change the software and use pieces of
39
+ it in new free programs; and that you are informed that you can do
40
+ these things.
41
+
42
+ To protect your rights, we need to make restrictions that forbid
43
+ distributors to deny you these rights or to ask you to surrender these
44
+ rights. These restrictions translate to certain responsibilities for
45
+ you if you distribute copies of the library or if you modify it.
46
+
47
+ For example, if you distribute copies of the library, whether gratis
48
+ or for a fee, you must give the recipients all the rights that we gave
49
+ you. You must make sure that they, too, receive or can get the source
50
+ code. If you link other code with the library, you must provide
51
+ complete object files to the recipients, so that they can relink them
52
+ with the library after making changes to the library and recompiling
53
+ it. And you must show them these terms so they know their rights.
54
+
55
+ We protect your rights with a two-step method: (1) we copyright the
56
+ library, and (2) we offer you this license, which gives you legal
57
+ permission to copy, distribute and/or modify the library.
58
+
59
+ To protect each distributor, we want to make it very clear that
60
+ there is no warranty for the free library. Also, if the library is
61
+ modified by someone else and passed on, the recipients should know
62
+ that what they have is not the original version, so that the original
63
+ author's reputation will not be affected by problems that might be
64
+ introduced by others.
65
+
66
+ Finally, software patents pose a constant threat to the existence of
67
+ any free program. We wish to make sure that a company cannot
68
+ effectively restrict the users of a free program by obtaining a
69
+ restrictive license from a patent holder. Therefore, we insist that
70
+ any patent license obtained for a version of the library must be
71
+ consistent with the full freedom of use specified in this license.
72
+
73
+ Most GNU software, including some libraries, is covered by the
74
+ ordinary GNU General Public License. This license, the GNU Lesser
75
+ General Public License, applies to certain designated libraries, and
76
+ is quite different from the ordinary General Public License. We use
77
+ this license for certain libraries in order to permit linking those
78
+ libraries into non-free programs.
79
+
80
+ When a program is linked with a library, whether statically or using
81
+ a shared library, the combination of the two is legally speaking a
82
+ combined work, a derivative of the original library. The ordinary
83
+ General Public License therefore permits such linking only if the
84
+ entire combination fits its criteria of freedom. The Lesser General
85
+ Public License permits more lax criteria for linking other code with
86
+ the library.
87
+
88
+ We call this license the "Lesser" General Public License because it
89
+ does Less to protect the user's freedom than the ordinary General
90
+ Public License. It also provides other free software developers Less
91
+ of an advantage over competing non-free programs. These disadvantages
92
+ are the reason we use the ordinary General Public License for many
93
+ libraries. However, the Lesser license provides advantages in certain
94
+ special circumstances.
95
+
96
+ For example, on rare occasions, there may be a special need to
97
+ encourage the widest possible use of a certain library, so that it becomes
98
+ a de-facto standard. To achieve this, non-free programs must be
99
+ allowed to use the library. A more frequent case is that a free
100
+ library does the same job as widely used non-free libraries. In this
101
+ case, there is little to gain by limiting the free library to free
102
+ software only, so we use the Lesser General Public License.
103
+
104
+ In other cases, permission to use a particular library in non-free
105
+ programs enables a greater number of people to use a large body of
106
+ free software. For example, permission to use the GNU C Library in
107
+ non-free programs enables many more people to use the whole GNU
108
+ operating system, as well as its variant, the GNU/Linux operating
109
+ system.
110
+
111
+ Although the Lesser General Public License is Less protective of the
112
+ users' freedom, it does ensure that the user of a program that is
113
+ linked with the Library has the freedom and the wherewithal to run
114
+ that program using a modified version of the Library.
115
+
116
+ The precise terms and conditions for copying, distribution and
117
+ modification follow. Pay close attention to the difference between a
118
+ "work based on the library" and a "work that uses the library". The
119
+ former contains code derived from the library, whereas the latter must
120
+ be combined with the library in order to run.
121
+
122
+ GNU LESSER GENERAL PUBLIC LICENSE
123
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
124
+
125
+ 0. This License Agreement applies to any software library or other
126
+ program which contains a notice placed by the copyright holder or
127
+ other authorized party saying it may be distributed under the terms of
128
+ this Lesser General Public License (also called "this License").
129
+ Each licensee is addressed as "you".
130
+
131
+ A "library" means a collection of software functions and/or data
132
+ prepared so as to be conveniently linked with application programs
133
+ (which use some of those functions and data) to form executables.
134
+
135
+ The "Library", below, refers to any such software library or work
136
+ which has been distributed under these terms. A "work based on the
137
+ Library" means either the Library or any derivative work under
138
+ copyright law: that is to say, a work containing the Library or a
139
+ portion of it, either verbatim or with modifications and/or translated
140
+ straightforwardly into another language. (Hereinafter, translation is
141
+ included without limitation in the term "modification".)
142
+
143
+ "Source code" for a work means the preferred form of the work for
144
+ making modifications to it. For a library, complete source code means
145
+ all the source code for all modules it contains, plus any associated
146
+ interface definition files, plus the scripts used to control compilation
147
+ and installation of the library.
148
+
149
+ Activities other than copying, distribution and modification are not
150
+ covered by this License; they are outside its scope. The act of
151
+ running a program using the Library is not restricted, and output from
152
+ such a program is covered only if its contents constitute a work based
153
+ on the Library (independent of the use of the Library in a tool for
154
+ writing it). Whether that is true depends on what the Library does
155
+ and what the program that uses the Library does.
156
+
157
+ 1. You may copy and distribute verbatim copies of the Library's
158
+ complete source code as you receive it, in any medium, provided that
159
+ you conspicuously and appropriately publish on each copy an
160
+ appropriate copyright notice and disclaimer of warranty; keep intact
161
+ all the notices that refer to this License and to the absence of any
162
+ warranty; and distribute a copy of this License along with the
163
+ Library.
164
+
165
+ You may charge a fee for the physical act of transferring a copy,
166
+ and you may at your option offer warranty protection in exchange for a
167
+ fee.
168
+
169
+ 2. You may modify your copy or copies of the Library or any portion
170
+ of it, thus forming a work based on the Library, and copy and
171
+ distribute such modifications or work under the terms of Section 1
172
+ above, provided that you also meet all of these conditions:
173
+
174
+ a) The modified work must itself be a software library.
175
+
176
+ b) You must cause the files modified to carry prominent notices
177
+ stating that you changed the files and the date of any change.
178
+
179
+ c) You must cause the whole of the work to be licensed at no
180
+ charge to all third parties under the terms of this License.
181
+
182
+ d) If a facility in the modified Library refers to a function or a
183
+ table of data to be supplied by an application program that uses
184
+ the facility, other than as an argument passed when the facility
185
+ is invoked, then you must make a good faith effort to ensure that,
186
+ in the event an application does not supply such function or
187
+ table, the facility still operates, and performs whatever part of
188
+ its purpose remains meaningful.
189
+
190
+ (For example, a function in a library to compute square roots has
191
+ a purpose that is entirely well-defined independent of the
192
+ application. Therefore, Subsection 2d requires that any
193
+ application-supplied function or table used by this function must
194
+ be optional: if the application does not supply it, the square
195
+ root function must still compute square roots.)
196
+
197
+ These requirements apply to the modified work as a whole. If
198
+ identifiable sections of that work are not derived from the Library,
199
+ and can be reasonably considered independent and separate works in
200
+ themselves, then this License, and its terms, do not apply to those
201
+ sections when you distribute them as separate works. But when you
202
+ distribute the same sections as part of a whole which is a work based
203
+ on the Library, the distribution of the whole must be on the terms of
204
+ this License, whose permissions for other licensees extend to the
205
+ entire whole, and thus to each and every part regardless of who wrote
206
+ it.
207
+
208
+ Thus, it is not the intent of this section to claim rights or contest
209
+ your rights to work written entirely by you; rather, the intent is to
210
+ exercise the right to control the distribution of derivative or
211
+ collective works based on the Library.
212
+
213
+ In addition, mere aggregation of another work not based on the Library
214
+ with the Library (or with a work based on the Library) on a volume of
215
+ a storage or distribution medium does not bring the other work under
216
+ the scope of this License.
217
+
218
+ 3. You may opt to apply the terms of the ordinary GNU General Public
219
+ License instead of this License to a given copy of the Library. To do
220
+ this, you must alter all the notices that refer to this License, so
221
+ that they refer to the ordinary GNU General Public License, version 2,
222
+ instead of to this License. (If a newer version than version 2 of the
223
+ ordinary GNU General Public License has appeared, then you can specify
224
+ that version instead if you wish.) Do not make any other change in
225
+ these notices.
226
+
227
+ Once this change is made in a given copy, it is irreversible for
228
+ that copy, so the ordinary GNU General Public License applies to all
229
+ subsequent copies and derivative works made from that copy.
230
+
231
+ This option is useful when you wish to copy part of the code of
232
+ the Library into a program that is not a library.
233
+
234
+ 4. You may copy and distribute the Library (or a portion or
235
+ derivative of it, under Section 2) in object code or executable form
236
+ under the terms of Sections 1 and 2 above provided that you accompany
237
+ it with the complete corresponding machine-readable source code, which
238
+ must be distributed under the terms of Sections 1 and 2 above on a
239
+ medium customarily used for software interchange.
240
+
241
+ If distribution of object code is made by offering access to copy
242
+ from a designated place, then offering equivalent access to copy the
243
+ source code from the same place satisfies the requirement to
244
+ distribute the source code, even though third parties are not
245
+ compelled to copy the source along with the object code.
246
+
247
+ 5. A program that contains no derivative of any portion of the
248
+ Library, but is designed to work with the Library by being compiled or
249
+ linked with it, is called a "work that uses the Library". Such a
250
+ work, in isolation, is not a derivative work of the Library, and
251
+ therefore falls outside the scope of this License.
252
+
253
+ However, linking a "work that uses the Library" with the Library
254
+ creates an executable that is a derivative of the Library (because it
255
+ contains portions of the Library), rather than a "work that uses the
256
+ library". The executable is therefore covered by this License.
257
+ Section 6 states terms for distribution of such executables.
258
+
259
+ When a "work that uses the Library" uses material from a header file
260
+ that is part of the Library, the object code for the work may be a
261
+ derivative work of the Library even though the source code is not.
262
+ Whether this is true is especially significant if the work can be
263
+ linked without the Library, or if the work is itself a library. The
264
+ threshold for this to be true is not precisely defined by law.
265
+
266
+ If such an object file uses only numerical parameters, data
267
+ structure layouts and accessors, and small macros and small inline
268
+ functions (ten lines or less in length), then the use of the object
269
+ file is unrestricted, regardless of whether it is legally a derivative
270
+ work. (Executables containing this object code plus portions of the
271
+ Library will still fall under Section 6.)
272
+
273
+ Otherwise, if the work is a derivative of the Library, you may
274
+ distribute the object code for the work under the terms of Section 6.
275
+ Any executables containing that work also fall under Section 6,
276
+ whether or not they are linked directly with the Library itself.
277
+
278
+ 6. As an exception to the Sections above, you may also combine or
279
+ link a "work that uses the Library" with the Library to produce a
280
+ work containing portions of the Library, and distribute that work
281
+ under terms of your choice, provided that the terms permit
282
+ modification of the work for the customer's own use and reverse
283
+ engineering for debugging such modifications.
284
+
285
+ You must give prominent notice with each copy of the work that the
286
+ Library is used in it and that the Library and its use are covered by
287
+ this License. You must supply a copy of this License. If the work
288
+ during execution displays copyright notices, you must include the
289
+ copyright notice for the Library among them, as well as a reference
290
+ directing the user to the copy of this License. Also, you must do one
291
+ of these things:
292
+
293
+ a) Accompany the work with the complete corresponding
294
+ machine-readable source code for the Library including whatever
295
+ changes were used in the work (which must be distributed under
296
+ Sections 1 and 2 above); and, if the work is an executable linked
297
+ with the Library, with the complete machine-readable "work that
298
+ uses the Library", as object code and/or source code, so that the
299
+ user can modify the Library and then relink to produce a modified
300
+ executable containing the modified Library. (It is understood
301
+ that the user who changes the contents of definitions files in the
302
+ Library will not necessarily be able to recompile the application
303
+ to use the modified definitions.)
304
+
305
+ b) Use a suitable shared library mechanism for linking with the
306
+ Library. A suitable mechanism is one that (1) uses at run time a
307
+ copy of the library already present on the user's computer system,
308
+ rather than copying library functions into the executable, and (2)
309
+ will operate properly with a modified version of the library, if
310
+ the user installs one, as long as the modified version is
311
+ interface-compatible with the version that the work was made with.
312
+
313
+ c) Accompany the work with a written offer, valid for at
314
+ least three years, to give the same user the materials
315
+ specified in Subsection 6a, above, for a charge no more
316
+ than the cost of performing this distribution.
317
+
318
+ d) If distribution of the work is made by offering access to copy
319
+ from a designated place, offer equivalent access to copy the above
320
+ specified materials from the same place.
321
+
322
+ e) Verify that the user has already received a copy of these
323
+ materials or that you have already sent this user a copy.
324
+
325
+ For an executable, the required form of the "work that uses the
326
+ Library" must include any data and utility programs needed for
327
+ reproducing the executable from it. However, as a special exception,
328
+ the materials to be distributed need not include anything that is
329
+ normally distributed (in either source or binary form) with the major
330
+ components (compiler, kernel, and so on) of the operating system on
331
+ which the executable runs, unless that component itself accompanies
332
+ the executable.
333
+
334
+ It may happen that this requirement contradicts the license
335
+ restrictions of other proprietary libraries that do not normally
336
+ accompany the operating system. Such a contradiction means you cannot
337
+ use both them and the Library together in an executable that you
338
+ distribute.
339
+
340
+ 7. You may place library facilities that are a work based on the
341
+ Library side-by-side in a single library together with other library
342
+ facilities not covered by this License, and distribute such a combined
343
+ library, provided that the separate distribution of the work based on
344
+ the Library and of the other library facilities is otherwise
345
+ permitted, and provided that you do these two things:
346
+
347
+ a) Accompany the combined library with a copy of the same work
348
+ based on the Library, uncombined with any other library
349
+ facilities. This must be distributed under the terms of the
350
+ Sections above.
351
+
352
+ b) Give prominent notice with the combined library of the fact
353
+ that part of it is a work based on the Library, and explaining
354
+ where to find the accompanying uncombined form of the same work.
355
+
356
+ 8. You may not copy, modify, sublicense, link with, or distribute
357
+ the Library except as expressly provided under this License. Any
358
+ attempt otherwise to copy, modify, sublicense, link with, or
359
+ distribute the Library is void, and will automatically terminate your
360
+ rights under this License. However, parties who have received copies,
361
+ or rights, from you under this License will not have their licenses
362
+ terminated so long as such parties remain in full compliance.
363
+
364
+ 9. You are not required to accept this License, since you have not
365
+ signed it. However, nothing else grants you permission to modify or
366
+ distribute the Library or its derivative works. These actions are
367
+ prohibited by law if you do not accept this License. Therefore, by
368
+ modifying or distributing the Library (or any work based on the
369
+ Library), you indicate your acceptance of this License to do so, and
370
+ all its terms and conditions for copying, distributing or modifying
371
+ the Library or works based on it.
372
+
373
+ 10. Each time you redistribute the Library (or any work based on the
374
+ Library), the recipient automatically receives a license from the
375
+ original licensor to copy, distribute, link with or modify the Library
376
+ subject to these terms and conditions. You may not impose any further
377
+ restrictions on the recipients' exercise of the rights granted herein.
378
+ You are not responsible for enforcing compliance by third parties with
379
+ this License.
380
+
381
+ 11. If, as a consequence of a court judgment or allegation of patent
382
+ infringement or for any other reason (not limited to patent issues),
383
+ conditions are imposed on you (whether by court order, agreement or
384
+ otherwise) that contradict the conditions of this License, they do not
385
+ excuse you from the conditions of this License. If you cannot
386
+ distribute so as to satisfy simultaneously your obligations under this
387
+ License and any other pertinent obligations, then as a consequence you
388
+ may not distribute the Library at all. For example, if a patent
389
+ license would not permit royalty-free redistribution of the Library by
390
+ all those who receive copies directly or indirectly through you, then
391
+ the only way you could satisfy both it and this License would be to
392
+ refrain entirely from distribution of the Library.
393
+
394
+ If any portion of this section is held invalid or unenforceable under any
395
+ particular circumstance, the balance of the section is intended to apply,
396
+ and the section as a whole is intended to apply in other circumstances.
397
+
398
+ It is not the purpose of this section to induce you to infringe any
399
+ patents or other property right claims or to contest validity of any
400
+ such claims; this section has the sole purpose of protecting the
401
+ integrity of the free software distribution system which is
402
+ implemented by public license practices. Many people have made
403
+ generous contributions to the wide range of software distributed
404
+ through that system in reliance on consistent application of that
405
+ system; it is up to the author/donor to decide if he or she is willing
406
+ to distribute software through any other system and a licensee cannot
407
+ impose that choice.
408
+
409
+ This section is intended to make thoroughly clear what is believed to
410
+ be a consequence of the rest of this License.
411
+
412
+ 12. If the distribution and/or use of the Library is restricted in
413
+ certain countries either by patents or by copyrighted interfaces, the
414
+ original copyright holder who places the Library under this License may add
415
+ an explicit geographical distribution limitation excluding those countries,
416
+ so that distribution is permitted only in or among countries not thus
417
+ excluded. In such case, this License incorporates the limitation as if
418
+ written in the body of this License.
419
+
420
+ 13. The Free Software Foundation may publish revised and/or new
421
+ versions of the Lesser General Public License from time to time.
422
+ Such new versions will be similar in spirit to the present version,
423
+ but may differ in detail to address new problems or concerns.
424
+
425
+ Each version is given a distinguishing version number. If the Library
426
+ specifies a version number of this License which applies to it and
427
+ "any later version", you have the option of following the terms and
428
+ conditions either of that version or of any later version published by
429
+ the Free Software Foundation. If the Library does not specify a
430
+ license version number, you may choose any version ever published by
431
+ the Free Software Foundation.
432
+
433
+ 14. If you wish to incorporate parts of the Library into other free
434
+ programs whose distribution conditions are incompatible with these,
435
+ write to the author to ask for permission. For software which is
436
+ copyrighted by the Free Software Foundation, write to the Free
437
+ Software Foundation; we sometimes make exceptions for this. Our
438
+ decision will be guided by the two goals of preserving the free status
439
+ of all derivatives of our free software and of promoting the sharing
440
+ and reuse of software generally.
441
+
442
+ NO WARRANTY
443
+
444
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
445
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
446
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
447
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
448
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
449
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
450
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
451
+ LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
452
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
453
+
454
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
455
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
456
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
457
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
458
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
459
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
460
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
461
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
462
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
463
+ DAMAGES.
464
+
465
+ END OF TERMS AND CONDITIONS
466
+
467
+ How to Apply These Terms to Your New Libraries
468
+
469
+ If you develop a new library, and you want it to be of the greatest
470
+ possible use to the public, we recommend making it free software that
471
+ everyone can redistribute and change. You can do so by permitting
472
+ redistribution under these terms (or, alternatively, under the terms of the
473
+ ordinary General Public License).
474
+
475
+ To apply these terms, attach the following notices to the library. It is
476
+ safest to attach them to the start of each source file to most effectively
477
+ convey the exclusion of warranty; and each file should have at least the
478
+ "copyright" line and a pointer to where the full notice is found.
479
+
480
+ <one line to give the library's name and a brief idea of what it does.>
481
+ Copyright (C) <year> <name of author>
482
+
483
+ This library is free software; you can redistribute it and/or
484
+ modify it under the terms of the GNU Lesser General Public
485
+ License as published by the Free Software Foundation; either
486
+ version 2.1 of the License, or (at your option) any later version.
487
+
488
+ This library is distributed in the hope that it will be useful,
489
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
490
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
491
+ Lesser General Public License for more details.
492
+
493
+ You should have received a copy of the GNU Lesser General Public
494
+ License along with this library; if not, write to the Free Software
495
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
496
+
497
+ Also add information on how to contact you by electronic and paper mail.
498
+
499
+ You should also get your employer (if you work as a programmer) or your
500
+ school, if any, to sign a "copyright disclaimer" for the library, if
501
+ necessary. Here is a sample; alter the names:
502
+
503
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
504
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
505
+
506
+ <signature of Ty Coon>, 1 April 1990
507
+ Ty Coon, President of Vice
508
+
509
+ That's all there is to it!
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely-2.1.2.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ shapely
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (1.64 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_coverage.cpython-311.pyc ADDED
Binary file (6.7 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_enum.cpython-311.pyc ADDED
Binary file (1.6 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_geometry.cpython-311.pyc ADDED
Binary file (32.1 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_ragged_array.cpython-311.pyc ADDED
Binary file (19.9 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/_version.cpython-311.pyc ADDED
Binary file (654 Bytes). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/plotting.cpython-311.pyc ADDED
Binary file (8.78 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/predicates.cpython-311.pyc ADDED
Binary file (43.6 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/prepared.cpython-311.pyc ADDED
Binary file (4.25 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/set_operations.cpython-311.pyc ADDED
Binary file (26.5 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/speedups.cpython-311.pyc ADDED
Binary file (1.36 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/strtree.cpython-311.pyc ADDED
Binary file (22.4 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/testing.cpython-311.pyc ADDED
Binary file (8.28 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/validation.cpython-311.pyc ADDED
Binary file (1.93 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/wkb.cpython-311.pyc ADDED
Binary file (2.7 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/shapely/__pycache__/wkt.cpython-311.pyc ADDED
Binary file (2.56 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Robpol86
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/METADATA ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: terminaltables
3
+ Version: 3.1.10
4
+ Summary: Generate simple tables in terminals from a nested list of strings.
5
+ Home-page: https://github.com/matthewdeanmartin/terminaltables
6
+ License: MIT
7
+ Keywords: Shell,Bash,ANSI,ASCII,terminal,tables
8
+ Author: Robpol86
9
+ Author-email: robpol86@gmail.com
10
+ Requires-Python: >=2.6
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Console
13
+ Classifier: Environment :: MacOS X
14
+ Classifier: Environment :: Win32 (MS Windows)
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: MacOS :: MacOS X
18
+ Classifier: Operating System :: Microsoft :: Windows
19
+ Classifier: Operating System :: POSIX
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Programming Language :: Python :: 2
22
+ Classifier: Programming Language :: Python :: 2.6
23
+ Classifier: Programming Language :: Python :: 2.7
24
+ Classifier: Programming Language :: Python :: 3
25
+ Classifier: Programming Language :: Python :: 3.10
26
+ Classifier: Programming Language :: Python :: 3.3
27
+ Classifier: Programming Language :: Python :: 3.4
28
+ Classifier: Programming Language :: Python :: 3.5
29
+ Classifier: Programming Language :: Python :: 3.6
30
+ Classifier: Programming Language :: Python :: 3.7
31
+ Classifier: Programming Language :: Python :: 3.8
32
+ Classifier: Programming Language :: Python :: 3.9
33
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
34
+ Classifier: Topic :: Software Development :: Libraries
35
+ Classifier: Topic :: Terminals
36
+ Classifier: Topic :: Text Processing :: Markup
37
+ Project-URL: Bug Tracker, https://github.com/matthewdeanmartin/terminaltables/issues
38
+ Project-URL: Change Log, https://github.com/matthewdeanmartin/terminaltables/blob/master/CHANGELOG.md
39
+ Project-URL: Documentation, https://github.com/matthewdeanmartin/terminaltables
40
+ Project-URL: Repository, https://github.com/matthewdeanmartin/terminaltables
41
+ Description-Content-Type: text/markdown
42
+
43
+ ## terminaltables
44
+
45
+ # What is it
46
+
47
+ Easily draw tables in terminal/console applications from a list of lists of strings. Supports multi-line rows.
48
+
49
+ - Python 2.6, 2.7, PyPy, PyPy3, 3.3, 3.4, and 3.5+ supported on Linux and OS X.
50
+ - Python 2.7, 3.3, 3.4, and 3.5+ supported on Windows (both 32 and 64 bit versions of Python).
51
+
52
+ 📖 Full documentation: https://robpol86.github.io/terminaltables
53
+
54
+ Quickstart
55
+ ==========
56
+
57
+ Install:
58
+
59
+ ```bash
60
+ pip install terminaltables
61
+ ```
62
+
63
+ Usage:
64
+
65
+ ```python
66
+ from terminaltables import AsciiTable
67
+
68
+ table_data = [
69
+ ['Heading1', 'Heading2'],
70
+ ['row1 column1', 'row1 column2'],
71
+ ['row2 column1', 'row2 column2'],
72
+ ['row3 column1', 'row3 column2']
73
+ ]
74
+ table = AsciiTable(table_data)
75
+ print
76
+ table.table
77
+ ```
78
+
79
+ ```bash
80
+ +--------------+--------------+
81
+ | Heading1 | Heading2 |
82
+ +--------------+--------------+
83
+ | row1 column1 | row1 column2 |
84
+ | row2 column1 | row2 column2 |
85
+ | row3 column1 | row3 column2 |
86
+ +--------------+--------------+
87
+ ```
88
+
89
+ Example Implementations
90
+ =======================
91
+ ![Example Scripts Screenshot](https://github.com/matthewdeanmartin/terminaltables/blob/master/docs/examples.png?raw=true)
92
+
93
+ Source code for examples:
94
+
95
+ - [example1.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example1.py)
96
+ - [example2.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example2.py)
97
+ - [example3.py](https://github.com/matthewdeanmartin/terminaltables/blob/master/example3.py)
98
+
99
+ [Change Log](https://github.com/matthewdeanmartin/terminaltables/blob/master/CHANGELOG.md)
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/RECORD ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ terminaltables-3.1.10.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ terminaltables-3.1.10.dist-info/LICENSE,sha256=LhMg_TN9sGoxNtD0EBvWLxMknJXFtYEwTzVIHpedQyo,1065
3
+ terminaltables-3.1.10.dist-info/METADATA,sha256=BGcINTfvv7cpjjsSjwgWP8Shhu2ImBwGnAXS6WYAUEk,3509
4
+ terminaltables-3.1.10.dist-info/RECORD,,
5
+ terminaltables-3.1.10.dist-info/WHEEL,sha256=Fs47bPI6GdEUUVU2cC1ZH87S4TSequgq1XeoqimcqIE,87
6
+ terminaltables-3.1.10.dist-info/entry_points.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ terminaltables/__init__.py,sha256=fKc_1ny2v5lfHcQYtiFzojitbMW0N3teq3aoCbrZXj8,630
8
+ terminaltables/__pycache__/__init__.cpython-311.pyc,,
9
+ terminaltables/__pycache__/ascii_table.cpython-311.pyc,,
10
+ terminaltables/__pycache__/base_table.cpython-311.pyc,,
11
+ terminaltables/__pycache__/build.cpython-311.pyc,,
12
+ terminaltables/__pycache__/github_table.cpython-311.pyc,,
13
+ terminaltables/__pycache__/other_tables.cpython-311.pyc,,
14
+ terminaltables/__pycache__/terminal_io.cpython-311.pyc,,
15
+ terminaltables/__pycache__/width_and_alignment.cpython-311.pyc,,
16
+ terminaltables/ascii_table.py,sha256=39YHOMKRQrS3pIBt6VlunqgLmd_9VuoRnNHKHpIpsPk,2734
17
+ terminaltables/base_table.py,sha256=byS3S4_Q_dkC00F_PmBQOGH10Uk1sGNBfRG8aTvg07g,9738
18
+ terminaltables/build.py,sha256=bd8TQIwLCvaFiGUDhvMUWc-al1Wir6SZLa71UrWXAPw,5023
19
+ terminaltables/github_table.py,sha256=WaKnf9wQRNAKvueFQ3den7B89z1nZuSA-JTQbY1QlJg,2777
20
+ terminaltables/other_tables.py,sha256=0wFOru5TKt3rTy5zBH2HXR3Iz-m2amlJ2GgOSI_vmKk,8480
21
+ terminaltables/terminal_io.py,sha256=yLJ2yVtcgQ0s7eiQjc1Hd3Vmd6S13wzqYE5wcMpJfzs,3276
22
+ terminaltables/width_and_alignment.py,sha256=CtRlLJSYhyUiqdOL4rTyBpBEvnQs3oSV1jc-5qPwCAU,6176
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/WHEEL ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: poetry 1.0.7
3
+ Root-Is-Purelib: true
4
+ Tag: py2.py3-none-any
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables-3.1.10.dist-info/entry_points.txt ADDED
File without changes
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__init__.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Generate simple tables in terminals from a nested list of strings.
2
+
3
+ Use SingleTable or DoubleTable instead of AsciiTable for box-drawing characters.
4
+
5
+ https://github.com/Robpol86/terminaltables
6
+ https://pypi.python.org/pypi/terminaltables
7
+ """
8
+
9
+ from terminaltables.ascii_table import AsciiTable # noqa
10
+ from terminaltables.github_table import GithubFlavoredMarkdownTable # noqa
11
+ from terminaltables.other_tables import DoubleTable # noqa
12
+ from terminaltables.other_tables import SingleTable # noqa
13
+ from terminaltables.other_tables import PorcelainTable # noqa
14
+
15
+ __author__ = '@Robpol86'
16
+ __license__ = 'MIT'
17
+ __version__ = '3.1.0'
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (958 Bytes). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/ascii_table.cpython-311.pyc ADDED
Binary file (3.88 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/base_table.cpython-311.pyc ADDED
Binary file (10.1 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/build.cpython-311.pyc ADDED
Binary file (6.61 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/github_table.cpython-311.pyc ADDED
Binary file (4.05 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/other_tables.cpython-311.pyc ADDED
Binary file (10.4 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/terminal_io.cpython-311.pyc ADDED
Binary file (5.26 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/__pycache__/width_and_alignment.cpython-311.pyc ADDED
Binary file (8.51 kB). View file
 
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/ascii_table.py ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """AsciiTable is the main table class. To be inherited by other tables. Define convenience methods here."""
2
+
3
+ from terminaltables.base_table import BaseTable
4
+ from terminaltables.terminal_io import terminal_size
5
+ from terminaltables.width_and_alignment import column_max_width, max_dimensions, table_width
6
+
7
+
8
+ class AsciiTable(BaseTable):
9
+ """Draw a table using regular ASCII characters, such as ``+``, ``|``, and ``-``.
10
+
11
+ :ivar iter table_data: List (empty or list of lists of strings) representing the table.
12
+ :ivar str title: Optional title to show within the top border of the table.
13
+ :ivar bool inner_column_border: Separates columns.
14
+ :ivar bool inner_footing_row_border: Show a border before the last row.
15
+ :ivar bool inner_heading_row_border: Show a border after the first row.
16
+ :ivar bool inner_row_border: Show a border in between every row.
17
+ :ivar bool outer_border: Show the top, left, right, and bottom border.
18
+ :ivar dict justify_columns: Horizontal justification. Keys are column indexes (int). Values are right/left/center.
19
+ :ivar int padding_left: Number of spaces to pad on the left side of every cell.
20
+ :ivar int padding_right: Number of spaces to pad on the right side of every cell.
21
+ """
22
+
23
+ def column_max_width(self, column_number):
24
+ """Return the maximum width of a column based on the current terminal width.
25
+
26
+ :param int column_number: The column number to query.
27
+
28
+ :return: The max width of the column.
29
+ :rtype: int
30
+ """
31
+ inner_widths = max_dimensions(self.table_data)[0]
32
+ outer_border = 2 if self.outer_border else 0
33
+ inner_border = 1 if self.inner_column_border else 0
34
+ padding = self.padding_left + self.padding_right
35
+ return column_max_width(inner_widths, column_number, outer_border, inner_border, padding)
36
+
37
+ @property
38
+ def column_widths(self):
39
+ """Return a list of integers representing the widths of each table column without padding."""
40
+ if not self.table_data:
41
+ return list()
42
+ return max_dimensions(self.table_data)[0]
43
+
44
+ @property
45
+ def ok(self): # Too late to change API. # pylint: disable=invalid-name
46
+ """Return True if the table fits within the terminal width, False if the table breaks."""
47
+ return self.table_width <= terminal_size()[0]
48
+
49
+ @property
50
+ def table_width(self):
51
+ """Return the width of the table including padding and borders."""
52
+ outer_widths = max_dimensions(self.table_data, self.padding_left, self.padding_right)[2]
53
+ outer_border = 2 if self.outer_border else 0
54
+ inner_border = 1 if self.inner_column_border else 0
55
+ return table_width(outer_widths, outer_border, inner_border)
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/base_table.py ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Base table class. Define just the bare minimum to build tables."""
2
+
3
+ from terminaltables.build import build_border, build_row, flatten
4
+ from terminaltables.width_and_alignment import align_and_pad_cell, max_dimensions
5
+
6
+
7
+ class BaseTable(object):
8
+ """Base table class.
9
+
10
+ :ivar iter table_data: List (empty or list of lists of strings) representing the table.
11
+ :ivar str title: Optional title to show within the top border of the table.
12
+ :ivar bool inner_column_border: Separates columns.
13
+ :ivar bool inner_footing_row_border: Show a border before the last row.
14
+ :ivar bool inner_heading_row_border: Show a border after the first row.
15
+ :ivar bool inner_row_border: Show a border in between every row.
16
+ :ivar bool outer_border: Show the top, left, right, and bottom border.
17
+ :ivar dict justify_columns: Horizontal justification. Keys are column indexes (int). Values are right/left/center.
18
+ :ivar int padding_left: Number of spaces to pad on the left side of every cell.
19
+ :ivar int padding_right: Number of spaces to pad on the right side of every cell.
20
+ """
21
+
22
+ CHAR_F_INNER_HORIZONTAL = '-'
23
+ CHAR_F_INNER_INTERSECT = '+'
24
+ CHAR_F_INNER_VERTICAL = '|'
25
+ CHAR_F_OUTER_LEFT_INTERSECT = '+'
26
+ CHAR_F_OUTER_LEFT_VERTICAL = '|'
27
+ CHAR_F_OUTER_RIGHT_INTERSECT = '+'
28
+ CHAR_F_OUTER_RIGHT_VERTICAL = '|'
29
+ CHAR_H_INNER_HORIZONTAL = '-'
30
+ CHAR_H_INNER_INTERSECT = '+'
31
+ CHAR_H_INNER_VERTICAL = '|'
32
+ CHAR_H_OUTER_LEFT_INTERSECT = '+'
33
+ CHAR_H_OUTER_LEFT_VERTICAL = '|'
34
+ CHAR_H_OUTER_RIGHT_INTERSECT = '+'
35
+ CHAR_H_OUTER_RIGHT_VERTICAL = '|'
36
+ CHAR_INNER_HORIZONTAL = '-'
37
+ CHAR_INNER_INTERSECT = '+'
38
+ CHAR_INNER_VERTICAL = '|'
39
+ CHAR_OUTER_BOTTOM_HORIZONTAL = '-'
40
+ CHAR_OUTER_BOTTOM_INTERSECT = '+'
41
+ CHAR_OUTER_BOTTOM_LEFT = '+'
42
+ CHAR_OUTER_BOTTOM_RIGHT = '+'
43
+ CHAR_OUTER_LEFT_INTERSECT = '+'
44
+ CHAR_OUTER_LEFT_VERTICAL = '|'
45
+ CHAR_OUTER_RIGHT_INTERSECT = '+'
46
+ CHAR_OUTER_RIGHT_VERTICAL = '|'
47
+ CHAR_OUTER_TOP_HORIZONTAL = '-'
48
+ CHAR_OUTER_TOP_INTERSECT = '+'
49
+ CHAR_OUTER_TOP_LEFT = '+'
50
+ CHAR_OUTER_TOP_RIGHT = '+'
51
+
52
+ def __init__(self, table_data, title=None):
53
+ """Constructor.
54
+
55
+ :param iter table_data: List (empty or list of lists of strings) representing the table.
56
+ :param title: Optional title to show within the top border of the table.
57
+ """
58
+ self.table_data = table_data
59
+ self.title = title
60
+
61
+ self.inner_column_border = True
62
+ self.inner_footing_row_border = False
63
+ self.inner_heading_row_border = True
64
+ self.inner_row_border = False
65
+ self.outer_border = True
66
+
67
+ self.justify_columns = dict() # {0: 'right', 1: 'left', 2: 'center'}
68
+ self.padding_left = 1
69
+ self.padding_right = 1
70
+
71
+ def horizontal_border(self, style, outer_widths):
72
+ """Build any kind of horizontal border for the table.
73
+
74
+ :param str style: Type of border to return.
75
+ :param iter outer_widths: List of widths (with padding) for each column.
76
+
77
+ :return: Prepared border as a tuple of strings.
78
+ :rtype: tuple
79
+ """
80
+ if style == 'top':
81
+ horizontal = self.CHAR_OUTER_TOP_HORIZONTAL
82
+ left = self.CHAR_OUTER_TOP_LEFT
83
+ intersect = self.CHAR_OUTER_TOP_INTERSECT if self.inner_column_border else ''
84
+ right = self.CHAR_OUTER_TOP_RIGHT
85
+ title = self.title
86
+ elif style == 'bottom':
87
+ horizontal = self.CHAR_OUTER_BOTTOM_HORIZONTAL
88
+ left = self.CHAR_OUTER_BOTTOM_LEFT
89
+ intersect = self.CHAR_OUTER_BOTTOM_INTERSECT if self.inner_column_border else ''
90
+ right = self.CHAR_OUTER_BOTTOM_RIGHT
91
+ title = None
92
+ elif style == 'heading':
93
+ horizontal = self.CHAR_H_INNER_HORIZONTAL
94
+ left = self.CHAR_H_OUTER_LEFT_INTERSECT if self.outer_border else ''
95
+ intersect = self.CHAR_H_INNER_INTERSECT if self.inner_column_border else ''
96
+ right = self.CHAR_H_OUTER_RIGHT_INTERSECT if self.outer_border else ''
97
+ title = None
98
+ elif style == 'footing':
99
+ horizontal = self.CHAR_F_INNER_HORIZONTAL
100
+ left = self.CHAR_F_OUTER_LEFT_INTERSECT if self.outer_border else ''
101
+ intersect = self.CHAR_F_INNER_INTERSECT if self.inner_column_border else ''
102
+ right = self.CHAR_F_OUTER_RIGHT_INTERSECT if self.outer_border else ''
103
+ title = None
104
+ else:
105
+ horizontal = self.CHAR_INNER_HORIZONTAL
106
+ left = self.CHAR_OUTER_LEFT_INTERSECT if self.outer_border else ''
107
+ intersect = self.CHAR_INNER_INTERSECT if self.inner_column_border else ''
108
+ right = self.CHAR_OUTER_RIGHT_INTERSECT if self.outer_border else ''
109
+ title = None
110
+ return build_border(outer_widths, horizontal, left, intersect, right, title)
111
+
112
+ def gen_row_lines(self, row, style, inner_widths, height):
113
+ r"""Combine cells in row and group them into lines with vertical borders.
114
+
115
+ Caller is expected to pass yielded lines to ''.join() to combine them into a printable line. Caller must append
116
+ newline character to the end of joined line.
117
+
118
+ In:
119
+ ['Row One Column One', 'Two', 'Three']
120
+ Out:
121
+ [
122
+ ('|', ' Row One Column One ', '|', ' Two ', '|', ' Three ', '|'),
123
+ ]
124
+
125
+ In:
126
+ ['Row One\nColumn One', 'Two', 'Three'],
127
+ Out:
128
+ [
129
+ ('|', ' Row One ', '|', ' Two ', '|', ' Three ', '|'),
130
+ ('|', ' Column One ', '|', ' ', '|', ' ', '|'),
131
+ ]
132
+
133
+ :param iter row: One row in the table. List of cells.
134
+ :param str style: Type of border characters to use.
135
+ :param iter inner_widths: List of widths (no padding) for each column.
136
+ :param int height: Inner height (no padding) (number of lines) to expand row to.
137
+
138
+ :return: Yields lines split into components in a list. Caller must ''.join() line.
139
+ """
140
+ cells_in_row = list()
141
+
142
+ # Resize row if it doesn't have enough cells.
143
+ if len(row) != len(inner_widths):
144
+ row = row + [''] * (len(inner_widths) - len(row))
145
+
146
+ # Pad and align each cell. Split each cell into lines to support multi-line cells.
147
+ for i, cell in enumerate(row):
148
+ align = (self.justify_columns.get(i),)
149
+ inner_dimensions = (inner_widths[i], height)
150
+ padding = (self.padding_left, self.padding_right, 0, 0)
151
+ cells_in_row.append(align_and_pad_cell(cell, align, inner_dimensions, padding))
152
+
153
+ # Determine border characters.
154
+ if style == 'heading':
155
+ left = self.CHAR_H_OUTER_LEFT_VERTICAL if self.outer_border else ''
156
+ center = self.CHAR_H_INNER_VERTICAL if self.inner_column_border else ''
157
+ right = self.CHAR_H_OUTER_RIGHT_VERTICAL if self.outer_border else ''
158
+ elif style == 'footing':
159
+ left = self.CHAR_F_OUTER_LEFT_VERTICAL if self.outer_border else ''
160
+ center = self.CHAR_F_INNER_VERTICAL if self.inner_column_border else ''
161
+ right = self.CHAR_F_OUTER_RIGHT_VERTICAL if self.outer_border else ''
162
+ else:
163
+ left = self.CHAR_OUTER_LEFT_VERTICAL if self.outer_border else ''
164
+ center = self.CHAR_INNER_VERTICAL if self.inner_column_border else ''
165
+ right = self.CHAR_OUTER_RIGHT_VERTICAL if self.outer_border else ''
166
+
167
+ # Yield each line.
168
+ for line in build_row(cells_in_row, left, center, right):
169
+ yield line
170
+
171
+ def gen_table(self, inner_widths, inner_heights, outer_widths):
172
+ """Combine everything and yield every line of the entire table with borders.
173
+
174
+ :param iter inner_widths: List of widths (no padding) for each column.
175
+ :param iter inner_heights: List of heights (no padding) for each row.
176
+ :param iter outer_widths: List of widths (with padding) for each column.
177
+ :return:
178
+ """
179
+ # Yield top border.
180
+ if self.outer_border:
181
+ yield self.horizontal_border('top', outer_widths)
182
+
183
+ # Yield table body.
184
+ row_count = len(self.table_data)
185
+ last_row_index, before_last_row_index = row_count - 1, row_count - 2
186
+ for i, row in enumerate(self.table_data):
187
+ # Yield the row line by line (e.g. multi-line rows).
188
+ if self.inner_heading_row_border and i == 0:
189
+ style = 'heading'
190
+ elif self.inner_footing_row_border and i == last_row_index:
191
+ style = 'footing'
192
+ else:
193
+ style = 'row'
194
+ for line in self.gen_row_lines(row, style, inner_widths, inner_heights[i]):
195
+ yield line
196
+ # If this is the last row then break. No separator needed.
197
+ if i == last_row_index:
198
+ break
199
+ # Yield heading separator.
200
+ if self.inner_heading_row_border and i == 0:
201
+ yield self.horizontal_border('heading', outer_widths)
202
+ # Yield footing separator.
203
+ elif self.inner_footing_row_border and i == before_last_row_index:
204
+ yield self.horizontal_border('footing', outer_widths)
205
+ # Yield row separator.
206
+ elif self.inner_row_border:
207
+ yield self.horizontal_border('row', outer_widths)
208
+
209
+ # Yield bottom border.
210
+ if self.outer_border:
211
+ yield self.horizontal_border('bottom', outer_widths)
212
+
213
+ @property
214
+ def table(self):
215
+ """Return a large string of the entire table ready to be printed to the terminal."""
216
+ dimensions = max_dimensions(self.table_data, self.padding_left, self.padding_right)[:3]
217
+ return flatten(self.gen_table(*dimensions))
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/build.py ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Combine cells into rows."""
2
+
3
+ from terminaltables.width_and_alignment import visible_width
4
+
5
+
6
+ def combine(line, left, intersect, right):
7
+ """Zip borders between items in `line`.
8
+
9
+ e.g. ('l', '1', 'c', '2', 'c', '3', 'r')
10
+
11
+ :param iter line: List to iterate.
12
+ :param left: Left border.
13
+ :param intersect: Column separator.
14
+ :param right: Right border.
15
+
16
+ :return: Yields combined objects.
17
+ """
18
+ # Yield left border.
19
+ if left:
20
+ yield left
21
+
22
+ # Yield items with intersect characters.
23
+ if intersect:
24
+ try:
25
+ for j, i in enumerate(line, start=-len(line) + 1):
26
+ yield i
27
+ if j:
28
+ yield intersect
29
+ except TypeError: # Generator.
30
+ try:
31
+ item = next(line)
32
+ except StopIteration: # Was empty all along.
33
+ pass
34
+ else:
35
+ while True:
36
+ yield item
37
+ try:
38
+ peek = next(line)
39
+ except StopIteration:
40
+ break
41
+ yield intersect
42
+ item = peek
43
+ else:
44
+ for i in line:
45
+ yield i
46
+
47
+ # Yield right border.
48
+ if right:
49
+ yield right
50
+
51
+
52
+ def build_border(outer_widths, horizontal, left, intersect, right, title=None):
53
+ """Build the top/bottom/middle row. Optionally embed the table title within the border.
54
+
55
+ Title is hidden if it doesn't fit between the left/right characters/edges.
56
+
57
+ Example return value:
58
+ ('<', '-----', '+', '------', '+', '-------', '>')
59
+ ('<', 'My Table', '----', '+', '------->')
60
+
61
+ :param iter outer_widths: List of widths (with padding) for each column.
62
+ :param str horizontal: Character to stretch across each column.
63
+ :param str left: Left border.
64
+ :param str intersect: Column separator.
65
+ :param str right: Right border.
66
+ :param title: Overlay the title on the border between the left and right characters.
67
+
68
+ :return: Returns a generator of strings representing a border.
69
+ :rtype: iter
70
+ """
71
+ length = 0
72
+
73
+ # Hide title if it doesn't fit.
74
+ if title is not None and outer_widths:
75
+ try:
76
+ length = visible_width(title)
77
+ except TypeError:
78
+ title = str(title)
79
+ length = visible_width(title)
80
+ if length > sum(outer_widths) + len(intersect) * (len(outer_widths) - 1):
81
+ title = None
82
+
83
+ # Handle no title.
84
+ if title is None or not outer_widths or not horizontal:
85
+ return combine((horizontal * c for c in outer_widths), left, intersect, right)
86
+
87
+ # Handle title fitting in the first column.
88
+ if length == outer_widths[0]:
89
+ return combine([title] + [horizontal * c for c in outer_widths[1:]], left, intersect, right)
90
+ if length < outer_widths[0]:
91
+ columns = [title + horizontal * (outer_widths[0] - length)] + [horizontal * c for c in outer_widths[1:]]
92
+ return combine(columns, left, intersect, right)
93
+
94
+ # Handle wide titles/narrow columns.
95
+ columns_and_intersects = [title]
96
+ for width in combine(outer_widths, None, bool(intersect), None):
97
+ # If title is taken care of.
98
+ if length < 1:
99
+ columns_and_intersects.append(intersect if width is True else horizontal * width)
100
+ # If title's last character overrides an intersect character.
101
+ elif width is True and length == 1:
102
+ length = 0
103
+ # If this is an intersect character that is overridden by the title.
104
+ elif width is True:
105
+ length -= 1
106
+ # If title's last character is within a column.
107
+ elif width >= length:
108
+ columns_and_intersects[0] += horizontal * (width - length) # Append horizontal chars to title.
109
+ length = 0
110
+ # If remainder of title won't fit in a column.
111
+ else:
112
+ length -= width
113
+
114
+ return combine(columns_and_intersects, left, None, right)
115
+
116
+
117
+ def build_row(row, left, center, right):
118
+ """Combine single or multi-lined cells into a single row of list of lists including borders.
119
+
120
+ Row must already be padded and extended so each cell has the same number of lines.
121
+
122
+ Example return value:
123
+ [
124
+ ['>', 'Left ', '|', 'Center', '|', 'Right', '<'],
125
+ ['>', 'Cell1', '|', 'Cell2 ', '|', 'Cell3', '<'],
126
+ ]
127
+
128
+ :param iter row: List of cells for one row.
129
+ :param str left: Left border.
130
+ :param str center: Column separator.
131
+ :param str right: Right border.
132
+
133
+ :return: Yields other generators that yield strings.
134
+ :rtype: iter
135
+ """
136
+ if not row or not row[0]:
137
+ yield combine((), left, center, right)
138
+ return
139
+ for row_index in range(len(row[0])):
140
+ yield combine((c[row_index] for c in row), left, center, right)
141
+
142
+
143
+ def flatten(table):
144
+ """Flatten table data into a single string with newlines.
145
+
146
+ :param iter table: Padded and bordered table data.
147
+
148
+ :return: Joined rows/cells.
149
+ :rtype: str
150
+ """
151
+ return '\n'.join(''.join(r) for r in table)
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/github_table.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """GithubFlavoredMarkdownTable class."""
2
+
3
+ from terminaltables.ascii_table import AsciiTable
4
+ from terminaltables.build import combine
5
+
6
+
7
+ class GithubFlavoredMarkdownTable(AsciiTable):
8
+ """Github flavored markdown table.
9
+
10
+ https://help.github.com/articles/github-flavored-markdown/#tables
11
+
12
+ :ivar iter table_data: List (empty or list of lists of strings) representing the table.
13
+ :ivar dict justify_columns: Horizontal justification. Keys are column indexes (int). Values are right/left/center.
14
+ """
15
+
16
+ def __init__(self, table_data):
17
+ """Constructor.
18
+
19
+ :param iter table_data: List (empty or list of lists of strings) representing the table.
20
+ """
21
+ # Github flavored markdown table won't support title.
22
+ super(GithubFlavoredMarkdownTable, self).__init__(table_data)
23
+
24
+ def horizontal_border(self, _, outer_widths):
25
+ """Handle the GitHub heading border.
26
+
27
+ E.g.:
28
+ |:---|:---:|---:|----|
29
+
30
+ :param _: Unused.
31
+ :param iter outer_widths: List of widths (with padding) for each column.
32
+
33
+ :return: Prepared border strings in a generator.
34
+ :rtype: iter
35
+ """
36
+ horizontal = str(self.CHAR_INNER_HORIZONTAL)
37
+ left = self.CHAR_OUTER_LEFT_VERTICAL
38
+ intersect = self.CHAR_INNER_VERTICAL
39
+ right = self.CHAR_OUTER_RIGHT_VERTICAL
40
+
41
+ columns = list()
42
+ for i, width in enumerate(outer_widths):
43
+ justify = self.justify_columns.get(i)
44
+ width = max(3, width) # Width should be at least 3 so justification can be applied.
45
+ if justify == 'left':
46
+ columns.append(':' + horizontal * (width - 1))
47
+ elif justify == 'right':
48
+ columns.append(horizontal * (width - 1) + ':')
49
+ elif justify == 'center':
50
+ columns.append(':' + horizontal * (width - 2) + ':')
51
+ else:
52
+ columns.append(horizontal * width)
53
+
54
+ return combine(columns, left, intersect, right)
55
+
56
+ def gen_table(self, inner_widths, inner_heights, outer_widths):
57
+ """Combine everything and yield every line of the entire table with borders.
58
+
59
+ :param iter inner_widths: List of widths (no padding) for each column.
60
+ :param iter inner_heights: List of heights (no padding) for each row.
61
+ :param iter outer_widths: List of widths (with padding) for each column.
62
+ :return:
63
+ """
64
+ for i, row in enumerate(self.table_data):
65
+ # Yield the row line by line (e.g. multi-line rows).
66
+ for line in self.gen_row_lines(row, 'row', inner_widths, inner_heights[i]):
67
+ yield line
68
+ # Yield heading separator.
69
+ if i == 0:
70
+ yield self.horizontal_border(None, outer_widths)
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/other_tables.py ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Additional simple tables defined here."""
2
+
3
+ from terminaltables.ascii_table import AsciiTable
4
+ from terminaltables.terminal_io import IS_WINDOWS
5
+
6
+
7
+ class UnixTable(AsciiTable):
8
+ """Draw a table using box-drawing characters on Unix platforms. Table borders won't have any gaps between lines.
9
+
10
+ Similar to the tables shown on PC BIOS boot messages, but not double-lined.
11
+ """
12
+
13
+ CHAR_F_INNER_HORIZONTAL = '\033(0\x71\033(B'
14
+ CHAR_F_INNER_INTERSECT = '\033(0\x6e\033(B'
15
+ CHAR_F_INNER_VERTICAL = '\033(0\x78\033(B'
16
+ CHAR_F_OUTER_LEFT_INTERSECT = '\033(0\x74\033(B'
17
+ CHAR_F_OUTER_LEFT_VERTICAL = '\033(0\x78\033(B'
18
+ CHAR_F_OUTER_RIGHT_INTERSECT = '\033(0\x75\033(B'
19
+ CHAR_F_OUTER_RIGHT_VERTICAL = '\033(0\x78\033(B'
20
+ CHAR_H_INNER_HORIZONTAL = '\033(0\x71\033(B'
21
+ CHAR_H_INNER_INTERSECT = '\033(0\x6e\033(B'
22
+ CHAR_H_INNER_VERTICAL = '\033(0\x78\033(B'
23
+ CHAR_H_OUTER_LEFT_INTERSECT = '\033(0\x74\033(B'
24
+ CHAR_H_OUTER_LEFT_VERTICAL = '\033(0\x78\033(B'
25
+ CHAR_H_OUTER_RIGHT_INTERSECT = '\033(0\x75\033(B'
26
+ CHAR_H_OUTER_RIGHT_VERTICAL = '\033(0\x78\033(B'
27
+ CHAR_INNER_HORIZONTAL = '\033(0\x71\033(B'
28
+ CHAR_INNER_INTERSECT = '\033(0\x6e\033(B'
29
+ CHAR_INNER_VERTICAL = '\033(0\x78\033(B'
30
+ CHAR_OUTER_BOTTOM_HORIZONTAL = '\033(0\x71\033(B'
31
+ CHAR_OUTER_BOTTOM_INTERSECT = '\033(0\x76\033(B'
32
+ CHAR_OUTER_BOTTOM_LEFT = '\033(0\x6d\033(B'
33
+ CHAR_OUTER_BOTTOM_RIGHT = '\033(0\x6a\033(B'
34
+ CHAR_OUTER_LEFT_INTERSECT = '\033(0\x74\033(B'
35
+ CHAR_OUTER_LEFT_VERTICAL = '\033(0\x78\033(B'
36
+ CHAR_OUTER_RIGHT_INTERSECT = '\033(0\x75\033(B'
37
+ CHAR_OUTER_RIGHT_VERTICAL = '\033(0\x78\033(B'
38
+ CHAR_OUTER_TOP_HORIZONTAL = '\033(0\x71\033(B'
39
+ CHAR_OUTER_TOP_INTERSECT = '\033(0\x77\033(B'
40
+ CHAR_OUTER_TOP_LEFT = '\033(0\x6c\033(B'
41
+ CHAR_OUTER_TOP_RIGHT = '\033(0\x6b\033(B'
42
+
43
+ @property
44
+ def table(self):
45
+ """Return a large string of the entire table ready to be printed to the terminal."""
46
+ ascii_table = super(UnixTable, self).table
47
+ optimized = ascii_table.replace('\033(B\033(0', '')
48
+ return optimized
49
+
50
+
51
+ class WindowsTable(AsciiTable):
52
+ """Draw a table using box-drawing characters on Windows platforms. This uses Code Page 437. Single-line borders.
53
+
54
+ From: http://en.wikipedia.org/wiki/Code_page_437#Characters
55
+ """
56
+
57
+ CHAR_F_INNER_HORIZONTAL = b'\xc4'.decode('ibm437')
58
+ CHAR_F_INNER_INTERSECT = b'\xc5'.decode('ibm437')
59
+ CHAR_F_INNER_VERTICAL = b'\xb3'.decode('ibm437')
60
+ CHAR_F_OUTER_LEFT_INTERSECT = b'\xc3'.decode('ibm437')
61
+ CHAR_F_OUTER_LEFT_VERTICAL = b'\xb3'.decode('ibm437')
62
+ CHAR_F_OUTER_RIGHT_INTERSECT = b'\xb4'.decode('ibm437')
63
+ CHAR_F_OUTER_RIGHT_VERTICAL = b'\xb3'.decode('ibm437')
64
+ CHAR_H_INNER_HORIZONTAL = b'\xc4'.decode('ibm437')
65
+ CHAR_H_INNER_INTERSECT = b'\xc5'.decode('ibm437')
66
+ CHAR_H_INNER_VERTICAL = b'\xb3'.decode('ibm437')
67
+ CHAR_H_OUTER_LEFT_INTERSECT = b'\xc3'.decode('ibm437')
68
+ CHAR_H_OUTER_LEFT_VERTICAL = b'\xb3'.decode('ibm437')
69
+ CHAR_H_OUTER_RIGHT_INTERSECT = b'\xb4'.decode('ibm437')
70
+ CHAR_H_OUTER_RIGHT_VERTICAL = b'\xb3'.decode('ibm437')
71
+ CHAR_INNER_HORIZONTAL = b'\xc4'.decode('ibm437')
72
+ CHAR_INNER_INTERSECT = b'\xc5'.decode('ibm437')
73
+ CHAR_INNER_VERTICAL = b'\xb3'.decode('ibm437')
74
+ CHAR_OUTER_BOTTOM_HORIZONTAL = b'\xc4'.decode('ibm437')
75
+ CHAR_OUTER_BOTTOM_INTERSECT = b'\xc1'.decode('ibm437')
76
+ CHAR_OUTER_BOTTOM_LEFT = b'\xc0'.decode('ibm437')
77
+ CHAR_OUTER_BOTTOM_RIGHT = b'\xd9'.decode('ibm437')
78
+ CHAR_OUTER_LEFT_INTERSECT = b'\xc3'.decode('ibm437')
79
+ CHAR_OUTER_LEFT_VERTICAL = b'\xb3'.decode('ibm437')
80
+ CHAR_OUTER_RIGHT_INTERSECT = b'\xb4'.decode('ibm437')
81
+ CHAR_OUTER_RIGHT_VERTICAL = b'\xb3'.decode('ibm437')
82
+ CHAR_OUTER_TOP_HORIZONTAL = b'\xc4'.decode('ibm437')
83
+ CHAR_OUTER_TOP_INTERSECT = b'\xc2'.decode('ibm437')
84
+ CHAR_OUTER_TOP_LEFT = b'\xda'.decode('ibm437')
85
+ CHAR_OUTER_TOP_RIGHT = b'\xbf'.decode('ibm437')
86
+
87
+
88
+ class WindowsTableDouble(AsciiTable):
89
+ """Draw a table using box-drawing characters on Windows platforms. This uses Code Page 437. Double-line borders."""
90
+
91
+ CHAR_F_INNER_HORIZONTAL = b'\xcd'.decode('ibm437')
92
+ CHAR_F_INNER_INTERSECT = b'\xce'.decode('ibm437')
93
+ CHAR_F_INNER_VERTICAL = b'\xba'.decode('ibm437')
94
+ CHAR_F_OUTER_LEFT_INTERSECT = b'\xcc'.decode('ibm437')
95
+ CHAR_F_OUTER_LEFT_VERTICAL = b'\xba'.decode('ibm437')
96
+ CHAR_F_OUTER_RIGHT_INTERSECT = b'\xb9'.decode('ibm437')
97
+ CHAR_F_OUTER_RIGHT_VERTICAL = b'\xba'.decode('ibm437')
98
+ CHAR_H_INNER_HORIZONTAL = b'\xcd'.decode('ibm437')
99
+ CHAR_H_INNER_INTERSECT = b'\xce'.decode('ibm437')
100
+ CHAR_H_INNER_VERTICAL = b'\xba'.decode('ibm437')
101
+ CHAR_H_OUTER_LEFT_INTERSECT = b'\xcc'.decode('ibm437')
102
+ CHAR_H_OUTER_LEFT_VERTICAL = b'\xba'.decode('ibm437')
103
+ CHAR_H_OUTER_RIGHT_INTERSECT = b'\xb9'.decode('ibm437')
104
+ CHAR_H_OUTER_RIGHT_VERTICAL = b'\xba'.decode('ibm437')
105
+ CHAR_INNER_HORIZONTAL = b'\xcd'.decode('ibm437')
106
+ CHAR_INNER_INTERSECT = b'\xce'.decode('ibm437')
107
+ CHAR_INNER_VERTICAL = b'\xba'.decode('ibm437')
108
+ CHAR_OUTER_BOTTOM_HORIZONTAL = b'\xcd'.decode('ibm437')
109
+ CHAR_OUTER_BOTTOM_INTERSECT = b'\xca'.decode('ibm437')
110
+ CHAR_OUTER_BOTTOM_LEFT = b'\xc8'.decode('ibm437')
111
+ CHAR_OUTER_BOTTOM_RIGHT = b'\xbc'.decode('ibm437')
112
+ CHAR_OUTER_LEFT_INTERSECT = b'\xcc'.decode('ibm437')
113
+ CHAR_OUTER_LEFT_VERTICAL = b'\xba'.decode('ibm437')
114
+ CHAR_OUTER_RIGHT_INTERSECT = b'\xb9'.decode('ibm437')
115
+ CHAR_OUTER_RIGHT_VERTICAL = b'\xba'.decode('ibm437')
116
+ CHAR_OUTER_TOP_HORIZONTAL = b'\xcd'.decode('ibm437')
117
+ CHAR_OUTER_TOP_INTERSECT = b'\xcb'.decode('ibm437')
118
+ CHAR_OUTER_TOP_LEFT = b'\xc9'.decode('ibm437')
119
+ CHAR_OUTER_TOP_RIGHT = b'\xbb'.decode('ibm437')
120
+
121
+
122
+ class SingleTable(WindowsTable if IS_WINDOWS else UnixTable):
123
+ """Cross-platform table with single-line box-drawing characters.
124
+
125
+ :ivar iter table_data: List (empty or list of lists of strings) representing the table.
126
+ :ivar str title: Optional title to show within the top border of the table.
127
+ :ivar bool inner_column_border: Separates columns.
128
+ :ivar bool inner_footing_row_border: Show a border before the last row.
129
+ :ivar bool inner_heading_row_border: Show a border after the first row.
130
+ :ivar bool inner_row_border: Show a border in between every row.
131
+ :ivar bool outer_border: Show the top, left, right, and bottom border.
132
+ :ivar dict justify_columns: Horizontal justification. Keys are column indexes (int). Values are right/left/center.
133
+ :ivar int padding_left: Number of spaces to pad on the left side of every cell.
134
+ :ivar int padding_right: Number of spaces to pad on the right side of every cell.
135
+ """
136
+
137
+ pass
138
+
139
+
140
+ class DoubleTable(WindowsTableDouble):
141
+ """Cross-platform table with box-drawing characters. On Windows it's double borders, on Linux/OSX it's unicode.
142
+
143
+ :ivar iter table_data: List (empty or list of lists of strings) representing the table.
144
+ :ivar str title: Optional title to show within the top border of the table.
145
+ :ivar bool inner_column_border: Separates columns.
146
+ :ivar bool inner_footing_row_border: Show a border before the last row.
147
+ :ivar bool inner_heading_row_border: Show a border after the first row.
148
+ :ivar bool inner_row_border: Show a border in between every row.
149
+ :ivar bool outer_border: Show the top, left, right, and bottom border.
150
+ :ivar dict justify_columns: Horizontal justification. Keys are column indexes (int). Values are right/left/center.
151
+ :ivar int padding_left: Number of spaces to pad on the left side of every cell.
152
+ :ivar int padding_right: Number of spaces to pad on the right side of every cell.
153
+ """
154
+
155
+ pass
156
+
157
+
158
+ class PorcelainTable(AsciiTable):
159
+ """An AsciiTable stripped to a minimum.
160
+
161
+ Meant to be machine passable and roughly follow format set by git --porcelain option (hence the name).
162
+
163
+ :ivar iter table_data: List (empty or list of lists of strings) representing the table.
164
+ """
165
+
166
+ def __init__(self, table_data):
167
+ """Constructor.
168
+
169
+ :param iter table_data: List (empty or list of lists of strings) representing the table.
170
+ """
171
+ # Porcelain table won't support title since it has no outer birders.
172
+ super(PorcelainTable, self).__init__(table_data)
173
+
174
+ # Removes outer border, and inner footing and header row borders.
175
+ self.inner_footing_row_border = False
176
+ self.inner_heading_row_border = False
177
+ self.outer_border = False
grounding-dino/.eval_venv/lib64/python3.11/site-packages/terminaltables/terminal_io.py ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Get info about the current terminal window/screen buffer."""
2
+
3
+ import ctypes
4
+ import struct
5
+ import sys
6
+
7
+ DEFAULT_HEIGHT = 24
8
+ DEFAULT_WIDTH = 79
9
+ INVALID_HANDLE_VALUE = -1
10
+ IS_WINDOWS = sys.platform == 'win32'
11
+ STD_ERROR_HANDLE = -12
12
+ STD_OUTPUT_HANDLE = -11
13
+
14
+
15
+ def get_console_info(kernel32, handle):
16
+ """Get information about this current console window (Windows only).
17
+
18
+ https://github.com/Robpol86/colorclass/blob/ab42da59/colorclass/windows.py#L111
19
+
20
+ :raise OSError: When handle is invalid or GetConsoleScreenBufferInfo API call fails.
21
+
22
+ :param ctypes.windll.kernel32 kernel32: Loaded kernel32 instance.
23
+ :param int handle: stderr or stdout handle.
24
+
25
+ :return: Width (number of characters) and height (number of lines) of the terminal.
26
+ :rtype: tuple
27
+ """
28
+ if handle == INVALID_HANDLE_VALUE:
29
+ raise OSError('Invalid handle.')
30
+
31
+ # Query Win32 API.
32
+ lpcsbi = ctypes.create_string_buffer(22) # Populated by GetConsoleScreenBufferInfo.
33
+ if not kernel32.GetConsoleScreenBufferInfo(handle, lpcsbi):
34
+ raise ctypes.WinError() # Subclass of OSError.
35
+
36
+ # Parse data.
37
+ left, top, right, bottom = struct.unpack('hhhhHhhhhhh', lpcsbi.raw)[5:-2]
38
+ width, height = right - left, bottom - top
39
+ return width, height
40
+
41
+
42
+ def terminal_size(kernel32=None):
43
+ """Get the width and height of the terminal.
44
+
45
+ http://code.activestate.com/recipes/440694-determine-size-of-console-window-on-windows/
46
+ http://stackoverflow.com/questions/17993814/why-the-irrelevant-code-made-a-difference
47
+
48
+ :param kernel32: Optional mock kernel32 object. For testing.
49
+
50
+ :return: Width (number of characters) and height (number of lines) of the terminal.
51
+ :rtype: tuple
52
+ """
53
+ if IS_WINDOWS:
54
+ kernel32 = kernel32 or ctypes.windll.kernel32
55
+ try:
56
+ return get_console_info(kernel32, kernel32.GetStdHandle(STD_ERROR_HANDLE))
57
+ except OSError:
58
+ try:
59
+ return get_console_info(kernel32, kernel32.GetStdHandle(STD_OUTPUT_HANDLE))
60
+ except OSError:
61
+ return DEFAULT_WIDTH, DEFAULT_HEIGHT
62
+
63
+ try:
64
+ device = __import__('fcntl').ioctl(0, __import__('termios').TIOCGWINSZ, '\0\0\0\0\0\0\0\0')
65
+ except IOError:
66
+ return DEFAULT_WIDTH, DEFAULT_HEIGHT
67
+ height, width = struct.unpack('hhhh', device)[:2]
68
+ return width, height
69
+
70
+
71
+ def set_terminal_title(title, kernel32=None):
72
+ """Set the terminal title.
73
+
74
+ :param title: The title to set (string, unicode, bytes accepted).
75
+ :param kernel32: Optional mock kernel32 object. For testing.
76
+
77
+ :return: If title changed successfully (Windows only, always True on Linux/OSX).
78
+ :rtype: bool
79
+ """
80
+ try:
81
+ title_bytes = title.encode('utf-8')
82
+ except AttributeError:
83
+ title_bytes = title
84
+
85
+ if IS_WINDOWS:
86
+ kernel32 = kernel32 or ctypes.windll.kernel32
87
+ try:
88
+ is_ascii = all(ord(c) < 128 for c in title) # str/unicode.
89
+ except TypeError:
90
+ is_ascii = all(c < 128 for c in title) # bytes.
91
+ if is_ascii:
92
+ return kernel32.SetConsoleTitleA(title_bytes) != 0
93
+ else:
94
+ return kernel32.SetConsoleTitleW(title) != 0
95
+
96
+ # Linux/OSX.
97
+ sys.stdout.write(b'\033]0;' + title_bytes + b'\007')
98
+ return True