commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
260303ac933ee93cf7e78e3dd7028d2c51593ab9 | Remove unused quadtree import. | ed2d/physics/quadtree.py | ed2d/physics/quadtree.py | from ed2d.physics.rectangle import Rectangle
from ed2d.physics.physobj import PhysObj
class QuadTree(object):
def __init__(self, lvl, bounds):
self.level = lvl
self.bounds = bounds
self.max_objects = 1
self.max_levels = 5
self.objects = []
self.nodes = []
def clear(self):
self.objects = []
for i in ... | Python | 0 | @@ -41,49 +41,8 @@
ngle
-%0Afrom ed2d.physics.physobj import PhysObj
%0A%0Acl
|
f86ab81195b9525d19be417423f817658a1be972 | Add validator to check for non-negative quantity | shop/cart/forms.py | shop/cart/forms.py | # -*- coding: utf-8 -*-
"""Cart forms."""
from datetime import date
from flask_wtf import Form
from flask_login import current_user
from shop.cart.models import SaleLine
from shop.user.models import Address
from shop.globals import current_cart
from shop.product.models import Product
from wtforms.fields import FloatFie... | Python | 0 | @@ -405,16 +405,29 @@
Optional
+, NumberRange
%0Afrom wt
@@ -548,16 +548,25 @@
atField(
+%0A
'Quantit
@@ -581,16 +581,24 @@
ult=1.0,
+%0A
validat
@@ -612,25 +612,52 @@
taRequired()
-%5D
+, NumberRange(min=1.0)%5D%0A
)%0A produc
|
b2652e34ffaff3fe24f04f441dd9da0fa69778ea | Increment simulator | panoptes/camera/simulator.py | panoptes/camera/simulator.py | import os
import asyncio
import datetime
from astropy.time import Time
from .camera import AbstractCamera
class Camera(AbstractCamera):
def __init__(self, config, **kwargs):
super().__init__(config)
self._loop = asyncio.get_event_loop()
self._loop_delay = kwargs.get('loop_delay', 5.0)
... | Python | 0.000001 | @@ -38,38 +38,8 @@
time
-%0Afrom astropy.time import Time
%0A%0Afr
@@ -609,16 +609,43 @@
MULATOR'
+%0A self._file_num = 0
%0A%0A de
@@ -987,24 +987,68 @@
%0A %22%22%22
+%0A self._file_num = self._file_num + 1
%0A%0A fi
@@ -1112,16 +1112,42 @@
r, '
-001.cr2'
+%7B:03d%7D.cr2'.format(... |
8ac4dd104f822241b3de6c70762747a5ee0f8c04 | ADD copyright information | weboob/frontends/travel/application.py | weboob/frontends/travel/application.py | # -*- coding: utf-8 -*-
"""
Copyright(C) 2010 Romain Bignon
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful... | Python | 0.000001 | @@ -54,16 +54,31 @@
n Bignon
+, Julien H%C3%A9bert
%0A%0AThis p
|
ad3a7d9bef598d1cdb31cce2f23faf5aa1608c42 | Bump to 0.5.1 | shopit/__init__.py | shopit/__init__.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
"""
Release logic:
1. Bump the __version__.
2. git add shopit/__init__.py
3. git commit -m 'Bump to <version>'
4. git push
5. Make sure all tests pass on https://travis-ci.com/dinoperovic/django-shopit
6. git tag <version>
7. git p... | Python | 0.000438 | @@ -419,17 +419,17 @@
= '0.5.
-0
+1
'%0A%0Adefau
|
f56a6fa0ae07fa7c138b6f692dfe3a8560b0a293 | Fix corner case with elemental config guessing | elemental.py | elemental.py | #! /usr/bin/env python
# encoding: utf-8
def configure(conf):
def get_param(varname,default):
return getattr(Options.options,varname,'')or default
import os
# Find Elemental
if conf.options.elemental_dir:
if not conf.options.elemental_incdir:
conf.options.elemental_incdir=c... | Python | 0.000005 | @@ -648,45 +648,177 @@
-conf.options.elemental_libdir+=%22 %22 +
+if conf.options.elemental_libdir:%0A conf.options.elemental_libdir+=%22 %22 + lib64%0A else:%0A conf.options.elemental_libdir=
lib6
|
486e573406548be791bae836d1e153642bceebc9 | Add some more tests. | shortuuid/tests.py | shortuuid/tests.py | import os
import string
import sys
import unittest
import pep8
from uuid import UUID, uuid4
sys.path.insert(0, os.path.abspath(__file__ + "/../.."))
from shortuuid.main import *
class LegacyShortUUIDTest(unittest.TestCase):
def test_generation(self):
self.assertTrue(20 < len(uuid()) < 24)
self.a... | Python | 0 | @@ -1541,16 +1541,96 @@
)), 22)%0A
+ for i in range(1, 100):%0A self.assertEqual(len(random(i)), i)%0A
%0A%0Aclass
@@ -2443,24 +2443,108 @@
om()), 22)%0A%0A
+ for i in range(1, 100):%0A self.assertEqual(len(su.random(i)), i)%0A%0A
def test
|
0f1697c589de985c11c92cd9d74377023759875c | Make Elemental autodetect handle lib/ and lib64/ | elemental.py | elemental.py | #! /usr/bin/env python
# encoding: utf-8
def configure(conf):
def get_param(varname,default):
return getattr(Options.options,varname,'')or default
# Find Elemental
if conf.options.elemental_dir:
if not conf.options.elemental_incdir:
conf.options.elemental_incdir=conf.options.el... | Python | 0 | @@ -154,16 +154,30 @@
efault%0A%0A
+ import os%0A
# Fi
@@ -189,16 +189,16 @@
emental%0A
-
if c
@@ -390,32 +390,123 @@
emental_libdir:%0A
+ lib=conf.options.elemental_dir + %22/lib%22%0A if os.path.isdir(lib):%0A
conf
@@ -523,32 +523,54 @@
lemental_libdir=
+lib%0A ... |
5c296010417b0a7c284d443b710f23edd747d3a6 | Fix demo setup.py. | Demos/setup.py | Demos/setup.py | import glob
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
try:
from numpy.distutils.misc_util import get_numpy_include_dirs
numpy_include_dirs = get_numpy_include_dirs()
except:
numpy_include_dirs = []
ext_modules=[
Extension("prime... | Python | 0 | @@ -389,73 +389,8 @@
%5D),%0A
- Extension(%22square%22, %5B%22square.pyx%22%5D, language=%22c++%22),%0A
%5D%0A%0Af
@@ -457,33 +457,8 @@
pyx%22
- and file != %22square.pyx%22
:%0A
|
fb159c1278b9a68e53223ebdf33a0764414f6301 | Fix 404 | JestemGraczem/urls.py | JestemGraczem/urls.py | """JestemGraczem URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='ho... | Python | 0.001396 | @@ -1666,24 +1666,24 @@
er404 =
+'
service
-s
.page_no
@@ -1689,10 +1689,11 @@
ot_found
+'
%0D%0A
|
6e23132432bdbfa654b9ba7aeaa77259205bb29f | Make the test for Elemental more thorough | elemental.py | elemental.py | #! /usr/bin/env python
# encoding: utf-8
def configure(conf):
def get_param(varname,default):
return getattr(Options.options,varname,'')or default
conf.load('compiler_cxx cxx14')
# Find Elemental
if conf.options.elemental_dir:
if not conf.options.elemental_incdir:
conf... | Python | 0.000003 | @@ -1107,16 +1107,156 @@
l.hpp',%0A
+ fragment=%22#include %3CEl.hpp%3E%5Cnint main(int argc, char* argv%5B%5D) %7BEl::Environment env( argc, argv ); El::BigFloat big;%7D%5Cn%22,%0A
|
ac20902bad9623806010fbea6ea3e61fbb294664 | Add `MissingSettingException` | shuup/core/excs.py | shuup/core/excs.py | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.utils.excs import Problem
class ImmutabilityError(ValueError):
... | Python | 0 | @@ -598,32 +598,85 @@
on):%0A pass%0A%0A%0A
+class MissingSettingException(Exception):%0A pass%0A%0A%0A
class ProductNot
|
33da9e13ce941690f2a202c46254901ddbbd4155 | Add some debugging | dadd/worker/processes/__init__.py | dadd/worker/processes/__init__.py | import os
import shlex
from subprocess import call, STDOUT
from dadd.worker import app
from dadd.worker.utils import printf
from dadd import client
class WorkerProcess(object):
def __init__(self, spec, output, sess=None):
self.spec = spec
# TODO: Add auth from the global config
self.con... | Python | 0.000026 | @@ -497,15 +497,185 @@
rint
-f(msg,
+(msg)%0A printf(msg, self.output)%0A%0A def print_env(self):%0A call(%5B'ls', '-la'%5D, stderr=STDOUT, stdout=self.output)%0A call(%5B'printenv'%5D, stderr=STDOUT, stdout=
self
@@ -1025,24 +1025,94 @@
pend(part)%0A%0A
+ # self.log('Current Environm... |
1a6d947022b7e9c7a44939dc69b2ec4ed9e13a5b | Fix a typo in dispatcher.py (main -> ip_whitelist). | dashboard/dashboard/dispatcher.py | dashboard/dashboard/dispatcher.py | """Dispatches requests to RequestHandler classes."""
import webapp2
from dashboard import ip_whitelist
from dashboard import main
_ROUTING_TABLE = [
('/ip_whitelist', main.IpWhitelistHandler),
('/', main.MainHandler),
]
app = webapp2.WSGIApplication(_ROUTING_TABLE, debug=True)
| Python | 0.999999 | @@ -168,20 +168,28 @@
elist',
-main
+ip_whitelist
.IpWhite
|
ba97e10af946877a8add47caaf7d8dfa62ac7830 | Fix that a bit. I give up on this command now. | earwigbot/commands/dictionary.py | earwigbot/commands/dictionary.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2012 Ben Kurtovic <ben.kurtovic@verizon.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitatio... | Python | 0 | @@ -5192,24 +5192,24 @@
surname(
-%5C%7C%7C
+.*?)
%5C%7D%5C%7D
-)
%22, r%22A s
|
28c035bdd24218db6a51eaf9cfbcc3647cc4d839 | Add CommonMark description to the templatetag header | django_markwhat/templatetags/markup.py | django_markwhat/templatetags/markup.py | """
Set of "markup" template filters for Django.
These filters transform plain text
markup syntaxes to HTML; currently there is support for:
* Textile, which requires the PyTextile library available at
http://loopcore.com/python-textile/
* Markdown, which requires the Python-markdown library from
... | Python | 0 | @@ -441,16 +441,84 @@
.sf.net/
+%0A%0A * CommonMark, which requires CommonMark http://commonmark.org/
%0A%22%22%22%0A%0Afr
|
8db82742693505b5fae8702e4bffb691a483f10e | Update djeym | djeym/management/commands/addmarker.py | djeym/management/commands/addmarker.py | # -*- coding: utf-8 -*-
import random
from django.core.management import BaseCommand, CommandError
from django.utils.lorem_ipsum import paragraphs
from djeym.models import (CategoryPlacemark, CustomMarkerIcon, Map, Placemark,
SubCategoryPlacemark)
class Command(BaseCommand):
def add_ar... | Python | 0.000001 | @@ -2481,17 +2481,17 @@
019/02/1
-4
+3
/36fa0a2
@@ -2539,19 +2539,19 @@
%22height:
-120
+322
px; widt
@@ -2556,11 +2556,11 @@
dth:
-120
+322
px%22
|
764c2952ac1dd18a213348d3a07097fc40ea9493 | Refresh after drawing menu. | reui/Menu.py | reui/Menu.py | from reui import Box
'''
A Box containing a vertical-scrolling menu. Generates event when a menu item is selected. Supports submenus.
'''
class Menu(Box.Box):
'''
Initialize Menu object
'''
items = [("Item 1",),("Item 2",),("Item 3",)]
def __init__(self, width, height, border_flags = 0):
... | Python | 0 | @@ -500,8 +500,31 @@
os += 9%0A
+ self.refresh()%0A
|
bf7402b09e55bb739fa74dea010cd0d9b399b169 | fix earlier typo | bihar/calculations/newborn.py | bihar/calculations/newborn.py | from bihar.calculations.pregnancy import VisitedQuickly
from bihar.calculations.types import DoneDueCalculator, TotalCalculator, CaseCalculator
from bihar.calculations.utils.calculations import get_related_prop
from bihar.calculations.utils.filters import is_pregnant_mother, get_add, A_MONTH
from bihar.calculations.uti... | Python | 0.002163 | @@ -727,20 +727,16 @@
%22%0A%0A%0Adef
-
less_tha
|
668a42a92aaa794a0fa2d0e269108217d7c32ab9 | fix example to be py3 compatible | example/example_application.py | example/example_application.py | #!/usr/bin/env python
def example(environ, start_response):
user = environ.get('REMOTE_USER', 'ANONYMOUS')
start_response('200 OK', [('Content-Type', 'text/plain')])
return ["Hello, %s" % user]
if __name__ == '__main__':
from wsgiref.simple_server import make_server
from wsgi_kerberos import Kerbe... | Python | 0.999872 | @@ -14,16 +14,27 @@
v python
+%0Aimport sys
%0A%0Adef ex
@@ -187,34 +187,64 @@
-return %5B%22Hello, %25s%22 %25 user
+data = %22Hello %7B%7D%22.format(user)%0A return %5Bdata.encode()
%5D%0A%0Ai
|
c7036d4aa7b02bb7691327cbaf4b31c74bb19349 | Add blank values support | django_any/fields.py | django_any/fields.py | #-*- coding: utf-8 -*-
"""
Values generators for common Django Fields
"""
import random
from decimal import Decimal
from django.db import models
import xunit
from multimethod import multimethod, multimethod_decorator
@multimethod_decorator
def any(function):
"""
Selection from field.choices
... | Python | 0.000002 | @@ -519,24 +519,312 @@
rapper%0D%0A%0D%0A%0D%0A
+@multimethod_decorator%0D%0Adef any(function):%0D%0A %22%22%22%0D%0A Sometimes return None if field could be blank%0D%0A %22%22%22%0D%0A def wrapper(field, **kwargs):%0D%0A if field.blank and random.random %3C 0.1:%0D%0A return None%0D%0A ... |
479012422eb50438d3fe097c4855c97e9d7eadaf | Remove or replace TODO | djangoes/__init__.py | djangoes/__init__.py | from importlib import import_module
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import cached_property
# Name of the default ElasticSearch server connection
DEFAULT_ES_ALIAS = 'default'
def load_backend(backend_n... | Python | 0.000001 | @@ -3593,95 +3593,19 @@
key
-.%0A # This will need to dig into ElasticSearch optimization stuff.%0A #%C2%A0Yay!
+ if needed.
%0A
@@ -3761,58 +3761,8 @@
%22%22%22%0A
- # TODO: Prepare these settings, for real.%0A
|
ba26314ea31301d18e7d9628f7081ced11c2da18 | Update step2.py | doc/how-tos/rotate-key/python/step2.py | doc/how-tos/rotate-key/python/step2.py | # Tell SDK which pool you are going to use. You should have already started
# this pool using docker compose or similar. Here, we are dumping the config
# just for demonstration purposes.
print_log('1. Creates a new local pool ledger configuration that is used '
'later when connecting to ledger.\n')
poo... | Python | 0 | @@ -1231,17 +1231,16 @@
ey%5Cn')%0A%0A
-%0A
%09%09# The
@@ -2028,17 +2028,16 @@
d_did)%0A%0A
-%0A
%09%09# Now,
@@ -3021,23 +3021,16 @@
%09%09%09%09%09%09%09%09
-%09%09%09%09%09%09%09
target_
@@ -3060,23 +3060,16 @@
%09%09%09%09%09%09%09%09
-%09
-%09%09%09%09%09%09
ver_key
@@ -3099,23 +3099,16 @@
%09%09%09%0... |
4e38ce29d929d67bff4bbd29f6f555c62bb9f49c | relative instead of absolute | oandapyV20/endpoints/transactions.py | oandapyV20/endpoints/transactions.py | """Handle transactions endpoints."""
from .apirequest import APIRequest, dyndoc_insert, get_endpoint_config
responses = {}
# op flags
TRANSACTION_LIST = 1
TRANSACTION_DETAILS = 2
TRANSACTION_IDRANGE = 4
TRANSACTION_SINCEID = 8
endp_conf = {
TRANSACTION_LIST: {"path_comp": None, "method": "GET"},
TRANSACTION_... | Python | 0.999906 | @@ -617,17 +617,16 @@
OINT = %22
-/
v3/accou
|
cb97f453284658da56d12ab696ef6b7d7991c727 | TEST - add test for value | dipy/io/tests/test_csareader.py | dipy/io/tests/test_csareader.py | """ Testing Siemens CSA header reader
"""
import os
from os.path import join as pjoin
import numpy as np
import dipy.io.csareader as csa
from nose.tools import assert_true, assert_false, \
assert_equal, assert_raises
from numpy.testing import assert_array_equal, assert_array_almost_equal
from dipy.testing imp... | Python | 0 | @@ -728,19 +728,93 @@
-print csa_info
+yield assert_equal(tags%5B'NumberOfImagesInMosaic'%5D%5B'value'%5D,%0A '48')
%0A
|
5c708329f398e1f0b2dec6b7d96594b9c56038ed | Move some logic into the Client class to make djangosaml2 simpler | djangosaml2/views.py | djangosaml2/views.py | # Copyright (C) 2010 Yaco Sistemas (http://www.yaco.es)
# Copyright (C) 2009 Lorenzo Gil Sanchez
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/... | Python | 0.000001 | @@ -659,22 +659,8 @@
copy
-%0Aimport urllib
%0A%0Afr
@@ -1134,58 +1134,8 @@
text
-%0Afrom saml2.utils import deflate_and_base64_encode
%0A%0Afr
@@ -3940,177 +3940,79 @@
-arg = urllib.quote_plus(deflate_and_base64_encode(str(logout_req)))%0A redirect_url = %22%25s?SAMLRequest=%25s%22 %25 (idp_url, arg)%0A%0... |
ca44c227756a1af52b1dcb859651bb462dac1390 | Handle None value | djongo/operations.py | djongo/operations.py | import pytz
from django.conf import settings
from django.db.backends.base.operations import BaseDatabaseOperations
from django.utils import timezone
import bson
import datetime
import calendar
class DatabaseOperations(BaseDatabaseOperations):
def quote_name(self, name):
if name.startswith('"') and name.e... | Python | 0.000002 | @@ -2141,24 +2141,74 @@
aces=None):%0A
+ if value is None:%0A return None%0A
retu
|
0bedd1de63c2f43d2e087a30a48b4ab4fb7725f4 | test print jobs finish in desired state | linemode/tests/test_spooler.py | linemode/tests/test_spooler.py | import unittest
import threading
from linemode import PrintSpooler
from linemode.base import Printer
class TestPrintSpooler(unittest.TestCase):
def test_shutdown(self):
class DummyPrinter(Printer):
pass
spooler = PrintSpooler(DummyPrinter())
spooler.shutdown()
def test_sh... | Python | 0 | @@ -934,32 +934,40 @@
inter())%0A
+ job_1 =
spooler.submit(
@@ -971,32 +971,40 @@
it(None)%0A
+ job_2 =
spooler.submit(
@@ -1386,24 +1386,105 @@
ue(executed)
+%0A self.assertTrue(job_1.done())%0A self.assertTrue(job_2.cancelled())
%0A%0A def te
|
07374a55b70232120b92d92613b8bfede9631121 | Update blacklist | upol_search_engine/__main__.py | upol_search_engine/__main__.py | from datetime import datetime
from time import sleep
from upol_search_engine.upol_crawler import tasks
def main():
blacklist = """portal.upol.cz
stag.upol.cz
library.upol.cz
adfs.upol.cz
portalbeta.upol.cz
idp.upol.cz
famaplus.upol.cz
es.upol.cz
smlouvy.upol.cz
menza.upol.cz
... | Python | 0.000001 | @@ -343,32 +343,53 @@
urseware.upol.cz
+%0A m.zurnal.upol.cz
%22%22%22%0A%0A crawler
|
a625fe202134831e2cbb430e33669ab8b846bccc | Add remove tasks | dexter/config/celeryconfig.py | dexter/config/celeryconfig.py | from celery.schedules import crontab
# uses AWS creds from the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY env variables
BROKER_URL = 'sqs://'
BROKER_TRANSPORT_OPTIONS = {
'region': 'eu-west-1',
'polling_interval': 15 * 1,
'queue_name_prefix': 'mma-dexter-',
'visibility_timeout': 3600*12,
}
# all ou... | Python | 0.000064 | @@ -637,32 +637,33 @@
hour=15, minute=
+3
0),%0A 'tas
|
4144d370c4b0589c8f161c4de44254a06ed38d08 | remove some cache fields from attendances | open_municipio/attendances/models.py | open_municipio/attendances/models.py | import locale
import datetime
from django.db import models
from django.utils.translation import ugettext_lazy as _
from model_utils import Choices
from model_utils.models import TimeStampedModel
from model_utils.managers import QueryManager
from open_municipio.people.models import Group, InstitutionCharge, Sitting, ... | Python | 0 | @@ -1136,24 +1136,25 @@
presents'))%0A
+#
n_partec
@@ -1368,24 +1368,25 @@
absents'))%0A
+#
n_yes =
@@ -1440,24 +1440,25 @@
num. yes'))%0A
+#
n_no = m
@@ -1510,24 +1510,25 @@
'num. no'))%0A
+#
n_abst =
@@ -1589,24 +1589,25 @@
bstained'))%0A
+#
n_maj =
|
1c39da4fdb40c04af56ef99e3969bbb336c2a17a | Fix an import. | examples/sacred/mnist/mnist.py | examples/sacred/mnist/mnist.py | """
Trains a simple deep NN on the MNIST dataset.
Allows to use multiple models (basic fully conncted layers, convolution layers).
Based on some basic example from Keras. Forked from:
https://github.com/fchollet/keras/tree/master/examples
This is a basic example how to wrap the code as Sacred Experiment
(https://git... | Python | 0.000145 | @@ -1082,19 +1082,22 @@
ary.
-sacred_kera
+keras.callback
s im
|
36947d58f5d98f815541802b3c288fd4283e370d | version control | deploy.py | deploy.py | #!/usr/bin/python
#-*- coding:utf-8 -*-
import os
import urllib, urllib2
import tarfile
URL_LASTVER = "http://192.168.72.134:8080/deploy/lastver"
URL_LIVEVER = "http://192.168.72.134:8080/deploy/livever"
URL_PKG= "http://192.168.72.134:80/deploy/packages"
DOWNLOAD_DIR = "/var/www/download"
DEPLOY_DIR = "/var/www/deplo... | Python | 0.000001 | @@ -80,16 +80,73 @@
tarfile
+%0Afrom distutils.version import LooseVersion%0Aimport shutil
%0A%0AURL_LA
@@ -2285,16 +2285,685 @@
_ROOT)%0A%0A
+def versionSort(l):%0A from distutils.version import LooseVersion%0A vs = %5BLooseVersion(i) for i in l%5D%0A vs.sort()%0A return %5Bi.vstring for i in vs%5D%0A%... |
bf8e5606dbcd0bf852205174099ae0d160ea7837 | Add a pause. | HTTPCloser.py | HTTPCloser.py | import time, gevent
seen = None
def used(url, http_pool):
__patch()
seen[(url, http_pool)] = time.time()
def __patch():
global seen
if seen is None:
seen = {}
gevent.spawn(clean)
def clean():
while True:
for k, last_seen in seen.items:
if time.time... | Python | 0.000011 | @@ -468,16 +468,42 @@
lose'%7D)%0A
+ gevent.sleep(0.3)%0A
|
4303e9569456093b3f9674071e12a55b36c2a280 | improve memcpy sample to compare synchronous and asynchronous DtoH / HtoD copies | examples/stream/cupy_memcpy.py | examples/stream/cupy_memcpy.py | # nvprof --print-gpu-trace python examples/stream/cupy_memcpy.py
import cupy
import numpy
pinned_memory_pool = cupy.cuda.PinnedMemoryPool()
cupy.cuda.set_pinned_memory_allocator(pinned_memory_pool.malloc)
def _pin_memory(array):
mem = cupy.cuda.alloc_pinned_memory(array.nbytes)
ret = numpy.frombuffer(mem, ar... | Python | 0 | @@ -395,21 +395,44 @@
n ret%0A%0A%0A
+SIZE = 1024 * 1024%0A
x_cpu
+_src
= numpy
@@ -438,162 +438,696 @@
y.ar
-ray(%5B1, 2, 3%5D, dtype=numpy.float32)%0Ax_pinned_cpu = _pin_memory(x_cpu)%0Ax_gpu = cupy.core.ndarray((3,), dtype=numpy.float32)%0Awith cupy.cuda.stream.Stream():
+ange(SIZE, dtype=numpy.float32)%0Ax_gpu... |
d395c0f895121e5c75820ff2b4fe502086b3fb01 | Bump version to 0.0.4 | parsely_raw_data/__init__.py | parsely_raw_data/__init__.py | __license__ = """
Copyright 2016 Parsely, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | Python | 0.000001 | @@ -726,9 +726,9 @@
0.0.
-3
+4
'%0A%0A_
|
3aab57946968b6002b5803b8bd396b5627426af0 | Refactor logger | tests/test.py | tests/test.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
tests.test
~~~~~~~~~~
Provides scripttests pygogo CLI functionality.
"""
from __future__ import (
absolute_import, division, print_function, with_statement,
unicode_literals)
import sys
import pygogo as gogo
from difflib import un... | Python | 0.000001 | @@ -624,51 +624,8 @@
= 0%0A
- level = 'DEBUG' if verbose else 'INFO'%0A
@@ -657,23 +657,23 @@
__,
-low_level=level
+verbose=verbose
).lo
|
1050c91331dce85493a91e38447d382c9b06bada | Remove unused imports | openspending/ui/controllers/entry.py | openspending/ui/controllers/entry.py | import logging
from pylons import request, response, tmpl_context as c
from pylons.controllers.util import abort, redirect
from pylons.i18n import _
from openspending.model import meta as db
from openspending.model.common import decode_row
from openspending.ui.lib.base import BaseController
from openspending.ui.lib.v... | Python | 0.000001 | @@ -148,99 +148,8 @@
_%0A%0A
-from openspending.model import meta as db%0Afrom openspending.model.common import decode_row%0A
from
|
2fca786aac78fbf94c28a9ce9ec4e65115249304 | fix http posting | plugins/util/http.py | plugins/util/http.py | from future.standard_library import hooks
from lxml import etree, html
import binascii
import hmac
import json
import random
import time
from hashlib import sha1
from builtins import str
from builtins import range
try:
from http.cookiejar import CookieJar
except:
from future.backports.http.cookiejar import... | Python | 0 | @@ -82,16 +82,35 @@
inascii%0A
+import collections%0A
import h
@@ -457,16 +457,27 @@
unquote,
+ urlencode,
quote_p
|
c07808cb0224c34c20c691e1f3e106b52134bc10 | version bump | paper/replicate.py | paper/replicate.py | import os
# Best Python command on your system
my_python = "python"
print("This script should download and install DNest4 and \
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everything has been compiled alr... | Python | 0.000001 | @@ -497,25 +497,25 @@
archive/0.1.
-1
+3
.tar.gz%22)%0Aos
@@ -536,17 +536,17 @@
vzf 0.1.
-1
+3
.tar.gz%22
@@ -572,17 +572,17 @@
st4-0.1.
-1
+3
DNest4%22
|
3c62ddaee694869c3d1ce1be2baf1b0907183db9 | use new example window | examples/experimental/crate.py | examples/experimental/crate.py | import os
import moderngl.experimental as mgl
import numpy as np
from objloader import Obj
from PIL import Image
from pyrr import Matrix44
import data
from example_window import Example, run_example
class CrateExample(Example):
def __init__(self):
self.ctx = mgl.create_context()
self.prog = sel... | Python | 0.000001 | @@ -155,16 +155,8 @@
rom
-example_
wind
@@ -234,26 +234,71 @@
_init__(self
+, **kwargs):%0A super().__init__(**kwargs
)
-:
%0A sel
@@ -1989,40 +1989,28 @@
self
-):%0A angle = self.wnd.
+, time, frame_
time
+):
%0A
@@ -2018,52 +2018,20 @@
-self.ctx.screen.viewport = self.wnd.viewpo... |
78b52553129cbcd94b3e288eed0d60fe91e537aa | Append to sys.path in tests/test.py to find dask_condor libraries | tests/test.py | tests/test.py | #!/usr/bin/env python
from __future__ import print_function
import logging
import sys
import unittest
import dask.array
import distributed
sys.path.insert(0, '.')
from dask_condor.tests import HTCondorClusterTestCase
from dask_condor import HTCondorCluster
class TestDaskCondor(HTCondorClusterTestCase):
def te... | Python | 0 | @@ -69,16 +69,26 @@
logging%0A
+import os%0A
import s
@@ -149,50 +149,147 @@
ed%0A%0A
-sys.path.insert(0, '.')%0A%0Afrom dask_condor.
+%0Aif __name__ == %22__main__%22 and __package__ is None:%0A sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))%0A%0Afrom
test
|
5fc281336a9382336a678d0a3b670c4c7af99a45 | Fix query in get_status(). | bot/tasks/afc_history.py | bot/tasks/afc_history.py | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from os.path import expanduser
from threading import Lock
from time import sleep
import oursql
from classes import BaseTask
import config
import wiki
# Valid submission statuses:
STATUS_NONE = 0
STATUS_PEND = 1
STATUS_DECLINE = 2
STATUS_ACCEPT = 3
c... | Python | 0.000048 | @@ -4709,16 +4709,49 @@
egories%0A
+ sq = self.site.sql_query%0A
@@ -4796,20 +4796,18 @@
HERE cl_
-from
+to
= ? AND
@@ -4806,26 +4806,28 @@
= ? AND cl_
-to
+from
= ?%22%0A
@@ -4858,38 +4858,39 @@
st(s
-elf.site.sql_query(query, (cat
+q(query, (cat.replace(%22 %22, %22_%22)
, pa
|
1f23b0676e383feba8666763499e561c5c70cd49 | Update test.py | tests/test.py | tests/test.py | #!/usr/bin/env python3
from fast_dump_v22 import *
import random
t_index1k = random.randint(1, 999)
t_index2k = random.randint(1, 1999)
def timestamps_test_1():
a = timestamps(get_page(1)+get_page(2))[t_index2k]
b = timestamps(get_range(1,2), index=t_index2k)
if not(a == b):
result = "FAIL"... | Python | 0.000001 | @@ -264,21 +264,16 @@
ndex2k)%0A
- %0A
if n
@@ -510,21 +510,16 @@
ndex1k)%0A
- %0A
if n
@@ -1364,16 +1364,37 @@
esult)%0A%0A
+ # TODO - bedtime now
%0A # de
|
646d203a967856e90adb4b4d38393f276d6e1fcd | Move `time.sleep()` into `finally` block | rss2slack.py | rss2slack.py | #!/usr/bin/env python2
"""2017/Sep/03 @ Zdenek Styblik <stybla@turnovfree.net>
Desc: Fetch RSS and post it to slack channel.
"""
import argparse
import logging
import os
import sys
import time
import traceback
from slackclient import SlackClient
import rss2irc
def get_slack_token():
"""Get slack token from ENV v... | Python | 0.000007 | @@ -1903,47 +1903,8 @@
- time.sleep(args.sleep)%0A
exce
@@ -1946,16 +1946,76 @@
.pop(url
+)%0A finally:%0A time.sleep(args.sleep
)%0A%0A e
|
52d449592feeae436e1df85d9ddec7ef323647fa | Add some basic version information | elephantblog/__init__.py | elephantblog/__init__.py | Python | 0 | @@ -0,0 +1,62 @@
+VERSION = (0, 1, 0)%0A__version__ = '.'.join(map(str, VERSION))%0A
| |
3803ddc89bff0899f1caf0cd85aca79558bee012 | add MNIST processing | evolution.py | evolution.py | import numpy as np
from keras.models import Sequential
from keras.layers import Convolution2D, MaxPooling2D, BatchNormalization
from keras.layers import Dense, Dropout, Activation
from keras.datasets import mnist
from genome_handler import GenomeHandler
import random as rand
# Our genetic algorithm.
# This will contai... | Python | 0.000002 | @@ -169,24 +169,57 @@
Activation%0A
+from keras.utils import np_utils%0A
from keras.d
@@ -239,16 +239,16 @@
t mnist%0A
-
from gen
@@ -410,17 +410,16 @@
volution
-s
:%0A%0A d
@@ -495,51 +495,361 @@
-(self.x_train, self.y_train), (self.x_test,
+self.loadMNIST()%0A%0A def loadMNIST(self):%0A (x_t... |
e11e751dcb6ea967f44503aad8d1c67f3e12826c | test threads | tests/test.py | tests/test.py | import lz4
import sys
import unittest
import os
class TestLZ4(unittest.TestCase):
def test_random(self):
DATA = os.urandom(128 * 1024) # Read 128kb
self.assertEqual(DATA, lz4.loads(lz4.dumps(DATA)))
if __name__ == '__main__':
unittest.main()
| Python | 0 | @@ -17,16 +17,60 @@
t sys%0A%0A%0A
+from multiprocessing.pool import ThreadPool%0A
import u
@@ -258,16 +258,293 @@
ATA)))%0A%0A
+ def test_threads(self):%0A data = %5Bos.urandom(128 * 1024) for i in range(100)%5D%0A def roundtrip(x):%0A return lz4.loads(lz4.dumps(x))%0A%0A pool = T... |
771199dfc4b0b29ea5b50e51f4d3324b9dd74e50 | Make colors sync between two graphs. [ci skip] | examples/recurrent-sinusoid.py | examples/recurrent-sinusoid.py | #!/usr/bin/env python
'''This example compares recurrent layer performance on a sine-generation task.
The task is to generate a complex sine wave that is constructed as a
superposition of a small set of pure frequencies. All networks are constructed
with one input (which receives all zero values), one recurrent hidde... | Python | 0.000002 | @@ -1185,16 +1185,147 @@
ging()%0A%0A
+COLORS = %5B'#d62728', '#1f77b4', '#2ca02c', '#9467bd', '#ff7f0e',%0A '#e377c2', '#8c564b', '#bcbd22', '#7f7f7f', '#17becf'%5D%0A%0A
BATCH_SI
@@ -2121,24 +2121,41 @@
', alpha=0.7
+, color='#111111'
)%0A%0A%0A# For ea
@@ -2242,16 +2242,19 @@
put.%0Afor
+ i,
layer i
... |
49129e50e2b85944a57b22feb5212feddfb51b9d | Allow region selection to grab entire buffer if nothing is selected. | SublimeHelper.py | SublimeHelper.py | # Helper functions and classes to wrap common Sublime Text idioms:
#
import functools
import os
import sublime
import sublime_plugin
def main_thread(callback, *args, **kwargs):
sublime.set_timeout_async(functools.partial(callback, *args, **kwargs), 0)
class TextCommand(sublime_plugin.TextCommand):
def ge... | Python | 0 | @@ -333,24 +333,56 @@
f, view=None
+, can_select_entire_buffer=False
):%0A '
@@ -681,16 +681,289 @@
w.sel()%0A
+%0A # If there is no selection then optionally use the entire buffer:%0A #%0A if can_select_entire_buffer is True:%0A if len(selection) == 1 and selec... |
e30e8effa192891b0c139090f3e6270e336ed56e | Remove xrange for run both Python 2 and Python 3 | monasca_log_api/tests/test_logs_v3.py | monasca_log_api/tests/test_logs_v3.py | # Copyright 2016 FUJITSU LIMITED
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Python | 0.999597 | @@ -1566,25 +1566,24 @@
%7D for it in
-x
range(log_co
@@ -4047,17 +4047,16 @@
___ in
-x
range(lo
|
1050f6c52c28a8309d3880b053538380ea53cf5a | use getbool | boxoffice/views/admin.py | boxoffice/views/admin.py | # -*- coding: utf-8 -*-
from flask import g, jsonify, request
import pytz
from .. import app, lastuser
from coaster.views import load_models, render_with
from boxoffice.models import Organization, ItemCollection
from boxoffice.models.line_item import calculate_weekly_sales
from boxoffice.models.payment import calculat... | Python | 0.000003 | @@ -148,16 +148,50 @@
er_with%0A
+from coaster.utils import getbool%0A
from box
@@ -2488,32 +2488,40 @@
ezone')%0A%0A if
+getbool(
request.args.get
@@ -2534,15 +2534,9 @@
nd')
- == 't'
+)
:%0A
|
a0853622f98abebe4cb0a837d4fc287000e9805a | Add support for secret driver in create_secret | docker/api/secret.py | docker/api/secret.py | import base64
import six
from .. import utils
class SecretApiMixin(object):
@utils.minimum_version('1.25')
def create_secret(self, name, data, labels=None):
"""
Create a secret
Args:
name (string): Name of the secret
data (bytes): Secret data ... | Python | 0 | @@ -20,16 +20,38 @@
rt six%0A%0A
+from .. import errors%0A
from ..
@@ -63,16 +63,16 @@
t utils%0A
-
%0A%0Aclass
@@ -177,24 +177,37 @@
labels=None
+, driver=None
):%0A %22
@@ -431,24 +431,175 @@
o the secret
+%0A driver (DriverConfig): A custom driver configuration. If%0A ... |
95fd5e1c48056bb9a44d84178905d1506161953f | Test for outputting the `body` in the EmailAdmin with linebreaks encoded for HTML output. | email_log/tests/tests.py | email_log/tests/tests.py | from __future__ import unicode_literals
from django.test import TestCase
from django.test.utils import override_settings
from django.utils.six import text_type
from django.contrib.auth.models import User
from django.core.mail import send_mail
from django.core import mail
from email_log.models import Email
from email_... | Python | 0 | @@ -3679,16 +3679,547 @@
, 403)%0A%0A
+ def test_body_is_formatted(self):%0A initial = %22This%5Cnis%5Cna%5Cntest%22%0A email = Email.objects.create(body=initial)%0A page = self.client.get('/admin/email_log/email/%25s/' %25 email.pk)%0A self.assertNotIn('%3Cdiv class=%22form-row field-bo... |
ca49588eb6ca5228b26b62f4e35c2ee864741c88 | Remove root file in tests | tests/test.py | tests/test.py | import pandas as pd
from root_pandas import read_root
from root_numpy import list_branches
from pandas.util.testing import assert_frame_equal
import numpy as np
import ROOT
import os
def test_read_write():
df = pd.DataFrame({'x': [1,2,3]})
df.to_root('tmp.root')
df_ = read_root('tmp.root')
os.remove('t... | Python | 0.000001 | @@ -2926,20 +2926,47 @@
array(%5B0, 1, 2%5D)))%0A%0A
+ os.remove('tmp.root')%0A%0A
|
f6980a29195cfb716b5ff3a72dabefa4e5f3c9c0 | Fix bug when changing organization name. | dockorm/container.py | dockorm/container.py | # encoding: utf-8
"""
Container class.
"""
from __future__ import print_function, unicode_literals
from itertools import chain
from subprocess import call
from docker import Client
from six import (
iteritems,
iterkeys,
itervalues,
text_type,
)
from six.moves import map
from IPython.utils.py3compat im... | Python | 0 | @@ -1199,41 +1199,23 @@
if
-organization and not organization
+new and not new
.end
|
220310ecbe3d418f04c1bbd50a36715a02299c13 | Call update if server template exists | a10_neutron_lbaas/v2/handler_listener.py | a10_neutron_lbaas/v2/handler_listener.py | # Copyright 2014, Doug Wiegley (dougwig), A10 Networks
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | Python | 0 | @@ -2978,28 +2978,299 @@
-pass
+c.client.slb.template.server_ssl.update(template_name,%0A cert_filename,%0A key_filename,%0A axapi_args=serve... |
207e4c2d7f50e3b82c53636a1886f297940bf6f5 | Modify login view to disable our Cookie class | email_usernames/views.py | email_usernames/views.py | from django.conf import settings
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.contrib.auth import login
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from forms import EmailLoginForm
from utils import MultiCookie
fr... | Python | 0 | @@ -284,39 +284,8 @@
rm%0A%0A
-from utils import MultiCookie%0A%0A
from
@@ -1586,1048 +1586,8 @@
lse%0A
- sid_cookie = MultiCookie(values=%7B'user_id': request.user.id,%0A 'session_id': request.COOKIES%5Bsettings.SESSION_COOKIE_NAME%5D,%0A ... |
63ca4ab4fc7237a9b32d82d73160b7f02c3ac133 | Add "config file was not fount" error handler | settings.py | settings.py | # coding: utf-8
import os.path
import yaml
CONFIG_PATH = os.path.join(os.path.dirname(__file__), 'settings.yaml')
with open(CONFIG_PATH, 'r') as fh:
config = yaml.load(fh)
# Jira settings
JIRA_URL = config['jira']['url']
JIRA_USER = config['jira']['user']
JIRA_PASS = config['jira']['pass']
JIRA_PROJECT = confi... | Python | 0.000008 | @@ -37,16 +37,31 @@
rt yaml%0A
+import logging%0A
%0A%0ACONFIG
@@ -126,16 +126,64 @@
yaml')%0A%0A
+logger = logging.getLogger(__name__)%0A%0A%0Atry:%0A
with ope
@@ -213,16 +213,20 @@
fh:%0A
+
+
config =
@@ -239,16 +239,162 @@
load(fh)
+%0Aexcept FileNotFoundError:%0A logging.error('Config file was... |
13cb680ea9bc7284cb15b3e0957b39ec28e9fea1 | fix remove pdb call | account_check_deposit/account_deposit.py | account_check_deposit/account_deposit.py | # -*- coding: utf-8 -*-
###############################################################################
# #
# account_check_deposit for OpenERP #
# Copyright (C) 2012 Akretion Benoît GUILLOT <benoit.g... | Python | 0.000001 | @@ -6980,95 +6980,8 @@
xt)%0A
- print %22move_vals ====%3E%22, move_vals%0A import pdb; pdb.set_trace()%0A
|
5c423f1a5381e2078ce1c6eb2a5fbb7acba64014 | Fix erroneous variable | Python/PiVisServer.py | Python/PiVisServer.py | #!/usr/bin/python
import socket
import PiVisConstants
def getOwnIp():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(('5.255.255.255', 1))
IP = s.getsockname()[0]
s.close()
return IP
class PiVisServer:
def __init__(self, scheduler, portNo, serviceDiscovery = 0):
self.s... | Python | 0.003128 | @@ -416,353 +416,8 @@
ery%0A
- if self.portNo == PiVisConstants.RAW_IMAGE_SERVICE:%0A print(%22Listening for RAW_IMAGE_SERVICE connections%22)%0A self.serviceDiscovery = PiVisConstants.DISCOVER_RAW_IMAGE_SERVICE%0A elif self.portNo == PiVisConstants.IMAGE_DATA_SERVICE:%0A ... |
067b7dc60d78b217599561d3c5a96f55c75e1795 | Fix serial | Python/datahandler.py | Python/datahandler.py | #Handles data & serial from arduino
#Imports
import subprocess
import sys
import time
import traceback
import serial
import datetime
#Handler class
class SerialDataHandler():
#Init
def __init__(self, logger):
#Whether time is set to GPS UTC
self.time_set = False
... | Python | 0.000108 | @@ -1094,35 +1094,31 @@
urn
-self.serial.readline() != b
+data != b'' or data !=
''%0A
|
7db99f61668060c09f3d5c9b638578013869f464 | add bot.start() to tests to ensure the (now single) eventloop is running | tests/util.py | tests/util.py | # Utilities to assist in writing tests
import halibot
import unittest
import logging
import time
def waitOrTimeout(timeout, condition):
for i in range(timeout):
if condition():
break
time.sleep(0.1)
else:
print("warning: timeout reached") # pragma: no cover
# Provides a unique bot in self.bot for every t... | Python | 0 | @@ -511,16 +511,46 @@
g=False)
+%0A%09%09self.bot.start(block=False)
%0A%0A%09def t
|
14c9151d211ec30dd5e00b604bf670a4b957e71a | revert fallback name | mythril/laser/ethereum/transaction.py | mythril/laser/ethereum/transaction.py | import logging
from mythril.laser.ethereum.state import GlobalState, Environment, CalldataType
from mythril.laser.ethereum.cfg import Node, Edge, JumpType
from z3 import BitVec
class MessageCall:
""" Represents a call value transaction """
def __init__(self, callee_address):
"""
Constructor f... | Python | 0.000001 | @@ -1977,16 +1977,8 @@
= '
-unnamed
fall
|
eaf81670fb9494c92ac637419a7238f21935a25d | Use safe for fixing the tested output | emoticons/tests/tests.py | emoticons/tests/tests.py | """Tests for emoticons app"""
from django.test import TestCase
from django.template import Context
from django.template import Template
from emoticons.templatetags.emoticons_tags import emoticons_index
class EmoticonsTestCase(TestCase):
expected_result = (
'Coding is fun <img class="emoticon emoticon-3a2... | Python | 0.000084 | @@ -932,32 +932,37 @@
%7B%7B content%7C
+safe%7C
emoticons:'a,b'
|
edae444521312c3a90ae71896122f23a9d6d2e61 | make capfd workarounds more specific, always use capsys under idle | run-tests.py | run-tests.py | #!/usr/bin/env python
# run-tests.py
import sys
import platform
import pytest
ARGS = [
#'--exitfirst',
#'--pdb',
]
if 'idlelib' in sys.modules or 'thonny' in sys.modules:
ARGS.append('--color=no')
if platform.system().lower() == 'windows':
ARGS.append('--capture=sys')
pytest.main(ARGS + sys.argv[1... | Python | 0 | @@ -45,24 +45,8 @@
sys
-%0Aimport platform
%0A%0Aim
@@ -165,31 +165,49 @@
s:%0A ARGS.
-app
+ext
end(
+%5B'--capture=sys',
'--color=no'
@@ -210,52 +210,81 @@
=no'
+%5D
)%0A
-%0Aif platform.system().lower() == 'windows'
+elif sys.version_info%5B0%5D == 2 and 'win_unicode_console' in sys.modules
:%0A
|
a2ac47fabf821f0f673773e0c3df61c1c7ee4dea | Remove unused dependency | tests/util.py | tests/util.py | '''
Util functions for tests
'''
import os
from subprocess import check_output
from time import time
EMPTY_RASTER = '0100000000000000000000F03F000000000000F0BF0000000000000000' \
'000000000000000000000000000000000000000000000000000000000A000A00'
class FakeTask(object):
task_id = 'fake'
def recreate... | Python | 0.000002 | @@ -1078,60 +1078,8 @@
ker%0A
-from luigi.scheduler import CentralPlannerScheduler%0A
%0A%0Ade
|
269a4062de8071551048a683fd05c63d31622aea | Update documentation | leader.py | leader.py | # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79
from database import Session
from database.models import LeaderBoardEntry, UberAccount
from twisted.internet.defer import Deferred, succeed
from twisted.python import log
class LeaderParser(object):
"""
Retrieves most recently cached rankings for the specifi... | Python | 0 | @@ -460,56 +460,37 @@
%22%22%22
-Read configuration from a file or store defaults
+Initialize a database session
.%22%22%22
|
d2c239af7474b97bd908f2e97e3e622b5b24e2cc | Make sure you cannot misconfigure the event upon update | endpoints/reservation.py | endpoints/reservation.py | from flask import jsonify, request
from DB.User import User
from main import app, db
from DB.Reservation import Reservation
from dateutil.parser import parse
from flask_jwt_extended import jwt_required, get_jwt_identity
import pytz
@app.route('/reservations', methods=["GET"])
def get_reservations():
all_reservatio... | Python | 0.000001 | @@ -2707,32 +2707,325 @@
found'%7D), 404%0A%0A
+ if 'endTime' in request.json and 'startTime' in request.json:%0A start_time = parse(request.json%5B%22startTime%22%5D)%0A end_time = parse(request.json%5B%22endTime%22%5D)%0A if end_time %3C start_time:%0A return jsonify(%7B%22error%2... |
6fe1b9b37cf42d87824ad003247331f4a6447920 | update openapi field type for choice field value fields to string | netbox/utilities/custom_inspectors.py | netbox/utilities/custom_inspectors.py | from drf_yasg import openapi
from drf_yasg.inspectors import FieldInspector, NotHandled, PaginatorInspector, FilterInspector, SwaggerAutoSchema
from drf_yasg.utils import get_serializer_ref_name
from rest_framework.fields import ChoiceField
from rest_framework.relations import ManyRelatedField
from taggit_serializer.se... | Python | 0 | @@ -3909,23 +3909,22 @@
pi.TYPE_
-INTEGER
+STRING
)%0A%0A
@@ -4493,15 +4493,14 @@
YPE_
-INTEGER
+STRING
%0A
|
534c9e9c15bfed7654f69bc771b60542dd9ab56d | computation of the children hours according to the child stage | addons/hr_timesheet/project_timesheet.py | addons/hr_timesheet/project_timesheet.py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields, api
class Project(models.Model):
_inherit = "project.project"
subtask_project_id = fields.Many2one(
'project.project', string='Sub-task Project', ondelete="restrict",
... | Python | 0.999999 | @@ -1195,20 +1195,16 @@
_id and
-not
child_ta
|
5d28a3539846d1a128028d1df1f595261fcd9009 | fix string format | eniric_scripts/prec_1.py | eniric_scripts/prec_1.py | #!/usr/bin/env python
"""Quick and dirty precision 1.
Doesn't involve atmosphere model so can perform relatively easily to check
precision is working.
"""
import argparse
import os
import sys
import numpy as np
import eniric
import eniric.IOmodule as io
import eniric.Qcalculator as Qcalculator
from eniric.snr_norma... | Python | 0.999999 | @@ -2152,17 +2152,17 @@
%7D_res%7B4:
-d
+s
%7D.txt%22%0A
|
6e4b7a209179a455ce712237566ca4cfd27e13b3 | Refactor into a more pythonic way | text_stats.py | text_stats.py | class text_stats():
def __init__(self):
'''
Class initialisation, this class initialises the list of words that is
used internally and the frequency table print_sorted_dictionary
'''
self.word_list = []
self.freq_table = {}
def __list_from_text(self, text):
... | Python | 0 | @@ -526,24 +526,25 @@
'''%0A
+%0A
ret_list
@@ -539,117 +539,96 @@
-ret_list = %5B%5D%0A%0A if len(text) %3E 0:%0A ret_list = text.split() #.split() removes empty strings%0A
+#.split() removes empty strings%0A ret_list = text.split() if len(text) %3E 0 else %5B%5D
%0A
@... |
666d882892b29b74d8df787a23a18077e2119b92 | Make docstring/help text neater | textinator.py | textinator.py | import click
from PIL import Image
_resample_methods = {
'nearest': Image.NEAREST,
'bilinear': Image.BILINEAR,
'bicubic': Image.BICUBIC,
'antialias': Image.ANTIALIAS
}
@click.command()
@click.argument('image', type=click.File('rb'))
@click.argument('out', type=click.File('wt'), default='-',
... | Python | 0.999477 | @@ -1326,22 +1326,13 @@
rts
-an input image
+INPUT
to
@@ -1362,85 +1362,60 @@
-Writes to stdout by default. Optionally takes another file as a second output
+OUT determines the output stream (stdout by default)
.%0A%0A
@@ -1431,16 +1431,22 @@
ts most
+image
filetype
@@ -1450,17 +1450,32 @@
ypes
-,
+ b... |
8a39f0ba909fbf15ade329c7f7910ebbcfcd9357 | Put EC2 API -> eventlet back into trunk, fixing the bits that I missed when I put it into trunk on 9/21. | run_tests.py | run_tests.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | Python | 0 | @@ -1577,61 +1577,8 @@
td%0A%0A
-#TODO(gundlach): rewrite and readd this after merge%0A#
from
|
500fe119230f829b0dccddf92fb207fa68b94d66 | Properly strip whitespace when join_texts is True | textractor.py | textractor.py | import re
from collections import OrderedDict
from bs4 import BeautifulSoup
from bs4.element import NavigableString, CData
BLOCK_TAGS = ['p', 'div', 'body', 'td', 'article', 'main', 'section', 'h1', 'h2', 'h3', 'li']
class ElementFilter(object):
""" A filter defining a search in a BeautifulSoup object """
d... | Python | 0.999999 | @@ -4421,32 +4421,59 @@
element_groups:%0A
+ if join_texts:%0A
stripped
@@ -4481,17 +4481,16 @@
texts =
-%5B
remove_w
@@ -4503,26 +4503,29 @@
ace(
-text) for text in
+join_texts_with.join(
elem
@@ -4541,17 +4541,18 @@
s%5Bgroup%5D
-%5D
+))
%0A
@@ -4548,37 +4548,28 @@
%5D))%0A ... |
0ad6cb338bbf10c48049d5649b5cd41eab0ed8d1 | Add optional authorizer parameter to session class and function. | prawcore/sessions.py | prawcore/sessions.py | """prawcore.sessions: Provides prawcore.Session and prawcore.session."""
import requests
class Session(object):
"""The low-level connection interface to reddit's API."""
def __init__(self):
"""Preprare the connection to reddit's API."""
self._session = requests.Session()
def __enter__(s... | Python | 0 | @@ -188,24 +188,41 @@
_init__(self
+, authorizer=None
):%0A %22
@@ -263,19 +263,130 @@
t's API.
-%22%22%22
+%0A%0A :param authorizer: An instance of :class:%60Authorizer%60.%0A%0A %22%22%22%0A self.authorizer = authorizer
%0A
@@ -775,16 +775,31 @@
session(
+authorizer=None
):%0A... |
7a69516e66dfe20256b04b14be8b886fac70471c | Use twine for PyPI upload. | nuitka/tools/release/pypi/__main__.py | nuitka/tools/release/pypi/__main__.py | #!/usr/bin/python -u
# Copyright 2017, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this fil... | Python | 0 | @@ -2062,25 +2062,8 @@
tion
- and uploading it
.%22)%0A
@@ -2109,22 +2109,94 @@
dist
- upload
%22) == 0
+%0A print(%22Uploading source dist%22)%0A assert os.system(%22twine upload dist/*%22)
%0A
|
caa079006546a57a27c891d229a5d04c56bb4a33 | Split off a test. | test/test_Google.py | test/test_Google.py | #!/usr/bin/env python
###
# Copyright (c) 2002, Jeremiah Fincher
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# ... | Python | 0.000092 | @@ -1833,16 +1833,52 @@
idn%5C't')
+%0A%0A def testHtmlHandled(self):
%0A
|
27d90b0c97fe8d8a29f3032d0e51ecf7a5424fe0 | fix catalog urls | presenter/cockpit.py | presenter/cockpit.py |
from presenter import PresenterBase
from visitor import SEVisitor
import re
class CockpitPresenter(PresenterBase):
release0913 = {
"socialtv": [
"Audio Mining",
"Audio Fingerprinting",
"Content Optimisation",
"Second Screen Framework",
"TV Application Layer"
],
"smartcity": [
"Local Informat... | Python | 0.000002 | @@ -2428,16 +2428,8 @@
, id
- + ' SE'
).lo
@@ -2438,16 +2438,17 @@
r()%0A%09%09%09%09
+#
if id in
@@ -2473,16 +2473,17 @@
ns:%0A%09%09%09%09
+#
%09urlid =
|
d6e2cf3354af9e4e7e15c486664f65fbd4525ce0 | test error handling a bit. | test/test_config.py | test/test_config.py | from __future__ import absolute_import
from zasim import config
import pytest
class TestConfig:
def test_random_1d(self):
a = config.RandomInitialConfiguration()
arr = a.generate((1000,))
assert not any(arr > 2)
assert not any(arr < 0)
assert any(arr == 0)
assert a... | Python | 0 | @@ -1110,16 +1110,472 @@
t any(crr == 2)%0A
+%0A def test_random_errors_1d(self):%0A with pytest.raises(ValueError):%0A a = config.RandomInitialConfiguration(2, 1.0, 1.0)%0A with pytest.raises(ValueError):%0A b = config.RandomInitialConfiguration(2, 0.1, 0.1, 0.8)%0A with ... |
db0749cbb25462f382198f7641b440cc82d14cae | Use TestCase instead of OkupyTestCase for login integration tests | okupy/tests/integration/test_login.py | okupy/tests/integration/test_login.py | # vim:fileencoding=utf8:et:ts=4:sts=4:sw=4:ft=python
from django.conf import settings
from django.test.client import Client
from mockldap import MockLdap
from ...common.test_helpers import OkupyTestCase, get_ldap_user, set_search_seed
account1 = {'username': 'alice', 'password': 'ldaptest'}
account2 = {'username':... | Python | 0 | @@ -80,16 +80,49 @@
ettings%0A
+from django.test import TestCase%0A
from dja
@@ -221,23 +221,8 @@
port
- OkupyTestCase,
get
@@ -460,13 +460,8 @@
sts(
-Okupy
Test
|
1a8150a3e220d72eaf9d984dd57b400a6c88529e | Ignore timestamp 0 | timestamps.py | timestamps.py | #!/usr/bin/python
import sys
from datetime import datetime
from pytz import timezone
import pytz
from optparse import OptionParser
from dateutil import parser
import time
import simplejson as json
def parseTimestampString(timestampString,timezone,labels=[]):
dateSt="";
for d in range(len(timestampString)):
l = l... | Python | 0.999693 | @@ -671,24 +671,103 @@
,timezone);%0A
+%09%09elif timestampString%5Bd%5D==%220%22:%0A%09%09%09date=%22%22;#ignore it but don't go to sys.exit%0A
%09%09else:%0A%09%09%09p
@@ -834,17 +834,28 @@
xit(0);%0A
-%0A
+%09%09if date:%0A%09
%09%09if not
@@ -863,16 +863,17 @@
labels:%0A
+%09
%09%09%09dateS
@@ -925,22 +925,24... |
0be901aa2a73ba0eeaaebb7b5069c3a2756bdd7e | Put debug back | test/test_influx.py | test/test_influx.py | from influx.influx_adapter import *
from influx.datapoint_utils import *
from influx.measurement_strings import *
from unittest import TestCase, main
from time import sleep
class TestInflux(TestCase):
def setUp(self):
self.db = get_client()
self.temp_measurement_test_str = 'klima-test_temperature'... | Python | 0 | @@ -1503,24 +1503,25 @@
leep(2)%0A
+%0A
%0A
@@ -1512,16 +1512,150 @@
+# DEBUG THE TEST%0A print(str(self.db.query(%22SELECT * FROM %25s WHERE time %3E= now() - %25s LIMIT 1%22 %25 (temp_measurement_str, '5s'))))
%0A
|
3f1fdf4223e1fcc324d23848e3927294516f287a | Remove extraneous whitespace. | editor_backend/editor_backend/views.py | editor_backend/editor_backend/views.py | from django.http import HttpResponse
from django.template.loader import get_template
from django.template import Context
from django.shortcuts import render
import json
import requests
NODE_ADDR = "http://127.0.0.1:9001"
publish_base_url = "http://despina.128.no/publish"
def get_publisher_url():
r = requests.get(NOD... | Python | 0.011676 | @@ -541,17 +541,16 @@
equest):
-%09
%0A%09return
@@ -591,17 +591,16 @@
%22, %7B%7D);%0A
-%09
%0Adef upl
@@ -826,17 +826,16 @@
/www.%22)%0A
-%09
%0A%09publis
@@ -1007,17 +1007,16 @@
%0A%09%09pass%0A
-%09
%0A%09return
|
3ac3f42335e373f1ddf5f3a45af45bc0c2e35f6a | Read passphrase from environment | tkp/config.py | tkp/config.py | import ConfigParser
import os
import datetime
import tkp.db
from tkp.conf import parse_to_dict
import getpass
import logging
logger = logging.getLogger(__name__)
def initialize_pipeline_config(pipe_cfg_file, job_name):
"""Replaces the sort of background bookkeeping that cuisine would do"""
start_time = datet... | Python | 0.000112 | @@ -1878,24 +1878,68 @@
password%22),%0A
+ (%22TKP_DBPASSPHRASE%22, %22passphrase%22),%0A
(%22TK
|
044a315f01d199b7dd57ed8a1fac8ad596945b3a | fix hex mode functions | seriously.py | seriously.py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import traceback, argparse, readline, hashlib, binascii, random, sys
from types import *
import commands
cp437table = ''.join(map(chr,range(128))) + u"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√... | Python | 0.000003 | @@ -583,32 +583,48 @@
repl_mode=False
+, hex_mode=False
):%0A retur
@@ -650,16 +650,25 @@
bug_mode
+,hex_mode
)%0A de
|
bfbec45b300d86ff9b177e470534569f9e795d39 | Use startfile, to not to be attached to the server process | server_up.py | server_up.py | # coding: utf-8
from os import popen, system
from time import sleep
import requests
from pyquery import PyQuery
# web listing active servers
SERVER_STATUS_URL = 'http://refactor.jp/chivalry/?country=AR'
# if this text is present, the server is up
SERVER_NAME = 'Argentina | Round Table | chivarg.com'
# if this text i... | Python | 0 | @@ -37,16 +37,27 @@
, system
+, startfile
%0Afrom ti
@@ -2566,21 +2566,24 @@
.'%0A s
-ystem
+tartfile
(SERVER_
|
1dbacf5e964aab52278868fdb0050925f1b51d7e | bump version to 0.19.0-dev in develop after branching release/0.18.0 | eulxml/__init__.py | eulxml/__init__.py | # file eulxml/__init__.py
#
# Copyright 2010,2011 Emory University Libraries
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | Python | 0 | @@ -665,9 +665,9 @@
0, 1
-8
+9
, 0,
|
072f2232352b778ff8999005d85ef9bcbb6085b6 | Fix parser for building vmtype info | eutester/euzone.py | eutester/euzone.py | # Software License Agreement (BSD License)
#
# Copyright (c) 2009-2011, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source ... | Python | 0 | @@ -3745,20 +3745,40 @@
-if found and
+ else:%0A if
not
@@ -3832,32 +3832,40 @@
e != self.name:%0A
+
|
e841662f28629a4ed841be99e82d8d92a42b1820 | Remove newline at EOF (flake8) | linter.py | linter.py | """This module exports the elixirc plugin class."""
import tempfile
import os
from SublimeLinter.lint import Linter
class Elixirc(Linter):
"""Provides an interface to elixirc."""
syntax = ("elixir")
executable = "elixirc"
tempfile_suffix = "-"
regex = (
r"(?:\*+\s\(.+\) )?(?P<filename... | Python | 0 | @@ -1687,9 +1687,8 @@
(match)%0A
-%0A
|
4fa8f7cb8a0592ed1d37efa20fd4a23d12e88713 | Update regexp due to changes in stylint | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Brewer
# Copyright (c) 2015 Jack Brewer
#
# License: MIT
#
"""This module exports the Stylint plugin class."""
from SublimeLinter.lint import NodeLinter, util
class Stylint(NodeLinter):
"""Provides an in... | Python | 0 | @@ -157,18 +157,16 @@
nse: MIT
-%0A#
%0A%0A%22%22%22Thi
@@ -467,13 +467,22 @@
'%3E=
-0.9.3
+1.5.6, %3C 1.6.0
'%0A
@@ -589,154 +589,166 @@
#
-'Near' can contain trailing whitespace, which we avoid capturing%0A%0A # Warning: commas must be followed by a space for readability%0A %5E
+/path/to/fil... |
982230c4d19bdda0b1e2f76cc731655e7fa4446f | Fix radar recruitment graph | api/radar_api/views/recruitment_stats.py | api/radar_api/views/recruitment_stats.py | from flask import request
from radar.organisations import get_radar_organisation
from radar_api.serializers.recruitment_stats import DataPointsSerializer, CohortRecruitmentRequestSerializer, \
OrganisationRecruitmentRequestSerializer
from radar.models import CohortPatient, OrganisationPatient
from radar.recruitmen... | Python | 0.000001 | @@ -19,16 +19,17 @@
request%0A
+%0A
from rad
@@ -31,28 +31,22 @@
m radar.
-organisation
+cohort
s import
@@ -60,21 +60,14 @@
dar_
-organisation%0A
+cohort
%0Afro
@@ -1595,28 +1595,22 @@
-organisation
+cohort
= get_r
@@ -1614,28 +1614,22 @@
t_radar_
-organisation
+cohort
()%0A
@@ -1661,36 +1661,... |
cb60f8968c4dc772c60ebf9c5ca77bc950feed29 | fix linting of unsaved files (fix #18) | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by nirm03
# Copyright (c) 2013 nirm03
#
# License: MIT
#
"""This module exports the Clang plugin class."""
import shlex
from SublimeLinter.lint import Linter, persist
import sublime
import os
import string
def get_pr... | Python | 0 | @@ -517,39 +517,27 @@
ed.%0A
-return os.path.dirname(
+proj_file =
sublime
@@ -578,18 +578,91 @@
e_name()
- )
+%0A if proj_file:%0A return os.path.dirname(proj_file)%0A return '.'
%0A%0A%0Adef a
|
4e779e736f9a79298c884ab5c34fc9032d9cdb3e | Move form calls to views.py. | fade/fade/views.py | fade/fade/views.py | Python | 0 | @@ -1 +1,1480 @@
+#!/usr/bin/env python%0A%22%22%22%0A See LICENSE.txt file for copyright and license details.%0A%22%22%22%0Afrom flask import render_template, session, request, abort%0Afrom forms import FormLeveragedContracts%0Afrom ctypes import cdll%0A%0Alcf = cdll.LoadLibrary('calculator_finance.so')%0A%0A@app.r... | |
304f80299c125c5c61a00f082af7a74fb423c622 | Wrong characters | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by xenhat
# Copyright (c) 2016 xenhat
#
# License: MIT
#
"""This module exports the Lslint plugin class."""
from SublimeLinter.lint import Linter, util
class Lslint(Linter):
"""Provides an interfa... | Python | 0.99996 | @@ -350,10 +350,9 @@
x =
-%7B
+(
'lsl
@@ -361,17 +361,17 @@
'ossl'
-%7D
+)
%0D%0A cm
|
266e0976ee41e4dd1a9c543c84d422a8fba61230 | Check if epages6 settings are configured | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jonas Gratz
# Copyright (c) 2015 Jonas Gratz
#
# License: MIT
#
"""This module exports the Tlec plugin class."""
import sublime
from SublimeLinter.lint import Linter, util
class Tlec(Linter):
"""Provides an in... | Python | 0 | @@ -353,16 +353,66 @@
(self):%0A
+ if self.view.settings().get('ep6vm'):%0A
@@ -647,16 +647,52 @@
', '@'%5D;
+%0A else:%0A return %5B%5D
%0A%0A ex
|
3f087a69e3e907e68fe99030bb191f9c5b089de7 | Add space after UNZIP command. | test_qmake_build.py | test_qmake_build.py | #!/usr/bin/python
import sys
import subprocess
import os
from os import path
import shutil
def call ( cmdline ):
retcode = subprocess.call ( cmdline, shell = True )
assert ( retcode == 0 )
CMAKE = 'cmake'
GENERATORARGS = ''
MAKE = 'make -j 2 '
UNZIP = 'unzip'
MV = 'mv'
if sys.platform == 'win32':
CMAKE =... | Python | 0.000004 | @@ -1321,32 +1321,33 @@
call ( UNZIP + '
+
..%5C*.zip' )%0Afile
@@ -1908,16 +1908,17 @@
NZIP + '
+
..%5C*.zip
|
2647291d29aa6625644f2e0a0a4dc0d632140966 | Return ordered sweep list. | JSONHelpers.py | JSONHelpers.py | import json, sys
from traits.api import HasTraits
import instruments
from Sweeps import Sweep, SweepLibrary
from MeasFilters import MeasFilterLibrary
from collections import OrderedDict
class LibraryEncoder(json.JSONEncoder):
"""
Helper for QLab to encode all the classes we use.
"""
def default(self, obj):
if... | Python | 0 | @@ -2014,32 +2014,187 @@
f filt.enabled%7D%0A
+%09%09%09#For the sweep library we return a list of sweeps in order%0A%09%09%09elif isinstance(obj, SweepLibrary):%0A%09%09%09%09return %5Bobj.sweepDict%5Bk%5D for k in obj.sweepOrder%5D%0A
%09%09%09#For the scop
|
c67d650d7d72068694d94f1190a0b8c215ee25ca | fix a bug with funcarg setup and remove XXX comment because "scope=module" now would work but leaving it as session for now. | testing/conftest.py | testing/conftest.py | import py
def pytest_generate_tests(metafunc):
if 'gw' in metafunc.funcargnames:
if hasattr(metafunc.cls, 'gwtype'):
gwtypes = [metafunc.cls.gwtype]
else:
gwtypes = ['popen', 'socket', 'ssh']
for gwtype in gwtypes:
metafunc.addcall(id=gwtype, param=gwtype... | Python | 0 | @@ -374,48 +374,8 @@
ion%22
- # XXX module causes problems with -n 3!
%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.