commit stringlengths 40 40 | old_file stringlengths 4 118 | new_file stringlengths 4 118 | old_contents stringlengths 0 2.94k | new_contents stringlengths 1 4.43k | subject stringlengths 15 444 | message stringlengths 16 3.45k | lang stringclasses 1
value | license stringclasses 13
values | repos stringlengths 5 43.2k | prompt stringlengths 17 4.58k | response stringlengths 1 4.43k | prompt_tagged stringlengths 58 4.62k | response_tagged stringlengths 1 4.43k | text stringlengths 132 7.29k | text_tagged stringlengths 173 7.33k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17627ac4677f49e805f14acb4ba768b74d43298a | py3-test/tests.py | py3-test/tests.py | # -*- coding: utf-8 -*-
import nose.tools as nt
from asyncio import Future, gather, get_event_loop, sleep
from pyee import EventEmitter
def test_async_emit():
"""Test that event_emitters can handle wrapping coroutines
"""
loop = get_event_loop()
ee = EventEmitter(loop=loop)
should_call = Future(... | # -*- coding: utf-8 -*-
import nose.tools as nt
from asyncio import Future, gather, new_event_loop, sleep
from pyee import EventEmitter
def test_async_emit():
"""Test that event_emitters can handle wrapping coroutines
"""
loop = new_event_loop()
ee = EventEmitter(loop=loop)
should_call = Future(... | Use fresh event loop for asyncio test | Use fresh event loop for asyncio test
| Python | mit | jfhbrook/pyee | # -*- coding: utf-8 -*-
import nose.tools as nt
from asyncio import Future, gather, get_event_loop, sleep
from pyee import EventEmitter
def test_async_emit():
"""Test that event_emitters can handle wrapping coroutines
"""
loop = get_event_loop()
ee = EventEmitter(loop=loop)
should_call = Future(... | # -*- coding: utf-8 -*-
import nose.tools as nt
from asyncio import Future, gather, new_event_loop, sleep
from pyee import EventEmitter
def test_async_emit():
"""Test that event_emitters can handle wrapping coroutines
"""
loop = new_event_loop()
ee = EventEmitter(loop=loop)
should_call = Future(... | <commit_before># -*- coding: utf-8 -*-
import nose.tools as nt
from asyncio import Future, gather, get_event_loop, sleep
from pyee import EventEmitter
def test_async_emit():
"""Test that event_emitters can handle wrapping coroutines
"""
loop = get_event_loop()
ee = EventEmitter(loop=loop)
should... | # -*- coding: utf-8 -*-
import nose.tools as nt
from asyncio import Future, gather, new_event_loop, sleep
from pyee import EventEmitter
def test_async_emit():
"""Test that event_emitters can handle wrapping coroutines
"""
loop = new_event_loop()
ee = EventEmitter(loop=loop)
should_call = Future(... | # -*- coding: utf-8 -*-
import nose.tools as nt
from asyncio import Future, gather, get_event_loop, sleep
from pyee import EventEmitter
def test_async_emit():
"""Test that event_emitters can handle wrapping coroutines
"""
loop = get_event_loop()
ee = EventEmitter(loop=loop)
should_call = Future(... | <commit_before># -*- coding: utf-8 -*-
import nose.tools as nt
from asyncio import Future, gather, get_event_loop, sleep
from pyee import EventEmitter
def test_async_emit():
"""Test that event_emitters can handle wrapping coroutines
"""
loop = get_event_loop()
ee = EventEmitter(loop=loop)
should... |
9e8e09e0f6514ae0ded77c84e5865a220c9bb0dd | engines/empy_engine.py | engines/empy_engine.py | #!/usr/bin/env python
"""Provide the empy templating engine."""
from __future__ import print_function
import os.path
import em
from . import Engine
class SubsystemWrapper(em.Subsystem):
"""Wrap EmPy's Subsystem class.
Allows to open files relative to a base directory.
"""
def __init__(self, bas... | #!/usr/bin/env python
"""Provide the empy templating engine."""
from __future__ import print_function
import os.path
import em
from . import Engine
class SubsystemWrapper(em.Subsystem):
"""Wrap EmPy's Subsystem class.
Allows to open files relative to a base directory.
"""
def __init__(self, bas... | Change empy Subsystem wrapper to old style class. | Change empy Subsystem wrapper to old style class.
| Python | mit | blubberdiblub/eztemplate | #!/usr/bin/env python
"""Provide the empy templating engine."""
from __future__ import print_function
import os.path
import em
from . import Engine
class SubsystemWrapper(em.Subsystem):
"""Wrap EmPy's Subsystem class.
Allows to open files relative to a base directory.
"""
def __init__(self, bas... | #!/usr/bin/env python
"""Provide the empy templating engine."""
from __future__ import print_function
import os.path
import em
from . import Engine
class SubsystemWrapper(em.Subsystem):
"""Wrap EmPy's Subsystem class.
Allows to open files relative to a base directory.
"""
def __init__(self, bas... | <commit_before>#!/usr/bin/env python
"""Provide the empy templating engine."""
from __future__ import print_function
import os.path
import em
from . import Engine
class SubsystemWrapper(em.Subsystem):
"""Wrap EmPy's Subsystem class.
Allows to open files relative to a base directory.
"""
def __i... | #!/usr/bin/env python
"""Provide the empy templating engine."""
from __future__ import print_function
import os.path
import em
from . import Engine
class SubsystemWrapper(em.Subsystem):
"""Wrap EmPy's Subsystem class.
Allows to open files relative to a base directory.
"""
def __init__(self, bas... | #!/usr/bin/env python
"""Provide the empy templating engine."""
from __future__ import print_function
import os.path
import em
from . import Engine
class SubsystemWrapper(em.Subsystem):
"""Wrap EmPy's Subsystem class.
Allows to open files relative to a base directory.
"""
def __init__(self, bas... | <commit_before>#!/usr/bin/env python
"""Provide the empy templating engine."""
from __future__ import print_function
import os.path
import em
from . import Engine
class SubsystemWrapper(em.Subsystem):
"""Wrap EmPy's Subsystem class.
Allows to open files relative to a base directory.
"""
def __i... |
9ae919b1d81ca6e640dd96e6ef7aeaeba2fc2679 | schedule/migrations/0011_event_calendar_not_null.py | schedule/migrations/0011_event_calendar_not_null.py | from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('schedule', '0010_events_set_missing_calendar'),
]
operations = [
migrations.AlterField(
model_name='event',
name='calendar',
... | import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedule', '0010_events_set_missing_calendar'),
]
operations = [
migrations.AlterField(
model_name='event',
name='calendar',
... | Sort imports per isort; fixes failure | Sort imports per isort; fixes failure
| Python | bsd-3-clause | llazzaro/django-scheduler,llazzaro/django-scheduler,llazzaro/django-scheduler | from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('schedule', '0010_events_set_missing_calendar'),
]
operations = [
migrations.AlterField(
model_name='event',
name='calendar',
... | import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedule', '0010_events_set_missing_calendar'),
]
operations = [
migrations.AlterField(
model_name='event',
name='calendar',
... | <commit_before>from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('schedule', '0010_events_set_missing_calendar'),
]
operations = [
migrations.AlterField(
model_name='event',
name='cal... | import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedule', '0010_events_set_missing_calendar'),
]
operations = [
migrations.AlterField(
model_name='event',
name='calendar',
... | from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('schedule', '0010_events_set_missing_calendar'),
]
operations = [
migrations.AlterField(
model_name='event',
name='calendar',
... | <commit_before>from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('schedule', '0010_events_set_missing_calendar'),
]
operations = [
migrations.AlterField(
model_name='event',
name='cal... |
5a5ba8bbd484f427260f699101e5e754e4a6c5d1 | phy/utils/tests/test_color.py | phy/utils/tests/test_color.py | # -*- coding: utf-8 -*-
"""Test colors."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from pytest import mark
from .._color import _random_color, _is_bright, _random_bright_color
from ..tes... | # -*- coding: utf-8 -*-
"""Test colors."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from pytest import mark
from .._color import (_random_color, _is_bright, _random_bright_color,
... | Increase coverage in color module | Increase coverage in color module
| Python | bsd-3-clause | rossant/phy,rossant/phy,rossant/phy,kwikteam/phy,kwikteam/phy,kwikteam/phy | # -*- coding: utf-8 -*-
"""Test colors."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from pytest import mark
from .._color import _random_color, _is_bright, _random_bright_color
from ..tes... | # -*- coding: utf-8 -*-
"""Test colors."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from pytest import mark
from .._color import (_random_color, _is_bright, _random_bright_color,
... | <commit_before># -*- coding: utf-8 -*-
"""Test colors."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from pytest import mark
from .._color import _random_color, _is_bright, _random_bright_c... | # -*- coding: utf-8 -*-
"""Test colors."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from pytest import mark
from .._color import (_random_color, _is_bright, _random_bright_color,
... | # -*- coding: utf-8 -*-
"""Test colors."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from pytest import mark
from .._color import _random_color, _is_bright, _random_bright_color
from ..tes... | <commit_before># -*- coding: utf-8 -*-
"""Test colors."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from pytest import mark
from .._color import _random_color, _is_bright, _random_bright_c... |
90cea726d5105844961ea100679ace0f621fd1a7 | grid/scoreboard_parser.py | grid/scoreboard_parser.py | from HTMLParser import HTMLParser
class ScoreboardParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.scores = []
self.cur_game = None
self.get_data = False
self.get_name = False
def handle_starttag(self, tag, attrs):
if tag == 'table'... | from HTMLParser import HTMLParser
class ScoreboardParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.scores = []
self.cur_game = None
self.get_data = False
self.get_name = False
def handle_starttag(self, tag, attrs):
if tag == 'table'... | Fix classname in scoreboard parser | Fix classname in scoreboard parser
| Python | mit | bschmeck/gnarl,bschmeck/gnarl,bschmeck/gnarl | from HTMLParser import HTMLParser
class ScoreboardParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.scores = []
self.cur_game = None
self.get_data = False
self.get_name = False
def handle_starttag(self, tag, attrs):
if tag == 'table'... | from HTMLParser import HTMLParser
class ScoreboardParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.scores = []
self.cur_game = None
self.get_data = False
self.get_name = False
def handle_starttag(self, tag, attrs):
if tag == 'table'... | <commit_before>from HTMLParser import HTMLParser
class ScoreboardParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.scores = []
self.cur_game = None
self.get_data = False
self.get_name = False
def handle_starttag(self, tag, attrs):
if... | from HTMLParser import HTMLParser
class ScoreboardParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.scores = []
self.cur_game = None
self.get_data = False
self.get_name = False
def handle_starttag(self, tag, attrs):
if tag == 'table'... | from HTMLParser import HTMLParser
class ScoreboardParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.scores = []
self.cur_game = None
self.get_data = False
self.get_name = False
def handle_starttag(self, tag, attrs):
if tag == 'table'... | <commit_before>from HTMLParser import HTMLParser
class ScoreboardParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)
self.scores = []
self.cur_game = None
self.get_data = False
self.get_name = False
def handle_starttag(self, tag, attrs):
if... |
afefe298f5e7bd628a577add02a1f49b42deffcc | kurt.py | kurt.py | #!/usr/bin/env python
import sys, os
MAX_PACKSIZE = 1024*1024*1024
def usage():
sys.stderr.write("usage: kurt.py <path>\n")
def get_files(path):
files = os.listdir(path)
for file in sorted(files):
file_path = os.path.join(path, file)
file_stats = os.stat(file_path)
yield (file_p... | #!/usr/bin/env python
import sys, os
MAX_PACKSIZE = 1024*1024*1024
def usage():
sys.stderr.write("usage: kurt.py <path>\n")
def get_files(path):
files = os.listdir(path)
for file in sorted(files):
file_path = os.path.join(path, file)
file_stats = os.stat(file_path)
yield (file_p... | Move execution code to main() | Move execution code to main()
Signed-off-by: Zoran Zaric <d7dacae2c968388960bf8970080a980ed5c5dcb7@zoranzaric.de>
| Python | lgpl-2.1 | zoranzaric/kurt | #!/usr/bin/env python
import sys, os
MAX_PACKSIZE = 1024*1024*1024
def usage():
sys.stderr.write("usage: kurt.py <path>\n")
def get_files(path):
files = os.listdir(path)
for file in sorted(files):
file_path = os.path.join(path, file)
file_stats = os.stat(file_path)
yield (file_p... | #!/usr/bin/env python
import sys, os
MAX_PACKSIZE = 1024*1024*1024
def usage():
sys.stderr.write("usage: kurt.py <path>\n")
def get_files(path):
files = os.listdir(path)
for file in sorted(files):
file_path = os.path.join(path, file)
file_stats = os.stat(file_path)
yield (file_p... | <commit_before>#!/usr/bin/env python
import sys, os
MAX_PACKSIZE = 1024*1024*1024
def usage():
sys.stderr.write("usage: kurt.py <path>\n")
def get_files(path):
files = os.listdir(path)
for file in sorted(files):
file_path = os.path.join(path, file)
file_stats = os.stat(file_path)
... | #!/usr/bin/env python
import sys, os
MAX_PACKSIZE = 1024*1024*1024
def usage():
sys.stderr.write("usage: kurt.py <path>\n")
def get_files(path):
files = os.listdir(path)
for file in sorted(files):
file_path = os.path.join(path, file)
file_stats = os.stat(file_path)
yield (file_p... | #!/usr/bin/env python
import sys, os
MAX_PACKSIZE = 1024*1024*1024
def usage():
sys.stderr.write("usage: kurt.py <path>\n")
def get_files(path):
files = os.listdir(path)
for file in sorted(files):
file_path = os.path.join(path, file)
file_stats = os.stat(file_path)
yield (file_p... | <commit_before>#!/usr/bin/env python
import sys, os
MAX_PACKSIZE = 1024*1024*1024
def usage():
sys.stderr.write("usage: kurt.py <path>\n")
def get_files(path):
files = os.listdir(path)
for file in sorted(files):
file_path = os.path.join(path, file)
file_stats = os.stat(file_path)
... |
cbaa1c3a74c9046b1571ba67ef85ee70d51812f5 | chef/tests/__init__.py | chef/tests/__init__.py | import os
import random
from unittest2 import TestCase, skipUnless
from chef.api import ChefAPI
from chef.exceptions import ChefError
TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
def skipSlowTest():
return skipUnless(os.environ.get('PYCHEF_SLOW_TESTS'), 'slow tests skipped, set $PYCHEF_SLOW_TESTS=1 to... | import os
import random
from unittest2 import TestCase, skipUnless
from chef.api import ChefAPI
from chef.exceptions import ChefError
TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
def skipSlowTest():
return skipUnless(os.environ.get('PYCHEF_SLOW_TESTS'), 'slow tests skipped, set $PYCHEF_SLOW_TESTS=1 to... | Allow passing extra options to the test API object. | Allow passing extra options to the test API object.
The only one of interest is version, but yay generic code. | Python | apache-2.0 | cread/pychef,coderanger/pychef,coderanger/pychef,Scalr/pychef,dipakvwarade/pychef,cread/pychef,jarosser06/pychef,Scalr/pychef,dipakvwarade/pychef,jarosser06/pychef | import os
import random
from unittest2 import TestCase, skipUnless
from chef.api import ChefAPI
from chef.exceptions import ChefError
TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
def skipSlowTest():
return skipUnless(os.environ.get('PYCHEF_SLOW_TESTS'), 'slow tests skipped, set $PYCHEF_SLOW_TESTS=1 to... | import os
import random
from unittest2 import TestCase, skipUnless
from chef.api import ChefAPI
from chef.exceptions import ChefError
TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
def skipSlowTest():
return skipUnless(os.environ.get('PYCHEF_SLOW_TESTS'), 'slow tests skipped, set $PYCHEF_SLOW_TESTS=1 to... | <commit_before>import os
import random
from unittest2 import TestCase, skipUnless
from chef.api import ChefAPI
from chef.exceptions import ChefError
TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
def skipSlowTest():
return skipUnless(os.environ.get('PYCHEF_SLOW_TESTS'), 'slow tests skipped, set $PYCHEF_... | import os
import random
from unittest2 import TestCase, skipUnless
from chef.api import ChefAPI
from chef.exceptions import ChefError
TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
def skipSlowTest():
return skipUnless(os.environ.get('PYCHEF_SLOW_TESTS'), 'slow tests skipped, set $PYCHEF_SLOW_TESTS=1 to... | import os
import random
from unittest2 import TestCase, skipUnless
from chef.api import ChefAPI
from chef.exceptions import ChefError
TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
def skipSlowTest():
return skipUnless(os.environ.get('PYCHEF_SLOW_TESTS'), 'slow tests skipped, set $PYCHEF_SLOW_TESTS=1 to... | <commit_before>import os
import random
from unittest2 import TestCase, skipUnless
from chef.api import ChefAPI
from chef.exceptions import ChefError
TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
def skipSlowTest():
return skipUnless(os.environ.get('PYCHEF_SLOW_TESTS'), 'slow tests skipped, set $PYCHEF_... |
9de1ce1def7915bf4587dbb0a4d9f396c77bc3b7 | django_lightweight_queue/backends/synchronous.py | django_lightweight_queue/backends/synchronous.py | import time
class SynchronousBackend(object):
def enqueue(self, job, queue):
job.run()
def dequeue(self, queue, timeout):
# Cannot dequeue from the synchronous backend but we can emulate by
# never returning anything
time.sleep(timeout)
| import time
class SynchronousBackend(object):
def enqueue(self, job, queue):
job.run()
def dequeue(self, queue, timeout):
# Cannot dequeue from the synchronous backend but we can emulate by
# never returning anything
time.sleep(timeout)
def length(self, queue):
# T... | Add length for the SynchronousBackend | Add length for the SynchronousBackend
| Python | bsd-3-clause | thread/django-lightweight-queue,thread/django-lightweight-queue | import time
class SynchronousBackend(object):
def enqueue(self, job, queue):
job.run()
def dequeue(self, queue, timeout):
# Cannot dequeue from the synchronous backend but we can emulate by
# never returning anything
time.sleep(timeout)
Add length for the SynchronousBackend | import time
class SynchronousBackend(object):
def enqueue(self, job, queue):
job.run()
def dequeue(self, queue, timeout):
# Cannot dequeue from the synchronous backend but we can emulate by
# never returning anything
time.sleep(timeout)
def length(self, queue):
# T... | <commit_before>import time
class SynchronousBackend(object):
def enqueue(self, job, queue):
job.run()
def dequeue(self, queue, timeout):
# Cannot dequeue from the synchronous backend but we can emulate by
# never returning anything
time.sleep(timeout)
<commit_msg>Add length for... | import time
class SynchronousBackend(object):
def enqueue(self, job, queue):
job.run()
def dequeue(self, queue, timeout):
# Cannot dequeue from the synchronous backend but we can emulate by
# never returning anything
time.sleep(timeout)
def length(self, queue):
# T... | import time
class SynchronousBackend(object):
def enqueue(self, job, queue):
job.run()
def dequeue(self, queue, timeout):
# Cannot dequeue from the synchronous backend but we can emulate by
# never returning anything
time.sleep(timeout)
Add length for the SynchronousBackendimpo... | <commit_before>import time
class SynchronousBackend(object):
def enqueue(self, job, queue):
job.run()
def dequeue(self, queue, timeout):
# Cannot dequeue from the synchronous backend but we can emulate by
# never returning anything
time.sleep(timeout)
<commit_msg>Add length for... |
e0542c6d292bb677a1147751bc59475a81a72a75 | flask_elasticsearch.py | flask_elasticsearch.py | from elasticsearch import Elasticsearch
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack
except ImportError:
from flask impor... | from elasticsearch import Elasticsearch
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack
except ImportError:
from flask impor... | Rename Elasticsearch to match the actual name | Rename Elasticsearch to match the actual name
| Python | mit | chiangf/Flask-Elasticsearch | from elasticsearch import Elasticsearch
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack
except ImportError:
from flask impor... | from elasticsearch import Elasticsearch
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack
except ImportError:
from flask impor... | <commit_before>from elasticsearch import Elasticsearch
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack
except ImportError:
f... | from elasticsearch import Elasticsearch
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack
except ImportError:
from flask impor... | from elasticsearch import Elasticsearch
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack
except ImportError:
from flask impor... | <commit_before>from elasticsearch import Elasticsearch
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack
except ImportError:
f... |
7ed960ca90b76e8d256a6b94beb0e027ddaad809 | users/views.py | users/views.py | from django.shortcuts import redirect
from rest_framework import viewsets
from .models import User
from .permissions import IsUserOrReadOnly
from .serializers import AuthenticatedUserSerializer, UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""API endpoint for viewing and editing users."""
query... | from rest_framework import viewsets
from .models import User
from .permissions import IsUserOrReadOnly
from .serializers import AuthenticatedUserSerializer, UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""API endpoint for viewing and editing users."""
queryset = User.objects.all()
permissio... | Fix /users/me for anonymous users | Fix /users/me for anonymous users
| Python | bsd-3-clause | FreeMusicNinja/api.freemusic.ninja | from django.shortcuts import redirect
from rest_framework import viewsets
from .models import User
from .permissions import IsUserOrReadOnly
from .serializers import AuthenticatedUserSerializer, UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""API endpoint for viewing and editing users."""
query... | from rest_framework import viewsets
from .models import User
from .permissions import IsUserOrReadOnly
from .serializers import AuthenticatedUserSerializer, UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""API endpoint for viewing and editing users."""
queryset = User.objects.all()
permissio... | <commit_before>from django.shortcuts import redirect
from rest_framework import viewsets
from .models import User
from .permissions import IsUserOrReadOnly
from .serializers import AuthenticatedUserSerializer, UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""API endpoint for viewing and editing users... | from rest_framework import viewsets
from .models import User
from .permissions import IsUserOrReadOnly
from .serializers import AuthenticatedUserSerializer, UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""API endpoint for viewing and editing users."""
queryset = User.objects.all()
permissio... | from django.shortcuts import redirect
from rest_framework import viewsets
from .models import User
from .permissions import IsUserOrReadOnly
from .serializers import AuthenticatedUserSerializer, UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""API endpoint for viewing and editing users."""
query... | <commit_before>from django.shortcuts import redirect
from rest_framework import viewsets
from .models import User
from .permissions import IsUserOrReadOnly
from .serializers import AuthenticatedUserSerializer, UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""API endpoint for viewing and editing users... |
923f86b3cbf21d4c442c61a00ccc801446a542cf | setup.py | setup.py | from setuptools import setup, find_packages
import os
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'P... | from setuptools import setup, find_packages
import os
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'P... | Update Setup.py with my info | Update Setup.py with my info
| Python | apache-2.0 | avara1986/django-admin-bootstrapped,avara1986/django-admin-bootstrapped,avara1986/django-admin-bootstrapped | from setuptools import setup, find_packages
import os
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'P... | from setuptools import setup, find_packages
import os
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'P... | <commit_before>from setuptools import setup, find_packages
import os
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Indep... | from setuptools import setup, find_packages
import os
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'P... | from setuptools import setup, find_packages
import os
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'P... | <commit_before>from setuptools import setup, find_packages
import os
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Indep... |
270d66fde22e45371491c895fcf2b75dc36adc48 | setup.py | setup.py | from setuptools import setup, find_packages
__author__ = 'shafferm'
setup(
name="SCNIC",
version="0.2.1",
setup_requires=['pytest-runner'],
test_require=['pytest'],
install_requires=["numpy", "scipy", "networkx", "biom-format", "pandas", "fast_sparCC", "scikit-bio"],
scripts=["scripts/SCNIC_an... | from setuptools import setup, find_packages
__author__ = 'shafferm'
setup(
name="SCNIC",
version="0.2.1",
setup_requires=['pytest-runner'],
test_require=['pytest'],
install_requires=["numpy", "scipy", "networkx", "biom-format", "pandas", "fast_sparCC <= 0.1.6",
"scikit-bio ==... | Add version requirements for fast_sparCC and scikit-bio | Add version requirements for fast_sparCC and scikit-bio
| Python | bsd-3-clause | shafferm/SCNIC | from setuptools import setup, find_packages
__author__ = 'shafferm'
setup(
name="SCNIC",
version="0.2.1",
setup_requires=['pytest-runner'],
test_require=['pytest'],
install_requires=["numpy", "scipy", "networkx", "biom-format", "pandas", "fast_sparCC", "scikit-bio"],
scripts=["scripts/SCNIC_an... | from setuptools import setup, find_packages
__author__ = 'shafferm'
setup(
name="SCNIC",
version="0.2.1",
setup_requires=['pytest-runner'],
test_require=['pytest'],
install_requires=["numpy", "scipy", "networkx", "biom-format", "pandas", "fast_sparCC <= 0.1.6",
"scikit-bio ==... | <commit_before>from setuptools import setup, find_packages
__author__ = 'shafferm'
setup(
name="SCNIC",
version="0.2.1",
setup_requires=['pytest-runner'],
test_require=['pytest'],
install_requires=["numpy", "scipy", "networkx", "biom-format", "pandas", "fast_sparCC", "scikit-bio"],
scripts=["s... | from setuptools import setup, find_packages
__author__ = 'shafferm'
setup(
name="SCNIC",
version="0.2.1",
setup_requires=['pytest-runner'],
test_require=['pytest'],
install_requires=["numpy", "scipy", "networkx", "biom-format", "pandas", "fast_sparCC <= 0.1.6",
"scikit-bio ==... | from setuptools import setup, find_packages
__author__ = 'shafferm'
setup(
name="SCNIC",
version="0.2.1",
setup_requires=['pytest-runner'],
test_require=['pytest'],
install_requires=["numpy", "scipy", "networkx", "biom-format", "pandas", "fast_sparCC", "scikit-bio"],
scripts=["scripts/SCNIC_an... | <commit_before>from setuptools import setup, find_packages
__author__ = 'shafferm'
setup(
name="SCNIC",
version="0.2.1",
setup_requires=['pytest-runner'],
test_require=['pytest'],
install_requires=["numpy", "scipy", "networkx", "biom-format", "pandas", "fast_sparCC", "scikit-bio"],
scripts=["s... |
1655edcd359e810b10f7836dc2cbb3f99014d8f6 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup, Extension
packages=['qutepart', 'qutepart/syntax']
package_data={'qutepart/syntax' : ['data/*.xml',
'data/syntax_db.json']
}
extension = Extension('qutepart.syntax.cParser',
sources = ['qute... | #!/usr/bin/env python
import sys
from distutils.core import setup, Extension
import distutils.ccompiler
packages=['qutepart', 'qutepart/syntax']
package_data={'qutepart/syntax' : ['data/*.xml',
'data/syntax_db.json']
}
extension = Extension('qutepart.syntax.cParser',... | Check for pcre when building | Check for pcre when building
| Python | lgpl-2.1 | Aldenis2112/qutepart,Aldenis2112/qutepart,andreikop/qutepart,hlamer/qutepart,hlamer/qutepart,andreikop/qutepart,andreikop/qutepart,Aldenis2112/qutepart,hlamer/qutepart,hlamer/qutepart,Aldenis2112/qutepart,Aldenis2112/qutepart,hlamer/qutepart,andreikop/qutepart,hlamer/qutepart,andreikop/qutepart,Aldenis2112/qutepart,and... | #!/usr/bin/env python
from distutils.core import setup, Extension
packages=['qutepart', 'qutepart/syntax']
package_data={'qutepart/syntax' : ['data/*.xml',
'data/syntax_db.json']
}
extension = Extension('qutepart.syntax.cParser',
sources = ['qute... | #!/usr/bin/env python
import sys
from distutils.core import setup, Extension
import distutils.ccompiler
packages=['qutepart', 'qutepart/syntax']
package_data={'qutepart/syntax' : ['data/*.xml',
'data/syntax_db.json']
}
extension = Extension('qutepart.syntax.cParser',... | <commit_before>#!/usr/bin/env python
from distutils.core import setup, Extension
packages=['qutepart', 'qutepart/syntax']
package_data={'qutepart/syntax' : ['data/*.xml',
'data/syntax_db.json']
}
extension = Extension('qutepart.syntax.cParser',
s... | #!/usr/bin/env python
import sys
from distutils.core import setup, Extension
import distutils.ccompiler
packages=['qutepart', 'qutepart/syntax']
package_data={'qutepart/syntax' : ['data/*.xml',
'data/syntax_db.json']
}
extension = Extension('qutepart.syntax.cParser',... | #!/usr/bin/env python
from distutils.core import setup, Extension
packages=['qutepart', 'qutepart/syntax']
package_data={'qutepart/syntax' : ['data/*.xml',
'data/syntax_db.json']
}
extension = Extension('qutepart.syntax.cParser',
sources = ['qute... | <commit_before>#!/usr/bin/env python
from distutils.core import setup, Extension
packages=['qutepart', 'qutepart/syntax']
package_data={'qutepart/syntax' : ['data/*.xml',
'data/syntax_db.json']
}
extension = Extension('qutepart.syntax.cParser',
s... |
c9100d10b327e98a2fc70e2279198c5f830b7704 | setup.py | setup.py | """
The setup package to install MasterQA requirements
"""
from setuptools import setup, find_packages # noqa
setup(
name='masterqa',
version='1.0.19',
url='http://masterqa.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='Automation-Assist... | """
The setup package to install MasterQA requirements
"""
from setuptools import setup, find_packages # noqa
setup(
name='masterqa',
version='1.0.19',
url='http://masterqa.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='Automation-Assist... | Use SeleniumBase 1.2.0 (from 1.1.63) | Use SeleniumBase 1.2.0 (from 1.1.63)
| Python | mit | masterqa/MasterQA,mdmintz/MasterQA | """
The setup package to install MasterQA requirements
"""
from setuptools import setup, find_packages # noqa
setup(
name='masterqa',
version='1.0.19',
url='http://masterqa.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='Automation-Assist... | """
The setup package to install MasterQA requirements
"""
from setuptools import setup, find_packages # noqa
setup(
name='masterqa',
version='1.0.19',
url='http://masterqa.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='Automation-Assist... | <commit_before>"""
The setup package to install MasterQA requirements
"""
from setuptools import setup, find_packages # noqa
setup(
name='masterqa',
version='1.0.19',
url='http://masterqa.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='Au... | """
The setup package to install MasterQA requirements
"""
from setuptools import setup, find_packages # noqa
setup(
name='masterqa',
version='1.0.19',
url='http://masterqa.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='Automation-Assist... | """
The setup package to install MasterQA requirements
"""
from setuptools import setup, find_packages # noqa
setup(
name='masterqa',
version='1.0.19',
url='http://masterqa.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='Automation-Assist... | <commit_before>"""
The setup package to install MasterQA requirements
"""
from setuptools import setup, find_packages # noqa
setup(
name='masterqa',
version='1.0.19',
url='http://masterqa.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='Au... |
920be9e335c5679461208da88d85b38a695b919b | setup.py | setup.py | """
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
ve... | """
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
ve... | Change version of the package for a trial upload to PyPI | ci: Change version of the package for a trial upload to PyPI
| Python | mit | Nikolay-Lysenko/dsawl | """
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
ve... | """
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
ve... | <commit_before>"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=... | """
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
ve... | """
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
ve... | <commit_before>"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=... |
eb76ad5309bf5c150820f159a803f26d7790ef9c | setup.py | setup.py | import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
VERSION = (0, 4, 0)
setup(
name='django-generic-aggregation',
version=".".join(map(str, VERSION)),
description='annotate() and aggregate() for generically rela... | import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
VERSION = (0, 4, 0)
setup(
name='django-generic-aggregation',
version=".".join(map(str, VERSION)),
description='annotate() and aggregate() for generically rela... | Update trove classifiers for python 3. | Update trove classifiers for python 3.
| Python | mit | coleifer/django-generic-aggregation | import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
VERSION = (0, 4, 0)
setup(
name='django-generic-aggregation',
version=".".join(map(str, VERSION)),
description='annotate() and aggregate() for generically rela... | import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
VERSION = (0, 4, 0)
setup(
name='django-generic-aggregation',
version=".".join(map(str, VERSION)),
description='annotate() and aggregate() for generically rela... | <commit_before>import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
VERSION = (0, 4, 0)
setup(
name='django-generic-aggregation',
version=".".join(map(str, VERSION)),
description='annotate() and aggregate() for g... | import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
VERSION = (0, 4, 0)
setup(
name='django-generic-aggregation',
version=".".join(map(str, VERSION)),
description='annotate() and aggregate() for generically rela... | import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
VERSION = (0, 4, 0)
setup(
name='django-generic-aggregation',
version=".".join(map(str, VERSION)),
description='annotate() and aggregate() for generically rela... | <commit_before>import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
VERSION = (0, 4, 0)
setup(
name='django-generic-aggregation',
version=".".join(map(str, VERSION)),
description='annotate() and aggregate() for g... |
2e08d602ca6ac1c4ae32d84d9013fa36f6f45f9f | setup.py | setup.py | #!/usr/bin/python
from datetime import date
from setuptools import setup
from pagekite.common import APPVER
import os
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
setup(
name="pagekite",
version=APPVER.replace('github',
'dev'+date.today().isoformat().replace('-', '... | #!/usr/bin/python
import time
from datetime import date
from setuptools import setup
from pagekite.common import APPVER
import os
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
setup(
name="pagekite",
version=APPVER.replace('github', 'dev%d' % time.time()),
license="AGPLv3+",
author="B... | Change dev package time stamp | Change dev package time stamp
| Python | agpl-3.0 | output/PyPagekite,lyoshenka/PyPagekite,pagekite/PyPagekite,lyoshenka/PyPagekite,pagekite/PyPagekite,output/PyPagekite,output/PyPagekite,lyoshenka/PyPagekite,pagekite/PyPagekite | #!/usr/bin/python
from datetime import date
from setuptools import setup
from pagekite.common import APPVER
import os
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
setup(
name="pagekite",
version=APPVER.replace('github',
'dev'+date.today().isoformat().replace('-', '... | #!/usr/bin/python
import time
from datetime import date
from setuptools import setup
from pagekite.common import APPVER
import os
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
setup(
name="pagekite",
version=APPVER.replace('github', 'dev%d' % time.time()),
license="AGPLv3+",
author="B... | <commit_before>#!/usr/bin/python
from datetime import date
from setuptools import setup
from pagekite.common import APPVER
import os
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
setup(
name="pagekite",
version=APPVER.replace('github',
'dev'+date.today().isoformat()... | #!/usr/bin/python
import time
from datetime import date
from setuptools import setup
from pagekite.common import APPVER
import os
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
setup(
name="pagekite",
version=APPVER.replace('github', 'dev%d' % time.time()),
license="AGPLv3+",
author="B... | #!/usr/bin/python
from datetime import date
from setuptools import setup
from pagekite.common import APPVER
import os
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
setup(
name="pagekite",
version=APPVER.replace('github',
'dev'+date.today().isoformat().replace('-', '... | <commit_before>#!/usr/bin/python
from datetime import date
from setuptools import setup
from pagekite.common import APPVER
import os
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
setup(
name="pagekite",
version=APPVER.replace('github',
'dev'+date.today().isoformat()... |
c78e7d4ca37936fd1e539bf83bb9bfdc24d2568f | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
version = '0.6'
REQUIREMENTS = ['requests']
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
version = '0.6.1'
REQUIREMENTS = ['requests']
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System... | Adjust Setup: using Python 3.4, not Python 2 supported (currently). | Adjust Setup: using Python 3.4, not Python 2 supported (currently).
| Python | unlicense | BigFlySports/python-amazon-mws | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
version = '0.6'
REQUIREMENTS = ['requests']
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
version = '0.6.1'
REQUIREMENTS = ['requests']
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
version = '0.6'
REQUIREMENTS = ['requests']
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Ope... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
version = '0.6.1'
REQUIREMENTS = ['requests']
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
version = '0.6'
REQUIREMENTS = ['requests']
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
version = '0.6'
REQUIREMENTS = ['requests']
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Ope... |
0b9c9f20b8ba0f4920dbbea860e69e7e09570b88 | setup.py | setup.py | import scraper
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = scraper.__version__
setup(
name='django-scraper',
version=version,
description='Django application which crawls and downloads online content'
' following instructions',... | import scraper
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = scraper.__version__
setup(
name='django-scraper',
version=version,
description='Django application which crawls and downloads online content'
' following instructions',... | Remove tests module from root of package | Remove tests module from root of package
| Python | mit | zniper/django-scraper,zniper/django-scraper | import scraper
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = scraper.__version__
setup(
name='django-scraper',
version=version,
description='Django application which crawls and downloads online content'
' following instructions',... | import scraper
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = scraper.__version__
setup(
name='django-scraper',
version=version,
description='Django application which crawls and downloads online content'
' following instructions',... | <commit_before>import scraper
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = scraper.__version__
setup(
name='django-scraper',
version=version,
description='Django application which crawls and downloads online content'
' following... | import scraper
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = scraper.__version__
setup(
name='django-scraper',
version=version,
description='Django application which crawls and downloads online content'
' following instructions',... | import scraper
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = scraper.__version__
setup(
name='django-scraper',
version=version,
description='Django application which crawls and downloads online content'
' following instructions',... | <commit_before>import scraper
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = scraper.__version__
setup(
name='django-scraper',
version=version,
description='Django application which crawls and downloads online content'
' following... |
1efeed053332d8f200093006fb50d2dc396e4c43 | setup.py | setup.py | """
Benchmarking for the ISCC library.
"""
from setuptools import find_packages, setup
dependencies = ['click', 'isbnlib', 'pymarc']
setup(
name='isccbench',
version='0.1.0',
license='BSD',
description='Benchmarking for the ISCC library.',
long_description=__doc__,
packages=find_packages(exclu... | """
Benchmarking for the ISCC library.
"""
from setuptools import find_packages, setup
dependencies = ['click', 'isbnlib', 'pymarc', 'sqlitedict', 'lxml']
setup(
name='isccbench',
version='0.1.0',
license='BSD',
description='Benchmarking for the ISCC library.',
long_description=__doc__,
packag... | Add lxml and sqlitedict to dependencies | Add lxml and sqlitedict to dependencies
| Python | bsd-2-clause | coblo/isccbench | """
Benchmarking for the ISCC library.
"""
from setuptools import find_packages, setup
dependencies = ['click', 'isbnlib', 'pymarc']
setup(
name='isccbench',
version='0.1.0',
license='BSD',
description='Benchmarking for the ISCC library.',
long_description=__doc__,
packages=find_packages(exclu... | """
Benchmarking for the ISCC library.
"""
from setuptools import find_packages, setup
dependencies = ['click', 'isbnlib', 'pymarc', 'sqlitedict', 'lxml']
setup(
name='isccbench',
version='0.1.0',
license='BSD',
description='Benchmarking for the ISCC library.',
long_description=__doc__,
packag... | <commit_before>"""
Benchmarking for the ISCC library.
"""
from setuptools import find_packages, setup
dependencies = ['click', 'isbnlib', 'pymarc']
setup(
name='isccbench',
version='0.1.0',
license='BSD',
description='Benchmarking for the ISCC library.',
long_description=__doc__,
packages=find... | """
Benchmarking for the ISCC library.
"""
from setuptools import find_packages, setup
dependencies = ['click', 'isbnlib', 'pymarc', 'sqlitedict', 'lxml']
setup(
name='isccbench',
version='0.1.0',
license='BSD',
description='Benchmarking for the ISCC library.',
long_description=__doc__,
packag... | """
Benchmarking for the ISCC library.
"""
from setuptools import find_packages, setup
dependencies = ['click', 'isbnlib', 'pymarc']
setup(
name='isccbench',
version='0.1.0',
license='BSD',
description='Benchmarking for the ISCC library.',
long_description=__doc__,
packages=find_packages(exclu... | <commit_before>"""
Benchmarking for the ISCC library.
"""
from setuptools import find_packages, setup
dependencies = ['click', 'isbnlib', 'pymarc']
setup(
name='isccbench',
version='0.1.0',
license='BSD',
description='Benchmarking for the ISCC library.',
long_description=__doc__,
packages=find... |
cd20dabe9809d4448ea679506bce63786ec3e579 | setup.py | setup.py | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.6",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
maintainer_e... | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
maintainer_e... | Bump the package version - 0.1.7 | Bump the package version - 0.1.7
Change log:
- Updated documentation for better PyPI support
- Includes all the latest fixes until now | Python | apache-2.0 | madmaze/pytesseract | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.6",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
maintainer_e... | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
maintainer_e... | <commit_before>import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.6",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
... | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.7",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
maintainer_e... | import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.6",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
maintainer_e... | <commit_before>import os
from setuptools import setup
longDesc = ""
if os.path.exists("README.rst"):
longDesc = open("README.rst").read().strip()
setup(
name = "pytesseract",
version = "0.1.6",
author = "Samuel Hoffstaetter",
author_email="pytesseract@madmaze.net",
maintainer = "Matthias Lee",
... |
bdf32d6bd87a1bc60cea3b5a5bfd0a665c4e3e82 | setup.py | setup.py | """
setup.py file for building armstrong components.
Nothing in this file should need to be edited, please see accompanying
package.json file if you need to adjust metadata about this package.
"""
import os
import json
from setuptools import setup, find_packages
info = json.load(open("./package.json"))
def genera... | # Nothing in this file should need to be edited.
# Use package.json to adjust metadata about this package.
# Use MANIFEST.in to include package-specific data files.
import os
import json
from setuptools import setup, find_packages
info = json.load(open("./package.json"))
def generate_namespaces(package):
i ... | Use `find_packages()` and since we aren't building `package_data` anymore, we need to use `MANIFEST.in`. That's what it's there for and does a more obvious job. "Explicit is better than implicit." Using MANIFEST requires `include_package_data=True`. | Use `find_packages()` and since we aren't building `package_data` anymore, we need to use `MANIFEST.in`. That's what it's there for and does a more obvious job. "Explicit is better than implicit." Using MANIFEST requires `include_package_data=True`.
| Python | apache-2.0 | armstrong/armstrong.dev | """
setup.py file for building armstrong components.
Nothing in this file should need to be edited, please see accompanying
package.json file if you need to adjust metadata about this package.
"""
import os
import json
from setuptools import setup, find_packages
info = json.load(open("./package.json"))
def genera... | # Nothing in this file should need to be edited.
# Use package.json to adjust metadata about this package.
# Use MANIFEST.in to include package-specific data files.
import os
import json
from setuptools import setup, find_packages
info = json.load(open("./package.json"))
def generate_namespaces(package):
i ... | <commit_before>"""
setup.py file for building armstrong components.
Nothing in this file should need to be edited, please see accompanying
package.json file if you need to adjust metadata about this package.
"""
import os
import json
from setuptools import setup, find_packages
info = json.load(open("./package.json"... | # Nothing in this file should need to be edited.
# Use package.json to adjust metadata about this package.
# Use MANIFEST.in to include package-specific data files.
import os
import json
from setuptools import setup, find_packages
info = json.load(open("./package.json"))
def generate_namespaces(package):
i ... | """
setup.py file for building armstrong components.
Nothing in this file should need to be edited, please see accompanying
package.json file if you need to adjust metadata about this package.
"""
import os
import json
from setuptools import setup, find_packages
info = json.load(open("./package.json"))
def genera... | <commit_before>"""
setup.py file for building armstrong components.
Nothing in this file should need to be edited, please see accompanying
package.json file if you need to adjust metadata about this package.
"""
import os
import json
from setuptools import setup, find_packages
info = json.load(open("./package.json"... |
c0a479ad3bbfd0f2f77c628ee10fd01675a942b9 | main.py | main.py | import optparse
from bounty import *
from peers import *
from settings import *
def main():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
action="store_true",
... | from bounty import *
from peers import *
import settings
def main():
settings.setup()
print "settings are:"
print settings.config
if __name__ == "__main__":
main()
| Move configs to settings module | Move configs to settings module | Python | mit | gappleto97/Senior-Project | import optparse
from bounty import *
from peers import *
from settings import *
def main():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
action="store_true",
... | from bounty import *
from peers import *
import settings
def main():
settings.setup()
print "settings are:"
print settings.config
if __name__ == "__main__":
main()
| <commit_before>import optparse
from bounty import *
from peers import *
from settings import *
def main():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
action="sto... | from bounty import *
from peers import *
import settings
def main():
settings.setup()
print "settings are:"
print settings.config
if __name__ == "__main__":
main()
| import optparse
from bounty import *
from peers import *
from settings import *
def main():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
action="store_true",
... | <commit_before>import optparse
from bounty import *
from peers import *
from settings import *
def main():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
action="sto... |
2b3c566b7558ffa2fe9377705f07525470232bb6 | setup.py | setup.py | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.2",
author = "Peter ... | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.2",
author = "Peter ... | Update the irclib dependency to version 0.4.8. | Update the irclib dependency to version 0.4.8.
Add an explicit url in dependency_links for irclib's SourceForge
download page. The url currently in PyPI is stale, so the download
fails.
It looks like the upstream package is now called "irc", so
investigate porting cobe to that in the future.
Fixes #3: "Depends on ou... | Python | mit | DarkMio/cobe,meska/cobe,wodim/cobe-ng,pteichman/cobe,LeMagnesium/cobe,wodim/cobe-ng,pteichman/cobe,LeMagnesium/cobe,DarkMio/cobe,tiagochiavericosta/cobe,meska/cobe,tiagochiavericosta/cobe | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.2",
author = "Peter ... | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.2",
author = "Peter ... | <commit_before>#!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.2",
a... | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.2",
author = "Peter ... | #!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.2",
author = "Peter ... | <commit_before>#!/usr/bin/env python
# Require setuptools. See http://pypi.python.org/pypi/setuptools for
# installation instructions, or run the ez_setup script found at
# http://peak.telecommunity.com/dist/ez_setup.py
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "2.0.2",
a... |
9a23af9ba053e669e9c3750e72251228f32b4a86 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = ['python-twitter>=1.0']
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ptwit',
version='0.0.7',
description='A si... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import ptwit
requires = ['python-twitter>=1.0']
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ptwit',
version=ptwit.__version__... | Use imported version and author from ptwit | Use imported version and author from ptwit
| Python | mit | ptpt/ptwit | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = ['python-twitter>=1.0']
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ptwit',
version='0.0.7',
description='A si... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import ptwit
requires = ['python-twitter>=1.0']
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ptwit',
version=ptwit.__version__... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = ['python-twitter>=1.0']
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ptwit',
version='0.0.7',
de... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import ptwit
requires = ['python-twitter>=1.0']
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ptwit',
version=ptwit.__version__... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = ['python-twitter>=1.0']
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ptwit',
version='0.0.7',
description='A si... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = ['python-twitter>=1.0']
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ptwit',
version='0.0.7',
de... |
79967811ffdd739bd7a653f4644eec5c4b014625 | setup.py | setup.py | """Setuptools configuration for interfaces."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='asyncdef.interfaces',
version='0.1.0',
url='https://github.com/asyncdef/interfaces',
description='... | """Setuptools configuration for interfaces."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='asyncdef.interfaces',
version='0.1.3',
url='https://github.com/asyncdef/interfaces',
description='... | Fix packaging to resolve the PEP420 namespace | Fix packaging to resolve the PEP420 namespace
Setuptools is still lacking support for PEP480 namespace packages
when using the find_packages function. Until it does all packages,
including the namespace, must be registered in the packages list.
| Python | apache-2.0 | asyncdef/interfaces | """Setuptools configuration for interfaces."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='asyncdef.interfaces',
version='0.1.0',
url='https://github.com/asyncdef/interfaces',
description='... | """Setuptools configuration for interfaces."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='asyncdef.interfaces',
version='0.1.3',
url='https://github.com/asyncdef/interfaces',
description='... | <commit_before>"""Setuptools configuration for interfaces."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='asyncdef.interfaces',
version='0.1.0',
url='https://github.com/asyncdef/interfaces',
... | """Setuptools configuration for interfaces."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='asyncdef.interfaces',
version='0.1.3',
url='https://github.com/asyncdef/interfaces',
description='... | """Setuptools configuration for interfaces."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='asyncdef.interfaces',
version='0.1.0',
url='https://github.com/asyncdef/interfaces',
description='... | <commit_before>"""Setuptools configuration for interfaces."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='asyncdef.interfaces',
version='0.1.0',
url='https://github.com/asyncdef/interfaces',
... |
5e61fcd8245467b52a97a289565f7eb5496e10c9 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='DeviceHub',
version='0.1',
packages=find_packages(),
url='https://github.com/eReuse/DeviceHub',
license='AGPLv3 License',
author='eReuse team',
author_email='x.bustamante@ereuse.org',
description='The DeviceHub is a Device Managem... | from setuptools import setup, find_packages
setup(
name='DeviceHub',
version='0.1',
packages=find_packages(),
url='https://github.com/eReuse/DeviceHub',
license='AGPLv3 License',
author='eReuse team',
author_email='x.bustamante@ereuse.org',
description='The DeviceHub is a Device Managem... | Add passlib as package requirement | Add passlib as package requirement
| Python | agpl-3.0 | eReuse/DeviceHub,eReuse/DeviceHub | from setuptools import setup, find_packages
setup(
name='DeviceHub',
version='0.1',
packages=find_packages(),
url='https://github.com/eReuse/DeviceHub',
license='AGPLv3 License',
author='eReuse team',
author_email='x.bustamante@ereuse.org',
description='The DeviceHub is a Device Managem... | from setuptools import setup, find_packages
setup(
name='DeviceHub',
version='0.1',
packages=find_packages(),
url='https://github.com/eReuse/DeviceHub',
license='AGPLv3 License',
author='eReuse team',
author_email='x.bustamante@ereuse.org',
description='The DeviceHub is a Device Managem... | <commit_before>from setuptools import setup, find_packages
setup(
name='DeviceHub',
version='0.1',
packages=find_packages(),
url='https://github.com/eReuse/DeviceHub',
license='AGPLv3 License',
author='eReuse team',
author_email='x.bustamante@ereuse.org',
description='The DeviceHub is a... | from setuptools import setup, find_packages
setup(
name='DeviceHub',
version='0.1',
packages=find_packages(),
url='https://github.com/eReuse/DeviceHub',
license='AGPLv3 License',
author='eReuse team',
author_email='x.bustamante@ereuse.org',
description='The DeviceHub is a Device Managem... | from setuptools import setup, find_packages
setup(
name='DeviceHub',
version='0.1',
packages=find_packages(),
url='https://github.com/eReuse/DeviceHub',
license='AGPLv3 License',
author='eReuse team',
author_email='x.bustamante@ereuse.org',
description='The DeviceHub is a Device Managem... | <commit_before>from setuptools import setup, find_packages
setup(
name='DeviceHub',
version='0.1',
packages=find_packages(),
url='https://github.com/eReuse/DeviceHub',
license='AGPLv3 License',
author='eReuse team',
author_email='x.bustamante@ereuse.org',
description='The DeviceHub is a... |
991ed46bcc0886e310c43b33ada4aad0d95991a0 | mooc.py | mooc.py | import csv
import collections
import argparse
parser = argparse.ArgumentParser(description='Restructure MOOC CSV.')
parser.add_argument('input_csv', type=open)
args = parser.parse_args()
data_in = {}
with args.input_csv as csvin:
reader = csv.reader(csvin)
next(reader) # skip titles
for cid, author_id, p... | import csv
import collections
import argparse
parser = argparse.ArgumentParser(description='Restructure MOOC CSV.')
parser.add_argument('input_csv', type=open)
args = parser.parse_args()
data_in = {}
with args.input_csv as csvin:
reader = csv.reader(csvin)
next(reader) # skip titles
for cid, author_id, p... | Add text of comments on the end of the output | Add text of comments on the end of the output
| Python | mit | tlocke/mooc | import csv
import collections
import argparse
parser = argparse.ArgumentParser(description='Restructure MOOC CSV.')
parser.add_argument('input_csv', type=open)
args = parser.parse_args()
data_in = {}
with args.input_csv as csvin:
reader = csv.reader(csvin)
next(reader) # skip titles
for cid, author_id, p... | import csv
import collections
import argparse
parser = argparse.ArgumentParser(description='Restructure MOOC CSV.')
parser.add_argument('input_csv', type=open)
args = parser.parse_args()
data_in = {}
with args.input_csv as csvin:
reader = csv.reader(csvin)
next(reader) # skip titles
for cid, author_id, p... | <commit_before>import csv
import collections
import argparse
parser = argparse.ArgumentParser(description='Restructure MOOC CSV.')
parser.add_argument('input_csv', type=open)
args = parser.parse_args()
data_in = {}
with args.input_csv as csvin:
reader = csv.reader(csvin)
next(reader) # skip titles
for ci... | import csv
import collections
import argparse
parser = argparse.ArgumentParser(description='Restructure MOOC CSV.')
parser.add_argument('input_csv', type=open)
args = parser.parse_args()
data_in = {}
with args.input_csv as csvin:
reader = csv.reader(csvin)
next(reader) # skip titles
for cid, author_id, p... | import csv
import collections
import argparse
parser = argparse.ArgumentParser(description='Restructure MOOC CSV.')
parser.add_argument('input_csv', type=open)
args = parser.parse_args()
data_in = {}
with args.input_csv as csvin:
reader = csv.reader(csvin)
next(reader) # skip titles
for cid, author_id, p... | <commit_before>import csv
import collections
import argparse
parser = argparse.ArgumentParser(description='Restructure MOOC CSV.')
parser.add_argument('input_csv', type=open)
args = parser.parse_args()
data_in = {}
with args.input_csv as csvin:
reader = csv.reader(csvin)
next(reader) # skip titles
for ci... |
bc628f58327a9b325f7ce1e3f8e56946d289aa66 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='bugsy',
version='0.4.1',
description='A library for interacting Bugzilla Native REST API',
author='David Burns',
author_email='david.burns at theautomatedtester dot co dot uk',
url='http://oss.theautomatedtester.co.uk/bugzilla',
... | from setuptools import setup, find_packages
setup(name='bugsy',
version='0.4.1',
description='A library for interacting Bugzilla Native REST API',
author='David Burns',
author_email='david.burns at theautomatedtester dot co dot uk',
url='https://github.com/AutomatedTester/Bugsy',
cl... | Make the Bugsy PyPI page link to GitHub | Make the Bugsy PyPI page link to GitHub
Since there is currently no mention of the repo there.
Signed-off-by: AutomatedTester <3d61f6450d7e43c8b567795ed24e9858346487a0@mozilla.com>
| Python | apache-2.0 | AutomatedTester/Bugsy | from setuptools import setup, find_packages
setup(name='bugsy',
version='0.4.1',
description='A library for interacting Bugzilla Native REST API',
author='David Burns',
author_email='david.burns at theautomatedtester dot co dot uk',
url='http://oss.theautomatedtester.co.uk/bugzilla',
... | from setuptools import setup, find_packages
setup(name='bugsy',
version='0.4.1',
description='A library for interacting Bugzilla Native REST API',
author='David Burns',
author_email='david.burns at theautomatedtester dot co dot uk',
url='https://github.com/AutomatedTester/Bugsy',
cl... | <commit_before>from setuptools import setup, find_packages
setup(name='bugsy',
version='0.4.1',
description='A library for interacting Bugzilla Native REST API',
author='David Burns',
author_email='david.burns at theautomatedtester dot co dot uk',
url='http://oss.theautomatedtester.co.uk/... | from setuptools import setup, find_packages
setup(name='bugsy',
version='0.4.1',
description='A library for interacting Bugzilla Native REST API',
author='David Burns',
author_email='david.burns at theautomatedtester dot co dot uk',
url='https://github.com/AutomatedTester/Bugsy',
cl... | from setuptools import setup, find_packages
setup(name='bugsy',
version='0.4.1',
description='A library for interacting Bugzilla Native REST API',
author='David Burns',
author_email='david.burns at theautomatedtester dot co dot uk',
url='http://oss.theautomatedtester.co.uk/bugzilla',
... | <commit_before>from setuptools import setup, find_packages
setup(name='bugsy',
version='0.4.1',
description='A library for interacting Bugzilla Native REST API',
author='David Burns',
author_email='david.burns at theautomatedtester dot co dot uk',
url='http://oss.theautomatedtester.co.uk/... |
0075942e2900f58f2f8bd82d0d71b49e08665123 | openfisca_france_indirect_taxation/tests/base.py | openfisca_france_indirect_taxation/tests/base.py | # -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it ... | # -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it ... | Add prefill_cache to make test_categorie_fiscale pass | Add prefill_cache to make test_categorie_fiscale pass
| Python | agpl-3.0 | benjello/openfisca-france-indirect-taxation,openfisca/openfisca-france-indirect-taxation,antoinearnoud/openfisca-france-indirect-taxation,thomasdouenne/openfisca-france-indirect-taxation | # -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it ... | # -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it ... | <commit_before># -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/... | # -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it ... | # -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it ... | <commit_before># -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/... |
62ab9336545305509c24efed38660ee26bbe7c0f | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.9',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.10',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | Update the PyPI version to 7.0.10. | Update the PyPI version to 7.0.10.
| Python | mit | Doist/todoist-python | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.9',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.10',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.9',
packages=['todoist', 'todoist.managers'],
auth... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.10',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.9',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.9',
packages=['todoist', 'todoist.managers'],
auth... |
16b5b60d06e7979baaa0428b489af42ab6f64a4d | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""google-translate package setup file."""
from setuptools import setup
from google_translate import __version__
setup(
version = __version__,
license = "Unlicense",
name = "doodle-translate",
author_email =... | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""google-translate package setup file."""
from setuptools import setup
from google_translate import (
__version__,
__license__
)
setup(
version = __version__,
license = __license__,
name = "doodle-translate",
... | Use the __license__ from the package __init__ | Use the __license__ from the package __init__
| Python | unlicense | MrS0m30n3/google-translate,MrS0m30n3/google-translate | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""google-translate package setup file."""
from setuptools import setup
from google_translate import __version__
setup(
version = __version__,
license = "Unlicense",
name = "doodle-translate",
author_email =... | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""google-translate package setup file."""
from setuptools import setup
from google_translate import (
__version__,
__license__
)
setup(
version = __version__,
license = __license__,
name = "doodle-translate",
... | <commit_before>#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""google-translate package setup file."""
from setuptools import setup
from google_translate import __version__
setup(
version = __version__,
license = "Unlicense",
name = "doodle-translate",
author... | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""google-translate package setup file."""
from setuptools import setup
from google_translate import (
__version__,
__license__
)
setup(
version = __version__,
license = __license__,
name = "doodle-translate",
... | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""google-translate package setup file."""
from setuptools import setup
from google_translate import __version__
setup(
version = __version__,
license = "Unlicense",
name = "doodle-translate",
author_email =... | <commit_before>#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""google-translate package setup file."""
from setuptools import setup
from google_translate import __version__
setup(
version = __version__,
license = "Unlicense",
name = "doodle-translate",
author... |
a34315818fd1f6d270b3226892e3b9005dbfbc16 | setup.py | setup.py | import sys
from setuptools import setup, find_packages
py26_dependency = []
if sys.version_info <= (2, 6):
py26_dependency = ["argparse >= 1.2.1", "ordereddict >= 1.1"]
setup(
name='dataset',
version='0.4.0',
description="Toolkit for Python-based data processing.",
long_description="",
classi... | import sys
from setuptools import setup, find_packages
py26_dependency = []
if sys.version_info[:2] <= (2, 6):
py26_dependency = ["argparse >= 1.2.1", "ordereddict >= 1.1"]
setup(
name='dataset',
version='0.4.0',
description="Toolkit for Python-based data processing.",
long_description="",
cl... | Fix bad python 2.6 detection | Fix bad python 2.6 detection | Python | mit | vguzmanp/dataset,stefanw/dataset,twds/dataset,pudo/dataset,saimn/dataset,askebos/dataset,reubano/dataset | import sys
from setuptools import setup, find_packages
py26_dependency = []
if sys.version_info <= (2, 6):
py26_dependency = ["argparse >= 1.2.1", "ordereddict >= 1.1"]
setup(
name='dataset',
version='0.4.0',
description="Toolkit for Python-based data processing.",
long_description="",
classi... | import sys
from setuptools import setup, find_packages
py26_dependency = []
if sys.version_info[:2] <= (2, 6):
py26_dependency = ["argparse >= 1.2.1", "ordereddict >= 1.1"]
setup(
name='dataset',
version='0.4.0',
description="Toolkit for Python-based data processing.",
long_description="",
cl... | <commit_before>import sys
from setuptools import setup, find_packages
py26_dependency = []
if sys.version_info <= (2, 6):
py26_dependency = ["argparse >= 1.2.1", "ordereddict >= 1.1"]
setup(
name='dataset',
version='0.4.0',
description="Toolkit for Python-based data processing.",
long_description... | import sys
from setuptools import setup, find_packages
py26_dependency = []
if sys.version_info[:2] <= (2, 6):
py26_dependency = ["argparse >= 1.2.1", "ordereddict >= 1.1"]
setup(
name='dataset',
version='0.4.0',
description="Toolkit for Python-based data processing.",
long_description="",
cl... | import sys
from setuptools import setup, find_packages
py26_dependency = []
if sys.version_info <= (2, 6):
py26_dependency = ["argparse >= 1.2.1", "ordereddict >= 1.1"]
setup(
name='dataset',
version='0.4.0',
description="Toolkit for Python-based data processing.",
long_description="",
classi... | <commit_before>import sys
from setuptools import setup, find_packages
py26_dependency = []
if sys.version_info <= (2, 6):
py26_dependency = ["argparse >= 1.2.1", "ordereddict >= 1.1"]
setup(
name='dataset',
version='0.4.0',
description="Toolkit for Python-based data processing.",
long_description... |
e1a5ed9bb7d9a8f397396c2ae4fdf50a6d1ba89c | setup.py | setup.py | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(name='spiralgalaxygame',
description='Spiral Galaxy Game',
url='https://github.com/nejucomo/spiralgalaxygame',
license='GPLv3',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
... | #! /usr/bin/env python
import os
import glob
from setuptools import setup, find_packages
setup(name='spiralgalaxygame',
description='Spiral Galaxy Game',
url='https://github.com/nejucomo/spiralgalaxygame',
license='GPLv3',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='... | Automate registration of application main functions: every module in sgg.app must have a main() and is a named console_script. | Automate registration of application main functions: every module in sgg.app must have a main() and is a named console_script.
| Python | agpl-3.0 | nejucomo/sgg,nejucomo/sgg,nejucomo/sgg | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(name='spiralgalaxygame',
description='Spiral Galaxy Game',
url='https://github.com/nejucomo/spiralgalaxygame',
license='GPLv3',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
... | #! /usr/bin/env python
import os
import glob
from setuptools import setup, find_packages
setup(name='spiralgalaxygame',
description='Spiral Galaxy Game',
url='https://github.com/nejucomo/spiralgalaxygame',
license='GPLv3',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='... | <commit_before>#! /usr/bin/env python
from setuptools import setup, find_packages
setup(name='spiralgalaxygame',
description='Spiral Galaxy Game',
url='https://github.com/nejucomo/spiralgalaxygame',
license='GPLv3',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucom... | #! /usr/bin/env python
import os
import glob
from setuptools import setup, find_packages
setup(name='spiralgalaxygame',
description='Spiral Galaxy Game',
url='https://github.com/nejucomo/spiralgalaxygame',
license='GPLv3',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='... | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(name='spiralgalaxygame',
description='Spiral Galaxy Game',
url='https://github.com/nejucomo/spiralgalaxygame',
license='GPLv3',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
... | <commit_before>#! /usr/bin/env python
from setuptools import setup, find_packages
setup(name='spiralgalaxygame',
description='Spiral Galaxy Game',
url='https://github.com/nejucomo/spiralgalaxygame',
license='GPLv3',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucom... |
03dee283f0cdbf917d2ff3cbee3fbe45e0b0e430 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='aweber_api',
version='1.1.3',
packages=find_packages(exclude=['tests']),
url='https://github.com/aweber/AWeber-API-Python-Library',
install_requires = [
'httplib2>=0.7.0',
'oauth2>=1.2',
],
tests_require = [
... | from setuptools import setup, find_packages
from sys import version
if version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
setup(
name='aweber_api',
version='1.1.3',
author='AWeber Dev Team',
au... | Update metadata used by pypi | Update metadata used by pypi
| Python | bsd-3-clause | aweber/AWeber-API-Python-Library | from setuptools import setup, find_packages
setup(
name='aweber_api',
version='1.1.3',
packages=find_packages(exclude=['tests']),
url='https://github.com/aweber/AWeber-API-Python-Library',
install_requires = [
'httplib2>=0.7.0',
'oauth2>=1.2',
],
tests_require = [
... | from setuptools import setup, find_packages
from sys import version
if version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
setup(
name='aweber_api',
version='1.1.3',
author='AWeber Dev Team',
au... | <commit_before>from setuptools import setup, find_packages
setup(
name='aweber_api',
version='1.1.3',
packages=find_packages(exclude=['tests']),
url='https://github.com/aweber/AWeber-API-Python-Library',
install_requires = [
'httplib2>=0.7.0',
'oauth2>=1.2',
],
tests_req... | from setuptools import setup, find_packages
from sys import version
if version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
setup(
name='aweber_api',
version='1.1.3',
author='AWeber Dev Team',
au... | from setuptools import setup, find_packages
setup(
name='aweber_api',
version='1.1.3',
packages=find_packages(exclude=['tests']),
url='https://github.com/aweber/AWeber-API-Python-Library',
install_requires = [
'httplib2>=0.7.0',
'oauth2>=1.2',
],
tests_require = [
... | <commit_before>from setuptools import setup, find_packages
setup(
name='aweber_api',
version='1.1.3',
packages=find_packages(exclude=['tests']),
url='https://github.com/aweber/AWeber-API-Python-Library',
install_requires = [
'httplib2>=0.7.0',
'oauth2>=1.2',
],
tests_req... |
003ddb7fe8577c6dcd41c6fe460199e027785f71 | setup.py | setup.py | from setuptools import setup
setup(
name='mcrypto',
version='0.1',
author='Pavel Brodsky',
author_email='mcouthon@gmail.com',
packages=[
'mcrypto',
'mcrypto.mcrypto_project',
'mcrypto.mcrypto_project.mcrypto_project',
'mcrypto.mcrypto_project.portfolio',
'mc... | from setuptools import setup
setup(
name='mcrypto',
version='0.1',
author='Pavel Brodsky',
author_email='mcouthon@gmail.com',
packages=[
'mcrypto',
'mcrypto.mcrypto_project',
'mcrypto.mcrypto_project.mcrypto_project',
'mcrypto.mcrypto_project.portfolio',
'mc... | Split `urls.py` to separate modules | Split `urls.py` to separate modules
| Python | bsd-3-clause | mcouthon/mcrypto,mcouthon/mcrypto | from setuptools import setup
setup(
name='mcrypto',
version='0.1',
author='Pavel Brodsky',
author_email='mcouthon@gmail.com',
packages=[
'mcrypto',
'mcrypto.mcrypto_project',
'mcrypto.mcrypto_project.mcrypto_project',
'mcrypto.mcrypto_project.portfolio',
'mc... | from setuptools import setup
setup(
name='mcrypto',
version='0.1',
author='Pavel Brodsky',
author_email='mcouthon@gmail.com',
packages=[
'mcrypto',
'mcrypto.mcrypto_project',
'mcrypto.mcrypto_project.mcrypto_project',
'mcrypto.mcrypto_project.portfolio',
'mc... | <commit_before>from setuptools import setup
setup(
name='mcrypto',
version='0.1',
author='Pavel Brodsky',
author_email='mcouthon@gmail.com',
packages=[
'mcrypto',
'mcrypto.mcrypto_project',
'mcrypto.mcrypto_project.mcrypto_project',
'mcrypto.mcrypto_project.portfoli... | from setuptools import setup
setup(
name='mcrypto',
version='0.1',
author='Pavel Brodsky',
author_email='mcouthon@gmail.com',
packages=[
'mcrypto',
'mcrypto.mcrypto_project',
'mcrypto.mcrypto_project.mcrypto_project',
'mcrypto.mcrypto_project.portfolio',
'mc... | from setuptools import setup
setup(
name='mcrypto',
version='0.1',
author='Pavel Brodsky',
author_email='mcouthon@gmail.com',
packages=[
'mcrypto',
'mcrypto.mcrypto_project',
'mcrypto.mcrypto_project.mcrypto_project',
'mcrypto.mcrypto_project.portfolio',
'mc... | <commit_before>from setuptools import setup
setup(
name='mcrypto',
version='0.1',
author='Pavel Brodsky',
author_email='mcouthon@gmail.com',
packages=[
'mcrypto',
'mcrypto.mcrypto_project',
'mcrypto.mcrypto_project.mcrypto_project',
'mcrypto.mcrypto_project.portfoli... |
9b84808f44d9b67aafa9e10f13301ab4ed368f0f | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='optfunc-ysimonson',
version='0.1.1',
description='Generate commandline flags from function arguments.',
author='Simon Willison',
author_email='simon@lanyrd.com',
url='https://github.com/ysimonson/optfunc',
license='... | #!/usr/bin/env python
from distutils.core import setup
setup(name='optfunc-ysimonson',
version='0.1.2',
description='Generate commandline flags from function arguments.',
author='Simon Willison',
author_email='simon@lanyrd.com',
url='https://github.com/ysimonson/optfunc',
license='... | Bump version for new pypi dist | Bump version for new pypi dist
| Python | bsd-2-clause | ysimonson/optfn | #!/usr/bin/env python
from distutils.core import setup
setup(name='optfunc-ysimonson',
version='0.1.1',
description='Generate commandline flags from function arguments.',
author='Simon Willison',
author_email='simon@lanyrd.com',
url='https://github.com/ysimonson/optfunc',
license='... | #!/usr/bin/env python
from distutils.core import setup
setup(name='optfunc-ysimonson',
version='0.1.2',
description='Generate commandline flags from function arguments.',
author='Simon Willison',
author_email='simon@lanyrd.com',
url='https://github.com/ysimonson/optfunc',
license='... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='optfunc-ysimonson',
version='0.1.1',
description='Generate commandline flags from function arguments.',
author='Simon Willison',
author_email='simon@lanyrd.com',
url='https://github.com/ysimonson/optfunc',
... | #!/usr/bin/env python
from distutils.core import setup
setup(name='optfunc-ysimonson',
version='0.1.2',
description='Generate commandline flags from function arguments.',
author='Simon Willison',
author_email='simon@lanyrd.com',
url='https://github.com/ysimonson/optfunc',
license='... | #!/usr/bin/env python
from distutils.core import setup
setup(name='optfunc-ysimonson',
version='0.1.1',
description='Generate commandline flags from function arguments.',
author='Simon Willison',
author_email='simon@lanyrd.com',
url='https://github.com/ysimonson/optfunc',
license='... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='optfunc-ysimonson',
version='0.1.1',
description='Generate commandline flags from function arguments.',
author='Simon Willison',
author_email='simon@lanyrd.com',
url='https://github.com/ysimonson/optfunc',
... |
aa2a2a57030dec2e8b73b017de5f157aae0fb5e5 | tests/qtgui/qpixmap_test.py | tests/qtgui/qpixmap_test.py | import unittest
from helper import UsesQApplication
from PySide.QtGui import QPixmap
from PySide.QtCore import QVariant
#Only test if is possible create a QPixmap from a QVariant
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
pixmap = QPixmap()
v = QVariant(pixmap)
... | import unittest
from helper import UsesQApplication
from PySide.QtGui import QPixmap
from PySide.QtCore import QVariant, QSize, QString
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
pixmap = QPixmap()
v = QVariant(pixmap)
pixmap_copy = QPixmap(v)
def testQSiz... | Improve qpixmap test to support qstring and qsize arguments. | Improve qpixmap test to support qstring and qsize arguments.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
| Python | lgpl-2.1 | BadSingleton/pyside2,enthought/pyside,gbaty/pyside2,IronManMark20/pyside2,gbaty/pyside2,gbaty/pyside2,M4rtinK/pyside-android,PySide/PySide,pankajp/pyside,pankajp/pyside,PySide/PySide,M4rtinK/pyside-bb10,BadSingleton/pyside2,IronManMark20/pyside2,enthought/pyside,BadSingleton/pyside2,IronManMark20/pyside2,M4rtinK/pyside... | import unittest
from helper import UsesQApplication
from PySide.QtGui import QPixmap
from PySide.QtCore import QVariant
#Only test if is possible create a QPixmap from a QVariant
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
pixmap = QPixmap()
v = QVariant(pixmap)
... | import unittest
from helper import UsesQApplication
from PySide.QtGui import QPixmap
from PySide.QtCore import QVariant, QSize, QString
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
pixmap = QPixmap()
v = QVariant(pixmap)
pixmap_copy = QPixmap(v)
def testQSiz... | <commit_before>import unittest
from helper import UsesQApplication
from PySide.QtGui import QPixmap
from PySide.QtCore import QVariant
#Only test if is possible create a QPixmap from a QVariant
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
pixmap = QPixmap()
v = QVariant(... | import unittest
from helper import UsesQApplication
from PySide.QtGui import QPixmap
from PySide.QtCore import QVariant, QSize, QString
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
pixmap = QPixmap()
v = QVariant(pixmap)
pixmap_copy = QPixmap(v)
def testQSiz... | import unittest
from helper import UsesQApplication
from PySide.QtGui import QPixmap
from PySide.QtCore import QVariant
#Only test if is possible create a QPixmap from a QVariant
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
pixmap = QPixmap()
v = QVariant(pixmap)
... | <commit_before>import unittest
from helper import UsesQApplication
from PySide.QtGui import QPixmap
from PySide.QtCore import QVariant
#Only test if is possible create a QPixmap from a QVariant
class QPixmapTest(UsesQApplication):
def testQVariantConstructor(self):
pixmap = QPixmap()
v = QVariant(... |
5315638ddba8ca38ea57aea7650a6a233d0f5872 | icekit/plugins/image/admin.py | icekit/plugins/image/admin.py | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'title', 'alt_text',]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]
... | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'title', 'alt_text',]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]
... | Add filename to image search | Add filename to image search
| Python | mit | ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'title', 'alt_text',]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]
... | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'title', 'alt_text',]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]
... | <commit_before>from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'title', 'alt_text',]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['... | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'title', 'alt_text',]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]
... | from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'title', 'alt_text',]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['categories', ]
... | <commit_before>from django.contrib import admin
from icekit.utils.admin.mixins import ThumbnailAdminMixin
from . import models
class ImageAdmin(ThumbnailAdminMixin, admin.ModelAdmin):
list_display = ['thumbnail', 'title', 'alt_text',]
list_display_links = ['alt_text', 'thumbnail']
filter_horizontal = ['... |
14eba692295bc5391e35a6b1f32a40ad0d6b30d9 | wa/__init__.py | wa/__init__.py | from wa.framework import pluginloader, signal
from wa.framework.command import Command, ComplexCommand, SubCommand
from wa.framework.configuration import settings
from wa.framework.configuration.core import Status
from wa.framework.exception import HostError, JobError, InstrumentError, ConfigError
from wa.framework.exc... | from wa.framework import pluginloader, signal
from wa.framework.command import Command, ComplexCommand, SubCommand
from wa.framework.configuration import settings
from wa.framework.configuration.core import Status
from wa.framework.exception import HostError, JobError, InstrumentError, ConfigError
from wa.framework.exc... | Add ApkWorkload to default imports | wa: Add ApkWorkload to default imports
| Python | apache-2.0 | setrofim/workload-automation,ARM-software/workload-automation,setrofim/workload-automation,lisatn/workload-automation,ARM-software/workload-automation,setrofim/workload-automation,setrofim/workload-automation,lisatn/workload-automation,ARM-software/workload-automation,lisatn/workload-automation,lisatn/workload-automati... | from wa.framework import pluginloader, signal
from wa.framework.command import Command, ComplexCommand, SubCommand
from wa.framework.configuration import settings
from wa.framework.configuration.core import Status
from wa.framework.exception import HostError, JobError, InstrumentError, ConfigError
from wa.framework.exc... | from wa.framework import pluginloader, signal
from wa.framework.command import Command, ComplexCommand, SubCommand
from wa.framework.configuration import settings
from wa.framework.configuration.core import Status
from wa.framework.exception import HostError, JobError, InstrumentError, ConfigError
from wa.framework.exc... | <commit_before>from wa.framework import pluginloader, signal
from wa.framework.command import Command, ComplexCommand, SubCommand
from wa.framework.configuration import settings
from wa.framework.configuration.core import Status
from wa.framework.exception import HostError, JobError, InstrumentError, ConfigError
from w... | from wa.framework import pluginloader, signal
from wa.framework.command import Command, ComplexCommand, SubCommand
from wa.framework.configuration import settings
from wa.framework.configuration.core import Status
from wa.framework.exception import HostError, JobError, InstrumentError, ConfigError
from wa.framework.exc... | from wa.framework import pluginloader, signal
from wa.framework.command import Command, ComplexCommand, SubCommand
from wa.framework.configuration import settings
from wa.framework.configuration.core import Status
from wa.framework.exception import HostError, JobError, InstrumentError, ConfigError
from wa.framework.exc... | <commit_before>from wa.framework import pluginloader, signal
from wa.framework.command import Command, ComplexCommand, SubCommand
from wa.framework.configuration import settings
from wa.framework.configuration.core import Status
from wa.framework.exception import HostError, JobError, InstrumentError, ConfigError
from w... |
701756f48fc627ed1f9cef77e6ad887c2e95e0f8 | allauth/socialaccount/providers/discord/views.py | allauth/socialaccount/providers/discord/views.py | import requests
from allauth.socialaccount.providers.discord.provider import DiscordProvider
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
class DiscordOAuth2Adapter(OAuth2Adapter):
provider_id = DiscordProvider.id
access_token_ur... | import requests
from allauth.socialaccount.providers.discord.provider import DiscordProvider
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
class DiscordOAuth2Adapter(OAuth2Adapter):
provider_id = DiscordProvider.id
access_token_ur... | Switch to new API domain | fix(discord): Switch to new API domain
| Python | mit | pennersr/django-allauth,pennersr/django-allauth,pennersr/django-allauth,rsalmaso/django-allauth,rsalmaso/django-allauth,rsalmaso/django-allauth | import requests
from allauth.socialaccount.providers.discord.provider import DiscordProvider
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
class DiscordOAuth2Adapter(OAuth2Adapter):
provider_id = DiscordProvider.id
access_token_ur... | import requests
from allauth.socialaccount.providers.discord.provider import DiscordProvider
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
class DiscordOAuth2Adapter(OAuth2Adapter):
provider_id = DiscordProvider.id
access_token_ur... | <commit_before>import requests
from allauth.socialaccount.providers.discord.provider import DiscordProvider
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
class DiscordOAuth2Adapter(OAuth2Adapter):
provider_id = DiscordProvider.id
... | import requests
from allauth.socialaccount.providers.discord.provider import DiscordProvider
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
class DiscordOAuth2Adapter(OAuth2Adapter):
provider_id = DiscordProvider.id
access_token_ur... | import requests
from allauth.socialaccount.providers.discord.provider import DiscordProvider
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
class DiscordOAuth2Adapter(OAuth2Adapter):
provider_id = DiscordProvider.id
access_token_ur... | <commit_before>import requests
from allauth.socialaccount.providers.discord.provider import DiscordProvider
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
class DiscordOAuth2Adapter(OAuth2Adapter):
provider_id = DiscordProvider.id
... |
a2736b4c4c4d6d004a7d055e7e9f0436a7be5b3d | gaphor/UML/__init__.py | gaphor/UML/__init__.py | from gaphor.UML.collection import collection
from gaphor.UML.uml2 import *
from gaphor.UML.elementfactory import ElementFactory
from gaphor.UML import modelfactory as model
from gaphor.UML.umlfmt import format
from gaphor.UML.umllex import parse
__all__ = ['collection', 'context', 'diagram', 'element', 'elementfactor... | from gaphor.UML import modelfactory as model
from gaphor.UML.collection import collection
from gaphor.UML.elementfactory import ElementFactory
from gaphor.UML.uml2 import *
from gaphor.UML.umlfmt import format
from gaphor.UML.umllex import parse
| Fix * imports for building UML with Python3 | Fix * imports for building UML with Python3
Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me>
| Python | lgpl-2.1 | amolenaar/gaphor,amolenaar/gaphor | from gaphor.UML.collection import collection
from gaphor.UML.uml2 import *
from gaphor.UML.elementfactory import ElementFactory
from gaphor.UML import modelfactory as model
from gaphor.UML.umlfmt import format
from gaphor.UML.umllex import parse
__all__ = ['collection', 'context', 'diagram', 'element', 'elementfactor... | from gaphor.UML import modelfactory as model
from gaphor.UML.collection import collection
from gaphor.UML.elementfactory import ElementFactory
from gaphor.UML.uml2 import *
from gaphor.UML.umlfmt import format
from gaphor.UML.umllex import parse
| <commit_before>from gaphor.UML.collection import collection
from gaphor.UML.uml2 import *
from gaphor.UML.elementfactory import ElementFactory
from gaphor.UML import modelfactory as model
from gaphor.UML.umlfmt import format
from gaphor.UML.umllex import parse
__all__ = ['collection', 'context', 'diagram', 'element',... | from gaphor.UML import modelfactory as model
from gaphor.UML.collection import collection
from gaphor.UML.elementfactory import ElementFactory
from gaphor.UML.uml2 import *
from gaphor.UML.umlfmt import format
from gaphor.UML.umllex import parse
| from gaphor.UML.collection import collection
from gaphor.UML.uml2 import *
from gaphor.UML.elementfactory import ElementFactory
from gaphor.UML import modelfactory as model
from gaphor.UML.umlfmt import format
from gaphor.UML.umllex import parse
__all__ = ['collection', 'context', 'diagram', 'element', 'elementfactor... | <commit_before>from gaphor.UML.collection import collection
from gaphor.UML.uml2 import *
from gaphor.UML.elementfactory import ElementFactory
from gaphor.UML import modelfactory as model
from gaphor.UML.umlfmt import format
from gaphor.UML.umllex import parse
__all__ = ['collection', 'context', 'diagram', 'element',... |
e60563e28ce08a850809aef696a348c84359ece2 | gore/tests/test_api.py | gore/tests/test_api.py | import json
import pytest
from django.utils.encoding import force_text
from gore.models import Event
from gore.tests.data import exc_payload
@pytest.mark.django_db
def test_events_api(project, admin_client):
events = [
Event.objects.create_from_raven(project_id=project.id, body=json.loads(exc_payload))
... | import json
import pytest
from django.utils.encoding import force_text
from gore.models import Event
from gore.tests.data import exc_payload
@pytest.mark.django_db
def test_events_api(project, admin_client):
events = [
Event.objects.create_from_raven(project_id=project.id, body=json.loads(exc_payload))
... | Add search to events API | Add search to events API
| Python | mit | akx/gentry,akx/gentry,akx/gentry,akx/gentry | import json
import pytest
from django.utils.encoding import force_text
from gore.models import Event
from gore.tests.data import exc_payload
@pytest.mark.django_db
def test_events_api(project, admin_client):
events = [
Event.objects.create_from_raven(project_id=project.id, body=json.loads(exc_payload))
... | import json
import pytest
from django.utils.encoding import force_text
from gore.models import Event
from gore.tests.data import exc_payload
@pytest.mark.django_db
def test_events_api(project, admin_client):
events = [
Event.objects.create_from_raven(project_id=project.id, body=json.loads(exc_payload))
... | <commit_before>import json
import pytest
from django.utils.encoding import force_text
from gore.models import Event
from gore.tests.data import exc_payload
@pytest.mark.django_db
def test_events_api(project, admin_client):
events = [
Event.objects.create_from_raven(project_id=project.id, body=json.loads... | import json
import pytest
from django.utils.encoding import force_text
from gore.models import Event
from gore.tests.data import exc_payload
@pytest.mark.django_db
def test_events_api(project, admin_client):
events = [
Event.objects.create_from_raven(project_id=project.id, body=json.loads(exc_payload))
... | import json
import pytest
from django.utils.encoding import force_text
from gore.models import Event
from gore.tests.data import exc_payload
@pytest.mark.django_db
def test_events_api(project, admin_client):
events = [
Event.objects.create_from_raven(project_id=project.id, body=json.loads(exc_payload))
... | <commit_before>import json
import pytest
from django.utils.encoding import force_text
from gore.models import Event
from gore.tests.data import exc_payload
@pytest.mark.django_db
def test_events_api(project, admin_client):
events = [
Event.objects.create_from_raven(project_id=project.id, body=json.loads... |
61fe85842a0c932c4a8375f657eb06f406344ace | bumblebee/modules/caffeine.py | bumblebee/modules/caffeine.py | # pylint: disable=C0111,R0903
"""Enable/disable automatic screen locking.
Requires the following executables:
* xset
* notify-send
"""
import bumblebee.input
import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
super(Module, s... | #pylint: disable=C0111,R0903
"""Enable/disable automatic screen locking.
Requires the following executables:
* xdg-screensaver
* notify-send
"""
import bumblebee.input
import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
super... | Use xdg-screensaver instead of xset | Use xdg-screensaver instead of xset
| Python | mit | tobi-wan-kenobi/bumblebee-status,tobi-wan-kenobi/bumblebee-status | # pylint: disable=C0111,R0903
"""Enable/disable automatic screen locking.
Requires the following executables:
* xset
* notify-send
"""
import bumblebee.input
import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
super(Module, s... | #pylint: disable=C0111,R0903
"""Enable/disable automatic screen locking.
Requires the following executables:
* xdg-screensaver
* notify-send
"""
import bumblebee.input
import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
super... | <commit_before># pylint: disable=C0111,R0903
"""Enable/disable automatic screen locking.
Requires the following executables:
* xset
* notify-send
"""
import bumblebee.input
import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
... | #pylint: disable=C0111,R0903
"""Enable/disable automatic screen locking.
Requires the following executables:
* xdg-screensaver
* notify-send
"""
import bumblebee.input
import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
super... | # pylint: disable=C0111,R0903
"""Enable/disable automatic screen locking.
Requires the following executables:
* xset
* notify-send
"""
import bumblebee.input
import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
super(Module, s... | <commit_before># pylint: disable=C0111,R0903
"""Enable/disable automatic screen locking.
Requires the following executables:
* xset
* notify-send
"""
import bumblebee.input
import bumblebee.output
import bumblebee.engine
class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
... |
ea67ec01a1f91b44dd34d8c58921f8c29a4c054a | aragog/routing/client_error.py | aragog/routing/client_error.py | """
Client Error HTTP Status Callables
"""
class HTTP404(object):
"""
HTTP 404 Response
"""
def __call__(self, environ, start_response):
start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
return ['']
| """
Client Error HTTP Status Callables
"""
def HTTP404(environ, start_response):
"""
HTTP 404 Response
"""
start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
return ['']
| Convert HTTP404 to a function. | Convert HTTP404 to a function.
| Python | apache-2.0 | bramwelt/aragog | """
Client Error HTTP Status Callables
"""
class HTTP404(object):
"""
HTTP 404 Response
"""
def __call__(self, environ, start_response):
start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
return ['']
Convert HTTP404 to a function. | """
Client Error HTTP Status Callables
"""
def HTTP404(environ, start_response):
"""
HTTP 404 Response
"""
start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
return ['']
| <commit_before>"""
Client Error HTTP Status Callables
"""
class HTTP404(object):
"""
HTTP 404 Response
"""
def __call__(self, environ, start_response):
start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
return ['']
<commit_msg>Convert HTTP404 to a function.<commit_after... | """
Client Error HTTP Status Callables
"""
def HTTP404(environ, start_response):
"""
HTTP 404 Response
"""
start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
return ['']
| """
Client Error HTTP Status Callables
"""
class HTTP404(object):
"""
HTTP 404 Response
"""
def __call__(self, environ, start_response):
start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
return ['']
Convert HTTP404 to a function."""
Client Error HTTP Status Callables
"... | <commit_before>"""
Client Error HTTP Status Callables
"""
class HTTP404(object):
"""
HTTP 404 Response
"""
def __call__(self, environ, start_response):
start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
return ['']
<commit_msg>Convert HTTP404 to a function.<commit_after... |
c244b84def159bc4d4e281fe39ebe06886a109d2 | tests/__init__.py | tests/__init__.py | from django.conf import settings
from mock import Mock, patch
from unittest2 import TestCase
settings.configure(
DEFAULT_INDEX_TABLESPACE='',
)
class TestPreference(object):
def __init__(self, name, value, user=None):
self.name = name
self.value = value
self.user = user
def __eq_... | from django.conf import settings
from mock import Mock, patch
from unittest2 import TestCase
settings.configure()
class TestPreference(object):
def __init__(self, name, value, user=None):
self.name = name
self.value = value
self.user = user
def __eq__(self, other):
return sel... | Simplify configure of django settings | Simplify configure of django settings
| Python | mit | yola/drf-madprops | from django.conf import settings
from mock import Mock, patch
from unittest2 import TestCase
settings.configure(
DEFAULT_INDEX_TABLESPACE='',
)
class TestPreference(object):
def __init__(self, name, value, user=None):
self.name = name
self.value = value
self.user = user
def __eq_... | from django.conf import settings
from mock import Mock, patch
from unittest2 import TestCase
settings.configure()
class TestPreference(object):
def __init__(self, name, value, user=None):
self.name = name
self.value = value
self.user = user
def __eq__(self, other):
return sel... | <commit_before>from django.conf import settings
from mock import Mock, patch
from unittest2 import TestCase
settings.configure(
DEFAULT_INDEX_TABLESPACE='',
)
class TestPreference(object):
def __init__(self, name, value, user=None):
self.name = name
self.value = value
self.user = user... | from django.conf import settings
from mock import Mock, patch
from unittest2 import TestCase
settings.configure()
class TestPreference(object):
def __init__(self, name, value, user=None):
self.name = name
self.value = value
self.user = user
def __eq__(self, other):
return sel... | from django.conf import settings
from mock import Mock, patch
from unittest2 import TestCase
settings.configure(
DEFAULT_INDEX_TABLESPACE='',
)
class TestPreference(object):
def __init__(self, name, value, user=None):
self.name = name
self.value = value
self.user = user
def __eq_... | <commit_before>from django.conf import settings
from mock import Mock, patch
from unittest2 import TestCase
settings.configure(
DEFAULT_INDEX_TABLESPACE='',
)
class TestPreference(object):
def __init__(self, name, value, user=None):
self.name = name
self.value = value
self.user = user... |
cdb8dc9b027338b9facae047dd7c303944205a05 | dask_mesos/__init__.py | dask_mesos/__init__.py | from __future__ import absolute_import, division, print_function
import logging
logging.basicConfig(level=logging.ERROR,
format='%(relativeCreated)6d %(threadName)s %(message)s')
from .satyr import get
from .delayed import mesos
| from __future__ import absolute_import, division, print_function
import logging
logging.basicConfig(level=logging.INFO,
format='%(relativeCreated)6d %(threadName)s %(message)s')
from .satyr import get
from .delayed import mesos
| Set default logging level to INFO | Set default logging level to INFO
| Python | apache-2.0 | lensacom/dask.mesos | from __future__ import absolute_import, division, print_function
import logging
logging.basicConfig(level=logging.ERROR,
format='%(relativeCreated)6d %(threadName)s %(message)s')
from .satyr import get
from .delayed import mesos
Set default logging level to INFO | from __future__ import absolute_import, division, print_function
import logging
logging.basicConfig(level=logging.INFO,
format='%(relativeCreated)6d %(threadName)s %(message)s')
from .satyr import get
from .delayed import mesos
| <commit_before>from __future__ import absolute_import, division, print_function
import logging
logging.basicConfig(level=logging.ERROR,
format='%(relativeCreated)6d %(threadName)s %(message)s')
from .satyr import get
from .delayed import mesos
<commit_msg>Set default logging level to INFO<commit_... | from __future__ import absolute_import, division, print_function
import logging
logging.basicConfig(level=logging.INFO,
format='%(relativeCreated)6d %(threadName)s %(message)s')
from .satyr import get
from .delayed import mesos
| from __future__ import absolute_import, division, print_function
import logging
logging.basicConfig(level=logging.ERROR,
format='%(relativeCreated)6d %(threadName)s %(message)s')
from .satyr import get
from .delayed import mesos
Set default logging level to INFOfrom __future__ import absolute_imp... | <commit_before>from __future__ import absolute_import, division, print_function
import logging
logging.basicConfig(level=logging.ERROR,
format='%(relativeCreated)6d %(threadName)s %(message)s')
from .satyr import get
from .delayed import mesos
<commit_msg>Set default logging level to INFO<commit_... |
0f54bb7a1a26bb3e7192b30cc426fbaeb92caaed | tests/utils/test_settings.py | tests/utils/test_settings.py | from app.models import Setting
from tests.general import AppTestCase
class TestAppSettings(AppTestCase):
def test_setting_creation(self):
self.app.config['SETTINGS']['foo'] = 'bar'
setting = Setting.query.filter_by(name='foo').first()
self.assertEqual(setting.value, 'bar')
self.a... | from app import db, cache
from app.models import Setting
from tests.general import AppTestCase
class TestAppSettings(AppTestCase):
def test_setitem(self):
self.app.config['SETTINGS']['foo'] = 'bar'
setting = Setting.query.filter_by(name='foo').first()
self.assertEqual(setting.value, 'bar'... | Add __getitem__ test for AppSettings | Add __getitem__ test for AppSettings
| Python | mit | Encrylize/flask-blogger,Encrylize/flask-blogger,Encrylize/flask-blogger | from app.models import Setting
from tests.general import AppTestCase
class TestAppSettings(AppTestCase):
def test_setting_creation(self):
self.app.config['SETTINGS']['foo'] = 'bar'
setting = Setting.query.filter_by(name='foo').first()
self.assertEqual(setting.value, 'bar')
self.a... | from app import db, cache
from app.models import Setting
from tests.general import AppTestCase
class TestAppSettings(AppTestCase):
def test_setitem(self):
self.app.config['SETTINGS']['foo'] = 'bar'
setting = Setting.query.filter_by(name='foo').first()
self.assertEqual(setting.value, 'bar'... | <commit_before>from app.models import Setting
from tests.general import AppTestCase
class TestAppSettings(AppTestCase):
def test_setting_creation(self):
self.app.config['SETTINGS']['foo'] = 'bar'
setting = Setting.query.filter_by(name='foo').first()
self.assertEqual(setting.value, 'bar')
... | from app import db, cache
from app.models import Setting
from tests.general import AppTestCase
class TestAppSettings(AppTestCase):
def test_setitem(self):
self.app.config['SETTINGS']['foo'] = 'bar'
setting = Setting.query.filter_by(name='foo').first()
self.assertEqual(setting.value, 'bar'... | from app.models import Setting
from tests.general import AppTestCase
class TestAppSettings(AppTestCase):
def test_setting_creation(self):
self.app.config['SETTINGS']['foo'] = 'bar'
setting = Setting.query.filter_by(name='foo').first()
self.assertEqual(setting.value, 'bar')
self.a... | <commit_before>from app.models import Setting
from tests.general import AppTestCase
class TestAppSettings(AppTestCase):
def test_setting_creation(self):
self.app.config['SETTINGS']['foo'] = 'bar'
setting = Setting.query.filter_by(name='foo').first()
self.assertEqual(setting.value, 'bar')
... |
fbbfe256cd23f87e5aad1dc4858c5e7c7753352b | cmd2/__init__.py | cmd2/__init__.py | #
# -*- coding: utf-8 -*-
| #
# -*- coding: utf-8 -*-
from .cmd2 import __version__, Cmd, AddSubmenu, CmdResult, categorize
from .cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category
| Add default imports back in | Add default imports back in
| Python | mit | python-cmd2/cmd2,python-cmd2/cmd2 | #
# -*- coding: utf-8 -*-
Add default imports back in | #
# -*- coding: utf-8 -*-
from .cmd2 import __version__, Cmd, AddSubmenu, CmdResult, categorize
from .cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category
| <commit_before>#
# -*- coding: utf-8 -*-
<commit_msg>Add default imports back in<commit_after> | #
# -*- coding: utf-8 -*-
from .cmd2 import __version__, Cmd, AddSubmenu, CmdResult, categorize
from .cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category
| #
# -*- coding: utf-8 -*-
Add default imports back in#
# -*- coding: utf-8 -*-
from .cmd2 import __version__, Cmd, AddSubmenu, CmdResult, categorize
from .cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category
| <commit_before>#
# -*- coding: utf-8 -*-
<commit_msg>Add default imports back in<commit_after>#
# -*- coding: utf-8 -*-
from .cmd2 import __version__, Cmd, AddSubmenu, CmdResult, categorize
from .cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category
|
c7b69d7248c37e984aac1df64e44ae5037d3fad5 | mysite/deployment_settings.py | mysite/deployment_settings.py | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=['all@openhatch.org']
INVITE_MODE=True # Enabled on production site
INVITATIONS_PER_USER=20
TEMPLTE_DEBUG=False
| from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('All OH devs', 'devel@openhatch.org'),
]
INVITE_MODE=True # Enabled on production site
INVITATIONS_PER_USER=20
TEMPLTE_DEBUG=False
| Correct the way we set ADMINS | Correct the way we set ADMINS
| Python | agpl-3.0 | sudheesh001/oh-mainline,moijes12/oh-mainline,SnappleCap/oh-mainline,vipul-sharma20/oh-mainline,mzdaniel/oh-mainline,campbe13/openhatch,sudheesh001/oh-mainline,sudheesh001/oh-mainline,jledbetter/openhatch,vipul-sharma20/oh-mainline,SnappleCap/oh-mainline,SnappleCap/oh-mainline,sudheesh001/oh-mainline,ehashman/oh-mainlin... | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=['all@openhatch.org']
INVITE_MODE=True # Enabled on production site
INVITATIONS_PER_USER=20
TEMPLTE_DEBUG=False
Correct the way we set ADMINS | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('All OH devs', 'devel@openhatch.org'),
]
INVITE_MODE=True # Enabled on production site
INVITATIONS_PER_USER=20
TEMPLTE_DEBUG=False
| <commit_before>from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=['all@openhatch.org']
INVITE_MODE=True # Enabled on production site
INVITATIONS_PER_USER=20
TEMPLTE_DEBUG=False
<commit_msg>Correct the way we set ADMINS<commit_after> | from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('All OH devs', 'devel@openhatch.org'),
]
INVITE_MODE=True # Enabled on production site
INVITATIONS_PER_USER=20
TEMPLTE_DEBUG=False
| from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=['all@openhatch.org']
INVITE_MODE=True # Enabled on production site
INVITATIONS_PER_USER=20
TEMPLTE_DEBUG=False
Correct the way we set ADMINSfrom settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=[
('All OH ... | <commit_before>from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0VOocAg'
DEBUG=False
ADMINS=['all@openhatch.org']
INVITE_MODE=True # Enabled on production site
INVITATIONS_PER_USER=20
TEMPLTE_DEBUG=False
<commit_msg>Correct the way we set ADMINS<commit_after>from settings import *
OHLOH_API_KEY='SXvLaGPJFaKXQC0V... |
3ac0deb7a51043b706ec242bad10a2be77794983 | coffee/config.py | coffee/config.py | import os
app_config = {
'DEBUG': bool(os.getenv('DEBUG', True)),
'REDIS_DB': int(os.getenv('REDIS_DB', 1)),
'REDIS_HOST': os.getenv('REDIS_HOST', '127.0.0.1'),
'REDIS_PORT': int(os.getenv('REDIS_PORT', 6379)),
'REDIS_PW': os.getenv('REDIS_PW', None),
'SERVER_HOST': os.getenv('SERVER_HOST', '0.... | import os
app_config = {
'DEBUG': bool(os.getenv('DEBUG', True)),
'REDIS_DB': int(os.getenv('REDIS_DB', 1)),
'REDIS_HOST': os.getenv('REDIS_HOST', '127.0.0.1'),
'REDIS_PORT': int(os.getenv('REDIS_PORT', 6379)),
'REDIS_PW': os.getenv('REDIS_PW', None),
'SERVER_HOST': os.getenv('SERVER_HOST', '12... | Set default server host address to 127.0.0.1 | Set default server host address to 127.0.0.1
| Python | mit | webkom/coffee,webkom/coffee | import os
app_config = {
'DEBUG': bool(os.getenv('DEBUG', True)),
'REDIS_DB': int(os.getenv('REDIS_DB', 1)),
'REDIS_HOST': os.getenv('REDIS_HOST', '127.0.0.1'),
'REDIS_PORT': int(os.getenv('REDIS_PORT', 6379)),
'REDIS_PW': os.getenv('REDIS_PW', None),
'SERVER_HOST': os.getenv('SERVER_HOST', '0.... | import os
app_config = {
'DEBUG': bool(os.getenv('DEBUG', True)),
'REDIS_DB': int(os.getenv('REDIS_DB', 1)),
'REDIS_HOST': os.getenv('REDIS_HOST', '127.0.0.1'),
'REDIS_PORT': int(os.getenv('REDIS_PORT', 6379)),
'REDIS_PW': os.getenv('REDIS_PW', None),
'SERVER_HOST': os.getenv('SERVER_HOST', '12... | <commit_before>import os
app_config = {
'DEBUG': bool(os.getenv('DEBUG', True)),
'REDIS_DB': int(os.getenv('REDIS_DB', 1)),
'REDIS_HOST': os.getenv('REDIS_HOST', '127.0.0.1'),
'REDIS_PORT': int(os.getenv('REDIS_PORT', 6379)),
'REDIS_PW': os.getenv('REDIS_PW', None),
'SERVER_HOST': os.getenv('SE... | import os
app_config = {
'DEBUG': bool(os.getenv('DEBUG', True)),
'REDIS_DB': int(os.getenv('REDIS_DB', 1)),
'REDIS_HOST': os.getenv('REDIS_HOST', '127.0.0.1'),
'REDIS_PORT': int(os.getenv('REDIS_PORT', 6379)),
'REDIS_PW': os.getenv('REDIS_PW', None),
'SERVER_HOST': os.getenv('SERVER_HOST', '12... | import os
app_config = {
'DEBUG': bool(os.getenv('DEBUG', True)),
'REDIS_DB': int(os.getenv('REDIS_DB', 1)),
'REDIS_HOST': os.getenv('REDIS_HOST', '127.0.0.1'),
'REDIS_PORT': int(os.getenv('REDIS_PORT', 6379)),
'REDIS_PW': os.getenv('REDIS_PW', None),
'SERVER_HOST': os.getenv('SERVER_HOST', '0.... | <commit_before>import os
app_config = {
'DEBUG': bool(os.getenv('DEBUG', True)),
'REDIS_DB': int(os.getenv('REDIS_DB', 1)),
'REDIS_HOST': os.getenv('REDIS_HOST', '127.0.0.1'),
'REDIS_PORT': int(os.getenv('REDIS_PORT', 6379)),
'REDIS_PW': os.getenv('REDIS_PW', None),
'SERVER_HOST': os.getenv('SE... |
1557de38bcc9fa4099655c210d7e2daf7c19d715 | task/models.py | task/models.py | from django.db import models
from django.conf import settings
class Task(models.Model):
title = models.CharField(max_length=50, unique=True)
created_at = models.DateField()
status = models.CharField(max_length=30, choices=settings.TASK_CHOICES)
def __unicode__(self): # pragma: no cover
retur... | import datetime
from django.db import models
from django.conf import settings
class Task(models.Model):
title = models.CharField(max_length=50, unique=True)
created_at = models.DateTimeField(auto_now_add=True)
status = models.CharField(max_length=30, choices=settings.TASK_CHOICES)
class Meta:
... | Set order getting the list of tasks | Set order getting the list of tasks
| Python | mit | rosadurante/to_do,rosadurante/to_do | from django.db import models
from django.conf import settings
class Task(models.Model):
title = models.CharField(max_length=50, unique=True)
created_at = models.DateField()
status = models.CharField(max_length=30, choices=settings.TASK_CHOICES)
def __unicode__(self): # pragma: no cover
retur... | import datetime
from django.db import models
from django.conf import settings
class Task(models.Model):
title = models.CharField(max_length=50, unique=True)
created_at = models.DateTimeField(auto_now_add=True)
status = models.CharField(max_length=30, choices=settings.TASK_CHOICES)
class Meta:
... | <commit_before>from django.db import models
from django.conf import settings
class Task(models.Model):
title = models.CharField(max_length=50, unique=True)
created_at = models.DateField()
status = models.CharField(max_length=30, choices=settings.TASK_CHOICES)
def __unicode__(self): # pragma: no cove... | import datetime
from django.db import models
from django.conf import settings
class Task(models.Model):
title = models.CharField(max_length=50, unique=True)
created_at = models.DateTimeField(auto_now_add=True)
status = models.CharField(max_length=30, choices=settings.TASK_CHOICES)
class Meta:
... | from django.db import models
from django.conf import settings
class Task(models.Model):
title = models.CharField(max_length=50, unique=True)
created_at = models.DateField()
status = models.CharField(max_length=30, choices=settings.TASK_CHOICES)
def __unicode__(self): # pragma: no cover
retur... | <commit_before>from django.db import models
from django.conf import settings
class Task(models.Model):
title = models.CharField(max_length=50, unique=True)
created_at = models.DateField()
status = models.CharField(max_length=30, choices=settings.TASK_CHOICES)
def __unicode__(self): # pragma: no cove... |
172b2aaf505b1971bceb934e5e3d9e5dce1acbb1 | api/views.py | api/views.py | # coding=utf-8
from rest_framework import viewsets
from .models import AirCondition, AirAverage
from .serializers import AirAverageSerializer, AirConditionSerializer
class AirConditionViewSets(viewsets.ReadOnlyModelViewSet):
queryset = AirCondition.objects.all().order_by('-time')[:24] # 24 hours
serialize... | # coding=utf-8
from rest_framework import viewsets
from .models import AirCondition, AirAverage
from .serializers import AirAverageSerializer, AirConditionSerializer
class AirConditionViewSets(viewsets.ReadOnlyModelViewSet):
queryset = AirCondition.objects.all().order_by('-time')[:24] # 24 hours
serialize... | Add pm2.5 avg view api | Add pm2.5 avg view api
| Python | mit | banbanchs/leda,banbanchs/leda,banbanchs/leda | # coding=utf-8
from rest_framework import viewsets
from .models import AirCondition, AirAverage
from .serializers import AirAverageSerializer, AirConditionSerializer
class AirConditionViewSets(viewsets.ReadOnlyModelViewSet):
queryset = AirCondition.objects.all().order_by('-time')[:24] # 24 hours
serialize... | # coding=utf-8
from rest_framework import viewsets
from .models import AirCondition, AirAverage
from .serializers import AirAverageSerializer, AirConditionSerializer
class AirConditionViewSets(viewsets.ReadOnlyModelViewSet):
queryset = AirCondition.objects.all().order_by('-time')[:24] # 24 hours
serialize... | <commit_before># coding=utf-8
from rest_framework import viewsets
from .models import AirCondition, AirAverage
from .serializers import AirAverageSerializer, AirConditionSerializer
class AirConditionViewSets(viewsets.ReadOnlyModelViewSet):
queryset = AirCondition.objects.all().order_by('-time')[:24] # 24 hour... | # coding=utf-8
from rest_framework import viewsets
from .models import AirCondition, AirAverage
from .serializers import AirAverageSerializer, AirConditionSerializer
class AirConditionViewSets(viewsets.ReadOnlyModelViewSet):
queryset = AirCondition.objects.all().order_by('-time')[:24] # 24 hours
serialize... | # coding=utf-8
from rest_framework import viewsets
from .models import AirCondition, AirAverage
from .serializers import AirAverageSerializer, AirConditionSerializer
class AirConditionViewSets(viewsets.ReadOnlyModelViewSet):
queryset = AirCondition.objects.all().order_by('-time')[:24] # 24 hours
serialize... | <commit_before># coding=utf-8
from rest_framework import viewsets
from .models import AirCondition, AirAverage
from .serializers import AirAverageSerializer, AirConditionSerializer
class AirConditionViewSets(viewsets.ReadOnlyModelViewSet):
queryset = AirCondition.objects.all().order_by('-time')[:24] # 24 hour... |
4de03c57bf4f4995eb8c8859e0a40b7c5fc9942b | desktop/libs/libzookeeper/src/libzookeeper/models.py | desktop/libs/libzookeeper/src/libzookeeper/models.py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | Enable Kerberos automatically based on HDFS security | [libzookeeper] Enable Kerberos automatically based on HDFS security
We don't need another property that way and Kerberos is a all or nothing
setup.
Even if HDFS is not used in Hue, the default hue.ini has security set
to false.
| Python | apache-2.0 | pratikmallya/hue,jjmleiro/hue,lumig242/Hue-Integration-with-CDAP,cloudera/hue,pratikmallya/hue,xiangel/hue,Peddle/hue,x303597316/hue,cloudera/hue,rahul67/hue,kawamon/hue,yongshengwang/hue,MobinRanjbar/hue,x303597316/hue,xq262144/hue,jayceyxc/hue,mapr/hue,yongshengwang/hue,pratikmallya/hue,sanjeevtripurari/hue,lumig242/... | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | <commit_before>#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "Li... | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | <commit_before>#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "Li... |
5bd9af7c35603cca49303f56096bc279234e547d | ci/fix_paths.py | ci/fix_paths.py | import distutils.sysconfig
from glob import glob
import os
from os.path import join as pjoin, basename
from shutil import copy
from sys import platform
def main():
"""
Copy HDF5 DLLs into installed h5py package
"""
# This is the function Tox also uses to locate site-packages (Apr 2019)
sitepackages... | import distutils.sysconfig
from glob import glob
import os
from os.path import join as pjoin, basename
from shutil import copy
from sys import platform
def main():
"""
Copy HDF5 DLLs into installed h5py package
"""
# This is the function Tox also uses to locate site-packages (Apr 2019)
sitepackages... | Use plat_specific site-packages dir in CI script | Use plat_specific site-packages dir in CI script
| Python | bsd-3-clause | h5py/h5py,h5py/h5py,h5py/h5py | import distutils.sysconfig
from glob import glob
import os
from os.path import join as pjoin, basename
from shutil import copy
from sys import platform
def main():
"""
Copy HDF5 DLLs into installed h5py package
"""
# This is the function Tox also uses to locate site-packages (Apr 2019)
sitepackages... | import distutils.sysconfig
from glob import glob
import os
from os.path import join as pjoin, basename
from shutil import copy
from sys import platform
def main():
"""
Copy HDF5 DLLs into installed h5py package
"""
# This is the function Tox also uses to locate site-packages (Apr 2019)
sitepackages... | <commit_before>import distutils.sysconfig
from glob import glob
import os
from os.path import join as pjoin, basename
from shutil import copy
from sys import platform
def main():
"""
Copy HDF5 DLLs into installed h5py package
"""
# This is the function Tox also uses to locate site-packages (Apr 2019)
... | import distutils.sysconfig
from glob import glob
import os
from os.path import join as pjoin, basename
from shutil import copy
from sys import platform
def main():
"""
Copy HDF5 DLLs into installed h5py package
"""
# This is the function Tox also uses to locate site-packages (Apr 2019)
sitepackages... | import distutils.sysconfig
from glob import glob
import os
from os.path import join as pjoin, basename
from shutil import copy
from sys import platform
def main():
"""
Copy HDF5 DLLs into installed h5py package
"""
# This is the function Tox also uses to locate site-packages (Apr 2019)
sitepackages... | <commit_before>import distutils.sysconfig
from glob import glob
import os
from os.path import join as pjoin, basename
from shutil import copy
from sys import platform
def main():
"""
Copy HDF5 DLLs into installed h5py package
"""
# This is the function Tox also uses to locate site-packages (Apr 2019)
... |
2405af4942781f997bf93501850e41529d4be072 | py/test/selenium/webdriver/common/proxy_tests.py | py/test/selenium/webdriver/common/proxy_tests.py | #!/usr/bin/python
# Copyright 2012 Software Freedom Conservancy.
#
# 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 appl... | #!/usr/bin/python
# Copyright 2012 Software Freedom Conservancy.
#
# 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 appl... | Fix test as well :) | DanielWagnerHall: Fix test as well :)
git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@17825 07704840-8298-11de-bf8c-fd130f914ac9
| Python | apache-2.0 | virajs/selenium-1,virajs/selenium-1,winhamwr/selenium,virajs/selenium-1,virajs/selenium-1,winhamwr/selenium,virajs/selenium-1,winhamwr/selenium,winhamwr/selenium,winhamwr/selenium,winhamwr/selenium,virajs/selenium-1,winhamwr/selenium,virajs/selenium-1,virajs/selenium-1,virajs/selenium-1,winhamwr/selenium | #!/usr/bin/python
# Copyright 2012 Software Freedom Conservancy.
#
# 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 appl... | #!/usr/bin/python
# Copyright 2012 Software Freedom Conservancy.
#
# 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 appl... | <commit_before>#!/usr/bin/python
# Copyright 2012 Software Freedom Conservancy.
#
# 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 r... | #!/usr/bin/python
# Copyright 2012 Software Freedom Conservancy.
#
# 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 appl... | #!/usr/bin/python
# Copyright 2012 Software Freedom Conservancy.
#
# 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 appl... | <commit_before>#!/usr/bin/python
# Copyright 2012 Software Freedom Conservancy.
#
# 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 r... |
3a89181d0adb53a2a3d428485d5e3deaeb950a02 | fixedwidthwriter/__init__.py | fixedwidthwriter/__init__.py | # coding: utf-8
from decimal import Decimal
class FixedWidthWriter():
def __init__(self, fd, fields, line_ending='linux'):
self.fd = fd
self.fields = fields
if line_ending == 'linux':
self.line_ending = '\n'
elif line_ending == 'windows':
self.line_ending =... | # coding: utf-8
from decimal import Decimal
class FixedWidthWriter():
def __init__(self, fd, fields, line_ending='linux'):
self.fd = fd
self.fields = fields
if line_ending == 'linux':
self.line_ending = '\n'
elif line_ending == 'windows':
self.line_ending =... | Remove leading underscores from variables. | Remove leading underscores from variables.
| Python | mit | ArthurPBressan/py-fixedwidthwriter,HardDiskD/py-fixedwidthwriter | # coding: utf-8
from decimal import Decimal
class FixedWidthWriter():
def __init__(self, fd, fields, line_ending='linux'):
self.fd = fd
self.fields = fields
if line_ending == 'linux':
self.line_ending = '\n'
elif line_ending == 'windows':
self.line_ending =... | # coding: utf-8
from decimal import Decimal
class FixedWidthWriter():
def __init__(self, fd, fields, line_ending='linux'):
self.fd = fd
self.fields = fields
if line_ending == 'linux':
self.line_ending = '\n'
elif line_ending == 'windows':
self.line_ending =... | <commit_before># coding: utf-8
from decimal import Decimal
class FixedWidthWriter():
def __init__(self, fd, fields, line_ending='linux'):
self.fd = fd
self.fields = fields
if line_ending == 'linux':
self.line_ending = '\n'
elif line_ending == 'windows':
sel... | # coding: utf-8
from decimal import Decimal
class FixedWidthWriter():
def __init__(self, fd, fields, line_ending='linux'):
self.fd = fd
self.fields = fields
if line_ending == 'linux':
self.line_ending = '\n'
elif line_ending == 'windows':
self.line_ending =... | # coding: utf-8
from decimal import Decimal
class FixedWidthWriter():
def __init__(self, fd, fields, line_ending='linux'):
self.fd = fd
self.fields = fields
if line_ending == 'linux':
self.line_ending = '\n'
elif line_ending == 'windows':
self.line_ending =... | <commit_before># coding: utf-8
from decimal import Decimal
class FixedWidthWriter():
def __init__(self, fd, fields, line_ending='linux'):
self.fd = fd
self.fields = fields
if line_ending == 'linux':
self.line_ending = '\n'
elif line_ending == 'windows':
sel... |
7579cc3058ad172cb058fbefd43f756a2316e256 | examples/modelzoo/download_model.py | examples/modelzoo/download_model.py | #!/usr/bin/env python
from __future__ import print_function
import argparse
import six
parser = argparse.ArgumentParser(
descriptor='Download a Caffe reference model')
parser.add_argument('model_type',
help='Model type (alexnet, caffenet, googlenet)')
args = parser.parse_args()
if args.model... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import six
parser = argparse.ArgumentParser(
description='Download a Caffe reference model')
parser.add_argument('model_type', choices=('alexnet', 'caffenet', 'googlenet'),
help='Model type (alexnet, caffenet, googlen... | Fix argparse of caffe model download script | Fix argparse of caffe model download script
| Python | mit | bayerj/chainer,kashif/chainer,AlpacaDB/chainer,AlpacaDB/chainer,kiyukuta/chainer,okuta/chainer,umitanuki/chainer,tkerola/chainer,aonotas/chainer,cupy/cupy,ktnyt/chainer,kikusu/chainer,tscohen/chainer,wkentaro/chainer,okuta/chainer,1986ks/chainer,Kaisuke5/chainer,muupan/chainer,kikusu/chainer,okuta/chainer,ktnyt/chainer... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import six
parser = argparse.ArgumentParser(
descriptor='Download a Caffe reference model')
parser.add_argument('model_type',
help='Model type (alexnet, caffenet, googlenet)')
args = parser.parse_args()
if args.model... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import six
parser = argparse.ArgumentParser(
description='Download a Caffe reference model')
parser.add_argument('model_type', choices=('alexnet', 'caffenet', 'googlenet'),
help='Model type (alexnet, caffenet, googlen... | <commit_before>#!/usr/bin/env python
from __future__ import print_function
import argparse
import six
parser = argparse.ArgumentParser(
descriptor='Download a Caffe reference model')
parser.add_argument('model_type',
help='Model type (alexnet, caffenet, googlenet)')
args = parser.parse_args()... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import six
parser = argparse.ArgumentParser(
description='Download a Caffe reference model')
parser.add_argument('model_type', choices=('alexnet', 'caffenet', 'googlenet'),
help='Model type (alexnet, caffenet, googlen... | #!/usr/bin/env python
from __future__ import print_function
import argparse
import six
parser = argparse.ArgumentParser(
descriptor='Download a Caffe reference model')
parser.add_argument('model_type',
help='Model type (alexnet, caffenet, googlenet)')
args = parser.parse_args()
if args.model... | <commit_before>#!/usr/bin/env python
from __future__ import print_function
import argparse
import six
parser = argparse.ArgumentParser(
descriptor='Download a Caffe reference model')
parser.add_argument('model_type',
help='Model type (alexnet, caffenet, googlenet)')
args = parser.parse_args()... |
da2e34ca3371f0898df8b3181ba98132bd9a26e4 | txircd/modbase.py | txircd/modbase.py | # The purpose of this file is to provide base classes with the needed functions
# already defined; this allows us to guarantee that any exceptions raised
# during function calls are a problem with the module and not just that the
# particular function isn't defined.
class Module(object):
def hook(self, base):
self.... | # The purpose of this file is to provide base classes with the needed functions
# already defined; this allows us to guarantee that any exceptions raised
# during function calls are a problem with the module and not just that the
# particular function isn't defined.
class Module(object):
def hook(self, base):
self.... | Add a function for commands to process parameters | Add a function for commands to process parameters
| Python | bsd-3-clause | ElementalAlchemist/txircd,DesertBus/txircd,Heufneutje/txircd | # The purpose of this file is to provide base classes with the needed functions
# already defined; this allows us to guarantee that any exceptions raised
# during function calls are a problem with the module and not just that the
# particular function isn't defined.
class Module(object):
def hook(self, base):
self.... | # The purpose of this file is to provide base classes with the needed functions
# already defined; this allows us to guarantee that any exceptions raised
# during function calls are a problem with the module and not just that the
# particular function isn't defined.
class Module(object):
def hook(self, base):
self.... | <commit_before># The purpose of this file is to provide base classes with the needed functions
# already defined; this allows us to guarantee that any exceptions raised
# during function calls are a problem with the module and not just that the
# particular function isn't defined.
class Module(object):
def hook(self,... | # The purpose of this file is to provide base classes with the needed functions
# already defined; this allows us to guarantee that any exceptions raised
# during function calls are a problem with the module and not just that the
# particular function isn't defined.
class Module(object):
def hook(self, base):
self.... | # The purpose of this file is to provide base classes with the needed functions
# already defined; this allows us to guarantee that any exceptions raised
# during function calls are a problem with the module and not just that the
# particular function isn't defined.
class Module(object):
def hook(self, base):
self.... | <commit_before># The purpose of this file is to provide base classes with the needed functions
# already defined; this allows us to guarantee that any exceptions raised
# during function calls are a problem with the module and not just that the
# particular function isn't defined.
class Module(object):
def hook(self,... |
2db334e452e2ee2d5f0cbc516dc6cb04b61e598d | yargy/labels.py | yargy/labels.py | GENDERS = ("masc", "femn", "neut", "Ms-f")
def gram_label(token, value, stack):
return value in token.grammemes
def gram_not_label(token, value, stack):
return not value in token.grammemes
def gender_match_label(token, index, stack, genders=GENDERS):
results = ((g in t.grammemes for g in genders) for t i... | GENDERS = ("masc", "femn", "neut", "Ms-f", "GNdr")
def gram_label(token, value, stack):
return value in token.grammemes
def gram_not_label(token, value, stack):
return not value in token.grammemes
def gender_match_label(token, index, stack, genders=GENDERS):
results = ((g in t.grammemes for g in genders)... | Check for `GNdr` grammeme in `gender-match` label | Check for `GNdr` grammeme in `gender-match` label
| Python | mit | bureaucratic-labs/yargy | GENDERS = ("masc", "femn", "neut", "Ms-f")
def gram_label(token, value, stack):
return value in token.grammemes
def gram_not_label(token, value, stack):
return not value in token.grammemes
def gender_match_label(token, index, stack, genders=GENDERS):
results = ((g in t.grammemes for g in genders) for t i... | GENDERS = ("masc", "femn", "neut", "Ms-f", "GNdr")
def gram_label(token, value, stack):
return value in token.grammemes
def gram_not_label(token, value, stack):
return not value in token.grammemes
def gender_match_label(token, index, stack, genders=GENDERS):
results = ((g in t.grammemes for g in genders)... | <commit_before>GENDERS = ("masc", "femn", "neut", "Ms-f")
def gram_label(token, value, stack):
return value in token.grammemes
def gram_not_label(token, value, stack):
return not value in token.grammemes
def gender_match_label(token, index, stack, genders=GENDERS):
results = ((g in t.grammemes for g in g... | GENDERS = ("masc", "femn", "neut", "Ms-f", "GNdr")
def gram_label(token, value, stack):
return value in token.grammemes
def gram_not_label(token, value, stack):
return not value in token.grammemes
def gender_match_label(token, index, stack, genders=GENDERS):
results = ((g in t.grammemes for g in genders)... | GENDERS = ("masc", "femn", "neut", "Ms-f")
def gram_label(token, value, stack):
return value in token.grammemes
def gram_not_label(token, value, stack):
return not value in token.grammemes
def gender_match_label(token, index, stack, genders=GENDERS):
results = ((g in t.grammemes for g in genders) for t i... | <commit_before>GENDERS = ("masc", "femn", "neut", "Ms-f")
def gram_label(token, value, stack):
return value in token.grammemes
def gram_not_label(token, value, stack):
return not value in token.grammemes
def gender_match_label(token, index, stack, genders=GENDERS):
results = ((g in t.grammemes for g in g... |
a44ec4543fc6951cd45ba3c1696e428e36a9c161 | commands/say.py | commands/say.py | from CommandTemplate import CommandTemplate
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['say', 'do', 'notice']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(sel... | from CommandTemplate import CommandTemplate
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['say', 'do', 'notice']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(sel... | Make sure the target of Say isn't in Unicode, otherwise Twisted complains | Make sure the target of Say isn't in Unicode, otherwise Twisted complains
| Python | mit | Didero/DideRobot | from CommandTemplate import CommandTemplate
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['say', 'do', 'notice']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(sel... | from CommandTemplate import CommandTemplate
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['say', 'do', 'notice']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(sel... | <commit_before>from CommandTemplate import CommandTemplate
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['say', 'do', 'notice']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
... | from CommandTemplate import CommandTemplate
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['say', 'do', 'notice']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(sel... | from CommandTemplate import CommandTemplate
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['say', 'do', 'notice']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
def execute(sel... | <commit_before>from CommandTemplate import CommandTemplate
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['say', 'do', 'notice']
helptext = "Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')"
adminOnly = True
showInCommandList = False
... |
42c2389c88fc52e186079df1c426af429537ed0e | io_EDM/__init__.py | io_EDM/__init__.py |
bl_info = {
'name': "Import: .EDM model files",
'description': "Importing of .EDM model files",
'author': "Nicholas Devenish",
'version': (0,0,1),
'blender': (2, 78, 0),
'location': "File > Import/Export > .EDM Files",
'category': 'Import-Export',
}
try:
import bpy
def register():
from .io_oper... |
bl_info = {
'name': "Import: .EDM model files",
'description': "Importing of .EDM model files",
'author': "Nicholas Devenish",
'version': (0,3,0),
'blender': (2, 78, 0),
'location': "File > Import/Export > .EDM Files",
'category': 'Import-Export',
}
try:
import bpy
def register():
from .io_oper... | Update blender plugin version to the next release number | Update blender plugin version to the next release number
| Python | mit | ndevenish/Blender_ioEDM,ndevenish/Blender_ioEDM |
bl_info = {
'name': "Import: .EDM model files",
'description': "Importing of .EDM model files",
'author': "Nicholas Devenish",
'version': (0,0,1),
'blender': (2, 78, 0),
'location': "File > Import/Export > .EDM Files",
'category': 'Import-Export',
}
try:
import bpy
def register():
from .io_oper... |
bl_info = {
'name': "Import: .EDM model files",
'description': "Importing of .EDM model files",
'author': "Nicholas Devenish",
'version': (0,3,0),
'blender': (2, 78, 0),
'location': "File > Import/Export > .EDM Files",
'category': 'Import-Export',
}
try:
import bpy
def register():
from .io_oper... | <commit_before>
bl_info = {
'name': "Import: .EDM model files",
'description': "Importing of .EDM model files",
'author': "Nicholas Devenish",
'version': (0,0,1),
'blender': (2, 78, 0),
'location': "File > Import/Export > .EDM Files",
'category': 'Import-Export',
}
try:
import bpy
def register():
... |
bl_info = {
'name': "Import: .EDM model files",
'description': "Importing of .EDM model files",
'author': "Nicholas Devenish",
'version': (0,3,0),
'blender': (2, 78, 0),
'location': "File > Import/Export > .EDM Files",
'category': 'Import-Export',
}
try:
import bpy
def register():
from .io_oper... |
bl_info = {
'name': "Import: .EDM model files",
'description': "Importing of .EDM model files",
'author': "Nicholas Devenish",
'version': (0,0,1),
'blender': (2, 78, 0),
'location': "File > Import/Export > .EDM Files",
'category': 'Import-Export',
}
try:
import bpy
def register():
from .io_oper... | <commit_before>
bl_info = {
'name': "Import: .EDM model files",
'description': "Importing of .EDM model files",
'author': "Nicholas Devenish",
'version': (0,0,1),
'blender': (2, 78, 0),
'location': "File > Import/Export > .EDM Files",
'category': 'Import-Export',
}
try:
import bpy
def register():
... |
621337bd685a200a37bcbbd5fe3441d2090aab54 | cr8/__main__.py | cr8/__main__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argh
import argparse
from cr8 import __version__
from cr8.timeit import timeit
from cr8.insert_json import insert_json
from cr8.insert_fake_data import insert_fake_data
from cr8.insert_blob import insert_blob
from cr8.run_spec import run_spec
from cr8.run_crate imp... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# PYTHON_ARGCOMPLETE_OK
import argh
import argparse
from cr8 import __version__
from cr8.timeit import timeit
from cr8.insert_json import insert_json
from cr8.insert_fake_data import insert_fake_data
from cr8.insert_blob import insert_blob
from cr8.run_spec import run_spe... | Add PYTHON_ARGCOMPLETE_OK to enable completion for argcomplete users | Add PYTHON_ARGCOMPLETE_OK to enable completion for argcomplete users
| Python | mit | mikethebeer/cr8,mfussenegger/cr8 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argh
import argparse
from cr8 import __version__
from cr8.timeit import timeit
from cr8.insert_json import insert_json
from cr8.insert_fake_data import insert_fake_data
from cr8.insert_blob import insert_blob
from cr8.run_spec import run_spec
from cr8.run_crate imp... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# PYTHON_ARGCOMPLETE_OK
import argh
import argparse
from cr8 import __version__
from cr8.timeit import timeit
from cr8.insert_json import insert_json
from cr8.insert_fake_data import insert_fake_data
from cr8.insert_blob import insert_blob
from cr8.run_spec import run_spe... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argh
import argparse
from cr8 import __version__
from cr8.timeit import timeit
from cr8.insert_json import insert_json
from cr8.insert_fake_data import insert_fake_data
from cr8.insert_blob import insert_blob
from cr8.run_spec import run_spec
from cr... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# PYTHON_ARGCOMPLETE_OK
import argh
import argparse
from cr8 import __version__
from cr8.timeit import timeit
from cr8.insert_json import insert_json
from cr8.insert_fake_data import insert_fake_data
from cr8.insert_blob import insert_blob
from cr8.run_spec import run_spe... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argh
import argparse
from cr8 import __version__
from cr8.timeit import timeit
from cr8.insert_json import insert_json
from cr8.insert_fake_data import insert_fake_data
from cr8.insert_blob import insert_blob
from cr8.run_spec import run_spec
from cr8.run_crate imp... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argh
import argparse
from cr8 import __version__
from cr8.timeit import timeit
from cr8.insert_json import insert_json
from cr8.insert_fake_data import insert_fake_data
from cr8.insert_blob import insert_blob
from cr8.run_spec import run_spec
from cr... |
c2bca21718295b6400471395f5da3ca9d42e8a84 | modoboa_dmarc/tests/mixins.py | modoboa_dmarc/tests/mixins.py | """Test mixins."""
import os
import sys
import six
from django.core.management import call_command
class CallCommandMixin(object):
"""A mixin to provide command execution shortcuts."""
def setUp(self):
"""Replace stdin"""
super(CallCommandMixin, self).setUp()
self.stdin = sys.stdin... | """Test mixins."""
import os
import sys
import six
from django.core.management import call_command
from django.utils.six import StringIO
class CallCommandMixin(object):
"""A mixin to provide command execution shortcuts."""
def setUp(self):
"""Replace stdin"""
super(CallCommandMixin, self).... | Check if error available on output | Check if error available on output
| Python | mit | modoboa/modoboa-dmarc,modoboa/modoboa-dmarc | """Test mixins."""
import os
import sys
import six
from django.core.management import call_command
class CallCommandMixin(object):
"""A mixin to provide command execution shortcuts."""
def setUp(self):
"""Replace stdin"""
super(CallCommandMixin, self).setUp()
self.stdin = sys.stdin... | """Test mixins."""
import os
import sys
import six
from django.core.management import call_command
from django.utils.six import StringIO
class CallCommandMixin(object):
"""A mixin to provide command execution shortcuts."""
def setUp(self):
"""Replace stdin"""
super(CallCommandMixin, self).... | <commit_before>"""Test mixins."""
import os
import sys
import six
from django.core.management import call_command
class CallCommandMixin(object):
"""A mixin to provide command execution shortcuts."""
def setUp(self):
"""Replace stdin"""
super(CallCommandMixin, self).setUp()
self.st... | """Test mixins."""
import os
import sys
import six
from django.core.management import call_command
from django.utils.six import StringIO
class CallCommandMixin(object):
"""A mixin to provide command execution shortcuts."""
def setUp(self):
"""Replace stdin"""
super(CallCommandMixin, self).... | """Test mixins."""
import os
import sys
import six
from django.core.management import call_command
class CallCommandMixin(object):
"""A mixin to provide command execution shortcuts."""
def setUp(self):
"""Replace stdin"""
super(CallCommandMixin, self).setUp()
self.stdin = sys.stdin... | <commit_before>"""Test mixins."""
import os
import sys
import six
from django.core.management import call_command
class CallCommandMixin(object):
"""A mixin to provide command execution shortcuts."""
def setUp(self):
"""Replace stdin"""
super(CallCommandMixin, self).setUp()
self.st... |
98552a4cb683e25ec9af53024e58644c04b55872 | molly/external_media/views.py | molly/external_media/views.py | from email.utils import formatdate
from datetime import datetime, timedelta
from time import mktime
from django.shortcuts import get_object_or_404
from django.http import HttpResponse, Http404
from molly.utils.views import BaseView
from molly.utils.breadcrumbs import NullBreadcrumb
from models import ExternalImageSi... | from email.utils import formatdate
from datetime import datetime, timedelta
from time import mktime
from django.shortcuts import get_object_or_404
from django.http import HttpResponse, Http404
from molly.utils.views import BaseView
from molly.utils.breadcrumbs import NullBreadcrumb
from models import ExternalImageSi... | Handle missing external files gracefully | MOX-182: Handle missing external files gracefully
| Python | apache-2.0 | mollyproject/mollyproject,mollyproject/mollyproject,mollyproject/mollyproject | from email.utils import formatdate
from datetime import datetime, timedelta
from time import mktime
from django.shortcuts import get_object_or_404
from django.http import HttpResponse, Http404
from molly.utils.views import BaseView
from molly.utils.breadcrumbs import NullBreadcrumb
from models import ExternalImageSi... | from email.utils import formatdate
from datetime import datetime, timedelta
from time import mktime
from django.shortcuts import get_object_or_404
from django.http import HttpResponse, Http404
from molly.utils.views import BaseView
from molly.utils.breadcrumbs import NullBreadcrumb
from models import ExternalImageSi... | <commit_before>from email.utils import formatdate
from datetime import datetime, timedelta
from time import mktime
from django.shortcuts import get_object_or_404
from django.http import HttpResponse, Http404
from molly.utils.views import BaseView
from molly.utils.breadcrumbs import NullBreadcrumb
from models import ... | from email.utils import formatdate
from datetime import datetime, timedelta
from time import mktime
from django.shortcuts import get_object_or_404
from django.http import HttpResponse, Http404
from molly.utils.views import BaseView
from molly.utils.breadcrumbs import NullBreadcrumb
from models import ExternalImageSi... | from email.utils import formatdate
from datetime import datetime, timedelta
from time import mktime
from django.shortcuts import get_object_or_404
from django.http import HttpResponse, Http404
from molly.utils.views import BaseView
from molly.utils.breadcrumbs import NullBreadcrumb
from models import ExternalImageSi... | <commit_before>from email.utils import formatdate
from datetime import datetime, timedelta
from time import mktime
from django.shortcuts import get_object_or_404
from django.http import HttpResponse, Http404
from molly.utils.views import BaseView
from molly.utils.breadcrumbs import NullBreadcrumb
from models import ... |
78f96421598a561285b9cd5568fd4acabd52585f | offenerhaushalt/generators.py | offenerhaushalt/generators.py |
from offenerhaushalt.core import freezer, pages, sites
@freezer.register_generator
def page():
for page in pages:
yield {'path': page.path}
@freezer.register_generator
def site():
for site in sites:
yield {'slug': site.slug} | from offenerhaushalt.core import freezer, pages, sites
@freezer.register_generator
def page():
for page in pages:
yield {'path': page.path}
@freezer.register_generator
def site():
for site in sites:
yield {'slug': site.slug}
@freezer.register_generator
def embed_site():
for site in sit... | Add embed site freeze generator | Add embed site freeze generator
Fix tabs/spaces issue as well | Python | mit | Opendatal/offenerhaushalt.de,Opendatal/offenerhaushalt.de,Opendatal/offenerhaushalt.de |
from offenerhaushalt.core import freezer, pages, sites
@freezer.register_generator
def page():
for page in pages:
yield {'path': page.path}
@freezer.register_generator
def site():
for site in sites:
yield {'slug': site.slug}Add embed site freeze generator
Fix tabs/spaces issue as well | from offenerhaushalt.core import freezer, pages, sites
@freezer.register_generator
def page():
for page in pages:
yield {'path': page.path}
@freezer.register_generator
def site():
for site in sites:
yield {'slug': site.slug}
@freezer.register_generator
def embed_site():
for site in sit... | <commit_before>
from offenerhaushalt.core import freezer, pages, sites
@freezer.register_generator
def page():
for page in pages:
yield {'path': page.path}
@freezer.register_generator
def site():
for site in sites:
yield {'slug': site.slug}<commit_msg>Add embed site freeze generator
Fix tabs/spaces issue as we... | from offenerhaushalt.core import freezer, pages, sites
@freezer.register_generator
def page():
for page in pages:
yield {'path': page.path}
@freezer.register_generator
def site():
for site in sites:
yield {'slug': site.slug}
@freezer.register_generator
def embed_site():
for site in sit... |
from offenerhaushalt.core import freezer, pages, sites
@freezer.register_generator
def page():
for page in pages:
yield {'path': page.path}
@freezer.register_generator
def site():
for site in sites:
yield {'slug': site.slug}Add embed site freeze generator
Fix tabs/spaces issue as wellfrom offenerhaushalt.core... | <commit_before>
from offenerhaushalt.core import freezer, pages, sites
@freezer.register_generator
def page():
for page in pages:
yield {'path': page.path}
@freezer.register_generator
def site():
for site in sites:
yield {'slug': site.slug}<commit_msg>Add embed site freeze generator
Fix tabs/spaces issue as we... |
9fda25c0a28f7965c2378dcd4b2106ca034052c3 | plumeria/plugins/have_i_been_pwned.py | plumeria/plugins/have_i_been_pwned.py | import plumeria.util.http as http
from plumeria import config
from plumeria.command import commands, CommandError
from plumeria.command.parse import Text
from plumeria.message.mappings import build_mapping
from plumeria.util.collections import SafeStructure
from plumeria.util.ratelimit import rate_limit
@commands.reg... | import plumeria.util.http as http
from plumeria import config
from plumeria.command import commands, CommandError
from plumeria.command.parse import Text
from plumeria.message.mappings import build_mapping
from plumeria.util.collections import SafeStructure
from plumeria.util.ratelimit import rate_limit
@commands.reg... | Handle missing accounts on HaveIBeenPwned properly. | Handle missing accounts on HaveIBeenPwned properly.
| Python | mit | sk89q/Plumeria,sk89q/Plumeria,sk89q/Plumeria | import plumeria.util.http as http
from plumeria import config
from plumeria.command import commands, CommandError
from plumeria.command.parse import Text
from plumeria.message.mappings import build_mapping
from plumeria.util.collections import SafeStructure
from plumeria.util.ratelimit import rate_limit
@commands.reg... | import plumeria.util.http as http
from plumeria import config
from plumeria.command import commands, CommandError
from plumeria.command.parse import Text
from plumeria.message.mappings import build_mapping
from plumeria.util.collections import SafeStructure
from plumeria.util.ratelimit import rate_limit
@commands.reg... | <commit_before>import plumeria.util.http as http
from plumeria import config
from plumeria.command import commands, CommandError
from plumeria.command.parse import Text
from plumeria.message.mappings import build_mapping
from plumeria.util.collections import SafeStructure
from plumeria.util.ratelimit import rate_limit
... | import plumeria.util.http as http
from plumeria import config
from plumeria.command import commands, CommandError
from plumeria.command.parse import Text
from plumeria.message.mappings import build_mapping
from plumeria.util.collections import SafeStructure
from plumeria.util.ratelimit import rate_limit
@commands.reg... | import plumeria.util.http as http
from plumeria import config
from plumeria.command import commands, CommandError
from plumeria.command.parse import Text
from plumeria.message.mappings import build_mapping
from plumeria.util.collections import SafeStructure
from plumeria.util.ratelimit import rate_limit
@commands.reg... | <commit_before>import plumeria.util.http as http
from plumeria import config
from plumeria.command import commands, CommandError
from plumeria.command.parse import Text
from plumeria.message.mappings import build_mapping
from plumeria.util.collections import SafeStructure
from plumeria.util.ratelimit import rate_limit
... |
cc51137aedeee8bdcf6b47e98b195ec750183ab4 | context_variables/__init__.py | context_variables/__init__.py | class context_variable(object):
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, objtype=None):
# Handle case of being called from class instead of an instance
if obj is None:
return self
# Evaluate the property
... | class context_variable(object):
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, objtype=None):
# Handle case of being called from class instead of an instance
if obj is None:
return self
# If we got a plain value... | Allow plain values, not just methods | Allow plain values, not just methods
| Python | mit | carlmjohnson/django-context-variables | class context_variable(object):
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, objtype=None):
# Handle case of being called from class instead of an instance
if obj is None:
return self
# Evaluate the property
... | class context_variable(object):
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, objtype=None):
# Handle case of being called from class instead of an instance
if obj is None:
return self
# If we got a plain value... | <commit_before>class context_variable(object):
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, objtype=None):
# Handle case of being called from class instead of an instance
if obj is None:
return self
# Evaluate... | class context_variable(object):
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, objtype=None):
# Handle case of being called from class instead of an instance
if obj is None:
return self
# If we got a plain value... | class context_variable(object):
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, objtype=None):
# Handle case of being called from class instead of an instance
if obj is None:
return self
# Evaluate the property
... | <commit_before>class context_variable(object):
def __init__(self, func):
self.func = func
self.__doc__ = func.__doc__
def __get__(self, obj, objtype=None):
# Handle case of being called from class instead of an instance
if obj is None:
return self
# Evaluate... |
96db4f0f42058ba9a8917fd4e9a3d8174f91cbd3 | version_st2.py | version_st2.py |
# Licensed to the StackStorm, Inc ('StackStorm') 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 "License"); you may not use t... | # Copyright 2016 - StackStorm, 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 ... | Update licensing info on version file | Update licensing info on version file
| Python | apache-2.0 | StackStorm/mistral,StackStorm/mistral |
# Licensed to the StackStorm, Inc ('StackStorm') 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 "License"); you may not use t... | # Copyright 2016 - StackStorm, 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 ... | <commit_before>
# Licensed to the StackStorm, Inc ('StackStorm') 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 "License"); yo... | # Copyright 2016 - StackStorm, 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 ... |
# Licensed to the StackStorm, Inc ('StackStorm') 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 "License"); you may not use t... | <commit_before>
# Licensed to the StackStorm, Inc ('StackStorm') 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 "License"); yo... |
9653f3d4d3bd859d592542fc011ad7b81a866052 | IPython/html/widgets/__init__.py | IPython/html/widgets/__init__.py | from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider
from .widget_... | from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider
from .widget_... | Make the widget experimental error a real python warning | Make the widget experimental error a real python warning
This means it can easily be turned off too.
| Python | bsd-3-clause | jupyter-widgets/ipywidgets,cornhundred/ipywidgets,cornhundred/ipywidgets,SylvainCorlay/ipywidgets,cornhundred/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,cornhundred/ipywidgets,cornhundred/ipywidgets,SylvainCorlay/ipywidgets,ipython/i... | from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider
from .widget_... | from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider
from .widget_... | <commit_before>from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlide... | from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider
from .widget_... | from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider
from .widget_... | <commit_before>from .widget import Widget, DOMWidget, CallbackDispatcher, register
from .widget_bool import Checkbox, ToggleButton
from .widget_button import Button
from .widget_box import Box, Popup, FlexBox, HBox, VBox
from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlide... |
c7e55bfd8284c4bb6755abc51dd7c940bca9d81a | sensor_consumers/dust_node.py | sensor_consumers/dust_node.py | # coding=utf-8
from local_settings import *
from utils import SensorConsumerBase
import redis
import datetime
import sys
class DustNode(SensorConsumerBase):
def __init__(self):
SensorConsumerBase.__init__(self, "indoor_air_quality")
def run(self):
self.subscribe("dust-node-pubsub", self.pubsu... | # coding=utf-8
from local_settings import *
from utils import SensorConsumerBase
import redis
import datetime
import sys
class DustNode(SensorConsumerBase):
def __init__(self):
SensorConsumerBase.__init__(self, "indoor_air_quality")
def run(self):
self.subscribe("dust-node-pubsub", self.pubsu... | Add sound level to influx | Add sound level to influx
| Python | bsd-3-clause | ojarva/home-info-display,ojarva/home-info-display,ojarva/home-info-display,ojarva/home-info-display | # coding=utf-8
from local_settings import *
from utils import SensorConsumerBase
import redis
import datetime
import sys
class DustNode(SensorConsumerBase):
def __init__(self):
SensorConsumerBase.__init__(self, "indoor_air_quality")
def run(self):
self.subscribe("dust-node-pubsub", self.pubsu... | # coding=utf-8
from local_settings import *
from utils import SensorConsumerBase
import redis
import datetime
import sys
class DustNode(SensorConsumerBase):
def __init__(self):
SensorConsumerBase.__init__(self, "indoor_air_quality")
def run(self):
self.subscribe("dust-node-pubsub", self.pubsu... | <commit_before># coding=utf-8
from local_settings import *
from utils import SensorConsumerBase
import redis
import datetime
import sys
class DustNode(SensorConsumerBase):
def __init__(self):
SensorConsumerBase.__init__(self, "indoor_air_quality")
def run(self):
self.subscribe("dust-node-pubs... | # coding=utf-8
from local_settings import *
from utils import SensorConsumerBase
import redis
import datetime
import sys
class DustNode(SensorConsumerBase):
def __init__(self):
SensorConsumerBase.__init__(self, "indoor_air_quality")
def run(self):
self.subscribe("dust-node-pubsub", self.pubsu... | # coding=utf-8
from local_settings import *
from utils import SensorConsumerBase
import redis
import datetime
import sys
class DustNode(SensorConsumerBase):
def __init__(self):
SensorConsumerBase.__init__(self, "indoor_air_quality")
def run(self):
self.subscribe("dust-node-pubsub", self.pubsu... | <commit_before># coding=utf-8
from local_settings import *
from utils import SensorConsumerBase
import redis
import datetime
import sys
class DustNode(SensorConsumerBase):
def __init__(self):
SensorConsumerBase.__init__(self, "indoor_air_quality")
def run(self):
self.subscribe("dust-node-pubs... |
4369de9f0f44860f27d26f6814dc100fefe421be | test_urls.py | test_urls.py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'temp.views.home', name='home'),
# url(r'^temp/', include('temp.foo.urls')),
# Uncommen... | import django
if django.VERSION >= (1,10):
from django.conf.urls import include, url
patterns = lambda _ignore, x: list([x,])
else:
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^messages/', include('messages_extends.urls', namespace='messages')),
)
| Fix tests for Django 1.10 | Fix tests for Django 1.10
| Python | mit | AliLozano/django-messages-extends,AliLozano/django-messages-extends,AliLozano/django-messages-extends | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'temp.views.home', name='home'),
# url(r'^temp/', include('temp.foo.urls')),
# Uncommen... | import django
if django.VERSION >= (1,10):
from django.conf.urls import include, url
patterns = lambda _ignore, x: list([x,])
else:
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^messages/', include('messages_extends.urls', namespace='messages')),
)
| <commit_before>from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'temp.views.home', name='home'),
# url(r'^temp/', include('temp.foo.urls')),
... | import django
if django.VERSION >= (1,10):
from django.conf.urls import include, url
patterns = lambda _ignore, x: list([x,])
else:
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^messages/', include('messages_extends.urls', namespace='messages')),
)
| from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'temp.views.home', name='home'),
# url(r'^temp/', include('temp.foo.urls')),
# Uncommen... | <commit_before>from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'temp.views.home', name='home'),
# url(r'^temp/', include('temp.foo.urls')),
... |
b2354fdde28bf841bebfc1f5347b2bde3c3cc390 | db/TableBill.py | db/TableBill.py | {
PDBConst.Name: "bill",
PDBConst.Columns: [
{
PDBConst.Name: "ID",
PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"]
},
{
PDBConst.Name: "Datetime",
PDBConst.Attributes: ["datetime", "not null"]
},
{
PDBConst.Name: "Amount",
... | {
PDBConst.Name: "bill",
PDBConst.Columns: [
{
PDBConst.Name: "ID",
PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"]
},
{
PDBConst.Name: "PID",
PDBConst.Attributes: ["int", "not null"]
},
{
PDBConst.Name: "Datetime",
PD... | Fix bill table missed column | Fix bill table missed column
| Python | mit | eddiedb6/ej,eddiedb6/ej,eddiedb6/ej | {
PDBConst.Name: "bill",
PDBConst.Columns: [
{
PDBConst.Name: "ID",
PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"]
},
{
PDBConst.Name: "Datetime",
PDBConst.Attributes: ["datetime", "not null"]
},
{
PDBConst.Name: "Amount",
... | {
PDBConst.Name: "bill",
PDBConst.Columns: [
{
PDBConst.Name: "ID",
PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"]
},
{
PDBConst.Name: "PID",
PDBConst.Attributes: ["int", "not null"]
},
{
PDBConst.Name: "Datetime",
PD... | <commit_before>{
PDBConst.Name: "bill",
PDBConst.Columns: [
{
PDBConst.Name: "ID",
PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"]
},
{
PDBConst.Name: "Datetime",
PDBConst.Attributes: ["datetime", "not null"]
},
{
PDBConst.Nam... | {
PDBConst.Name: "bill",
PDBConst.Columns: [
{
PDBConst.Name: "ID",
PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"]
},
{
PDBConst.Name: "PID",
PDBConst.Attributes: ["int", "not null"]
},
{
PDBConst.Name: "Datetime",
PD... | {
PDBConst.Name: "bill",
PDBConst.Columns: [
{
PDBConst.Name: "ID",
PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"]
},
{
PDBConst.Name: "Datetime",
PDBConst.Attributes: ["datetime", "not null"]
},
{
PDBConst.Name: "Amount",
... | <commit_before>{
PDBConst.Name: "bill",
PDBConst.Columns: [
{
PDBConst.Name: "ID",
PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"]
},
{
PDBConst.Name: "Datetime",
PDBConst.Attributes: ["datetime", "not null"]
},
{
PDBConst.Nam... |
c1f31f69ca7ba75185100cf7a8eabf58ed41ccdf | atmo/apps.py | atmo/apps.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import session_csrf
from django.apps import AppConfig
from django.db.models.signals import post_save, pre... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import session_csrf
from django.apps import AppConfig
from django.db.models.signals import post_save, pre... | Connect signal callback using the model class as sender. | Connect signal callback using the model class as sender.
| Python | mpl-2.0 | mozilla/telemetry-analysis-service,mozilla/telemetry-analysis-service,mozilla/telemetry-analysis-service,mozilla/telemetry-analysis-service | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import session_csrf
from django.apps import AppConfig
from django.db.models.signals import post_save, pre... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import session_csrf
from django.apps import AppConfig
from django.db.models.signals import post_save, pre... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import session_csrf
from django.apps import AppConfig
from django.db.models.signals import... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import session_csrf
from django.apps import AppConfig
from django.db.models.signals import post_save, pre... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import session_csrf
from django.apps import AppConfig
from django.db.models.signals import post_save, pre... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import logging
import session_csrf
from django.apps import AppConfig
from django.db.models.signals import... |
6ec4c21cf7af09401aabadff79898fe783efe9bd | skimage/transform/__init__.py | skimage/transform/__init__.py | from .hough_transform import *
from .radon_transform import *
from .finite_radon_transform import *
from .integral import *
from ._geometric import (estimate_transform,
SimilarityTransform, AffineTransform,
ProjectiveTransform, PolynomialTransform)
from ._warps import w... | from .hough_transform import *
from .radon_transform import *
from .finite_radon_transform import *
from .integral import *
from ._geometric import (estimate_transform,
SimilarityTransform, AffineTransform,
ProjectiveTransform, PolynomialTransform)
from ._warps import w... | Fix import of rotate function | Fix import of rotate function
| Python | bsd-3-clause | SamHames/scikit-image,michaelpacer/scikit-image,ofgulban/scikit-image,paalge/scikit-image,jwiggins/scikit-image,SamHames/scikit-image,almarklein/scikit-image,rjeli/scikit-image,blink1073/scikit-image,ofgulban/scikit-image,almarklein/scikit-image,SamHames/scikit-image,almarklein/scikit-image,GaZ3ll3/scikit-image,chriscr... | from .hough_transform import *
from .radon_transform import *
from .finite_radon_transform import *
from .integral import *
from ._geometric import (estimate_transform,
SimilarityTransform, AffineTransform,
ProjectiveTransform, PolynomialTransform)
from ._warps import w... | from .hough_transform import *
from .radon_transform import *
from .finite_radon_transform import *
from .integral import *
from ._geometric import (estimate_transform,
SimilarityTransform, AffineTransform,
ProjectiveTransform, PolynomialTransform)
from ._warps import w... | <commit_before>from .hough_transform import *
from .radon_transform import *
from .finite_radon_transform import *
from .integral import *
from ._geometric import (estimate_transform,
SimilarityTransform, AffineTransform,
ProjectiveTransform, PolynomialTransform)
from .... | from .hough_transform import *
from .radon_transform import *
from .finite_radon_transform import *
from .integral import *
from ._geometric import (estimate_transform,
SimilarityTransform, AffineTransform,
ProjectiveTransform, PolynomialTransform)
from ._warps import w... | from .hough_transform import *
from .radon_transform import *
from .finite_radon_transform import *
from .integral import *
from ._geometric import (estimate_transform,
SimilarityTransform, AffineTransform,
ProjectiveTransform, PolynomialTransform)
from ._warps import w... | <commit_before>from .hough_transform import *
from .radon_transform import *
from .finite_radon_transform import *
from .integral import *
from ._geometric import (estimate_transform,
SimilarityTransform, AffineTransform,
ProjectiveTransform, PolynomialTransform)
from .... |
c9f990ff4095b7fb361b2d59c0c5b2c9555643ff | csunplugged/tests/BaseTest.py | csunplugged/tests/BaseTest.py | """Base test class with methods implemented for Django testing."""
from django.test import TestCase
from django.contrib.auth.models import User
from django.test.client import Client
from django.utils.translation import activate
<<<<<<< HEAD
class BaseTest(SimpleTestCase):
"""Base test class with methods implemen... | """Base test class with methods implemented for Django testing."""
from django.test import TestCase
from django.contrib.auth.models import User
from django.test.client import Client
from django.utils.translation import activate
class BaseTest(SimpleTestCase):
"""Base test class with methods implemented for Djang... | Remove left over merge conflict text | Remove left over merge conflict text
| Python | mit | uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged | """Base test class with methods implemented for Django testing."""
from django.test import TestCase
from django.contrib.auth.models import User
from django.test.client import Client
from django.utils.translation import activate
<<<<<<< HEAD
class BaseTest(SimpleTestCase):
"""Base test class with methods implemen... | """Base test class with methods implemented for Django testing."""
from django.test import TestCase
from django.contrib.auth.models import User
from django.test.client import Client
from django.utils.translation import activate
class BaseTest(SimpleTestCase):
"""Base test class with methods implemented for Djang... | <commit_before>"""Base test class with methods implemented for Django testing."""
from django.test import TestCase
from django.contrib.auth.models import User
from django.test.client import Client
from django.utils.translation import activate
<<<<<<< HEAD
class BaseTest(SimpleTestCase):
"""Base test class with m... | """Base test class with methods implemented for Django testing."""
from django.test import TestCase
from django.contrib.auth.models import User
from django.test.client import Client
from django.utils.translation import activate
class BaseTest(SimpleTestCase):
"""Base test class with methods implemented for Djang... | """Base test class with methods implemented for Django testing."""
from django.test import TestCase
from django.contrib.auth.models import User
from django.test.client import Client
from django.utils.translation import activate
<<<<<<< HEAD
class BaseTest(SimpleTestCase):
"""Base test class with methods implemen... | <commit_before>"""Base test class with methods implemented for Django testing."""
from django.test import TestCase
from django.contrib.auth.models import User
from django.test.client import Client
from django.utils.translation import activate
<<<<<<< HEAD
class BaseTest(SimpleTestCase):
"""Base test class with m... |
0ab2da918cbf0e58cf850f6868f5b896ea5c3893 | heufybot/modules/util/nickservid.py | heufybot/modules/util/nickservid.py | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
import logging
class NickServIdentify(BotModule):
implements(IPlugin, IBotModule)
name = "NickServIdentify"
def hookBot(self, bot):
self.bot = bot
def actions(... | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
import logging
class NickServIdentify(BotModule):
implements(IPlugin, IBotModule)
name = "NickServIdentify"
def hookBot(self, bot):
self.bot = bot
def actions(... | Make NickServIdentify play nice with service specific configs | Make NickServIdentify play nice with service specific configs
| Python | mit | Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
import logging
class NickServIdentify(BotModule):
implements(IPlugin, IBotModule)
name = "NickServIdentify"
def hookBot(self, bot):
self.bot = bot
def actions(... | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
import logging
class NickServIdentify(BotModule):
implements(IPlugin, IBotModule)
name = "NickServIdentify"
def hookBot(self, bot):
self.bot = bot
def actions(... | <commit_before>from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
import logging
class NickServIdentify(BotModule):
implements(IPlugin, IBotModule)
name = "NickServIdentify"
def hookBot(self, bot):
self.bot = bot
... | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
import logging
class NickServIdentify(BotModule):
implements(IPlugin, IBotModule)
name = "NickServIdentify"
def hookBot(self, bot):
self.bot = bot
def actions(... | from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
import logging
class NickServIdentify(BotModule):
implements(IPlugin, IBotModule)
name = "NickServIdentify"
def hookBot(self, bot):
self.bot = bot
def actions(... | <commit_before>from twisted.plugin import IPlugin
from heufybot.moduleinterface import BotModule, IBotModule
from zope.interface import implements
import logging
class NickServIdentify(BotModule):
implements(IPlugin, IBotModule)
name = "NickServIdentify"
def hookBot(self, bot):
self.bot = bot
... |
35d14348ce419421bba2b043ea2818c185526301 | ratechecker/migrations/0002_remove_fee_loader.py | ratechecker/migrations/0002_remove_fee_loader.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-31 16:33
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
def fix_fee_product_index(apps, schema_editor):
table_name = 'cfpb.ratechecker_fee'
index_name = 'idx_16977_product_id'
try... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-31 16:33
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
def fix_fee_product_index(apps, schema_editor):
try:
schema_editor.execute(
'DROP INDEX idx_16977_product_id;'
... | Comment out fix_fee_product_index from migration | Comment out fix_fee_product_index from migration
| Python | cc0-1.0 | cfpb/owning-a-home-api | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-31 16:33
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
def fix_fee_product_index(apps, schema_editor):
table_name = 'cfpb.ratechecker_fee'
index_name = 'idx_16977_product_id'
try... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-31 16:33
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
def fix_fee_product_index(apps, schema_editor):
try:
schema_editor.execute(
'DROP INDEX idx_16977_product_id;'
... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-31 16:33
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
def fix_fee_product_index(apps, schema_editor):
table_name = 'cfpb.ratechecker_fee'
index_name = 'idx_16977_prod... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-31 16:33
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
def fix_fee_product_index(apps, schema_editor):
try:
schema_editor.execute(
'DROP INDEX idx_16977_product_id;'
... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-31 16:33
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
def fix_fee_product_index(apps, schema_editor):
table_name = 'cfpb.ratechecker_fee'
index_name = 'idx_16977_product_id'
try... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-10-31 16:33
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
def fix_fee_product_index(apps, schema_editor):
table_name = 'cfpb.ratechecker_fee'
index_name = 'idx_16977_prod... |
9dd019c12899045faebd49bc06026c8512609c9e | statictemplate/management/commands/statictemplate.py | statictemplate/management/commands/statictemplate.py | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.conf import settings
try:
from django.conf.urls.defaults import patterns, url, include
assert all((patterns, url, include))
except ImportError:
from django.conf.urls import patterns, url, include # pragma: no cover
from django.core.m... | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.conf import settings
try:
from django.conf.urls.defaults import patterns, url, include
except ImportError:
from django.conf.urls import patterns, url, include # pragma: no cover
from django.core.management.base import BaseCommand
from dj... | Remove assert line from import | Remove assert line from import
| Python | bsd-3-clause | yakky/django-statictemplate,bdon/django-statictemplate,ojii/django-statictemplate | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.conf import settings
try:
from django.conf.urls.defaults import patterns, url, include
assert all((patterns, url, include))
except ImportError:
from django.conf.urls import patterns, url, include # pragma: no cover
from django.core.m... | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.conf import settings
try:
from django.conf.urls.defaults import patterns, url, include
except ImportError:
from django.conf.urls import patterns, url, include # pragma: no cover
from django.core.management.base import BaseCommand
from dj... | <commit_before># -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.conf import settings
try:
from django.conf.urls.defaults import patterns, url, include
assert all((patterns, url, include))
except ImportError:
from django.conf.urls import patterns, url, include # pragma: no cover
fro... | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.conf import settings
try:
from django.conf.urls.defaults import patterns, url, include
except ImportError:
from django.conf.urls import patterns, url, include # pragma: no cover
from django.core.management.base import BaseCommand
from dj... | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.conf import settings
try:
from django.conf.urls.defaults import patterns, url, include
assert all((patterns, url, include))
except ImportError:
from django.conf.urls import patterns, url, include # pragma: no cover
from django.core.m... | <commit_before># -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.conf import settings
try:
from django.conf.urls.defaults import patterns, url, include
assert all((patterns, url, include))
except ImportError:
from django.conf.urls import patterns, url, include # pragma: no cover
fro... |
8cb34f4d88184d0c42e8c1fc41f451fa3cd5a6be | plugins/keepkey/cmdline.py | plugins/keepkey/cmdline.py | from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keys... | from electrum.plugins import hook
from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class... | Fix undefined reference error in command line KeepKey plugin. | Fix undefined reference error in command line KeepKey plugin.
| Python | mit | romanz/electrum,wakiyamap/electrum-mona,vialectrum/vialectrum,romanz/electrum,digitalbitbox/electrum,kyuupichan/electrum,asfin/electrum,pooler/electrum-ltc,vialectrum/vialectrum,kyuupichan/electrum,spesmilo/electrum,digitalbitbox/electrum,cryptapus/electrum,kyuupichan/electrum,digitalbitbox/electrum,wakiyamap/electrum-... | from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keys... | from electrum.plugins import hook
from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class... | <commit_before>from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
retu... | from electrum.plugins import hook
from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class... | from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keys... | <commit_before>from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
retu... |
a1d71466d09e9e1ea2f75eae57e72e0000c65ffc | tests/run.py | tests/run.py | import sys
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
MIDDLEWARE_CLASSES=(),
TEMPLATE_DIR... | import sys
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
MIDDLEWARE_CLASSES=(),
TEMPLATES=[
... | Add new-style TEMPLATES setting for tests | Add new-style TEMPLATES setting for tests
| Python | bsd-2-clause | incuna/incuna-mail,incuna/incuna-mail | import sys
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
MIDDLEWARE_CLASSES=(),
TEMPLATE_DIR... | import sys
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
MIDDLEWARE_CLASSES=(),
TEMPLATES=[
... | <commit_before>import sys
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
MIDDLEWARE_CLASSES=(),
... | import sys
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
MIDDLEWARE_CLASSES=(),
TEMPLATES=[
... | import sys
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
MIDDLEWARE_CLASSES=(),
TEMPLATE_DIR... | <commit_before>import sys
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
},
MIDDLEWARE_CLASSES=(),
... |
85ef4988e1f25b586d8dff63b4ade83a2222849f | zerver/filters.py | zerver/filters.py | from __future__ import absolute_import
from django.views.debug import SafeExceptionReporterFilter
from django.http import build_request_repr
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
filtered_post = SafeExceptionReporterFilter.get_post_paramet... | from __future__ import absolute_import
from django.views.debug import SafeExceptionReporterFilter
from django.http import build_request_repr
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
filtered_post = SafeExceptionReporterFilter.get_post_paramet... | Add api_key to filtered variables. | Add api_key to filtered variables.
We don't use it yet, but the plan is the migrate there and it's better
to just have the filtering in place.
(imported from commit d0e7f40e8a439b8e8751da954e79b5f67226e5a9)
| Python | apache-2.0 | akuseru/zulip,wdaher/zulip,jimmy54/zulip,KJin99/zulip,joshisa/zulip,sup95/zulip,Vallher/zulip,jimmy54/zulip,yocome/zulip,LeeRisk/zulip,Batterfii/zulip,kaiyuanheshang/zulip,PaulPetring/zulip,guiquanz/zulip,dxq-git/zulip,littledogboy/zulip,KJin99/zulip,aps-sids/zulip,eeshangarg/zulip,LeeRisk/zulip,xuanhan863/zulip,gigawh... | from __future__ import absolute_import
from django.views.debug import SafeExceptionReporterFilter
from django.http import build_request_repr
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
filtered_post = SafeExceptionReporterFilter.get_post_paramet... | from __future__ import absolute_import
from django.views.debug import SafeExceptionReporterFilter
from django.http import build_request_repr
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
filtered_post = SafeExceptionReporterFilter.get_post_paramet... | <commit_before>from __future__ import absolute_import
from django.views.debug import SafeExceptionReporterFilter
from django.http import build_request_repr
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
filtered_post = SafeExceptionReporterFilter.g... | from __future__ import absolute_import
from django.views.debug import SafeExceptionReporterFilter
from django.http import build_request_repr
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
filtered_post = SafeExceptionReporterFilter.get_post_paramet... | from __future__ import absolute_import
from django.views.debug import SafeExceptionReporterFilter
from django.http import build_request_repr
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
filtered_post = SafeExceptionReporterFilter.get_post_paramet... | <commit_before>from __future__ import absolute_import
from django.views.debug import SafeExceptionReporterFilter
from django.http import build_request_repr
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
def get_post_parameters(self, request):
filtered_post = SafeExceptionReporterFilter.g... |
8be7205128eb96fd52dc922ff45aa5356a59d318 | src/main/translator-xml/PMLToXML.py | src/main/translator-xml/PMLToXML.py | #!/usr/bin/env/python
import sys
import os.path
import subprocess
# Read in a pml file and save to an xml file
def translate_pml_file(xml_file, pml_file):
pml_path = os.path.abspath(pml_file.name)
xml_path = os.path.abspath(xml_file.name)
# Call XML generator
return_code = subprocess.call("Pmlxml %... | #!/usr/bin/env/python
import sys
import os.path
import subprocess
# Read in a pml file and save to an xml file
def translate_pml_file(xml_file, pml_file):
pml_path = os.path.abspath(pml_file.name)
xml_path = os.path.abspath(xml_file.name)
# Call XML generator
# TODO: Remove abs-path
return_code... | Change paths in PML-XML tool | Change paths in PML-XML tool
| Python | mit | CS4098/GroupProject,CS4098/GroupProject,CS4098/GroupProject | #!/usr/bin/env/python
import sys
import os.path
import subprocess
# Read in a pml file and save to an xml file
def translate_pml_file(xml_file, pml_file):
pml_path = os.path.abspath(pml_file.name)
xml_path = os.path.abspath(xml_file.name)
# Call XML generator
return_code = subprocess.call("Pmlxml %... | #!/usr/bin/env/python
import sys
import os.path
import subprocess
# Read in a pml file and save to an xml file
def translate_pml_file(xml_file, pml_file):
pml_path = os.path.abspath(pml_file.name)
xml_path = os.path.abspath(xml_file.name)
# Call XML generator
# TODO: Remove abs-path
return_code... | <commit_before>#!/usr/bin/env/python
import sys
import os.path
import subprocess
# Read in a pml file and save to an xml file
def translate_pml_file(xml_file, pml_file):
pml_path = os.path.abspath(pml_file.name)
xml_path = os.path.abspath(xml_file.name)
# Call XML generator
return_code = subprocess... | #!/usr/bin/env/python
import sys
import os.path
import subprocess
# Read in a pml file and save to an xml file
def translate_pml_file(xml_file, pml_file):
pml_path = os.path.abspath(pml_file.name)
xml_path = os.path.abspath(xml_file.name)
# Call XML generator
# TODO: Remove abs-path
return_code... | #!/usr/bin/env/python
import sys
import os.path
import subprocess
# Read in a pml file and save to an xml file
def translate_pml_file(xml_file, pml_file):
pml_path = os.path.abspath(pml_file.name)
xml_path = os.path.abspath(xml_file.name)
# Call XML generator
return_code = subprocess.call("Pmlxml %... | <commit_before>#!/usr/bin/env/python
import sys
import os.path
import subprocess
# Read in a pml file and save to an xml file
def translate_pml_file(xml_file, pml_file):
pml_path = os.path.abspath(pml_file.name)
xml_path = os.path.abspath(xml_file.name)
# Call XML generator
return_code = subprocess... |
0efeaa258b19d5b1ba204cc55fbdb6969e0f3e64 | flake8_respect_noqa.py | flake8_respect_noqa.py | # -*- coding: utf-8 -*-
"""
Always ignore lines with '# noqa'
"""
__version__ = 0.2
import pep8
class RespectNoqaReport(pep8.StandardReport):
def error(self, line_number, offset, text, check):
if len(self.lines) > line_number - 1 and pep8.noqa(self.lines[line_number - 1]):
return
els... | # -*- coding: utf-8 -*-
"""
Always ignore lines with '# noqa'
"""
__version__ = 0.2
try:
from pep8 import StandardReport, noqa
except ImportError:
# Try the new (as of 2016-June) pycodestyle package.
from pycodestyle import StandardReport, noqa
class RespectNoqaReport(StandardReport):
def error(self... | Adjust for pep8 package rename. | Adjust for pep8 package rename.
Closes #1
| Python | mit | spookylukey/flake8-respect-noqa | # -*- coding: utf-8 -*-
"""
Always ignore lines with '# noqa'
"""
__version__ = 0.2
import pep8
class RespectNoqaReport(pep8.StandardReport):
def error(self, line_number, offset, text, check):
if len(self.lines) > line_number - 1 and pep8.noqa(self.lines[line_number - 1]):
return
els... | # -*- coding: utf-8 -*-
"""
Always ignore lines with '# noqa'
"""
__version__ = 0.2
try:
from pep8 import StandardReport, noqa
except ImportError:
# Try the new (as of 2016-June) pycodestyle package.
from pycodestyle import StandardReport, noqa
class RespectNoqaReport(StandardReport):
def error(self... | <commit_before># -*- coding: utf-8 -*-
"""
Always ignore lines with '# noqa'
"""
__version__ = 0.2
import pep8
class RespectNoqaReport(pep8.StandardReport):
def error(self, line_number, offset, text, check):
if len(self.lines) > line_number - 1 and pep8.noqa(self.lines[line_number - 1]):
ret... | # -*- coding: utf-8 -*-
"""
Always ignore lines with '# noqa'
"""
__version__ = 0.2
try:
from pep8 import StandardReport, noqa
except ImportError:
# Try the new (as of 2016-June) pycodestyle package.
from pycodestyle import StandardReport, noqa
class RespectNoqaReport(StandardReport):
def error(self... | # -*- coding: utf-8 -*-
"""
Always ignore lines with '# noqa'
"""
__version__ = 0.2
import pep8
class RespectNoqaReport(pep8.StandardReport):
def error(self, line_number, offset, text, check):
if len(self.lines) > line_number - 1 and pep8.noqa(self.lines[line_number - 1]):
return
els... | <commit_before># -*- coding: utf-8 -*-
"""
Always ignore lines with '# noqa'
"""
__version__ = 0.2
import pep8
class RespectNoqaReport(pep8.StandardReport):
def error(self, line_number, offset, text, check):
if len(self.lines) > line_number - 1 and pep8.noqa(self.lines[line_number - 1]):
ret... |
e37eba5f9430cfa3c3cf081066e7079e5c564e95 | generic_scaffold/templatetags/generic_scaffold_tags.py | generic_scaffold/templatetags/generic_scaffold_tags.py | from django import template
from django.conf import settings
from generic_scaffold import get_url_names
register = template.Library()
@register.simple_tag
def get_url_for_action(prefix, action):
url = get_url_names(prefix)[action]
return url
@register.assignment_tag
def set_url_for_action(prefix, action):
... | from django import template
from django.conf import settings
from generic_scaffold import get_url_names
register = template.Library()
@register.assignment_tag
def set_urls_for_scaffold(app=None, model=None, prefix=None):
url_name = get_url_names(app, model, prefix)
return url_name
| Improve templatetag to use either prefix or ... | Improve templatetag to use either prefix or ...
app/model
| Python | mit | spapas/django-generic-scaffold,spapas/django-generic-scaffold | from django import template
from django.conf import settings
from generic_scaffold import get_url_names
register = template.Library()
@register.simple_tag
def get_url_for_action(prefix, action):
url = get_url_names(prefix)[action]
return url
@register.assignment_tag
def set_url_for_action(prefix, action):
... | from django import template
from django.conf import settings
from generic_scaffold import get_url_names
register = template.Library()
@register.assignment_tag
def set_urls_for_scaffold(app=None, model=None, prefix=None):
url_name = get_url_names(app, model, prefix)
return url_name
| <commit_before>from django import template
from django.conf import settings
from generic_scaffold import get_url_names
register = template.Library()
@register.simple_tag
def get_url_for_action(prefix, action):
url = get_url_names(prefix)[action]
return url
@register.assignment_tag
def set_url_for_action(pre... | from django import template
from django.conf import settings
from generic_scaffold import get_url_names
register = template.Library()
@register.assignment_tag
def set_urls_for_scaffold(app=None, model=None, prefix=None):
url_name = get_url_names(app, model, prefix)
return url_name
| from django import template
from django.conf import settings
from generic_scaffold import get_url_names
register = template.Library()
@register.simple_tag
def get_url_for_action(prefix, action):
url = get_url_names(prefix)[action]
return url
@register.assignment_tag
def set_url_for_action(prefix, action):
... | <commit_before>from django import template
from django.conf import settings
from generic_scaffold import get_url_names
register = template.Library()
@register.simple_tag
def get_url_for_action(prefix, action):
url = get_url_names(prefix)[action]
return url
@register.assignment_tag
def set_url_for_action(pre... |
f8d980de69607e73f207fea808c3b0558a4159c0 | pyconcz_2016/cfp/models.py | pyconcz_2016/cfp/models.py | from django.db import models
from pyconcz_2016.conferences.models import Conference
class Cfp(models.Model):
conference = models.ForeignKey(Conference, related_name="cfps")
title = models.CharField(max_length=200)
date_start = models.DateTimeField()
date_end = models.DateTimeField()
class Meta:... | from django.db import models
from django.utils.timezone import now
from pyconcz_2016.conferences.models import Conference
class Cfp(models.Model):
conference = models.ForeignKey(Conference, related_name="cfps")
title = models.CharField(max_length=200)
date_start = models.DateTimeField()
date_end = m... | Add date and social media fields to proposal | Add date and social media fields to proposal
| Python | mit | pyvec/cz.pycon.org-2017,pyvec/cz.pycon.org-2017,benabraham/cz.pycon.org-2017,pyvec/cz.pycon.org-2016,pyvec/cz.pycon.org-2016,benabraham/cz.pycon.org-2017,benabraham/cz.pycon.org-2017,pyvec/cz.pycon.org-2017,pyvec/cz.pycon.org-2016 | from django.db import models
from pyconcz_2016.conferences.models import Conference
class Cfp(models.Model):
conference = models.ForeignKey(Conference, related_name="cfps")
title = models.CharField(max_length=200)
date_start = models.DateTimeField()
date_end = models.DateTimeField()
class Meta:... | from django.db import models
from django.utils.timezone import now
from pyconcz_2016.conferences.models import Conference
class Cfp(models.Model):
conference = models.ForeignKey(Conference, related_name="cfps")
title = models.CharField(max_length=200)
date_start = models.DateTimeField()
date_end = m... | <commit_before>from django.db import models
from pyconcz_2016.conferences.models import Conference
class Cfp(models.Model):
conference = models.ForeignKey(Conference, related_name="cfps")
title = models.CharField(max_length=200)
date_start = models.DateTimeField()
date_end = models.DateTimeField()
... | from django.db import models
from django.utils.timezone import now
from pyconcz_2016.conferences.models import Conference
class Cfp(models.Model):
conference = models.ForeignKey(Conference, related_name="cfps")
title = models.CharField(max_length=200)
date_start = models.DateTimeField()
date_end = m... | from django.db import models
from pyconcz_2016.conferences.models import Conference
class Cfp(models.Model):
conference = models.ForeignKey(Conference, related_name="cfps")
title = models.CharField(max_length=200)
date_start = models.DateTimeField()
date_end = models.DateTimeField()
class Meta:... | <commit_before>from django.db import models
from pyconcz_2016.conferences.models import Conference
class Cfp(models.Model):
conference = models.ForeignKey(Conference, related_name="cfps")
title = models.CharField(max_length=200)
date_start = models.DateTimeField()
date_end = models.DateTimeField()
... |
bee9373dcf852e7af9f0f1a78dcc17a0922f96fe | anchorhub/tests/test_main.py | anchorhub/tests/test_main.py | """
test_main.py - Tests for main.py
main.py:
http://www.github.com/samjabrahams/anchorhub/main.py
"""
from nose.tools import *
import anchorhub.main as main
def test_one():
"""
main.py: Test defaults with local directory as input.
"""
main.main(['.'])
| """
test_main.py - Tests for main.py
main.py:
http://www.github.com/samjabrahams/anchorhub/main.py
"""
from nose.tools import *
import anchorhub.main as main
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator
def test_one():
"""
main.py: Tes... | Modify main.py tests to use get_anchorhub_path() | Modify main.py tests to use get_anchorhub_path()
| Python | apache-2.0 | samjabrahams/anchorhub | """
test_main.py - Tests for main.py
main.py:
http://www.github.com/samjabrahams/anchorhub/main.py
"""
from nose.tools import *
import anchorhub.main as main
def test_one():
"""
main.py: Test defaults with local directory as input.
"""
main.main(['.'])
Modify main.py tests to use get_anchorhub_path(... | """
test_main.py - Tests for main.py
main.py:
http://www.github.com/samjabrahams/anchorhub/main.py
"""
from nose.tools import *
import anchorhub.main as main
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator
def test_one():
"""
main.py: Tes... | <commit_before>"""
test_main.py - Tests for main.py
main.py:
http://www.github.com/samjabrahams/anchorhub/main.py
"""
from nose.tools import *
import anchorhub.main as main
def test_one():
"""
main.py: Test defaults with local directory as input.
"""
main.main(['.'])
<commit_msg>Modify main.py tests... | """
test_main.py - Tests for main.py
main.py:
http://www.github.com/samjabrahams/anchorhub/main.py
"""
from nose.tools import *
import anchorhub.main as main
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator
def test_one():
"""
main.py: Tes... | """
test_main.py - Tests for main.py
main.py:
http://www.github.com/samjabrahams/anchorhub/main.py
"""
from nose.tools import *
import anchorhub.main as main
def test_one():
"""
main.py: Test defaults with local directory as input.
"""
main.main(['.'])
Modify main.py tests to use get_anchorhub_path(... | <commit_before>"""
test_main.py - Tests for main.py
main.py:
http://www.github.com/samjabrahams/anchorhub/main.py
"""
from nose.tools import *
import anchorhub.main as main
def test_one():
"""
main.py: Test defaults with local directory as input.
"""
main.main(['.'])
<commit_msg>Modify main.py tests... |
0507dfbd23db74db1c59bd1084647cc49ef19aee | addons/website_notfound_redirect/ir_http.py | addons/website_notfound_redirect/ir_http.py | # -*- coding: utf-8 -*-
import logging
import urllib2
from openerp.http import request
from openerp.osv import orm
logger = logging.getLogger(__name__)
class ir_http(orm.AbstractModel):
_inherit = 'ir.http'
def _handle_exception(self, exception, code=500):
code = getattr(exception, 'code', code)
... | # -*- coding: utf-8 -*-
import logging
import urllib2
from openerp.http import request
from openerp.osv import orm
logger = logging.getLogger(__name__)
class ir_http(orm.AbstractModel):
_inherit = 'ir.http'
def _handle_exception(self, exception, code=500):
code = getattr(exception, 'code', code)
... | Change logger messages to info | Change logger messages to info
| Python | agpl-3.0 | shingonoide/odoo_ezdoo,shingonoide/odoo_ezdoo | # -*- coding: utf-8 -*-
import logging
import urllib2
from openerp.http import request
from openerp.osv import orm
logger = logging.getLogger(__name__)
class ir_http(orm.AbstractModel):
_inherit = 'ir.http'
def _handle_exception(self, exception, code=500):
code = getattr(exception, 'code', code)
... | # -*- coding: utf-8 -*-
import logging
import urllib2
from openerp.http import request
from openerp.osv import orm
logger = logging.getLogger(__name__)
class ir_http(orm.AbstractModel):
_inherit = 'ir.http'
def _handle_exception(self, exception, code=500):
code = getattr(exception, 'code', code)
... | <commit_before># -*- coding: utf-8 -*-
import logging
import urllib2
from openerp.http import request
from openerp.osv import orm
logger = logging.getLogger(__name__)
class ir_http(orm.AbstractModel):
_inherit = 'ir.http'
def _handle_exception(self, exception, code=500):
code = getattr(exception, 'c... | # -*- coding: utf-8 -*-
import logging
import urllib2
from openerp.http import request
from openerp.osv import orm
logger = logging.getLogger(__name__)
class ir_http(orm.AbstractModel):
_inherit = 'ir.http'
def _handle_exception(self, exception, code=500):
code = getattr(exception, 'code', code)
... | # -*- coding: utf-8 -*-
import logging
import urllib2
from openerp.http import request
from openerp.osv import orm
logger = logging.getLogger(__name__)
class ir_http(orm.AbstractModel):
_inherit = 'ir.http'
def _handle_exception(self, exception, code=500):
code = getattr(exception, 'code', code)
... | <commit_before># -*- coding: utf-8 -*-
import logging
import urllib2
from openerp.http import request
from openerp.osv import orm
logger = logging.getLogger(__name__)
class ir_http(orm.AbstractModel):
_inherit = 'ir.http'
def _handle_exception(self, exception, code=500):
code = getattr(exception, 'c... |
8af3aef367135dbbc55e573c6a943a86ff3ccd9d | survey/tests/locale/test_locale_normalization.py | survey/tests/locale/test_locale_normalization.py | import os
import platform
import subprocess
import unittest
class TestLocaleNormalization(unittest.TestCase):
LOCALE_PATH = "survey/locale/"
def test_normalization(self):
""" We test if the messages were properly created with makemessages --no-obsolete --no-wrap. """
if platform.system() == ... | import os
import platform
import subprocess
import unittest
from pathlib import Path
class TestLocaleNormalization(unittest.TestCase):
LOCALE_PATH = Path("survey", "locale").absolute()
def test_normalization(self):
""" We test if the messages were properly created with makemessages --no-obsolete --n... | Use an absolute Path for localization tests | Use an absolute Path for localization tests
| Python | agpl-3.0 | Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey | import os
import platform
import subprocess
import unittest
class TestLocaleNormalization(unittest.TestCase):
LOCALE_PATH = "survey/locale/"
def test_normalization(self):
""" We test if the messages were properly created with makemessages --no-obsolete --no-wrap. """
if platform.system() == ... | import os
import platform
import subprocess
import unittest
from pathlib import Path
class TestLocaleNormalization(unittest.TestCase):
LOCALE_PATH = Path("survey", "locale").absolute()
def test_normalization(self):
""" We test if the messages were properly created with makemessages --no-obsolete --n... | <commit_before>import os
import platform
import subprocess
import unittest
class TestLocaleNormalization(unittest.TestCase):
LOCALE_PATH = "survey/locale/"
def test_normalization(self):
""" We test if the messages were properly created with makemessages --no-obsolete --no-wrap. """
if platfo... | import os
import platform
import subprocess
import unittest
from pathlib import Path
class TestLocaleNormalization(unittest.TestCase):
LOCALE_PATH = Path("survey", "locale").absolute()
def test_normalization(self):
""" We test if the messages were properly created with makemessages --no-obsolete --n... | import os
import platform
import subprocess
import unittest
class TestLocaleNormalization(unittest.TestCase):
LOCALE_PATH = "survey/locale/"
def test_normalization(self):
""" We test if the messages were properly created with makemessages --no-obsolete --no-wrap. """
if platform.system() == ... | <commit_before>import os
import platform
import subprocess
import unittest
class TestLocaleNormalization(unittest.TestCase):
LOCALE_PATH = "survey/locale/"
def test_normalization(self):
""" We test if the messages were properly created with makemessages --no-obsolete --no-wrap. """
if platfo... |
7a174e05108b673ae3e6a7b259ee8992b764e973 | lintreview/tools/yamllint.py | lintreview/tools/yamllint.py | import os
import logging
from lintreview.tools import Tool
from lintreview.tools import run_command
from lintreview.utils import in_path
log = logging.getLogger(__name__)
class Yamllint(Tool):
name = 'yamllint'
def check_dependencies(self):
"""
See if yamllint is on the PATH
"""
... | import os
import logging
from lintreview.tools import Tool
from lintreview.tools import run_command, process_quickfix
from lintreview.utils import in_path
log = logging.getLogger(__name__)
class Yamllint(Tool):
name = 'yamllint'
def check_dependencies(self):
"""
See if yamllint is on the PA... | Use more robust quickfix parser. | Use more robust quickfix parser.
The yamllint implementation had some issues that the common code does
not.
| Python | mit | markstory/lint-review,markstory/lint-review,markstory/lint-review | import os
import logging
from lintreview.tools import Tool
from lintreview.tools import run_command
from lintreview.utils import in_path
log = logging.getLogger(__name__)
class Yamllint(Tool):
name = 'yamllint'
def check_dependencies(self):
"""
See if yamllint is on the PATH
"""
... | import os
import logging
from lintreview.tools import Tool
from lintreview.tools import run_command, process_quickfix
from lintreview.utils import in_path
log = logging.getLogger(__name__)
class Yamllint(Tool):
name = 'yamllint'
def check_dependencies(self):
"""
See if yamllint is on the PA... | <commit_before>import os
import logging
from lintreview.tools import Tool
from lintreview.tools import run_command
from lintreview.utils import in_path
log = logging.getLogger(__name__)
class Yamllint(Tool):
name = 'yamllint'
def check_dependencies(self):
"""
See if yamllint is on the PATH
... | import os
import logging
from lintreview.tools import Tool
from lintreview.tools import run_command, process_quickfix
from lintreview.utils import in_path
log = logging.getLogger(__name__)
class Yamllint(Tool):
name = 'yamllint'
def check_dependencies(self):
"""
See if yamllint is on the PA... | import os
import logging
from lintreview.tools import Tool
from lintreview.tools import run_command
from lintreview.utils import in_path
log = logging.getLogger(__name__)
class Yamllint(Tool):
name = 'yamllint'
def check_dependencies(self):
"""
See if yamllint is on the PATH
"""
... | <commit_before>import os
import logging
from lintreview.tools import Tool
from lintreview.tools import run_command
from lintreview.utils import in_path
log = logging.getLogger(__name__)
class Yamllint(Tool):
name = 'yamllint'
def check_dependencies(self):
"""
See if yamllint is on the PATH
... |
9c9e564d51d44fb27101249d57d769828f14e97e | tests/integration/modules/test_win_dns_client.py | tests/integration/modules/test_win_dns_client.py | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
# Import Salt libs
import salt.utils.platform
@skipIf(not salt.utils.platf... | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
# Import Salt libs
import salt.utils.platform
@skipIf(not salt.utils.platf... | Fix the failing dns test on Windows | Fix the failing dns test on Windows
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
# Import Salt libs
import salt.utils.platform
@skipIf(not salt.utils.platf... | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
# Import Salt libs
import salt.utils.platform
@skipIf(not salt.utils.platf... | <commit_before># -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
# Import Salt libs
import salt.utils.platform
@skipIf(not s... | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
# Import Salt libs
import salt.utils.platform
@skipIf(not salt.utils.platf... | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
# Import Salt libs
import salt.utils.platform
@skipIf(not salt.utils.platf... | <commit_before># -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
from tests.support.helpers import destructiveTest
# Import Salt libs
import salt.utils.platform
@skipIf(not s... |
6f3336ef5dd43c02c851001715cf0f231c269276 | pyramid_keystone/__init__.py | pyramid_keystone/__init__.py |
default_settings = [
('auth_url', str, 'http://localhost:5000/v3'),
('region', str, 'RegionOne'),
('user_domain_name', str, 'Default'),
('cacert', str, ''),
]
def parse_settings(settings):
parsed = {}
def populate(name, convert, default):
sname = '%s%s' % ('keystone.',... |
default_settings = [
('auth_url', str, 'http://localhost:5000/v3'),
('region', str, 'RegionOne'),
('user_domain_name', str, 'Default'),
('cacert', str, ''),
]
def parse_settings(settings):
parsed = {}
def populate(name, convert, default):
sname = '%s%s' % ('keystone.',... | Add keystone to the request | Add keystone to the request
| Python | isc | bertjwregeer/pyramid_keystone |
default_settings = [
('auth_url', str, 'http://localhost:5000/v3'),
('region', str, 'RegionOne'),
('user_domain_name', str, 'Default'),
('cacert', str, ''),
]
def parse_settings(settings):
parsed = {}
def populate(name, convert, default):
sname = '%s%s' % ('keystone.',... |
default_settings = [
('auth_url', str, 'http://localhost:5000/v3'),
('region', str, 'RegionOne'),
('user_domain_name', str, 'Default'),
('cacert', str, ''),
]
def parse_settings(settings):
parsed = {}
def populate(name, convert, default):
sname = '%s%s' % ('keystone.',... | <commit_before>
default_settings = [
('auth_url', str, 'http://localhost:5000/v3'),
('region', str, 'RegionOne'),
('user_domain_name', str, 'Default'),
('cacert', str, ''),
]
def parse_settings(settings):
parsed = {}
def populate(name, convert, default):
sname = '%s%s' ... |
default_settings = [
('auth_url', str, 'http://localhost:5000/v3'),
('region', str, 'RegionOne'),
('user_domain_name', str, 'Default'),
('cacert', str, ''),
]
def parse_settings(settings):
parsed = {}
def populate(name, convert, default):
sname = '%s%s' % ('keystone.',... |
default_settings = [
('auth_url', str, 'http://localhost:5000/v3'),
('region', str, 'RegionOne'),
('user_domain_name', str, 'Default'),
('cacert', str, ''),
]
def parse_settings(settings):
parsed = {}
def populate(name, convert, default):
sname = '%s%s' % ('keystone.',... | <commit_before>
default_settings = [
('auth_url', str, 'http://localhost:5000/v3'),
('region', str, 'RegionOne'),
('user_domain_name', str, 'Default'),
('cacert', str, ''),
]
def parse_settings(settings):
parsed = {}
def populate(name, convert, default):
sname = '%s%s' ... |
8a4819daa627f06e1a0eac87ab44176b7e2a0115 | openerp/addons/openupgrade_records/lib/apriori.py | openerp/addons/openupgrade_records/lib/apriori.py | """ Encode any known changes to the database here
to help the matching process
"""
renamed_modules = {
'base_calendar': 'calendar',
'mrp_jit': 'procurement_jit',
'project_mrp': 'sale_service',
# OCA/account-invoicing
'invoice_validation_wkfl': 'account_invoice_validation_workflow',
'account_inv... | """ Encode any known changes to the database here
to help the matching process
"""
renamed_modules = {
'base_calendar': 'calendar',
'mrp_jit': 'procurement_jit',
'project_mrp': 'sale_service',
# OCA/account-invoicing
'invoice_validation_wkfl': 'account_invoice_validation_workflow',
'account_inv... | Correct renamed module names for bank-statement-import repository. | [FIX] Correct renamed module names for bank-statement-import repository.
| Python | agpl-3.0 | OpenUpgrade/OpenUpgrade,grap/OpenUpgrade,grap/OpenUpgrade,OpenUpgrade/OpenUpgrade,OpenUpgrade/OpenUpgrade,OpenUpgrade/OpenUpgrade,OpenUpgrade/OpenUpgrade,Endika/OpenUpgrade,grap/OpenUpgrade,Endika/OpenUpgrade,OpenUpgrade/OpenUpgrade,Endika/OpenUpgrade,grap/OpenUpgrade,grap/OpenUpgrade,OpenUpgrade/OpenUpgrade,Endika/Ope... | """ Encode any known changes to the database here
to help the matching process
"""
renamed_modules = {
'base_calendar': 'calendar',
'mrp_jit': 'procurement_jit',
'project_mrp': 'sale_service',
# OCA/account-invoicing
'invoice_validation_wkfl': 'account_invoice_validation_workflow',
'account_inv... | """ Encode any known changes to the database here
to help the matching process
"""
renamed_modules = {
'base_calendar': 'calendar',
'mrp_jit': 'procurement_jit',
'project_mrp': 'sale_service',
# OCA/account-invoicing
'invoice_validation_wkfl': 'account_invoice_validation_workflow',
'account_inv... | <commit_before>""" Encode any known changes to the database here
to help the matching process
"""
renamed_modules = {
'base_calendar': 'calendar',
'mrp_jit': 'procurement_jit',
'project_mrp': 'sale_service',
# OCA/account-invoicing
'invoice_validation_wkfl': 'account_invoice_validation_workflow',
... | """ Encode any known changes to the database here
to help the matching process
"""
renamed_modules = {
'base_calendar': 'calendar',
'mrp_jit': 'procurement_jit',
'project_mrp': 'sale_service',
# OCA/account-invoicing
'invoice_validation_wkfl': 'account_invoice_validation_workflow',
'account_inv... | """ Encode any known changes to the database here
to help the matching process
"""
renamed_modules = {
'base_calendar': 'calendar',
'mrp_jit': 'procurement_jit',
'project_mrp': 'sale_service',
# OCA/account-invoicing
'invoice_validation_wkfl': 'account_invoice_validation_workflow',
'account_inv... | <commit_before>""" Encode any known changes to the database here
to help the matching process
"""
renamed_modules = {
'base_calendar': 'calendar',
'mrp_jit': 'procurement_jit',
'project_mrp': 'sale_service',
# OCA/account-invoicing
'invoice_validation_wkfl': 'account_invoice_validation_workflow',
... |
3d48066c78d693b89cb2daabfd1ebe756862edc5 | mopidy_gmusic/__init__.py | mopidy_gmusic/__init__.py | from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.2.2'
class GMusicExtension(ext.Extension):
dist_name = 'Mopidy-GMusic'
ext_name = 'gmusic'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.di... | from __future__ import unicode_literals
import os
from mopidy import config, ext
__version__ = '0.2.2'
class GMusicExtension(ext.Extension):
dist_name = 'Mopidy-GMusic'
ext_name = 'gmusic'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__file... | Remove dependency check done by Mopidy | Remove dependency check done by Mopidy
| Python | apache-2.0 | hechtus/mopidy-gmusic,jaapz/mopidy-gmusic,Tilley/mopidy-gmusic,elrosti/mopidy-gmusic,jodal/mopidy-gmusic,jaibot/mopidy-gmusic,mopidy/mopidy-gmusic | from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.2.2'
class GMusicExtension(ext.Extension):
dist_name = 'Mopidy-GMusic'
ext_name = 'gmusic'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.di... | from __future__ import unicode_literals
import os
from mopidy import config, ext
__version__ = '0.2.2'
class GMusicExtension(ext.Extension):
dist_name = 'Mopidy-GMusic'
ext_name = 'gmusic'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__file... | <commit_before>from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.2.2'
class GMusicExtension(ext.Extension):
dist_name = 'Mopidy-GMusic'
ext_name = 'gmusic'
version = __version__
def get_default_config(self):
conf_file = os.path.... | from __future__ import unicode_literals
import os
from mopidy import config, ext
__version__ = '0.2.2'
class GMusicExtension(ext.Extension):
dist_name = 'Mopidy-GMusic'
ext_name = 'gmusic'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirname(__file... | from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.2.2'
class GMusicExtension(ext.Extension):
dist_name = 'Mopidy-GMusic'
ext_name = 'gmusic'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.di... | <commit_before>from __future__ import unicode_literals
import os
from mopidy import config, exceptions, ext
__version__ = '0.2.2'
class GMusicExtension(ext.Extension):
dist_name = 'Mopidy-GMusic'
ext_name = 'gmusic'
version = __version__
def get_default_config(self):
conf_file = os.path.... |
e7bf5e84629daffd2a625759addf4eea8423e115 | dataportal/broker/__init__.py | dataportal/broker/__init__.py | from .simple_broker import (_DataBrokerClass, EventQueue, Header,
LocationError, IntegrityError)
from .handler_registration import register_builtin_handlers
DataBroker = _DataBrokerClass() # singleton, used by pims_readers import below
from .pims_readers import Images, SubtractedImages
reg... | from .simple_broker import (_DataBrokerClass, EventQueue, Header,
LocationError, IntegrityError, fill_event)
from .handler_registration import register_builtin_handlers
DataBroker = _DataBrokerClass() # singleton, used by pims_readers import below
from .pims_readers import Images, Subtracte... | Put fill_event in the public API. | API: Put fill_event in the public API.
| Python | bsd-3-clause | NSLS-II/dataportal,NSLS-II/dataportal,danielballan/datamuxer,danielballan/dataportal,ericdill/datamuxer,danielballan/datamuxer,NSLS-II/datamuxer,ericdill/databroker,tacaswell/dataportal,ericdill/datamuxer,ericdill/databroker,danielballan/dataportal,tacaswell/dataportal | from .simple_broker import (_DataBrokerClass, EventQueue, Header,
LocationError, IntegrityError)
from .handler_registration import register_builtin_handlers
DataBroker = _DataBrokerClass() # singleton, used by pims_readers import below
from .pims_readers import Images, SubtractedImages
reg... | from .simple_broker import (_DataBrokerClass, EventQueue, Header,
LocationError, IntegrityError, fill_event)
from .handler_registration import register_builtin_handlers
DataBroker = _DataBrokerClass() # singleton, used by pims_readers import below
from .pims_readers import Images, Subtracte... | <commit_before>from .simple_broker import (_DataBrokerClass, EventQueue, Header,
LocationError, IntegrityError)
from .handler_registration import register_builtin_handlers
DataBroker = _DataBrokerClass() # singleton, used by pims_readers import below
from .pims_readers import Images, Subtra... | from .simple_broker import (_DataBrokerClass, EventQueue, Header,
LocationError, IntegrityError, fill_event)
from .handler_registration import register_builtin_handlers
DataBroker = _DataBrokerClass() # singleton, used by pims_readers import below
from .pims_readers import Images, Subtracte... | from .simple_broker import (_DataBrokerClass, EventQueue, Header,
LocationError, IntegrityError)
from .handler_registration import register_builtin_handlers
DataBroker = _DataBrokerClass() # singleton, used by pims_readers import below
from .pims_readers import Images, SubtractedImages
reg... | <commit_before>from .simple_broker import (_DataBrokerClass, EventQueue, Header,
LocationError, IntegrityError)
from .handler_registration import register_builtin_handlers
DataBroker = _DataBrokerClass() # singleton, used by pims_readers import below
from .pims_readers import Images, Subtra... |
75726945934a049c9fc81066996f1670f29ead2c | test/long_test.py | test/long_test.py | import os, unittest
"""This module long_test provides a decorator, @long_test, that you can use to
mark tests which take a lot of wall clock time.
If the system environment variable SKIP_LONG_TESTS is set, tests decorated
with @long_test will not be run.
"""
SKIP_LONG_TESTS = os.getenv('SKIP_LONG_TESTS', None) is no... | import os, unittest
"""This module long_test provides a decorator, @long_test, that you can use to
mark tests which take a lot of wall clock time.
If the system environment variable SKIP_LONG_TESTS is set, tests decorated
with @long_test will not be run.
"""
SKIP_LONG_TESTS = os.getenv('SKIP_LONG_TESTS', '').lower()... | Improve handling of SKIP_LONG_TESTS build variable. | Improve handling of SKIP_LONG_TESTS build variable.
| Python | mit | rec/BiblioPixel,rec/BiblioPixel,rec/BiblioPixel,rec/BiblioPixel,ManiacalLabs/BiblioPixel,ManiacalLabs/BiblioPixel,ManiacalLabs/BiblioPixel,ManiacalLabs/BiblioPixel | import os, unittest
"""This module long_test provides a decorator, @long_test, that you can use to
mark tests which take a lot of wall clock time.
If the system environment variable SKIP_LONG_TESTS is set, tests decorated
with @long_test will not be run.
"""
SKIP_LONG_TESTS = os.getenv('SKIP_LONG_TESTS', None) is no... | import os, unittest
"""This module long_test provides a decorator, @long_test, that you can use to
mark tests which take a lot of wall clock time.
If the system environment variable SKIP_LONG_TESTS is set, tests decorated
with @long_test will not be run.
"""
SKIP_LONG_TESTS = os.getenv('SKIP_LONG_TESTS', '').lower()... | <commit_before>import os, unittest
"""This module long_test provides a decorator, @long_test, that you can use to
mark tests which take a lot of wall clock time.
If the system environment variable SKIP_LONG_TESTS is set, tests decorated
with @long_test will not be run.
"""
SKIP_LONG_TESTS = os.getenv('SKIP_LONG_TEST... | import os, unittest
"""This module long_test provides a decorator, @long_test, that you can use to
mark tests which take a lot of wall clock time.
If the system environment variable SKIP_LONG_TESTS is set, tests decorated
with @long_test will not be run.
"""
SKIP_LONG_TESTS = os.getenv('SKIP_LONG_TESTS', '').lower()... | import os, unittest
"""This module long_test provides a decorator, @long_test, that you can use to
mark tests which take a lot of wall clock time.
If the system environment variable SKIP_LONG_TESTS is set, tests decorated
with @long_test will not be run.
"""
SKIP_LONG_TESTS = os.getenv('SKIP_LONG_TESTS', None) is no... | <commit_before>import os, unittest
"""This module long_test provides a decorator, @long_test, that you can use to
mark tests which take a lot of wall clock time.
If the system environment variable SKIP_LONG_TESTS is set, tests decorated
with @long_test will not be run.
"""
SKIP_LONG_TESTS = os.getenv('SKIP_LONG_TEST... |
3c077d82881e3dd51eb0b3906e43f9e038346cb6 | tensorflow_federated/python/core/test/__init__.py | tensorflow_federated/python/core/test/__init__.py | # Copyright 2018, 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... | # Copyright 2018, 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... | Remove `_allowed_symbols`, this is no longer used by the document generation. | Remove `_allowed_symbols`, this is no longer used by the document generation.
PiperOrigin-RevId: 321657180
| Python | apache-2.0 | tensorflow/federated,tensorflow/federated,tensorflow/federated | # Copyright 2018, 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... | # Copyright 2018, 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... | <commit_before># Copyright 2018, 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 a... | # Copyright 2018, 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... | # Copyright 2018, 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... | <commit_before># Copyright 2018, 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 a... |
64086acee22cfc2dde2fec9da1ea1b7745ce3d85 | tests/misc/test_base_model.py | tests/misc/test_base_model.py | # -*- coding: UTF-8 -*-
from tests.base import ApiDBTestCase
class BaseModelTestCase(ApiDBTestCase):
def test_repr(self):
self.generate_fixture_project_status()
self.generate_fixture_project()
self.assertEqual(str(self.project), "<Project %s>" % self.project.name)
def test_query(self... | # -*- coding: UTF-8 -*-
from tests.base import ApiDBTestCase
class BaseModelTestCase(ApiDBTestCase):
def test_query(self):
pass
def test_get(self):
pass
def test_get_by(self):
pass
def test_get_all_by(self):
pass
def test_create(self):
pass
def tes... | Remove useless test about model representation | Remove useless test about model representation
| Python | agpl-3.0 | cgwire/zou | # -*- coding: UTF-8 -*-
from tests.base import ApiDBTestCase
class BaseModelTestCase(ApiDBTestCase):
def test_repr(self):
self.generate_fixture_project_status()
self.generate_fixture_project()
self.assertEqual(str(self.project), "<Project %s>" % self.project.name)
def test_query(self... | # -*- coding: UTF-8 -*-
from tests.base import ApiDBTestCase
class BaseModelTestCase(ApiDBTestCase):
def test_query(self):
pass
def test_get(self):
pass
def test_get_by(self):
pass
def test_get_all_by(self):
pass
def test_create(self):
pass
def tes... | <commit_before># -*- coding: UTF-8 -*-
from tests.base import ApiDBTestCase
class BaseModelTestCase(ApiDBTestCase):
def test_repr(self):
self.generate_fixture_project_status()
self.generate_fixture_project()
self.assertEqual(str(self.project), "<Project %s>" % self.project.name)
def ... | # -*- coding: UTF-8 -*-
from tests.base import ApiDBTestCase
class BaseModelTestCase(ApiDBTestCase):
def test_query(self):
pass
def test_get(self):
pass
def test_get_by(self):
pass
def test_get_all_by(self):
pass
def test_create(self):
pass
def tes... | # -*- coding: UTF-8 -*-
from tests.base import ApiDBTestCase
class BaseModelTestCase(ApiDBTestCase):
def test_repr(self):
self.generate_fixture_project_status()
self.generate_fixture_project()
self.assertEqual(str(self.project), "<Project %s>" % self.project.name)
def test_query(self... | <commit_before># -*- coding: UTF-8 -*-
from tests.base import ApiDBTestCase
class BaseModelTestCase(ApiDBTestCase):
def test_repr(self):
self.generate_fixture_project_status()
self.generate_fixture_project()
self.assertEqual(str(self.project), "<Project %s>" % self.project.name)
def ... |
7000e89828ec82f8e5c26c39ac290cb329036e17 | tests/test_core/test_cache.py | tests/test_core/test_cache.py | import os
import sys
import unittest
from collections import OrderedDict
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
# import logging
# logging.basicConfig(level=logging.DEBUG)
import setup_malcolm_paths
from mock import MagicMock
# module imports
from malcolm.core.cache import Cache
class TestP... | import os
import sys
import unittest
from collections import OrderedDict
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
# import logging
# logging.basicConfig(level=logging.DEBUG)
import setup_malcolm_paths
from mock import MagicMock
# module imports
from malcolm.core.cache import Cache
class TestP... | Test Cache root level dictionary update via apply_changes | Test Cache root level dictionary update via apply_changes
| Python | apache-2.0 | dls-controls/pymalcolm,dls-controls/pymalcolm,dls-controls/pymalcolm | import os
import sys
import unittest
from collections import OrderedDict
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
# import logging
# logging.basicConfig(level=logging.DEBUG)
import setup_malcolm_paths
from mock import MagicMock
# module imports
from malcolm.core.cache import Cache
class TestP... | import os
import sys
import unittest
from collections import OrderedDict
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
# import logging
# logging.basicConfig(level=logging.DEBUG)
import setup_malcolm_paths
from mock import MagicMock
# module imports
from malcolm.core.cache import Cache
class TestP... | <commit_before>import os
import sys
import unittest
from collections import OrderedDict
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
# import logging
# logging.basicConfig(level=logging.DEBUG)
import setup_malcolm_paths
from mock import MagicMock
# module imports
from malcolm.core.cache import Cach... | import os
import sys
import unittest
from collections import OrderedDict
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
# import logging
# logging.basicConfig(level=logging.DEBUG)
import setup_malcolm_paths
from mock import MagicMock
# module imports
from malcolm.core.cache import Cache
class TestP... | import os
import sys
import unittest
from collections import OrderedDict
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
# import logging
# logging.basicConfig(level=logging.DEBUG)
import setup_malcolm_paths
from mock import MagicMock
# module imports
from malcolm.core.cache import Cache
class TestP... | <commit_before>import os
import sys
import unittest
from collections import OrderedDict
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
# import logging
# logging.basicConfig(level=logging.DEBUG)
import setup_malcolm_paths
from mock import MagicMock
# module imports
from malcolm.core.cache import Cach... |
7310c2ce4b8ccd69374a85877c2df97a2b6ade70 | nap/dataviews/views.py | nap/dataviews/views.py |
from collections import defaultdict
from inspect import classify_class_attrs
from django.forms import ValidationError
from django.utils.functional import cached_property
from .fields import field
from .utils import DictObject
class DataView(object):
def __init__(self, obj=None, **kwargs):
if obj is No... |
from collections import defaultdict
from inspect import classify_class_attrs
from django.forms import ValidationError
from django.utils.functional import cached_property
from .fields import field
from .utils import DictObject
class DataView(object):
def __init__(self, obj=None, **kwargs):
if obj is No... | Add _fields cache Change _update to _apply and add option for non-required fields | Add _fields cache
Change _update to _apply and add option for non-required fields
| Python | bsd-3-clause | limbera/django-nap,MarkusH/django-nap |
from collections import defaultdict
from inspect import classify_class_attrs
from django.forms import ValidationError
from django.utils.functional import cached_property
from .fields import field
from .utils import DictObject
class DataView(object):
def __init__(self, obj=None, **kwargs):
if obj is No... |
from collections import defaultdict
from inspect import classify_class_attrs
from django.forms import ValidationError
from django.utils.functional import cached_property
from .fields import field
from .utils import DictObject
class DataView(object):
def __init__(self, obj=None, **kwargs):
if obj is No... | <commit_before>
from collections import defaultdict
from inspect import classify_class_attrs
from django.forms import ValidationError
from django.utils.functional import cached_property
from .fields import field
from .utils import DictObject
class DataView(object):
def __init__(self, obj=None, **kwargs):
... |
from collections import defaultdict
from inspect import classify_class_attrs
from django.forms import ValidationError
from django.utils.functional import cached_property
from .fields import field
from .utils import DictObject
class DataView(object):
def __init__(self, obj=None, **kwargs):
if obj is No... |
from collections import defaultdict
from inspect import classify_class_attrs
from django.forms import ValidationError
from django.utils.functional import cached_property
from .fields import field
from .utils import DictObject
class DataView(object):
def __init__(self, obj=None, **kwargs):
if obj is No... | <commit_before>
from collections import defaultdict
from inspect import classify_class_attrs
from django.forms import ValidationError
from django.utils.functional import cached_property
from .fields import field
from .utils import DictObject
class DataView(object):
def __init__(self, obj=None, **kwargs):
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.