instance_id stringlengths 11 13 | repo stringlengths 9 25 | base_commit stringlengths 40 40 | problem_statement stringlengths 95 9.95k | image unknown | cohort stringclasses 3
values | patch stringlengths 432 1.06M | test_patch stringlengths 477 20.1k | FAIL_TO_PASS listlengths 1 42 | PASS_TO_PASS listlengths 1 130 |
|---|---|---|---|---|---|---|---|---|---|
clb-pyc-002 | scipy/scipy | ff177d92b79167eb5de593c9de41d3ceb97ab189 | interpolation.zoom incorrect output for certain cases
I found the behaviour of zoom to be incorrect when working with 3D arrays for nearest neighbour interpolation.
for example, try the following:
```
x = numpy.zeros(32, 32, 11)
x[12, 16, 8] = 1
y = interpolation.zoom(x, 4, order=0)
```
and when I check to see at `y... | {
"image_id": "sha256:a06dba0866df6cc6a1b517fb2516808a1afb412e1ced4adb6fec3518c33cc617",
"pull_reference": "yutu0814/pyc-case-002-scipy@sha256:a06dba0866df6cc6a1b517fb2516808a1afb412e1ced4adb6fec3518c33cc617"
} | python50 | diff --git a/scipy/ndimage/interpolation.py b/scipy/ndimage/interpolation.py
index 8f5f1bc..2e85cdf 100644
--- a/scipy/ndimage/interpolation.py
+++ b/scipy/ndimage/interpolation.py
@@ -597,7 +597,7 @@ def affine_transform(input, matrix, offset=0.0, output_shape=None,
"SciPy 0.18.0."
)
_nd... | diff --git a/scipy/ndimage/tests/test_interpolation.py b/scipy/ndimage/tests/test_interpolation.py
index 6563210..389c0ad 100644
--- a/scipy/ndimage/tests/test_interpolation.py
+++ b/scipy/ndimage/tests/test_interpolation.py
@@ -1107,19 +1107,45 @@ class TestNdimageInterpolation:
out = ndimage.zoom(arr, zoom)
... | [
"scipy/ndimage/tests/test_interpolation.py::TestNdimageInterpolation::test_zoom_grid_by_int_order0[nearest-zoom0-shape0]",
"scipy/ndimage/tests/test_interpolation.py::TestNdimageInterpolation::test_zoom_grid_by_int_order0[nearest-zoom0-shape1]",
"scipy/ndimage/tests/test_interpolation.py::TestNdimageInterpolati... | [
"scipy/ndimage/tests/test_interpolation.py::TestNdimageInterpolation::test_boundaries[nearest-expected_value0]",
"scipy/ndimage/tests/test_interpolation.py::TestNdimageInterpolation::test_boundaries2[grid-wrap-expected_value2]",
"scipy/ndimage/tests/test_interpolation.py::TestNdimageInterpolation::test_boundary... |
clb-pyc-007 | numpy/numpy | fc2518ba6b11fc52b0ff477b9e83576be90562d8 | NumPy's array-allocation failure path raises _ArrayMemoryError and returns immediately, bypassing the common failure cleanup and leaking dtype references on every failed allocation. Route this path through the shared cleanup while preserving the formatted allocation error. | {
"image_id": "sha256:ddbe5866e7eec2a3e12f4ebf75adf5c83c154c8ac15f049f3039395c37a8c617",
"pull_reference": "yutu0814/pyc-case-007-numpy@sha256:ddbe5866e7eec2a3e12f4ebf75adf5c83c154c8ac15f049f3039395c37a8c617"
} | python50 | diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c
index 502ab0e..beee985 100644
--- a/numpy/core/src/multiarray/ctors.c
+++ b/numpy/core/src/multiarray/ctors.c
@@ -869,7 +869,7 @@ discover_dimensions(PyObject *obj, int *maxndim, npy_intp *d, int check_it,
return 0;
}
-static PyO... | diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index 2edcc68..86a8cff 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -845,6 +845,13 @@ class TestCreation:
assert_raises(ValueError, np.zeros, shape, dtype=np.int8)
as... | [
"numpy/core/tests/test_multiarray.py::TestCreation::test_malloc_fails"
] | [
"numpy/core/tests/test_multiarray.py::TestCreation::test_zeros"
] |
clb-pyc-010 | numpy/numpy | 5e8ad11b75245caf2d158eacf369b011ef262795 | Several ndarray methods return a newly converted Python/NumPy scalar when a caller supplies a zero-dimensional out array. They must return the exact out object by identity, consistently with higher-dimensional outputs. | {
"image_id": "sha256:9c6264f39867c2376935e2c989a26c328eadb1b0f813d66291a224c84971e790",
"pull_reference": "yutu0814/pyc-case-010-numpy@sha256:9c6264f39867c2376935e2c989a26c328eadb1b0f813d66291a224c84971e790"
} | python50 | diff --git a/numpy/core/src/multiarray/methods.c b/numpy/core/src/multiarray/methods.c
index 8a659fa..262514e 100644
--- a/numpy/core/src/multiarray/methods.c
+++ b/numpy/core/src/multiarray/methods.c
@@ -117,8 +117,15 @@ array_take(PyArrayObject *self, PyObject *args, PyObject *kwds)
... | diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index f36c27c..a698370 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -1582,6 +1582,11 @@ class TestMethods:
# gh-12031, caused SEGFAULT
assert_raises(TypeError, oned.c... | [
"numpy/core/tests/test_multiarray.py::TestMethods::test_choose",
"numpy/core/tests/test_multiarray.py::TestMethods::test_round",
"numpy/core/tests/test_multiarray.py::TestMethods::test_trace",
"numpy/core/tests/test_multiarray.py::TestArgmax::test_ret_is_out[0]",
"numpy/core/tests/test_multiarray.py::TestAr... | [
"numpy/core/tests/test_multiarray.py::TestTake::test_clip",
"numpy/core/tests/test_multiarray.py::TestArgmax::test_output_shape",
"numpy/core/tests/test_multiarray.py::TestMethods::test_trace_subclass"
] |
clb-pyc-011 | numpy/numpy | 2acfd9851b6a5246e5e5e3faa97c9e728e88f8a9 | ndarray.searchsorted documents its required value argument as v, but the C method parser exposes the keyword as keys. Calling searchsorted(v=...) therefore raises a TypeError instead of accepting the documented keyword. | {
"image_id": "sha256:08f623a56a982260b08f7c3f5bfedf171de71ab39d2022e893e403887fd93873",
"pull_reference": "yutu0814/pyc-case-011-numpy@sha256:08f623a56a982260b08f7c3f5bfedf171de71ab39d2022e893e403887fd93873"
} | python50 | diff --git a/numpy/core/src/multiarray/methods.c b/numpy/core/src/multiarray/methods.c
index e5845f2..ae26bbd 100644
--- a/numpy/core/src/multiarray/methods.c
+++ b/numpy/core/src/multiarray/methods.c
@@ -1469,7 +1469,7 @@ array_argpartition(PyArrayObject *self, PyObject *args, PyObject *kwds)
static PyObject *
array... | diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index c4f1368..bf1fcc7 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -2161,6 +2161,8 @@ class TestMethods:
msg = "Test real searchsorted with nans, side='r'"
b = a.sea... | [
"numpy/core/tests/test_multiarray.py::TestMethods::test_searchsorted"
] | [
"numpy/core/tests/test_multiarray.py::TestMethods::test_searchsorted_unicode",
"numpy/core/tests/test_multiarray.py::TestMethods::test_searchsorted_with_sorter"
] |
clb-pyc-013 | numpy/numpy | 663b161074580a340201da1765e3618c086ff8dc | numpy.ravel_multi_index does not reject non-empty indices when one dimension is zero. Depending on mode, Base returns without the required ValueError or performs division by zero and terminates with SIGFPE. Empty index arrays must remain valid. | {
"image_id": "sha256:19d9e4c60528969fa655ade3622e48b0c85c508ccd6249e801d6781bef11f508",
"pull_reference": "yutu0814/pyc-case-013-numpy@sha256:19d9e4c60528969fa655ade3622e48b0c85c508ccd6249e801d6781bef11f508"
} | python50 | diff --git a/numpy/core/src/multiarray/compiled_base.c b/numpy/core/src/multiarray/compiled_base.c
index c380676..055d3e6 100644
--- a/numpy/core/src/multiarray/compiled_base.c
+++ b/numpy/core/src/multiarray/compiled_base.c
@@ -942,6 +942,20 @@ ravel_multi_index_loop(int ravel_ndim, npy_intp *ravel_dims,
char inv... | diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py
index a5cdda0..dbe445c 100644
--- a/numpy/lib/tests/test_index_tricks.py
+++ b/numpy/lib/tests/test_index_tricks.py
@@ -175,6 +175,24 @@ class TestRavelUnravelIndex(object):
assert_raises_regex(
ValueError, "o... | [
"numpy/lib/tests/test_index_tricks.py::TestRavelUnravelIndex::test_empty_array_ravel[clip]",
"numpy/lib/tests/test_index_tricks.py::TestRavelUnravelIndex::test_empty_array_ravel[wrap]"
] | [
"numpy/lib/tests/test_index_tricks.py::TestRavelUnravelIndex::test_big_indices",
"numpy/lib/tests/test_index_tricks.py::TestRavelUnravelIndex::test_dtypes"
] |
clb-pyc-014 | numpy/numpy | 495d352bf325f44d78001f059d625123e49f027e | viewing an array with a fieldless structured dtype does not update the dtype:
As discovered in #14310 , viewing an array with a fieldless structured dtype does not update the dtype/itemsize:
```python
>>> a = np.zeros(2, dtype={'names':[], 'formats':[], 'offsets':[], 'itemsize':8})
>>> b = a.view(np.dtype([]))
>>... | {
"image_id": "sha256:8ec3a832740cfffca716ebf9a7a1b9b324d57ca877843e324a74f53f49942c4d",
"pull_reference": "yutu0814/pyc-case-014-numpy@sha256:8ec3a832740cfffca716ebf9a7a1b9b324d57ca877843e324a74f53f49942c4d"
} | python50 | diff --git a/doc/release/upcoming_changes/14393.c_api.rst b/doc/release/upcoming_changes/14393.c_api.rst
new file mode 100644
index 0000000..0afd275
--- /dev/null
+++ b/doc/release/upcoming_changes/14393.c_api.rst
@@ -0,0 +1,5 @@
+PyDataType_ISUNSIZED(descr) now returns False for structured datatypes
+-----------------... | diff --git a/numpy/core/tests/test_dtype.py b/numpy/core/tests/test_dtype.py
index f60eab6..f5ca775 100644
--- a/numpy/core/tests/test_dtype.py
+++ b/numpy/core/tests/test_dtype.py
@@ -419,6 +419,31 @@ class TestRecord(object):
assert_raises(ValueError, np.dtype,
{'formats': ['i4', 'i4'], 'f0'... | [
"numpy/core/tests/test_dtype.py::TestRecord::test_fieldless_views"
] | [
"numpy/core/tests/test_dtype.py::TestRecord::test_partial_dict",
"numpy/core/tests/test_dtype.py::TestSubarray::test_single_subarray"
] |
clb-pyc-015 | numpy/numpy | 965ea2ff417bcb285beca5c36cd02a8790a3d8f6 | BUG: np.lexsort MemoryError on empty array with non-standard strides
Numpy 1.17.0 raises MemoryError when using `lexsort` on an empty array with non-standard `strides`. If `strides` is the natural one, or if there is >= 1 element in the input, then it works as expected.
### Reproducing code example:
```python
im... | {
"image_id": "sha256:f2da0afcaca3b41ce053ae0355187005b364e3490eda7dbeecac6561e03d5967",
"pull_reference": "yutu0814/pyc-case-015-numpy@sha256:f2da0afcaca3b41ce053ae0355187005b364e3490eda7dbeecac6561e03d5967"
} | python50 | diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c
index 762563e..19de04a 100644
--- a/numpy/core/src/multiarray/item_selection.c
+++ b/numpy/core/src/multiarray/item_selection.c
@@ -1456,8 +1456,8 @@ PyArray_LexSort(PyObject *sort_keys, int axis)
/* Now we can c... | diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index 944d053..c5289f6 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -436,6 +436,32 @@ class TestRegression(object):
assert_raises(KeyError, np.lexsort, BuggySequence())
+ ... | [
"numpy/core/tests/test_regression.py::TestRegression::test_lexsort_zerolen_custom_strides",
"numpy/core/tests/test_regression.py::TestRegression::test_lexsort_zerolen_custom_strides_2d"
] | [
"numpy/core/tests/test_regression.py::TestRegression::test_lexsort",
"numpy/core/tests/test_regression.py::TestRegression::test_lexsort_invalid_sequence"
] |
clb-pyc-022 | numpy/numpy | 99953e494aa3be5ae8385d8461b9e4dfbeec43ec | Creating an array from an object with an invalid __array_interface__ can corrupt the reference count of the cached dtype object on failure paths. Invalid shape or strides metadata should raise the expected exception without decreasing the global dtype reference count or triggering CPython reference-count errors. | {
"image_id": "sha256:7e54bbcd8594c941e1ee9e41ea15905787d0bca6fb8085b4523d5069737d6de8",
"pull_reference": "yutu0814/pyc-case-022-numpy@sha256:7e54bbcd8594c941e1ee9e41ea15905787d0bca6fb8085b4523d5069737d6de8"
} | python50 | diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c
index 63bf537..b2e329d 100644
--- a/numpy/core/src/multiarray/ctors.c
+++ b/numpy/core/src/multiarray/ctors.c
@@ -2500,6 +2500,11 @@ PyArray_FromInterface(PyObject *origin)
&PyArray_Type, dtype,
n, dims, N... | diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index a67a291..77534c1 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -7009,12 +7009,11 @@ class TestArrayAttributeDeletion(object):
assert_raises(AttributeError, delat... | [
"numpy/core/tests/test_multiarray.py::TestArrayInterface::test_scalar_interface[val6-iface6-ValueError]",
"numpy/core/tests/test_multiarray.py::TestArrayInterface::test_scalar_interface[val8-iface8-ValueError]",
"numpy/core/tests/test_multiarray.py::TestArrayInterface::test_scalar_interface[val9-iface9-TypeErro... | [
"numpy/core/tests/test_multiarray.py::test_interface_no_shape",
"numpy/core/tests/test_multiarray.py::test_array_interface_itemsize"
] |
clb-pyc-023 | numpy/numpy | 70b773e4015b4fbb61bc1f7bdffc9cc789d58e94 | np.place warning: WRITEBACKIFCOPY detected in array_dealloc
Hello there,
I'm having a problem with getting a runtime warning:
/.../.virtualenv/python_3_env/lib/python3.6/site-packages/numpy/lib/function_base.py:1725: RuntimeWarning: WRITEBACKIFCOPY detected in array_dealloc. Required call to PyArray_ResolveWrite... | {
"image_id": "sha256:8b841335373b60b3e3aa4c1cb856876881e173ce982971adaf302df454690fdf",
"pull_reference": "yutu0814/pyc-case-023-numpy@sha256:8b841335373b60b3e3aa4c1cb856876881e173ce982971adaf302df454690fdf"
} | python50 | diff --git a/numpy/core/src/multiarray/compiled_base.c b/numpy/core/src/multiarray/compiled_base.c
index 88924a8..625028b 100644
--- a/numpy/core/src/multiarray/compiled_base.c
+++ b/numpy/core/src/multiarray/compiled_base.c
@@ -328,6 +328,7 @@ arr_insert(PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwdict... | diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index 77534c1..241f8e4 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -7729,6 +7729,8 @@ class TestWritebackIfCopy(object):
# uses arr_insert
np.place(a, a>2, [44... | [
"numpy/core/tests/test_multiarray.py::TestWritebackIfCopy::test_insert_noncontiguous"
] | [
"numpy/core/tests/test_multiarray.py::TestWritebackIfCopy::test_put_noncontiguous",
"numpy/core/tests/test_multiarray.py::TestWritebackIfCopy::test_putmask_noncontiguous"
] |
clb-pyc-027 | numpy/numpy | 0fd5f2506bf2f41b023392c945312e5a1a3eb819 | np.unravel_index() does not accept empty inputs
I would expect a tuple of empty outputs back. I get the following:
```
>>> np.unravel_index([], (10, 12))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Iterator operand 0 dtype could not be cast from dtype('float64') to dtype('int64'... | {
"image_id": "sha256:71d2efe092c6ee64b8a0a6ef40ee58ca656c90a6a43fbd8fd3aa2f35833dfc02",
"pull_reference": "yutu0814/pyc-case-027-numpy@sha256:71d2efe092c6ee64b8a0a6ef40ee58ca656c90a6a43fbd8fd3aa2f35833dfc02"
} | python50 | diff --git a/numpy/core/src/multiarray/compiled_base.c b/numpy/core/src/multiarray/compiled_base.c
index 1e0c1eb..d80d165 100644
--- a/numpy/core/src/multiarray/compiled_base.c
+++ b/numpy/core/src/multiarray/compiled_base.c
@@ -832,17 +832,63 @@ fail:
return NULL;
}
+static const char *EMPTY_SEQUENCE_E... | diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py
index 3246f68..028bba3 100644
--- a/numpy/lib/tests/test_index_tricks.py
+++ b/numpy/lib/tests/test_index_tricks.py
@@ -77,6 +77,26 @@ class TestRavelUnravelIndex(object):
[[3, 6, 6], [4, 5, 1]])
assert_... | [
"numpy/lib/tests/test_index_tricks.py::TestRavelUnravelIndex::test_empty_indices"
] | [
"numpy/lib/tests/test_index_tricks.py::TestRavelUnravelIndex::test_big_indices",
"numpy/lib/tests/test_index_tricks.py::TestRavelUnravelIndex::test_dtypes"
] |
clb-pyc-031 | numpy/numpy | b65b21c397381351965bf3f590054d2bccdd03d2 | choose does not broadcast index array appropriately (Trac #925)
_Original ticket http://projects.scipy.org/numpy/ticket/925 on 2008-10-03 by @teoliphant, assigned to unknown._
The advertised behavior of choose(choices, sequence_of_arrays) is that the choices array and all the arrays in the sequence must be broadcastab... | {
"image_id": "sha256:d485b6f5f151ad2c42c3c32e32f97d01a66e10ed307a21112efd85cb523ef363",
"pull_reference": "yutu0814/pyc-case-031-numpy@sha256:d485b6f5f151ad2c42c3c32e32f97d01a66e10ed307a21112efd85cb523ef363"
} | python50 | diff --git a/numpy/core/code_generators/numpy_api_order.txt b/numpy/core/code_generators/numpy_api_order.txt
index bebc531..ff629d6 100644
--- a/numpy/core/code_generators/numpy_api_order.txt
+++ b/numpy/core/code_generators/numpy_api_order.txt
@@ -170,3 +170,4 @@ PyArray_SearchsideConverter
PyArray_CheckAxis
PyArray... | diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index 50a0205..ccfbe35 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -946,6 +946,26 @@ class TestSummarization(TestCase):
assert repr(A) == reprA
+class TestChoose(TestCase... | [
"test_multiarray.TestChoose.test_broadcast1",
"test_multiarray.TestChoose.test_broadcast2"
] | [
"test_multiarray.TestChoose.test_basic"
] |
clb-pyc-034 | scipy/scipy | 9529e47630be8f2345fd3d54302f248ce309d8cd | BUG: odeint crashes via lsoda instead of giving an error for zero timestep
Reproducable problem, [reported in SO](https://stackoverflow.com/questions/47776535/no-error-message-scipy-odeint-spyder-kernel-died-restarting)
```
from scipy.integrate import odeint
import numpy as np
t = np.linspace(0,0,10)
def func(x)... | {
"image_id": "sha256:5d4300ef80a0fcbfd8e290284f0e291b61cd1fa1a585f7c8bdb059fd1eb4ad6d",
"pull_reference": "yutu0814/pyc-case-034-scipy@sha256:5d4300ef80a0fcbfd8e290284f0e291b61cd1fa1a585f7c8bdb059fd1eb4ad6d"
} | python50 | diff --git a/scipy/integrate/_odepackmodule.c b/scipy/integrate/_odepackmodule.c
index 80bfadb..b141a23 100644
--- a/scipy/integrate/_odepackmodule.c
+++ b/scipy/integrate/_odepackmodule.c
@@ -497,6 +497,7 @@ odepack_odeint(PyObject *dummy, PyObject *args, PyObject *kwdict)
npy_intp out_sz = 0, dims[2];
int k... | diff --git a/scipy/integrate/tests/test_integrate.py b/scipy/integrate/tests/test_integrate.py
index aa8620e..22d5bba 100644
--- a/scipy/integrate/tests/test_integrate.py
+++ b/scipy/integrate/tests/test_integrate.py
@@ -805,3 +805,31 @@ def test_odeint_bad_shapes():
# shape of array returned by badjac(x, t) is no... | [
"scipy/integrate/tests/test_integrate.py::test_repeated_t_values"
] | [
"scipy/integrate/tests/test_integrate.py::test_odeint_trivial_time",
"scipy/integrate/tests/test_integrate.py::test_odeint_bad_shapes"
] |
clb-pyc-037 | scipy/scipy | bf05e8d3412e2d96ab6735b6935e2a65f2620c30 | scipy.ndimage.label crash on 64-bit linux (Trac #742)
_Original ticket http://projects.scipy.org/scipy/ticket/742 on 2008-09-23 by trac user usovalx, assigned to unknown._
It appears that ndimage.label is bugged for 64-bit linux builds. So far I was able to trigger the bug by using reasonably large 3-d datasets. Samp... | {
"image_id": "sha256:04dff5e59cea830266f4137be5ca38e2333c9668c2880e6f6f542c7188cd8328",
"pull_reference": "yutu0814/pyc-case-037-scipy@sha256:04dff5e59cea830266f4137be5ca38e2333c9668c2880e6f6f542c7188cd8328"
} | python50 | diff --git a/scipy/ndimage/src/ni_measure.c b/scipy/ndimage/src/ni_measure.c
index cfd4d4d..1aa27d9 100644
--- a/scipy/ndimage/src/ni_measure.c
+++ b/scipy/ndimage/src/ni_measure.c
@@ -132,7 +132,7 @@ int NI_Label(PyArrayObject* input, PyArrayObject* strct,
Int32 neighbor = 0;
/* iterate over ... | diff --git a/scipy/ndimage/tests/test_regression.py b/scipy/ndimage/tests/test_regression.py
index a824679..28d7553 100644
--- a/scipy/ndimage/tests/test_regression.py
+++ b/scipy/ndimage/tests/test_regression.py
@@ -16,5 +16,19 @@ def test_zoom_output_shape():
x = np.arange(12).reshape((3,4))
ndimage.zoom(x,... | [
"scipy/ndimage/tests/test_regression.py::test_ticket_742"
] | [
"scipy/ndimage/tests/test_regression.py::test_byte_order_median",
"scipy/ndimage/tests/test_regression.py::test_zoom_output_shape"
] |
clb-pyc-041 | scipy/scipy | e13278e712ac33c6110b5d48a8da0acfa7768b71 | Crash of interpolate.splprep(task=-1)
Running the circle example but with task = -1 parameter for splprep
http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html#spline-interpolation-in-1-d-procedural-interpolate-splxxx
I got a crash in firpack.py at
<code> t,c,o = _fitpack._parcur(ravel(transpose(x)),w,... | {
"image_id": "sha256:162ec26dfa62fdd3ffa1a0dc4976961257e6796f803eb39e11be871f1dc4faf9",
"pull_reference": "yutu0814/pyc-case-041-scipy@sha256:162ec26dfa62fdd3ffa1a0dc4976961257e6796f803eb39e11be871f1dc4faf9"
} | python50 | diff --git a/scipy/interpolate/src/_fitpackmodule.c b/scipy/interpolate/src/_fitpackmodule.c
index 52cd383..ba44a49 100644
--- a/scipy/interpolate/src/_fitpackmodule.c
+++ b/scipy/interpolate/src/_fitpackmodule.c
@@ -499,7 +499,7 @@ fitpack_parcur(PyObject *dummy, PyObject *args)
if (ap_t == NULL || ap_c == NULL) ... | diff --git a/scipy/interpolate/tests/test_fitpack.py b/scipy/interpolate/tests/test_fitpack.py
index 7b90c36..c2179a4 100644
--- a/scipy/interpolate/tests/test_fitpack.py
+++ b/scipy/interpolate/tests/test_fitpack.py
@@ -459,6 +459,19 @@ def test_splev_der_k():
assert_allclose(splev(x, (t, c, k), k), splev(x, tck2... | [
"scipy/interpolate/tests/test_fitpack.py::test_splprep_segfault"
] | [
"scipy/interpolate/tests/test_fitpack.py::test_dblint",
"scipy/interpolate/tests/test_fitpack.py::test_splev_der_k"
] |
clb-pyc-042 | scipy/scipy | 8c7973148c5dea4a28e0e082f8c1f182313b72c1 | scipy.signal.sepfir2d reads random memory when given even sized hrow or hcol
`scipy.signal.sepfir2d` reads random memory when given even sized `hrow` or `hcol`. Deep down in the source code for `sepfir2` there is a comment than only odd-lengths are acceptable:
https://github.com/scipy/scipy/blob/d06791710acae119e09982... | {
"image_id": "sha256:73a308a6d0431d6f5d682647daf0828549209bc26bf7e79d2bff7e205d7d2bcb",
"pull_reference": "yutu0814/pyc-case-042-scipy@sha256:73a308a6d0431d6f5d682647daf0828549209bc26bf7e79d2bff7e205d7d2bcb"
} | python50 | diff --git a/scipy/signal/splinemodule.c b/scipy/signal/splinemodule.c
index 58f1aa7..1c10218 100644
--- a/scipy/signal/splinemodule.c
+++ b/scipy/signal/splinemodule.c
@@ -214,11 +214,13 @@ static char doc_FIRsepsym2d[] = "out = sepfir2d(input, hrow, hcol)\n"
" Parameters\n"
" ----------\n"
" input : ndarr... | diff --git a/scipy/signal/tests/test_bsplines.py b/scipy/signal/tests/test_bsplines.py
index 57524eb..4d77918 100644
--- a/scipy/signal/tests/test_bsplines.py
+++ b/scipy/signal/tests/test_bsplines.py
@@ -4,9 +4,11 @@ from numpy import array
from numpy.testing import (assert_equal,
assert_a... | [
"scipy/signal/tests/test_bsplines.py::test_sepfir2d_invalid_filter"
] | [
"scipy/signal/tests/test_bsplines.py::TestBSplines::test_spline_filter",
"scipy/signal/tests/test_bsplines.py::TestBSplines::test_bspline"
] |
clb-pyc-044 | scipy/scipy | fc6b387bc0c51b5b252712584580b4f0975498fb | segfault from map_coordinates
I received segmentation faults when running `map_coordinates` with `order=1` on a large array when attempting to access data that was past the 4GB level if the input data array type was `float32`. I have verified that changing from `float32` -> `float64` or using `order=3` both avoid the ... | {
"image_id": "sha256:46e9a7fa9636a89717b530dbde3a6da3e2c67050a18b70847b78b4316e051831",
"pull_reference": "yutu0814/pyc-case-044-scipy@sha256:46e9a7fa9636a89717b530dbde3a6da3e2c67050a18b70847b78b4316e051831"
} | python50 | diff --git a/scipy/ndimage/src/ni_filters.c b/scipy/ndimage/src/ni_filters.c
index 96c2e799..c5e70562 100644
--- a/scipy/ndimage/src/ni_filters.c
+++ b/scipy/ndimage/src/ni_filters.c
@@ -639,9 +639,10 @@ exit:
return PyErr_Occurred() ? 0 : 1;
}
-static double NI_Select(double *buffer, int min, int max, int rank... | diff --git a/scipy/ndimage/tests/test_ndimage.py b/scipy/ndimage/tests/test_ndimage.py
index bfe9161d..9c505ae7 100644
--- a/scipy/ndimage/tests/test_ndimage.py
+++ b/scipy/ndimage/tests/test_ndimage.py
@@ -32,11 +32,12 @@ from __future__ import division, print_function, absolute_import
import warnings
import math
... | [
"scipy/ndimage/tests/test_ndimage.py::TestNdimage::test_map_coordinates_large_data"
] | [
"scipy/ndimage/tests/test_ndimage.py::TestNdimage::test_map_coordinates01",
"scipy/ndimage/tests/test_ndimage.py::TestNdimage::test_map_coordinates02"
] |
clb-pyc-046 | tskit-dev/tskit | eb8b4aebe42f39f7e536a603e8cd25d9cf104e22 | .newick() raises: LibraryError: Supplied buffer if too small
Hi all,
I'm getting a buffer size error when calling `.newick()` on a tree with large Ne. The problem seems to be derived from C code in `._ll_sparse_tree.get_newick()`. I see in the trees.py code that if you provide a `node_labels` argument to `.newick()... | {
"image_id": "sha256:94b0040be34ac50a0b340ee284e51a414a4d1efa8696791ae661d0cbeea80743",
"pull_reference": "yutu0814/pyc-case-046-tskit@sha256:94b0040be34ac50a0b340ee284e51a414a4d1efa8696791ae661d0cbeea80743"
} | python50 | diff --git a/python/CHANGELOG.rst b/python/CHANGELOG.rst
index 60500c9..55d36c7 100644
--- a/python/CHANGELOG.rst
+++ b/python/CHANGELOG.rst
@@ -83,6 +83,9 @@ In development
**Bugfixes**
+- :issue:`453` - Fix LibraryError when ``tree.newick()`` is called with large node time
+ values (:user:`jeromekelleher`, :pr:... | diff --git a/python/tests/test_highlevel.py b/python/tests/test_highlevel.py
index e76bb98..1014aa9 100644
--- a/python/tests/test_highlevel.py
+++ b/python/tests/test_highlevel.py
@@ -1887,6 +1887,18 @@ class TestTree(HighLevelTestCase):
for tree in ts.trees():
self.verify_newick(tree)
... | [
"python/tests/test_highlevel.py::TestTree::test_newick_large_times",
"python/tests/test_lowlevel.py::TestTree::test_newick_interface"
] | [
"python/tests/test_highlevel.py::TestTree::test_newick",
"python/tests/test_lowlevel.py::TestTree::test_newick_precision"
] |
clb-pyc-048 | scipy/scipy | 018986cb0260881827c6ef33cd2d804f54e39c85 | `scipy.signal.{medfilt,medfilt2d}` hit "Windows fatal exception: access violation" with SciPy 1.7.0 on Windows
Since yesterday with the new SciPy 1.7.0 release, CuPy's Windows CI is experiencing the following fatal error (cupy/cupy#5364) and the CI was interrupted.
#### Reproducing code example:
The failing tests c... | {
"image_id": "sha256:064bfb4045a30796b74a723138efe20e24f2be4e0aa19f4ef6a3a644cce2ce85",
"pull_reference": "yutu0814/pyc-case-048-scipy@sha256:064bfb4045a30796b74a723138efe20e24f2be4e0aa19f4ef6a3a644cce2ce85"
} | python50 | diff --git a/scipy/signal/sigtoolsmodule.c b/scipy/signal/sigtoolsmodule.c
index e39e0c15..2fd6fcf4 100644
--- a/scipy/signal/sigtoolsmodule.c
+++ b/scipy/signal/sigtoolsmodule.c
@@ -856,14 +856,14 @@ PyObject *PyArray_OrderFilterND(PyObject *op1, PyObject *op2, int order) {
int is1, os;
char *op, *ap1_ptr, *ap2_pt... | diff --git a/scipy/signal/tests/test_signaltools.py b/scipy/signal/tests/test_signaltools.py
index 2b5cc6a0..bd64fcff 100644
--- a/scipy/signal/tests/test_signaltools.py
+++ b/scipy/signal/tests/test_signaltools.py
@@ -1062,6 +1062,17 @@ class TestMedFilt:
assert_equal(signal.medfilt(in_typed).dtype, dtype)
... | [
"scipy/signal/tests/test_signaltools.py::TestMedFilt::test_invalid_dtypes[float16]"
] | [
"scipy/signal/tests/test_signaltools.py::TestMedFilt::test_basic",
"scipy/signal/tests/test_signaltools.py::TestMedFilt::test_none"
] |
clb-pyc-049 | CheetahTemplate3/cheetah3 | c86628cad04edc5167f9a9c8999abc62c6558e7b | Calling Template.getVar() with a string beginning with "$" crashes
The compiled C version of NameMapper does not handle names beginning with "$" correctly. Specifically on CentOS 6.10, this command results in a Segmentation fault:
`python -c "from Cheetah.Template import Template; print(Template(source='blah').getVar(... | {
"image_id": "sha256:9b8ca8cf610a15b88d144cab71608125a57d9fa61fd9d41664684b023d991629",
"pull_reference": "yutu0814/pyc-case-049-cheetah@sha256:9b8ca8cf610a15b88d144cab71608125a57d9fa61fd9d41664684b023d991629"
} | python50 | diff --git a/Cheetah/c/_namemapper.c b/Cheetah/c/_namemapper.c
index 6c472b9..15ab99a 100644
--- a/Cheetah/c/_namemapper.c
+++ b/Cheetah/c/_namemapper.c
@@ -268,11 +268,16 @@ static PyObject *namemapper_valueForName(PYARGS)
createNameCopyAndChunks();
- theValue = PyNamemapper_valueForName(obj, nameChunks, n... | diff --git a/Cheetah/Tests/SyntaxAndOutput.py b/Cheetah/Tests/SyntaxAndOutput.py
index c6fa39d..a2ee63c 100755
--- a/Cheetah/Tests/SyntaxAndOutput.py
+++ b/Cheetah/Tests/SyntaxAndOutput.py
@@ -3049,6 +3049,12 @@ class GetVar(OutputTest): # Template.getVar()
self.verify("$getVar('$bogus', 1234)",... | [
"Cheetah/Tests/SyntaxAndOutput.py::GetVar::test6"
] | [
"Cheetah/Tests/SyntaxAndOutput.py::GetVar::test1",
"Cheetah/Tests/SyntaxAndOutput.py::GetVar::test2"
] |
clb-pyc-053 | python-pillow/Pillow | 09605ff48e582fda6870a2c4c519650321f3f8de | ImageDraw only uses lower 8-bits of colors in I;16 images
### What did you do?
`ImageDraw` on an image with mode `I;16` fails to work correctly. When given a fill color (in the range 0...0xFFFF), it draws the shapes correctly, but uses a color with the lower 8-bits repeated twice.
### What did you expect to happe... | {
"image_id": "sha256:fa3a641ce23062b01e43021ba76fa77574047cb21422ef0daa18c642dd7c7ccc",
"pull_reference": "yutu0814/pyc-case-053-pillow@sha256:fa3a641ce23062b01e43021ba76fa77574047cb21422ef0daa18c642dd7c7ccc"
} | python50 | diff --git a/src/libImaging/Draw.c b/src/libImaging/Draw.c
index 82f290b..0ccf22d 100644
--- a/src/libImaging/Draw.c
+++ b/src/libImaging/Draw.c
@@ -41,6 +41,7 @@
#define FLOOR(v) ((v) >= 0.0 ? (int)(v) : (int)floor(v))
#define INK8(ink) (*(UINT8 *)ink)
+#define INK16(ink) (*(UINT16 *)ink)
/*
* Rounds around z... | diff --git a/Tests/images/imagedraw_rectangle_I.png b/Tests/images/imagedraw_rectangle_I.png
index 4e94f6943dd8eaac1d3be2b930b835358f1caaf9..a75f12c2e98f417e662f2661eab980b45b61cde1 100644
GIT binary patch
delta 102
zcmdnWxP@_oidD6zi(^Q|oVT}j@-`TVusS+?xo;%mkkXypn)XS5|Jl7d3_x%o{o2RL
zk9X7`yK1#D=Yq82<NO@|GZW)Y6@Q<(XkGsTq... | [
"Tests/test_imagedraw.py::test_point_I16",
"Tests/test_imagefont.py::test_I16[Layout.BASIC]"
] | [
"Tests/test_imagedraw.py::test_sanity",
"Tests/test_imagefont.py::test_font_properties[Layout.BASIC]"
] |
clb-pyc-054 | python-pillow/Pillow | c683f048eb117c572b8b4eee47a324aca165fea1 | Fatal Python error for negative radius in ImageFilter.BoxBlur()
Hi,
Python crashes without an exception when a negative radius is passed into ImageFilter.BoxBlur().
This is the error message using spyder.
```
Fatal Python error: Aborted
Main thread:
Current thread 0x00007fbab679b740 (most recent call first)... | {
"image_id": "sha256:418f1ca7c0fe0f3525592d3635a6e06f4e7b45060ad3b0a492f177230eba26fe",
"pull_reference": "yutu0814/pyc-case-054-pillow@sha256:418f1ca7c0fe0f3525592d3635a6e06f4e7b45060ad3b0a492f177230eba26fe"
} | python50 | diff --git a/src/PIL/ImageFilter.py b/src/PIL/ImageFilter.py
index 59e2c18..63d6dcf 100644
--- a/src/PIL/ImageFilter.py
+++ b/src/PIL/ImageFilter.py
@@ -183,6 +183,9 @@ class BoxBlur(MultibandFilter):
name = "BoxBlur"
def __init__(self, radius):
+ if radius < 0:
+ msg = "radius must be >= ... | diff --git a/Tests/test_image_filter.py b/Tests/test_image_filter.py
index cfe46b6..a2ef228 100644
--- a/Tests/test_image_filter.py
+++ b/Tests/test_image_filter.py
@@ -24,6 +24,7 @@ from .helper import assert_image_equal, hopper
ImageFilter.ModeFilter,
ImageFilter.GaussianBlur,
ImageFilter.G... | [
"Tests/test_image_filter.py::test_invalid_box_blur_filter"
] | [
"Tests/test_box_blur.py::test_radius_0",
"Tests/test_box_blur.py::test_radius_1"
] |
clb-pyc-056 | python-pillow/Pillow | 6798c87caf25cedf0cef19245e7db1656aed8602 | Saving an image with JPEG2000 format doesn't accept Path object
### What did you do?
Save a JPEG 2000 image using a `Path` argument:
```python
from pathlib import Path
from PIL import Image
img = Image.new('RGBA', (5, 5), '#00000000')
img.save(Path('image.jp2'), format='JPEG2000')
```
### What did you exp... | {
"image_id": "sha256:abeb4e9ddc951a5c0e9d63f1d5d0c23a8c0bcb668606cfab3e67adde60b76970",
"pull_reference": "yutu0814/pyc-case-056-pillow@sha256:abeb4e9ddc951a5c0e9d63f1d5d0c23a8c0bcb668606cfab3e67adde60b76970"
} | python50 | diff --git a/src/PIL/Image.py b/src/PIL/Image.py
index 34959cd..5d565f6 100644
--- a/src/PIL/Image.py
+++ b/src/PIL/Image.py
@@ -2180,12 +2180,12 @@ class Image:
filename = ""
open_fp = False
- if isPath(fp):
- filename = fp
- open_fp = True
- elif isinstance(fp, ... | diff --git a/Tests/test_image.py b/Tests/test_image.py
index c4e6f8a..2d661a9 100644
--- a/Tests/test_image.py
+++ b/Tests/test_image.py
@@ -149,10 +149,11 @@ class TestImage:
assert im.mode == "RGB"
assert im.size == (128, 128)
- temp_file = str(tmp_path / "temp.jpg")
- ... | [
"Tests/test_image.py::TestImage::test_pathlib"
] | [
"Tests/test_image.py::TestImage::test_fp_name",
"Tests/test_image.py::TestImage::test_tempfile"
] |
clb-pyc-057 | python-pillow/Pillow | f0679aff4d43dbd595b98501dc7a8420550bf4e8 | Pillow fails/hangs on PSD hidden background layer
Depending on file content, Pillow:
- fails with "cannot identify image file";
- fails with "Truncated File Read";
- just hangs inside the `PsdImagePlugin._layerinfo` function because it thinks there are 65534 layers.
See attachment: [pillow-psd-fail.zip](https:/... | {
"image_id": "sha256:9ab77c7426fba99462ea9c55a3a1139fbc455ab39d47d17023fe49a897d7b96a",
"pull_reference": "yutu0814/pyc-case-057-pillow@sha256:9ab77c7426fba99462ea9c55a3a1139fbc455ab39d47d17023fe49a897d7b96a"
} | python50 | diff --git a/src/PIL/PsdImagePlugin.py b/src/PIL/PsdImagePlugin.py
index e7b8846..04b21e3 100644
--- a/src/PIL/PsdImagePlugin.py
+++ b/src/PIL/PsdImagePlugin.py
@@ -22,6 +22,7 @@ from . import Image, ImageFile, ImagePalette
from ._binary import i8
from ._binary import i16be as i16
from ._binary import i32be as i32
+... | diff --git a/Tests/images/negative_layer_count.psd b/Tests/images/negative_layer_count.psd
new file mode 100644
index 0000000000000000000000000000000000000000..b111c2d5675ab2eec3bf2df52d2af603e006d2a3
GIT binary patch
literal 5492
zcmeHKO=uHA7=4?hq{hTl%%O;f98ym$h*rt5u0koK5Yh;(dT_Iwq@meO*iDdtN5N~U
z2Y(<~_29*`UOjjf1i>E=Z... | [
"Tests/test_file_psd.py::test_n_frames"
] | [
"Tests/test_file_psd.py::test_sanity",
"Tests/test_file_psd.py::test_eoferror"
] |
clb-pyc-058 | python-pillow/Pillow | b21508798ab548ed90eb4d6bf01db14b880c9c91 | JPEG Adobe APP14 color-transform metadata should use the twelfth payload byte. RGB and CMYK samples should report transforms 1 and 2; a shortened APP14 payload should retain Adobe metadata without inventing an absent transform value. Normal JPEG decoding and CMYK roundtripping should remain correct. | {
"image_id": "sha256:3fbe631ca2fb660e8850b0f3dedfdab10187317ad1520063edca003dbce331d5",
"pull_reference": "yutu0814/pyc-case-058-pillow@sha256:3fbe631ca2fb660e8850b0f3dedfdab10187317ad1520063edca003dbce331d5"
} | python50 | diff --git a/src/PIL/JpegImagePlugin.py b/src/PIL/JpegImagePlugin.py
index 48e0de5..f449a2d 100644
--- a/src/PIL/JpegImagePlugin.py
+++ b/src/PIL/JpegImagePlugin.py
@@ -140,8 +140,8 @@ def APP(self, marker):
self.info["adobe"] = i16(s, 5)
# extract Adobe custom properties
try:
- ad... | diff --git a/Tests/images/truncated_app14.jpg b/Tests/images/truncated_app14.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..232a4c35f8c5ac8cba5c873e698f7415165ccfb3
GIT binary patch
literal 29342
zcmeIb2Urx#(l9)`OU_v(Nshu2BubE+b4G%|F0h1M!V&}p#ekxcgMb*245A`Q5K#mH
zQIwojvLHz$2_oO@B8umpbM86s|Gf9T... | [
"Tests/test_file_jpeg.py::TestFileJpeg::test_adobe_transform"
] | [
"Tests/test_file_jpeg.py::TestFileJpeg::test_sanity",
"Tests/test_file_jpeg.py::TestFileJpeg::test_cmyk"
] |
clb-pyc-060 | python-pillow/Pillow | d0612030a0ba7aed533e1f9115bbf4bd1019f48e | Segmentation fault when creating gradient images with mode "F"
<!--
Thank you for reporting an issue.
Follow these guidelines to ensure your issue is handled properly.
If you have a ...
1. General question: consider asking the question on Stack Overflow
with the python-imaging-library tag:
* http... | {
"image_id": "sha256:e5558c76835739376be27654c041f0fc5743476226db4150d772cfa124ff1be8",
"pull_reference": "yutu0814/pyc-case-060-pillow@sha256:e5558c76835739376be27654c041f0fc5743476226db4150d772cfa124ff1be8"
} | python50 | diff --git a/src/libImaging/Fill.c b/src/libImaging/Fill.c
index e4e4b43..f720602 100644
--- a/src/libImaging/Fill.c
+++ b/src/libImaging/Fill.c
@@ -76,8 +76,21 @@ ImagingFillLinearGradient(const char *mode) {
return NULL;
}
- for (y = 0; y < 256; y++) {
- memset(im->image8[y], (unsigned char)... | diff --git a/Tests/test_image.py b/Tests/test_image.py
index 3fa071b..30d093e 100644
--- a/Tests/test_image.py
+++ b/Tests/test_image.py
@@ -524,7 +524,7 @@ class TestImage:
# Arrange
target_file = "Tests/images/linear_gradient.png"
- for mode in ["L", "P"]:
+ for mode in ["L", "P", "I... | [
"Tests/test_image.py::TestImage::test_linear_gradient",
"Tests/test_image.py::TestImage::test_radial_gradient"
] | [
"Tests/test_image.py::TestImage::test_linear_gradient_wrong_mode",
"Tests/test_image.py::TestImage::test_radial_gradient_wrong_mode"
] |
clb-pyc-066 | python-pillow/Pillow | 3fb62360e61949a2405db0771ad89f1c9a2b25e4 | 4.2.0+ font rendering mem leak
### What did you do?
use font in loop and draw image
### What did you expect to happen?
not leak memory
### What actually happened?
leak memory
### What versions of Pillow and Python are you using?
it doesnt happen in py3.4 pillow <= 4.1.1
it does in >= 4.20
ImageFont.py leaks m... | {
"image_id": "sha256:7b21635299e99621802eba50557e2f4c87117546a29657660d02b8fcd5aecc6e",
"pull_reference": "yutu0814/pyc-case-066-pillow@sha256:7b21635299e99621802eba50557e2f4c87117546a29657660d02b8fcd5aecc6e"
} | python50 | diff --git a/_imaging.c b/_imaging.c
index b7726a2c..60a97aa1 100644
--- a/_imaging.c
+++ b/_imaging.c
@@ -2198,26 +2198,45 @@ textwidth(ImagingFontObject* self, const unsigned char* text)
}
void _font_text_asBytes(PyObject* encoded_string, unsigned char** text){
+ /* Allocates *text, returns a 'new reference'. ... | diff --git a/Tests/helper.py b/Tests/helper.py
index 65b1ca8b..989215ca 100644
--- a/Tests/helper.py
+++ b/Tests/helper.py
@@ -170,6 +170,41 @@ class PillowTestCase(unittest.TestCase):
return Image.open(outfile)
raise IOError()
+@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix o... | [
"Tests/test_font_leaks.py::TestDefaultFontLeak::test_leak"
] | [
"Tests/test_imagefont.py::TestImageFont::test_default_font",
"Tests/test_file_png.py::TestFilePng::test_sanity",
"Tests/test_font_leaks.py::TestTTypeFontLeak::test_leak"
] |
clb-pyc-068 | python-pillow/Pillow | dc1664500be0135d83182d480af341d39b5c78d7 | The PNG loader crashes trying to save palette images with tRNS color type 3 (indexed color) value after convert to RGB

ValueError: too many values to unpack

2.4.0 (unreleased)
------------------
+- Indexed Transparency handled for conversions between L, RGB, and P modes. Fixes #510
+ [wiredfool]
+
+- Conversions enabled from RG... | diff --git a/Tests/test_image_convert.py b/Tests/test_image_convert.py
index fd3d39bc..4d40e43b 100644
--- a/Tests/test_image_convert.py
+++ b/Tests/test_image_convert.py
@@ -46,5 +46,67 @@ def test_16bit_workaround():
im = Image.open('Tests/images/16bit.cropped.tif')
_test_float_conversion(im.convert('I'))
... | [
"Tests/test_image_convert.py::test_rgba_p",
"Tests/test_image_convert.py::test_trns_p",
"Tests/test_image_convert.py::test_trns_l",
"Tests/test_image_convert.py::test_trns_RGB",
"Tests/test_image_quantize.py::test_rgba_quantize"
] | [
"Tests/test_image_convert.py::test_default",
"Tests/test_image_convert.py::test_8bit",
"Tests/test_image_quantize.py::test_octree_quantize"
] |
clb-pyc-070 | ultrajson/ultrajson | 9c589d1cb5dc81552aa8ee72694cb830bed099c6 | 'indent' parameter for `dumps` doesn't indent properly in 3.0.0
I'm unsure if this is also a problem in other places.
### What actually happened?
Using the example in `README.rst`:
- ujson version 3.0.0
```python
>>> import ujson
>>> ujson.dumps({"foo": "bar"})
'{"foo":"bar"}'
>>> ujson.dumps({"foo": "bar... | {
"image_id": "sha256:90abe0b0aa3f2bd61d589f13a17566da1044a9f66cab7ce180803cb5887f9bcb",
"pull_reference": "yutu0814/pyc-case-070-ultrajson@sha256:90abe0b0aa3f2bd61d589f13a17566da1044a9f66cab7ce180803cb5887f9bcb"
} | python50 | diff --git a/python/objToJSON.c b/python/objToJSON.c
index d7be6f6..5d96485 100644
--- a/python/objToJSON.c
+++ b/python/objToJSON.c
@@ -783,7 +783,7 @@ PyObject* objToJSON(PyObject* self, PyObject *args, PyObject *kwargs)
PRINTMARK();
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|OOOOpii", kwlist, &oinpu... | diff --git a/tests/test_ujson.py b/tests/test_ujson.py
index 9123254..0c2f4cd 100644
--- a/tests/test_ujson.py
+++ b/tests/test_ujson.py
@@ -249,6 +249,13 @@ def test_encode_to_utf8():
assert dec == json.loads(enc)
+def test_encode_indent():
+ test_input = '{\n "obj": 31337\n}'
+ obj = ujson.decode(te... | [
"tests/test_ujson.py::test_encode_indent"
] | [
"tests/test_ujson.py::test_encode_dict_conversion",
"tests/test_ujson.py::test_encode_list_conversion",
"tests/test_ujson.py::test_decode_from_unicode"
] |
clb-pyc-071 | ultrajson/ultrajson | f26f9679f1b9d7fa2d0488e1e7b1256d9391a85f | Indented empty array/object serialization differs from stdlib
In most cases with `escape_forward_slashes=False` `ujson` matches the stdlib `json`, but with empty objects it doesn't.
* OS: ArchLinux
* Python: 3.8.5
* UltraJSON: 3.2.0
```python
In [4]: ujson.dumps({}, indent=1)
Out[4]: '{\n\n}'
In [5]: ujson... | {
"image_id": "sha256:cccd9f8154691264a74f0304fc6ef42e3176983d9c404de0da999c76a38cec66",
"pull_reference": "yutu0814/pyc-case-071-ultrajson@sha256:cccd9f8154691264a74f0304fc6ef42e3176983d9c404de0da999c76a38cec66"
} | python50 | diff --git a/lib/ultrajsonenc.c b/lib/ultrajsonenc.c
index 097e887..a0587f3 100644
--- a/lib/ultrajsonenc.c
+++ b/lib/ultrajsonenc.c
@@ -665,7 +665,6 @@ static void encode(JSOBJ obj, JSONObjectEncoder *enc, const char *name, size_t c
count = 0;
Buffer_AppendCharUnchecked (enc, '[');
- Buffer_Append... | diff --git a/tests/test_ujson.py b/tests/test_ujson.py
index b11e5d2..9d37b47 100644
--- a/tests/test_ujson.py
+++ b/tests/test_ujson.py
@@ -249,11 +249,21 @@ def test_encode_to_utf8():
assert dec == json.loads(enc)
-def test_encode_indent():
- test_input = '{\n "obj": 31337\n}'
+@pytest.mark.parametrize... | [
"tests/test_ujson.py::test_encode_indent[{}]",
"tests/test_ujson.py::test_encode_indent[[]]",
"tests/test_ujson.py::test_encode_indent[{\\n \"a\": {}\\n}]",
"tests/test_ujson.py::test_encode_indent[[\\n []\\n]]"
] | [
"tests/test_ujson.py::test_encode_dict_conversion",
"tests/test_ujson.py::test_encode_list_conversion",
"tests/test_ujson.py::test_decode_from_unicode",
"tests/test_ujson.py::test_encode_indent[{\\n \"obj\": 31337\\n}]"
] |
clb-pyc-075 | pygame/pygame | 0589ca062fa624f4bf2a9ebea7aedb2a08b37780 | Proposal: pygame.time.set_event_timer method accept Event class as parameter
Now pygame.time.set_timer(eventid, milliseconds, once) only accepts an integer as eventid parameter.
Other event methods can differentiate events with the same event id by additional parameters and I can define and push user defined events wi... | {
"image_id": "sha256:09531e41aa8f9ff6c8dfe158e64846c0c11ff89f568409e474c6be948578392b",
"pull_reference": "yutu0814/pyc-case-075-pygame@sha256:09531e41aa8f9ff6c8dfe158e64846c0c11ff89f568409e474c6be948578392b"
} | python50 | diff --git a/src_c/_pygame.h b/src_c/_pygame.h
index 9261ccbd9..347bb6598 100644
--- a/src_c/_pygame.h
+++ b/src_c/_pygame.h
@@ -103,8 +103,8 @@ typedef enum {
PGE_WINDOWMOVED,
PGE_WINDOWRESIZED,
PGE_WINDOWSIZECHANGED,
- PGE_WINDOWMINIMISED,
- PGE_WINDOWMAXIMISED,
+ PGE_WINDOWMINIMIZED,
+ PGE... | diff --git a/test/event_test.py b/test/event_test.py
index 399f0ee00..34fcd1df6 100644
--- a/test/event_test.py
+++ b/test/event_test.py
@@ -284,7 +284,7 @@ class EventModuleTest(unittest.TestCase):
"""Ensures NUMEVENTS does not exceed the maximum SDL number of events.
"""
# Ref: https://www.... | [
"test/time_test.py::TimeModuleTest::test_set_timer"
] | [
"test/event_test.py::EventModuleTest::test_post_large_user_event",
"test/event_test.py::EventModuleTest::test_get_type",
"test/event_test.py::EventModuleTest::test_post_blocked"
] |
clb-pyc-077 | pygame/pygame | c09d677a6c1c2e814683576035f13c6a07d64f67 | pygame.draw.rect() with width > 1 has weird corners
**Environment:**
- **Operating system** (e.g. Windows, Linux(Debian), Linux(Ubuntu), Mac): Linux (Ubuntu)
- **Python version** (e.g. 3.7.9, 3.8.5) : 3.9.7
- **SDL version** (e.g. SDL 2.0.12): 2.0.16
- **PyGame version** (e.g. 2.0.0.dev10, 1.9.6): 2.1.0
**Curren... | {
"image_id": "sha256:9033751a383ee84641f989c2efc2da75bec96025e77dda11dd9736a992a9a912",
"pull_reference": "yutu0814/pyc-case-077-pygame@sha256:9033751a383ee84641f989c2efc2da75bec96025e77dda11dd9736a992a9a912"
} | python50 | diff --git a/src_c/draw.c b/src_c/draw.c
index 2ac377236..7763b80c7 100644
--- a/src_c/draw.c
+++ b/src_c/draw.c
@@ -74,6 +74,9 @@ static void
draw_fillpoly(SDL_Surface *surf, int *vx, int *vy, Py_ssize_t n, Uint32 color,
int *drawn_area);
static void
+draw_rect(SDL_Surface *surf, int x1, int y1, int x... | diff --git a/test/draw_test.py b/test/draw_test.py
index 8ad7d0d18..b80884495 100644
--- a/test/draw_test.py
+++ b/test/draw_test.py
@@ -4950,6 +4950,34 @@ class DrawRectMixin(object):
self.assertNotEqual(color_at_pt, self.color)
+ def test_rect__draw_line_width(self):
+ surface = pygame.Surf... | [
"test/draw_test.py::DrawRectTest::test_rect__draw_line_width"
] | [
"test/draw_test.py::DrawRectTest::test_rect__fill",
"test/draw_test.py::DrawRectTest::test_rect__one_pixel_lines",
"test/draw_test.py::DrawRectTest::test_rect__args_without_width"
] |
clb-pyc-081 | pygame/pygame | 71c90cdb76cd8b12a0969f5d6314315bd0223c28 | pygame.freetype.Font.get_metrics does not respect style & rotation
- [x] write a unit test based on the code below. Would go in this file. test/freetype_test.py (**good first issue**)
- [x] try the C code fix below in src_c/_freetype.c
---
The following python code
```
font = freetype.Font(os.path.joi... | {
"image_id": "sha256:4e5d69e396505fea954f28acb59dc90ef522bafab05dd484c0299e628f938720",
"pull_reference": "yutu0814/pyc-case-081-pygame@sha256:4e5d69e396505fea954f28acb59dc90ef522bafab05dd484c0299e628f938720"
} | python50 | diff --git a/src_c/_freetype.c b/src_c/_freetype.c
index 05e111b7a..e3cb06d06 100644
--- a/src_c/_freetype.c
+++ b/src_c/_freetype.c
@@ -1412,11 +1412,11 @@ _ftfont_getmetrics(pgFontObject *self, PyObject *args, PyObject *kwds)
ASSERT_SELF_IS_ALIVE(self);
/*
- * Build the render mode with the given size... | diff --git a/test/freetype_test.py b/test/freetype_test.py
index e0b8803ff..34dc48726 100644
--- a/test/freetype_test.py
+++ b/test/freetype_test.py
@@ -126,7 +126,7 @@ class FreeTypeFontTest(unittest.TestCase):
self.assertRaises(OverflowError, ft.Font, file=None, size=-1)
f = ft.Font(None, size=24)... | [
"test/freetype_test.py::FreeTypeFontTest::test_issue_565"
] | [
"test/freetype_test.py::FreeTypeFontTest::test_freetype_Font_size",
"test/freetype_test.py::FreeTypeFontTest::test_freetype_Font_scalable",
"test/freetype_test.py::FreeTypeFontTest::test_freetype_Font_fixed_width"
] |
clb-pyc-082 | pygame/pygame | 8a63c06f2e082b8c7e3c0fce035a0a7e4ca55d85 | event.get(type) should return posted matching events without a TypeError; peek() on an empty queue should be false. Existing get and populated peek behavior should remain correct. | {
"image_id": "sha256:9b466d593d9252da3ccb18d5270b5e8b1dcc456daa31e67273e94d2d48c9256a",
"pull_reference": "yutu0814/pyc-case-082-pygame@sha256:9b466d593d9252da3ccb18d5270b5e8b1dcc456daa31e67273e94d2d48c9256a"
} | python50 | diff --git a/src_c/event.c b/src_c/event.c
index a4ae2d728..0ca8ac768 100644
--- a/src_c/event.c
+++ b/src_c/event.c
@@ -1332,10 +1332,12 @@ pg_event_get(PyObject *self, PyObject *args)
if(!_pg_event_append_to_list(list, &event))
return NULL;
}
-
- Py_DECREF(list);
- return RAISE(PyExc_... | diff --git a/test/event_test.py b/test/event_test.py
index de9cb1a34..8db99a99c 100644
--- a/test/event_test.py
+++ b/test/event_test.py
@@ -147,6 +147,13 @@ class EventModuleTest(unittest.TestCase):
self.assertEqual(len(queue), event_cnt)
self.assertTrue(all(e.type == pygame.USEREVENT for e in queue)... | [
"test/event_test.py::EventModuleTest::test_get_type",
"test/event_test.py::EventModuleTest::test_peek_empty"
] | [
"test/event_test.py::EventModuleTest::test_get",
"test/event_test.py::EventModuleTest::test_peek"
] |
clb-pyc-086 | pygame/pygame | 5f1d4528b46d7f3c368db6e1c395ffb0ae83623d | pygame.draw.polygon handles x and y direction inconsistently
Originally reported by: **donLorenzo (Bitbucket: [donLorenzo](https://bitbucket.org/donLorenzo), GitHub: [donLorenzo](https://github.com/donLorenzo))**
----------------------------------------
Reported by Florian Krause on the [pygame mailing list](http://a... | {
"image_id": "sha256:11e605344ed4675be7b010289e782843d09aa9efc3fae6d819d905c65ab7a0f3",
"pull_reference": "yutu0814/pyc-case-086-pygame@sha256:11e605344ed4675be7b010289e782843d09aa9efc3fae6d819d905c65ab7a0f3"
} | python50 | diff --git a/src_c/draw.c b/src_c/draw.c
index be4649a60..fe8760737 100644
--- a/src_c/draw.c
+++ b/src_c/draw.c
@@ -1613,7 +1613,20 @@ draw_fillpoly(SDL_Surface *dst, int *vx, int *vy, int n, Uint32 color)
x2 = vx[j];
x1 = vx[i];
}
- else {
+ else { ... | diff --git a/test/draw_test.py b/test/draw_test.py
index a08d3c551..e38fda05a 100644
--- a/test/draw_test.py
+++ b/test/draw_test.py
@@ -466,7 +466,6 @@ class DrawPolygonTest(unittest.TestCase):
for y in range(10):
if (x in range(2, 5) and y <7) or (y in range(2, 5) and x < 7):
... | [
"test/draw_test.py::DrawPolygonTest::test_draw_symetric_cross",
"test/draw_test.py::DrawPolygonTest::test_illumine_shape"
] | [
"test/draw_test.py::DrawPolygonTest::test_draw_square",
"test/draw_test.py::DrawPolygonTest::test_draw_diamond"
] |
clb-pyc-088 | pygame/pygame | cd173f0ebf77e2b652de1a20a5f3eccf78e8cf12 | Segfault on surface.get_bounding_rect()
Originally reported by: **Anonymous**
----------------------------------------
Hi!
I keep getting a strange segfault using the surface.get_bounding_rect() method.
I'm attaching a test case for it. It reliably produces a segmentation fault on my system:
Windows 7 x64
Python 2.... | {
"image_id": "sha256:f3743031c6dbfbb51c85a00c5494a2e837a6715609e300b96305cfb04d928d49",
"pull_reference": "yutu0814/pyc-case-088-pygame@sha256:f3743031c6dbfbb51c85a00c5494a2e837a6715609e300b96305cfb04d928d49"
} | python50 | diff --git a/src/surface.c b/src/surface.c
index aa6b7b9a9..a38e77122 100644
--- a/src/surface.c
+++ b/src/surface.c
@@ -1988,6 +1988,15 @@ surf_get_abs_parent (PyObject *self)
static PyObject *
surf_get_bounding_rect (PyObject *self, PyObject *args, PyObject *kwargs)
{
+#if SDL_BYTEORDER == SDL_LIL_ENDIAN
+ cons... | diff --git a/test/surface_test.py b/test/surface_test.py
index 19f30d83f..4bf24c907 100644
--- a/test/surface_test.py
+++ b/test/surface_test.py
@@ -165,6 +165,15 @@ class SurfaceTypeTest(unittest.TestCase):
self.assertEqual(bound_rect.width, 31)
self.assertEqual(bound_rect.height, 31)
+ # Is... | [
"test/surface_test.py::SurfaceTypeTest::test_get_bounding_rect"
] | [
"test/surface_test.py::SurfaceTypeTest::test_copy",
"test/surface_test.py::SurfaceTypeTest::test_get_bytesize",
"test/surface_test.py::SurfaceTypeTest::test_get_rect"
] |
clb-pyc-090 | pygame/pygame | 6e5ca4a046fde6c21b0386281e25a83b3c8f9ba3 | freetype.Font.get_rect() ignores style defaults when the style argument is not given
Originally reported by: **Lenard Lindstrom (Bitbucket: [llindstrom](https://bitbucket.org/llindstrom), GitHub: [llindstrom](https://github.com/llindstrom))**
----------------------------------------
The text boundary rectangle return... | {
"image_id": "sha256:150ec56758ae844eb1b5e23a435ebd2c0bd9b72b55416b8a5cfa417ed7bb1df4",
"pull_reference": "yutu0814/pyc-case-090-pygame@sha256:150ec56758ae844eb1b5e23a435ebd2c0bd9b72b55416b8a5cfa417ed7bb1df4"
} | python50 | diff --git a/src/_freetype.c b/src/_freetype.c
index ae05a337d..8ec3bb6b2 100644
--- a/src/_freetype.c
+++ b/src/_freetype.c
@@ -1418,7 +1418,7 @@ _ftfont_getrect(PgFontObject *self, PyObject *args, PyObject *kwds)
FontRenderMode render;
Angle_t rotation = self->rotation;
- int style = 0;
+ int style ... | diff --git a/test/freetype_test.py b/test/freetype_test.py
index 9624be274..8aa5a4fd0 100644
--- a/test/freetype_test.py
+++ b/test/freetype_test.py
@@ -1257,6 +1257,66 @@ class FreeTypeFontTest(unittest.TestCase):
s = 'M' * 100000 # Way too long for an SDL surface
self.assertRaises(pygame.error, fon... | [
"test/freetype_test.py::FreeTypeFontTest::test_issue_242"
] | [
"test/freetype_test.py::FreeTypeFontTest::test_freetype_Font_get_rect",
"test/freetype_test.py::FreeTypeFontTest::test_freetype_Font_style",
"test/freetype_test.py::FreeTypeFontTest::test_freetype_Font_render_mono"
] |
clb-pyc-091 | pygame/pygame | e26f569b1f3e28d935327b7dfc4cb10e722a9d09 | For a string with trailing spaces, freetype ignores the last space in boundary calculations
Originally reported by: **Lenard Lindstrom (Bitbucket: [llindstrom](https://bitbucket.org/llindstrom), GitHub: [llindstrom](https://github.com/llindstrom))**
----------------------------------------
For non-rotated horizontal ... | {
"image_id": "sha256:f416079adbe2fdc2542d0842b9d09f7f0b4fab0032a8de19fd08abd9b93b2777",
"pull_reference": "yutu0814/pyc-case-091-pygame@sha256:f416079adbe2fdc2542d0842b9d09f7f0b4fab0032a8de19fd08abd9b93b2777"
} | python50 | diff --git a/docs/reST/ref/freetype.rst b/docs/reST/ref/freetype.rst
index a566c4cf7..f65a6a848 100644
--- a/docs/reST/ref/freetype.rst
+++ b/docs/reST/ref/freetype.rst
@@ -422,7 +422,7 @@ The :mod:`freetype` module is new in Pygame 1.9.2
width, height = surf.get_size()
line_spacing = font... | diff --git a/test/freetype_test.py b/test/freetype_test.py
index d885ed68f..2648ce66b 100644
--- a/test/freetype_test.py
+++ b/test/freetype_test.py
@@ -1311,7 +1311,7 @@ class FreeTypeFontTest(unittest.TestCase):
prev_style = font.underline
font.underline = True
try:
- rect = font... | [
"test/freetype_test.py::FreeTypeFontTest::test_issue_243"
] | [
"test/freetype_test.py::FreeTypeFontTest::test_freetype_Font_get_rect",
"test/freetype_test.py::FreeTypeFontTest::test_freetype_Font_render_mono",
"test/freetype_test.py::FreeTypeFontTest::test_issue_242"
] |
clb-pyc-094 | pygame/pygame | 2d7786bc2453561a696281299104f95814e676b3 | Method Surface.fill can segfault is passed an out-of-bounds boundary rectange
Originally reported by: **Lenard Lindstrom (Bitbucket: [llindstrom](https://bitbucket.org/llindstrom), GitHub: [llindstrom](https://github.com/llindstrom))**
----------------------------------------
The //Surface.fill// method can segfault ... | {
"image_id": "sha256:6f72fe9350d7b0d377698ec01aa208bde1889947464acad69e141599c1692d9c",
"pull_reference": "yutu0814/pyc-case-094-pygame@sha256:6f72fe9350d7b0d377698ec01aa208bde1889947464acad69e141599c1692d9c"
} | python50 | diff --git a/src/surface.c b/src/surface.c
index eea770749..8ec65f869 100644
--- a/src/surface.c
+++ b/src/surface.c
@@ -1436,7 +1436,7 @@ surf_fill (PyObject *self, PyObject *args, PyObject *keywds)
rect = &temp;
}
- if (rect->w < 0 || rect->h < 0) {
+ if (rect->w < 0 || rect->h < 0 || rect->x > ... | diff --git a/test/surface_test.py b/test/surface_test.py
index a0fa54d11..1224ced53 100644
--- a/test/surface_test.py
+++ b/test/surface_test.py
@@ -1527,6 +1527,42 @@ class SurfaceBlendTest (unittest.TestCase):
(dst.get_at((x, y)), tst.get_at((x, y)),
... | [
"test/surface_test.py::SurfaceBlendTest::test_blit_blend_big_rect"
] | [
"test/surface_test.py::SurfaceTypeTest::test_copy",
"test/surface_test.py::SurfaceTypeTest::test_get_bytesize",
"test/surface_test.py::SurfaceTypeTest::test_get_rect"
] |
clb-pyc-137 | pygobject/pycairo | 9ebff889d4c68927ab1c152b6ae7c8327283b6ed | assertion error on invalid value for Surface.set_device_scale
Rather than an exception.
```Python
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 100, 100)
surface.set_device_scale(1, 0)
```
```
python: /build/buildd/cairo-1.13.0~20140204/src/cairo-surface.c:1700: cairo_surface_set_device_scale: Assertion `stat... | {
"image_id": "sha256:b4603765359d41448fa3d87f060d41236f069e73bc953b52ab072d8783418944",
"pull_reference": "yutu0814/pyc-case-137-pycairo@sha256:b4603765359d41448fa3d87f060d41236f069e73bc953b52ab072d8783418944"
} | python50 | diff --git a/cairo/surface.c b/cairo/surface.c
index f8fbf11..8c815bc 100644
--- a/cairo/surface.c
+++ b/cairo/surface.c
@@ -323,11 +323,18 @@ surface_set_device_offset (PycairoSurface *o, PyObject *args) {
static PyObject *
surface_set_device_scale (PycairoSurface *o, PyObject *args) {
double x_scale, y_scale;
+ ... | diff --git a/tests/test_surface.py b/tests/test_surface.py
index d5287c2..7938e4d 100644
--- a/tests/test_surface.py
+++ b/tests/test_surface.py
@@ -69,6 +69,10 @@ def test_surface_set_device_scale():
ret = surface.set_device_scale(5.0, 3.0)
assert ret is None
+ surface = cairo.ImageSurface(cairo.FORMAT_... | [
"tests/test_surface.py::test_surface_set_device_scale"
] | [
"tests/test_surface.py::test_surface_get_device_scale",
"tests/test_surface.py::test_surface_get_content",
"tests/test_surface.py::test_surface_get_format"
] |
clb-pyc-138 | pygobject/pycairo | afee8cfba448e8c6c100afc6015d31c6aa37e172 | Add RasterSourcePattern
We can track the lifetime of the callbacks set there through set_user_data.
We can ignore the callback data imo. It's not per callback which rules out passing *args through and python closures should work fine.
| {
"image_id": "sha256:070d14e959d62f2f50cecf0d12900951f15be77f94e57ad208c3fecd43426b9f",
"pull_reference": "yutu0814/pyc-case-138-pycairo@sha256:070d14e959d62f2f50cecf0d12900951f15be77f94e57ad208c3fecd43426b9f"
} | python50 | diff --git a/NEWS b/NEWS
index bd0679e..b033225 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
New Features:
* Add :meth:`Surface.map_to_image` and :meth:`Surface.unmap_image` :bug:`51`
+ * Add :class:`RasterSourcePattern` :bug:`48`
Changes:
* Pycairo instances wrapping the same underlying cairo object now c... | diff --git a/tests/test_pattern.py b/tests/test_pattern.py
index ff538df..4263516 100644
--- a/tests/test_pattern.py
+++ b/tests/test_pattern.py
@@ -2,6 +2,52 @@ import cairo
import pytest
+def test_raster_source():
+ pattern = cairo.RasterSourcePattern(cairo.Content.COLOR, 2, 2)
+ assert isinstance(pattern,... | [
"tests/test_pattern.py::test_raster_source"
] | [
"tests/test_pattern.py::test_cmp_hash",
"tests/test_pattern.py::test_get_extend",
"tests/test_pattern.py::test_get_filter"
] |
clb-pyc-139 | pygobject/pycairo | b780969870a9dd8b42b88c8317679e125b5e2aae | device crasher
This crashes, I guess the surface needs to explicitly keep the device alive:
```
f = io.BytesIO()
dev = cairo.ScriptDevice(f)
surface = cairo.ScriptSurface(dev, cairo.Content.COLOR_ALPHA, 42, 10)
surface.get_device()
```
the docs are not clear..
| {
"image_id": "sha256:3ca1ea28317ca091b21d56022d7a8a3e5a08a2950640a83e4449595bd032c86a",
"pull_reference": "yutu0814/pyc-case-139-pycairo@sha256:3ca1ea28317ca091b21d56022d7a8a3e5a08a2950640a83e4449595bd032c86a"
} | python50 | diff --git a/cairo/surface.c b/cairo/surface.c
index 517db53..e16480e 100644
--- a/cairo/surface.c
+++ b/cairo/surface.c
@@ -294,7 +294,7 @@ surface_get_device (PycairoSurface *o) {
cairo_device_t *device = cairo_surface_get_device (o->surface);
if (device == NULL)
Py_RETURN_NONE;
- return PycairoDevice_Fro... | diff --git a/tests/test_surface.py b/tests/test_surface.py
index 7f69f96..1d222b7 100644
--- a/tests/test_surface.py
+++ b/tests/test_surface.py
@@ -242,6 +242,15 @@ def test_script_surface():
assert b"paint" in f.getvalue()
+def test_script_device_device_ref():
+ f = io.BytesIO()
+ dev = cairo.ScriptDev... | [
"tests/test_surface.py::test_script_device_device_ref"
] | [
"tests/test_device.py::test_get_device",
"tests/test_surface.py::test_script_surface",
"tests/test_surface.py::test_script_surface_create_for_target"
] |
clb-pyc-141 | pygobject/pycairo | eeea4de31f9c8f4496f5695ee0258040b401f0b4 | Matrix multiply operator typecheck missing
https://bugs.freedesktop.org/show_bug.cgi?id=89162
| {
"image_id": "sha256:058270e42edd92e8231b22ec7536f033a17bf3bb0e9a674a6fe4793b6c6488ae",
"pull_reference": "yutu0814/pyc-case-141-pycairo@sha256:058270e42edd92e8231b22ec7536f033a17bf3bb0e9a674a6fe4793b6c6488ae"
} | python50 | diff --git a/cairo/matrix.c b/cairo/matrix.c
index 91e8aa1..d6431c6 100644
--- a/cairo/matrix.c
+++ b/cairo/matrix.c
@@ -108,6 +108,10 @@ matrix_multiply (PycairoMatrix *o, PyObject *args) {
static PyObject *
matrix_operator_multiply (PycairoMatrix *o, PycairoMatrix *o2) {
cairo_matrix_t result;
+ if (PyObject_Is... | diff --git a/tests/test_api.py b/tests/test_api.py
index 20bb058..bc9ca03 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -61,6 +61,16 @@ def test_matrix():
m.scale(1.5, 2.5)
m.translate(10, 20)
+ with pytest.raises(TypeError):
+ m * 42
+
+ with pytest.raises(TypeError):
+ m + ... | [
"tests/test_api.py::test_matrix"
] | [
"tests/test_api.py::test_context",
"tests/test_api.py::test_error",
"tests/test_api.py::test_pattern"
] |
clb-pyc-142 | pygobject/pycairo | cd6b840aeab1515343a71a997b0a2ce48fce6d82 | Memory leak in ImageSurface.get_data
When creating an ImageSurface in a loop and calling `get_data()` on it, memory leaks.
It's about 5KB in resident memory, shown by the mem function, and about 1MB of virtual memory, observable in htop, which is about the size of the surface.
Calling `get_data` in the loop on the ... | {
"image_id": "sha256:020d2f34e4341dd12b010801affd93f55ec641d516486848b26389ba8e785c4a",
"pull_reference": "yutu0814/pyc-case-142-pycairo@sha256:020d2f34e4341dd12b010801affd93f55ec641d516486848b26389ba8e785c4a"
} | python50 | diff --git a/cairo/bufferproxy.c b/cairo/bufferproxy.c
new file mode 100644
index 0000000..ff2c2ed
--- /dev/null
+++ b/cairo/bufferproxy.c
@@ -0,0 +1,135 @@
+/* -*- mode: C; c-basic-offset: 2 -*-
+ *
+ * Pycairo - Python bindings for cairo
+ *
+ * Copyright © 2017 Christoph Reiter
+ *
+ * This library is free software;... | diff --git a/tests/test_surface.py b/tests/test_surface.py
index 8aec540..00253c5 100644
--- a/tests/test_surface.py
+++ b/tests/test_surface.py
@@ -2,6 +2,7 @@
import io
import os
+import sys
import array
import tempfile
import struct
@@ -10,6 +11,15 @@ import cairo
import pytest
+def test_image_surface_ge... | [
"tests/test_surface.py::test_image_surface_get_data_refcount"
] | [
"tests/test_surface.py::test_surface_get_content",
"tests/test_surface.py::test_surface_get_format",
"tests/test_surface.py::test_image_surface_png_obj_roundtrip"
] |
clb-pyc-156 | ghaering/pysqlite | d7c44a6b62ccf27ae2a006d32dc25cd49ca45320 | Implement limits
_From [philippe...@gmail.com](https://code.google.com/u/102219890224326646040/) on March 18, 2011 02:38:14_
See http://code.google.com/r/philippemay-limits/ Gerhard, if you agree, would be great to merge.
_Original issue: http://code.google.com/p/pysqlite/issues/detail?id=33_
| {
"image_id": "sha256:b50c96b41175954a45f6372c0271846b3ebe4c3c74422ad91b0d025f38b82ac0",
"pull_reference": "yutu0814/pyc-case-156-pysqlite@sha256:b50c96b41175954a45f6372c0271846b3ebe4c3c74422ad91b0d025f38b82ac0"
} | python50 | diff --git a/doc/sphinx/sqlite3.rst b/doc/sphinx/sqlite3.rst
index e057687..6f03e97 100644
--- a/doc/sphinx/sqlite3.rst
+++ b/doc/sphinx/sqlite3.rst
@@ -353,6 +353,24 @@ Connection Objects
one. All necessary constants are available in the :mod:`sqlite3` module.
+.. method:: Connection.get_limit(limit_id)
+
+ ... | diff --git a/lib/test/hooks.py b/lib/test/hooks.py
index e7cd49d..60adb5b 100644
--- a/lib/test/hooks.py
+++ b/lib/test/hooks.py
@@ -152,10 +152,31 @@ class ProgressTests(unittest.TestCase):
con.execute("select 1 union select 2 union select 3").fetchall()
self.assertEqual(action, 0, "progress handler ... | [
"lib/test/hooks.py::LimitTests::CheckGetLimit",
"lib/test/hooks.py::LimitTests::CheckSetLimit"
] | [
"lib/test/hooks.py::CollationTests::CheckCreateCollationNotCallable",
"lib/test/hooks.py::ProgressTests::CheckProgressHandlerUsed",
"lib/test/hooks.py::ProgressTests::CheckCancelOperation"
] |
clb-pyc-159 | astrofrog/fast-histogram | 085efdad6570e25440beab781ef70e1f81605c12 | Weighted histogram differs from numpy unless the data is explicity copied.
First, thanks for the great library. I suspect I am hitting a memory issue. Unless I explictly copy the arrays before passing them to histogram2D, the results differ from numpy. So far, I only saw this happen when I am using the weighted version... | {
"image_id": "sha256:6c5fb4016d7c9713831eb383ae90b667367d51538afd93fd0bdfd6edefa11313",
"pull_reference": "yutu0814/pyc-case-159-fast-histogram@sha256:6c5fb4016d7c9713831eb383ae90b667367d51538afd93fd0bdfd6edefa11313"
} | python50 | diff --git a/CHANGES.rst b/CHANGES.rst
index 9874643..1def2eb 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,3 +1,11 @@
+0.9 (unreleased)
+----------------
+
+- Fixed a bug that caused incorrect results in the weighted
+ 1-d histogram and the weighted and unweighted 2-d histogram
+ functions if using arrays with di... | diff --git a/fast_histogram/tests/test_histogram.py b/fast_histogram/tests/test_histogram.py
index f4c86a6..198f49b 100644
--- a/fast_histogram/tests/test_histogram.py
+++ b/fast_histogram/tests/test_histogram.py
@@ -201,3 +201,32 @@ def test_array_bins():
histogram2d([1, 2, 3], [1, 2 ,3], bins=[edges, edges],... | [
"fast_histogram/tests/test_histogram.py::test_mixed_strides"
] | [
"fast_histogram/tests/test_histogram.py::test_nd_arrays",
"fast_histogram/tests/test_histogram.py::test_list",
"fast_histogram/tests/test_histogram.py::test_non_contiguous"
] |
clb-pyc-160 | astrofrog/fast-histogram | 76b6f57a27f31cdefc23444f91611a00c9b4332d | Incorrect work for 3d np.array
I'm going to use your package because it is exactly what I need (I just need to add normalization). I found out that `histogram1d()` works incorrectly with 3d np.arrays.
Here is an example of my test:
```
from future import division
from fast_histogram import histogram1d
import nump... | {
"image_id": "sha256:137667158630a877c17512394db970de833e35f35720c82c792bda08c712a10e",
"pull_reference": "yutu0814/pyc-case-160-fast-histogram@sha256:137667158630a877c17512394db970de833e35f35720c82c792bda08c712a10e"
} | python50 | diff --git a/CHANGES.rst b/CHANGES.rst
index 246a4e8..16aaa5a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,7 +1,8 @@
0.5 (unreleased)
----------------
-- No changes yet.
+- Fix bug that caused histograms of n-dimensional arrays to
+ not be computed correctly. [#21]
0.4 (2018-02-12)
----------------
diff --... | diff --git a/fast_histogram/tests/test_histogram.py b/fast_histogram/tests/test_histogram.py
index 2215f02..0771e6a 100644
--- a/fast_histogram/tests/test_histogram.py
+++ b/fast_histogram/tests/test_histogram.py
@@ -85,3 +85,21 @@ def test_2d_compare_with_numpy(size, nx, xmin, xmax, ny, ymin, ymax, weights):
... | [
"fast_histogram/tests/test_histogram.py::test_nd_arrays"
] | [
"fast_histogram/tests/test_histogram.py::test_1d_compare_with_numpy",
"fast_histogram/tests/test_histogram.py::test_2d_compare_with_numpy"
] |
clb-pyc-174 | spglib/spglib | 9458171a2eb9bea9036632a408da7b269ea07bbb | Segmentation fault in `v2.0.1` for a specific cell input
## Describe the bug
Segmentation fault when calling `spglib.get_symmetry` for a specific cell input after pip installing `v2.0.1`. Previous versions are fine.
## To Reproduce
The script below causes a segmentation fault on Linux and MacOS systems (**work... | {
"image_id": "sha256:370afac41f58090a6e2e5b252836e1f5aedc8a31127910c403ce5782eb0c89a1",
"pull_reference": "yutu0814/pyc-case-174-spglib@sha256:370afac41f58090a6e2e5b252836e1f5aedc8a31127910c403ce5782eb0c89a1"
} | python50 | diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 3e239e5..ce928e8 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -24,9 +24,9 @@ If spglib returns different results by changing `symprec`, `angle_tolerance`, or
<!-- A clear an... | diff --git a/test/test_magnetic_symmetry.cpp b/test/test_magnetic_symmetry.cpp
index 6973a91..2355a1d 100644
--- a/test/test_magnetic_symmetry.cpp
+++ b/test/test_magnetic_symmetry.cpp
@@ -360,6 +360,66 @@ TEST(
free(time_reversals);
}
+TEST(
+ test_magnetic_symmetry,
+ test_spg_get_symmetry_with_tensors_... | [
"test/test_magnetic_symmetry.cpp::test_magnetic_symmetry.test_spg_get_symmetry_with_tensors_rough_mag_symprec"
] | [
"test/test_magnetic_symmetry.cpp::test_magnetic_symmetry.test_spg_get_magnetic_symmetry_from_database",
"test/test_magnetic_symmetry.cpp::test_magnetic_symmetry.test_spg_get_magnetic_spacegroup_type",
"test/test_magnetic_symmetry.cpp::test_magnetic_symmetry.test_spg_get_magnetic_dataset_type4"
] |
clb-pyc-175 | spglib/spglib | 4afa84322f83b368dada7e3c6f64c3a17114aaa0 | `get_magnetic_symmetry` causes segmentation fault with high symprec
The following example causes a segmentation fault in the last line (the structure is adapted from https://github.com/materialsproject/pymatgen/issues/2641).
It seems ordinary symprec (1e-5) is fine, but high symprec (1e-2) causes the segmentation faul... | {
"image_id": "sha256:06d09d8c8172c328860448ed7055be235f954a2331396cb29766080771363983",
"pull_reference": "yutu0814/pyc-case-175-spglib@sha256:06d09d8c8172c328860448ed7055be235f954a2331396cb29766080771363983"
} | python50 | diff --git a/src/magnetic_spacegroup.c b/src/magnetic_spacegroup.c
index fd063c9..ab517b3 100644
--- a/src/magnetic_spacegroup.c
+++ b/src/magnetic_spacegroup.c
@@ -496,10 +496,6 @@ err:
representatives = NULL;
}
- if (ref_sg != NULL) {
- free(ref_sg);
- ref_sg = NULL;
- }
retur... | diff --git a/test/test_magnetic_symmetry.cpp b/test/test_magnetic_symmetry.cpp
index 39a972f..6973a91 100644
--- a/test/test_magnetic_symmetry.cpp
+++ b/test/test_magnetic_symmetry.cpp
@@ -300,6 +300,68 @@ TEST(test_magnetic_symmetry, test_spg_get_magnetic_dataset_type4) {
spg_free_magnetic_dataset(dataset);
}
... | [
"test/test_magnetic_symmetry.cpp::test_magnetic_symmetry.test_spg_get_symmetry_with_tensors_rough_symprec"
] | [
"test/test_magnetic_symmetry.cpp::test_magnetic_symmetry.test_spg_get_magnetic_symmetry_from_database",
"test/test_magnetic_symmetry.cpp::test_magnetic_symmetry.test_spg_get_magnetic_spacegroup_type",
"test/test_magnetic_symmetry.cpp::test_magnetic_symmetry.test_spg_get_magnetic_dataset_type4"
] |
clb-pyc-176 | bcdev/jpy | 20cdbb714300bdb2502d9ac44740c85c64cce691 | Python interpreter crash when executing del statement on Java arrays
Python crashes when executing the Python **del** statement on objects that represent Java arrays.
See #51
| {
"image_id": "sha256:b71d6af3399f5af04eeda403e5f39f855e644d8e8574e9b7279a0d3e71dcd221",
"pull_reference": "yutu0814/pyc-case-176-jpy@sha256:b71d6af3399f5af04eeda403e5f39f855e644d8e8574e9b7279a0d3e71dcd221"
} | python50 | diff --git a/CHANGES.txt b/CHANGES.txt
index 5e1b719..032de73 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -6,6 +6,7 @@ jpy Changelog
Version 0.8 (SNAPSHOT)
======================
+* Fixed problem where a Python interpreter crash occurred when executing del statement on Java arrays (issue #52)
* Fixed problem whe... | diff --git a/src/test/python/jpy_array_test.py b/src/test/python/jpy_array_test.py
index 85f159e..431011e 100644
--- a/src/test/python/jpy_array_test.py
+++ b/src/test/python/jpy_array_test.py
@@ -98,6 +98,16 @@ class TestJavaArrays(unittest.TestCase):
self.do_test_array_protocol('java.lang.Object', [None, Non... | [
"src/test/python/jpy_array_test.py::TestJavaArrays::test_array_item_del"
] | [
"src/test/python/jpy_array_test.py::TestJavaArrays::test_array_int",
"src/test/python/jpy_array_test.py::TestJavaArrays::test_array_object",
"src/test/python/jpy_array_test.py::TestJavaArrays::test_buffer_int"
] |
clb-pyc-177 | bcdev/jpy | 7e58cea7c2551d0b590eff3959341ee823ec43c1 | Static method calls not always resolved correctly
How to reproduce:
> jarr = jpy.array(String, ['a', 'b', 'c'])
> jpy.diag.flags = jpy.diag.F_METH
> jstr = Arrays.toString(jarr)
> print(jstr)
Expected output: [a, b, c]
Actual output: [Ljava.lang.String;@23f7d05d
From the debug output it becomes clear that during jpy... | {
"image_id": "sha256:ab2807d63d39277830ff04f241fbbfd256dfcac53b6445f4cfa0b1b0dd61e737",
"pull_reference": "yutu0814/pyc-case-177-jpy@sha256:ab2807d63d39277830ff04f241fbbfd256dfcac53b6445f4cfa0b1b0dd61e737"
} | python50 | diff --git a/CHANGES.txt b/CHANGES.txt
index 5e744ce..98ab2d4 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -6,7 +6,8 @@ jpy Changelog
Version 0.8 (SNAPSHOT)
======================
-* Fixed a problem where Python extensions loaded from Java couldn't see Python symbols (Linux) (issue #38)
+* Fixed problem where a Ja... | diff --git a/src/test/python/jpy_overload_test.py b/src/test/python/jpy_overload_test.py
index 5df06e9..84d5569 100644
--- a/src/test/python/jpy_overload_test.py
+++ b/src/test/python/jpy_overload_test.py
@@ -99,9 +99,10 @@ class TestStaticMethodOverloads(unittest.TestCase):
String = jpy.get_type('java.lang.St... | [
"src/test/python/jpy_overload_test.py::TestStaticMethodOverloads::test_staticMethodIsFoundOverNonStatic"
] | [
"src/test/python/jpy_overload_test.py::TestMethodOverloads::test_2ArgOverloadsWithVaryingTypes",
"src/test/python/jpy_overload_test.py::TestMethodOverloads::test_nArgOverloads",
"src/test/python/jpy_overload_test.py::TestMethodOverloads::test_nArgOverloadsAreFoundInBaseClass"
] |
clb-javac-056 | LWJGL/lwjgl3 | 307ebed6ef6ba420b2165ddb2ec21dd9a37479df | Vulkan: VkFramebufferCreateInfo doesnt allow for just passing the attachmentCount
### Environment
* LWJGL version: `3.3.0`
* LWJGL build #: `SNAPSHOT`
* Java version: `java.version`
* Platform: `Linux`
* Module: `Vulkan`
### Description Of Issue
for ImagelessFramebuffers (A Core feature of vulkan 1.2), yo... | {
"image_id": "sha256:866ae42ecde1bbcaa0581fabe2380bdea159ed944f565066b7abe1c2922a7669",
"pull_reference": "yutu0814/javac-case-056-lwjgl3@sha256:866ae42ecde1bbcaa0581fabe2380bdea159ed944f565066b7abe1c2922a7669"
} | java_author11 | diff --git a/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/KHRCreateRenderpass2.java b/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/KHRCreateRenderpass2.java
index 64663f4..c78275e 100644
--- a/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/KHRCreateRenderpass2.java
+++ b/modules/lwjgl/... | diff --git a/modules/lwjgl/vulkan/src/test/java/org/lwjgl/vulkan/VkFramebufferCreateInfoTest.java b/modules/lwjgl/vulkan/src/test/java/org/lwjgl/vulkan/VkFramebufferCreateInfoTest.java
new file mode 100644
index 0000000..7a8a5dc
--- /dev/null
+++ b/modules/lwjgl/vulkan/src/test/java/org/lwjgl/vulkan/VkFramebufferCreate... | [
"org.lwjgl.vulkan.VkFramebufferCreateInfoTest::testNullAttachmentsPreserveAttachmentCount",
"org.lwjgl.vulkan.VkFramebufferCreateInfoTest::testNullAttachmentsPassGeneratedValidation"
] | [
"org.lwjgl.vulkan.VulkanTest::testParse"
] |
clb-javac-062 | LWJGL/lwjgl3 | 2c8811383487cd827f375abdc534a5d40a174edc | clang_getCString returns garbage in lwjgl-llvm module
### Environment
* LWJGL version: `3.2.2`
* LWJGL build #: `10`
* Java version: `OpenJDK 64-Bit Server VM v11.0.4+11-post-Debian-1bpo91 by Debian `
* Platform: `Linux x86_64`
* Module: `llvm`
### Description
The static method clang_getCString in ClangInde... | {
"image_id": "sha256:a6b182c03068ba6e408878304674f3a8ae922f42b6399c3f1b82fd34166a40a5",
"pull_reference": "yutu0814/javac-case-062-lwjgl3@sha256:a6b182c03068ba6e408878304674f3a8ae922f42b6399c3f1b82fd34166a40a5"
} | java_author11 | diff --git a/doc/notes/3.2.3.md b/doc/notes/3.2.3.md
index 418009d10..9c028450d 100644
--- a/doc/notes/3.2.3.md
+++ b/doc/notes/3.2.3.md
@@ -49,6 +49,8 @@ This build includes the following changes:
* Will be restored in LWJGL 3.3 (disabled by default, enabled with a `Configuration` option).
- Core: Fixed buffer ... | diff --git a/modules/lwjgl/llvm/src/test/java/org/lwjgl/llvm/ClangCStringRegressionTest.java b/modules/lwjgl/llvm/src/test/java/org/lwjgl/llvm/ClangCStringRegressionTest.java
new file mode 100644
--- /dev/null
+++ b/modules/lwjgl/llvm/src/test/java/org/lwjgl/llvm/ClangCStringRegressionTest.java
@@ -0,0 +1,59 @@
+/* Iss... | [
"org.lwjgl.llvm.ClangCStringRegressionTest::binding"
] | [
"org.lwjgl.llvm.ClangCStringRegressionTest::direct"
] |
clb-javac-068 | LWJGL/lwjgl3 | 2c007161cff7ba12023ae48dd28a7856c0c6da3d | NPE when calling VRCompositor.WaitGetPoses without "gamePoseArray"
### Environment
* LWJGL version: `3.2.0`
* LWJGL build #: `X`
* Java version: `java.version`
* Platform: `Windows`
* Module: `openvr`
### Description
Calling VRCompositor.waitGetPoses without a gamePoseArray yields an NPE due to accessing ... | {
"image_id": "sha256:30a5258e746b1190c9b5d6c6aacbbaa04bdd0f11f4aff0b5605a3eeb8445dfaa",
"pull_reference": "yutu0814/javac-case-068-lwjgl3@sha256:30a5258e746b1190c9b5d6c6aacbbaa04bdd0f11f4aff0b5605a3eeb8445dfaa"
} | java_author11 | diff --git a/doc/notes/3.2.1.md b/doc/notes/3.2.1.md
index cd5b03cc2..6d5384670 100644
--- a/doc/notes/3.2.1.md
+++ b/doc/notes/3.2.1.md
@@ -25,6 +25,7 @@ This build includes the following changes:
- Core: Fixed text decoding from buffer with `.position() > 0`.
* Affected all decoders on Java 9+, only UTF-16 on J... | diff --git a/modules/lwjgl/openvr/src/test/java/org/lwjgl/openvr/VRCompositorNullGamePoseTest.java b/modules/lwjgl/openvr/src/test/java/org/lwjgl/openvr/VRCompositorNullGamePoseTest.java
new file mode 100644
--- /dev/null
+++ b/modules/lwjgl/openvr/src/test/java/org/lwjgl/openvr/VRCompositorNullGamePoseTest.java
@@ -0,... | [
"org.lwjgl.openvr.VRCompositorNullGamePoseTest::nullGamePose"
] | [
"org.lwjgl.openvr.VRCompositorNullGamePoseTest::nonNullGamePose"
] |
clb-javac-074 | LWJGL/lwjgl3 | 1fa5a394949cad836a104d8e5093f734d26ff8e1 | JEMalloc trying to load jemalloc32.dll on Windows 10 64 bit
I'm using a 64-bit Windows Operating System and am getting an exception when launching LWJGL. It is expecting to load 32-bit DLL which is not found (I removed it from disk purposefully since this is a 64-bit build).
```
[INFO 11/13/2015 8:22:05 PM] java.lang.... | {
"image_id": "sha256:bf12eb7755f877cb56804e10e4a1336856d076f7fe76c92935124febce443226",
"pull_reference": "yutu0814/javac-case-074-lwjgl3@sha256:bf12eb7755f877cb56804e10e4a1336856d076f7fe76c92935124febce443226"
} | java_author11 | diff --git a/modules/core/src/main/c/system/org_lwjgl_system_MemoryAccess.c b/modules/core/src/main/c/system/org_lwjgl_system_MemoryAccess.c
index 9b62ed631..52a9ba739 100644
--- a/modules/core/src/main/c/system/org_lwjgl_system_MemoryAccess.c
+++ b/modules/core/src/main/c/system/org_lwjgl_system_MemoryAccess.c
@@ -109... | diff --git a/config/tests/case074/org/lwjgl/PointerBuffer.java b/config/tests/case074/org/lwjgl/PointerBuffer.java
new file mode 100644
--- /dev/null
+++ b/config/tests/case074/org/lwjgl/PointerBuffer.java
@@ -0,0 +1,4 @@
+package org.lwjgl;
+
+/** Needed only by the upstream Pointer.java Javadoc and import. */
+public... | [
"org.lwjgl.system.PointerInitializationProbe::allocatorSelection"
] | [
"org.lwjgl.system.PointerInitializationProbe::pointerWidth"
] |
clb-javac-075 | LWJGL/lwjgl3 | f40cd981a1ff81e3da603059a062728ee33ddf02 | DebugAllocator should not raise an error when using null pointers with memFree
When using `org.lwjgl.util.DebugAllocator`, calling `memFree` with a `null` value results in:
> java.lang.IllegalStateException: The memory address specified is not being tracked
However, the JavaDoc of `memFree` specifically says
> If `p... | {
"image_id": "sha256:4c7f04fc70f21a42683dff8794b39b0fdcc2d4e67e6d9d8a58362c89fe72a36f",
"pull_reference": "yutu0814/javac-case-075-lwjgl3@sha256:4c7f04fc70f21a42683dff8794b39b0fdcc2d4e67e6d9d8a58362c89fe72a36f",
"historical_image_id": "sha256:57f4a87865ffa18071bfc3ecb26619c4a7ee79309d58c745d8a786a514c3d56e"
} | java_author11 | diff --git a/modules/core/src/main/java/org/lwjgl/system/MemoryManage.java b/modules/core/src/main/java/org/lwjgl/system/MemoryManage.java
index b8d6d74..8b2a62d 100644
--- a/modules/core/src/main/java/org/lwjgl/system/MemoryManage.java
+++ b/modules/core/src/main/java/org/lwjgl/system/MemoryManage.java
@@ -174,7 +174,... | diff --git a/config/tests/case075/org/lwjgl/system/OriginalApiRegressionTest.java b/config/tests/case075/org/lwjgl/system/OriginalApiRegressionTest.java
new file mode 100644
--- /dev/null
+++ b/config/tests/case075/org/lwjgl/system/OriginalApiRegressionTest.java
@@ -0,0 +1,155 @@
+package org.lwjgl.system;
+
+import ja... | [
"org.lwjgl.system.OriginalApiRegressionTest::nullBufferNoOp"
] | [
"org.lwjgl.system.OriginalApiRegressionTest::mallocFree",
"org.lwjgl.system.OriginalApiRegressionTest::callocFree",
"org.lwjgl.system.OriginalApiRegressionTest::reallocNullFree",
"org.lwjgl.system.OriginalApiRegressionTest::unknownPointerRejected",
"org.lwjgl.system.OriginalApiRegressionTest::bufferFree",
... |
clb-javac-093 | ninia/jep | 9eeb14c4c8b2d0e49feece90a6e330826b49c7dd | Bug in pyembed_version_unsafe: Crash with unsafe malloc
When switching to Python 3.5, Anaconda 2.4.1 , my application using embedded JEP started crashing systematically:
*** glibc detected *** /opt/gfa/java/latest/bin/java: free(): invalid next size (fast): 0x00007f68d0018ac0 ***
======= Backtrace: =========
/lib6... | {
"image_id": "sha256:acc01f758d28a94ab99d3e35eeaee06bd65f9a119daf4b2522e469c6994e3942",
"pull_reference": "yutu0814/javac-case-093-jep@sha256:acc01f758d28a94ab99d3e35eeaee06bd65f9a119daf4b2522e469c6994e3942"
} | java_author11 | diff --git a/src/jep/pyembed.c b/src/jep/pyembed.c
index 63dd1bc..a9f7299 100644
--- a/src/jep/pyembed.c
+++ b/src/jep/pyembed.c
@@ -261,7 +261,7 @@ int pyembed_version_unsafe(void)
int i = 0;
pyversion = Py_GetVersion();
- version = malloc(sizeof(char) * strlen(pyversion));
+ ... | diff --git a/src/jep/test/TestVersionUnsafe.java b/src/jep/test/TestVersionUnsafe.java
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/src/jep/test/TestVersionUnsafe.java
@@ -0,0 +1,14 @@
+package jep.test;
+
+import jep.Jep;
+
+/** Starts and closes the native interpreter through the standard JEP path.... | [
"test_version_unsafe.TestVersionUnsafe.test_version_unsafe"
] | [
"test_array.TestArray.test_initialization",
"test_array.TestArray.test_int_setitem_wrong_type_throws_exception",
"test_array.TestArray.test_iter",
"test_array.TestArray.test_read_file",
"test_array.TestArray.test_set_string_array",
"test_array.TestArray.test_setitem",
"test_array.TestArray.test_setitem_... |
clb-javac-094 | ninia/jep | bc2edaf0242736c2a2940104eebc6aed5a3ad9e6 | Dictionary with None values turns the whole dict to None
Hi folks,
Recently we encountered some buggy behavior of our program, which turned out to be a Jep issue. Whenever we try to retrieve a dictionary containing None values from jep (from python space to Java space), what we get is a null (instead of a dictionary wi... | {
"image_id": "sha256:afb82e4d2a5d2d58231b723073e32e41abfcdb48272923fbe8bb207908efd859",
"pull_reference": "yutu0814/javac-case-094-jep@sha256:afb82e4d2a5d2d58231b723073e32e41abfcdb48272923fbe8bb207908efd859"
} | java_author11 | diff --git a/src/jep/pyembed.c b/src/jep/pyembed.c
index 6e2d900..fbe9455 100644
--- a/src/jep/pyembed.c
+++ b/src/jep/pyembed.c
@@ -1239,10 +1239,10 @@ jobject pyembed_box_py(JNIEnv *env, PyObject *result)
pos = 0;
while (PyDict_Next(result, &pos, &key, &value)) {
jkey = pyembed_box_py(e... | diff --git a/src/jep/test/TestNoneDictionary.java b/src/jep/test/TestNoneDictionary.java
new file mode 100644
index 0000000..b4db6e1
--- /dev/null
+++ b/src/jep/test/TestNoneDictionary.java
@@ -0,0 +1,37 @@
+package jep.test;
+
+import java.util.Map;
+
+import jep.Jep;
+
+/**
+ * Regression test for Issue #40: Python N... | [
"test_none_dictionary.TestNoneDictionaryRegression.test_none_dictionary"
] | [
"test_array.TestArray.test_read_file",
"test_array.TestArray.test_slice",
"test_compare.TestCompare.test_date_compare",
"test_compare.TestCompare.test_int_compare",
"test_dir.TestDir.test_dir_arraylist",
"test_dir.TestDir.test_dir_package",
"test_dir.TestDir.test_dir_subpackage",
"test_exceptions.Test... |
clb-javac-097 | ninia/jep | e4f13ea277ce4809688dde766cc9fd173ec6f63d | JVM crash when closing a jep instance associated to a terminated thread
I have a cache of jep instances which are bound to the container thread that created them.
If the originating thread is disposed by the web container and at a later time I try to close the corresponding jep instance I experience the following JVM c... | {
"image_id": "sha256:8377bd71afd8d7673a7effb4473bbf204e57a1cad7c41fcc54caa11d3c7c1657",
"pull_reference": "yutu0814/javac-case-097-jep@sha256:8377bd71afd8d7673a7effb4473bbf204e57a1cad7c41fcc54caa11d3c7c1657"
} | java_author11 | diff --git a/javadoc/jep/Jep.html b/javadoc/jep/Jep.html
index 3268091..a463464 100644
--- a/javadoc/jep/Jep.html
+++ b/javadoc/jep/Jep.html
@@ -205,18 +205,12 @@ implements java.io.Closeable</pre>
</td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><code>protected void</code></td>
-<td class="colLast"><code><st... | diff --git a/src/jep/test/CloseLifecycleSupport.java b/src/jep/test/CloseLifecycleSupport.java
new file mode 100644
--- /dev/null
+++ b/src/jep/test/CloseLifecycleSupport.java
@@ -0,0 +1,52 @@
+package jep.test;
+
+import jep.Jep;
+import jep.JepException;
+import java.nio.charset.StandardCharsets;
+import java.nio.fil... | [
"test_close_terminated_thread.TestCloseTerminatedThread.test_close_terminated_thread"
] | [
"test_array.TestArray.test_slice",
"test_array.TestArray.test_read_file",
"test_call.TestTypes.test_string",
"test_call.TestTypes.test_enum",
"test_call.TestTypes.test_long",
"test_call.TestTypes.test_double",
"test_call.TestTypes.test_float",
"test_call.TestTypes.test_intobj",
"test_call.TestTypes.... |
clb-javac-099 | ninia/jep | b1ab138dd6d492c7547e24d0b117aeafb112613d | Java setter method invocation fails in an OSGi environment after a bundle redeploy
Hi, I'm testing jep in an OSGi environment.
In a bundle of mine I use Jep to invoke a python function that returns at the end of computation a simple java bean tree.
The Java bean tree is instantiated from mirrorred Python objects that a... | {
"image_id": "sha256:502cb2beb42e3c90413016c2d2ab33dc53fec30912f04ef8eadd47caeae629ee",
"pull_reference": "yutu0814/javac-case-099-jep@sha256:502cb2beb42e3c90413016c2d2ab33dc53fec30912f04ef8eadd47caeae629ee"
} | java_author11 | diff --git a/src/jep/pyembed.c b/src/jep/pyembed.c
index fd7cdfe..2b84efd 100644
--- a/src/jep/pyembed.c
+++ b/src/jep/pyembed.c
@@ -278,12 +278,13 @@ intptr_t pyembed_thread_init(JNIEnv *env, jobject cl, jobject caller) {
Py_INCREF(globals);
// init static module
- jepThread->modjep = initj... | diff --git a/src/jep/test/TestClassLoaderMethodCache.java b/src/jep/test/TestClassLoaderMethodCache.java
new file mode 100644
index 0000000..0000000
--- /dev/null
+++ b/src/jep/test/TestClassLoaderMethodCache.java
@@ -0,0 +1,99 @@
+package jep.test;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.net.U... | [
"test_classloader_method_cache.TestClassLoaderMethodCache.test_classloader_method_cache"
] | [
"test_array.TestArray.test_slice",
"test_array.TestArray.test_read_file",
"test_call.TestTypes.test_string",
"test_call.TestTypes.test_enum",
"test_call.TestTypes.test_long",
"test_call.TestTypes.test_double",
"test_call.TestTypes.test_float",
"test_call.TestTypes.test_intobj",
"test_call.TestTypes.... |
clb-javac-163 | kohlschutter/junixsocket | 90716d6008c5c9cfa8a061f3d23531acaea29777 | "java: symbol lookup error: libjunixsocket-native-2.2.0.so: undefined symbol: stat" on machines with older glibc (< 2.14)
This is a continuation of the previously closed issue https://github.com/kohlschutter/junixsocket/issues/69
I was able to reproduce this same error on my local machine. using version 2.2.0. I a... | {
"image_id": "sha256:c8b7c236569b9eb461c66197356b0b109088ce31fd0f0057f5441a3afb99e497",
"pull_reference": "yutu0814/javac-case-163-junixsocket@sha256:c8b7c236569b9eb461c66197356b0b109088ce31fd0f0057f5441a3afb99e497"
} | java_author11 | diff --git a/junixsocket-native/src/main/c/org_newsclub_net_unix_NativeUnixSocket.c b/junixsocket-native/src/main/c/org_newsclub_net_unix_NativeUnixSocket.c
index fc32a4e2398d3853810029fefaf15ecf2b748d63..06b6a54795ab41b4490e03605baee1959d8f3bda 100644
--- a/junixsocket-native/src/main/c/org_newsclub_net_unix_NativeUni... | diff --git a/junixsocket-common/src/test/java/org/newsclub/net/unix/Issue81GlibcProbe.java b/junixsocket-common/src/test/java/org/newsclub/net/unix/Issue81GlibcProbe.java
new file mode 100644
--- /dev/null
+++ b/junixsocket-common/src/test/java/org/newsclub/net/unix/Issue81GlibcProbe.java
@@ -0,0 +1,57 @@
+package org.... | [
"org.newsclub.net.unix.Issue81CompatibilityTest.testAutomaticFallbackOldGlibc"
] | [
"org.newsclub.net.unix.Issue81CompatibilityTest.testModernGlibcRoundTrip",
"org.newsclub.net.unix.AFUNIXSocketAddressTest.testPort",
"org.newsclub.net.unix.AcceptTimeoutTest.testCatchTimeout",
"org.newsclub.net.unix.AcceptTimeoutTest.testTimeoutAfterDelay",
"org.newsclub.net.unix.BufferOverflowTest.readOutO... |
clb-javac-170 | kohlschutter/junixsocket | 71a134bce58a22fb17a7a14f00799196c0c71a60 | Junix socket 2.7.2 crashes on unix hosts with /tmp mounted as non-exec
**Describe the bug**
We have an application that uses junix-socket 2.7.2 and we are seeing that on SE Linux enabled system with /tmp mounted with non-exec permission, we see the junix socket is crashing. I am attacheding the self test results. We d... | {
"image_id": "sha256:1a70b55b3d05b7f18257b238ba0ab246f055b03023eb9483d1cafc58703fbde3",
"pull_reference": "yutu0814/javac-case-170-junixsocket@sha256:1a70b55b3d05b7f18257b238ba0ab246f055b03023eb9483d1cafc58703fbde3"
} | java_author11 | diff --git a/junixsocket-common/src/main/java/org/newsclub/net/unix/NativeLibraryLoader.java b/junixsocket-common/src/main/java/org/newsclub/net/unix/NativeLibraryLoader.java
index 1e2b46f..faca7d1 100644
--- a/junixsocket-common/src/main/java/org/newsclub/net/unix/NativeLibraryLoader.java
+++ b/junixsocket-common/src/... | diff --git a/benchmark-tests/org/newsclub/net/unix/NoexecProbe.java b/benchmark-tests/org/newsclub/net/unix/NoexecProbe.java
new file mode 100644
--- /dev/null
+++ b/benchmark-tests/org/newsclub/net/unix/NoexecProbe.java
@@ -0,0 +1,82 @@
+package org.newsclub.net.unix;
+
+import java.io.DataInputStream;
+import java.io... | [
"benchmark.noexec.noexec_home_fallback",
"benchmark.noexec.noexec_cwd_fallback"
] | [
"benchmark.noexec.exec_loading",
"benchmark.noexec.all_noexec_rejected",
"org.newsclub.net.unix.AFUNIXSocketAddressTest.testAbstractNamespace()",
"org.newsclub.net.unix.AFUNIXSocketAddressTest.testCraftDeserialization()",
"org.newsclub.net.unix.AFUNIXSocketAddressTest.testFileScheme()",
"org.newsclub.net.... |
clb-javac-069 | LWJGL/lwjgl3 | 427e278dc2402aca025cacd58a80eb4eaa8c4832 | ALUtil.getStringList is returning incorrect values with OpenJDK 10.0.1
### Environment
* LWJGL version: 3.2.0 build 12
* Platform: `Windows`
* Module: `openal`
### Description
ALUtil.getStringList is returning incorrect values on OpenJDK 10.0.1 64 bit.
System.out.println(ALUtil.getStringList(0, ALC11.AL... | {
"image_id": "sha256:28841dd5e2c53ab5b4e5d54a6426005f3011e90ec2fd1fb70db3a5e897eecbda",
"pull_reference": "yutu0814/javac-case-069-lwjgl3@sha256:28841dd5e2c53ab5b4e5d54a6426005f3011e90ec2fd1fb70db3a5e897eecbda",
"historical_image_id": "sha256:8f2c37403299227261579735576bc5a395b8bffe826f44a9ba15f1a8fa3fa41f"
} | java_upstream11 | diff --git a/modules/lwjgl/core/src/main/java/org/lwjgl/system/MemoryTextDecoding.java b/modules/lwjgl/core/src/main/java/org/lwjgl/system/MemoryTextDecoding.java
index 24c556e5f..b318cc164 100644
--- a/modules/lwjgl/core/src/main/java/org/lwjgl/system/MemoryTextDecoding.java
+++ b/modules/lwjgl/core/src/main/java/org/... | diff --git a/modules/lwjgl/core/src/test/java/org/lwjgl/system/MemoryUtilTest.java b/modules/lwjgl/core/src/test/java/org/lwjgl/system/MemoryUtilTest.java
index b187f5489..36f8a1673 100644
--- a/modules/lwjgl/core/src/test/java/org/lwjgl/system/MemoryUtilTest.java
+++ b/modules/lwjgl/core/src/test/java/org/lwjgl/system... | [
"org.lwjgl.system.MemoryUtilTest.testTextDecoding"
] | [
"org.lwjgl.system.MemoryUtilTest.testUTF8"
] |
clb-javac-092 | ninia/jep | d14567567ac1281e978790b9170c981113de282f | Unable to execute compiled script with JEP and Python 3.5.3
I have implemented a compile step to convert .py to .pyc files prior to execution. Each script is cached and if it is present it is used instead of the interpreted .py.
Everything works great when JEP is asked to execute the .pyc when on Python 2.7.13. Ho... | {
"image_id": "sha256:da9c9293093a89f2cfd0e2d584077080c640f0c002cef0589c64e28ac6b550d4",
"pull_reference": "yutu0814/javac-case-092-jep@sha256:da9c9293093a89f2cfd0e2d584077080c640f0c002cef0589c64e28ac6b550d4"
} | java_upstream11 | diff --git a/src/jep/pyembed.c b/src/jep/pyembed.c
index a9f7299..e3a503f 100644
--- a/src/jep/pyembed.c
+++ b/src/jep/pyembed.c
@@ -1330,6 +1330,11 @@ static void pyembed_run_pyc(JepThread *jepThread,
return;
}
(void) PyMarshal_ReadLongFromFile(fp);
+#if PY_MAJOR_VERSION >= 3
+ // Python 3.3 adde... | diff --git a/src/jep/test/TestCompiledScript.java b/src/jep/test/TestCompiledScript.java
new file mode 100644
index 0000000..6f297f8
--- /dev/null
+++ b/src/jep/test/TestCompiledScript.java
@@ -0,0 +1,34 @@
+package jep.test;
+
+import java.lang.IllegalStateException;
+import java.lang.Boolean;
+
+import jep.Jep;
+impo... | [
"test_run_script.TestRunScript.test_compiledScript"
] | [
"test_array.TestArray.test_initialization",
"test_array.TestArray.test_int_setitem_wrong_type_throws_exception",
"test_array.TestArray.test_iter",
"test_array.TestArray.test_read_file",
"test_array.TestArray.test_set_string_array",
"test_array.TestArray.test_setitem",
"test_array.TestArray.test_setitem_... |
clb-javac-100 | ninia/jep | bbf96b5cbb83fe9e4edef71d410d29460084d5fc | JEP should map common Java exceptions to the corresponding Python built-in exceptions and preserve correct import-hook behavior. | {
"image_id": "sha256:be480bb4f1310e82d3b624cc62a6901dc084b6db19bd16ae44a50d19400e22bb",
"pull_reference": "yutu0814/javac-case-100-jep@sha256:be480bb4f1310e82d3b624cc62a6901dc084b6db19bd16ae44a50d19400e22bb"
} | java_upstream11 | diff --git a/jep/hook.py b/jep/hook.py
index c9744ca..74fa143 100644
--- a/jep/hook.py
+++ b/jep/hook.py
@@ -1,5 +1,5 @@
from _jep import forName
-import sys
+import sys, string
from types import ModuleType
@@ -19,13 +19,9 @@ class module(ModuleType):
try:
return super(module, self).__getatt... | diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
index bbe13e8..af49482 100644
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -24,3 +24,56 @@ class TestExceptions(unittest.TestCase):
except Exception as ex:
# because it's not a checked exception, mapped exceptions... | [
"test_exceptions.TestExceptions.test_io_error",
"test_exceptions.TestExceptions.test_type_error",
"test_exceptions.TestExceptions.test_value_err",
"test_exceptions.TestExceptions.test_arithmetic_error",
"test_import.TestImport.test_not_found"
] | [
"test_array.TestArray.test_slice",
"test_array.TestArray.test_read_file",
"test_call.TestTypes.test_string",
"test_call.TestTypes.test_enum",
"test_call.TestTypes.test_long",
"test_call.TestTypes.test_double",
"test_call.TestTypes.test_float",
"test_call.TestTypes.test_intobj",
"test_call.TestTypes.... |
clb-javac-112 | uclouvain/openjpeg | 4f5ec07c315872bdee0885be085ebf57cede2db9 | opj_compress fails to compress lossless on gcc/x86 (-m32)
I am having an issue with OPJ 1.5 and the following file:
http://gdcm.sourceforge.net/thingies/lossless_issue.pgm
It looks as if I cannot do a round-trip lossless compression / decompression, within a 32bits schroot. Everything is fine within a 64bits schroot ... | {
"image_id": "sha256:33a22445240b5d6abba03d5c41a277d721fc8940f51aa3e7b7138daeb2f87305",
"pull_reference": "yutu0814/javac-case-112-openjpeg@sha256:33a22445240b5d6abba03d5c41a277d721fc8940f51aa3e7b7138daeb2f87305"
} | java_upstream11 | diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c
index 8f1c9410..2fccff1c 100644
--- a/src/lib/openjp2/tcd.c
+++ b/src/lib/openjp2/tcd.c
@@ -268,7 +268,7 @@ void opj_tcd_makelayer( opj_tcd_t *tcd,
n = passno + 1;
... | diff --git a/tests/compare_images.c b/tests/compare_images.c
index cb1b1301..b28d4957 100644
--- a/tests/compare_images.c
+++ b/tests/compare_images.c
@@ -85,7 +85,7 @@ static void compare_images_help_display(void)
fprintf(stdout,"\n");
fprintf(stdout," -b \t REQUIRED \t filename to the reference/baseline PGX/TI... | [
"openjpeg.issue571.lossless_roundtrip"
] | [
"openjpeg.issue571.encode_issue571",
"openjpeg.issue571.decode_issue571"
] |
clb-javac-150 | kohlschutter/junixsocket | 7578a2470871e12dd72716925f60d857ad7eb409 | Length of name in abstract namespace is not respected anymore
When upgrading an existing Linux project from junixsocket 2.3.2 to 2.5.1, the below (previously working) code pattern stopped working. The scenario involves a Java process listening on a Unix domain socket in an abstract namespace and a C client process tryi... | {
"image_id": "sha256:1e6da170e3dc03c5245f2c4ce3a47c2b4e200615df73876ed17a2ffa015d5a35",
"pull_reference": "yutu0814/javac-case-150-junixsocket@sha256:1e6da170e3dc03c5245f2c4ce3a47c2b4e200615df73876ed17a2ffa015d5a35"
} | java_upstream11 | diff --git a/junixsocket-common/src/main/java/org/newsclub/net/unix/AFInetAddress.java b/junixsocket-common/src/main/java/org/newsclub/net/unix/AFInetAddress.java
index 9eb15d68..c8078cfb 100644
--- a/junixsocket-common/src/main/java/org/newsclub/net/unix/AFInetAddress.java
+++ b/junixsocket-common/src/main/java/org/ne... | diff --git a/junixsocket-common/src/test/java/org/newsclub/net/unix/AFUNIXSocketAddressTest.java b/junixsocket-common/src/test/java/org/newsclub/net/unix/AFUNIXSocketAddressTest.java
index d17b2013..828125a7 100644
--- a/junixsocket-common/src/test/java/org/newsclub/net/unix/AFUNIXSocketAddressTest.java
+++ b/junixsock... | [
"org.newsclub.net.unix.domain.AbstractNamespaceTest.testBind",
"org.newsclub.net.unix.domain.AbstractNamespaceTest.testBindTrailingZeroes"
] | [
"org.newsclub.net.unix.AFUNIXSocketAddressTest.testAbstractNamespace"
] |
clb-javac-152 | kohlschutter/junixsocket | 4f7667c4655712fc7371c0dbab0de5bf785e5d3d | 0 treated as invalid socket
Hi! I was trying to use `AFUNIXServerSocket.newInstance(FileDescriptor.in)`, with Apache's fcgid module invoking the process with FD 0 as a bound `AF_UNIX` socket, but it throws `SocketException` with "Not a valid socket". This seems to be down to `socket.c` regarding FD 0 as invalid.
I d... | {
"image_id": "sha256:5962f393b2102bb2455cfd24dfcd510cfa97a1ec605644d59164651f63c4a390",
"pull_reference": "yutu0814/clb.eval.x86_64.kohlschutter_1776_junixsocket-97@sha256:5962f393b2102bb2455cfd24dfcd510cfa97a1ec605644d59164651f63c4a390"
} | java_upstream11 | diff --git a/.gitignore b/.gitignore
index 0bef71384..2a8cdb1cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,5 @@ pom.xml.releaseBackup
interpolated-pom.xml
.eclipse-pmd
.*.swp
+.checkstyle
+hs_err_pid*.log
diff --git a/README.md b/README.md
index 157bd2c9e..afcab95be 100644
--- a/README.md
+++ b/README.md
... | diff --git a/benchmark-tests/src/test/java/org/newsclub/net/unix/FileDescriptorCastRegressionTest.java b/benchmark-tests/src/test/java/org/newsclub/net/unix/FileDescriptorCastRegressionTest.java
new file mode 100644
index 000000000..a941a14b8
--- /dev/null
+++ b/benchmark-tests/src/test/java/org/newsclub/net/unix/FileD... | [
"org.newsclub.net.unix.FileDescriptorCastRegressionTest.testForkedVMRedirectStdin"
] | [
"org.newsclub.net.unix.FileDescriptorCastRegressionTest.testStdoutFileDescriptorCast"
] |
clb-javac-160 | kohlschutter/junixsocket | ba3d20f60e7fbf1a49ae1f4bac09111299d104ee | setSoTimeout should force timed out calls to InputStream read to throw java.net.SocketTimeoutException
**Describe the bug**
Setting `AFUNIXSocket.setSoTimeout` should force timed out calls to `InputStream` read to throw `java.net.SocketTimeoutException`. [See here](https://docs.oracle.com/javase/7/docs/api/java/net/So... | {
"image_id": "sha256:15fcd1b85e32e2b60df81e65888a891648cf05421aece7b8fbaa0e829be75e24",
"pull_reference": "yutu0814/javac-case-160-junixsocket@sha256:15fcd1b85e32e2b60df81e65888a891648cf05421aece7b8fbaa0e829be75e24"
} | java_upstream11 | diff --git a/junixsocket-native/src/main/c/send.c b/junixsocket-native/src/main/c/send.c
index bc5a9211..0b664be6 100644
--- a/junixsocket-native/src/main/c/send.c
+++ b/junixsocket-native/src/main/c/send.c
@@ -179,12 +179,12 @@ JNIEXPORT jint JNICALL Java_org_newsclub_net_unix_NativeUnixSocket_write(
free(buf);
... | diff --git a/junixsocket-common/src/test/java/org/newsclub/net/unix/SoTimeoutTest.java b/junixsocket-common/src/test/java/org/newsclub/net/unix/SoTimeoutTest.java
index c1731641..b1ff3691 100644
--- a/junixsocket-common/src/test/java/org/newsclub/net/unix/SoTimeoutTest.java
+++ b/junixsocket-common/src/test/java/org/ne... | [
"org.newsclub.net.unix.SoTimeoutTest.testSocketTimeoutExceptionWrite"
] | [
"org.newsclub.net.unix.SoTimeoutTest.testSocketTimeoutExceptionRead"
] |
clb-javac-161 | kohlschutter/junixsocket | 1df1513c64079a5100cdc2a372558e1f77849c0f | setSoTimeout should force timed out calls to InputStream read to throw java.net.SocketTimeoutException
**Describe the bug**
Setting `AFUNIXSocket.setSoTimeout` should force timed out calls to `InputStream` read to throw `java.net.SocketTimeoutException`. [See here](https://docs.oracle.com/javase/7/docs/api/java/net/So... | {
"image_id": "sha256:969c2650967701f77c0d620466db2df05b0f5f8b6706167dbf117545f54a2ad3",
"pull_reference": "yutu0814/javac-case-161-junixsocket@sha256:969c2650967701f77c0d620466db2df05b0f5f8b6706167dbf117545f54a2ad3"
} | java_upstream11 | diff --git a/junixsocket-native/src/main/c/receive.c b/junixsocket-native/src/main/c/receive.c
index 0077dc2..89378b0 100644
--- a/junixsocket-native/src/main/c/receive.c
+++ b/junixsocket-native/src/main/c/receive.c
@@ -202,7 +202,19 @@ JNIEXPORT jint JNICALL Java_org_newsclub_net_unix_NativeUnixSocket_read(
#if defi... | diff --git a/junixsocket-common/src/test/java/org/newsclub/net/unix/SoTimeoutTest.java b/junixsocket-common/src/test/java/org/newsclub/net/unix/SoTimeoutTest.java
index 00be130..c173164 100644
--- a/junixsocket-common/src/test/java/org/newsclub/net/unix/SoTimeoutTest.java
+++ b/junixsocket-common/src/test/java/org/news... | [
"org.newsclub.net.unix.SoTimeoutTest.testSocketTimeoutException"
] | [
"org.newsclub.net.unix.SoTimeoutTest.issue14Pass"
] |
clb-javac-175 | kohlschutter/junixsocket | 2a159927761424440f7dbd7674992e4b5273a459 | Sending large ByteBuffers is broken
**Describe the bug**
per @kevink-sq
we ran into response problems when using the jetty org.newsclub.net.unix.jetty.AFSocketServerConnector in version 2.6.2 in production. We were looking for alternatives to address the jnr-unixsocket load issue and tried junixsocket.
sympto... | {
"image_id": "sha256:d5eaaed040c90536d22f0ef5548ad00d2ec61b59e698d725014695479df8a20d",
"pull_reference": "yutu0814/javac-case-175-junixsocket@sha256:d5eaaed040c90536d22f0ef5548ad00d2ec61b59e698d725014695479df8a20d"
} | java_upstream11 | diff --git a/junixsocket-common/src/main/java/org/newsclub/net/unix/AFCore.java b/junixsocket-common/src/main/java/org/newsclub/net/unix/AFCore.java
index 7df1083..dcbb00b 100644
--- a/junixsocket-common/src/main/java/org/newsclub/net/unix/AFCore.java
+++ b/junixsocket-common/src/main/java/org/newsclub/net/unix/AFCore.... | diff --git a/junixsocket-jetty/src/test/java/org/eclipse/jetty/unixdomain/server/UnixDomainTest.java b/junixsocket-jetty/src/test/java/org/eclipse/jetty/unixdomain/server/UnixDomainTest.java
index 76e3a6d..9bfa373 100644
--- a/junixsocket-jetty/src/test/java/org/eclipse/jetty/unixdomain/server/UnixDomainTest.java
+++ b... | [
"org.eclipse.jetty.unixdomain.server.UnixDomainTest.testLargeBody"
] | [
"org.eclipse.jetty.unixdomain.server.UnixDomainTest.testHTTPOverUnixDomain"
] |
clb-javac-194 | MDSplus/mdsplus | a73d6e87149698e49026e3bf8055efc6bbe71d90 | Issuing (e.g. from tdic) TreeSetDefault('\null') crashes tdishr
Apparently only names that start with \null crash tdishr. Every other name (correct or incorrect) does not crash the system.
| {
"image_id": "sha256:d12be7067ce51c31c085739c3a3fc4c69d273b8751059234700870a2ce9e5606",
"pull_reference": "yutu0814/javac-case-194-mdsplus@sha256:d12be7067ce51c31c085739c3a3fc4c69d273b8751059234700870a2ce9e5606"
} | java_upstream11 | diff --git a/treeshr/TreeFindNode.c b/treeshr/TreeFindNode.c
index a2ca7950b..547738eb0 100644
--- a/treeshr/TreeFindNode.c
+++ b/treeshr/TreeFindNode.c
@@ -147,7 +147,12 @@ EXPORT int _TreeFindNode(void *dbid, char const *path, int *outnid)
return TreeNOT_OPEN;
if (dblist->remote)
return FindNodeRemote(db... | diff --git a/tditest/testing/test-treeshr.ans b/tditest/testing/test-treeshr.ans
index dd8bccbc1..60452431a 100644
--- a/tditest/testing/test-treeshr.ans
+++ b/tditest/testing/test-treeshr.ans
@@ -18,6 +18,12 @@ getnci('?ember','fullpath')
"\\MAIN::TOP:MEMBER"
getnci('%ember','fullpath')
["\\MAIN::TOP:MEMBER"]
+getn... | [
"MDSplus.tditest.test-treeshr"
] | [
"MDSplus.tditest.test-tdishr"
] |
clb-javac-200 | MDSplus/mdsplus | f6c82e695f5b6964daeec2c4e0bc449a89be892a | UIDs are now 32 bits so can no longer fit uid and gid
On linux UIDs are now 32 bit integers. The 32bits in the NCI are no longer wide enough to hold both a UID and a GID.
I propose dropping the GID and just storing the UID. This will involve changing dir/full to display the UID and username and not try to do the g... | {
"image_id": "sha256:77c71ce09d01e830e0b98f3607636f0ffb03abc24ad51498190f6e7e0fb961dd",
"pull_reference": "yutu0814/javac-case-200-mdsplus@sha256:77c71ce09d01e830e0b98f3607636f0ffb03abc24ad51498190f6e7e0fb961dd"
} | java_upstream11 | diff --git a/tcl/tcl_directory.c b/tcl/tcl_directory.c
index deb9e7a0d13a2b20e6aba3acd93fb1374a3d251b..edf245b6824dc3db76985fcff3529ecfc37928a9 100644
--- a/tcl/tcl_directory.c
+++ b/tcl/tcl_directory.c
@@ -62,23 +62,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**************************... | diff --git a/tditest/testing/test-treeshr.ans b/tditest/testing/test-treeshr.ans
index df6b7e82c0ebe73d5e2a608d23e0fdea9e3d4bfa..f443686d66c54261f4dde23488ceda667330c55c 100644
--- a/tditest/testing/test-treeshr.ans
+++ b/tditest/testing/test-treeshr.ans
@@ -140,7 +140,7 @@ getnci(.subtree:a12,"parent_relationship")
g... | [
"MDSplus.tditest.test-treeshr-owner-id"
] | [
"MDSplus.tditest.test-tdishr"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.