CodeScout
Collection
RL-trained code search agents (1.7B, 4B, 14B) that outperform 2–18× larger models using only a Unix terminal. 📄 arxiv.org/abs/2603.17829 • 12 items • Updated • 6
instance_id stringlengths 10 57 | file_changes listlengths 1 15 | repo stringlengths 7 53 | base_commit stringlengths 40 40 | problem_statement stringlengths 11 52.5k | patch stringlengths 251 7.06M |
|---|---|---|---|---|---|
0b01001001__spectree-64 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "setup.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"spectree/utils.py:parse_par... | 0b01001001/spectree | a091fab020ac26548250c907bae0855273a98778 | [BUG]description for query paramters can not show in swagger ui
Hi, when I add a description for a schema used in query, it can not show in swagger ui but can show in Redoc
```py
@HELLO.route('/', methods=['GET'])
@api.validate(query=HelloForm)
def hello():
"""
hello 注释
:return:
"""
return '... | diff --git a/setup.py b/setup.py
index 1b3cb64..4ef21e6 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
setup(
name='spectree',
- version='0.3.7',
+ version='0.3.8',
author='Keming Yang',
author_email='kemingy94@gmail.... |
12rambau__sepal_ui-411 | [
{
"changes": {
"added_entities": [
"sepal_ui/sepalwidgets/inputs.py:DatePicker.disable"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"sepal_ui/sepalwidgets/inputs.py:DatePicker"
]
},
"file": "sepal_ui/sepalwidgets/inputs.py"
... | 12rambau/sepal_ui | 179bd8d089275c54e94a7614be7ed03d298ef532 | add a disabled trait on the datepicker
I'm currently coding it in a module and the process of disabling a datepicker is uterly boring. I think we could add an extra trait to the layout and pilot the enabling and disabling directly from the built-in widget
```python
self.w_start = sw.DatePicker(label="start", v_mo... | diff --git a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
index 1a982afb..867227cb 100644
--- a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
+++ b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
@@ -8,6 +8,7 @@ sepal\_ui.sepalwi... |
12rambau__sepal_ui-416 | [
{
"changes": {
"added_entities": [
"sepal_ui/sepalwidgets/app.py:DrawerItem.add_notif",
"sepal_ui/sepalwidgets/app.py:DrawerItem.remove_notif"
],
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/app.py:DrawerItem.__init__",
"sepal_ui/sepa... | 12rambau/sepal_ui | 8b76805db051d6d15024bd9ec2d78502cd92132e | Interact with navigation drawers
Sometimes is useful to pass some data from the module model to the app environment and so far we do not have this implementation.
We can add two simple methods to the drawers so they can update their state with icons, badges, and so.
| diff --git a/docs/source/modules/sepal_ui.sepalwidgets.DrawerItem.rst b/docs/source/modules/sepal_ui.sepalwidgets.DrawerItem.rst
index a3280cd3..22b87b44 100644
--- a/docs/source/modules/sepal_ui.sepalwidgets.DrawerItem.rst
+++ b/docs/source/modules/sepal_ui.sepalwidgets.DrawerItem.rst
@@ -7,7 +7,9 @@ sepal\_ui.sepalwi... |
12rambau__sepal_ui-418 | [
{
"changes": {
"added_entities": [
"sepal_ui/sepalwidgets/inputs.py:DatePicker.check_date",
"sepal_ui/sepalwidgets/inputs.py:DatePicker.is_valid_date"
],
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/inputs.py:DatePicker.__init__"
],
... | 12rambau/sepal_ui | 8b76805db051d6d15024bd9ec2d78502cd92132e | Can't instantiate a sw.DatePicker with initial v_model
Is not possible to instantiate the sepal DatePicker with an initially given date through the `v_model` parameter | diff --git a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
index 867227cb..322cca23 100644
--- a/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
+++ b/docs/source/modules/sepal_ui.sepalwidgets.DatePicker.rst
@@ -9,6 +9,7 @@ sepal\_ui.sepalwi... |
12rambau__sepal_ui-459 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/app.py:NavDrawer.__init__"
],
"edited_modules": [
"sepal_ui/sepalwidgets/app.py:NavDrawer"
]
},
"file": "sepal_ui/sepalwidgets/app.py"
},
{
... | 12rambau/sepal_ui | a4b3091755a11ef31a3714858007a93b750b6a79 | crowdin untranslated keys are marked as empty string
These string are interpreted as "something" by the translator leading to empty strings everywhere in the build-in component.
They should be ignored | diff --git a/docs/source/modules/sepal_ui.translator.Translator.rst b/docs/source/modules/sepal_ui.translator.Translator.rst
index 60fa976c..642a3ab6 100644
--- a/docs/source/modules/sepal_ui.translator.Translator.rst
+++ b/docs/source/modules/sepal_ui.translator.Translator.rst
@@ -27,6 +27,7 @@ sepal\_ui.translator.Tr... |
12rambau__sepal_ui-501 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/app.py:LocaleSelect.__init__"
],
"edited_modules": [
"sepal_ui/sepalwidgets/app.py:LocaleSelect"
]
},
"file": "sepal_ui/sepalwidgets/app.py"
},
... | 12rambau/sepal_ui | 7eb3f48735e1cfeac75fecf88dd8194c8daea3d3 | use box for the translator ?
I discovered this lib while working on the geemap drop.
I think it could be super handy for the translator keys and maybe faster. https://github.com/cdgriffith/Box
side note: we will need it anyway for the geemap drop | diff --git a/docs/source/modules/sepal_ui.translator.Translator.rst b/docs/source/modules/sepal_ui.translator.Translator.rst
index 642a3ab6..7f11e39f 100644
--- a/docs/source/modules/sepal_ui.translator.Translator.rst
+++ b/docs/source/modules/sepal_ui.translator.Translator.rst
@@ -2,19 +2,6 @@ sepal\_ui.translator.Tra... |
12rambau__sepal_ui-516 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"sepal_ui/aoi/aoi_model.py:AoiModel"
]
},
"file": "sepal_ui/aoi/aoi_model.py"
},
{
"changes": {
"added_entities": null,
"added_modules": nu... | 12rambau/sepal_ui | 9c319b0c21b8b1ba75173f3f85fd184747c398de | deprecate zip_dir
https://github.com/12rambau/sepal_ui/blob/a9255e7c566aac31ee7f8303e74fb7e8a3d57e5f/sepal_ui/aoi/aoi_model.py#L64
This folder is created on AOI call but is not used anymore as we are using the tmp module to create the tmp directory. | diff --git a/docs/source/modules/sepal_ui.aoi.AoiModel.rst b/docs/source/modules/sepal_ui.aoi.AoiModel.rst
index 0f5b8f1a..ccdcab52 100644
--- a/docs/source/modules/sepal_ui.aoi.AoiModel.rst
+++ b/docs/source/modules/sepal_ui.aoi.AoiModel.rst
@@ -12,7 +12,6 @@ sepal\_ui.aoi.AoiModel
~AoiModel.NAME
~AoiM... |
12rambau__sepal_ui-518 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/mapping/aoi_control.py:AoiControl.__init__"
],
"edited_modules": [
"sepal_ui/mapping/aoi_control.py:AoiControl"
]
},
"file": "sepal_ui/mapping/aoi_control.py"
... | 12rambau/sepal_ui | 698d446e33062934d49f9edb91cbe303b73e786f | add posibility to add text in the map_btn
The current implementation of the map_btn only authorize to use logos. It would be nice to let the opportunity to use letters as in the SEPAL main framework (3 letters only in capital) | diff --git a/sepal_ui/mapping/aoi_control.py b/sepal_ui/mapping/aoi_control.py
index 01a6aa48..ae143d2c 100644
--- a/sepal_ui/mapping/aoi_control.py
+++ b/sepal_ui/mapping/aoi_control.py
@@ -36,7 +36,7 @@ class AoiControl(WidgetControl):
kwargs["position"] = kwargs.pop("position", "topright")
# crea... |
12rambau__sepal_ui-535 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/mapping/sepal_map.py:SepalMap.zoom_bounds"
],
"edited_modules": [
"sepal_ui/mapping/sepal_map.py:SepalMap"
]
},
"file": "sepal_ui/mapping/sepal_map.py"
},
... | 12rambau/sepal_ui | 6a619361e90ab318463e2094fc9dbcbc85dd2e8f | create a translator function to check the use of the keys
If you are updating many time the same application you may end up removing some or all the existing keys. It complex to visually assess if all the remaining keys in the dict are used.
Maybe a parser could be interesting to check all the folder files and vali... | diff --git a/sepal_ui/mapping/sepal_map.py b/sepal_ui/mapping/sepal_map.py
index 57693e56..e2860daf 100644
--- a/sepal_ui/mapping/sepal_map.py
+++ b/sepal_ui/mapping/sepal_map.py
@@ -227,8 +227,8 @@ class SepalMap(ipl.Map):
# Center map to the centroid of the layer(s)
self.center = [(maxy - miny) / 2 ... |
12rambau__sepal_ui-574 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/translator/translator.py:Translator.__init__",
"sepal_ui/translator/translator.py:Translator.search_key"
],
"edited_modules": [
"sepal_ui/translator/translator.py:Tr... | 12rambau/sepal_ui | 412e02ef08df68c256f384081d2c7eaecc09428e | _protected_keys are not raising error when used in translator
`protected_keys` are not raising errors when used in a json translation file. It is also happening with the "`FORBIDDEN_KEYS`" when are used in nested levels.
To reproduce...
```Python
# set up the appropriate keys for each language
keys = {
"en... | diff --git a/sepal_ui/translator/translator.py b/sepal_ui/translator/translator.py
index 1ad14c98..ea647223 100644
--- a/sepal_ui/translator/translator.py
+++ b/sepal_ui/translator/translator.py
@@ -65,7 +65,7 @@ class Translator(Box):
# check if forbidden keys are being used
# this will raise an er... |
12rambau__sepal_ui-601 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/inputs.py:DatePicker.__init__",
"sepal_ui/sepalwidgets/inputs.py:DatePicker.check_date"
],
"edited_modules": [
"sepal_ui/sepalwidgets/inputs.py:DatePick... | 12rambau/sepal_ui | 89f8d87dc4f83bfc2e96a111692ae252e470e8bc | Datepicker is not fully customizable
As our main `DatePicker` usage is as in its "menu" form, it is not handy to set some use cases:
- set a min_, max_ value directly (you have to `datepicker.children.....min_`...)
- set a default initial value with `v_model` since it is hardcoded from the beginning
- the `jslink` "... | diff --git a/sepal_ui/sepalwidgets/inputs.py b/sepal_ui/sepalwidgets/inputs.py
index 95fda88a..6293f828 100644
--- a/sepal_ui/sepalwidgets/inputs.py
+++ b/sepal_ui/sepalwidgets/inputs.py
@@ -6,6 +6,7 @@ import ee
import geopandas as gpd
import ipyvuetify as v
import pandas as pd
+from deprecated.sphinx import versio... |
12rambau__sepal_ui-608 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/reclassify/reclassify_view.py:ImportMatrixDialog.__init__",
"sepal_ui/reclassify/reclassify_view.py:SaveMatrixDialog.__init__",
"sepal_ui/reclassify/reclassify_view.py:Reclassif... | 12rambau/sepal_ui | 2d5126f5e9521470cbeb5ad374f74046e889f771 | create a function to set the text of the btn dynamically
icon and text should be editable dynamically
https://github.com/12rambau/sepal_ui/blob/8af255ec0d1cb3ad4dd74d021ad140fafef756f6/sepal_ui/sepalwidgets/btn.py#L38 | diff --git a/docs/source/widgets/btn.rst b/docs/source/widgets/btn.rst
index 949d5468..91d92967 100644
--- a/docs/source/widgets/btn.rst
+++ b/docs/source/widgets/btn.rst
@@ -20,8 +20,8 @@ The default color is set to "primary".
v.theme.dark = False
btn = sw.Btn(
- text = "The One btn",
- i... |
12rambau__sepal_ui-644 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/btn.py:Btn.__init__",
"sepal_ui/sepalwidgets/btn.py:Btn._set_text"
],
"edited_modules": [
"sepal_ui/sepalwidgets/btn.py:Btn"
]
},
"file": ... | 12rambau/sepal_ui | 8a8196e3c7893b7a0aebdb4910e83054f59e0374 | sepal_ui.Btn does't work as expected
I want to create a simple Icon button, to do so:
```python
sw.Btn(icon=True, gliph ="mdi-plus")
```
Doing this, without "msg" parameter will add the default text to the button which is "click", I think is worthless having that value.
So if I want to remove the default text... | diff --git a/sepal_ui/sepalwidgets/btn.py b/sepal_ui/sepalwidgets/btn.py
index 137622fa..105f6160 100644
--- a/sepal_ui/sepalwidgets/btn.py
+++ b/sepal_ui/sepalwidgets/btn.py
@@ -25,6 +25,9 @@ class Btn(v.Btn, SepalWidget):
.. deprecated:: 2.13
``text`` and ``icon`` will be replaced by ``msg`` and ``gli... |
12rambau__sepal_ui-646 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/alert.py:Alert.update_progress"
],
"edited_modules": [
"sepal_ui/sepalwidgets/alert.py:Alert"
]
},
"file": "sepal_ui/sepalwidgets/alert.py"
}
] | 12rambau/sepal_ui | 8a8196e3c7893b7a0aebdb4910e83054f59e0374 | allow other values for progress
Now that we are supporting tqdm it should be possible to support progress values that are not between 0 and 1. https://github.com/12rambau/sepal_ui/blob/c15a83dc6c92d076e6932afab4e4b2987585894b/sepal_ui/sepalwidgets/alert.py#L98 | diff --git a/sepal_ui/sepalwidgets/alert.py b/sepal_ui/sepalwidgets/alert.py
index 68e3f115..de6d4abb 100644
--- a/sepal_ui/sepalwidgets/alert.py
+++ b/sepal_ui/sepalwidgets/alert.py
@@ -94,9 +94,10 @@ class Alert(v.Alert, SepalWidget):
self.show()
# cast the progress to float
+ total = tqdm_... |
12rambau__sepal_ui-747 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/sepalwidget.py:SepalWidget.get_children"
],
"edited_modules": [
"sepal_ui/sepalwidgets/sepalwidget.py:SepalWidget"
]
},
"file": "sepal_ui/sepalwid... | 12rambau/sepal_ui | a683a7665a9710acd5ca939308e18539e92014b7 | make get_children recursively again
previous implementation used recursion to find all children within the widget that matches with the query, now it returns only first level of matching children, could we make it reclusively again? | diff --git a/sepal_ui/sepalwidgets/sepalwidget.py b/sepal_ui/sepalwidgets/sepalwidget.py
index 40826809..00cbe015 100644
--- a/sepal_ui/sepalwidgets/sepalwidget.py
+++ b/sepal_ui/sepalwidgets/sepalwidget.py
@@ -177,11 +177,11 @@ class SepalWidget(v.VuetifyWidget):
is_klass = isinstance(w, klass)
... |
12rambau__sepal_ui-758 | [
{
"changes": {
"added_entities": [
"sepal_ui/sepalwidgets/inputs.py:DatePicker.today"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"sepal_ui/sepalwidgets/inputs.py:DatePicker"
]
},
"file": "sepal_ui/sepalwidgets/inputs.py"
}... | 12rambau/sepal_ui | 27a18eba37bec8ef1cabfa6bcc4022164ebc4c3b | add a today() method for the datepicker
It's something I do a lot, setting up the datepicker to today as:
```python
from sepal_ui import sepawidgets as sw
from datetime import datetime
dp = sw.Datepicker()
# do stulff and as a fallback do
dp.v_model = datetime.today().strftime("%Y-%m-%d")
```
In... | diff --git a/sepal_ui/sepalwidgets/inputs.py b/sepal_ui/sepalwidgets/inputs.py
index 04e69553..0cb7a9bf 100644
--- a/sepal_ui/sepalwidgets/inputs.py
+++ b/sepal_ui/sepalwidgets/inputs.py
@@ -156,6 +156,12 @@ class DatePicker(v.Layout, SepalWidget):
return
+ def today(self) -> Self:
+ """Update th... |
12rambau__sepal_ui-774 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/inputs.py:FileInput.__init__",
"sepal_ui/sepalwidgets/inputs.py:FileInput._get_items"
],
"edited_modules": [
"sepal_ui/sepalwidgets/inputs.py:FileInput"... | 12rambau/sepal_ui | 2576446debe3544f3edeb208c76f671ffc0c8650 | Restrict maximum parent level from InputFile
I have some apps where I’m interested on only search up to certain level, i.e., module_downloads, and I think that in the most of them, the user doesn’t need to go upper from sepal_user, once they start clicking, they could easily get lost over multiple folders.
what if w... | diff --git a/sepal_ui/sepalwidgets/inputs.py b/sepal_ui/sepalwidgets/inputs.py
index 04e69553..cd561bb5 100644
--- a/sepal_ui/sepalwidgets/inputs.py
+++ b/sepal_ui/sepalwidgets/inputs.py
@@ -205,6 +205,9 @@ class FileInput(v.Flex, SepalWidget):
clear: Optional[v.Btn] = None
"clear btn to remove everything and... |
12rambau__sepal_ui-814 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/sepalwidgets/alert.py:Alert.update_progress"
],
"edited_modules": [
"sepal_ui/sepalwidgets/alert.py:Alert"
]
},
"file": "sepal_ui/sepalwidgets/alert.py"
}
] | 12rambau/sepal_ui | 6d825ae167f96ad2e7b76b96ca07de562f74dcf0 | avoid to force developer to set total each time
I should be able to init the progress of an Alert first and then simply update the progress.
as in:
```python
from sepal_ui import sepalwidgets as sw
alert = sw.Alert()
# init
alert.update_progress(0, "toto", total=10)
# loop
for i in range(10):
... | diff --git a/sepal_ui/sepalwidgets/alert.py b/sepal_ui/sepalwidgets/alert.py
index 19718f51..8dafab92 100644
--- a/sepal_ui/sepalwidgets/alert.py
+++ b/sepal_ui/sepalwidgets/alert.py
@@ -108,14 +108,17 @@ class Alert(v.Alert, SepalWidget):
Args:
progress: the progress status in float
... |
12rambau__sepal_ui-896 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sepal_ui/planetapi/planet_model.py:PlanetModel.init_session",
"sepal_ui/planetapi/planet_model.py:PlanetModel.get_mosaics",
"sepal_ui/planetapi/planet_model.py:PlanetModel.get_quad"
... | 12rambau/sepal_ui | b91b2a2c45b4fa80a7a0c699df978ebc46682260 | get_mosaics from planet api fails
`get_mosaics` --and probably-- `get_quads` fails when the authentication process is done `from_login`... test has been passed because we are only testing the initialization of the `Planet` `from_key` but not to get elements from it | diff --git a/sepal_ui/message/en/locale.json b/sepal_ui/message/en/locale.json
index abdea912..b65a232d 100644
--- a/sepal_ui/message/en/locale.json
+++ b/sepal_ui/message/en/locale.json
@@ -85,14 +85,17 @@
"exception": {
"empty": "Please fill the required field(s).",
"invalid": "Invalid email or pas... |
15five__scim2-filter-parser-13 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "setup.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/scim2_filter_parser/tra... | 15five/scim2-filter-parser | 3ed1858b492542d0bc9b9e9ab9547641595e28c1 | Return NamedTuple rather than tuple.
It would be nice to return a NamedTuple instead of a tuple here:
https://github.com/15five/scim2-filter-parser/blob/7ddc216f8c3dd1cdb2152944187e8f7f5ee07be2/src/scim2_filter_parser/transpilers/sql.py#L148
This way parts of each path could be accessed by name rather than by in... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 12a5d4f..178f172 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,6 +1,10 @@
CHANGE LOG
==========
+0.3.5
+-----
+- Update the sql.Transpiler to collect namedtuples rather than tuples for attr paths
+
0.3.4
-----
- Update tox.ini and clean up linting errors
di... |
15five__scim2-filter-parser-20 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"src/scim2_filter_parser/parser.py:SCIMParser"
]
},
"file": "src/scim2_filter_parser/parser.py"
}
] | 15five/scim2-filter-parser | 08de23c5626556a37beced764a22a2fa7021989b | Issue when using multiple "or" or "and"
Hi,
I am facing an issue, where the query having two or more "and" or more than two "or" is failing.
Have a look at examples below: -
1)```"displayName co \"username\" or nickName co \"username\" or userName co \"username\""```
```"displayName co \"username\" and nick... | diff --git a/src/scim2_filter_parser/parser.py b/src/scim2_filter_parser/parser.py
index 516f65d..12c693e 100644
--- a/src/scim2_filter_parser/parser.py
+++ b/src/scim2_filter_parser/parser.py
@@ -110,9 +110,8 @@ class SCIMParser(Parser):
# which takes precedence over "or"
# 3. Attribute operators
... |
15five__scim2-filter-parser-31 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "setup.py"
},
{
"changes": {
"added_entities": [
"src/scim2_filter_parser/ast.py:AttrPath.case_insensitive",
"src/scim2_filter_pa... | 15five/scim2-filter-parser | c794bf3e50e3cb71bdcf919feb43d11912907dd2 | userName attribute should be case-insensitive, per the RFC
From https://github.com/15five/django-scim2/issues/76
> See https://datatracker.ietf.org/doc/html/rfc7643#section-4.1.1: (userName)
> This attribute is REQUIRED and is case insensitive.
> Currently this case-insensitive behavior is not implemented and... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 14f28e6..35eb5c5 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,5 +1,12 @@
CHANGE LOG
==========
+0.4.0
+-----
+- Update userName to be case insensitive. #31
+
+BREAKING CHANGE: This allows queries that did not match rows before to
+match rows now!
+
0.3.9
... |
20c__ctl-3 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/ctl/plugins/pypi.py:PyPIPlugin.dist_path",
"src/ctl/plugins/pypi.py:PyPIPlugin.prepare"
],
"edited_modules": [
"src/ctl/plugins/pypi.py:PyPIPluginConfig",
"src/ct... | 20c/ctl | 879af37647e61767a1ede59ffd353e4cfd27cd6f | PyPI plugin: `target` config attribute should be `repository`
This is so it's in line with the version plugin, which currently uses `repository` to specify the target repository
The pypi plugin currently uses `repository` to specify which PyPI repository to use, this should change to `pypi_repository` as well.
Sh... | diff --git a/src/ctl/plugins/pypi.py b/src/ctl/plugins/pypi.py
index 5d979af..a6117af 100644
--- a/src/ctl/plugins/pypi.py
+++ b/src/ctl/plugins/pypi.py
@@ -32,7 +32,7 @@ class PyPIPluginConfig(release.ReleasePluginConfig):
config_file = confu.schema.Str(help="path to pypi config file (e.g. ~/.pypirc)")
# P... |
2gis__k8s-handle-120 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"k8s_handle/templating.py:Renderer._evaluate_tags"
],
"edited_modules": [
"k8s_handle/templating.py:Renderer"
]
},
"file": "k8s_handle/templating.py"
}
] | 2gis/k8s-handle | 0ce48ecc5cd78eac5894241468a53080c3ccec64 | skip-tags does not work
Hello,
it seems `--skip-tags` does not work. Steps to reproduce:
```
git clone git@github.com:2gis/k8s-handle-example.git
```
Edit config.yaml, add some tag
```
staging:
templates:
- template: configmap.yaml.j2
- template: deployment.yaml.j2
- template: service.yaml.j2
ta... | diff --git a/k8s_handle/templating.py b/k8s_handle/templating.py
index 7f2d6b7..445a09e 100644
--- a/k8s_handle/templating.py
+++ b/k8s_handle/templating.py
@@ -195,7 +195,10 @@ class Renderer:
@staticmethod
def _evaluate_tags(tags, only_tags, skip_tags):
- if only_tags is None and skip_tags is None:... |
2gis__k8s-handle-73 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"k8s_handle/config.py:_process_variable"
],
"edited_modules": [
"k8s_handle/config.py:_process_variable"
]
},
"file": "k8s_handle/config.py"
},
{
"changes": {
... | 2gis/k8s-handle | dec5c73ec1bcd694bd45651901d68cd933721b3e | It is not possible to concatenate several environment variables into one value
Привет.
Столкнулся с невозможностью одновременного использования нескольких переменных окружения при объявлении переменной в config.yaml. Небольшой пример:
Мы при развертывании сервиса иногда создаем более одного деплоя, registry используе... | diff --git a/.dockerignore b/.dockerignore
index d3f33a2..fea1e67 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -6,5 +6,10 @@ Dockerfile*
.gitignore
.idea/
.tox/
+.travis.yml
+tox.ini
__pychache__
htmlcov/
+tests/
+*.png
+
diff --git a/k8s_handle/config.py b/k8s_handle/config.py
index acbf34f..6c2564f 100644
-... |
2gis__k8s-handle-84 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"k8s_handle/config.py:load_context_section"
],
"edited_modules": [
"k8s_handle/config.py:load_context_section"
]
},
"file": "k8s_handle/config.py"
}
] | 2gis/k8s-handle | 92f764f44301bcd406d588a4db5cf0333fc1ccc2 | Empty section passes validation
Empty section string (-s "") passes validation and causes not wrapped KeyError. | diff --git a/k8s_handle/config.py b/k8s_handle/config.py
index df08de4..17cdb33 100644
--- a/k8s_handle/config.py
+++ b/k8s_handle/config.py
@@ -156,6 +156,9 @@ def _update_context_recursively(context, include_history=[]):
def load_context_section(section):
+ if not section:
+ raise RuntimeError('Empty s... |
3YOURMIND__django-migration-linter-113 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"django_migration_linter/migration_linter.py:MigrationLinter.read_migrations_list",
"django_migration_linter/migration_linter.py:MigrationLinter._gather_migrations_git",
"django_migration... | 3YOURMIND/django-migration-linter | 799957a5564e8ca1ea20d7cf643abbc21db4e40f | Bug: --include-migrations-from argument being ignored
In version 2.2.2, using the `--include-migration-from` argument and specifying a migration .py file will not work and `lintmigrations` will run on all migration files.
On [line 299](https://github.com/3YOURMIND/django-migration-linter/blob/799957a5564e8ca1ea20d7c... | diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py
index 31f8fea..c5ea333 100644
--- a/django_migration_linter/migration_linter.py
+++ b/django_migration_linter/migration_linter.py
@@ -289,8 +289,13 @@ class MigrationLinter(object):
@classmethod
def read_m... |
3YOURMIND__django-migration-linter-156 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"django_migration_linter/migration_linter.py:MigrationLinter.lint_migration",
"django_migration_linter/migration_linter.py:MigrationLinter.lint_runsql"
],
"edited_modules": [
... | 3YOURMIND/django-migration-linter | a119b4ba1fdfd27bf950e109771c6fd3e41d48dc | Raise backend specific deployment implications
For instance, certain operations will potentially lock a table, which can have implications during deployment (lots of operations require the table => we don't acquire the lock waiting to migrate / one we have the lock, long migration, locking the table and making producti... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 75223f0..1ee0f0b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,9 @@
* the positional argument `GIT_COMMIT_ID` becomes an optional argument with the named parameter ` --git-commit-id [GIT_COMMIT_ID]`
* the `lintmigrations` command takes now two positional argume... |
3YOURMIND__django-migration-linter-186 | [
{
"changes": {
"added_entities": [
"django_migration_linter/sql_analyser/postgresql.py:has_create_index"
],
"added_modules": [
"django_migration_linter/sql_analyser/postgresql.py:has_create_index"
],
"edited_entities": null,
"edited_modules": [
"django... | 3YOURMIND/django-migration-linter | aef3db3e4198d06c38bc4b0874e72ed657891eea | Linter fails on CREATE INDEX when creating a new table
Here is an example `CreateModel` from Django:
```python
migrations.CreateModel(
name='ShipmentMetadataAlert',
fields=[
('deleted_at', models.DateTimeField(blank=True, db_index=True, null=True)),
('created_at', common.fields.CreatedFi... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d1ec8e5..15fefc0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,8 @@
-## 4.0.0
+## 4.0.0 (unreleased)
- Drop support for Python 2.7 and 3.5
- Drop support for Django 1.11, 2.0, 2.1, 3.0
+- Fix index creation detection when table is being created in the transac... |
3YOURMIND__django-migration-linter-222 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"django_migration_linter/migration_linter.py:MigrationLinter.get_runpython_model_import_issues"
],
"edited_modules": [
"django_migration_linter/migration_linter.py:MigrationLinter"
... | 3YOURMIND/django-migration-linter | 3baf9487bde6ae27c3ba7623a410ab6c39bb0584 | Linter failing when using django 'through'
### through doc
https://docs.djangoproject.com/en/4.0/ref/models/fields/#django.db.models.ManyToManyField.through
### Example code
```
def forwards_func(apps, schema_editor):
Question = apps.get_model("solution", "Question")
...
Question.many_to_may.throug... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a1b5213..300fe00 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 4.1.1 (unreleased)
+
+- Fixed `RunPython` model import check when using a `through` object like `MyModel.many_to_many.through.objects.filter(...)` (issue #218)
+
## 4.1.0
- Allow configur... |
3YOURMIND__django-migration-linter-258 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"django_migration_linter/sql_analyser/base.py:has_not_null_column"
],
"edited_modules": [
"django_migration_linter/sql_analyser/base.py:has_not_null_column"
]
},
"file":... | 3YOURMIND/django-migration-linter | 366d16b01a72d0baa54fef55761d846b0f05b8dd | Adding an index with a NOT NULL condition incorrectly triggers NOT_NULL rule
Adding an index with a `WHERE` clause including `NOT NULL` gets flagged as a `NOT NULL constraint on columns` error.
## Steps to reproduce
The follow migration operation:
```python
AddIndexConcurrently(
model_name="prediction",
... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3069d91..beafd65 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,10 +4,21 @@
Instead, the linter crashes and lets the `sqlmigrate` error raise, in order to avoid letting a problematic migration pass.
One common reason for such an error is the SQL generation which requ... |
3YOURMIND__django-migration-linter-47 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"django_migration_linter/migration_linter.py:_main"
],
"edited_modules": [
"django_migration_linter/migration_linter.py:_main"
]
},
"file": "django_migration_linter/migr... | 3YOURMIND/django-migration-linter | fbf0f4419336fcb1235fa57f5575ad2593354e44 | Add --version option
Pretty straightforward. Have a `--version` that prints the current version of the linter. | diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py
index f9c0ab1..03c2054 100644
--- a/django_migration_linter/migration_linter.py
+++ b/django_migration_linter/migration_linter.py
@@ -20,7 +20,7 @@ from subprocess import Popen, PIPE
import sys
from .cache import ... |
42DIGITAL__bqtools-11 | [
{
"changes": {
"added_entities": [
"fourtytwo/bqtools/__init__.py:BQTable.__repr__"
],
"added_modules": null,
"edited_entities": [
"fourtytwo/bqtools/__init__.py:BQTable.__eq__",
"fourtytwo/bqtools/__init__.py:BQTable._set_schema",
"fourtytwo/bqtools/__ini... | 42DIGITAL/bqtools | 98ce0de1d976f33cf04217ef50f864f74bd5ed52 | append data to empty table.data fails - required for schema_only
```python
>>> from fourtytwo import bqtools
>>> table = bqtools.read_bq(table_ref='project.dataset.table', schema_only=True)
>>> table.append([])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/bqtools/fourtytwo/bqt... | diff --git a/fourtytwo/bqtools/__init__.py b/fourtytwo/bqtools/__init__.py
index 9542242..136e18c 100644
--- a/fourtytwo/bqtools/__init__.py
+++ b/fourtytwo/bqtools/__init__.py
@@ -104,14 +104,21 @@ class BQTable(object):
def __init__(self, schema=None, data=None):
if DEBUG:
logging.debug('bq... |
4Catalyzer__flask-resty-248 | [
{
"changes": {
"added_entities": [
"flask_resty/compat.py:_strict_run",
"flask_resty/compat.py:schema_load",
"flask_resty/compat.py:schema_dump"
],
"added_modules": [
"flask_resty/compat.py:_strict_run",
"flask_resty/compat.py:schema_load",
"flas... | 4Catalyzer/flask-resty | ac43163453fab1b23434d29f71a3c1b34b251c0a | Support Marshmallow 3
[From here](https://marshmallow.readthedocs.io/en/latest/upgrading.html#schemas-are-always-strict):
> Schema().load and Schema().dump don’t return a (data, errors) tuple any more. Only data is returned. | diff --git a/.travis.yml b/.travis.yml
index 708e4a9..00ffb59 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,16 +4,21 @@ services:
- postgresql
matrix:
include:
- - { python: "2.7", env: "TOXENV=py-full DATABASE_URL=postgres://localhost/travis_ci_test" }
- - { python: "3.5", env: "TOXENV=py-full DATA... |
4degrees__clique-26 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"source/clique/collection.py:Collection.format"
],
"edited_modules": [
"source/clique/collection.py:Collection"
]
},
"file": "source/clique/collection.py"
}
] | 4degrees/clique | a89507304acce5931f940c34025a6547fa8227b5 | collection.format hits maximum recursion depth for collections with lots of holes.
The following code gives an example.
```python
paths = ["name.{0:04d}.jpg".format(x) for x in range(2000)[::2]]
collection = clique.assemble(paths)[0][0]
collection.format("{head}####{tail}")
``` | diff --git a/source/clique/collection.py b/source/clique/collection.py
index 0c3b296..db9276c 100644
--- a/source/clique/collection.py
+++ b/source/clique/collection.py
@@ -251,15 +251,25 @@ class Collection(object):
else:
data['padding'] = '%d'
- if self.indexes:
+ if '{holes}' in... |
6si__shipwright-79 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"shipwright/base.py:Shipwright.__init__",
"shipwright/base.py:Shipwright._build"
],
"edited_modules": [
"shipwright/base.py:Shipwright"
]
},
"file": "shipwright/... | 6si/shipwright | 7d3ccf39acc79bb6d33a787e773227358764dd2c | docker pull all images for current branch and master before building
Because our buildserver forgets the docker cache between builds we pull the previous build for all the images.
it would be great if we could get shipwright to do it.
Otherwise a command like "shipright images" which lists all the images that shi... | diff --git a/CHANGES.rst b/CHANGES.rst
index f034d37..89cf5f1 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,7 +1,8 @@
0.5.1 (unreleased)
------------------
-- Nothing changed yet.
+- Add --pull-cache to pull images from repository before building.
+ (`Issue #49 <https://github.com/6si/shipwright/issues/49>`_).
... |
AI-SDC__AI-SDC-94 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aisdc/attacks/report.py:NumpyArrayEncoder.default"
],
"edited_modules": [
"aisdc/attacks/report.py:NumpyArrayEncoder"
]
},
"file": "aisdc/attacks/report.py"
},
{
... | AI-SDC/AI-SDC | a42a2110ade262a7d699d5b71cfccbc787290d5d | Add option to include target model error into attacks as a feature
Whether or not the target model classifies an example correctly provides some signal that could be of use to an attacker. We currently do not use this in the attacks, but should include an option to allow it.
The 0/1 loss between the predicted class ... | diff --git a/aisdc/attacks/report.py b/aisdc/attacks/report.py
index 12b3887..515c709 100644
--- a/aisdc/attacks/report.py
+++ b/aisdc/attacks/report.py
@@ -1,4 +1,5 @@
"""Code for automatic report generation"""
+import abc
import json
import numpy as np
@@ -83,6 +84,8 @@ class NumpyArrayEncoder(json.JSONEncoder):... |