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 |
|---|---|---|---|---|---|---|---|
cf36f9792886c6dd67b37c29af4a5d510b924902 | Use UTF-8 by default instead of locale encoding. | pybtex/io.py | pybtex/io.py | # Copyright (c) 2009, 2010, 2011, 2012 Andrey Golovizin
#
# 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 limitation the rights to use, copy, modify,... | Python | 0 | @@ -1210,22 +1210,8 @@
sys%0A
-import locale%0A
from
@@ -1354,154 +1354,14 @@
-try:%0A locale_encoding = locale.getpreferredencoding()%0A except locale.Error:%0A locale_encoding = None%0A return locale_encoding or
+return
'UT
|
f3ca8021f9fd4b6d00a6502ede414b1712c2a1ac | remove comment explaining where imports are from in hvc/extract.py | hvc/extract.py | hvc/extract.py | """
feature extraction
"""
# from hvc
from .parseconfig import parse_config
from . import features
from .parse.extract import _validate_feature_group_and_convert_to_list
from .parse.ref_spect_params import refs_dict
def extract(config_file=None,
data_dirs=None,
file_format=None,
a... | Python | 0 | @@ -25,19 +25,8 @@
%22%22%0A%0A
-# from hvc%0A
from
|
e1f45cba287d7964f7ed01e7ddae61db173d9c25 | Fix binary type issues on Python 2. | fernet_fields/fields.py | fernet_fields/fields.py | from hashlib import sha256
from cryptography.fernet import Fernet, MultiFernet
from django.conf import settings
from django.core.exceptions import FieldError, ImproperlyConfigured
from django.db import models
from django.db.models import lookups
from django.utils.encoding import force_bytes, force_text
from django.uti... | Python | 0.000002 | @@ -2370,16 +2370,94 @@
n None%0A%0A
+ def get_hashed_value(self, value):%0A return sha256(value).digest()%0A%0A
def
@@ -2475,39 +2475,41 @@
_save(self,
-*args, **kwargs
+value, connection
):%0A v
@@ -2586,29 +2586,30 @@
rep_
-value(*args, **kwargs
+save(value, connection
)%0A
@@ -2783,36... |
4283aaf601482ee2512c642101f587ffe3515ef9 | raise if user doesn't exist in forgotten password form | authentification/forms.py | authentification/forms.py | from django import forms
class ForgottenPasswordForm(forms.Form):
username = forms.CharField(label="Identifiant")
email = forms.EmailField(label="Votre adresse e-mail")
| Python | 0.000001 | @@ -19,16 +19,61 @@
forms%0A%0A
+from django.contrib.auth.models import User%0A%0A
%0Aclass F
@@ -217,8 +217,250 @@
-mail%22)%0A
+%0A def clean_username(self):%0A username = self.cleaned_data%5B'username'%5D%0A%0A if not User.objects.filter(username=username).exists():%0A raise forms.Val... |
f55c0bd8db7850668582bb7b47da4d0acafabc46 | Optimize imports | digitalmanifesto/urls.py | digitalmanifesto/urls.py | from __future__ import absolute_import
from __future__ import unicode_literals
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import TemplateView
from . import views
urlpatterns = [
# Admin
url(r'^jet/', include('jet.urls', 'jet')), # Django JET URLS
... | Python | 0.000002 | @@ -35,31 +35,9 @@
port
-%0Afrom __future__ import
+,
uni
|
a5f3ad5700aa766fec99a184bae1d732d0754491 | Support of HACluster added | src/reactive/murano_handlers.py | src/reactive/murano_handlers.py | # Copyright 2016 Canonical Ltd
#
# 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 writing, s... | Python | 0 | @@ -1547,16 +1547,17 @@
ered')%0A%0A
+%0A
# db_syn
@@ -1746,16 +1746,17 @@
sync()%0A%0A
+%0A
@reactiv
@@ -1924,16 +1924,16 @@
urano()%0A
-
reac
@@ -1949,28 +1949,243 @@
state('io-murano.imported')%0A
+%0A%0A@reactive.when('ha.connected')%0Adef cluster_connected(hacluster):%0A murano.configure_ha_resources... |
837aea7b39662a8285df01522461c51ce0f91de5 | fix suppressions - don't overwrite config setting with super() - be explict in debug log what is going on with filters/suppression | nymms/reactor/handlers/Handler.py | nymms/reactor/handlers/Handler.py | import logging
logger = logging.getLogger(__name__)
from nymms.utils import load_object_from_string
class Handler(object):
def __init__(self, config=None):
self.config = config
self._filters = []
self._suppressions_enabled = self.config.pop('suppressions_enabled',
False)
... | Python | 0.000001 | @@ -230,33 +230,32 @@
elf._suppression
-s
_enabled = self.
@@ -265,16 +265,29 @@
fig.pop(
+%0A
'suppres
@@ -282,33 +282,32 @@
'suppression
-s
_enabled',%0A
@@ -313,25 +313,168 @@
-
False
+)%0A logger.debug(%22%25s suppression enabled is %25s%22,%0A se... |
f1d76955dad59c7456b570b0e94329e146a816b3 | maintain original exception stack trace for raise_and_report PyxlException | pyxl/base.py | pyxl/base.py | #!/usr/bin/env python
#
# 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 writing, softwar... | Python | 0 | @@ -5068,34 +5068,14 @@
-exception = PyxlException(
+msg =
'inc
@@ -5192,16 +5192,62 @@
(value))
+%0A exception = PyxlException(msg
)%0A%0A
@@ -5433,16 +5433,82 @@
'utf8')%0A
+ severity = exclog2_util.SeverityType.CRITICAL%0A
@@ -5561,42 +5561,31 @@
ty2=
-exc... |
a839626fbb4374bcf8c3e23f97941bdbc7b15d61 | fix conflict | qiniu/rpc.py | qiniu/rpc.py | # -*- coding: utf-8 -*-
import httplib
import json
class Client(object):
_conn = None
_header = None
def __init__(self, host):
self._conn = httplib.HTTPConnection(host)
self._header = {}
def round_tripper(self, method, path, body):
self._conn.request(method, path, body, self._header)
resp = self._conn.get... | Python | 0.031708 | @@ -43,16 +43,30 @@
ort json
+%0Aimport config
%0A%0Aclass
|
6280dbff42c47350ae88719c3a876ea03e7ebb6e | Add reuse_backend argument to pre-made editor constructors | pyqode/python/widgets/code_edit.py | pyqode/python/widgets/code_edit.py | # -*- coding: utf-8 -*-
"""
This package contains the python code editor widget
"""
import sys
from pyqode.core.api import ColorScheme
from pyqode.python.backend import server
from pyqode.qt import QtCore, QtGui
from pyqode.core import api
from pyqode.core import modes
from pyqode.core import panels
from pyqode.python ... | Python | 0 | @@ -973,44 +973,8 @@
True
-,%0A color_scheme='qt'
):%0A
@@ -1961,19 +1961,57 @@
eme='qt'
+,%0A reuse_backend=False
):%0A
-
@@ -2120,47 +2120,8 @@
ions
-,%0A color_scheme=color_scheme
)%0A
@@ -2177,16 +2177,64 @@
er, args
+,%0A reus... |
f5d948c159a4d398a1347220a4fcd4315c725b04 | Fix issue handling Image as a paint source | pyrtist/pyrtist/lib2d/primitive.py | pyrtist/pyrtist/lib2d/primitive.py | __all__ = ('Primitive',)
from .core_types import Point
from .style import Color, Stroke, Fill, StrokeStyle, Style
from .path import Path
from .base import Taker, combination
from .cmd_stream import CmdStream, Cmd
from .window import Window
from .bbox import BBox
class Primitive(Taker):
def __init__(self, *args):... | Python | 0.000001 | @@ -71,15 +71,8 @@
port
- Color,
Str
@@ -101,16 +101,45 @@
, Style%0A
+from .pattern import Pattern%0A
from .pa
@@ -495,13 +495,15 @@
ion(
-Color
+Pattern
, Pr
|
91064ed8d7c6b6ab7eb8bb9da94136ba34e8a2e5 | use length validator on description | abilian/sbe/apps/communities/forms.py | abilian/sbe/apps/communities/forms.py | import imghdr
from string import strip
import PIL
from flask import request
from flask.ext.babel import lazy_gettext as _l, gettext as _
from wtforms.fields import BooleanField, TextField, TextAreaField
from wtforms.validators import ValidationError, required
from abilian.web.forms import Form
from abilian.web.forms.... | Python | 0.000002 | @@ -424,16 +424,64 @@
anWidget
+%0Afrom abilian.web.forms.validators import length
%0A%0Afrom .
@@ -622,24 +622,31 @@
xtAreaField(
+%0A
label=_l(u%22D
@@ -658,16 +658,22 @@
ption%22),
+%0A
validat
@@ -691,35 +691,28 @@
ed()
-%5D,%0A
+, length(max=500)%5D,%0A
@@ -751,16 +... |
848e12dde9685cf1c6e44178bb0f3eff9d4203be | Fix migrations | actistream/migrations/0001_initial.py | actistream/migrations/0001_initial.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-09-15 20:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('content... | Python | 0.000006 | @@ -509,16 +509,103 @@
ivity',%0A
+ options=%7B'verbose_name': 'activity', 'verbose_name_plural': 'activities'%7D,%0A
@@ -1853,16 +1853,98 @@
otice',%0A
+ options=%7B'verbose_name': 'notice', 'verbose_name_plural': 'notices'%7D,%0A
|
9783844b1597598fad833794b4b291fce49438d4 | Send alerts as one mail | app/hr/tasks.py | app/hr/tasks.py | from django.conf import settings
import logging
from datetime import datetime, timedelta
from celery.decorators import task
from hr.utils import blacklist_values
from django.contrib.auth.models import User
from django.core.mail import send_mail
@task(ignore_result=True)
def blacklist_check():
log = blacklist_check... | Python | 0 | @@ -377,16 +377,45 @@
=True)%0A%0A
+ alerts = 0%0A msg = %22%22%0A%0A
for
@@ -426,16 +426,16 @@
users:%0A
-
@@ -547,24 +547,52 @@
n(val) %3E 0:%0A
+ alerts += 1%0A
@@ -875,16 +875,17 @@
reason)%0A
+%0A
@@ -896,16 +896,56 @@
msg
++= %22%5Cn%5Cn-----... |
0dfd0ec2beb069d56d7b81911bb468199565672a | remove print | python/ccxtpro/base/fast_client.py | python/ccxtpro/base/fast_client.py | """A faster version of aiohttp's websocket client that uses select and other optimizations"""
import asyncio
import collections
from ccxt import NetworkError
from ccxtpro.base.aiohttp_client import AiohttpClient
class FastClient(AiohttpClient):
transport = None
def __init__(self, url, on_message_callback, o... | Python | 0.000793 | @@ -2151,157 +2151,4 @@
t()%0A
-%0A def resolve(self, result, message_hash=None):%0A super(FastClient, self).resolve(result, message_hash)%0A print('resolved', message_hash)%0A
|
d51adea3d19578da9165202696d80c44949c43f6 | remove debug level logging from i2tun.py | i2tun/i2tun.py | i2tun/i2tun.py | #!/usr/bin/env python3.4
from i2p.i2cp import client as i2cp
import pytun
import threading
import logging
import struct
import select
class IPV4Handler(i2cp.I2CPHandler):
def __init__(self, remote_dest, our_addr, their_addr, mtu):
self._them = remote_dest
self._iface = pytun.TunTapDevice()
... | Python | 0.000001 | @@ -800,16 +800,20 @@
on.send_
+dsa_
dgram(se
@@ -1006,72 +1006,8 @@
rse%0A
- import logging%0A logging.basicConfig(level=logging.DEBUG)%0A
|
a33ee32ec3d1ac8f239a36ac2459c7985ead2a50 | Remove some unnecessary usage of `pytype: skip-file`. | tensorflow_federated/python/tensorflow_libs/variable_utils.py | tensorflow_federated/python/tensorflow_libs/variable_utils.py | # Copyright 2020, The TensorFlow Federated Authors.
#
# 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 o... | Python | 0.999987 | @@ -596,170 +596,8 @@
se.%0A
-# # pytype: skip-file%0A# This modules disables the Pytype analyzer, see%0A# https://github.com/tensorflow/federated/blob/main/docs/pytype.md for more%0A# information.%0A
%22%22%22L
|
abe4f0577baef3dbbceb06fc6d569d2bec69257e | Fix internal import | tensorflow_probability/python/internal/backend/jax/rewrite.py | tensorflow_probability/python/internal/backend/jax/rewrite.py | # Copyright 2019 The TensorFlow Probability Authors.
#
# 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 o... | Python | 0.000012 | @@ -853,16 +853,38 @@
nction%0A%0A
+# Dependency imports%0A%0A
from abs
|
695e171d1eca459075ad03adf0712f5b7427cac4 | Add get_or_404() to __all__ | flask_simon/__init__.py | flask_simon/__init__.py | __all__ = ('Simon',)
import simon.connection
from flask import abort
from pymongo import uri_parser
class Simon(object):
def __init__(self, app=None):
if app is not None:
self.init_app(app)
def init_app(self, app):
if 'simon' not in app.extensions:
app.extensions['si... | Python | 0 | @@ -1,51 +1,4 @@
-__all__ = ('Simon',)%0A%0Aimport simon.connection%0A%0A
from
@@ -48,16 +48,75 @@
_parser%0A
+import simon.connection%0A%0A__all__ = ('Simon', 'get_or_404')%0A
%0A%0Aclass
|
acdb6bbba1d6114f6ccf9dfc3307905fc88e17bb | Put the updated format into the Cryomagnetics device test. | tests/unit/test_devices/test_abstract_cryomagnetics_device.py | tests/unit/test_devices/test_abstract_cryomagnetics_device.py | """
Contains unit tests for :mod:`mr_freeze.devices.abstract_cryomagnetics_device`
"""
import unittest
from mr_freeze.devices.abstract_cryomagnetics_device import \
AbstractCryomagneticsDevice
class ConcreteCryomagneticsDevice(AbstractCryomagneticsDevice):
was_read_called = False
data_to_read = None
... | Python | 0 | @@ -1276,16 +1276,20 @@
%25s%5Cr%5Cn%25s
+%5Cr%5Cn
%22 %25 (%0A
@@ -1856,16 +1856,20 @@
%25s%5Cr%5Cn%25s
+%5Cr%5Cn
%22%0A%0A d
|
24ee61ecf5767d10b2fb92acc5d0217ffbfb3834 | Update get_branches.py | Group8/get_branches.py | Group8/get_branches.py | from pyfbsdk import *
import math
'''
This file is to read all branches of both target and source skeleton
This should be using motion-builder
I used People.FBX as a testcase
'''
def get_banch(parents, children, index, branches):
parents.append(children.Name)
# if there is no children, append this branch to... | Python | 0 | @@ -1,8 +1,107 @@
+ny branches we have%0A#print(branches) # this shows all branches in a list%0A#print(branches_posi)%0A
from pyf
@@ -1513,25 +1513,24 @@
, branches)%0A
-%0A
@@ -1533,40 +1533,8 @@
-#print()%0A #print(%22%5Cn%5Cn%5Cn%5Cn%22)%0A
%0A
@@ -1578,26 +1578,67 @@
osi(branches
+... |
c9df16f35af2cf51a4612eb76fab59819a32df64 | Handle TypeError in is_float | src/sentry/utils/__init__.py | src/sentry/utils/__init__.py | """
sentry.utils
~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.utils.encoding import force_unicode
import six
def to_unicode(value):
try:
value = six.text_type(... | Python | 0.003037 | @@ -700,16 +700,28 @@
except
+ (TypeError,
ValueEr
@@ -723,16 +723,17 @@
lueError
+)
:%0A
|
1dff7ff24903f470bf1e1d325c6eb88590b9fa0f | Make generator to get last bot utterance | rasa/core/channels/twilio_voice.py | rasa/core/channels/twilio_voice.py | import inspect
from sanic import Blueprint, response
from sanic.request import Request
from sanic.response import HTTPResponse
from twilio.twiml.voice_response import VoiceResponse, Gather
from typing import Text, Callable, Awaitable, List
from rasa.core.channels.channel import (
InputChannel,
CollectingOutput... | Python | 0.000011 | @@ -234,16 +234,63 @@
, List%0A%0A
+from rasa.shared.core.events import BotUttered%0A
from ras
@@ -322,16 +322,16 @@
mport (%0A
-
Inpu
@@ -1715,337 +1715,8 @@
llo%22
-%0A # If the user doesn't respond to the previous message resend the last message.%0A elif text is None:%0A ... |
7fb89e4dbe2cbed4ef37e13073d4fa3f2a650049 | Check for missing part thumbnails when the server first runs | InvenTree/part/apps.py | InvenTree/part/apps.py | from __future__ import unicode_literals
from django.apps import AppConfig
class PartConfig(AppConfig):
name = 'part'
| Python | 0 | @@ -34,16 +34,90 @@
terals%0A%0A
+import os%0A%0Afrom django.db.utils import OperationalError, ProgrammingError%0A
from dja
@@ -142,16 +142,49 @@
pConfig%0A
+from django.conf import settings%0A
%0A%0Aclass
@@ -224,8 +224,898 @@
'part'%0A
+%0A def ready(self):%0A %22%22%22%0A This function is cal... |
b7c72b9c1d63e9b7881e931cae00a0d4f0fd9e08 | version bump to 0.8.3 | namebench.py | namebench.py | #!/usr/bin/env python
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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... | Python | 0 | @@ -1121,17 +1121,17 @@
= '0.8.
-2
+3
'%0A%0A# Det
|
fbd57d2c7ad428cfa240ef11f53eb7f5b81908d7 | Bump to 0.6.2 | namebench.py | namebench.py | #!/usr/bin/env python
# Copyright 2009 Google Inc. All Rights Reserved.
"""Simple DNS server comparison benchmarking tool.
Designed to assist system administrators in selection and prioritization.
"""
__author__ = 'tstromberg@google.com (Thomas Stromberg)'
import ConfigParser
import optparse
import sys
import tempf... | Python | 0.000187 | @@ -545,17 +545,17 @@
= '0.6.
-1
+2
'%0A%0Aif __
|
7f5f10132334c1f6685497d3fff48c2c65617845 | Remove broken URL (#3623) | InvenTree/part/urls.py | InvenTree/part/urls.py | """URL lookup for Part app. Provides URL endpoints for:
- Display / Create / Edit / Delete PartCategory
- Display / Create / Edit / Delete Part
- Create / Edit / Delete PartAttachment
- Display / Create / Edit / Delete SupplierPart
"""
from django.urls import include, re_path
from . import views
part_detail_urls = ... | Python | 0 | @@ -898,175 +898,8 @@
%5B%0A%0A
- # Top level subcategory display%0A re_path(r'%5Esubcategory/', views.PartIndex.as_view(template_name='part/subcategory.html'), name='category-index-subcategory'),%0A%0A
|
912cb00aa1b0663265c14918422b0ec1220a21d3 | Bump to 0.6.5 | namebench.py | namebench.py | #!/usr/bin/env python
# Copyright 2009 Google Inc. All Rights Reserved.
"""Simple DNS server comparison benchmarking tool.
Designed to assist system administrators in selection and prioritization.
"""
__author__ = 'tstromberg@google.com (Thomas Stromberg)'
import ConfigParser
import optparse
import sys
import tempf... | Python | 0.000234 | @@ -561,17 +561,17 @@
= '0.6.
-4
+5
'%0A%0Adef p
|
d0e31fdb5ec99e91f7b5f7da5b81fc7a391689df | Update django_facebook/admin.py | django_facebook/admin.py | django_facebook/admin.py | from django.contrib import admin
from django.conf import settings
from django.core.urlresolvers import reverse
from django_facebook import admin_actions
from django_facebook import models
class FacebookUserAdmin(admin.ModelAdmin):
list_display = ('user_id', 'name', 'facebook_id',)
search_fields = ('name',)
... | Python | 0 | @@ -1042,16 +1042,57 @@
mage.url
+ if (instance and instance.image) else ''
%0A
|
4d1e3e548ee80d4a3ef42ad22506fcb8dd64ef05 | Make TestBackend compatible with Python 2 (Closes: #72) | django_slack/backends.py | django_slack/backends.py | import pprint
import logging
from six.moves import urllib
from django.http.request import QueryDict
from django.utils.module_loading import import_string
from .utils import Backend
from .app_settings import app_settings
logger = logging.getLogger(__name__)
class UrllibBackend(Backend):
def send(self, url, mes... | Python | 0 | @@ -2124,16 +2124,33 @@
super(
+TestBackend, self
).__init
|
d06e5e51695d40b8248d5854454b7d291b76bafd | Fix a few first run issues. | observy/notifications/__init__.py | observy/notifications/__init__.py | #!/usr/bin/python
#
# Copyright 2016 Eldon Ahrold
#
# 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 a... | Python | 0 | @@ -2134,32 +2134,86 @@
_file()%0A
+%0A if os.path.isfile(webhook_file):%0A
data = open(webh
@@ -2238,29 +2238,24 @@
d()%0A
-%0A
all_webh
@@ -2274,24 +2274,69 @@
loads(data)%0A
+ else:%0A all_webhooks = %7B%7D%0A%0A
regi
@@ -2641,16 +2641,17 @@
... |
f6239d6df84718044d26f5e746b08a15afb944bf | Handle exceptions in the activity constructor so that log messages ends up in the activity log rather than in shell/journal. | sugar/activity/activityfactoryservice.py | sugar/activity/activityfactoryservice.py | # Copyright (C) 2006-2007 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is dis... | Python | 0 | @@ -829,16 +829,48 @@
gettext
+%0Aimport traceback%0Aimport logging
%0A%0Aimport
@@ -2959,16 +2959,58 @@
ies = %5B%5D
+%0A self._service_name = service_name
%0A%0A
@@ -4134,32 +4134,50 @@
om_dict(handle)%0A
+%0A try:%0A
activity
@@ -4214,16 +4214,120 @@
handle)%0A
+ except... |
dbf736ba66fe6b530bfe3d9d503caa2e24ee8f01 | Make /config more CORS-y | synapse/rest/media/v1/config_resource.py | synapse/rest/media/v1/config_resource.py | # -*- coding: utf-8 -*-
# Copyright 2018 Will Hunt <will@half-shot.uk>
#
# 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 | @@ -811,16 +811,34 @@
_handler
+, set_cors_headers
%0A%0A%0Aclass
@@ -1340,32 +1340,66 @@
self, request):%0A
+ set_cors_headers(request)%0A
yield se
@@ -1521,32 +1521,66 @@
self, request):%0A
+ set_cors_headers(request)%0A
respond_
|
1a00800940b64fe33bbba22eb33da14df84de1a1 | Fix broken TPShim | nupic/research/TP_shim.py | nupic/research/TP_shim.py | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2014, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | Python | 0.000116 | @@ -2921,20 +2921,8 @@
elf.
-connections.
numb
|
f54690eb9962489a387674985055e305b9b57aa9 | remove discription by message body | addons/project_mailgate/project_mailgate.py | addons/project_mailgate/project_mailgate.py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | Python | 0.000001 | @@ -1353,44 +1353,8 @@
t')%0A
- body = msg.get('body_text')%0A
@@ -1434,41 +1434,8 @@
ct,%0A
- 'description': body,%0A
@@ -1705,86 +1705,8 @@
'):%0A
- data.update(%7B%0A 'description': msg%5B'body_text'%5D,%0A %7D)%0A
@@ -1750,17 +1750,16 @@
maps = %7B
- ... |
54e1cb0048ffd0024feae4e5dc0c1e047ca55328 | remove debug print | openaps/devices/device.py | openaps/devices/device.py | import json
from openaps.configurable import Configurable
class ExtraConfig (Configurable):
prefix = 'device'
pass
class Device (Configurable):
vendor = None
required = ['name', 'vendor']
optional = [ ]
prefix = 'device'
_uses = [ ]
def __init__ (self, name, vendor):
self.name = name
self.vendo... | Python | 0.000008 | @@ -495,33 +495,8 @@
ame%0A
- print %22args%22, args%0A
|
2d3cd9d0767869bc4747ed5671cb37c557eb78ec | use the constructed exename | pip/wheel.py | pip/wheel.py | """
Support functions for installing the "wheel" binary package format.
"""
from __future__ import with_statement
import csv
import os
import sys
import shutil
import functools
import hashlib
from base64 import urlsafe_b64encode
from pip.util import make_path_relative
def rehash(path, algo='sha256', blocksize=1<<20... | Python | 0.000863 | @@ -1616,29 +1616,22 @@
'#!') +
-sys.executabl
+exenam
e + bina
|
294e8b120d507237f1129338c476939b20604f26 | Save release test metrics under a single column (#30215) | release/ray_release/reporter/db.py | release/ray_release/reporter/db.py | import time
import json
import boto3
from botocore.config import Config
from ray_release.reporter.reporter import Reporter
from ray_release.result import Result
from ray_release.config import Test
from ray_release.logger import logger
class DBReporter(Reporter):
def __init__(self):
self.firehose = boto3.... | Python | 0 | @@ -1248,38 +1248,35 @@
- %7D%0A
- result_json.update(
+%22prometheus_metrics%22:
resu
@@ -1296,17 +1296,33 @@
_metrics
-)
+ or %7B%7D,%0A %7D
%0A%0A
|
288c9a509d7d2aeb2fb5c21b6d5037feaa012eb2 | Simplify SlackWebhookHook code and change docstring (#4696) | airflow/contrib/hooks/slack_webhook_hook.py | airflow/contrib/hooks/slack_webhook_hook.py | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | Python | 0 | @@ -2733,49 +2733,8 @@
gs)%0A
- self.http_conn_id = http_conn_id%0A
@@ -3232,24 +3232,49 @@
vided token%0A
+ :type token: str%0A
:par
@@ -3276,16 +3276,21 @@
:param
+http_
conn_id:
@@ -3311,16 +3311,48 @@
rovided%0A
+ :type http_conn_id: str%0A
@@ -4532,128 +4532,8 @... |
2402af19399419d84a8e791bdee58c4f519dfe35 | Remove pk check from JSONFieldBase pre_init method. | jsonfield/fields.py | jsonfield/fields.py | import copy
from django.db import models
from django.core.serializers.json import DjangoJSONEncoder
from django.utils.translation import ugettext_lazy as _
try:
from django.utils import six
except ImportError:
import six
try:
import json
except ImportError:
from django.utils import simplejson as json
... | Python | 0 | @@ -2232,65 +2232,8 @@
/52%0A
- if getattr(obj, %22pk%22, None) is not None:%0A
@@ -2288,36 +2288,32 @@
-
try:%0A
@@ -2313,36 +2313,32 @@
-
-
return json.load
@@ -2374,36 +2374,32 @@
-
except ValueErro
@@ -2393,36 +239... |
0a94b8a4756e9b46211567c430560a314c554a1d | add help for org command | parse.py | parse.py | import argparse
class Parser(argparse.ArgumentParser):
def populate(self):
self.add_argument('--output', choices=('xml', 'text', 'html'),
default='text')
subparsers = self.add_subparsers(title='Commands', metavar='',
dest='call')
... | Python | 0.000001 | @@ -464,16 +464,31 @@
er('org'
+, help='HANDLE'
)%0A
|
70477e0a8da15592f5f2197e8d1bffe57eece871 | Add back import of operations, which was lost during cleanup. | nuage_amp/nuage_amp.py | nuage_amp/nuage_amp.py | #!/usr/bin/python
"""
Usage:
nuage-amp sync [--once] [options]
nuage-amp audit-vports [options]
nuage-amp network-macro-from-url (create|delete) <url> <enterprise> [options]
nuage-amp vsdmanaged-tenant (create|delete) <name> [--force] [options]
nuage-amp vsdmanaged-tenant list
nuage-amp (-h | --help)
Optio... | Python | 0 | @@ -934,16 +934,41 @@
docopt%0A
+from operations import *%0A
import t
|
6b3363b1486bd92f5355023074db9a52e60b1b34 | Set AWS MQTT timeouts to 120 / 60. | src/scs_core/aws/client/mqtt_client.py | src/scs_core/aws/client/mqtt_client.py | """
Created on 6 Oct 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
https://github.com/aws/aws-iot-device-sdk-python
https://stackoverflow.com/questions/20083858/how-to-extract-value-from-bound-method-in-python
"""
import AWSIoTPythonSDK.exception.AWSIoTExceptions as AWSIoTExceptions
import AWSIoTP... | Python | 0 | @@ -1292,18 +1292,18 @@
1
+2
0
-
@@ -1386,18 +1386,18 @@
-5
+60
|
400f127fb3264b5a4f403a67a89c25238ff192a4 | Fix missing import in fs.sshfs.error_tools | fs/sshfs/error_tools.py | fs/sshfs/error_tools.py | from __future__ import absolute_import
from __future__ import unicode_literals
import errno
import six
from .. import errors
class _ConvertSSHFSErrors(object):
"""Context manager to convert OSErrors in to FS Errors."""
FILE_ERRORS = {
64: errors.RemoteConnectionError, # ENONET
errno.EN... | Python | 0.00021 | @@ -97,16 +97,26 @@
ort six%0A
+import sys
%0A%0Afrom .
@@ -133,19 +133,16 @@
rrors%0A%0A%0A
-%0A%0A%0A
class _C
|
65fb9244df69646721c8273afae22fe6248976f0 | optimise common.py | backend/service/common.py | backend/service/common.py | from service.base import BaseService
import config
### need to add rs
class CommonService(BaseService):
def __init__(self, db, rs):
super().__init__(db, rs)
CommonService.inst = self
def get_execute_type(self):
res = (yield self.db.execute("SELECT * FROM execute_types order by id")).fe... | Python | 0.022141 | @@ -235,32 +235,53 @@
):%0A res =
+%7B x%5B'id'%5D: x for x in
(yield self.db.
@@ -335,87 +335,9 @@
d%22))
-.fetchall()%0A ret = %7B%7D%0A for x in res:%0A ret%5Bx%5B'id'%5D%5D = x
+%7D
%0A
@@ -350,17 +350,17 @@
eturn re
-t
+s
%0A%0A de
@@ -398,16 +398,38 @@
res =
+ %7B ... |
16c0f9fee7ee9f67a64645f41584083373ebb2cd | fix indexing in the donation db model | blueprints/donations/donation_model.py | blueprints/donations/donation_model.py | __author__ = 'HansiHE'
from mongoengine import *
from datetime import datetime
from blueprints.auth.user_model import User
class TransactionLog(Document):
username = StringField()
date = DateTimeField(required=True, default=datetime.utcnow)
data = DictField()
class DonationTransactionSta... | Python | 0.000001 | @@ -1484,17 +1484,16 @@
-#
'indexes
@@ -1510,35 +1510,8 @@
-# 'username',%0D%0A #
@@ -1518,17 +1518,16 @@
'amount'
-,
%0D%0A
@@ -1532,206 +1532,16 @@
-# %7B%0D%0A # 'fields': %5B'transaction_id'%5D,%0D%0A # 'unique': True,%0D%0A # ... |
b9c076865f4e0ff9b4ab007472cbab735ccf01ab | Bump version to 3.1.2 | osg_configure/version.py | osg_configure/version.py | __version__ = "3.1.1"
| Python | 0.000001 | @@ -12,11 +12,11 @@
= %223.1.
-1
+2
%22%0A
|
214f4094b6b5c2f4a43ff96567a7bbe87ba63d28 | Update bob.py | Python_sessions/session-2/practice_codes/bob.py | Python_sessions/session-2/practice_codes/bob.py | hello = "Hi Human, I am B.O.B. "
question1 = "What is your name? "
response1 = "Thats a lovely name! "
input(hello+question1)
print response1
answer_type = "Please answer in 'yes' of 'no'. "
question2 = "Can I help you? "
response2 = "I am a computer, not a human. "
input(question2+answer_type)
print response2
questi... | Python | 0.000002 | @@ -175,17 +175,17 @@
'yes' o
-f
+r
'no'. %22
|
0845eddc933e439fba77083c0668a3bcf74f975e | add index for format for python 2.6 | encrypted_fields/tests.py | encrypted_fields/tests.py |
import re
from datetime import datetime
from django.db import models, connection
from django.test import TestCase
from .fields import (
EncryptedCharField,
EncryptedTextField,
EncryptedDateTimeField,
EncryptedIntegerField,
)
class TestModel(models.Model):
char = EncryptedCharField(max_length=25... | Python | 0.000002 | @@ -621,16 +621,17 @@
select %7B
+0
%7D '%0A
@@ -698,16 +698,17 @@
e id = %7B
+1
%7D;'.form
|
f44c7670ee06d0ff3976c11b921cc3f288b0259b | add TestMPEventLoopRunner.test_ProgressMonitor | tests/EventReader/test_MPEventLoopRunner.py | tests/EventReader/test_MPEventLoopRunner.py | from AlphaTwirl.EventReader import MPEventLoopRunner
import unittest
##____________________________________________________________________________||
class MockReader(object):
def __init__(self):
self._results = None
def setResults(self, results):
self._results = results
def results(self)... | Python | 0.000001 | @@ -61,16 +61,26 @@
unittest
+%0Aimport os
%0A%0A##____
@@ -763,602 +763,2184 @@
ass
-TestMPEventLoopRunner(unittest.TestCase):%0A%0A def test_begin_end(self):%0A runner = MPEventLoopRunner()%0A runner.begin()%0A runner.end()%0A%0A def test_run(self):%0A runner = MPEventLoopRunner(... |
e6e0d96790d71caccb3f00487bfeeddccdc78139 | Fix variable and return value | app/raw/tasks.py | app/raw/tasks.py | from __future__ import absolute_import
from celery import shared_task
from twisted.internet import reactor
from scrapy.crawler import Crawler
from scrapy import log, signals
from scrapy.utils.project import get_project_settings
import os
from raw.scraper.spiders.legco_library import LibraryAgendaSpider
from raw.scrape... | Python | 0.000005 | @@ -495,19 +495,22 @@
s()%0A
-url
+output
_path =
@@ -618,11 +618,14 @@
%5D =
-url
+output
_pat
@@ -886,13 +886,13 @@
output_
-name
+path
%0A
|
8c1e0e5a7aef661152fc76757fb8f1403af56133 | fix tests | tests/dataset/test_highly_variable_genes.py | tests/dataset/test_highly_variable_genes.py | from unittest import TestCase
import numpy as np
from scvi.dataset import GeneExpressionDataset, BrainLargeDataset
class TestHighlyVariableGenes(TestCase):
def test_sparse_no_batch_correction(self):
for flavor in ["seurat", "cell_ranger", "seurat_v3"]:
dataset = BrainLargeDataset(
... | Python | 0.000001 | @@ -1563,32 +1563,33 @@
dataset.
+_
highly_variable_
@@ -1620,32 +1620,37 @@
seurat%22)%0A
+ df =
dataset.highly_
@@ -1634,32 +1634,33 @@
df = dataset.
+_
highly_variable_
@@ -1669,78 +1669,21 @@
nes(
-n_bins=3, flavor=%22seurat%22)%0A df = dataset.highly_variable_genes(
+%0A ... |
600e68fc3e4b708090f5c3349d002ea9c3d2fbf8 | improve examples group | tests/examples/user_code/publisher_group.py | tests/examples/user_code/publisher_group.py | import time
from celery import chord, group
from .tasks import *
chord(
group(function_value.s(0, value=i) for i in range(1000)),
function_any.s(from_chord=True)
)()
time.sleep(5)
| Python | 0.000002 | @@ -49,21 +49,22 @@
om .
-tasks
+worker
import
*%0A%0Ac
@@ -63,9 +63,41 @@
ort
-*
+function_aggregate, function_test
%0A%0Ach
@@ -120,21 +120,20 @@
unction_
-value
+test
.s(0, va
@@ -180,10 +180,16 @@
on_a
-ny
+ggregate
.s(f
|
99a1f0bbc8cd8caf1aec5510af1629c23e9cd92f | Add prehook to exclude objects that are flagged as removed | objectset/resources.py | objectset/resources.py | from django.core.exceptions import ImproperlyConfigured
try:
import restlib2 # noqa
import preserialize # noqa
except ImportError:
raise ImproperlyConfigured('restlib2 and django-preserialize must be '
'installed to use the resource classes')
from django.conf.urls import pa... | Python | 0 | @@ -559,16 +559,27 @@
bjectSet
+, SetObject
%0Afrom .f
@@ -844,16 +844,235 @@
_',%0A%7D%0A%0A%0A
+def set_objects_prehook(queryset):%0A %22Prehook for set objects to exclude tracked deleted objects.%22%0A if issubclass(queryset.model, SetObject):%0A queryset = queryset.exclude(removed=True)%0A return... |
902cbd511f2f42948991713cdf0a98c4473c66c0 | add tqdm to hagrid setup.py | packages/hagrid/setup.py | packages/hagrid/setup.py | # stdlib
import platform
# third party
from setuptools import find_packages
from setuptools import setup
__version__ = "0.2.89"
DATA_FILES = {
"img": ["hagrid/img/*.png"],
}
packages = [
"ascii_magic",
"click",
"cryptography>=37.0.2",
"gitpython",
"jinja2",
"names",
"packaging>=21.3"... | Python | 0 | @@ -456,16 +456,28 @@
yYAML%22,%0A
+ %22tqdm%22,%0A
%5D%0A%0Aif pl
|
61d9cc9ea9585550908300a11f49fbc44fdf17e1 | add simple correctness test for knn kl estimator | skl_groups/tests/test_divs_knn.py | skl_groups/tests/test_divs_knn.py | from __future__ import division
from functools import partial
import logging
import os
import sys
import numpy as np
from scipy.special import psi
from sklearn.externals.six.moves import xrange
from nose.tools import assert_raises
from testfixtures import LogCapture
if __name__ == '__main__':
# make this copy o... | Python | 0.000003 | @@ -1672,16 +1672,819 @@
x_K')%0A%0A%0A
+def test_knn_kl():%0A # verified by hand%0A # Dhat(P%7C%7CQ) = %5Clog m/(n-1) + d / n %5Csum_%7Bi=1%7D%5En %5Clog %5Cnu_k(i)/rho_k(i)%0A x = np.reshape(%5B0., 1, 3%5D, (3, 1))%0A y = np.reshape(%5B.2, 1.2, 3.2, 7.2%5D, (4, 1))%0A%0A n = x.shape%5B0%5D%0A m = ... |
f520d71d75dea757794b33f2d0e8a7c8c6204717 | Add legacy_url for accepted orgs | app/soc/modules/gsoc/views/accepted_orgs.py | app/soc/modules/gsoc/views/accepted_orgs.py | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 applic... | Python | 0 | @@ -2796,16 +2796,94 @@
d_orgs')
+,%0A url(r'gsoc/program/accepted_orgs/%25s$' %25 url_patterns.PROGRAM, self),
%0A %5D%0A%0A
|
61d67f1be8ef87d2835786f03d2af34fba50ab5d | fix tests | smartmin/templatetags/smartmin.py | smartmin/templatetags/smartmin.py | from django import template
from datetime import datetime
from django.utils import simplejson
from django.template import TemplateSyntaxError
register = template.Library()
@register.simple_tag(takes_context=True)
def get_list_class(context, list):
"""
Returns the class to use for the passed in list. We just ... | Python | 0.000001 | @@ -2748,24 +2748,37 @@
rm, field):%0A
+ try:%0A
return f
@@ -2787,16 +2787,57 @@
m%5Bfield%5D
+%0A except KeyError:%0A return None
%0A%0A@regis
|
d9660073cbc2e59d7eb9625e45478c2f8b2e8fd9 | Add utf8 support | staticjinja/staticjinja.py | staticjinja/staticjinja.py | """
Simple static page generator.
Uses jinja2 to compile templates.
Templates should live inside `./templates` and will be compiled in '.'.
"""
import inspect
import os
import re
import easywatch
from jinja2 import Environment, FileSystemLoader
def build_template(env, template, outpath, **kwargs):
"""Compile a t... | Python | 0 | @@ -283,16 +283,26 @@
outpath,
+ encoding,
**kwarg
@@ -305,16 +305,16 @@
wargs):%0A
-
%22%22%22C
@@ -987,16 +987,26 @@
te.name)
+, encoding
)%0A%0A%0Adef
@@ -1430,16 +1430,33 @@
les=None
+, encoding=%22utf8%22
):%0A %22
@@ -3278,16 +3278,26 @@
outpath,
+ encoding,
**conte
@@ -3434,16 +3434,33 @@
oa... |
e04b71d4fed675e3d8333e59ecf1df5a67ce42ac | remove martor app from django | oeplatform/settings.py | oeplatform/settings.py | """
Django settings for oeplatform project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build p... | Python | 0.000001 | @@ -1362,21 +1362,8 @@
s%22,%0A
- %22martor%22%0A
)%0A%0AM
@@ -2421,16 +2421,42 @@
ation%22%0A%0A
+ONTOLOGY_FOLDER = %22/tmp%22%0A%0A
# Intern
|
c1283375fdb4a8e61f9a85c5fb7efc7e9272a555 | Fix 3.5 build | tests/record_tests/test_anonymous_record.py | tests/record_tests/test_anonymous_record.py | from __future__ import absolute_import, division, print_function, with_statement
from __future__ import unicode_literals
from deepstreampy import client
from deepstreampy.record import AnonymousRecord
from deepstreampy.constants import connection_state
from tornado import testing
from tornado.concurrent import Future... | Python | 0 | @@ -2686,42 +2686,54 @@
elf.
-ready_callback.assert_called_once(
+assertEquals(self.ready_callback.call_count, 1
)%0A
@@ -3191,42 +3191,54 @@
elf.
-ready_callback.assert_called_once(
+assertEquals(self.ready_callback.call_count, 1
)%0A
|
33122c5a1b3642712546bc290d591077ce4cc847 | Fix test | tests/rest/client/v2_alpha/test_register.py | tests/rest/client/v2_alpha/test_register.py | from synapse.rest.client.v2_alpha.register import RegisterRestServlet
from synapse.api.errors import SynapseError
from twisted.internet import defer
from mock import Mock
from tests import unittest
from tests.utils import mock_getRawHeaders
import json
class RegisterRestServletTestCase(unittest.TestCase):
def se... | Python | 0.000004 | @@ -1869,16 +1869,60 @@
n = True
+%0A self.hs.config.auto_join_rooms = %5B%5D
%0A%0A
|
afd0ce40107899a5096b16543919400c912649d7 | improve detection of imported symbols (support `from x import y as z`) | doc/utils/checkapidoc.py | doc/utils/checkapidoc.py | # -*- coding: utf-8 -*-
"""Trac API doc checker
Verify that all symbols belonging to modules already documented in the doc/api
Sphinx sources are referenced.
See http://trac.edgewall.org/wiki/TracDev/ApiDocs
"""
import fnmatch
import os
import re
import sys
excluded_docs = ['index.rst']
api_doc = 'doc/api'
def u... | Python | 0.000002 | @@ -5252,71 +5252,8 @@
-1%5D%0A
- symbol_list = re.sub(r'%5Cw+%5Cs+as', '', symbol_list)%0A
|
b6c78bc88b53e2cfbda4ef4d337ff1971f805051 | Change enum ordering | paperwork_parser/base.py | paperwork_parser/base.py | import inspect
from enum import IntEnum
from pdfquery import PDFQuery
class DocFieldType(IntEnum):
NUMBER = 1
TEXT = 2
CUSTOM = 3 # TODO: Forget this and have 'type' take a callable instead?
class DocField(object):
def __init__(self, bbox, type=DocFieldType.TEXT, required=False,
d... | Python | 0.000001 | @@ -103,14 +103,12 @@
-NUMBER
+TEXT
= 1
@@ -112,20 +112,22 @@
= 1%0A
-TEXT
+NUMBER
= 2%0A
|
a074f73e97312f39c6e5ab6790ec6768cf9780ad | remove unused and broken test utility (#661) | geopandas/tests/util.py | geopandas/tests/util.py | import os.path
from geopandas import GeoDataFrame, GeoSeries
HERE = os.path.abspath(os.path.dirname(__file__))
PACKAGE_DIR = os.path.dirname(os.path.dirname(HERE))
try:
import psycopg2
from psycopg2 import OperationalError
except ImportError:
class OperationalError(Exception):
pass
try:
im... | Python | 0 | @@ -2559,388 +2559,8 @@
e%0A%0A%0A
-def assert_seq_equal(left, right):%0A %22%22%22%0A Poor man's version of assert_almost_equal which isn't working with Shapely%0A objects right now%0A %22%22%22%0A assert (len(left) == len(right),%0A %22Mismatched lengths: %25d != %25d%22 %25 (len(left), len... |
ac8fdbacc01d82a2ca5c19250464a45cce052ff3 | remove stray print statement | tests/test_units/test_decorator_validate.py | tests/test_units/test_decorator_validate.py | # -*- coding: utf-8 -*-
from paste.fixture import TestApp
from paste.registry import RegistryManager
from pylons.decorators import validate, encode_formencode_errors
from pylons.controllers import WSGIController
from __init__ import ControllerWrap, SetupCacheGlobal, TestWSGIController
import formencode
from formenc... | Python | 0.999995 | @@ -3731,36 +3731,8 @@
on)%0A
- print response.body%0A
|
c6afe2ee8ba40d11d7e62e1fbaca6436e6a56cf5 | Change deepcopy by copy | geotrek/common/forms.py | geotrek/common/forms.py | from zipfile import is_zipfile
from copy import deepcopy
from django import forms
from django.db.models import Q
from django.db.models.query import QuerySet
from django.db.models.fields.related import ForeignKey, ManyToManyField
from django.core.exceptions import FieldDoesNotExist
from django.utils.text import format_... | Python | 0 | @@ -2926,25 +2926,16 @@
ields =
-deepcopy(
self.fie
@@ -2937,16 +2937,22 @@
f.fields
+.copy(
)%0A
|
26b08b2f5eef4f71e1bc147a5ed6b92b83799742 | Update unit tests to new config file structure | pi_ldapproxy/test/util.py | pi_ldapproxy/test/util.py | # Contains code from ldaptor (createServer from ldaptor/testutil.py),
# which is licensed under the MIT license as follows.
# Copyright (c) 2002-2014, Ldaptor Contributors (see AUTHORS)
#
# Ldaptor is licensed under the MIT license for the majority of the
# files, with exceptions listed below.
#
# Permission is hereby ... | Python | 0 | @@ -1912,24 +1912,8 @@
.com
-%0Arealm = default
%0A%0A%5Bl
@@ -2375,16 +2375,101 @@
local%22%0A%0A
+%5Brealm-mapping%5D%0Astrategy = static%0Arealm = default%0A%0A%5Bpreamble-cache%5D%0Aenabled = false%0A%0A
%5Bbind-ca
@@ -2730,16 +2730,47 @@
t result
+ == True, %22Invalid test config%22
%0A ret
|
41d64648623c261baf18dc3e9006f877276caf35 | Fix bug bordercase, unit that was killed during attack, wants to move later | onagame2015/actions.py | onagame2015/actions.py | import random
from onagame2015.validations import (
coord_in_arena,
arg_is_valid_tuple,
)
from onagame2015.lib import (
Coordinate,
UNIT_TYPE_ATTACK,
)
def toss_dice(number_of_dice):
for _ in range(number_of_dice):
yield random.randint(1, 6)
class BaseBotAction(object):
ACTION_NAME =... | Python | 0 | @@ -6763,24 +6763,45 @@
'unit_id'%5D)%0A
+ if unit:%0A
acti
@@ -6849,16 +6849,20 @@
ion'%5D))%0A
+
@@ -6950,32 +6950,36 @@
from'%5D)%0A
+
action_result%5B'p
@@ -7024,24 +7024,28 @@
sult%5B'to'%5D)%0A
+
retu
|
35bc179c6e6c7c8d9230de8da0672a106a372954 | Install plugins using package. | testcases/cloud_admin/run_sos_report.py | testcases/cloud_admin/run_sos_report.py | #!/usr/bin/python
import os
import time
from eucaops import Eucaops
from eutester.eutestcase import EutesterTestCase
from eutester.machine import Machine
class SampleTest(EutesterTestCase):
def __init__(self):
self.setuptestcase()
self.setup_parser()
self.start_time = self.ticket_number =... | Python | 0 | @@ -551,16 +551,19 @@
(%22--
-git-repo
+package-url
%22, d
@@ -578,32 +578,35 @@
http
-s
://
-github.com/risaacson
+mongo.beldurnik.com/RPMS
/euc
@@ -616,30 +616,24 @@
ptus-sos
-report
-plugins
.git%22)%0A
@@ -624,20 +624,37 @@
-plugins
-.git
+-0.1-0.el6.noarch.rpm
%22)%0A
@@ -1105,212 +1105,53 @@
ine.... |
faa11c39ca24676b2b7b498203eda4034e9805b5 | convert rest.Forbidden to 401 Unauthorized when there is no client identity | ermrest/exception/rest.py | ermrest/exception/rest.py |
#
# Copyright 2012-2013 University of Southern California
#
# 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 applica... | Python | 0.00001 | @@ -2061,24 +2061,117 @@
forbidden.'%0A
+ if web.ctx.webauthn2_context.client is None:%0A status = '401 Unauthorized'%0A
WebE
|
10ba0ea095e4765a2d60751371f7dca8e36e2d18 | Fix infinite loop in grit headers clobbering script. | build/win/clobber_generated_headers.py | build/win/clobber_generated_headers.py | #!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This script helps workaround IncrediBuild problem on Windows.
# See http://crbug.com/17706.
import os
import sys
_SRC_PATH = os.pat... | Python | 0.000029 | @@ -616,24 +616,53 @@
split(path)%0A
+ if not tail:%0A break%0A
componen
@@ -1627,8 +1627,9 @@
inuing.'
+%0A
|
e71870736959efcde2188bdcbd89838b67ca8582 | Add AbstractSanitizer/AbstractValidator class to import path | pathvalidate/__init__.py | pathvalidate/__init__.py | """
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from .__version__ import __author__, __copyright__, __email__, __license__, __version__
from ._common import (
Platform,
ascii_symbols,
normalize_platform,
replace_ansi_escape,
replace_unprintable_char,
unprintable_ascii_ch... | Python | 0 | @@ -154,16 +154,72 @@
rsion__%0A
+from ._base import AbstractSanitizer, AbstractValidator%0A
from ._c
|
12e2d6d01ff15cadb7cd87484f14475f30aea652 | fix version number because this was backported | lib/ansible/modules/cloud/scaleway/scaleway_image_facts.py | lib/ansible/modules/cloud/scaleway/scaleway_image_facts.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2018, Yanis Guenane <yanis+ansible@guenane.org>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version':... | Python | 0 | @@ -775,17 +775,17 @@
ded: %222.
-8
+7
%22%0A de
|
42609dfaf39c09fa591ff1b40e23ab1795a6d7a5 | test fix | vitrage/tests/unit/datasources/test_alarm_transformer_base.py | vitrage/tests/unit/datasources/test_alarm_transformer_base.py | # Copyright 2017 - Nokia
#
# 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 writing, sof... | Python | 0.000006 | @@ -2415,16 +2415,70 @@
SOURCE,%0A
+ VProps.CATEGORY: EntityCategory.RESOURCE,%0A
@@ -2602,16 +2602,17 @@
sformer.
+
%5C%0A
@@ -2624,16 +2624,25 @@
create_
+neighbor_
placehol
|
de22467c0b5e5996a40cc8b8b84d2ac484690939 | Clear some unneeded optimizations so progress reporting is smoother | gmail-restore-labels.py | gmail-restore-labels.py | #!/usr/bin/python3
import config_oldbw
import config_newbw
import email.header
import imaplib
import os
import pprint
import re
import shelve
import ssl
import pickle
class Gmail(imaplib.IMAP4_SSL):
def __init__(self, cfg):
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
ctx.verify_mode = ssl.CERT_REQUIR... | Python | 0.000001 | @@ -4587,16 +4587,20 @@
if
+len(
msgwantl
@@ -4604,24 +4604,22 @@
ntlabels
- is None
+) == 0
:%0A
@@ -4658,37 +4658,16 @@
msgid)%0A
- continue%0A
@@ -4697,32 +4697,32 @@
labels(labels))%0A
+
msgneedl
@@ -4762,65 +4762,8 @@
els%0A
- if len(msgneedlabels) == 0:%0A ... |
8e1f573edb01aac1df45030182ab73d423914f8f | check if REDIS_URL exists before connect to redis brain | robot.py | robot.py | # coding: utf-8
from __future__ import unicode_literals
from gevent.monkey import patch_all
patch_all()
import gevent
import logging
from gevent.pool import Pool
from redis import StrictRedis
from importlib import import_module
from slackclient import SlackClient
from settings import APPS, SLACK_TOKEN, REDIS_URL
po... | Python | 0 | @@ -418,32 +418,84 @@
__init__(self):%0A
+ self.redis = None%0A if REDIS_URL:%0A
try:%0A
@@ -483,32 +483,36 @@
try:%0A
+
self
@@ -548,32 +548,36 @@
IS_URL)%0A
+
+
except Exception
@@ -587,32 +587,36 @@
e:%0A
+
logger.error(e)%0... |
8783d769b58a926fd873391d51138a590a7b877b | fix dependency resolution and resource embedding (regression caused by rename from medea to medealib) | compiler/build.py | compiler/build.py |
import sys
import re
import os
import shutil
import preprocessor
primary_compiled_file = 'medea.core-compiled.js'
def get_full_file_name(file):
# the rules for module names are simple - if the full .js file name
# is given, we load it directly. Otherwise, we assume it is a medea
# module of the given name and d... | Python | 0 | @@ -1356,24 +1356,27 @@
%22 %0A%0A%09%09%09medea
+lib
._bakedResou
@@ -2982,16 +2982,19 @@
(r%22medea
+lib
%5C.define
@@ -4401,16 +4401,19 @@
e('medea
+lib
._bakedR
|
395617afca4d242de12e2a75a3ae7d2a258f75a7 | use template string | paystackapi/constants.py | paystackapi/constants.py | """Script used to define constants used across codebase."""
PAYSTACK_SECRET_KEY = 'sk_test_0a246ef179dc841f42d20959bebdd790f69605d8'
HEADERS = {'Authorization': 'Bearer ' + PAYSTACK_SECRET_KEY}
API_URL = 'https://api.paystack.co/'
| Python | 0.000001 | @@ -168,31 +168,11 @@
rer
-' + PAYSTACK_SECRET_KEY
+%7B%7D'
%7D%0AAP
|
39beb9cbb3d0158dab58787cbe95651c8ec66db9 | Bump up minor version. | patroni/version.py | patroni/version.py | __version__ = '0.75'
| Python | 0 | @@ -15,7 +15,7 @@
'0.7
-5
+6
'%0A
|
d0568b2c132ebe2cdf1f656ee96442a0888257cd | add NSecurity class | CorpFin/Security.py | CorpFin/Security.py | from HelpyFuncs.SymPy import sympy_theanify
class Security:
def __init__(self, label='', bs_val=0., val=0.):
self.label = label
self.bs_val_expr = bs_val
self.bs_val = sympy_theanify(bs_val)
self.val_expr = val
self.val = sympy_theanify(val)
def __call__(self, **kwar... | Python | 0 | @@ -569,8 +569,125 @@
val=1.)%0A
+%0A%0Aclass NSecurity:%0A def __init__(self, n=1, security=DOLLAR):%0A self.n = n%0A self.security = security%0A
|
99818f02ebc46debe349a6c1b6bba70be6e04968 | Update error message for no plugins | skimage/io/_plugins/null_plugin.py | skimage/io/_plugins/null_plugin.py | __all__ = ['imshow', 'imread', 'imsave', '_app_show']
import warnings
message = '''\
No plugin has been loaded. Please refer to
skimage.io.plugins()
for a list of available plugins.'''
def imshow(*args, **kwargs):
warnings.warn(RuntimeWarning(message))
def imread(*args, **kwargs):
warnings.warn(Runtime... | Python | 0 | @@ -127,64 +127,187 @@
r to
-%0A%0Askimage.io.plugins()%0A%0Afor a list of available plugins.
+ the docstring for %60%60skimage.io%60%60%0Afor a list of available plugins. You may specify a plugin explicitly as%0Aan argument to %60%60imread%60%60, e.g. %60%60imread(%22image.jpg%22, plugin='pil')%60%60.%0A%0A
'''%0A
|
265052b981e04afe4815e9dceafbb7f2b06d2b0c | disable script host key checking | king/name-server.py | king/name-server.py | from twisted.internet import reactor
from twisted.names import dns, client, server
from rpyc.utils.factory import ssh_connect
from plumbum import SshMachine
from threading import Thread
import argparse
parser = argparse.ArgumentParser(description='Central Name Server')
parser.add_argument('--full', default=False, acti... | Python | 0 | @@ -2670,16 +2670,90 @@
/id_rsa'
+, ssh_opts=%5B%22StrictHostKeyChecking no%22, %22-o UserKnownHostsFile=/dev/null%22%5D
)%0A
|
c9170cb4c0d63a6dc75f0fa7ca76faa688a1678a | Make tags optional | ppb/forms.py | ppb/forms.py | from pinax.blog.forms import FIELDS, AdminPostForm
from pinax.blog.models import Post
from taggit.forms import TagField
FIELDS.append("tags")
class AdminPostTagsForm(AdminPostForm):
tags = TagField()
class Meta:
model = Post
fields = FIELDS
| Python | 0.000001 | @@ -201,16 +201,30 @@
agField(
+required=False
)%0A%0A c
|
9ee9ba34e447e99c868fcb43d40ce905cebf5fb9 | Add list and define functions. | noah/noah.py | noah/noah.py | import json
class Noah(object):
pass | Python | 0 | @@ -34,8 +34,588 @@
-pass
+def __init__(self, dictionary_file):%0A self.dictionary = json.load(dictionary_file)%0A%0A def list(self):%0A return '%5Cn'.join(%5Bentry%5B'word'%5D for entry in self.dictionary%5D)%0A%0A def define(self, word):%0A entry = next((x for x in self.dictionary if ... |
48e15ea8494d72ee2a4cb7d05b5ee5d626d581c5 | Add groups to serf inventory plugin | plugins/inventory/serf.py | plugins/inventory/serf.py | #!/usr/bin/env python
# (c) 2015, Marc Abramowitz <marca@surveymonkey.com>
#
# This file is part of Ansible.
#
# Ansible 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, either version 3 of the License, or
# (... | Python | 0 | @@ -1118,16 +1118,35 @@
rgparse%0A
+import collections%0A
import o
@@ -1615,24 +1615,228 @@
in data%5D%0A%0A%0A
+def get_groups(data):%0A groups = collections.defaultdict(list)%0A%0A for node in data:%0A for key, value in node%5B'Tags'%5D.items():%0A groups%5Bvalue%5D.append(node%5B'Name'%5D... |
0dd2bd0a8d2b041672afdf66666df63e2dd1a044 | Add author friends url. | rest/urls.py | rest/urls.py | # Author: Braedy Kuzma
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(),
name='post'),
url(r'^posts/$', views.PostsView.as_view(), name='posts'),
url(r'^author/(?P<aid>[0-9a-fA-F\-]+)/$', views.AuthorView.as_view(... | Python | 0 | @@ -86,16 +86,79 @@
rns = %5B%0A
+ url(r'%5Eposts/$', views.PostsView.as_view(), name='posts'),%0A
url(
@@ -255,39 +255,82 @@
rl(r'%5Eposts/
-$', views.Posts
+(?P%3Cpid%3E%5B0-9a-fA-F%5C-%5D+)/comments/$',%0A views.Comment
View.as_view
@@ -331,35 +331,38 @@
s_view(), name='
-pos
+commen
ts'),%0A ... |
0cf7fda731a71524651de95821b444b5c554260e | Move initial_fetch() up | inferno-cli.py | inferno-cli.py | #!/usr/bin/env python3
import argparse
import collections
import datetime
import logging
import os
import re
import sys
import time
import bs4
import requests
import setproctitle
import util
class Shoutbox:
base_url = ""
inferno_url = ""
s = None
lines = []
read = collections.deque(maxlen=21)
... | Python | 0.000005 | @@ -2281,16 +2281,153 @@
urn %22%22%0A%0A
+ def initial_fetch(self):%0A self.update()%0A for i in self.lines:%0A self.read.append(i)%0A self.lines = %5B%5D%0A%0A
def
@@ -2794,145 +2794,8 @@
%5B%5D%0A%0A
- def initial_fetch(self):%0A self.update()%0A for i in s... |
ad912a737a51070cc621715458740578d466c5b7 | Update router.py | peewee_migrate/router.py | peewee_migrate/router.py | import os
import re
from importlib import import_module
from types import ModuleType
import mock
import peewee as pw
from cached_property import cached_property
from peewee_migrate import LOGGER, MigrateHistory
from peewee_migrate.auto import diff_many, NEWLINE
from peewee_migrate.compat import string_types, exec_in
... | Python | 0 | @@ -3710,24 +3710,99 @@
.execute'):%0A
+ with mock.patch('peewee.UpdateQuery.execute'):%0A
|
6fce2e52715f1a77edb19eca8b1133875fff3d34 | Set HearingViewSet read Only | kk/views/hearing.py | kk/views/hearing.py | import django_filters
from rest_framework import viewsets
from rest_framework import serializers
from rest_framework import filters
from rest_framework.decorators import detail_route
from rest_framework.response import Response
from kk.models import Hearing
from .image import ImageFieldSerializer, ImageSerializer
... | Python | 0 | @@ -1117,16 +1117,24 @@
iewsets.
+ReadOnly
ModelVie
|
b0fa9031b4eabd33a6c6f8f27e22351b14e1eeee | Set a new primary avatar when deleting the primary avatar. | avatar/views.py | avatar/views.py | import os.path
from avatar.models import Avatar, avatar_file_path
from avatar.forms import PrimaryAvatarForm, DeleteAvatarForm
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.contrib.auth.decorators import login_require... | Python | 0 | @@ -3358,16 +3358,276 @@
oices'%5D%0A
+ if unicode(avatar.id) in ids and avatars.count() %3E len(ids):%0A for a in avatars:%0A if unicode(a.id) not in ids:%0A a.primary = True%0A a.save()%0A break%0A
... |
829ddcdf0ceff4f43cf871b7438170d4e4971a70 | Fix cyclomatic complexity problem in exception handling | surveymonkey/exceptions.py | surveymonkey/exceptions.py | # -*- coding: utf-8 -*-
class SurveyMonkeyException(Exception):
def __init__(self, response):
data = response.json()
super(SurveyMonkeyException, self).__init__(data["error"]["message"])
self.status_code = response.status_code
self.error_code = data["error"]["id"]
class SurveyMon... | Python | 0.000041 | @@ -960,97 +960,157 @@
e):%0A
- if response.status_code == 200:%0A return%0A elif response.status_code == 400:%0A
+%0A def _not_found(response):%0A if response.json()%5B%22error%22%5D%5B%22id%22%5D == %221052%22:%0A return SurveyMonkeyUserSoftDeleted%0A else:%0A
@@ -1... |
954c06d2715090e15dbe9a76dffb0eeabda06a48 | make flake8 happy | bids/grabbids/__init__.py | bids/grabbids/__init__.py | __all__ = ["bids_layout"]
| Python | 0 | @@ -1,8 +1,44 @@
+from .bids_layout import BIDSLayout%0A
__all__
@@ -41,22 +41,21 @@
l__ = %5B%22
-bids_l
+BIDSL
ayout%22%5D%0A
|
31c5071203fa234521cb8d3270f0c0f75488934d | Add test for IX prefixes. | peeringdb/tests.py | peeringdb/tests.py | from __future__ import unicode_literals
from django.test import TestCase
from django.utils import timezone
from .api import PeeringDB
from .models import Network, NetworkIXLAN
class PeeringDBTestCase(TestCase):
def test_time_last_sync(self):
api = PeeringDB()
# Test when no sync has been done
... | Python | 0 | @@ -2779,8 +2779,443 @@
works))%0A
+%0A def test_get_prefixes_for_ix_network(self):%0A api = PeeringDB()%0A ix_network_id = 29146%0A%0A known_prefixes = %5B'2001:7f8:1::/64', '80.249.208.0/21'%5D%0A found_prefixes = %5B%5D%0A%0A ix_prefixes = api.get_prefixes_for_ix_network(ix_net... |
93eb1fb058629f25f919a9c5f3647702c2767b22 | test parsing nested rules and toplevel imports | peru/test/test_parser.py | peru/test/test_parser.py | from textwrap import dedent
import unittest
from peru.parser import parse_string
from peru.remote_module import RemoteModule
from peru.rule import Rule
class ParserTest(unittest.TestCase):
def test_parse_empty_file(self):
scope, local_module = parse_string("")
self.assertDictEqual(scope, {})
... | Python | 0 | @@ -1614,12 +1614,726 @@
%22abcdefg%22%7D)%0A
+%0A def test_parse_nested_rule(self):%0A input = dedent(%22%22%22%5C%0A git module bar:%0A rule baz:%0A %22%22%22)%0A scope, local_module = parse_string(input)%0A self.assertIn(%22bar%22, scope)%0A module... |
dd91c9ee1964899b50801b0ca0fd5dd721d20620 | Convert default URL to HTTPS | abusehelper/bots/phishtank/phishtankbot.py | abusehelper/bots/phishtank/phishtankbot.py | """
PhishTank feed handler. Requires a PhishTank application key.
Maintainer: Codenomicon <clarified@codenomicon.com>
"""
import re
import bz2
import socket
import urllib2
import urlparse
import collections
from datetime import datetime
import xml.etree.cElementTree as etree
import idiokit
from abusehelper.core impo... | Python | 0.999998 | @@ -3296,16 +3296,17 @@
lt=%22http
+s
://data.
|
8bb77e1cf4c5ec284641a178a106300db2f5575d | Use UTC | petitions/views.py | petitions/views.py | from django.shortcuts import render, get_object_or_404, render, redirect
from django.views.decorators.http import require_POST
from django.contrib.auth.decorators import login_required
from django.db.models import F
from datetime import datetime
from petitions.models import Petition
from profile.models import Profile
... | Python | 0 | @@ -849,17 +849,43 @@
quest, '
-'
+petition/'+str(petition_id)
, data_o
@@ -1204,24 +1204,27 @@
ed=datetime.
+utc
now())%0A p
@@ -1273,16 +1273,21 @@
etition/
+sign/
' + str(
@@ -1414,32 +1414,35 @@
es__gt=datetime.
+utc
now()) %5C%0A .ex
@@ -1612,32 +1612,35 @@
es__gt=datetime.
+utc
now()) %5C%0A .e... |
03b17837ed2c88692f1b99ec5b9b477f86fdddb6 | Update version to 2.2b4-dev | openslides/__init__.py | openslides/__init__.py | __author__ = 'OpenSlides Team <support@openslides.org>'
__description__ = 'Presentation and assembly system'
__version__ = '2.2b3'
__license__ = 'MIT'
__url__ = 'https://openslides.org'
args = None
| Python | 0 | @@ -125,9 +125,13 @@
2.2b
-3
+4-dev
'%0A__
|
356fdc5d69dadbddeb7cd064593ab31b7993a0bc | Use shared helper code for palevoccbot. | abusehelper/contrib/abusech/palevoccbot.py | abusehelper/contrib/abusech/palevoccbot.py | """
abuse.ch Palevo C&C feed RSS bot.
Maintainer: Lari Huttunen <mit-code@huttu.net>
"""
from abusehelper.core import bot, events
from abusehelper.contrib.rssbot.rssbot import RSSBot
from . import is_ip
class PalevoCcBot(RSSBot):
feeds = bot.ListParam(default=["https://palevotracker.abuse.ch/?rssfeed"])
# ... | Python | 0 | @@ -120,90 +120,64 @@
bot
-, events%0Afrom abusehelper.contrib.rssbot.rssbot import RSSBot%0A%0Afrom . import is_ip
+%0A%0Afrom . import is_ip, split_description, AbuseCHFeedBot
%0A%0A%0Ac
@@ -193,19 +193,27 @@
voCcBot(
-RSS
+AbuseCHFeed
Bot):%0A
@@ -405,293 +405,81 @@
def
-create_event(self, **keys):%0A ... |
fbf8b0aa6284339cadbf51b681d6174484add625 | Fix the start command not to reload if debug is False | openslides/__main__.py | openslides/__main__.py | #!/usr/bin/env python
import os
import sys
from django.core.management import execute_from_command_line
from openslides import __version__ as openslides_version
from openslides.utils.main import (
ExceptionArgumentParser,
UnknownCommand,
get_default_settings_path,
get_development_settings_path,
i... | Python | 0.999998 | @@ -4525,16 +4525,96 @@
bserver%0A
+ # Tell django not to reload. OpenSlides uses the reload method from tornado%0A
exec
@@ -4676,16 +4676,30 @@
.0:8000'
+, '--noreload'
%5D)%0A%0A%0Adef
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.