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 |
|---|---|---|---|---|---|
absent1706__sqlalchemy-mixins-110 | [
{
"changes": {
"added_entities": [
"sqlalchemy_mixins/activerecord.py:ActiveRecordMixin._commit_or_fail"
],
"added_modules": null,
"edited_entities": [
"sqlalchemy_mixins/activerecord.py:ActiveRecordMixin.save",
"sqlalchemy_mixins/activerecord.py:ActiveRecordMixin... | absent1706/sqlalchemy-mixins | cbd35a6ac4d1ae641b08b5542fa13de22c2b74fb | save from Activerecord can commit external transactions
I have some code in a transaction:
```python
with session.begin():
an_object.save()
another_object.save()
```
both objects have the ActiveRecordMixin.
That code used to work, and even after going to sqlalchemy 2, it worked.
But now wi... | diff --git a/sqlalchemy_mixins/activerecord.py b/sqlalchemy_mixins/activerecord.py
index 7b082f1..122a60d 100644
--- a/sqlalchemy_mixins/activerecord.py
+++ b/sqlalchemy_mixins/activerecord.py
@@ -23,50 +23,56 @@ class ActiveRecordMixin(InspectionMixin, SessionMixin):
return self
- def save(self):
+ ... |
aburrell__ocbpy-111 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"ocbpy/ocb_correction.py:harmonic"
],
"edited_modules": [
"ocbpy/ocb_correction.py:harmonic"
]
},
"file": "ocbpy/ocb_correction.py"
}
] | aburrell/ocbpy | ce1ee978f2f1f31e8777bed474750dcef493ee31 | BUG: individual IMAGE instrument OCBs
**Describe the bug**
The new individual IMAGE "ocb" files are actually the poleward edge of the auroral oval w/o the DMSP correction.
**Expected behavior**
A clear explanation of what they are.
**To Fix**
- [x] Update documentation
| diff --git a/Changelog.rst b/Changelog.rst
index 72966f5..30b8cf1 100644
--- a/Changelog.rst
+++ b/Changelog.rst
@@ -21,6 +21,7 @@ Summary of all changes made since the first stable release
* ENH: Added function to select data along a satellite track
* ENH: Changed attributes in VectorData into properties to ensure e... |
aburrell__ocbpy-144 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"ocbpy/_boundary.py:DualBoundary.set_good_ind"
],
"edited_modules": [
"ocbpy/_boundary.py:DualBoundary"
]
},
"file": "ocbpy/_boundary.py"
},
{
"changes": {
... | aburrell/ocbpy | 728bfcbc9fa45e3ec152bcd5146291527a657b88 | dual boundary class can have a bad pair
**Describe the bug**
When running the vorticity pairing with a dual boundary class, it failed when a 'pair' was established with a good OCB and an EAB index outside of the data range.
**To Reproduce**
Steps to reproduce the behavior:
```
stime = dt.datetime(2000,1,1)
etim... | diff --git a/Changelog.rst b/Changelog.rst
index 92250ee..0f0e843 100644
--- a/Changelog.rst
+++ b/Changelog.rst
@@ -7,6 +7,9 @@ Summary of all changes made since the first stable release
------------------
* DEP: Removed deprecated functions that depend on ssj_auroral_boundary package
* DEP: Removed deprecated meth... |
acorg__dark-matter-437 | [
{
"changes": {
"added_entities": [
"dark/diamond/hsp.py:_debugPrint",
"dark/diamond/hsp.py:_sanityCheck"
],
"added_modules": [
"dark/diamond/hsp.py:_debugPrint",
"dark/diamond/hsp.py:_sanityCheck"
],
"edited_entities": [
"dark/diamond/hsp.py:... | acorg/dark-matter | 907a4ac310a1e855f076a2a65367d21266bb7299 | DIAMOND output has qstart > qend when frame < 0
When DIAMOND blastx finds a match in a reverse complemented read, the qstart and qend numbers it emits are decreasing. I.e., they are indices into the read from its end, not its beginning. This is a difference from BLAST, which always has qstart < qend. Our DIAMOND hsp.py... | diff --git a/dark/blast/hsp.py b/dark/blast/hsp.py
index 70087d8..1c264d6 100644
--- a/dark/blast/hsp.py
+++ b/dark/blast/hsp.py
@@ -6,12 +6,11 @@ def printHSP(hsp, indent=''):
def normalizeHSP(hsp, readLen, blastApplication):
"""
- Examine the sense of an HSP and return information about where the
- read... |
acorg__dark-matter-569 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/proteins-to-pathogens.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edite... | acorg/dark-matter | bb55d862e66a923688c1f4db4fdfc9467c8210f4 | The protein grouper should write a plain text index of pathogen index and name
Right now after running `proteins-to-pathogens.py` we are left with files with names like `pathogen-219-sample-228.fastq` but there is no simple way to match a pathogen name with its index. That information is in the `index.html` file but sh... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3aac224..4781caa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,20 @@
+## 2.0.4 April 29, 2018
+
+* Added `--sampleIndexFilename` and `--pathogenIndexFilename` to
+ `proteins-to-pathogens.py`. These cause the writing of files containing
+ lines with an integer ... |
acorg__dark-matter-576 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dark/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dark/filter.py:addF... | acorg/dark-matter | 66f246ba9417430e3f00e94ca0abc88de59a92d4 | Add ability to give an anonymous Python function for read id conversion when filtering FASTA | diff --git a/dark/__init__.py b/dark/__init__.py
index 0246a07..6a59296 100644
--- a/dark/__init__.py
+++ b/dark/__init__.py
@@ -7,4 +7,4 @@ if sys.version_info < (2, 7):
# will not be found by the version() function in ../setup.py
#
# Remember to update ../CHANGELOG.md describing what's new in each version.
-__vers... |
acorg__dark-matter-610 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dark/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dark/sam.py:PaddedS... | acorg/dark-matter | d75630ac7a4f6f99bd0c4e87737290ff971b92d5 | SAM referenceInsertion should record what reads cause reference insertions
The code currently records all reference insertions but doesn't keep track of which reads caused insertions. That makes it impossible to ignore insertions according to which read created it. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d7f91b4..add466a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## 3.0.23 June 22, 2018
+
+Changed the way reference sequence insertions are stored in a
+`dark.sam.PaddedSAM` instance to make it possible to tell which query
+sequences caused reference insert... |
acorg__dark-matter-617 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/filter-sam.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules":... | acorg/dark-matter | 252de3e0a17525dde6a5f4167ea1e54a70ba91ee | Add an option to the `PaddedSAM.queries` method to have it also return the pysam.AlignedSegment | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 67af944..2065375 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,11 @@
+## 3.0.28 July 3, 2018
+
+Added `alsoYieldAlignments` option to `PaddedSAM.queries` method to have
+the returned generator also yield the `pysam.AlignedSegment` instance with
+the gap-padded qu... |
acorg__dark-matter-629 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/noninteractive-alignment-panel.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
... | acorg/dark-matter | 074d9cf3305651d52a7a14fc2547061d713c299f | Add a --titleJSONFile option to noninteractive-alignment-panel.py
This will allow you to write out information about matching titles, initially each with a list of their bit scores. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0975edb..2468b6e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.0.37 October 1, 2018
+
+Add a `--titlesJSONFile` option to `noninteractive-alignment-panel.py`.
+
## 3.0.36 September 13, 2018
Added `whitelistFile` and `blacklistFile` to `ReadsAlignme... |
acorg__dark-matter-632 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dark/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dark/sam.py:_hardCl... | acorg/dark-matter | 71d1941049e153d14615cdd6e3d694ff6a546b98 | Change SAM filtering to allow for CIGAR strings that indicate hard clipping but that have sequences that are not clipped
It can happen that an aligner (`bwa mem -a` does this) can generate SAM lines like these two:
```
K00234:90:HTWVHBBXX:6:1101:1844:10493 0 Chimp-D00220 364 0 3S78M * 0 0
TTTTGGTTATCGCTGGATGTGTCTG... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d82fc9b..0e884c1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 3.0.39 October 10, 2018
+
+The fix to solve [#630](https://github.com/acorg/dark-matter/issues/630)
+was insufficient. That's fixed in this release, hopefully!
+
## 3.0.38 October 5, 2018
... |
acorg__dark-matter-637 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dark/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dark/sam.py:SAMFilt... | acorg/dark-matter | 7fc47a737e687f6b0f0bfe7414c7f8947bb16bea | SAM parsing throws an exception
Fix this:
```sh
$ filter-sam.py --referenceId Sorsum_high_freq --dropSecond --dropSupp --samfile sorsum-assortedGenotypesDieter-bowtie2.sam >/dev/null
Traceback (most recent call last):
File "/Users/terry/.virtualenvs/lm36/bin/filter-sam.py", line 90, in <module>
for kept, a... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a68180a..77e9eb6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## 3.0.44 Nov 1, 2018
+
+Fix [636](https://github.com/acorg/dark-matter/issues/636) in which SAM file
+parsing threw an exception when an unmapped sequence with no CIGAR string
+occurred in a SA... |
acorg__dark-matter-649 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/convert-diamond-to-sam.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edit... | acorg/dark-matter | 3d48d201d41d8cabaa1f31d5dd7987e882a68af3 | Add soft-clipping to CIGAR string in convert-diamond-to-sam.py | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 271f053..588c254 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.0.52 Nov 23, 2018
+
+Added hard-clipping to CIGAR in SAM created by `convert-diamond-to-sam.py`.
+
## 3.0.51 Nov 23, 2018
Use `from six import StringIO` to avoid a PY2/3 incompatibility... |
acorg__dark-matter-651 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dark/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dark/sam.py:_hardCl... | acorg/dark-matter | e48f39aded59ac675d9b250f3cb0c7677968fbe3 | SAMFilter raises if pysam returns an alignment with a None quality string
If a SAM file has `*` for a quality string, `pysam` gives back a `None` field and this causes an exception in `dark/sam.py`:
```
$ read-sam.py 180426-18-mouse-L1.sam
Traceback (most recent call last):
File "./read-sam.py", line 8, in <mod... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 588c254..8ddbc7f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 3.0.53 Nov 23, 2018
+
+Fixed [#650](https://github.com/acorg/dark-matter/issues/650),
+exception in `SAMFilter` when quality is `*` in a SAM file.
+
## 3.0.52 Nov 23, 2018
Added hard-clip... |
acorg__dark-matter-663 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dark/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dark/reads.py:_make... | acorg/dark-matter | 31c6f64ccf9e55821a250a5a4324860c29782a0e | Extract-ORFs.py mistranslates lowercase letters
In a sequence with mixed uppercase and lowercase letters, extract-ORFs.py output has incorrect translations only for the sites of lowercase letters. (Even though the `translations` function of `dark/reads.py` translate a sequence with mixed upper and lower case letters co... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index fa389b6..e329501 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## 3.0.60 Dec 13, 2018
+
+In `reads.py`, changed the `_makeComplementTable` function so that
+uppercase and lowercase bases are correctly reverse complemented into their
+respective uppercase ... |
acorg__dark-matter-665 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dark/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dark/filter.py:addF... | acorg/dark-matter | f0762e7528caea72a817d441e0a34af20349ed3d | Add --reverse and --reverseCompliment options to filter-fasta.py | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e329501..2c1e45d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 3.0.61 Dec 29, 2018
+
+Added `--reverse` and `--reverseComplement` options to `filter-fasta.py`
+and the underlying `ReadFilter` class.
+
## 3.0.60 Dec 13, 2018
In `reads.py`, changed the... |
acorg__dark-matter-678 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/proteins-to-pathogens.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edite... | acorg/dark-matter | 2de1c45cb41468ce844728e9fd5502cd05e635ea | Add a way to pass a title to proteins-to-pathogens.py for HTML output | diff --git a/bin/proteins-to-pathogens.py b/bin/proteins-to-pathogens.py
index 2cc75d2..ed0bbd8 100755
--- a/bin/proteins-to-pathogens.py
+++ b/bin/proteins-to-pathogens.py
@@ -149,6 +149,14 @@ if __name__ == '__main__':
'puts its HTML, plots and FASTA or FASTQ files, needed for '
'using -... |
acorg__dark-matter-680 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/proteins-to-pathogens.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edite... | acorg/dark-matter | e76e23cc5230e4db4742c4418b6e5b8ddb0bc8d4 | Add title regex (positive and negative) to protein grouper | diff --git a/CHANGELOG.md b/CHANGELOG.md
index cf03d75..fc519cd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,16 @@
+## 3.0.70 Jul 30, 2019
+
+Added `titleRegex` and `negativeTitleRegex` to `ProteinGrouper` class and
+`--titleRegex` and `--negativeTitleRegex` arguments to
+`proteins-to-pathogens.py`.
+
+## 3.... |
acorg__dark-matter-684 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/proteins-to-pathogens.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edite... | acorg/dark-matter | 66a348e34c40a163fd016c1a9ca52bf351b40be1 | Add file of all reads for a pathogen to HTML output
Julia would like a link to download all reads for a pathogen (i.e., across all samples) in the protein / pathogen HTML output. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1795010..4c3b542 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 3.0.77 Aug 2, 2019
+
+Added link to per-pathogen reads in protein-to-pathogens HTML output for
+Julia.
+
## 3.0.76 Jul 31, 2019
Slightly adjust appearance of HTML links for pathogens.
dif... |
acorg__dark-matter-686 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/proteins-to-pathogens.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edite... | acorg/dark-matter | 3398b2f5af3d2fa4dcce840ad04ff605a5221fb9 | Add options to proteins-to-pathogens.py to omit virus links and incorrect virus protein counts | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a08922..5f2e8a9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,12 @@
+## 3.0.79 Aug 8, 2019
+
+Add `--omitVirusLinks` and `--omitSampleProteinCount` options to
+`proteins-to-pathogens.py` to make HTML output less confusing when running
+on RVDB or OKIAV databases... |
acorg__dark-matter-695 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/alignment-panel-civ.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_... | acorg/dark-matter | dcbdfc0f10b5f15fcffab52e876162b45a791838 | Add read filtering by percent identity match (in DIAMOND output) | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d82887e..cbfda73 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## 3.1.22 Dec 3, 2019
+
+Added `--percentageIdenticalCutoff` argument to `alignment-panel-civ.py`
+and `noninteractive-alignment-panel.py` and all that implies, down to
+reading DIAMOND output ... |
acorg__dark-matter-698 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/alignment-panel-civ.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_... | acorg/dark-matter | 76be8931599bae6fbfafa663168c6407ba17ef9b | Add filtering for percentage similarity on DIAMOND results | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 38154ac..58a052d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## 3.1.26 Dec 3, 2019
+
+Added `--percentagePositiveCutoff` argument to `alignment-panel-civ.py`
+and `noninteractive-alignment-panel.py` and all that implies, down to
+reading DIAMOND output w... |
acorg__dark-matter-705 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bin/genome-protein-summary.py:pct",
"bin/genome-protein-summary.py:summarize"
],
"edited_modules": [
"bin/genome-protein-summary.py:pct",
"bin/genome-protein-summary.... | acorg/dark-matter | 7e8ca419ef2d6d10287c020e194587a400052ad6 | Add tool to summarize protein hits in a SAM/BAM file | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 18dbb93..5a22e5b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.1.37 Jan 13, 2020
+
+Add final `genome-protein-summary.py` script.
+
## 3.1.35 Jan 13, 2020
Drop Python 3.8 from Travis and tox checking.
diff --git a/bin/genome-protein-summary.py b/bi... |
acorg__dark-matter-714 | [
{
"changes": {
"added_entities": [
"bin/compare-sequences.py:mafft"
],
"added_modules": [
"bin/compare-sequences.py:mafft"
],
"edited_entities": [
"bin/compare-sequences.py:needle"
],
"edited_modules": [
"bin/compare-sequences.py:needle"
... | acorg/dark-matter | 0ab9d9807176101b6df324030643fcb71a8ec34c | Add various options to some scripts
- Add `--sampleName` and `--readGroup` options to `Bowtie2.align` and corresponding options to `run-bowtie2.py`.
- Add `--id` and `--idLambda` options to `make-consensus.py`.
- Add `--aligner` and `--alignerOptions` to `compare-sequences.py`.
And add support for aligning using M... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c6b2654..e78ba44 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,13 @@
+## 3.1.48 Feb 21, 2020
+
+
+
+## 3.1.47 Feb 19, 2020
+
+Added `--sampleName` and `--readGroup` options to `Bowtie2.align`. Added
+`--id` and `--idLambda` options to `make-consensus.py` to make ... |
acorg__dark-matter-726 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "dark/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"dark/filter.py:addF... | acorg/dark-matter | 4c3115b2c5e585068988dfec0a7330b2d4f2ba37 | Add filtering options for maximum number of Ns in a sequence | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66b60e7..17a90c5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.1.70 March 24, 2020
+
+Added `--maxNFraction` arg to `filter-fasta.py`.
+
## 3.1.69 March 23, 2020
Added `--md5` arg to `fasta-sequences.py`.
@@ -429,9 +433,9 @@ Removed bone-headed use... |
acorg__seqgen-2 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "seqgen/__init__.py"
},
{
"changes": {
"added_entities": [
"seqgen/sequences.py:Sequences._checkValid"
],
"added_modules": nu... | acorg/seqgen | 2d2ddd5ea539ac58c29facbb017815aae2ff0354 | Add a 'linear' directive to allow a set of mutant sequences to be successively generated from the previous one | diff --git a/.gitignore b/.gitignore
index 4234921..29b9dee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ __pycache__
build
dist
seqgen.egg-info
+.pytest_cache
diff --git a/README.md b/README.md
index 2ae492c..af241af 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@ optional arguments:
... |
acorg__seqgen-4 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "seqgen/__init__.py"
},
{
"changes": {
"added_entities": [
"seqgen/sequences.py:Sequences._nameCount"
],
"added_modules": nul... | acorg/seqgen | fa23a119856b254988fc51a41835b927d516df53 | Add a 'name count' directive so a certain sequence in a spec can be named
Currently we only assign the name of a named spec to the first sequence in that series. Make it so any one can be named. | diff --git a/README.md b/README.md
index af241af..40f7376 100644
--- a/README.md
+++ b/README.md
@@ -146,6 +146,10 @@ specification keys you can put in a object in the JSON is as follows:
* `name`: Give a name to the sequence so you can refer to it from elsewhere
in the JSON. Note that this has nothing to do with F... |
acorg__seqgen-6 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "seqgen/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"seqgen/sequences.... | acorg/seqgen | a46ce6635de4e891fa252624c65d8070c073c802 | Simplify sequencing naming so everything has a name (id) | diff --git a/README.md b/README.md
index 40f7376..9ca6f87 100644
--- a/README.md
+++ b/README.md
@@ -70,26 +70,24 @@ As an example, the JSON shown below specifies the following:
},
"sequences": [
{
- "name": "A",
"id": "seq-A",
"length": "%(length)d"
},
... |
acorg__slurm-pipeline-15 | [
{
"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": [
"slurm_pipeline/pipeline.py:... | acorg/slurm-pipeline | 3c7a4dbac953c478d6370af708b3642ef3e790b0 | Add a way to have an error step | diff --git a/README.md b/README.md
index 33c0168..307f04c 100644
--- a/README.md
+++ b/README.md
@@ -199,6 +199,8 @@ the full list:
* `collect`: for scripts that should run only when all tasks from all their
prerequisites have completed.
* `dependencies`: a list of previous steps that a step depends on.
+* `error ... |
acorg__slurm-pipeline-26 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/slurm-pipeline-status.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edite... | acorg/slurm-pipeline | 7a77fc4b53d04ce71219b516c0c01200f7f3ea89 | Use the cwd attribute when checking for the existence of step scripts
The checking to see if scripts exist does not use the cwd attribute. So it's not possible to have a specification that uses cwd and a relative path to a script. | diff --git a/bin/slurm-pipeline-status.py b/bin/slurm-pipeline-status.py
index c0392d4..bd65b37 100755
--- a/bin/slurm-pipeline-status.py
+++ b/bin/slurm-pipeline-status.py
@@ -25,23 +25,23 @@ parser.add_argument(
'in JSON format.'))
parser.add_argument(
- '--squeueArgs', nargs='*', default=None,
+ ... |
acorg__slurm-pipeline-28 | [
{
"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": [
"slurm_pipeline/pipeline.py:... | acorg/slurm-pipeline | 2aec1fd60f0765a26555768ec15719dcf973f294 | Improve error output when running step scripts
Catch a subprocess error and print the stdout and stderr of the offending script. | diff --git a/setup.py b/setup.py
index 68cd7fc..e20f87c 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
from setuptools import setup
setup(name='slurm-pipeline',
- version='1.1.8',
+ version='1.1.9',
packages=['slurm_pipeline'],
include_package_data=True,
url='https://github.com/... |
acorg__slurm-pipeline-8 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "bin/slurm-pipeline.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modul... | acorg/slurm-pipeline | 82b9419077b32dd6d090cec385e5f1996448aa22 | Add a command line option to have job launching sleep between steps
To give a distributed filesystem time to settle. Without this it appears that a job may be launched even when `sbatch` is run with a dependency if the dependent job is not yet apparent (due to filesystem consistency slowness). | diff --git a/bin/slurm-pipeline.py b/bin/slurm-pipeline.py
index 971d493..ea55018 100755
--- a/bin/slurm-pipeline.py
+++ b/bin/slurm-pipeline.py
@@ -33,11 +33,19 @@ parser.add_argument(
'help text for --first-step for how this affects the environment '
'in which step scripts are executed.'))
+pa... |
adafruit__Adafruit_CircuitPython_GPS-76 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"adafruit_gps.py:GPS._update_timestamp_utc",
"adafruit_gps.py:GPS._parse_gll",
"adafruit_gps.py:GPS._parse_rmc",
"adafruit_gps.py:GPS._parse_gga"
],
"edited_modules": ... | adafruit/Adafruit_CircuitPython_GPS | b9e06e93f258ef3251b8104e19c9cfd435d12d60 | Usage of float causes timestamp_utc to be imprecise
NMEA timestamp is written as HHMMSS.sss, which is stored as float in the module.
Later it is converted to int which is inaccurate:
See example:
```
>> int(184105.000)
184104
```
This is then math'ed into the fields in time_struct.
Propose storing the NME... | diff --git a/adafruit_gps.py b/adafruit_gps.py
index 10bc89c..a28a065 100644
--- a/adafruit_gps.py
+++ b/adafruit_gps.py
@@ -50,11 +50,11 @@ _ST_MAX = _RMC_4_1
_SENTENCE_PARAMS = (
# 0 - _GLL
- "dcdcfcC",
+ "dcdcscC",
# 1 - _RMC
- "fcdcdcffiDCC",
+ "scdcdcffsDCC",
# 2 - _GGA
- "fdcdciif... |
adamboche__python-marshmallow-union-29 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/marshmallow_union/__init__.py:Union._serialize"
],
"edited_modules": [
"src/marshmallow_union/__init__.py:Union"
]
},
"file": "src/marshmallow_union/__init__.py"
... | adamboche/python-marshmallow-union | 49f82a94403b686e56c4509cf75bca40a9dfe23a | Support union for mapping value
When using a union for a mapping value-type, marshmallow-union raises `ExceptionGroup` during serialisation.
All candidate fields raise as marshmallow-union calls `schema.serialise(attr, obj, ...)`. However, inside a mapping value-type, marshmallow calls `schema._serialise(value, None... | diff --git a/src/marshmallow_union/__init__.py b/src/marshmallow_union/__init__.py
index 69e3099..b3b86e1 100644
--- a/src/marshmallow_union/__init__.py
+++ b/src/marshmallow_union/__init__.py
@@ -59,9 +59,22 @@ class Union(marshmallow.fields.Field):
for candidate_field in fields:
try:
- ... |
adamboche__python-marshmallow-union-33 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/marshmallow_union/__init__.py:Union._serialize"
],
"edited_modules": [
"src/marshmallow_union/__init__.py:Union"
]
},
"file": "src/marshmallow_union/__init__.py"
... | adamboche/python-marshmallow-union | 58bfc9fb069e00478afba87da3e003464cbdaebe | _serialize ignores the given value
The `_serialize` method of `Union` calls the `serialize` method (instead of `_serialize`) on the underlying fields. This means that it ignores the given `value` parameter, and may try to serialize a completely different value.
See: https://github.com/adamboche/python-marshmallow-un... | diff --git a/src/marshmallow_union/__init__.py b/src/marshmallow_union/__init__.py
index 22d5ef4..ee47920 100644
--- a/src/marshmallow_union/__init__.py
+++ b/src/marshmallow_union/__init__.py
@@ -13,6 +13,7 @@ class MarshmallowUnionException(Exception):
class ExceptionGroup(MarshmallowUnionException):
"""Colle... |
adamchainz__apig-wsgi-111 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/apig_wsgi.py:get_environ"
],
"edited_modules": [
"src/apig_wsgi.py:get_environ"
]
},
"file": "src/apig_wsgi.py"
}
] | adamchainz/apig-wsgi | 85860cfb148b9fcda6dfa21f8ead0ebb0e33fea8 | Multivalue headers and parameters
APIG has at some point added support for multi-value request headers and parameters: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#apigateway-multivalue-headers-and-parameters
We should use those - (where available - check they're... | diff --git a/HISTORY.rst b/HISTORY.rst
index bb2a4f1..293f90e 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,14 @@
History
=======
+Pending
+-------
+
+* Support multi-value headers and query parameters as API Gateway added
+ (`Issue #103 <https://github.com/adamchainz/apig-wsgi/issues/103>`__).
+* Pass ful... |
adamchainz__apig-wsgi-118 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/apig_wsgi.py:get_environ"
],
"edited_modules": [
"src/apig_wsgi.py:get_environ"
]
},
"file": "src/apig_wsgi.py"
}
] | adamchainz/apig-wsgi | 4f3b043beb5067379a7d1459aea751eb74a27e5e | 2.5.0 Multivalue support breaks Host Header support
The new update for 2.5.0 broke for us, because we're trying to access the HTTP Host header directly, rather than accessing via the `SERVER_NAME` WSGI variable.
Was this intentional, or just a byproduct of trying to also set `SERVER_NAME` for WSGI spec compliance?
| diff --git a/src/apig_wsgi.py b/src/apig_wsgi.py
index efb01d2..d5ea0f0 100644
--- a/src/apig_wsgi.py
+++ b/src/apig_wsgi.py
@@ -94,10 +94,8 @@ def get_environ(event, binary_support):
if key == "CONTENT_TYPE":
environ["CONTENT_TYPE"] = values[-1]
- continue
elif key == "HOST"... |
adamchainz__apig-wsgi-12 | [
{
"changes": {
"added_entities": [
"apig_wsgi.py:Response._get_content_type"
],
"added_modules": null,
"edited_entities": [
"apig_wsgi.py:make_lambda_handler",
"apig_wsgi.py:Response.__init__",
"apig_wsgi.py:Response.as_apig_response"
],
"edite... | adamchainz/apig-wsgi | 4fc2d8dc685a8091931d01cb58be17a2e0fe9d38 | Support sending binary body in response
For e.g. assets served through whitenoise | diff --git a/HISTORY.rst b/HISTORY.rst
index 7cbf671..9db579a 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -6,6 +6,9 @@ Pending Release
.. Insert new release notes below this line
+* Add ``binary_support`` flag to enable sending binary responses, if enabled on
+ API Gateway.
+
1.0.0 (2018-03-08)
--------------... |
adamchainz__apig-wsgi-156 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/apig_wsgi.py:get_environ"
],
"edited_modules": [
"src/apig_wsgi.py:get_environ"
]
},
"file": "src/apig_wsgi.py"
}
] | adamchainz/apig-wsgi | d42e72a00409c1ce51011db1d46ecd9a1667984a | ELB Health Checks not handled
Hello!
Thank you for your tool it's great.
We have a little issue when using a lambda as an ELB target when we turn on health check because the event looks like this:
```
{
"requestContext": {
"elb": {
"targetGroupArn": "arn:aws:elasticloadbalancing:r... | diff --git a/HISTORY.rst b/HISTORY.rst
index 048a4ab..8eb3af1 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,12 @@
History
=======
+* Add defaults for ``SERVER_HOST``, ``SERVER_PORT`` and ``wsgi.url_scheme``.
+ This enables responding to `ELB health check events
+ <https://docs.aws.amazon.com/elasticloadba... |
adamchainz__apig-wsgi-187 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/apig_wsgi.py:get_environ_v1"
],
"edited_modules": [
"src/apig_wsgi.py:get_environ_v1"
]
},
"file": "src/apig_wsgi.py"
}
] | adamchainz/apig-wsgi | afaf2e5ae3279b15657431b24dcc01105ec2a5ce | QueryStringParameters encoding issue
Hi,
I suspect an issue while providing queryParameters.
When performing a query to my API using <API_ROOT>/logs?start_time=2020-10-12T14:00:00%2B02:00&end_time=2020-10-12T15:00:00%2B02:00
I get my query string values in Flask endpoint as:
start_time = "2020-10-12T14:00:00 ... | diff --git a/HISTORY.rst b/HISTORY.rst
index 724abe9..f4bc806 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -3,6 +3,9 @@ History
=======
* Support Python 3.9.
+* Fix query string parameter encoding so that symbols are correctly re-encoded
+ for WSGI, for API Gateway format version 1
+ (`Issue #186 <https://github... |
adamchainz__apig-wsgi-272 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/apig_wsgi.py:make_lambda_handler",
"src/apig_wsgi.py:get_environ_v1"
],
"edited_modules": [
"src/apig_wsgi.py:make_lambda_handler",
"src/apig_wsgi.py:get_environ_... | adamchainz/apig-wsgi | 066f0b7c1e81e81dd4991c388f46ddfc4ddaf94e | Query Params - difference between API GW and ALB
I noticed if I go to a URL with a query string like this: `?x=foo%3Dbar`
The event sent to a lambda from ALB contains:
```json
"queryStringParameters": {
"x": "foo%3Dbar"
}
```
And the event sent from API Gateway contains:
```json
"queryStringParameters... | diff --git a/HISTORY.rst b/HISTORY.rst
index 6b356b4..cd7d803 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,8 @@
History
=======
+* Fix handling of query string encoding in ALB deployments.
+
2.11.0 (2021-05-10)
-------------------
diff --git a/example/README.rst b/example/README.rst
index b0d17a3..c00f... |
adamchainz__apig-wsgi-290 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/apig_wsgi/__init__.py:make_lambda_handler"
],
"edited_modules": [
"src/apig_wsgi/__init__.py:make_lambda_handler"
]
},
"file": "src/apig_wsgi/__init__.py"
}
] | adamchainz/apig-wsgi | 87e53add20433c5a8b8550b1958d4160e95ab49c | Error when requestContext is None
### Python Version
3.8
### Package Version
2.12.0
### Description
I have a lambda that is called through API Gateway, but can also be invoked directly via a lambda client. Upgrading to 2.12.0 started causing this error when invoked via client.
```
[ERROR] TypeError: argument of... | diff --git a/HISTORY.rst b/HISTORY.rst
index b2d240b..c1e65a8 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,10 @@
History
=======
+* Handle ``requestContext`` being ``None``, as can happen from Lambda invoke.
+
+ Thanks to scottmn for the report in `Issue #289 <https://github.com/adamchainz/apig-wsgi/issue... |
adamchainz__apig-wsgi-528 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/apig_wsgi/__init__.py:make_lambda_handler"
],
"edited_modules": [
"src/apig_wsgi/__init__.py:make_lambda_handler"
]
},
"file": "src/apig_wsgi/__init__.py"
}
] | adamchainz/apig-wsgi | bbafe4beaec1e0b9f7d842f03c151dc5b94bf6dc | Errors if Django gzip middleware used
### Python Version
3.11
### Package Version
2.18.0
### Description
```
[ERROR] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Traceback (most recent call last):
File "/var/task/app/handlers.py", line 102, in app
r... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index d429a57..2c372d6 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -10,6 +10,10 @@ Changelog
Thanks to Zoe Guillen for the report in `PR #496 <https://github.com/adamchainz/apig-wsgi/pull/496>`__.
+* Enable binary support by default for ALB events.
+
+ Thanks to ... |
adamchainz__apig-wsgi-53 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"apig_wsgi.py:Response.__init__",
"apig_wsgi.py:Response.start_response"
],
"edited_modules": [
"apig_wsgi.py:Response"
]
},
"file": "apig_wsgi.py"
}
] | adamchainz/apig-wsgi | 9bd886d2bda1407cc334b376e967be27025d211d | 502 bad gateway error on ALB : statusCode must be numeric
Hey,
having an issue with apig-wsgi on an ALB : I always receive a 502 bad gateway error.
Changing statusCode from a string to a number solve my issue.
This is my working monkey patching :
import apig_wsgi
class Response(apig_wsgi.Response):
def ... | diff --git a/HISTORY.rst b/HISTORY.rst
index 2073fb4..dda2242 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -6,6 +6,10 @@ Pending Release
.. Insert new release notes below this line
+* Change ``statusCode`` returned to API Gateway / ALB to an integer. It seems
+ API Gateway always supported both strings and integ... |
adamchainz__apig-wsgi-80 | [
{
"changes": {
"added_entities": [
"apig_wsgi.py:Response._should_send_binary",
"apig_wsgi.py:Response._get_content_encoding",
"apig_wsgi.py:Response._get_header"
],
"added_modules": null,
"edited_entities": [
"apig_wsgi.py:Response.as_apig_response",
... | adamchainz/apig-wsgi | 80868a1a740711fe1fdf3c523d0e400c788a1b14 | Ability to send binary response with `text/` or `application/json` content type
Problem
--------
`Response.as_apig_response` is hardcoded to not return binary response when the content-type of the response is either `text/*` or `application/json`.
https://github.com/adamchainz/apig-wsgi/blob/b0ce56cbb3ff67586c39... | diff --git a/HISTORY.rst b/HISTORY.rst
index c6365ca..3669cc5 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -7,6 +7,7 @@ Pending Release
.. Insert new release notes below this line
* Update Python support to 3.5-3.7, as 3.4 has reached its end of life.
+* Return binary content for gzipped responses with text or JSO... |
adamchainz__ec2-metadata-32 | [
{
"changes": {
"added_entities": [
"ec2_metadata.py:EC2Metadata._get_url"
],
"added_modules": null,
"edited_entities": [
"ec2_metadata.py:EC2Metadata.ami_id",
"ec2_metadata.py:EC2Metadata.availability_zone",
"ec2_metadata.py:EC2Metadata.ami_launch_index",
... | adamchainz/ec2-metadata | d712c51c7474f392ddac09750d85c62987e626c2 | Filter out non-200 responses
Currently we don't filter out error responses from the metadata API, which means it can return data from error responses. There should be a `resp.raise_for_status()` in there, or even filter for exactly `resp.status_code == 200` | diff --git a/HISTORY.rst b/HISTORY.rst
index 2f30547..1d3dfdf 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -8,6 +8,10 @@ Pending Release
.. Insert new release notes below this line
+* All methods can now raise ``requests.exceptions.HTTPError`` if the metadata
+ API returns a bad response, rather than failing dur... |
adamchainz__ec2-metadata-350 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/ec2_metadata/__init__.py:EC2Metadata.availability_zone_id"
],
"edited_modules": [
"src/ec2_metadata/__init__.py:EC2Metadata"
]
},
"file": "src/ec2_metadata/__init__... | adamchainz/ec2-metadata | d72b0da489514e46519f49bd080860afb9fd3189 | availability_zone_id may return 404
### Python Version
3.8.10
### Package Version
2.7.0
### Description
In some cases `ec2_metadata.availability_zone_id` returns 404
```
----> 1 ec2_metadata.availability_zone_id
File functools.py:967, in __get__(self, instance, owner)
File ec2_metadata/__init__.py:87, in avail... | diff --git a/HISTORY.rst b/HISTORY.rst
index 9a6d9e6..23dbfa2 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,10 @@
History
=======
+* Return ``None`` for ``availability_zone_id`` when the underlying endpoint returns HTTP 404.
+
+ Thanks to Amir Rossert in `PR #350 <https://github.com/adamchainz/ec2-metadata... |
adamchainz__ec2-metadata-535 | [
{
"changes": {
"added_entities": [
"src/ec2_metadata/__init__.py:EC2Metadata.instance_life_cycle"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"src/ec2_metadata/__init__.py:EC2Metadata"
]
},
"file": "src/ec2_metadata/__init__.... | adamchainz/ec2-metadata | 34278026076dbc31aa37d4559cec6c7f132e1f64 | Add instance_life_cycle
### Description
It's available on `http://169.254.169.254/latest/meta-data/instance-life-cycle`
| diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 144e3d6..35cce14 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,10 @@
Changelog
=========
+* Add ``instance_life_cycle`` attribute.
+
+ Thanks to Zeev Rotshtein for the feature request in `Issue #440 <https://github.com/adamchainz/ec2-metadata/issues/440>... |
adamchainz__flake8-tidy-imports-304 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/flake8_tidy_imports.py:ImportChecker.add_options",
"src/flake8_tidy_imports.py:ImportChecker.rule_I252"
],
"edited_modules": [
"src/flake8_tidy_imports.py:ImportChecker"
... | adamchainz/flake8-tidy-imports | 4304f94e6e4f93192a57570d63aa1e955f24bdd1 | I252 does not allow for fine-tuning
### Python Version
3.9.0
### Package Version
latest
### Description
It's more of a feature request than an issue :
Currently I252 can only be a boolean
```
ban-relative-imports = True
```
As stated by the [pep documentation](https://www.python.org/dev/peps/pep-0008/#imp... | diff --git a/HISTORY.rst b/HISTORY.rst
index 53142e6..a2244a2 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,9 @@
History
=======
+* Add ``parents`` option for ``ban-relative-imports`` that allows using
+ relative syntax to import from sibling modules, but not parents.
+
4.3.0 (2021-05-10)
---------------... |
adamchainz__pip-lock-121 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/pip_lock.py:get_package_versions"
],
"edited_modules": [
"src/pip_lock.py:get_package_versions"
]
},
"file": "src/pip_lock.py"
}
] | adamchainz/pip-lock | 4a0e0106254aeceb13f7ff068ce295424b1d44a2 | pip-lock does detect dependencies with setup extras
There are requirement mismatches with requirements.txt
* Package django-storages[boto3] is in requirements.txt but not in virtualenv | diff --git a/HISTORY.rst b/HISTORY.rst
index 9f9cc5b..568f9d1 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -12,6 +12,7 @@ History
``importlib.metadata.version("pip-lock")``
(`docs <https://docs.python.org/3.8/library/importlib.metadata.html#distribution-versions>`__ /
`backport <https://pypi.org/project/impor... |
adamchainz__pip-lock-208 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/pip_lock.py:get_package_versions"
],
"edited_modules": [
"src/pip_lock.py:get_package_versions"
]
},
"file": "src/pip_lock.py"
}
] | adamchainz/pip-lock | a70ab3c56a094044a1de38f9c66c29d9f022b274 | Crashes on lines providing arguments to pip
For example `--find-links` | diff --git a/HISTORY.rst b/HISTORY.rst
index ed86591..e15c981 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,9 @@
History
=======
+* Fix to ignore lines that represent arguments to pip, such as
+ ``--find-links``.
+
2.2.0 (2020-12-13)
------------------
diff --git a/src/pip_lock.py b/src/pip_lock.py
ind... |
adamchainz__pretty-cron-11 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "pretty_cron/api.py"
}
] | adamchainz/pretty-cron | ec7be5a9f853342ded46342eb90fdc0c69c06f68 | Missing key in _WEEKDAYS
Hello,
linux crontab allows users to set sunday as 0 or 7 (its same for crontab parser). When I was parsing some of my users cron settings I got key_error exception when they were using this syntax (7 as for sunday), you might consider adding this. (I have currently monkey patched that for t... | diff --git a/HISTORY.rst b/HISTORY.rst
index 985360a..7b57b97 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -7,6 +7,8 @@ Pending Release
---------------
* New release notes here
+* Now interprets day 7 as Sunday as well as 0, like Linux crontab parsers -
+ thanks @vetyy.
1.0.0 (2015-07-28)
------------------
d... |
adamchainz__time-machine-152 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/time_machine/__init__.py:Coordinates.move_to",
"src/time_machine/__init__.py:TimeMachineFixture.move_to"
],
"edited_modules": [
"src/time_machine/__init__.py:Coordinates"... | adamchainz/time-machine | 665670beddc1f330ce182984bfd1fddeda0587a1 | Freeze time instead of just shifting it
Hi! This library looks very cool, even more with the added support for pytest. I have a question which might be more related with me not understanding the use cases or purpose than the tool itself.
I thought I would be able to tell the library: everytime I call now I want you ... | diff --git a/HISTORY.rst b/HISTORY.rst
index 3265158..5390cf4 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,10 @@
History
=======
+* Allow passing ``tick`` to ``Coordinates.move_to()`` and the pytest fixture’s
+ ``time_machine.move_to()``. This allows freezing or unfreezing of time when
+ travelling.
+
2... |
adamchainz__time-machine-207 | [
{
"changes": {
"added_entities": [
"src/time_machine/__init__.py:_EscapeHatchDatetimeDatetime.now",
"src/time_machine/__init__.py:_EscapeHatchDatetimeDatetime.utcnow",
"src/time_machine/__init__.py:_EscapeHatchDatetime.__init__",
"src/time_machine/__init__.py:_EscapeHatchTi... | adamchainz/time-machine | 29a9f0aa44204c9bf236f350fdc5015fd10e8e2c | Flag that we're time traveling, with access to true datetime
### Description
In some of our integration tests we make API calls to external services. Some of these require a timestamp for use in authentication. I know that excluding some modules from time-machine isn't possible due to the implementation, but having so... | diff --git a/HISTORY.rst b/HISTORY.rst
index 78e067b..7af039e 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,10 @@
History
=======
+* Add ``time_machine.escape_hatch``, which provides functions to bypass time-machine.
+
+ Thanks to Matt Pegler for the feature request in `Issue #206 <https://github.com/adamc... |
adamchainz__time-machine-298 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/time_machine/__init__.py:extract_timestamp_tzname"
],
"edited_modules": [
"src/time_machine/__init__.py:extract_timestamp_tzname"
]
},
"file": "src/time_machine/__i... | adamchainz/time-machine | ac337ab7dc568675de7f90c8fb387160e3f08496 | Allow passing dt.timedelta objects to travel()
It would offset the current time by the given amount, which would be pretty useful for some tests that check "X is true until N minutes in the future" | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index c524071..71b1598 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,10 @@
Changelog
=========
+* Add support for ``datetime.timedelta`` to ``time_machine.travel()``.
+
+ Thanks to Nate Dudenhoeffer in `PR #298 <https://github.com/adamchainz/time-machine/pull/... |
adamchainz__time-machine-433 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/time_machine/__init__.py:extract_timestamp_tzname"
],
"edited_modules": [
"src/time_machine/__init__.py:extract_timestamp_tzname"
]
},
"file": "src/time_machine/__i... | adamchainz/time-machine | 8e28b9e74c3d6a50b7d6ec09a9e50903d4dc8bdd | Segmentation fault in `time_machine_travel(timedelta())`
### Python Version
3.12
### pytest Version
_No response_
### Package Version
2.14.0
### Description
The following Python script:
```py
from datetime import timedelta
import time_machine
with time_machine.travel(timedelta()):
pass
```
crash... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index d83e48d..5984577 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,10 @@
Changelog
=========
+* Fix segmentation fault when the first ``travel()`` call in a process uses a ``timedelta``.
+
+ Thanks to Marcin Sulikowski for the report in `Issue #431 <https://... |
adamchainz__time-machine-54 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/time_machine.py:utcnow"
],
"edited_modules": [
"src/time_machine.py:utcnow"
]
},
"file": "src/time_machine.py"
}
] | adamchainz/time-machine | 48a2a4df24ba188533fdf03f6cfc4b78db33f17a | datetime.datetime.utcnow() should not have tzinfo
Hi, I find this library very neat and have started using it in multiple tests.
But there is one issue:
```python
In [1]: import datetime
In [2]: import time_machine
In [3]: @time_machine.travel("2020-07-28 13:15:30.478705")
...: def foo():
...: re... | diff --git a/HISTORY.rst b/HISTORY.rst
index 485c825..f5a2f8c 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,12 @@
History
=======
+* Correctly return naive datetimes from ``datetime.utcnow()`` whilst time
+ travelling.
+
+ Thanks to Søren Pilgård and Bart Van Loon for the report in
+ `Issue #52 <https://... |
adamchainz__time-machine-98 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/time_machine.py:Coordinates.time_ns"
],
"edited_modules": [
"src/time_machine.py:Coordinates"
]
},
"file": "src/time_machine.py"
}
] | adamchainz/time-machine | 71cf08aa78b14b756348eb3beaa476d271ec07cb | Handle windows epoch
`time.time()` and other functions in `time()` return seconds-since-epoch, but that epoch is not 1 Jan 1970 on windows but [1 Jan 1601](https://stackoverflow.com/a/8670712/1427135) ([wikipedia](https://en.wikipedia.org/wiki/Epoch_(computing)#Notable_epoch_dates_in_computing)). So functions like `tim... | diff --git a/HISTORY.rst b/HISTORY.rst
index e1e2c8f..dc83381 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -11,6 +11,7 @@ History
* Remove ``tz_offset`` argument. This was incorrectly copied from
``freezegun``. Use the new timezone mocking with ``ZoneInfo`` instead.
* Add pytest plugin and fixture ``time_machine`... |
adamjstewart__fiscalyear-4 | [
{
"changes": {
"added_entities": [
"fiscalyear.py:FiscalYear.current",
"fiscalyear.py:FiscalQuarter.current"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"fiscalyear.py:FiscalYear",
"fiscalyear.py:FiscalQuarter"
]
... | adamjstewart/fiscalyear | f3bf1e0ea82ab659802f7ee576e9d16758fc2b1a | Syntactic sugar for getting the current Fiscal{Year,Quarter}
I think it would be nice if there was an easy way to get the current `FiscalYear`/`FiscalQuarter`.
This could easily be achieved by using a couple of `classmethods`. E.g.:
``` diff
$ git diff
diff --git a/fiscalyear.py b/fiscalyear.py
index c6f8ddc..... | diff --git a/.travis.yml b/.travis.yml
index 416d131..f829e95 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,15 +1,13 @@
language: python
-dist: xenial
-
python:
+ - 2.6
- 2.7
+ - 3.3
- 3.4
- 3.5
- 3.6
- - 3.7
- - 3.8-dev
-script: pytest --cov=fiscalyear
+script: py.test --cov=fiscalyear
afte... |
adamjstewart__fiscalyear-5 | [
{
"changes": {
"added_entities": [
"fiscalyear.py:_validate_fiscal_calendar_params",
"fiscalyear.py:setup_fiscal_calendar"
],
"added_modules": [
"fiscalyear.py:_validate_fiscal_calendar_params",
"fiscalyear.py:setup_fiscal_calendar"
],
"edited_entiti... | adamjstewart/fiscalyear | 77c5c0c82a62de36e77284e924f744bb1e770a31 | Add a function for easily changing the global "START_*" parameters
I think it would make sense to have a function that would make changing the global parameters easier. E.g.
``` python
def setup_fiscal_year(start_year, start_month, start_day):
global START_YEAR, START_MONTH, START_DAY
START_YEAR = start_y... | diff --git a/fiscalyear.py b/fiscalyear.py
index c6f8ddc..f3a7640 100644
--- a/fiscalyear.py
+++ b/fiscalyear.py
@@ -24,10 +24,41 @@ START_MONTH = 10
START_DAY = 1
+def _validate_fiscal_calendar_params(start_year, start_month, start_day):
+ """Raise an Exception if the calendar parameters are invalid.
+
+ :p... |
adamjstewart__fiscalyear-9 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"fiscalyear.py:FiscalQuarter.start"
],
"edited_modules": [
"fiscalyear.py:FiscalQuarter"
]
},
"file": "fiscalyear.py"
}
] | adamjstewart/fiscalyear | a59cde7a881a85c5a65e523623e23668c2cb991c | FiscalCalendar starting on 31st day of the month throws ValueError
If the `FiscalCalendar` starts on the 31st of any month with 31 days, then `FiscalDate().quarter` throws a `ValueError`.
Example code:
```python
from fiscalyear import FiscalDate, FiscalYear, fiscal_calendar
with fiscal_calendar(start_month=12, ... | diff --git a/fiscalyear.py b/fiscalyear.py
index 661c703..d4a569f 100644
--- a/fiscalyear.py
+++ b/fiscalyear.py
@@ -530,7 +530,12 @@ class FiscalQuarter(object):
if month < START_MONTH:
year += 1
- return FiscalDateTime(year, month, START_DAY, 0, 0, 0)
+ # Find the last day of the... |
adamlwgriffiths__Pyrr-61 | [
{
"changes": {
"added_entities": [
"pyrr/vector3.py:generate_vertex_normals"
],
"added_modules": [
"pyrr/vector3.py:generate_vertex_normals"
],
"edited_entities": [
"pyrr/vector3.py:generate_normals"
],
"edited_modules": [
"pyrr/vector3.p... | adamlwgriffiths/Pyrr | ae9903fa3365d99fae588779df9e13d23fc3fc7d | generate_normals for vertices instead of faces
Your utility `pyrr.vector3.generate_normals` works wonders for generating face normals. However, for constructing vertex normals from those face normals, I needed to write some additional code.
```python
def generate_vertex_normals(vertices, index):
face_normals =... | diff --git a/README.md b/README.md
index 734c277..b005037 100644
--- a/README.md
+++ b/README.md
@@ -188,10 +188,11 @@ Authors
-------
* [Adam Griffiths](https://github.com/adamlwgriffiths/).
- * [Chris Bates](https://github.com/chrsbats)
- * [Jakub Stasiak](https://github.com/jstasiak/).
+ * [Chris Bates](htt... |
adamlwgriffiths__Pyrr-88 | [
{
"changes": {
"added_entities": [
"pyrr/plane.py:distance"
],
"added_modules": [
"pyrr/plane.py:distance"
],
"edited_entities": [
"pyrr/plane.py:create_from_position",
"pyrr/plane.py:create_xy",
"pyrr/plane.py:create_xz",
"pyrr/plane... | adamlwgriffiths/Pyrr | 530820191954abcb9c7c54602fe13ba16912ba48 | Inconsitent Position / Distance to plane
Thank you for this useful Library.
There is some unexpected behavior for planes concerning the sign of the distance:
Take for example the following Plane:
```
plane = pyrr.plane.create_from_position(position=[0, 0, 1], normal=[0, 0, 1])
```
which returns the expected plane... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9215a38..624dd4e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](htt... |
adamtheturtle__chroot_tasker-39 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"cli/cli.py:create"
],
"edited_modules": [
"cli/cli.py:create"
]
},
"file": "cli/cli.py"
},
{
"changes": {
"added_entities": null,
"added_modules": n... | adamtheturtle/chroot_tasker | 7b0b5a74595f65c1b615da9365dea300435181b7 | Remove unused stdio options | diff --git a/README.rst b/README.rst
index ed34f92..b95f329 100644
--- a/README.rst
+++ b/README.rst
@@ -67,8 +67,8 @@ To use ``tasker``:
# An image to download, extract and create a chroot jail in.
image_url = 'http://example.com/image.tar'
- # The image will be downloaded and extracted into the parent.
- ... |
adamtheturtle__chroot_tasker-41 | [
{
"changes": {
"added_entities": [
"cli/cli.py:health_check",
"cli/cli.py:send_signal"
],
"added_modules": [
"cli/cli.py:health_check",
"cli/cli.py:send_signal"
],
"edited_entities": [
"cli/cli.py:create"
],
"edited_modules": [
... | adamtheturtle/chroot_tasker | a11bb67cbc42ec7a8e05c1e501386e223d1d1e85 | Library function for sending signals
Also think how this will be presented as part of the CLI. | diff --git a/README.rst b/README.rst
index b95f329..0c24344 100644
--- a/README.rst
+++ b/README.rst
@@ -36,8 +36,16 @@ One way to use this is:
.. code:: sh
- $ sudo $(which tasker) create <IMAGE_URL> "<COMMANDS>"
- 8935 # This is the PID of the new process.
+ # Root permissions are necessary to create the t... |
adamtheturtle__doccmd-418 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/doccmd/__init__.py:_get_sybil",
"src/doccmd/__init__.py:main"
],
"edited_modules": [
"src/doccmd/__init__.py:_get_sybil",
"src/doccmd/__init__.py:main"
]
... | adamtheturtle/doccmd | 55290fec466a5056f8932030cb96b6695c20294c | Add support for running j2lint over sphinx-jinja2 blocks
- [x] Support sphinx-jinja2 blocks in sybil-extras (myst, rst)
- [x] Support grouped sphinx-jinja2 blocks in sybil-extras (myst, rst)
- [ ] Support some way of saying in doccmd "I want to look at jinja2 blocks"
- [ ] Allow having no "language" option given
... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index cf1f621..ad7e64c 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -4,6 +4,8 @@ Changelog
Next
----
+* Add a ``--sphinx-jinja2`` option to evaluate `sphinx-jinja2 <https://sphinx-jinja2.readthedocs.io/en/latest/>`_ blocks.
+
2025.03.18
----------
diff --git a/REA... |
adamtheturtle__doccmd-78 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/doccmd/__init__.py:_run_args_against_docs"
],
"edited_modules": [
"src/doccmd/__init__.py:_run_args_against_docs"
]
},
"file": "src/doccmd/__init__.py"
}
] | adamtheturtle/doccmd | caf2f7628eb0bc39fdd90edf1e4e0aef8666ac69 | Handle subprocess errors gracefully
Handle `FileNotFound` for a command which does not exist.
Handle the command being a file which is not executable. | diff --git a/src/doccmd/__init__.py b/src/doccmd/__init__.py
index 9571c0d..7d4de50 100644
--- a/src/doccmd/__init__.py
+++ b/src/doccmd/__init__.py
@@ -96,13 +96,13 @@ def _run_args_against_docs(
example.evaluate()
except subprocess.CalledProcessError as exc:
sys.exit(exc.returncode)... |
adamtheturtle__todo-28 | [
{
"changes": {
"added_entities": [
"authentication/authentication.py:read_todo"
],
"added_modules": [
"authentication/authentication.py:read_todo"
],
"edited_entities": null,
"edited_modules": null
},
"file": "authentication/authentication.py"
},
{... | adamtheturtle/todo | 7666d2181cdea24c963f2d99f918fd368fefafef | Add ability to read a TODO item | diff --git a/authentication/authentication.py b/authentication/authentication.py
index 7b64ff6..f9b7cee 100644
--- a/authentication/authentication.py
+++ b/authentication/authentication.py
@@ -288,6 +288,26 @@ def create_todo():
return jsonify(create.json()), create.status_code
+
+@app.route('/todos/<id>', met... |
adamtheturtle__todo-35 | [
{
"changes": {
"added_entities": [
"authentication/authentication.py:delete_todo"
],
"added_modules": [
"authentication/authentication.py:delete_todo"
],
"edited_entities": null,
"edited_modules": null
},
"file": "authentication/authentication.py"
},... | adamtheturtle/todo | 418d1cc9a4fea4d7332715aa8b57eb13b65130c6 | Add ability to delete a TODO item | diff --git a/README.md b/README.md
index 6906cef..71463e4 100644
--- a/README.md
+++ b/README.md
@@ -63,6 +63,7 @@ To start developing quickly, it is recommended that you create a `virtualenv` wi
Tests are run on [Travis-CI](https://travis-ci.org/adamtheturtle/todo).
+See `.travis.yml` for details of exactly what ... |
adamtheturtle__todo-39 | [
{
"changes": {
"added_entities": [
"authentication/authentication.py:list_todos"
],
"added_modules": [
"authentication/authentication.py:list_todos"
],
"edited_entities": null,
"edited_modules": null
},
"file": "authentication/authentication.py"
},
... | adamtheturtle/todo | e62c632ff6b104c40fd0f4580f4e2c8a2f084026 | Add ability to list all TODOs | diff --git a/authentication/authentication.py b/authentication/authentication.py
index bccc34e..ff1d8a1 100644
--- a/authentication/authentication.py
+++ b/authentication/authentication.py
@@ -154,10 +154,9 @@ def login():
"""
Log in a given user.
- :param email: An email address to log in as.
- :type... |
adamtheturtle__todo-46 | [
{
"changes": {
"added_entities": [
"authentication/authentication.py:update_todo"
],
"added_modules": [
"authentication/authentication.py:update_todo"
],
"edited_entities": null,
"edited_modules": null
},
"file": "authentication/authentication.py"
},... | adamtheturtle/todo | 736849d28dacdf6112fe2bef70aec1b6ceced636 | Add ability to update a TODO item (PATCH) | diff --git a/authentication/authentication.py b/authentication/authentication.py
index c123d4f..445bcc7 100644
--- a/authentication/authentication.py
+++ b/authentication/authentication.py
@@ -327,7 +327,7 @@ def delete_todo(id):
@consumes('application/json')
def list_todos():
"""
- List todo items.
+ List... |
adamtheturtle__todo-47 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "authentication/authentication.py"
}
] | adamtheturtle/todo | f81fa85e3c06d931963f76f2d0772ce0b9db67b9 | Protect the TODO CRUD APIs | diff --git a/authentication/authentication.py b/authentication/authentication.py
index 445bcc7..6937a58 100644
--- a/authentication/authentication.py
+++ b/authentication/authentication.py
@@ -250,9 +250,10 @@ def signup():
@app.route('/todos', methods=['POST'])
@consumes('application/json')
@jsonschema.validate('to... |
adamtheturtle__todo-49 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "authentication/authentication.py"
}
] | adamtheturtle/todo | 1d4c12ba785e521b5b0b8b40d54613280cf0bb34 | Rename authentication service | diff --git a/.travis.yml b/.travis.yml
index 087594a..dbd7728 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,7 @@ script:
# Build documentation HTML.
- sphinx-build -W -b html -d build/doctrees docs/source build/html
# Run all discoverable tests, but set the source directories so that the coverage too... |
adbar__simplemma-114 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"simplemma/language_detector.py:LanguageDetector.proportion_in_target_languages"
],
"edited_modules": [
"simplemma/language_detector.py:LanguageDetector"
]
},
"file": "s... | adbar/simplemma | fa1d96469ca601b5249b8d5cbb42c1474cfd83bb | in_target_language can count words twice and return ratios above 1.0
I noticed that in current `main` version, the `in_target_language` function can return ratios above 1.0 when given more than one language and the words in the input are matching several languages.
Example:
>>> in_target_language('It was a tr... | diff --git a/simplemma/language_detector.py b/simplemma/language_detector.py
index 52369a6..f6fab14 100644
--- a/simplemma/language_detector.py
+++ b/simplemma/language_detector.py
@@ -198,14 +198,18 @@ class LanguageDetector:
Returns:
float: The proportion of text in the target language(s).
... |
adbar__simplemma-150 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"simplemma/language_detector.py:LanguageDetector.proportion_in_target_languages"
],
"edited_modules": [
"simplemma/language_detector.py:LanguageDetector"
]
},
"file": "s... | adbar/simplemma | e1fb6a07d2896b153b18cacf5bf40803b23115de | in_target_language can return ratios above 1.0 (again)
Bug #112 seems to have resurfaced. Again, `in_target_language('It was a true gift', lang=('en','de'))` returns 1.6666... in simplemma 1.1.1.
Looking at the code for `proportion_in_target_languages`, it was changed back to the [buggy algorithm](https://github.com... | diff --git a/simplemma/language_detector.py b/simplemma/language_detector.py
index 30c35be..451c71a 100644
--- a/simplemma/language_detector.py
+++ b/simplemma/language_detector.py
@@ -189,14 +189,18 @@ class LanguageDetector:
Returns:
float: The proportion of text in the target language(s).
... |
adbar__simplemma-84 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "simplemma/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": [
"simplemma/dictionary_factory.py:DefaultDictio... | adbar/simplemma | f648129b462d911fcbfd3149ed7d86d18c0d1db3 | Add protocol classes for classes that can be extended by the user
At the moment these are:
* DictionaryFactory
* Tokenizer
* TokenSampler | diff --git a/simplemma/__init__.py b/simplemma/__init__.py
index 5b12946..74510e6 100644
--- a/simplemma/__init__.py
+++ b/simplemma/__init__.py
@@ -9,11 +9,12 @@ __version__ = "0.9.1"
from .language_detector import LanguageDetector, in_target_language, langdetect
from .lemmatizer import Lemmatizer, lemmatize, lemm... |
aegirhall__console-menu-25 | [
{
"changes": {
"added_entities": [
"consolemenu/console_menu.py:ConsoleMenu.get_title",
"consolemenu/console_menu.py:ConsoleMenu.get_subtitle",
"consolemenu/console_menu.py:ConsoleMenu.get_prologue_text",
"consolemenu/console_menu.py:ConsoleMenu.get_epilogue_text",
... | aegirhall/console-menu | de4c267a00441f9027e43a40b12f23c4b8ee29b6 | Dynamic, updateable menus
I use console-menu in a script to power a dynamic checklist. So as each menu option is chosen, the user is asked in a `SelectionMenu` whether the task is completed. If answering Yes, the state in the app is updated. But the update is not reflected when the menu refreshes.
Looks like the men... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index aebb0ae..c9704b4 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,3 +1,7 @@
+v0.6.1 (2019-xx-xx)
+===================
+- Dynamic, updateable menus (#25).
+
v0.6.0 (2019-09-07)
===================
- Fix issue #28, allow console screen argument for SelectionMenu.
di... |
aelanman__lunarsky-19 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"lunarsky/mcmf.py:make_transform"
],
"edited_modules": [
"lunarsky/mcmf.py:make_transform"
]
},
"file": "lunarsky/mcmf.py"
},
{
"changes": {
"added_entitie... | aelanman/lunarsky | 4bc92911efb60d69ec2e03e44cef5d3d0191b3ca | Buggy behaviour if MCMF coords supplied without units
It seems that if MCMF object is created without explicit astropy units and then turned into `SkyCoords`, alt/az calculations are done assuming object at the Moon center without any warning.
See demonstration [here](https://github.com/slosar/notebooks/blob/master/lu... | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 06e6d7e..6c7fb1c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,8 +1,8 @@
-exclude: '(^lunarsky/data/*)'
+exclude: '(^lunarsky/data/)'
repos:
- - repo: git://github.com/pre-commit/pre-commit-hooks
- rev: v2.5.0
+ ... |
aequitas__python-rflink-39 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"rflink/parser.py:decode_packet"
],
"edited_modules": [
"rflink/parser.py:decode_packet"
]
},
"file": "rflink/parser.py"
},
{
"changes": {
"added_entities"... | aequitas/python-rflink | 1b2ea3d82e4138fb5b35c763df94aa0a63d24acf | decode_packet: too many values to unpack (expected 2)
I use rflink integration in my HA setup and often get this in HA log:
> 2020-01-22 07:49:56 ERROR (MainThread) [rflink.protocol] failed to parse packet: None
> Traceback (most recent call last):
> File "/usr/local/lib/python3.7/site-packages/rflink/protocol.p... | diff --git a/.travis.yml b/.travis.yml
index 30fa75f..e52730d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,11 +7,13 @@ python:
- 3.8
- 2.7
- pypy3
-install: pip install tox-travis python-coveralls codeclimate-test-reporter
+# python-coveralls 5.0 no longer supports python34
+install: pip install tox-travis codec... |
aesara-devs__aesara-1018 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aesara/tensor/basic.py:identity_like"
],
"edited_modules": [
"aesara/tensor/basic.py:identity_like"
]
},
"file": "aesara/tensor/basic.py"
}
] | aesara-devs/aesara | 7393b7441601eaad98bc0cb494aa8fba2ea4bf6a | One should be able to specify the dtype when using `identity_like`
The [current implementation](https://github.com/aesara-devs/aesara/blob/630b55741946a9aa7c33343a866ca920f0891211/aesara/tensor/basic.py#L1439-L1440) of `identity_like` does not allow to specify the dtype, unlike the current implementation of `ones_like`... | diff --git a/aesara/tensor/basic.py b/aesara/tensor/basic.py
index 8a974ea67..fb26ee487 100644
--- a/aesara/tensor/basic.py
+++ b/aesara/tensor/basic.py
@@ -1422,8 +1422,22 @@ def eye(n, m=None, k=0, dtype=None):
return localop(n, m, k)
-def identity_like(x):
- return eye(x.shape[0], x.shape[1], k=0, dtype=... |
aesara-devs__aesara-513 | [
{
"changes": {
"added_entities": [
"aesara/scalar/math.py:GammaInc.grad",
"aesara/scalar/math.py:GammaIncC.grad",
"aesara/scalar/math.py:GammaIncDer.impl",
"aesara/scalar/math.py:GammaIncCDer.st_impl",
"aesara/scalar/math.py:GammaIncCDer.impl"
],
"added_... | aesara-devs/aesara | 99fbef6ef195545c283d1a8164d1f2604b9b650f | Implement grad for GammaInc
The Gamma `logcdf` does not have a gradient function implemented.
Example:
```
self.GI_mean = pm.Normal('GI_mean', gi_mean_mean, gi_mean_sd)
self.GI_sd = pm.Normal('GI_sd', gi_sd_mean, gi_sd_sd)
gi_beta = self.GI_mean / self.GI_sd ** 2
gi_alpha = self.GI_mean ** 2 / self.GI_sd *... | diff --git a/aesara/scalar/math.py b/aesara/scalar/math.py
index b8355b62f..569714091 100644
--- a/aesara/scalar/math.py
+++ b/aesara/scalar/math.py
@@ -556,6 +556,14 @@ class GammaInc(BinaryScalarOp):
def impl(self, k, x):
return GammaInc.st_impl(k, x)
+ def grad(self, inputs, grads):
+ (k, x... |
aesara-devs__aesara-549 | [
{
"changes": {
"added_entities": [
"aesara/tensor/rewriting/math.py:local_sub_neg_to_add",
"aesara/tensor/rewriting/math.py:local_add_neg_to_sub"
],
"added_modules": [
"aesara/tensor/rewriting/math.py:local_sub_neg_to_add",
"aesara/tensor/rewriting/math.py:local... | aesara-devs/aesara | 77df6673fd56f368c3d174d09f2bbda3d3837504 | Create canonicalization for `sub(x, neg(y))`
Seems like we are missing a canonicalization for `sub(x, neg(y)) -> add(x, y)` :
```python
import aesara
import aesara.tensor as at
x = at.scalar("x")
y = at.scalar("y")
z = x - (-y)
f = aesara.function([x, y], z)
aesara.dprint(f)
```
```
Elemwise{Composite{... | diff --git a/aesara/tensor/rewriting/math.py b/aesara/tensor/rewriting/math.py
index 3c38a6086..2aeb701cf 100644
--- a/aesara/tensor/rewriting/math.py
+++ b/aesara/tensor/rewriting/math.py
@@ -1788,6 +1788,53 @@ def local_neg_div_neg(fgraph, node):
return [true_div(new_num, denom)]
+@register_c... |
aesara-devs__aesara-640 | [
{
"changes": {
"added_entities": [
"aesara/tensor/random/type.py:RandomStateType.__eq__",
"aesara/tensor/random/type.py:RandomStateType.__hash__",
"aesara/tensor/random/type.py:RandomGeneratorType.__eq__",
"aesara/tensor/random/type.py:RandomGeneratorType.__hash__"
],... | aesara-devs/aesara | 9e7aea88b99bd7bf8b1cd75a3680d4989778f5cd | RandomType pickling issues
This problem was seen in https://github.com/pymc-devs/pymc/issues/5090
```python
import numpy as np
import aesara
# import cloudpickle as pickle # either library fails
import pickle
# same problem with aesara.shared(np.random.RandomState())
var1 = aesara.shared(np.random.default... | diff --git a/aesara/tensor/random/type.py b/aesara/tensor/random/type.py
index 985646018..ff00669c4 100644
--- a/aesara/tensor/random/type.py
+++ b/aesara/tensor/random/type.py
@@ -93,6 +93,12 @@ class RandomStateType(RandomType):
return _eq(sa, sb)
+ def __eq__(self, other):
+ return type(self) ... |
aesara-devs__aesara-667 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aesara/link/numba/dispatch/basic.py:numba_funcify_DeepCopyOp"
],
"edited_modules": [
"aesara/link/numba/dispatch/basic.py:numba_funcify_DeepCopyOp"
]
},
"file": "aesara... | aesara-devs/aesara | 972694585039e65cf67b7f8d829ccdd3694dede5 | Numba implementation of `RandomState` cannot update values in Graph.
## Description of your problem or feature request
**Please provide a minimal, self-contained, and reproducible example.**
```python
import aesara
aesara.config.mode = "NUMBA"
import aesara.tensor as at
import numpy as np
rng = aesara... | diff --git a/aesara/link/numba/dispatch/basic.py b/aesara/link/numba/dispatch/basic.py
index 90868834b..d2bdf92e6 100644
--- a/aesara/link/numba/dispatch/basic.py
+++ b/aesara/link/numba/dispatch/basic.py
@@ -430,7 +430,9 @@ def numba_funcify_DeepCopyOp(op, node, **kwargs):
# Scalars are apparently returned as a... |
aesara-devs__aesara-902 | [
{
"changes": {
"added_entities": [
"aesara/compile/builders.py:OpFromGraph.__call__"
],
"added_modules": null,
"edited_entities": [
"aesara/compile/builders.py:OpFromGraph.__init__",
"aesara/compile/builders.py:OpFromGraph.make_node"
],
"edited_modules... | aesara-devs/aesara | 6ef1452a83681e2ccd582ba12aaa7be778e1ff15 | `OpFromGraph.make_node`'s expected inputs and actual inputs are inconsistent
`OpFromGraph.make_node` expects inputs corresponding to each of its inner-graph inputs, except for the shared variables; however, `OpFromGraph.make_node` also constructs `Apply` nodes such that `Apply.inputs` _contains_ the shared variable inp... | diff --git a/aesara/compile/builders.py b/aesara/compile/builders.py
index b714138eb..4328e95e7 100644
--- a/aesara/compile/builders.py
+++ b/aesara/compile/builders.py
@@ -375,6 +375,11 @@ class OpFromGraph(Op, HasInnerGraph):
self.kwargs = kwargs
self.input_types = [inp.type for inp in inputs]
... |
aesara-devs__aesara-928 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aesara/scalar/basic.py:Pow.c_code_contiguous"
],
"edited_modules": [
"aesara/scalar/basic.py:Pow"
]
},
"file": "aesara/scalar/basic.py"
},
{
"changes": {
... | aesara-devs/aesara | b60cf7240a6d17ed80db2bd9b43c6faf377d64fe | C Elemwise implementation doesn't broadcast variables
I'm seeing a very weird error in `Elemwise`:
First, here's a basic broadcasting operations in NumPy:
```python
import numpy as np
x = np.array([[-1.32720483],
[ 0.23442016]])
m = np.array([0., 0.])
z = x - m
```
```python
>>> z
a... | diff --git a/aesara/scalar/basic.py b/aesara/scalar/basic.py
index 0bf12a70a..36a05c387 100644
--- a/aesara/scalar/basic.py
+++ b/aesara/scalar/basic.py
@@ -2307,6 +2307,8 @@ class Pow(BinaryScalarOp):
if (
node.inputs[0].type == node.outputs[0].type
and node.inputs[1].type == node.ou... |
aesara-devs__aesara-946 | [
{
"changes": {
"added_entities": [
"aesara/printing.py:op_debug_information"
],
"added_modules": [
"aesara/printing.py:op_debug_information"
],
"edited_entities": [
"aesara/printing.py:debugprint",
"aesara/printing.py:_debugprint"
],
"edi... | aesara-devs/aesara | c7b416e15e5ff7df137cfa528082df91392112db | Add `Scan` input/output labels to the debug output
When printing a `Scan` node using `aesara.dprint`, it would be helpful to have labels next to each outer/inner-input/output describing exactly which types of inputs/outputs they are.
Here's an example from #921:
```python
import aesara
import aesara.tensor as at
... | diff --git a/aesara/printing.py b/aesara/printing.py
index f6ee80be3..6dff776e2 100644
--- a/aesara/printing.py
+++ b/aesara/printing.py
@@ -11,7 +11,7 @@ import sys
from abc import ABC, abstractmethod
from contextlib import contextmanager
from copy import copy
-from functools import reduce
+from functools import re... |
aesara-devs__aesara-947 | [
{
"changes": {
"added_entities": [
"aesara/link/c/cmodule.py:GCC_compiler.patch_ldflags",
"aesara/link/c/cmodule.py:GCC_compiler.linking_patch"
],
"added_modules": null,
"edited_entities": [
"aesara/link/c/cmodule.py:std_lib_dirs_and_libs",
"aesara/link/c/... | aesara-devs/aesara | b83398e67d773794c275d81c2b938a2d5dc8c279 | Aesara fails to set the correct default blas ldflags to link with MKL on windows
## Description of your problem or feature request
MKL libraries on windows are supplied as dynamic link libraries (e.g. `mkl_core.1.dll`) and don't have the lib prefix. When aesara tries to set the default blas ldflags [here](https://gi... | diff --git a/aesara/link/c/cmodule.py b/aesara/link/c/cmodule.py
index add8419a7..6b30496a3 100644
--- a/aesara/link/c/cmodule.py
+++ b/aesara/link/c/cmodule.py
@@ -14,6 +14,7 @@ import shutil
import stat
import subprocess
import sys
+import sysconfig
import tempfile
import textwrap
import time
@@ -1678,7 +1679,7... |
aesara-devs__aesara-968 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aesara/compile/function/types.py:Function.copy"
],
"edited_modules": [
"aesara/compile/function/types.py:Function"
]
},
"file": "aesara/compile/function/types.py"
}
] | aesara-devs/aesara | 104dc0379c3585a0bc8ebb87f61f2ae38d101b83 | Copied function does not respect original single output format
```python
import aesara
import aesara.tensor as at
f1 = aesara.function([], at.constant(1.0))
f2 = f1.copy()
print(f1(), f2()) # 1.0 [array(1., dtype=float32)]
``` | diff --git a/aesara/compile/function/types.py b/aesara/compile/function/types.py
index 8aa1e3ee8..d1f9eae2f 100644
--- a/aesara/compile/function/types.py
+++ b/aesara/compile/function/types.py
@@ -785,6 +785,8 @@ class Function:
f_cpy.finder[swap[in_ori.variable]] = container
in_cpy.va... |
aesara-devs__aesara-972 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aesara/link/c/cmodule.py:GCC_compiler.compile_args"
],
"edited_modules": [
"aesara/link/c/cmodule.py:GCC_compiler"
]
},
"file": "aesara/link/c/cmodule.py"
}
] | aesara-devs/aesara | ead2c02b098f5fb520853be5cca278bbbdc8ec02 | Narrowing error on macOS
Compiling ops with fast_run on macOS results in an error because of "narrowing". This is a known issue (e.g. https://github.com/pymc-devs/pymc3/issues/3695) that is handled by downstream projects like PyMC3 (https://github.com/pymc-devs/pymc3/pull/3767). I propose that we fix this here by addin... | diff --git a/aesara/link/c/cmodule.py b/aesara/link/c/cmodule.py
index 02b4e0f11..cd8531be5 100644
--- a/aesara/link/c/cmodule.py
+++ b/aesara/link/c/cmodule.py
@@ -2363,6 +2363,12 @@ class GCC_compiler(Compiler):
# Use the already-loaded python symbols.
cxxflags.extend(["-undefined", "dynamic... |
aesara-devs__aesara-981 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aesara/tensor/elemwise.py:Elemwise.infer_shape"
],
"edited_modules": [
"aesara/tensor/elemwise.py:Elemwise"
]
},
"file": "aesara/tensor/elemwise.py"
},
{
"chang... | aesara-devs/aesara | 8559ae44a21e687f342931b254ac7fab61ccfc5c | `Elemwise.infer_shape` incorrectly relies on its outputs' broadcast patterns
### Discussed in https://github.com/aesara-devs/aesara/discussions/978
<div type='discussions-op-text'>
<sup>Originally posted by **jessegrabowski** June 5, 2022</sup>
Hello,
I am trying to hunt down the cause of a shape issue in my... | diff --git a/aesara/tensor/elemwise.py b/aesara/tensor/elemwise.py
index 9db605596..dd3c25783 100644
--- a/aesara/tensor/elemwise.py
+++ b/aesara/tensor/elemwise.py
@@ -16,7 +16,6 @@ from aesara.misc.frozendict import frozendict
from aesara.misc.safe_asarray import _asarray
from aesara.printing import FunctionPrinter... |
aesara-devs__aesara-986 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aesara/tensor/blas.py:GemmRelated.build_gemm_call",
"aesara/tensor/blas.py:Gemm.perform",
"aesara/tensor/blas.py:Gemm.infer_shape",
"aesara/tensor/blas.py:Gemm.c_code_cache_versi... | aesara-devs/aesara | 064e72f4c37d069dbb5e829e38cf196d32c89fa8 | Gemm fails with simple broadcasting case
```python
import aesara
import aesara.tensor as at
import numpy as np
b_v = np.ones((1, 100))
w_v = np.ones((6, 100))
x_v = np.ones((10, 6))
x = at.matrix("x")
b = at.matrix("b")
w = at.matrix("w")
out = at.dot(x, w) + b
# It works fine if mode="FAST_COMPILE",... | diff --git a/aesara/tensor/blas.py b/aesara/tensor/blas.py
index ac8e258ff..9e3599c9c 100644
--- a/aesara/tensor/blas.py
+++ b/aesara/tensor/blas.py
@@ -138,7 +138,6 @@ try:
except ImportError:
pass
-from functools import reduce
from typing import Tuple, Union
import aesara.scalar
@@ -630,8 +629,10 @@ class... |
aesara-devs__aesara-995 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"aesara/graph/type.py:Type.is_valid_value"
],
"edited_modules": [
"aesara/graph/type.py:Type"
]
},
"file": "aesara/graph/type.py"
},
{
"changes": {
"added_... | aesara-devs/aesara | 174117f9b0a2c1ddb13e6244bbb31d6c75c12245 | Error w/ deepcopy of pymc v4 model
## Generating a deep copy of pymc v4 model results in aesara error
**Please provide a minimal, self-contained, and reproducible example.**
```python
from copy import deepcopy
import numpy as np
import pymc as pm
RANDOM_SEED = 8927
rng = np.random.default_rng(RANDOM_SEED)
... | diff --git a/aesara/graph/type.py b/aesara/graph/type.py
index f26d72664..f35a6d969 100644
--- a/aesara/graph/type.py
+++ b/aesara/graph/type.py
@@ -180,10 +180,10 @@ class Type(MetaObject):
return None
- def is_valid_value(self, data: D) -> bool:
+ def is_valid_value(self, data: D, strict: bool = Tr... |
agraubert__agutil-123 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "agutil/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"agutil/security/s... | agraubert/agutil | 4ec472cc162415a809bf16ef69e045351b44c59e | SecureConnection.savefile() times out for large files
Right now the _timeout_ argument for SecureConnection.savefile() applies to the operation as a whole. This is inconsequential for small files, but can timeout on larger files where the transfer may not complete in time even though the two sockets are still actively... | diff --git a/README.md b/README.md
index 38e01c1..4e79ffb 100644
--- a/README.md
+++ b/README.md
@@ -34,5 +34,29 @@ The __security__ package:
## Documentation:
Detailed documentation of these packages can be found on the [agutil Github wiki page](https://github.com/agraubert/agutil/wiki)
+## Features in development... |
agrc__sweeper-51 | [
{
"changes": {
"added_entities": [
"src/sweeper/address_parser.py:normalize_street_name_pre_type"
],
"added_modules": [
"src/sweeper/address_parser.py:normalize_street_name_pre_type"
],
"edited_entities": [
"src/sweeper/address_parser.py:Address.__init__"
... | agrc/sweeper | 75254926a9de985e82bb2fa116948302d4fb8abe | State Routes SR
Addresses like 910 S SR 22 or 1910 N US HWY 89
will return 22 and 89 for the street_name | diff --git a/.gitignore b/.gitignore
index 9fbddef..1fe895c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
__pycache__
dist/
build/
+.env/
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 1d21cf6..40c0fd3 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -12,6 +12,7 @@
... |
agronholm__anyio-137 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/anyio/__init__.py:getaddrinfo"
],
"edited_modules": [
"src/anyio/__init__.py:getaddrinfo"
]
},
"file": "src/anyio/__init__.py"
},
{
"changes": {
"adde... | agronholm/anyio | cfba438b71237aeb93bfb955a8e70edd8f101ac9 | Should we expose the user to 4-tuple IPv6 socket addresses?
The result of `sock.getsockname()` for IPv6 sockets is a 4-tuple (address, port, flowinfo, scopeid). The last two fields are specific to IPv6. The flowinfo field is useless/deprecated and the scopeid is only meaningful for link-local addresses. The important p... | diff --git a/src/anyio/__init__.py b/src/anyio/__init__.py
index 2b2cfec..cb1fd4b 100644
--- a/src/anyio/__init__.py
+++ b/src/anyio/__init__.py
@@ -14,6 +14,7 @@ from typing import TypeVar, Callable, Union, Optional, Awaitable, Coroutine, Any
import sniffio
+from ._utils import convert_ipv6_sockaddr
from .abc im... |
agronholm__anyio-158 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/anyio/streams/stapled.py:MultiListener.extra_attributes"
],
"edited_modules": [
"src/anyio/streams/stapled.py:MultiListener"
]
},
"file": "src/anyio/streams/stapled... | agronholm/anyio | 3e3f988abdd97435d06e57fe183a53d230ab0142 | TypeError: 'SocketListener' object is not iterable exception on MultiListener.extra() call
Call to ``MultiListener.extra()`` results in ``TypeError: 'SocketListener' object is not iterable``:
```
>>> import anyio
>>> listener = await anyio.create_tcp_listener(local_port=33333)
>>> listener.extra(anyio.abc.SocketA... | diff --git a/src/anyio/streams/stapled.py b/src/anyio/streams/stapled.py
index c344d49..a0927c2 100644
--- a/src/anyio/streams/stapled.py
+++ b/src/anyio/streams/stapled.py
@@ -120,6 +120,6 @@ class MultiListener(Generic[T_Stream], Listener[T_Stream]):
def extra_attributes(self):
attributes = {}
... |
agronholm__anyio-180 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/anyio/_backends/_asyncio.py:StreamProtocol.connection_made",
"src/anyio/_backends/_asyncio.py:StreamProtocol.connection_lost",
"src/anyio/_backends/_asyncio.py:StreamProtocol.pause_w... | agronholm/anyio | b7d4d2c28ffb4aa4b46a340c07108b4a3ed81b23 | [asyncio] socket.send() raised exception.
I get this very weird print on the console in my application:
"socket.send() raised exception."
The program essentially looks like the following
```
def handle(client):
async with client:
async for msg in receive_stream:
await client.send(msg)... | diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst
index 8afd380..103b6fd 100644
--- a/docs/versionhistory.rst
+++ b/docs/versionhistory.rst
@@ -7,6 +7,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
- Fixed ``Event`` objects on the trio backend not inheriting from ``anyio.a... |
agronholm__anyio-220 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "src/anyio/__init__.py"
},
{
"changes": {
"added_entities": [
"src/anyio/_backends/_asyncio.py:Event.statistics",
"src/anyio/_bac... | agronholm/anyio | dba3f2a283a14dacb033777b9a9b2a0540b1b949 | Add the statistics() method to synchronization primitives
Trio's synchronization primitives allow one to observe their statistics:
* CapacityLimiter
* Condition
* Lock
* Event
* Semaphore
These ought to be supported on AnyIO as well, now that we have otherwise compatible implementations of these primitives in A... | diff --git a/docs/api.rst b/docs/api.rst
index 9eb27eb..6c74785 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -92,6 +92,7 @@ Streams and stream wrappers
.. autoclass:: anyio.streams.file.FileWriteStream
.. autoclass:: anyio.streams.memory.MemoryObjectReceiveStream
.. autoclass:: anyio.streams.memory.MemoryObjectSe... |
agronholm__anyio-224 | [
{
"changes": {
"added_entities": [
"src/anyio/_backends/_asyncio.py:UNIXSocketStream.__init__",
"src/anyio/_backends/_asyncio.py:UNIXSocketStream._raw_socket",
"src/anyio/_backends/_asyncio.py:UNIXSocketStream._wait_until_readable",
"src/anyio/_backends/_asyncio.py:UNIXSock... | agronholm/anyio | 3ff5cde661a56254c5126cdebf95435101e765f9 | Using "recvmsg" with anyio
Using `wait_socket_readable` fails when using asyncio.
Seems that asyncio decides to add a socket reader as soon as the socket is opened – which causes `BaseSelectorEventLoop._ensure_fd_no_transport` to go splat when I try to check for readability.
This test program succeeds with trio, ... | diff --git a/docs/networking.rst b/docs/networking.rst
index 83ff4ba..023af9d 100644
--- a/docs/networking.rst
+++ b/docs/networking.rst
@@ -101,6 +101,53 @@ And the listener::
run(main)
+Sending and receiving file descriptors
+++++++++++++++++++++++++++++++++++++++
+
+UNIX sockets can be used to pass open fil... |
agronholm__anyio-225 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/anyio/_backends/_asyncio.py:SocketStream.send",
"src/anyio/_backends/_asyncio.py:TCPSocketListener.accept",
"src/anyio/_backends/_asyncio.py:TCPSocketListener.aclose",
"src/a... | agronholm/anyio | 97aa0d83da0db0332edc27143669e5eb923c6b17 | during asyncio tests set a default loop exception_handler that warns (similar to -p unraisablehook)
consider the following test:
```python
import pytest
import asyncio
@pytest.mark.anyio
@pytest.mark.parameterize("anyio_backend", ["asyncio"])
async def test_foo():
def raise_():
raise Exception
... | diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst
index bff403b..1b836f3 100644
--- a/docs/versionhistory.rst
+++ b/docs/versionhistory.rst
@@ -61,6 +61,9 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_.
- Changed ``CancelScope.deadline`` to be writable
- ``Lock`` and ``Conditi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.