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
2a4b02fe84542f3f44fa4e6913f86ed3a4771d43
issue_tracker/core/models.py
issue_tracker/core/models.py
from django.db import models from django.contrib.auth.models import User class Project(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100) version = models.CharField(max_length=15, null=True) release_date = models.DateField(null=True) class Issue(models.Model): pr...
from django.db import models from django.contrib.auth.models import User class Project(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100) version = models.CharField(max_length=15, null=True) release_date = models.DateField(null=True) class Issue(models.Model): pr...
Change comment from a charfield to a textfield, and add a date_created field; which is not working correctly.
Change comment from a charfield to a textfield, and add a date_created field; which is not working correctly.
Python
mit
hfrequency/django-issue-tracker
from django.db import models from django.contrib.auth.models import User class Project(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100) version = models.CharField(max_length=15, null=True) release_date = models.DateField(null=True) class Issue(models.Model): pr...
from django.db import models from django.contrib.auth.models import User class Project(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100) version = models.CharField(max_length=15, null=True) release_date = models.DateField(null=True) class Issue(models.Model): pr...
<commit_before>from django.db import models from django.contrib.auth.models import User class Project(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100) version = models.CharField(max_length=15, null=True) release_date = models.DateField(null=True) class Issue(models...
from django.db import models from django.contrib.auth.models import User class Project(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100) version = models.CharField(max_length=15, null=True) release_date = models.DateField(null=True) class Issue(models.Model): pr...
from django.db import models from django.contrib.auth.models import User class Project(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100) version = models.CharField(max_length=15, null=True) release_date = models.DateField(null=True) class Issue(models.Model): pr...
<commit_before>from django.db import models from django.contrib.auth.models import User class Project(models.Model): user = models.ForeignKey(User) name = models.CharField(max_length=100) version = models.CharField(max_length=15, null=True) release_date = models.DateField(null=True) class Issue(models...
4485b65722645d6c9617b5ff4aea6d62ee8a9adf
bumblebee_status/modules/contrib/optman.py
bumblebee_status/modules/contrib/optman.py
"""Displays currently active gpu by optimus-manager Requires the following packages: * optimus-manager """ import subprocess import core.module import core.widget class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(self.output)) ...
"""Displays currently active gpu by optimus-manager Requires the following packages: * optimus-manager """ import core.module import core.widget import util.cli class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(self.output)) ...
Use the existing util.cli module
Use the existing util.cli module
Python
mit
tobi-wan-kenobi/bumblebee-status,tobi-wan-kenobi/bumblebee-status
"""Displays currently active gpu by optimus-manager Requires the following packages: * optimus-manager """ import subprocess import core.module import core.widget class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(self.output)) ...
"""Displays currently active gpu by optimus-manager Requires the following packages: * optimus-manager """ import core.module import core.widget import util.cli class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(self.output)) ...
<commit_before>"""Displays currently active gpu by optimus-manager Requires the following packages: * optimus-manager """ import subprocess import core.module import core.widget class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(...
"""Displays currently active gpu by optimus-manager Requires the following packages: * optimus-manager """ import core.module import core.widget import util.cli class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(self.output)) ...
"""Displays currently active gpu by optimus-manager Requires the following packages: * optimus-manager """ import subprocess import core.module import core.widget class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(self.output)) ...
<commit_before>"""Displays currently active gpu by optimus-manager Requires the following packages: * optimus-manager """ import subprocess import core.module import core.widget class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(...
7ad0e624e4bccab39b56152e9d4c6d5fba8dc528
dudebot/__init__.py
dudebot/__init__.py
from core import BotAI from core import Connector from decorators import message_must_begin_with from decorators import message_must_begin_with_attr from decorators import message_must_begin_with_nickname
Allow modules that use dudebot to just import dudebot...
Allow modules that use dudebot to just import dudebot...
Python
bsd-2-clause
sujaymansingh/dudebot
Allow modules that use dudebot to just import dudebot...
from core import BotAI from core import Connector from decorators import message_must_begin_with from decorators import message_must_begin_with_attr from decorators import message_must_begin_with_nickname
<commit_before><commit_msg>Allow modules that use dudebot to just import dudebot...<commit_after>
from core import BotAI from core import Connector from decorators import message_must_begin_with from decorators import message_must_begin_with_attr from decorators import message_must_begin_with_nickname
Allow modules that use dudebot to just import dudebot...from core import BotAI from core import Connector from decorators import message_must_begin_with from decorators import message_must_begin_with_attr from decorators import message_must_begin_with_nickname
<commit_before><commit_msg>Allow modules that use dudebot to just import dudebot...<commit_after>from core import BotAI from core import Connector from decorators import message_must_begin_with from decorators import message_must_begin_with_attr from decorators import message_must_begin_with_nickname
710d94f0b08b3d51fbcfda13050dc21e3d53f2e7
yunity/resources/tests/integration/test_chat__add_invalid_user_to_chat_fails/request.py
yunity/resources/tests/integration/test_chat__add_invalid_user_to_chat_fails/request.py
from .initial_data import request_user, chatid request = { "endpoint": "/api/chats/{}/participants".format(chatid), "method": "post", "user": request_user, "body": { "users": [666666] } }
from .initial_data import request_user, chatid request = { "endpoint": "/api/chats/{}/participants".format(chatid), "method": "post", "user": request_user, "body": { "users": [666666, 22] } }
Fix testcase for better coverage
Fix testcase for better coverage
Python
agpl-3.0
yunity/yunity-core,yunity/foodsaving-backend,yunity/yunity-core,yunity/foodsaving-backend,yunity/foodsaving-backend
from .initial_data import request_user, chatid request = { "endpoint": "/api/chats/{}/participants".format(chatid), "method": "post", "user": request_user, "body": { "users": [666666] } } Fix testcase for better coverage
from .initial_data import request_user, chatid request = { "endpoint": "/api/chats/{}/participants".format(chatid), "method": "post", "user": request_user, "body": { "users": [666666, 22] } }
<commit_before>from .initial_data import request_user, chatid request = { "endpoint": "/api/chats/{}/participants".format(chatid), "method": "post", "user": request_user, "body": { "users": [666666] } } <commit_msg>Fix testcase for better coverage<commit_after>
from .initial_data import request_user, chatid request = { "endpoint": "/api/chats/{}/participants".format(chatid), "method": "post", "user": request_user, "body": { "users": [666666, 22] } }
from .initial_data import request_user, chatid request = { "endpoint": "/api/chats/{}/participants".format(chatid), "method": "post", "user": request_user, "body": { "users": [666666] } } Fix testcase for better coveragefrom .initial_data import request_user, chatid request = { "endpoi...
<commit_before>from .initial_data import request_user, chatid request = { "endpoint": "/api/chats/{}/participants".format(chatid), "method": "post", "user": request_user, "body": { "users": [666666] } } <commit_msg>Fix testcase for better coverage<commit_after>from .initial_data import requ...
3307bfb7075a527dc7805da2ff735f461f5fc02f
employees/models.py
employees/models.py
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Role(models.Model): name = models.CharField(max_length=100) def __str__(self): ret...
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Role(models.Model): name = models.CharField(max_length=100) def __str__(self): ret...
Change categories field to non required.
Change categories field to non required.
Python
mit
neosergio/allstars
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Role(models.Model): name = models.CharField(max_length=100) def __str__(self): ret...
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Role(models.Model): name = models.CharField(max_length=100) def __str__(self): ret...
<commit_before>from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Role(models.Model): name = models.CharField(max_length=100) def __str__(sel...
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Role(models.Model): name = models.CharField(max_length=100) def __str__(self): ret...
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Role(models.Model): name = models.CharField(max_length=100) def __str__(self): ret...
<commit_before>from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Role(models.Model): name = models.CharField(max_length=100) def __str__(sel...
b8bc10e151f12e2bfe2c03765a410a04325a3233
satchmo/product/templatetags/satchmo_product.py
satchmo/product/templatetags/satchmo_product.py
from django import template from django.conf import settings from django.core import urlresolvers from django.template import Context, Template from django.utils.translation import get_language, ugettext_lazy as _ from satchmo.configuration import config_value from satchmo.product.models import Category from satchmo.sh...
from django import template from django.conf import settings from django.core import urlresolvers from django.template import Context, Template from django.utils.translation import get_language, ugettext_lazy as _ from satchmo.configuration import config_value from satchmo.product.models import Category from satchmo.sh...
Change the is_producttype template tag to return a boolean rather than a string.
Change the is_producttype template tag to return a boolean rather than a string. --HG-- extra : convert_revision : svn%3Aa38d40e9-c014-0410-b785-c606c0c8e7de/satchmo/trunk%401200
Python
bsd-3-clause
Ryati/satchmo,ringemup/satchmo,Ryati/satchmo,dokterbob/satchmo,twidi/satchmo,twidi/satchmo,dokterbob/satchmo,ringemup/satchmo
from django import template from django.conf import settings from django.core import urlresolvers from django.template import Context, Template from django.utils.translation import get_language, ugettext_lazy as _ from satchmo.configuration import config_value from satchmo.product.models import Category from satchmo.sh...
from django import template from django.conf import settings from django.core import urlresolvers from django.template import Context, Template from django.utils.translation import get_language, ugettext_lazy as _ from satchmo.configuration import config_value from satchmo.product.models import Category from satchmo.sh...
<commit_before>from django import template from django.conf import settings from django.core import urlresolvers from django.template import Context, Template from django.utils.translation import get_language, ugettext_lazy as _ from satchmo.configuration import config_value from satchmo.product.models import Category ...
from django import template from django.conf import settings from django.core import urlresolvers from django.template import Context, Template from django.utils.translation import get_language, ugettext_lazy as _ from satchmo.configuration import config_value from satchmo.product.models import Category from satchmo.sh...
from django import template from django.conf import settings from django.core import urlresolvers from django.template import Context, Template from django.utils.translation import get_language, ugettext_lazy as _ from satchmo.configuration import config_value from satchmo.product.models import Category from satchmo.sh...
<commit_before>from django import template from django.conf import settings from django.core import urlresolvers from django.template import Context, Template from django.utils.translation import get_language, ugettext_lazy as _ from satchmo.configuration import config_value from satchmo.product.models import Category ...
b4247769fcaa67d09e0f38d1283cf4f28ddc350e
cookiecutter/extensions.py
cookiecutter/extensions.py
# -*- coding: utf-8 -*- """Jinja2 extensions.""" import json from jinja2.ext import Extension class JsonifyExtension(Extension): """Jinja2 extension to convert a python object to json.""" def __init__(self, environment): """Initilize extension with given environment.""" super(JsonifyExtens...
# -*- coding: utf-8 -*- """Jinja2 extensions.""" import json from jinja2.ext import Extension class JsonifyExtension(Extension): """Jinja2 extension to convert a Python object to JSON.""" def __init__(self, environment): """Initialize the extension with the given environment.""" super(Json...
Fix typo and improve grammar in doc string
Fix typo and improve grammar in doc string
Python
bsd-3-clause
michaeljoseph/cookiecutter,dajose/cookiecutter,audreyr/cookiecutter,hackebrot/cookiecutter,audreyr/cookiecutter,hackebrot/cookiecutter,luzfcb/cookiecutter,pjbull/cookiecutter,dajose/cookiecutter,pjbull/cookiecutter,luzfcb/cookiecutter,michaeljoseph/cookiecutter
# -*- coding: utf-8 -*- """Jinja2 extensions.""" import json from jinja2.ext import Extension class JsonifyExtension(Extension): """Jinja2 extension to convert a python object to json.""" def __init__(self, environment): """Initilize extension with given environment.""" super(JsonifyExtens...
# -*- coding: utf-8 -*- """Jinja2 extensions.""" import json from jinja2.ext import Extension class JsonifyExtension(Extension): """Jinja2 extension to convert a Python object to JSON.""" def __init__(self, environment): """Initialize the extension with the given environment.""" super(Json...
<commit_before># -*- coding: utf-8 -*- """Jinja2 extensions.""" import json from jinja2.ext import Extension class JsonifyExtension(Extension): """Jinja2 extension to convert a python object to json.""" def __init__(self, environment): """Initilize extension with given environment.""" supe...
# -*- coding: utf-8 -*- """Jinja2 extensions.""" import json from jinja2.ext import Extension class JsonifyExtension(Extension): """Jinja2 extension to convert a Python object to JSON.""" def __init__(self, environment): """Initialize the extension with the given environment.""" super(Json...
# -*- coding: utf-8 -*- """Jinja2 extensions.""" import json from jinja2.ext import Extension class JsonifyExtension(Extension): """Jinja2 extension to convert a python object to json.""" def __init__(self, environment): """Initilize extension with given environment.""" super(JsonifyExtens...
<commit_before># -*- coding: utf-8 -*- """Jinja2 extensions.""" import json from jinja2.ext import Extension class JsonifyExtension(Extension): """Jinja2 extension to convert a python object to json.""" def __init__(self, environment): """Initilize extension with given environment.""" supe...
42ec5ed6d56fcc59c99d175e1c9280d00cd3bef1
tests/test_published_results.py
tests/test_published_results.py
""" To test if the new code produces the same precision values on the published results.""" from __future__ import division, print_function import pytest import numpy as np import eniric.Qcalculator as Q import eniric.IOmodule as IO from bin.prec_1 import calc_prec1 # For python2.X compatibility file_error_to_catch...
""" To test if the new code produces the same precision values on the published results.""" from __future__ import division, print_function import pytest import numpy as np import eniric.Qcalculator as Q import eniric.IOmodule as IO from bin.prec_1 import calc_prec1 # For python2.X compatibility file_error_to_catch...
Add known offset for known bad calibration.
Add known offset for known bad calibration. Former-commit-id: afa3d6a66e32bbcc2b20f00f7e63fba5cb45882e [formerly 0470ca22b8a24205d2eb1c66caee912c990da0b3] [formerly c23210f4056c27e61708da2f2440bce3eda151a8 [formerly 5c0a6b9c0fefd2b88b9382d4a6ed98d9eac626df]] Former-commit-id: 8bfdaa1f7940b26aee05f20e801616f4a8d1d55d ...
Python
mit
jason-neal/eniric,jason-neal/eniric
""" To test if the new code produces the same precision values on the published results.""" from __future__ import division, print_function import pytest import numpy as np import eniric.Qcalculator as Q import eniric.IOmodule as IO from bin.prec_1 import calc_prec1 # For python2.X compatibility file_error_to_catch...
""" To test if the new code produces the same precision values on the published results.""" from __future__ import division, print_function import pytest import numpy as np import eniric.Qcalculator as Q import eniric.IOmodule as IO from bin.prec_1 import calc_prec1 # For python2.X compatibility file_error_to_catch...
<commit_before> """ To test if the new code produces the same precision values on the published results.""" from __future__ import division, print_function import pytest import numpy as np import eniric.Qcalculator as Q import eniric.IOmodule as IO from bin.prec_1 import calc_prec1 # For python2.X compatibility file...
""" To test if the new code produces the same precision values on the published results.""" from __future__ import division, print_function import pytest import numpy as np import eniric.Qcalculator as Q import eniric.IOmodule as IO from bin.prec_1 import calc_prec1 # For python2.X compatibility file_error_to_catch...
""" To test if the new code produces the same precision values on the published results.""" from __future__ import division, print_function import pytest import numpy as np import eniric.Qcalculator as Q import eniric.IOmodule as IO from bin.prec_1 import calc_prec1 # For python2.X compatibility file_error_to_catch...
<commit_before> """ To test if the new code produces the same precision values on the published results.""" from __future__ import division, print_function import pytest import numpy as np import eniric.Qcalculator as Q import eniric.IOmodule as IO from bin.prec_1 import calc_prec1 # For python2.X compatibility file...
f3df3b2b8e1167e953457a85f2297d28b6a39729
examples/Micro.Blog/microblog.py
examples/Micro.Blog/microblog.py
from getpass import getpass from bessie import BaseClient import config class MicroBlogApi(BaseClient): endpoints = config.available_endpoints separator = '/' base_url='https://micro.blog' def __init__(self, path='', token=''): self.token = token super(self.__class__, self).__init__(path, token=token) #...
from getpass import getpass from bessie import BaseClient import config class MicroBlogApi(BaseClient): endpoints = config.available_endpoints separator = '/' base_url='https://micro.blog' def __init__(self, path='', path_params=None, token=''): self.token = token super(self.__class__, self).__init__(path...
Include path_params in override constructor
Include path_params in override constructor
Python
mit
andymitchhank/bessie
from getpass import getpass from bessie import BaseClient import config class MicroBlogApi(BaseClient): endpoints = config.available_endpoints separator = '/' base_url='https://micro.blog' def __init__(self, path='', token=''): self.token = token super(self.__class__, self).__init__(path, token=token) #...
from getpass import getpass from bessie import BaseClient import config class MicroBlogApi(BaseClient): endpoints = config.available_endpoints separator = '/' base_url='https://micro.blog' def __init__(self, path='', path_params=None, token=''): self.token = token super(self.__class__, self).__init__(path...
<commit_before>from getpass import getpass from bessie import BaseClient import config class MicroBlogApi(BaseClient): endpoints = config.available_endpoints separator = '/' base_url='https://micro.blog' def __init__(self, path='', token=''): self.token = token super(self.__class__, self).__init__(path, t...
from getpass import getpass from bessie import BaseClient import config class MicroBlogApi(BaseClient): endpoints = config.available_endpoints separator = '/' base_url='https://micro.blog' def __init__(self, path='', path_params=None, token=''): self.token = token super(self.__class__, self).__init__(path...
from getpass import getpass from bessie import BaseClient import config class MicroBlogApi(BaseClient): endpoints = config.available_endpoints separator = '/' base_url='https://micro.blog' def __init__(self, path='', token=''): self.token = token super(self.__class__, self).__init__(path, token=token) #...
<commit_before>from getpass import getpass from bessie import BaseClient import config class MicroBlogApi(BaseClient): endpoints = config.available_endpoints separator = '/' base_url='https://micro.blog' def __init__(self, path='', token=''): self.token = token super(self.__class__, self).__init__(path, t...
c9980756dcee82cc570208e73ec1a2112aea0155
tvtk/tests/test_scene.py
tvtk/tests/test_scene.py
""" Tests for the garbage collection of Scene objects. """ # Authors: Deepak Surti, Ioannis Tziakos # Copyright (c) 2015, Enthought, Inc. # License: BSD Style. import unittest import weakref import gc from traits.etsconfig.api import ETSConfig from tvtk.pyface.scene import Scene from tvtk.tests.common import restore...
""" Tests for the garbage collection of Scene objects. """ # Authors: Deepak Surti, Ioannis Tziakos # Copyright (c) 2015, Enthought, Inc. # License: BSD Style. import unittest import weakref import gc from traits.etsconfig.api import ETSConfig from tvtk.pyface.scene import Scene from tvtk.tests.common import restore...
Add weakref assertion in test case
Add weakref assertion in test case
Python
bsd-3-clause
alexandreleroux/mayavi,dmsurti/mayavi,dmsurti/mayavi,alexandreleroux/mayavi,liulion/mayavi,liulion/mayavi
""" Tests for the garbage collection of Scene objects. """ # Authors: Deepak Surti, Ioannis Tziakos # Copyright (c) 2015, Enthought, Inc. # License: BSD Style. import unittest import weakref import gc from traits.etsconfig.api import ETSConfig from tvtk.pyface.scene import Scene from tvtk.tests.common import restore...
""" Tests for the garbage collection of Scene objects. """ # Authors: Deepak Surti, Ioannis Tziakos # Copyright (c) 2015, Enthought, Inc. # License: BSD Style. import unittest import weakref import gc from traits.etsconfig.api import ETSConfig from tvtk.pyface.scene import Scene from tvtk.tests.common import restore...
<commit_before>""" Tests for the garbage collection of Scene objects. """ # Authors: Deepak Surti, Ioannis Tziakos # Copyright (c) 2015, Enthought, Inc. # License: BSD Style. import unittest import weakref import gc from traits.etsconfig.api import ETSConfig from tvtk.pyface.scene import Scene from tvtk.tests.common...
""" Tests for the garbage collection of Scene objects. """ # Authors: Deepak Surti, Ioannis Tziakos # Copyright (c) 2015, Enthought, Inc. # License: BSD Style. import unittest import weakref import gc from traits.etsconfig.api import ETSConfig from tvtk.pyface.scene import Scene from tvtk.tests.common import restore...
""" Tests for the garbage collection of Scene objects. """ # Authors: Deepak Surti, Ioannis Tziakos # Copyright (c) 2015, Enthought, Inc. # License: BSD Style. import unittest import weakref import gc from traits.etsconfig.api import ETSConfig from tvtk.pyface.scene import Scene from tvtk.tests.common import restore...
<commit_before>""" Tests for the garbage collection of Scene objects. """ # Authors: Deepak Surti, Ioannis Tziakos # Copyright (c) 2015, Enthought, Inc. # License: BSD Style. import unittest import weakref import gc from traits.etsconfig.api import ETSConfig from tvtk.pyface.scene import Scene from tvtk.tests.common...
74b2883c3371304e8f5ea95b0454fb006d85ba3d
mapentity/urls.py
mapentity/urls.py
from django.conf import settings from django.conf.urls import patterns, url from . import app_settings from .views import (map_screenshot, convert, history_delete, serve_secure_media, JSSettings) _MEDIA_URL = settings.MEDIA_URL.replace(app_settings['ROOT_URL'], '')[1:] urlpatterns = patterns( ...
from django.conf import settings from django.conf.urls import patterns, url from . import app_settings from .views import (map_screenshot, convert, history_delete, serve_secure_media, JSSettings) _MEDIA_URL = settings.MEDIA_URL.replace(app_settings['ROOT_URL'], '') if _MEDIA_URL.startswith('/'): ...
Remove leading and trailing slash of MEDIA_URL
Remove leading and trailing slash of MEDIA_URL Conflicts: mapentity/static/mapentity/Leaflet.label
Python
bsd-3-clause
Anaethelion/django-mapentity,Anaethelion/django-mapentity,makinacorpus/django-mapentity,makinacorpus/django-mapentity,Anaethelion/django-mapentity,makinacorpus/django-mapentity
from django.conf import settings from django.conf.urls import patterns, url from . import app_settings from .views import (map_screenshot, convert, history_delete, serve_secure_media, JSSettings) _MEDIA_URL = settings.MEDIA_URL.replace(app_settings['ROOT_URL'], '')[1:] urlpatterns = patterns( ...
from django.conf import settings from django.conf.urls import patterns, url from . import app_settings from .views import (map_screenshot, convert, history_delete, serve_secure_media, JSSettings) _MEDIA_URL = settings.MEDIA_URL.replace(app_settings['ROOT_URL'], '') if _MEDIA_URL.startswith('/'): ...
<commit_before>from django.conf import settings from django.conf.urls import patterns, url from . import app_settings from .views import (map_screenshot, convert, history_delete, serve_secure_media, JSSettings) _MEDIA_URL = settings.MEDIA_URL.replace(app_settings['ROOT_URL'], '')[1:] urlpattern...
from django.conf import settings from django.conf.urls import patterns, url from . import app_settings from .views import (map_screenshot, convert, history_delete, serve_secure_media, JSSettings) _MEDIA_URL = settings.MEDIA_URL.replace(app_settings['ROOT_URL'], '') if _MEDIA_URL.startswith('/'): ...
from django.conf import settings from django.conf.urls import patterns, url from . import app_settings from .views import (map_screenshot, convert, history_delete, serve_secure_media, JSSettings) _MEDIA_URL = settings.MEDIA_URL.replace(app_settings['ROOT_URL'], '')[1:] urlpatterns = patterns( ...
<commit_before>from django.conf import settings from django.conf.urls import patterns, url from . import app_settings from .views import (map_screenshot, convert, history_delete, serve_secure_media, JSSettings) _MEDIA_URL = settings.MEDIA_URL.replace(app_settings['ROOT_URL'], '')[1:] urlpattern...
6953b831c3c48a3512a86ca9e7e92edbf7a62f08
tests/integration/test_sqs.py
tests/integration/test_sqs.py
import os from asyncaws import SQS from tornado.testing import AsyncTestCase, gen_test aws_key_id = os.environ['AWS_ACCESS_KEY_ID'] aws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY'] aws_region = os.environ['AWS_REGION'] class TestSQS(AsyncTestCase): sqs = SQS(aws_key_id, aws_key_secret, aws_region, async=Fals...
import os from asyncaws import SQS from tornado.testing import AsyncTestCase, gen_test from random import randint aws_key_id = os.environ['AWS_ACCESS_KEY_ID'] aws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY'] aws_region = os.environ['AWS_REGION'] aws_test_account_id = "637085312181" class TestSQS(AsyncTestCase): ...
Add correct setUp/tearDown methods for integration sqs test
Add correct setUp/tearDown methods for integration sqs test
Python
mit
MA3STR0/AsyncAWS
import os from asyncaws import SQS from tornado.testing import AsyncTestCase, gen_test aws_key_id = os.environ['AWS_ACCESS_KEY_ID'] aws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY'] aws_region = os.environ['AWS_REGION'] class TestSQS(AsyncTestCase): sqs = SQS(aws_key_id, aws_key_secret, aws_region, async=Fals...
import os from asyncaws import SQS from tornado.testing import AsyncTestCase, gen_test from random import randint aws_key_id = os.environ['AWS_ACCESS_KEY_ID'] aws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY'] aws_region = os.environ['AWS_REGION'] aws_test_account_id = "637085312181" class TestSQS(AsyncTestCase): ...
<commit_before>import os from asyncaws import SQS from tornado.testing import AsyncTestCase, gen_test aws_key_id = os.environ['AWS_ACCESS_KEY_ID'] aws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY'] aws_region = os.environ['AWS_REGION'] class TestSQS(AsyncTestCase): sqs = SQS(aws_key_id, aws_key_secret, aws_reg...
import os from asyncaws import SQS from tornado.testing import AsyncTestCase, gen_test from random import randint aws_key_id = os.environ['AWS_ACCESS_KEY_ID'] aws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY'] aws_region = os.environ['AWS_REGION'] aws_test_account_id = "637085312181" class TestSQS(AsyncTestCase): ...
import os from asyncaws import SQS from tornado.testing import AsyncTestCase, gen_test aws_key_id = os.environ['AWS_ACCESS_KEY_ID'] aws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY'] aws_region = os.environ['AWS_REGION'] class TestSQS(AsyncTestCase): sqs = SQS(aws_key_id, aws_key_secret, aws_region, async=Fals...
<commit_before>import os from asyncaws import SQS from tornado.testing import AsyncTestCase, gen_test aws_key_id = os.environ['AWS_ACCESS_KEY_ID'] aws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY'] aws_region = os.environ['AWS_REGION'] class TestSQS(AsyncTestCase): sqs = SQS(aws_key_id, aws_key_secret, aws_reg...
180e574471d449cfb3500c720741b36008917ec0
example_project/urls.py
example_project/urls.py
import re import sys from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Admin section from django.contrib import admin admin.autodiscover() urlpatterns = staticfiles_urlp...
import re import sys from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Admin section from django.contrib import admin admin.autodiscover() urlpatterns = staticfiles_urlp...
Include admin in example project.
Include admin in example project.
Python
agpl-3.0
opencorato/sayit,opencorato/sayit,opencorato/sayit,opencorato/sayit
import re import sys from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Admin section from django.contrib import admin admin.autodiscover() urlpatterns = staticfiles_urlp...
import re import sys from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Admin section from django.contrib import admin admin.autodiscover() urlpatterns = staticfiles_urlp...
<commit_before>import re import sys from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Admin section from django.contrib import admin admin.autodiscover() urlpatterns = s...
import re import sys from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Admin section from django.contrib import admin admin.autodiscover() urlpatterns = staticfiles_urlp...
import re import sys from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Admin section from django.contrib import admin admin.autodiscover() urlpatterns = staticfiles_urlp...
<commit_before>import re import sys from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Admin section from django.contrib import admin admin.autodiscover() urlpatterns = s...
7dd17cc10f7e0857ab3017177d6c4abeb115ff07
south/models.py
south/models.py
from django.db import models from south.db import DEFAULT_DB_ALIAS class MigrationHistory(models.Model): app_name = models.CharField(max_length=255) migration = models.CharField(max_length=255) applied = models.DateTimeField(blank=True) @classmethod def for_migration(cls, migration, database): ...
from django.db import models from south.db import DEFAULT_DB_ALIAS # If we detect Django 1.7 or higher, then exit # Placed here so it's guaranteed to be imported on Django start import django if django.VERSION[0] > 1 or (django.VERSION[0] == 1 and django.VERSION[1] > 6): raise RuntimeError("South does not support ...
Add explicit version check for Django 1.7 or above
Add explicit version check for Django 1.7 or above
Python
apache-2.0
smartfile/django-south,smartfile/django-south
from django.db import models from south.db import DEFAULT_DB_ALIAS class MigrationHistory(models.Model): app_name = models.CharField(max_length=255) migration = models.CharField(max_length=255) applied = models.DateTimeField(blank=True) @classmethod def for_migration(cls, migration, database): ...
from django.db import models from south.db import DEFAULT_DB_ALIAS # If we detect Django 1.7 or higher, then exit # Placed here so it's guaranteed to be imported on Django start import django if django.VERSION[0] > 1 or (django.VERSION[0] == 1 and django.VERSION[1] > 6): raise RuntimeError("South does not support ...
<commit_before>from django.db import models from south.db import DEFAULT_DB_ALIAS class MigrationHistory(models.Model): app_name = models.CharField(max_length=255) migration = models.CharField(max_length=255) applied = models.DateTimeField(blank=True) @classmethod def for_migration(cls, migration,...
from django.db import models from south.db import DEFAULT_DB_ALIAS # If we detect Django 1.7 or higher, then exit # Placed here so it's guaranteed to be imported on Django start import django if django.VERSION[0] > 1 or (django.VERSION[0] == 1 and django.VERSION[1] > 6): raise RuntimeError("South does not support ...
from django.db import models from south.db import DEFAULT_DB_ALIAS class MigrationHistory(models.Model): app_name = models.CharField(max_length=255) migration = models.CharField(max_length=255) applied = models.DateTimeField(blank=True) @classmethod def for_migration(cls, migration, database): ...
<commit_before>from django.db import models from south.db import DEFAULT_DB_ALIAS class MigrationHistory(models.Model): app_name = models.CharField(max_length=255) migration = models.CharField(max_length=255) applied = models.DateTimeField(blank=True) @classmethod def for_migration(cls, migration,...
b4cd58a9c5c27fb32b4f13cfc2d41206bb6b86a1
lib/presenter.py
lib/presenter.py
import os import tempfile from subprocess import call class SlidePresenter(object): def __init__(self): pass def present(self, slides): for sno, slide in enumerate(slides): with open(os.path.join(tempfile.gettempdir(), str(sno)+".md"), 'w') as f: f.write(slide) ...
import os import tempfile from subprocess import call class SlidePresenter(object): def __init__(self): pass def present(self, slides): for sno, slide in enumerate(slides): with open(os.path.join(tempfile.gettempdir(), str(sno)+".md"), 'w') as f: f.write(slide) ...
Use range instead of xrange
Use range instead of xrange
Python
mit
gabber12/slides.vim
import os import tempfile from subprocess import call class SlidePresenter(object): def __init__(self): pass def present(self, slides): for sno, slide in enumerate(slides): with open(os.path.join(tempfile.gettempdir(), str(sno)+".md"), 'w') as f: f.write(slide) ...
import os import tempfile from subprocess import call class SlidePresenter(object): def __init__(self): pass def present(self, slides): for sno, slide in enumerate(slides): with open(os.path.join(tempfile.gettempdir(), str(sno)+".md"), 'w') as f: f.write(slide) ...
<commit_before>import os import tempfile from subprocess import call class SlidePresenter(object): def __init__(self): pass def present(self, slides): for sno, slide in enumerate(slides): with open(os.path.join(tempfile.gettempdir(), str(sno)+".md"), 'w') as f: f....
import os import tempfile from subprocess import call class SlidePresenter(object): def __init__(self): pass def present(self, slides): for sno, slide in enumerate(slides): with open(os.path.join(tempfile.gettempdir(), str(sno)+".md"), 'w') as f: f.write(slide) ...
import os import tempfile from subprocess import call class SlidePresenter(object): def __init__(self): pass def present(self, slides): for sno, slide in enumerate(slides): with open(os.path.join(tempfile.gettempdir(), str(sno)+".md"), 'w') as f: f.write(slide) ...
<commit_before>import os import tempfile from subprocess import call class SlidePresenter(object): def __init__(self): pass def present(self, slides): for sno, slide in enumerate(slides): with open(os.path.join(tempfile.gettempdir(), str(sno)+".md"), 'w') as f: f....
fe85f1f135d2a7831afee6c8ab0bad394beb8aba
src/ais.py
src/ais.py
class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage please.') clas...
from src.constants import * class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this...
Add throwing item usage to test AI
Add throwing item usage to test AI Unforutnately the item isn't evicted from the inventory on usage, so the guy with the throwing item can kill everybody, but it's working - he does throw it!
Python
mit
MoyTW/RL_Arena_Experiment
class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage please.') clas...
from src.constants import * class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this...
<commit_before>class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage p...
from src.constants import * class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this...
class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage please.') clas...
<commit_before>class MonsterAI(object): def __init__(self, level): self.owner = None self.level = level def take_turn(self): self.owner.log.log_begin_turn(self.owner.oid) self._take_turn() def _take_turn(self): raise NotImplementedError('Subclass this before usage p...
3db0d12163d839c00965338c4f8efe29a85b3de7
journal.py
journal.py
# -*- coding: utf-8 -*- from flask import Flask import os import psycopg2 from contextlib import closing DB_SCHEMA = """ DROP TABLE IF EXISTS entries; CREATE TABLE entries ( id serial PRIMARY KEY, title VARCHAR (127) NOT NULL, text TEXT NOT NULL, created TIMESTAMP NOT NULL ) """ app = Flask(__name__) ...
# -*- coding: utf-8 -*- from flask import Flask import os import psycopg2 from contextlib import closing DB_SCHEMA = """ DROP TABLE IF EXISTS entries; CREATE TABLE entries ( id serial PRIMARY KEY, title VARCHAR (127) NOT NULL, text TEXT NOT NULL, created TIMESTAMP NOT NULL ) """ app = Flask(__name__) ...
Remove user from db connection string
Remove user from db connection string
Python
mit
lfritts/learning_journal,lfritts/learning_journal
# -*- coding: utf-8 -*- from flask import Flask import os import psycopg2 from contextlib import closing DB_SCHEMA = """ DROP TABLE IF EXISTS entries; CREATE TABLE entries ( id serial PRIMARY KEY, title VARCHAR (127) NOT NULL, text TEXT NOT NULL, created TIMESTAMP NOT NULL ) """ app = Flask(__name__) ...
# -*- coding: utf-8 -*- from flask import Flask import os import psycopg2 from contextlib import closing DB_SCHEMA = """ DROP TABLE IF EXISTS entries; CREATE TABLE entries ( id serial PRIMARY KEY, title VARCHAR (127) NOT NULL, text TEXT NOT NULL, created TIMESTAMP NOT NULL ) """ app = Flask(__name__) ...
<commit_before># -*- coding: utf-8 -*- from flask import Flask import os import psycopg2 from contextlib import closing DB_SCHEMA = """ DROP TABLE IF EXISTS entries; CREATE TABLE entries ( id serial PRIMARY KEY, title VARCHAR (127) NOT NULL, text TEXT NOT NULL, created TIMESTAMP NOT NULL ) """ app = F...
# -*- coding: utf-8 -*- from flask import Flask import os import psycopg2 from contextlib import closing DB_SCHEMA = """ DROP TABLE IF EXISTS entries; CREATE TABLE entries ( id serial PRIMARY KEY, title VARCHAR (127) NOT NULL, text TEXT NOT NULL, created TIMESTAMP NOT NULL ) """ app = Flask(__name__) ...
# -*- coding: utf-8 -*- from flask import Flask import os import psycopg2 from contextlib import closing DB_SCHEMA = """ DROP TABLE IF EXISTS entries; CREATE TABLE entries ( id serial PRIMARY KEY, title VARCHAR (127) NOT NULL, text TEXT NOT NULL, created TIMESTAMP NOT NULL ) """ app = Flask(__name__) ...
<commit_before># -*- coding: utf-8 -*- from flask import Flask import os import psycopg2 from contextlib import closing DB_SCHEMA = """ DROP TABLE IF EXISTS entries; CREATE TABLE entries ( id serial PRIMARY KEY, title VARCHAR (127) NOT NULL, text TEXT NOT NULL, created TIMESTAMP NOT NULL ) """ app = F...
fe78335e4f469e22f9a1de7a1e5ddd52021a7f0f
linesep.py
linesep.py
STARTER = -1 SEPARATOR = 0 TERMINATOR = 1 def readlines(fp, sep, mode=TERMINATOR, retain=True, size=512): if mode < 0: return _readlines_start(fp, sep, retain, size) elif mode == 0: return _readlines_sep(fp, sep, size) else: return _readlines_term(fp, sep, retain, size) def _readli...
def read_begun(fp, sep, retain=True, size=512): # Omits empty leading entry entries = read_separated(fp, sep, size=size) e = next(entries) if e: yield e for e in entries: if retain: e = sep + e yield e def read_separated(fp, sep, size=512): buff = '' for ...
Use three public functions instead of one
Use three public functions instead of one
Python
mit
jwodder/linesep
STARTER = -1 SEPARATOR = 0 TERMINATOR = 1 def readlines(fp, sep, mode=TERMINATOR, retain=True, size=512): if mode < 0: return _readlines_start(fp, sep, retain, size) elif mode == 0: return _readlines_sep(fp, sep, size) else: return _readlines_term(fp, sep, retain, size) def _readli...
def read_begun(fp, sep, retain=True, size=512): # Omits empty leading entry entries = read_separated(fp, sep, size=size) e = next(entries) if e: yield e for e in entries: if retain: e = sep + e yield e def read_separated(fp, sep, size=512): buff = '' for ...
<commit_before>STARTER = -1 SEPARATOR = 0 TERMINATOR = 1 def readlines(fp, sep, mode=TERMINATOR, retain=True, size=512): if mode < 0: return _readlines_start(fp, sep, retain, size) elif mode == 0: return _readlines_sep(fp, sep, size) else: return _readlines_term(fp, sep, retain, siz...
def read_begun(fp, sep, retain=True, size=512): # Omits empty leading entry entries = read_separated(fp, sep, size=size) e = next(entries) if e: yield e for e in entries: if retain: e = sep + e yield e def read_separated(fp, sep, size=512): buff = '' for ...
STARTER = -1 SEPARATOR = 0 TERMINATOR = 1 def readlines(fp, sep, mode=TERMINATOR, retain=True, size=512): if mode < 0: return _readlines_start(fp, sep, retain, size) elif mode == 0: return _readlines_sep(fp, sep, size) else: return _readlines_term(fp, sep, retain, size) def _readli...
<commit_before>STARTER = -1 SEPARATOR = 0 TERMINATOR = 1 def readlines(fp, sep, mode=TERMINATOR, retain=True, size=512): if mode < 0: return _readlines_start(fp, sep, retain, size) elif mode == 0: return _readlines_sep(fp, sep, size) else: return _readlines_term(fp, sep, retain, siz...
93650252e195b036698ded99d271d6249f0bd80f
project/scripts/dates.py
project/scripts/dates.py
# For now I am assuming the investment date will be returned from the db # as a string yyyy-mm-dd, representing the day the trend was purchased in UTC time #!/usr/bin/env python3 from datetime import datetime, timedelta import pytz def get_start_times(date): """ date: an epoch integer representing the date...
# For now I am assuming the investment date will be returned from the db # as a string yyyy-mm-dd, representing the day the trend was purchased in UTC time #!/usr/bin/env python3 from datetime import datetime, timedelta import pytz def get_start_times(date): """ date: an epoch integer representing the date...
Make sure epoch return type is int
Make sure epoch return type is int
Python
apache-2.0
googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks
# For now I am assuming the investment date will be returned from the db # as a string yyyy-mm-dd, representing the day the trend was purchased in UTC time #!/usr/bin/env python3 from datetime import datetime, timedelta import pytz def get_start_times(date): """ date: an epoch integer representing the date...
# For now I am assuming the investment date will be returned from the db # as a string yyyy-mm-dd, representing the day the trend was purchased in UTC time #!/usr/bin/env python3 from datetime import datetime, timedelta import pytz def get_start_times(date): """ date: an epoch integer representing the date...
<commit_before># For now I am assuming the investment date will be returned from the db # as a string yyyy-mm-dd, representing the day the trend was purchased in UTC time #!/usr/bin/env python3 from datetime import datetime, timedelta import pytz def get_start_times(date): """ date: an epoch integer repres...
# For now I am assuming the investment date will be returned from the db # as a string yyyy-mm-dd, representing the day the trend was purchased in UTC time #!/usr/bin/env python3 from datetime import datetime, timedelta import pytz def get_start_times(date): """ date: an epoch integer representing the date...
# For now I am assuming the investment date will be returned from the db # as a string yyyy-mm-dd, representing the day the trend was purchased in UTC time #!/usr/bin/env python3 from datetime import datetime, timedelta import pytz def get_start_times(date): """ date: an epoch integer representing the date...
<commit_before># For now I am assuming the investment date will be returned from the db # as a string yyyy-mm-dd, representing the day the trend was purchased in UTC time #!/usr/bin/env python3 from datetime import datetime, timedelta import pytz def get_start_times(date): """ date: an epoch integer repres...
e9ae6b7f92ee0a4585adc11e695cc15cbe425e23
morepath/app.py
morepath/app.py
from .interfaces import IRoot, IApp from .publish import publish from .request import Request from .traject import Traject from comparch import ClassRegistry, Lookup, ChainClassLookup known_apps = {} class App(IApp, ClassRegistry): def __init__(self, name='', parent=None): super(App, self).__init__() ...
from .interfaces import IRoot, IApp from .publish import publish from .request import Request from .traject import Traject from comparch import ClassRegistry, Lookup, ChainClassLookup known_apps = {} class App(IApp, ClassRegistry): def __init__(self, name='', parent=None): super(App, self).__init__() ...
Remove root that wasn't used.
Remove root that wasn't used.
Python
bsd-3-clause
faassen/morepath,morepath/morepath,taschini/morepath
from .interfaces import IRoot, IApp from .publish import publish from .request import Request from .traject import Traject from comparch import ClassRegistry, Lookup, ChainClassLookup known_apps = {} class App(IApp, ClassRegistry): def __init__(self, name='', parent=None): super(App, self).__init__() ...
from .interfaces import IRoot, IApp from .publish import publish from .request import Request from .traject import Traject from comparch import ClassRegistry, Lookup, ChainClassLookup known_apps = {} class App(IApp, ClassRegistry): def __init__(self, name='', parent=None): super(App, self).__init__() ...
<commit_before>from .interfaces import IRoot, IApp from .publish import publish from .request import Request from .traject import Traject from comparch import ClassRegistry, Lookup, ChainClassLookup known_apps = {} class App(IApp, ClassRegistry): def __init__(self, name='', parent=None): super(App, self)....
from .interfaces import IRoot, IApp from .publish import publish from .request import Request from .traject import Traject from comparch import ClassRegistry, Lookup, ChainClassLookup known_apps = {} class App(IApp, ClassRegistry): def __init__(self, name='', parent=None): super(App, self).__init__() ...
from .interfaces import IRoot, IApp from .publish import publish from .request import Request from .traject import Traject from comparch import ClassRegistry, Lookup, ChainClassLookup known_apps = {} class App(IApp, ClassRegistry): def __init__(self, name='', parent=None): super(App, self).__init__() ...
<commit_before>from .interfaces import IRoot, IApp from .publish import publish from .request import Request from .traject import Traject from comparch import ClassRegistry, Lookup, ChainClassLookup known_apps = {} class App(IApp, ClassRegistry): def __init__(self, name='', parent=None): super(App, self)....
a7938ed9ec814fa9cf53272ceb65e84d11d50dc1
moto/s3/urls.py
moto/s3/urls.py
from __future__ import unicode_literals from moto.compat import OrderedDict from .responses import S3ResponseInstance url_bases = [ "https?://s3(.*).amazonaws.com", "https?://(?P<bucket_name>[a-zA-Z0-9\-_.]*)\.?s3(.*).amazonaws.com" ] url_paths = OrderedDict([ # subdomain bucket ('{0}/$', S3ResponseI...
from __future__ import unicode_literals from .responses import S3ResponseInstance url_bases = [ "https?://s3(.*).amazonaws.com", "https?://(?P<bucket_name>[a-zA-Z0-9\-_.]*)\.?s3(.*).amazonaws.com" ] url_paths = { # subdomain bucket '{0}/$': S3ResponseInstance.bucket_response, # subdomain key of ...
Fix s3 url regex to ensure path-based bucket and key does not catch.
Fix s3 url regex to ensure path-based bucket and key does not catch.
Python
apache-2.0
william-richard/moto,kefo/moto,botify-labs/moto,2rs2ts/moto,dbfr3qs/moto,im-auld/moto,william-richard/moto,william-richard/moto,Affirm/moto,kefo/moto,botify-labs/moto,Brett55/moto,ZuluPro/moto,ZuluPro/moto,okomestudio/moto,spulec/moto,whummer/moto,william-richard/moto,kefo/moto,kefo/moto,ZuluPro/moto,dbfr3qs/moto,heddl...
from __future__ import unicode_literals from moto.compat import OrderedDict from .responses import S3ResponseInstance url_bases = [ "https?://s3(.*).amazonaws.com", "https?://(?P<bucket_name>[a-zA-Z0-9\-_.]*)\.?s3(.*).amazonaws.com" ] url_paths = OrderedDict([ # subdomain bucket ('{0}/$', S3ResponseI...
from __future__ import unicode_literals from .responses import S3ResponseInstance url_bases = [ "https?://s3(.*).amazonaws.com", "https?://(?P<bucket_name>[a-zA-Z0-9\-_.]*)\.?s3(.*).amazonaws.com" ] url_paths = { # subdomain bucket '{0}/$': S3ResponseInstance.bucket_response, # subdomain key of ...
<commit_before>from __future__ import unicode_literals from moto.compat import OrderedDict from .responses import S3ResponseInstance url_bases = [ "https?://s3(.*).amazonaws.com", "https?://(?P<bucket_name>[a-zA-Z0-9\-_.]*)\.?s3(.*).amazonaws.com" ] url_paths = OrderedDict([ # subdomain bucket ('{0}/...
from __future__ import unicode_literals from .responses import S3ResponseInstance url_bases = [ "https?://s3(.*).amazonaws.com", "https?://(?P<bucket_name>[a-zA-Z0-9\-_.]*)\.?s3(.*).amazonaws.com" ] url_paths = { # subdomain bucket '{0}/$': S3ResponseInstance.bucket_response, # subdomain key of ...
from __future__ import unicode_literals from moto.compat import OrderedDict from .responses import S3ResponseInstance url_bases = [ "https?://s3(.*).amazonaws.com", "https?://(?P<bucket_name>[a-zA-Z0-9\-_.]*)\.?s3(.*).amazonaws.com" ] url_paths = OrderedDict([ # subdomain bucket ('{0}/$', S3ResponseI...
<commit_before>from __future__ import unicode_literals from moto.compat import OrderedDict from .responses import S3ResponseInstance url_bases = [ "https?://s3(.*).amazonaws.com", "https?://(?P<bucket_name>[a-zA-Z0-9\-_.]*)\.?s3(.*).amazonaws.com" ] url_paths = OrderedDict([ # subdomain bucket ('{0}/...
429c2548835aef1cb1655229ee11f42ccf189bd1
shopping_list.py
shopping_list.py
shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to stop. Enter HELP for this help. Enter SHOW to see your current list.")
shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to stop. Enter HELP for this help. Enter SHOW to see your current list.") def add_to_list(item): shopping_list.append(item) print("Added! List has {} items.".format(len(shopping_list)))
Add an item to the shopping list.
Add an item to the shopping list.
Python
mit
adityatrivedi/shopping-list
shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to stop. Enter HELP for this help. Enter SHOW to see your current list.") Add an item to the shopping list.
shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to stop. Enter HELP for this help. Enter SHOW to see your current list.") def add_to_list(item): shopping_list.append(item) print("Added! List has {} items.".format(len(shopping_list)))
<commit_before>shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to stop. Enter HELP for this help. Enter SHOW to see your current list.") <commit_msg>Add an item to the shopping list.<commit_after>
shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to stop. Enter HELP for this help. Enter SHOW to see your current list.") def add_to_list(item): shopping_list.append(item) print("Added! List has {} items.".format(len(shopping_list)))
shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to stop. Enter HELP for this help. Enter SHOW to see your current list.") Add an item to the shopping list.shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to...
<commit_before>shopping_list = [] def show_help(): print("What should we pick up at the store?") print("Enter DONE to stop. Enter HELP for this help. Enter SHOW to see your current list.") <commit_msg>Add an item to the shopping list.<commit_after>shopping_list = [] def show_help(): print("What should we pick ...
39ce4e74a6b7115a35260fa2722ace1792cb1780
python/count_triplets.py
python/count_triplets.py
#!/bin/python3 import math import os import random import re import sys from collections import Counter def countTriplets(arr, r): potential_triplets_with_middle = Counter() potential_triplets_with_end = Counter() total_triplets = 0 for num in arr: # num completed potential_triplets_with_end[n...
#!/bin/python3 import math import os import random import re import sys from collections import Counter def countTriplets(arr, r): potential_triplets_with_middle = Counter() potential_triplets_with_end = Counter() total_triplets = 0 for num in arr: # num completed potential_triplets_with_end[...
Remove debug output and pycodestyle
Remove debug output and pycodestyle
Python
mit
rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank
#!/bin/python3 import math import os import random import re import sys from collections import Counter def countTriplets(arr, r): potential_triplets_with_middle = Counter() potential_triplets_with_end = Counter() total_triplets = 0 for num in arr: # num completed potential_triplets_with_end[n...
#!/bin/python3 import math import os import random import re import sys from collections import Counter def countTriplets(arr, r): potential_triplets_with_middle = Counter() potential_triplets_with_end = Counter() total_triplets = 0 for num in arr: # num completed potential_triplets_with_end[...
<commit_before>#!/bin/python3 import math import os import random import re import sys from collections import Counter def countTriplets(arr, r): potential_triplets_with_middle = Counter() potential_triplets_with_end = Counter() total_triplets = 0 for num in arr: # num completed potential_trip...
#!/bin/python3 import math import os import random import re import sys from collections import Counter def countTriplets(arr, r): potential_triplets_with_middle = Counter() potential_triplets_with_end = Counter() total_triplets = 0 for num in arr: # num completed potential_triplets_with_end[...
#!/bin/python3 import math import os import random import re import sys from collections import Counter def countTriplets(arr, r): potential_triplets_with_middle = Counter() potential_triplets_with_end = Counter() total_triplets = 0 for num in arr: # num completed potential_triplets_with_end[n...
<commit_before>#!/bin/python3 import math import os import random import re import sys from collections import Counter def countTriplets(arr, r): potential_triplets_with_middle = Counter() potential_triplets_with_end = Counter() total_triplets = 0 for num in arr: # num completed potential_trip...
5dd78f614e5882bc2a3fcae24117a26ee34371ac
register-result.py
register-result.py
#!/usr/bin/env python import json import socket import sys if len(sys.argv) < 4: print("Error: Usage <register-result> <client> <name> <output> <status> <ttl>") sys.exit(128) check_client = sys.argv[1] check_name = sys.argv[2] check_output = sys.argv[3] check_status = int(sys.argv[4]) check_ttl = int(sys.arg...
#!/usr/bin/env python import json import socket import sys if len(sys.argv) < 4: print("Error: Usage <register-result> <client> <name> <output> <status> <ttl>") sys.exit(128) check_client = sys.argv[1] check_name = sys.argv[2] check_output = sys.argv[3] check_status = int(sys.argv[4]) check_ttl = int(sys.arg...
Fix mistake with socket constructor
Fix mistake with socket constructor
Python
mit
panubo/docker-monitor,panubo/docker-monitor,panubo/docker-monitor
#!/usr/bin/env python import json import socket import sys if len(sys.argv) < 4: print("Error: Usage <register-result> <client> <name> <output> <status> <ttl>") sys.exit(128) check_client = sys.argv[1] check_name = sys.argv[2] check_output = sys.argv[3] check_status = int(sys.argv[4]) check_ttl = int(sys.arg...
#!/usr/bin/env python import json import socket import sys if len(sys.argv) < 4: print("Error: Usage <register-result> <client> <name> <output> <status> <ttl>") sys.exit(128) check_client = sys.argv[1] check_name = sys.argv[2] check_output = sys.argv[3] check_status = int(sys.argv[4]) check_ttl = int(sys.arg...
<commit_before>#!/usr/bin/env python import json import socket import sys if len(sys.argv) < 4: print("Error: Usage <register-result> <client> <name> <output> <status> <ttl>") sys.exit(128) check_client = sys.argv[1] check_name = sys.argv[2] check_output = sys.argv[3] check_status = int(sys.argv[4]) check_tt...
#!/usr/bin/env python import json import socket import sys if len(sys.argv) < 4: print("Error: Usage <register-result> <client> <name> <output> <status> <ttl>") sys.exit(128) check_client = sys.argv[1] check_name = sys.argv[2] check_output = sys.argv[3] check_status = int(sys.argv[4]) check_ttl = int(sys.arg...
#!/usr/bin/env python import json import socket import sys if len(sys.argv) < 4: print("Error: Usage <register-result> <client> <name> <output> <status> <ttl>") sys.exit(128) check_client = sys.argv[1] check_name = sys.argv[2] check_output = sys.argv[3] check_status = int(sys.argv[4]) check_ttl = int(sys.arg...
<commit_before>#!/usr/bin/env python import json import socket import sys if len(sys.argv) < 4: print("Error: Usage <register-result> <client> <name> <output> <status> <ttl>") sys.exit(128) check_client = sys.argv[1] check_name = sys.argv[2] check_output = sys.argv[3] check_status = int(sys.argv[4]) check_tt...
7124d56b3edd85c64dcc7f3ff0fa172102fe8358
devtools/travis-ci/update_versions_json.py
devtools/travis-ci/update_versions_json.py
import json try: # Only works in Python 3.5 from urllib.request import urlopen except ImportError: from urllib2 import urlopen from yank import version if not version.release: print("This is not a release.") exit(0) URL = 'http://www.getyank.org' try: data = urlopen(URL + '/versions.json').re...
import json try: # Only works in Python 3.5 from urllib.request import urlopen except ImportError: from urllib2 import urlopen from yank import version #if not version.release: # print("This is not a release.") # exit(0) URL = 'http://www.getyank.org' try: data = urlopen(URL + '/versions.json')....
Disable the check for the initial versions push
Disable the check for the initial versions push
Python
mit
andrrizzi/yank,andrrizzi/yank,choderalab/yank,andrrizzi/yank,choderalab/yank
import json try: # Only works in Python 3.5 from urllib.request import urlopen except ImportError: from urllib2 import urlopen from yank import version if not version.release: print("This is not a release.") exit(0) URL = 'http://www.getyank.org' try: data = urlopen(URL + '/versions.json').re...
import json try: # Only works in Python 3.5 from urllib.request import urlopen except ImportError: from urllib2 import urlopen from yank import version #if not version.release: # print("This is not a release.") # exit(0) URL = 'http://www.getyank.org' try: data = urlopen(URL + '/versions.json')....
<commit_before>import json try: # Only works in Python 3.5 from urllib.request import urlopen except ImportError: from urllib2 import urlopen from yank import version if not version.release: print("This is not a release.") exit(0) URL = 'http://www.getyank.org' try: data = urlopen(URL + '/ver...
import json try: # Only works in Python 3.5 from urllib.request import urlopen except ImportError: from urllib2 import urlopen from yank import version #if not version.release: # print("This is not a release.") # exit(0) URL = 'http://www.getyank.org' try: data = urlopen(URL + '/versions.json')....
import json try: # Only works in Python 3.5 from urllib.request import urlopen except ImportError: from urllib2 import urlopen from yank import version if not version.release: print("This is not a release.") exit(0) URL = 'http://www.getyank.org' try: data = urlopen(URL + '/versions.json').re...
<commit_before>import json try: # Only works in Python 3.5 from urllib.request import urlopen except ImportError: from urllib2 import urlopen from yank import version if not version.release: print("This is not a release.") exit(0) URL = 'http://www.getyank.org' try: data = urlopen(URL + '/ver...
5e57dce84ffe7be7e699af1e2be953d5a65d8435
tests/test_module.py
tests/test_module.py
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys import dill import ...
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys import dill import ...
Add code to clean up
Add code to clean up
Python
bsd-3-clause
wxiang7/dill,mindw/dill
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys import dill import ...
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys import dill import ...
<commit_before>#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys impo...
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys import dill import ...
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys import dill import ...
<commit_before>#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys impo...
66a6223ca2c512f3f39ecb4867547a440611713b
nisl/__init__.py
nisl/__init__.py
""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ #from . import check_build #from .base import clone try: from numpy.testing import nosetester class NoseTester(nosetester.NoseTester): ...
""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ try: import numpy except ImportError: print 'Numpy could not be found, please install it properly to use nisl.' try: import scipy except Im...
Add an error message when trying to load nisl without having Numpy, Scipy and Sklearn installed.
Add an error message when trying to load nisl without having Numpy, Scipy and Sklearn installed.
Python
bsd-3-clause
abenicho/isvr
""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ #from . import check_build #from .base import clone try: from numpy.testing import nosetester class NoseTester(nosetester.NoseTester): ...
""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ try: import numpy except ImportError: print 'Numpy could not be found, please install it properly to use nisl.' try: import scipy except Im...
<commit_before>""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ #from . import check_build #from .base import clone try: from numpy.testing import nosetester class NoseTester(nosetester.NoseT...
""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ try: import numpy except ImportError: print 'Numpy could not be found, please install it properly to use nisl.' try: import scipy except Im...
""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ #from . import check_build #from .base import clone try: from numpy.testing import nosetester class NoseTester(nosetester.NoseTester): ...
<commit_before>""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ #from . import check_build #from .base import clone try: from numpy.testing import nosetester class NoseTester(nosetester.NoseT...
5a74ebe16cc46b93c5d6a7cb4880e74a7ea69442
chainerx/_cuda.py
chainerx/_cuda.py
import chainerx from chainerx import _pybind_cuda try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available with # the...
import chainerx try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available with # the CUDA backend. This is needed in o...
Fix import error when CUDA is not available
Fix import error when CUDA is not available
Python
mit
okuta/chainer,keisuke-umezawa/chainer,wkentaro/chainer,chainer/chainer,hvy/chainer,wkentaro/chainer,hvy/chainer,keisuke-umezawa/chainer,chainer/chainer,wkentaro/chainer,keisuke-umezawa/chainer,chainer/chainer,tkerola/chainer,keisuke-umezawa/chainer,pfnet/chainer,okuta/chainer,wkentaro/chainer,niboshi/chainer,niboshi/ch...
import chainerx from chainerx import _pybind_cuda try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available with # the...
import chainerx try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available with # the CUDA backend. This is needed in o...
<commit_before>import chainerx from chainerx import _pybind_cuda try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available...
import chainerx try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available with # the CUDA backend. This is needed in o...
import chainerx from chainerx import _pybind_cuda try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available with # the...
<commit_before>import chainerx from chainerx import _pybind_cuda try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available...
910e1a1762dac1d62c8a6749286c436d6c2b28d9
UM/Operations/RemoveSceneNodeOperation.py
UM/Operations/RemoveSceneNodeOperation.py
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation.Operation): ...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation.Operation): ...
Update convex hull of the group when removing a node from the group
Update convex hull of the group when removing a node from the group CURA-2573
Python
agpl-3.0
onitake/Uranium,onitake/Uranium
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation.Operation): ...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation.Operation): ...
<commit_before># Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation.Operation): ...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation.Operation): ...
<commit_before># Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation...
a17f711a6e055a9de4674e4c35570a2c6d6f0335
ttysend.py
ttysend.py
from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): """Send each char of data to tty.""" if(os.getuid() != 0): raise RootRequired('Only root can send in...
#!/usr/bin/env python from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): if len(data): # Handle trailing newline if data[-1][-1] != '\n': ...
Move newline handling to a function.
Move newline handling to a function. Allows library users to choose to force trailing newlines.
Python
mit
RichardBronosky/ttysend
from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): """Send each char of data to tty.""" if(os.getuid() != 0): raise RootRequired('Only root can send in...
#!/usr/bin/env python from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): if len(data): # Handle trailing newline if data[-1][-1] != '\n': ...
<commit_before>from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): """Send each char of data to tty.""" if(os.getuid() != 0): raise RootRequired('Only r...
#!/usr/bin/env python from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): if len(data): # Handle trailing newline if data[-1][-1] != '\n': ...
from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): """Send each char of data to tty.""" if(os.getuid() != 0): raise RootRequired('Only root can send in...
<commit_before>from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): """Send each char of data to tty.""" if(os.getuid() != 0): raise RootRequired('Only r...
782c1b8379d38f99de413398919aa797af0df645
plot_s_curve.py
plot_s_curve.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys x = [] y = [] infile = open(sys.argv[1]) for line in infile: data = line.replace('\n','').split() print(data) try : x.append(float(data[0])) y.append(float(data[1])) ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys import os import matplotlib.animation as animation fig = plt.figure() inpath = sys.argv[1] if os.path.isfile(inpath): print('Visiting {}'.format(inpath)) filenames = [inpath] else: _fil...
Use animation if dirname is provided
Use animation if dirname is provided
Python
mit
M2-AAIS/BAD
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys x = [] y = [] infile = open(sys.argv[1]) for line in infile: data = line.replace('\n','').split() print(data) try : x.append(float(data[0])) y.append(float(data[1])) ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys import os import matplotlib.animation as animation fig = plt.figure() inpath = sys.argv[1] if os.path.isfile(inpath): print('Visiting {}'.format(inpath)) filenames = [inpath] else: _fil...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys x = [] y = [] infile = open(sys.argv[1]) for line in infile: data = line.replace('\n','').split() print(data) try : x.append(float(data[0])) y.append(flo...
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys import os import matplotlib.animation as animation fig = plt.figure() inpath = sys.argv[1] if os.path.isfile(inpath): print('Visiting {}'.format(inpath)) filenames = [inpath] else: _fil...
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys x = [] y = [] infile = open(sys.argv[1]) for line in infile: data = line.replace('\n','').split() print(data) try : x.append(float(data[0])) y.append(float(data[1])) ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys x = [] y = [] infile = open(sys.argv[1]) for line in infile: data = line.replace('\n','').split() print(data) try : x.append(float(data[0])) y.append(flo...
c5ef0d8333bb427c588aa65ee6f081742c31c41e
setup.py
setup.py
from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='[email protected]', packages=find_packages(), classi...
from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='[email protected]', packages=find_packages(), instal...
Add Pygments as installation requirement
Add Pygments as installation requirement
Python
isc
trilan/snippets,trilan/snippets
from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='[email protected]', packages=find_packages(), classi...
from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='[email protected]', packages=find_packages(), instal...
<commit_before>from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='[email protected]', packages=find_package...
from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='[email protected]', packages=find_packages(), instal...
from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='[email protected]', packages=find_packages(), classi...
<commit_before>from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='[email protected]', packages=find_package...
56572fd9e38274074c8476f25dd47ee0799271ea
setup.py
setup.py
from distutils.core import setup setup(name='pv_atmos', version='1.1', description='Utilities for scientific visualization with ParaView', long_description='This package is described in a peer-reviewed open access article, which can be found at http://dx.doi.org/10.5334/jors.al'. author='Martin ...
from distutils.core import setup setup(name='pv_atmos', version='1.1.1', description='Utilities for scientific visualization with ParaView', long_description='This package is described in a peer-reviewed open access article, which can be found at http://dx.doi.org/10.5334/jors.al'. author='Marti...
Update to appropriate version number
Update to appropriate version number
Python
mit
mjucker/pv_atmos
from distutils.core import setup setup(name='pv_atmos', version='1.1', description='Utilities for scientific visualization with ParaView', long_description='This package is described in a peer-reviewed open access article, which can be found at http://dx.doi.org/10.5334/jors.al'. author='Martin ...
from distutils.core import setup setup(name='pv_atmos', version='1.1.1', description='Utilities for scientific visualization with ParaView', long_description='This package is described in a peer-reviewed open access article, which can be found at http://dx.doi.org/10.5334/jors.al'. author='Marti...
<commit_before>from distutils.core import setup setup(name='pv_atmos', version='1.1', description='Utilities for scientific visualization with ParaView', long_description='This package is described in a peer-reviewed open access article, which can be found at http://dx.doi.org/10.5334/jors.al'. ...
from distutils.core import setup setup(name='pv_atmos', version='1.1.1', description='Utilities for scientific visualization with ParaView', long_description='This package is described in a peer-reviewed open access article, which can be found at http://dx.doi.org/10.5334/jors.al'. author='Marti...
from distutils.core import setup setup(name='pv_atmos', version='1.1', description='Utilities for scientific visualization with ParaView', long_description='This package is described in a peer-reviewed open access article, which can be found at http://dx.doi.org/10.5334/jors.al'. author='Martin ...
<commit_before>from distutils.core import setup setup(name='pv_atmos', version='1.1', description='Utilities for scientific visualization with ParaView', long_description='This package is described in a peer-reviewed open access article, which can be found at http://dx.doi.org/10.5334/jors.al'. ...
e61b7b91157f0d198c90cb3652f6656bd6c44cba
setup.py
setup.py
"""Setup script to generate an stand-alone executable. Author-email: "Dietmar Winkler" <[email protected]> License: See UNLICENSE file Usage: Run the build process by running the command 'python setup.py build' If everything works well you should find a subdirectory in the build subdirectory that ...
"""Setup script to generate an stand-alone executable. Author-email: "Dietmar Winkler" <[email protected]> License: See UNLICENSE file Usage: Run the build process by running the command 'python setup.py build' If everything works well you should find a subdirectory in the build subdirectory that ...
Remove string from a copy and paste fail.
Remove string from a copy and paste fail.
Python
unlicense
dietmarw/trimtrailingwhitespaces
"""Setup script to generate an stand-alone executable. Author-email: "Dietmar Winkler" <[email protected]> License: See UNLICENSE file Usage: Run the build process by running the command 'python setup.py build' If everything works well you should find a subdirectory in the build subdirectory that ...
"""Setup script to generate an stand-alone executable. Author-email: "Dietmar Winkler" <[email protected]> License: See UNLICENSE file Usage: Run the build process by running the command 'python setup.py build' If everything works well you should find a subdirectory in the build subdirectory that ...
<commit_before>"""Setup script to generate an stand-alone executable. Author-email: "Dietmar Winkler" <[email protected]> License: See UNLICENSE file Usage: Run the build process by running the command 'python setup.py build' If everything works well you should find a subdirectory in the build sub...
"""Setup script to generate an stand-alone executable. Author-email: "Dietmar Winkler" <[email protected]> License: See UNLICENSE file Usage: Run the build process by running the command 'python setup.py build' If everything works well you should find a subdirectory in the build subdirectory that ...
"""Setup script to generate an stand-alone executable. Author-email: "Dietmar Winkler" <[email protected]> License: See UNLICENSE file Usage: Run the build process by running the command 'python setup.py build' If everything works well you should find a subdirectory in the build subdirectory that ...
<commit_before>"""Setup script to generate an stand-alone executable. Author-email: "Dietmar Winkler" <[email protected]> License: See UNLICENSE file Usage: Run the build process by running the command 'python setup.py build' If everything works well you should find a subdirectory in the build sub...
7886e2a7b55ad03e125f7e69a78574c2044b518b
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='2016.8', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='[email protected]', description='Python API wrapp...
#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='2016.10', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='[email protected]', description='Python API wrap...
Change version `2016.8` => `2016.10`
Change version `2016.8` => `2016.10`
Python
mit
sgaynetdinov/py-vkontakte
#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='2016.8', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='[email protected]', description='Python API wrapp...
#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='2016.10', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='[email protected]', description='Python API wrap...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='2016.8', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='[email protected]', description='P...
#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='2016.10', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='[email protected]', description='Python API wrap...
#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='2016.8', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='[email protected]', description='Python API wrapp...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='2016.8', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='[email protected]', description='P...
02d3f0f0b7c27f04289f8fd488973fdf17c8f42f
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import xml4h try: from setuptools import setup except ImportError: from distutils.core import setup setup( name=xml4h.__title__, version=xml4h.__version__, description='XML for Humans in Python', long_description=open('README.rst').read(), aut...
#!/usr/bin/env python # -*- coding: utf-8 -*- import xml4h try: from setuptools import setup except ImportError: from distutils.core import setup setup( name=xml4h.__title__, version=xml4h.__version__, description='XML for Humans in Python', long_description=open('README.rst').read(), aut...
Update Python version classifiers to supported versions
Update Python version classifiers to supported versions
Python
mit
jmurty/xml4h
#!/usr/bin/env python # -*- coding: utf-8 -*- import xml4h try: from setuptools import setup except ImportError: from distutils.core import setup setup( name=xml4h.__title__, version=xml4h.__version__, description='XML for Humans in Python', long_description=open('README.rst').read(), aut...
#!/usr/bin/env python # -*- coding: utf-8 -*- import xml4h try: from setuptools import setup except ImportError: from distutils.core import setup setup( name=xml4h.__title__, version=xml4h.__version__, description='XML for Humans in Python', long_description=open('README.rst').read(), aut...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import xml4h try: from setuptools import setup except ImportError: from distutils.core import setup setup( name=xml4h.__title__, version=xml4h.__version__, description='XML for Humans in Python', long_description=open('README.rst')....
#!/usr/bin/env python # -*- coding: utf-8 -*- import xml4h try: from setuptools import setup except ImportError: from distutils.core import setup setup( name=xml4h.__title__, version=xml4h.__version__, description='XML for Humans in Python', long_description=open('README.rst').read(), aut...
#!/usr/bin/env python # -*- coding: utf-8 -*- import xml4h try: from setuptools import setup except ImportError: from distutils.core import setup setup( name=xml4h.__title__, version=xml4h.__version__, description='XML for Humans in Python', long_description=open('README.rst').read(), aut...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import xml4h try: from setuptools import setup except ImportError: from distutils.core import setup setup( name=xml4h.__title__, version=xml4h.__version__, description='XML for Humans in Python', long_description=open('README.rst')....
cb965a2dc227c9c498a8c95f48bb5ce24a6db66c
setup.py
setup.py
from distutils.core import setup desc = ( 'An interface to the Pluggable Authentication Modules (PAM) library' 'on linux, written in pure python (using ctypes)' ) setup(name='python3-simplepam', version='0.1.4', description=desc, py_modules=['simplepam'], author='Leon Weber <[email protected]...
from distutils.core import setup desc = ( 'An interface to the Pluggable Authentication Modules (PAM) library ' 'on linux, written in pure python (using ctypes)' ) setup(name='python3-simplepam', version='0.1.4', description=desc, py_modules=['simplepam'], author='Leon Weber <leon@leonweber....
Add missing space in description
Add missing space in description
Python
mit
leonnnn/python3-simplepam
from distutils.core import setup desc = ( 'An interface to the Pluggable Authentication Modules (PAM) library' 'on linux, written in pure python (using ctypes)' ) setup(name='python3-simplepam', version='0.1.4', description=desc, py_modules=['simplepam'], author='Leon Weber <[email protected]...
from distutils.core import setup desc = ( 'An interface to the Pluggable Authentication Modules (PAM) library ' 'on linux, written in pure python (using ctypes)' ) setup(name='python3-simplepam', version='0.1.4', description=desc, py_modules=['simplepam'], author='Leon Weber <leon@leonweber....
<commit_before>from distutils.core import setup desc = ( 'An interface to the Pluggable Authentication Modules (PAM) library' 'on linux, written in pure python (using ctypes)' ) setup(name='python3-simplepam', version='0.1.4', description=desc, py_modules=['simplepam'], author='Leon Weber <l...
from distutils.core import setup desc = ( 'An interface to the Pluggable Authentication Modules (PAM) library ' 'on linux, written in pure python (using ctypes)' ) setup(name='python3-simplepam', version='0.1.4', description=desc, py_modules=['simplepam'], author='Leon Weber <leon@leonweber....
from distutils.core import setup desc = ( 'An interface to the Pluggable Authentication Modules (PAM) library' 'on linux, written in pure python (using ctypes)' ) setup(name='python3-simplepam', version='0.1.4', description=desc, py_modules=['simplepam'], author='Leon Weber <[email protected]...
<commit_before>from distutils.core import setup desc = ( 'An interface to the Pluggable Authentication Modules (PAM) library' 'on linux, written in pure python (using ctypes)' ) setup(name='python3-simplepam', version='0.1.4', description=desc, py_modules=['simplepam'], author='Leon Weber <l...
38d30c5589dfbdae92198a404d58400ec3c2ed4b
setup.py
setup.py
from setuptools import setup, find_packages setup( name="echidna", version="0.0.1-dev", url='http://github.com/praekelt/echidna', license='BSD', description='A scalable pub-sub WebSocket service.', long_description=open('README.rst', 'r').read(), author='Praekelt Foundation', author_em...
from setuptools import setup, find_packages setup( name="echidna", version="0.0.1-dev", url='http://github.com/praekelt/echidna', license='BSD', description='A scalable pub-sub WebSocket service.', long_description=open('README.rst', 'r').read(), author='Praekelt Foundation', author_em...
Add ws4py to normal requirements in an attempt to get Travis to install it
Add ws4py to normal requirements in an attempt to get Travis to install it
Python
bsd-3-clause
praekelt/echidna,praekelt/echidna,praekelt/echidna,praekelt/echidna
from setuptools import setup, find_packages setup( name="echidna", version="0.0.1-dev", url='http://github.com/praekelt/echidna', license='BSD', description='A scalable pub-sub WebSocket service.', long_description=open('README.rst', 'r').read(), author='Praekelt Foundation', author_em...
from setuptools import setup, find_packages setup( name="echidna", version="0.0.1-dev", url='http://github.com/praekelt/echidna', license='BSD', description='A scalable pub-sub WebSocket service.', long_description=open('README.rst', 'r').read(), author='Praekelt Foundation', author_em...
<commit_before>from setuptools import setup, find_packages setup( name="echidna", version="0.0.1-dev", url='http://github.com/praekelt/echidna', license='BSD', description='A scalable pub-sub WebSocket service.', long_description=open('README.rst', 'r').read(), author='Praekelt Foundation'...
from setuptools import setup, find_packages setup( name="echidna", version="0.0.1-dev", url='http://github.com/praekelt/echidna', license='BSD', description='A scalable pub-sub WebSocket service.', long_description=open('README.rst', 'r').read(), author='Praekelt Foundation', author_em...
from setuptools import setup, find_packages setup( name="echidna", version="0.0.1-dev", url='http://github.com/praekelt/echidna', license='BSD', description='A scalable pub-sub WebSocket service.', long_description=open('README.rst', 'r').read(), author='Praekelt Foundation', author_em...
<commit_before>from setuptools import setup, find_packages setup( name="echidna", version="0.0.1-dev", url='http://github.com/praekelt/echidna', license='BSD', description='A scalable pub-sub WebSocket service.', long_description=open('README.rst', 'r').read(), author='Praekelt Foundation'...
4a810640a3ccdaaa975b9d1b807ff7365282e5b9
django_website/settings/docs.py
django_website/settings/docs.py
from django_website.settings.www import * PREPEND_WWW = False APPEND_SLASH = True INSTALLED_APPS = ['django_website.docs'] TEMPLATE_CONTEXT_PROCESSORS += ["django.core.context_processors.request"] ROOT_URLCONF = 'django_website.urls.docs' CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs' # Where to store the build Sphinx do...
from django_website.settings.www import * PREPEND_WWW = False APPEND_SLASH = True INSTALLED_APPS = ['django_website.docs'] TEMPLATE_CONTEXT_PROCESSORS += ["django.core.context_processors.request"] ROOT_URLCONF = 'django_website.urls.docs' CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs' # Where to store the build Sphinx do...
Fix the docbuilds path location.
Fix the docbuilds path location.
Python
bsd-3-clause
relekang/djangoproject.com,gnarf/djangoproject.com,relekang/djangoproject.com,django/djangoproject.com,django/djangoproject.com,khkaminska/djangoproject.com,nanuxbe/django,khkaminska/djangoproject.com,nanuxbe/django,vxvinh1511/djangoproject.com,django/djangoproject.com,django/djangoproject.com,vxvinh1511/djangoproject....
from django_website.settings.www import * PREPEND_WWW = False APPEND_SLASH = True INSTALLED_APPS = ['django_website.docs'] TEMPLATE_CONTEXT_PROCESSORS += ["django.core.context_processors.request"] ROOT_URLCONF = 'django_website.urls.docs' CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs' # Where to store the build Sphinx do...
from django_website.settings.www import * PREPEND_WWW = False APPEND_SLASH = True INSTALLED_APPS = ['django_website.docs'] TEMPLATE_CONTEXT_PROCESSORS += ["django.core.context_processors.request"] ROOT_URLCONF = 'django_website.urls.docs' CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs' # Where to store the build Sphinx do...
<commit_before>from django_website.settings.www import * PREPEND_WWW = False APPEND_SLASH = True INSTALLED_APPS = ['django_website.docs'] TEMPLATE_CONTEXT_PROCESSORS += ["django.core.context_processors.request"] ROOT_URLCONF = 'django_website.urls.docs' CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs' # Where to store the ...
from django_website.settings.www import * PREPEND_WWW = False APPEND_SLASH = True INSTALLED_APPS = ['django_website.docs'] TEMPLATE_CONTEXT_PROCESSORS += ["django.core.context_processors.request"] ROOT_URLCONF = 'django_website.urls.docs' CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs' # Where to store the build Sphinx do...
from django_website.settings.www import * PREPEND_WWW = False APPEND_SLASH = True INSTALLED_APPS = ['django_website.docs'] TEMPLATE_CONTEXT_PROCESSORS += ["django.core.context_processors.request"] ROOT_URLCONF = 'django_website.urls.docs' CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs' # Where to store the build Sphinx do...
<commit_before>from django_website.settings.www import * PREPEND_WWW = False APPEND_SLASH = True INSTALLED_APPS = ['django_website.docs'] TEMPLATE_CONTEXT_PROCESSORS += ["django.core.context_processors.request"] ROOT_URLCONF = 'django_website.urls.docs' CACHE_MIDDLEWARE_KEY_PREFIX = 'djangodocs' # Where to store the ...
f39c6ff64478f4b20f5eaa26ec060275cdc81813
setup.py
setup.py
from setuptools import setup, find_packages import codecs import os import re root_dir = os.path.abspath(os.path.dirname(__file__)) PACKAGE = 'hackernews_scraper' def get_version(package_name): version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$") package_components = package_name.split('.') i...
from setuptools import setup, find_packages import codecs import os import re root_dir = os.path.abspath(os.path.dirname(__file__)) PACKAGE = 'hackernews_scraper' def get_version(package_name): version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$") package_components = package_name.split('.') i...
Raise exception if version does not exist
Raise exception if version does not exist
Python
bsd-2-clause
NiGhTTraX/hackernews-scraper
from setuptools import setup, find_packages import codecs import os import re root_dir = os.path.abspath(os.path.dirname(__file__)) PACKAGE = 'hackernews_scraper' def get_version(package_name): version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$") package_components = package_name.split('.') i...
from setuptools import setup, find_packages import codecs import os import re root_dir = os.path.abspath(os.path.dirname(__file__)) PACKAGE = 'hackernews_scraper' def get_version(package_name): version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$") package_components = package_name.split('.') i...
<commit_before>from setuptools import setup, find_packages import codecs import os import re root_dir = os.path.abspath(os.path.dirname(__file__)) PACKAGE = 'hackernews_scraper' def get_version(package_name): version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$") package_components = package_name.s...
from setuptools import setup, find_packages import codecs import os import re root_dir = os.path.abspath(os.path.dirname(__file__)) PACKAGE = 'hackernews_scraper' def get_version(package_name): version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$") package_components = package_name.split('.') i...
from setuptools import setup, find_packages import codecs import os import re root_dir = os.path.abspath(os.path.dirname(__file__)) PACKAGE = 'hackernews_scraper' def get_version(package_name): version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$") package_components = package_name.split('.') i...
<commit_before>from setuptools import setup, find_packages import codecs import os import re root_dir = os.path.abspath(os.path.dirname(__file__)) PACKAGE = 'hackernews_scraper' def get_version(package_name): version_re = re.compile(r"^__version__ = [\"']([\w_.-]+)[\"']$") package_components = package_name.s...
a0e795cb0bed84ae6161f5e64290910f2ffe8ee6
setup.py
setup.py
#!/usr/bin/env python import collections from setuptools import setup from pip.req import parse_requirements dependency_links = [] install_requires = [] ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') for ir in parse_requirements("requirements.txt...
#!/usr/bin/env python import collections from setuptools import setup from pip.req import parse_requirements dependency_links = [] install_requires = [] ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') for ir in parse_requirements("requirements.txt...
Add .md and .txt files to package
Add .md and .txt files to package
Python
apache-2.0
uber/vertica-python,twneale/vertica-python,brokendata/vertica-python,natthew/vertica-python,dennisobrien/vertica-python
#!/usr/bin/env python import collections from setuptools import setup from pip.req import parse_requirements dependency_links = [] install_requires = [] ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') for ir in parse_requirements("requirements.txt...
#!/usr/bin/env python import collections from setuptools import setup from pip.req import parse_requirements dependency_links = [] install_requires = [] ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') for ir in parse_requirements("requirements.txt...
<commit_before>#!/usr/bin/env python import collections from setuptools import setup from pip.req import parse_requirements dependency_links = [] install_requires = [] ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') for ir in parse_requirements("r...
#!/usr/bin/env python import collections from setuptools import setup from pip.req import parse_requirements dependency_links = [] install_requires = [] ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') for ir in parse_requirements("requirements.txt...
#!/usr/bin/env python import collections from setuptools import setup from pip.req import parse_requirements dependency_links = [] install_requires = [] ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') for ir in parse_requirements("requirements.txt...
<commit_before>#!/usr/bin/env python import collections from setuptools import setup from pip.req import parse_requirements dependency_links = [] install_requires = [] ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs']) opts = ReqOpts(None, 'git') for ir in parse_requirements("r...
c3bb736962d77d1fdd0207ba2ee487c1177451c7
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup with open('README.rst') as file: long_description = file.read() classifiers = [ 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved', 'Intended Audience :: Developers', 'Natural L...
#!/usr/bin/env python from distutils.core import setup with open('README.rst') as file: long_description = file.read() classifiers = [ 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved', 'Intended Audience :: Developers', 'Natural L...
Upgrade version to publish a release without tests
Upgrade version to publish a release without tests
Python
mit
etissieres/PyEventEmitter
#!/usr/bin/env python from distutils.core import setup with open('README.rst') as file: long_description = file.read() classifiers = [ 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved', 'Intended Audience :: Developers', 'Natural L...
#!/usr/bin/env python from distutils.core import setup with open('README.rst') as file: long_description = file.read() classifiers = [ 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved', 'Intended Audience :: Developers', 'Natural L...
<commit_before>#!/usr/bin/env python from distutils.core import setup with open('README.rst') as file: long_description = file.read() classifiers = [ 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved', 'Intended Audience :: Developers',...
#!/usr/bin/env python from distutils.core import setup with open('README.rst') as file: long_description = file.read() classifiers = [ 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved', 'Intended Audience :: Developers', 'Natural L...
#!/usr/bin/env python from distutils.core import setup with open('README.rst') as file: long_description = file.read() classifiers = [ 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved', 'Intended Audience :: Developers', 'Natural L...
<commit_before>#!/usr/bin/env python from distutils.core import setup with open('README.rst') as file: long_description = file.read() classifiers = [ 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved', 'Intended Audience :: Developers',...
1372c00a0668cc6a39953264d23f012391afe768
python/helpers/pycharm/_jb_unittest_runner.py
python/helpers/pycharm/_jb_unittest_runner.py
# coding=utf-8 import os from unittest import main from _jb_runner_tools import jb_start_tests, jb_doc_args from teamcity import unittestpy if __name__ == '__main__': path, targets, additional_args = jb_start_tests() args = ["python -m unittest"] if path: discovery_args = ["discover", "-s"] ...
# coding=utf-8 import os from unittest import main from _jb_runner_tools import jb_start_tests, jb_doc_args from teamcity import unittestpy if __name__ == '__main__': path, targets, additional_args = jb_start_tests() args = ["python -m unittest"] if path: discovery_args = ["discover", "-s"] ...
Check variable before accessing it
PY-22460: Check variable before accessing it
Python
apache-2.0
mglukhikh/intellij-community,ThiagoGarciaAlves/intellij-community,asedunov/intellij-community,vvv1559/intellij-community,signed/intellij-community,suncycheng/intellij-community,mglukhikh/intellij-community,allotria/intellij-community,xfournet/intellij-community,signed/intellij-community,mglukhikh/intellij-community,xfo...
# coding=utf-8 import os from unittest import main from _jb_runner_tools import jb_start_tests, jb_doc_args from teamcity import unittestpy if __name__ == '__main__': path, targets, additional_args = jb_start_tests() args = ["python -m unittest"] if path: discovery_args = ["discover", "-s"] ...
# coding=utf-8 import os from unittest import main from _jb_runner_tools import jb_start_tests, jb_doc_args from teamcity import unittestpy if __name__ == '__main__': path, targets, additional_args = jb_start_tests() args = ["python -m unittest"] if path: discovery_args = ["discover", "-s"] ...
<commit_before># coding=utf-8 import os from unittest import main from _jb_runner_tools import jb_start_tests, jb_doc_args from teamcity import unittestpy if __name__ == '__main__': path, targets, additional_args = jb_start_tests() args = ["python -m unittest"] if path: discovery_args = ["discove...
# coding=utf-8 import os from unittest import main from _jb_runner_tools import jb_start_tests, jb_doc_args from teamcity import unittestpy if __name__ == '__main__': path, targets, additional_args = jb_start_tests() args = ["python -m unittest"] if path: discovery_args = ["discover", "-s"] ...
# coding=utf-8 import os from unittest import main from _jb_runner_tools import jb_start_tests, jb_doc_args from teamcity import unittestpy if __name__ == '__main__': path, targets, additional_args = jb_start_tests() args = ["python -m unittest"] if path: discovery_args = ["discover", "-s"] ...
<commit_before># coding=utf-8 import os from unittest import main from _jb_runner_tools import jb_start_tests, jb_doc_args from teamcity import unittestpy if __name__ == '__main__': path, targets, additional_args = jb_start_tests() args = ["python -m unittest"] if path: discovery_args = ["discove...
d486505f270125a4b5c7f460f4f39a9c1eab9a1f
setup.py
setup.py
from setuptools import setup setup( name='tephi', version='0.2.0-alpha', url='https://github.com/SciTools/tephi', author='Bill Little', author_email='[email protected]', packages=['tephi', 'tephi.tests'], package_dir={'': 'lib'}, package_data={'tephi': ['etc/test_data/*.txt']...
from setuptools import setup setup( name='tephi', version='0.2.0-alpha', url='https://github.com/SciTools/tephi', author='Bill Little', author_email='[email protected]', packages=['tephi', 'tephi.tests'], package_dir={'': 'lib'}, package_data={'tephi': ['etc/test_data/*.txt']...
Add Python 2 and 3 PyPI classifiers.
Add Python 2 and 3 PyPI classifiers.
Python
bsd-3-clause
SciTools/tephi
from setuptools import setup setup( name='tephi', version='0.2.0-alpha', url='https://github.com/SciTools/tephi', author='Bill Little', author_email='[email protected]', packages=['tephi', 'tephi.tests'], package_dir={'': 'lib'}, package_data={'tephi': ['etc/test_data/*.txt']...
from setuptools import setup setup( name='tephi', version='0.2.0-alpha', url='https://github.com/SciTools/tephi', author='Bill Little', author_email='[email protected]', packages=['tephi', 'tephi.tests'], package_dir={'': 'lib'}, package_data={'tephi': ['etc/test_data/*.txt']...
<commit_before>from setuptools import setup setup( name='tephi', version='0.2.0-alpha', url='https://github.com/SciTools/tephi', author='Bill Little', author_email='[email protected]', packages=['tephi', 'tephi.tests'], package_dir={'': 'lib'}, package_data={'tephi': ['etc/te...
from setuptools import setup setup( name='tephi', version='0.2.0-alpha', url='https://github.com/SciTools/tephi', author='Bill Little', author_email='[email protected]', packages=['tephi', 'tephi.tests'], package_dir={'': 'lib'}, package_data={'tephi': ['etc/test_data/*.txt']...
from setuptools import setup setup( name='tephi', version='0.2.0-alpha', url='https://github.com/SciTools/tephi', author='Bill Little', author_email='[email protected]', packages=['tephi', 'tephi.tests'], package_dir={'': 'lib'}, package_data={'tephi': ['etc/test_data/*.txt']...
<commit_before>from setuptools import setup setup( name='tephi', version='0.2.0-alpha', url='https://github.com/SciTools/tephi', author='Bill Little', author_email='[email protected]', packages=['tephi', 'tephi.tests'], package_dir={'': 'lib'}, package_data={'tephi': ['etc/te...
3053219149f7dac7ab073fc24488116b1b280b77
money_rounding.py
money_rounding.py
def get_price_without_vat(price_to_show, vat_percent): raise NotImplementedError() def get_price_without_vat_from_other_valuta(conversion_rate, origin_price, origin_vat, other_vat): raise NotImplementedError()
def show_pretty_price(value): raise NotImplementedError()
Use function described in readme
Use function described in readme
Python
mit
coolshop-com/coolshop-application-assignment
def get_price_without_vat(price_to_show, vat_percent): raise NotImplementedError() def get_price_without_vat_from_other_valuta(conversion_rate, origin_price, origin_vat, other_vat): raise NotImplementedError() Use function described in readme
def show_pretty_price(value): raise NotImplementedError()
<commit_before>def get_price_without_vat(price_to_show, vat_percent): raise NotImplementedError() def get_price_without_vat_from_other_valuta(conversion_rate, origin_price, origin_vat, other_vat): raise NotImplementedError() <commit_msg>Use function described in rea...
def show_pretty_price(value): raise NotImplementedError()
def get_price_without_vat(price_to_show, vat_percent): raise NotImplementedError() def get_price_without_vat_from_other_valuta(conversion_rate, origin_price, origin_vat, other_vat): raise NotImplementedError() Use function described in readmedef show_pretty_price(va...
<commit_before>def get_price_without_vat(price_to_show, vat_percent): raise NotImplementedError() def get_price_without_vat_from_other_valuta(conversion_rate, origin_price, origin_vat, other_vat): raise NotImplementedError() <commit_msg>Use function described in rea...
ea7200bc9774f69562b37f177ad18ca606998dfa
perfrunner/utils/debug.py
perfrunner/utils/debug.py
import glob import shutil from optparse import OptionParser from perfrunner.helpers.remote import RemoteHelper from perfrunner.settings import ClusterSpec def get_options(): usage = '%prog -c cluster' parser = OptionParser(usage) parser.add_option('-c', dest='cluster_spec_fname', ...
import glob import os.path import shutil from optparse import OptionParser from perfrunner.helpers.remote import RemoteHelper from perfrunner.settings import ClusterSpec def get_options(): usage = '%prog -c cluster' parser = OptionParser(usage) parser.add_option('-c', dest='cluster_spec_fname', ...
Archive logs from the tools
Archive logs from the tools Change-Id: I184473d20cc2763fbc97c993bfcab36b80d1c864 Reviewed-on: http://review.couchbase.org/76571 Tested-by: Build Bot <[email protected]> Reviewed-by: Pavel Paulau <[email protected]>
Python
apache-2.0
couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner
import glob import shutil from optparse import OptionParser from perfrunner.helpers.remote import RemoteHelper from perfrunner.settings import ClusterSpec def get_options(): usage = '%prog -c cluster' parser = OptionParser(usage) parser.add_option('-c', dest='cluster_spec_fname', ...
import glob import os.path import shutil from optparse import OptionParser from perfrunner.helpers.remote import RemoteHelper from perfrunner.settings import ClusterSpec def get_options(): usage = '%prog -c cluster' parser = OptionParser(usage) parser.add_option('-c', dest='cluster_spec_fname', ...
<commit_before>import glob import shutil from optparse import OptionParser from perfrunner.helpers.remote import RemoteHelper from perfrunner.settings import ClusterSpec def get_options(): usage = '%prog -c cluster' parser = OptionParser(usage) parser.add_option('-c', dest='cluster_spec_fname', ...
import glob import os.path import shutil from optparse import OptionParser from perfrunner.helpers.remote import RemoteHelper from perfrunner.settings import ClusterSpec def get_options(): usage = '%prog -c cluster' parser = OptionParser(usage) parser.add_option('-c', dest='cluster_spec_fname', ...
import glob import shutil from optparse import OptionParser from perfrunner.helpers.remote import RemoteHelper from perfrunner.settings import ClusterSpec def get_options(): usage = '%prog -c cluster' parser = OptionParser(usage) parser.add_option('-c', dest='cluster_spec_fname', ...
<commit_before>import glob import shutil from optparse import OptionParser from perfrunner.helpers.remote import RemoteHelper from perfrunner.settings import ClusterSpec def get_options(): usage = '%prog -c cluster' parser = OptionParser(usage) parser.add_option('-c', dest='cluster_spec_fname', ...
22e82e3fb6949efe862216feafaedb2da9b19c62
filehandler.py
filehandler.py
import csv import sys import urllib from scheduleitem import ScheduleItem from team import Team def read(uri): """Open a File or a Web URL""" if uri.startswith('http://') or uri.startswith('https://'): return open_url(uri) else: return open_file(uri) def open_url(url): """Return the...
import csv import sys import urllib.error import urllib.request from scheduleitem import ScheduleItem from team import Team def read(uri): """Open a File or a Web URL""" if uri.startswith('http://') or uri.startswith('https://'): return open_url(uri) else: return open_local_file(uri) d...
Update file handlers to use Python3 urllib
Update file handlers to use Python3 urllib
Python
mit
brianjbuck/robie
import csv import sys import urllib from scheduleitem import ScheduleItem from team import Team def read(uri): """Open a File or a Web URL""" if uri.startswith('http://') or uri.startswith('https://'): return open_url(uri) else: return open_file(uri) def open_url(url): """Return the...
import csv import sys import urllib.error import urllib.request from scheduleitem import ScheduleItem from team import Team def read(uri): """Open a File or a Web URL""" if uri.startswith('http://') or uri.startswith('https://'): return open_url(uri) else: return open_local_file(uri) d...
<commit_before>import csv import sys import urllib from scheduleitem import ScheduleItem from team import Team def read(uri): """Open a File or a Web URL""" if uri.startswith('http://') or uri.startswith('https://'): return open_url(uri) else: return open_file(uri) def open_url(url): ...
import csv import sys import urllib.error import urllib.request from scheduleitem import ScheduleItem from team import Team def read(uri): """Open a File or a Web URL""" if uri.startswith('http://') or uri.startswith('https://'): return open_url(uri) else: return open_local_file(uri) d...
import csv import sys import urllib from scheduleitem import ScheduleItem from team import Team def read(uri): """Open a File or a Web URL""" if uri.startswith('http://') or uri.startswith('https://'): return open_url(uri) else: return open_file(uri) def open_url(url): """Return the...
<commit_before>import csv import sys import urllib from scheduleitem import ScheduleItem from team import Team def read(uri): """Open a File or a Web URL""" if uri.startswith('http://') or uri.startswith('https://'): return open_url(uri) else: return open_file(uri) def open_url(url): ...
650682c3643912c53e643d7b1074f1a6c4a1556b
setup.py
setup.py
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-cra-helper', version='1.0.2', description='The missing...
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-cra-helper', version='1.1.0', description='The missing...
Update package version to v1.1.0
Update package version to v1.1.0
Python
mit
MasterKale/django-cra-helper
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-cra-helper', version='1.0.2', description='The missing...
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-cra-helper', version='1.1.0', description='The missing...
<commit_before>from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-cra-helper', version='1.0.2', descripti...
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-cra-helper', version='1.1.0', description='The missing...
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-cra-helper', version='1.0.2', description='The missing...
<commit_before>from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-cra-helper', version='1.0.2', descripti...
c1dcdb3c8856fbfd449524f66f5fc819eb1a19bc
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
Move development status to alpha
Move development status to alpha
Python
mit
jcollado/esis
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.....
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.....
7b4b2fcbcb9a95c07f09b71305afa0c5ce95fe99
tenant_schemas/routers.py
tenant_schemas/routers.py
from django.conf import settings class TenantSyncRouter(object): """ A router to control which applications will be synced, depending if we are syncing the shared apps or the tenant apps. """ def allow_syncdb(self, db, model): # the imports below need to be done here else django <1.5 goes...
from django.conf import settings class TenantSyncRouter(object): """ A router to control which applications will be synced, depending if we are syncing the shared apps or the tenant apps. """ def allow_migrate(self, db, model): # the imports below need to be done here else django <1.5 goe...
Add database router allow_migrate() for Django 1.7
Add database router allow_migrate() for Django 1.7
Python
mit
goodtune/django-tenant-schemas,Mobytes/django-tenant-schemas,kajarenc/django-tenant-schemas,honur/django-tenant-schemas,mcanaves/django-tenant-schemas,ArtProcessors/django-tenant-schemas,goodtune/django-tenant-schemas,ArtProcessors/django-tenant-schemas,bernardopires/django-tenant-schemas,bernardopires/django-tenant-sc...
from django.conf import settings class TenantSyncRouter(object): """ A router to control which applications will be synced, depending if we are syncing the shared apps or the tenant apps. """ def allow_syncdb(self, db, model): # the imports below need to be done here else django <1.5 goes...
from django.conf import settings class TenantSyncRouter(object): """ A router to control which applications will be synced, depending if we are syncing the shared apps or the tenant apps. """ def allow_migrate(self, db, model): # the imports below need to be done here else django <1.5 goe...
<commit_before>from django.conf import settings class TenantSyncRouter(object): """ A router to control which applications will be synced, depending if we are syncing the shared apps or the tenant apps. """ def allow_syncdb(self, db, model): # the imports below need to be done here else d...
from django.conf import settings class TenantSyncRouter(object): """ A router to control which applications will be synced, depending if we are syncing the shared apps or the tenant apps. """ def allow_migrate(self, db, model): # the imports below need to be done here else django <1.5 goe...
from django.conf import settings class TenantSyncRouter(object): """ A router to control which applications will be synced, depending if we are syncing the shared apps or the tenant apps. """ def allow_syncdb(self, db, model): # the imports below need to be done here else django <1.5 goes...
<commit_before>from django.conf import settings class TenantSyncRouter(object): """ A router to control which applications will be synced, depending if we are syncing the shared apps or the tenant apps. """ def allow_syncdb(self, db, model): # the imports below need to be done here else d...
1c11d8e2169a90efcd16340c46114cf978e2343f
setup.py
setup.py
#!/usr/bin/env python import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension uinput = Extension('libuinput', sources = ['src/uinput.c']) deps = ['libusb1', 'psutil'] if sys.version_info < (3,4): deps.append('enum34') set...
#!/usr/bin/env python import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension uinput = Extension('libuinput', sources = ['src/uinput.c']) deps = ['libusb1', 'psutil'] if sys.version_info < (3,4): deps.append('enum34') set...
Add sc-mixed.py in installed scripts
Add sc-mixed.py in installed scripts Signed-off-by: Stany MARCEL <[email protected]>
Python
mit
ynsta/steamcontroller,ynsta/steamcontroller
#!/usr/bin/env python import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension uinput = Extension('libuinput', sources = ['src/uinput.c']) deps = ['libusb1', 'psutil'] if sys.version_info < (3,4): deps.append('enum34') set...
#!/usr/bin/env python import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension uinput = Extension('libuinput', sources = ['src/uinput.c']) deps = ['libusb1', 'psutil'] if sys.version_info < (3,4): deps.append('enum34') set...
<commit_before>#!/usr/bin/env python import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension uinput = Extension('libuinput', sources = ['src/uinput.c']) deps = ['libusb1', 'psutil'] if sys.version_info < (3,4): deps.append...
#!/usr/bin/env python import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension uinput = Extension('libuinput', sources = ['src/uinput.c']) deps = ['libusb1', 'psutil'] if sys.version_info < (3,4): deps.append('enum34') set...
#!/usr/bin/env python import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension uinput = Extension('libuinput', sources = ['src/uinput.c']) deps = ['libusb1', 'psutil'] if sys.version_info < (3,4): deps.append('enum34') set...
<commit_before>#!/usr/bin/env python import sys try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension uinput = Extension('libuinput', sources = ['src/uinput.c']) deps = ['libusb1', 'psutil'] if sys.version_info < (3,4): deps.append...
b3acf639f310019d042bbe24e653a6f79c240858
setup.py
setup.py
from distutils.core import Extension, setup from Cython.Build import cythonize try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython = True if use_cython: extensions = [ Extension('mathix.vector', ['mathix/vector.pyx']), ] cmdclass = { ...
from distutils.core import Extension, setup try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython = True if use_cython: extensions = [ Extension('mathix.vector', ['mathix/vector.pyx']), ] cmdclass = { 'build_ext': build_ext } ...
Remove the importing of the "cythonize" function.
Remove the importing of the "cythonize" function.
Python
mit
PeithVergil/cython-example
from distutils.core import Extension, setup from Cython.Build import cythonize try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython = True if use_cython: extensions = [ Extension('mathix.vector', ['mathix/vector.pyx']), ] cmdclass = { ...
from distutils.core import Extension, setup try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython = True if use_cython: extensions = [ Extension('mathix.vector', ['mathix/vector.pyx']), ] cmdclass = { 'build_ext': build_ext } ...
<commit_before>from distutils.core import Extension, setup from Cython.Build import cythonize try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython = True if use_cython: extensions = [ Extension('mathix.vector', ['mathix/vector.pyx']), ] ...
from distutils.core import Extension, setup try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython = True if use_cython: extensions = [ Extension('mathix.vector', ['mathix/vector.pyx']), ] cmdclass = { 'build_ext': build_ext } ...
from distutils.core import Extension, setup from Cython.Build import cythonize try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython = True if use_cython: extensions = [ Extension('mathix.vector', ['mathix/vector.pyx']), ] cmdclass = { ...
<commit_before>from distutils.core import Extension, setup from Cython.Build import cythonize try: from Cython.Distutils import build_ext except ImportError: use_cython = False else: use_cython = True if use_cython: extensions = [ Extension('mathix.vector', ['mathix/vector.pyx']), ] ...
f8cbb96f2d5040d060799f62b642e8bb80060d07
setup.py
setup.py
#!/usr/bin/env python #coding: utf-8 from distribute_setup import use_setuptools use_setuptools() from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__ from setuptools import setup setup( name = __title__, author = __authors__, author_emai...
#!/usr/bin/env python #coding: utf-8 from distribute_setup import use_setuptools use_setuptools() from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__ from setuptools import setup setup( name = __title__, author = __authors__, author_emai...
Add project dependencies to install
Add project dependencies to install
Python
bsd-3-clause
Aeronautics/aero
#!/usr/bin/env python #coding: utf-8 from distribute_setup import use_setuptools use_setuptools() from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__ from setuptools import setup setup( name = __title__, author = __authors__, author_emai...
#!/usr/bin/env python #coding: utf-8 from distribute_setup import use_setuptools use_setuptools() from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__ from setuptools import setup setup( name = __title__, author = __authors__, author_emai...
<commit_before>#!/usr/bin/env python #coding: utf-8 from distribute_setup import use_setuptools use_setuptools() from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__ from setuptools import setup setup( name = __title__, author = __authors_...
#!/usr/bin/env python #coding: utf-8 from distribute_setup import use_setuptools use_setuptools() from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__ from setuptools import setup setup( name = __title__, author = __authors__, author_emai...
#!/usr/bin/env python #coding: utf-8 from distribute_setup import use_setuptools use_setuptools() from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__ from setuptools import setup setup( name = __title__, author = __authors__, author_emai...
<commit_before>#!/usr/bin/env python #coding: utf-8 from distribute_setup import use_setuptools use_setuptools() from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__ from setuptools import setup setup( name = __title__, author = __authors_...
507ac62597b30ccfa58841ccf26207b67baa8eac
setup.py
setup.py
from setuptools import setup, find_packages setup( name='django-lightweight-queue', url="https://chris-lamb.co.uk/projects/django-lightweight-queue", version='2.0.1', description="Lightweight & modular queue and cron system for Django", author="Chris Lamb", author_email='[email protected]...
from setuptools import setup, find_packages setup( name='django-lightweight-queue', url="https://chris-lamb.co.uk/projects/django-lightweight-queue", version='2.0.1', description="Lightweight & modular queue and cron system for Django", author="Chris Lamb", author_email='[email protected]...
Update Django requirement to latest LTS
Update Django requirement to latest LTS
Python
bsd-3-clause
lamby/django-lightweight-queue
from setuptools import setup, find_packages setup( name='django-lightweight-queue', url="https://chris-lamb.co.uk/projects/django-lightweight-queue", version='2.0.1', description="Lightweight & modular queue and cron system for Django", author="Chris Lamb", author_email='[email protected]...
from setuptools import setup, find_packages setup( name='django-lightweight-queue', url="https://chris-lamb.co.uk/projects/django-lightweight-queue", version='2.0.1', description="Lightweight & modular queue and cron system for Django", author="Chris Lamb", author_email='[email protected]...
<commit_before>from setuptools import setup, find_packages setup( name='django-lightweight-queue', url="https://chris-lamb.co.uk/projects/django-lightweight-queue", version='2.0.1', description="Lightweight & modular queue and cron system for Django", author="Chris Lamb", author_email='chris@...
from setuptools import setup, find_packages setup( name='django-lightweight-queue', url="https://chris-lamb.co.uk/projects/django-lightweight-queue", version='2.0.1', description="Lightweight & modular queue and cron system for Django", author="Chris Lamb", author_email='[email protected]...
from setuptools import setup, find_packages setup( name='django-lightweight-queue', url="https://chris-lamb.co.uk/projects/django-lightweight-queue", version='2.0.1', description="Lightweight & modular queue and cron system for Django", author="Chris Lamb", author_email='[email protected]...
<commit_before>from setuptools import setup, find_packages setup( name='django-lightweight-queue', url="https://chris-lamb.co.uk/projects/django-lightweight-queue", version='2.0.1', description="Lightweight & modular queue and cron system for Django", author="Chris Lamb", author_email='chris@...
f8fcdb461f414f3c29263edd7e5c9906d76435a1
setup.py
setup.py
from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='1.0.1', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', author_email='florian...
from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='1.0.1', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', author_email='florian...
Use correct MIT license classifier.
Use correct MIT license classifier. `LICENSE` contains the MIT/Expat license but `setup.py` uses the LGPLv3 classifier. I assume the later is an oversight.
Python
mit
fschulze/pytest-flakes
from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='1.0.1', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', author_email='florian...
from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='1.0.1', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', author_email='florian...
<commit_before>from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='1.0.1', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', author...
from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='1.0.1', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', author_email='florian...
from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='1.0.1', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', author_email='florian...
<commit_before>from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='1.0.1', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', author...
787ee9390fbf2ace59d2f8544b735feb6c895dda
setup.py
setup.py
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): if os.getenv('TRAVIS'): return os.getenv('TRAVIS_BUILD_NUMBER') else: import odintools return odintools.version(PACKAGE_VERSION, os.environ.get('BUILD_NUMBER')) setup( name='osaapi', version_gett...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): import odintools b = os.getenv('TRAVIS_BUILD_NUMBER') if os.getenv('TRAVIS') else os.environ.get('BUILD_NUMBER') return odintools.version(PACKAGE_VERSION, b) setup( name='osaapi', version_getter=version, author='...
Fix issue with version setter
Fix issue with version setter
Python
apache-2.0
odin-public/osaAPI
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): if os.getenv('TRAVIS'): return os.getenv('TRAVIS_BUILD_NUMBER') else: import odintools return odintools.version(PACKAGE_VERSION, os.environ.get('BUILD_NUMBER')) setup( name='osaapi', version_gett...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): import odintools b = os.getenv('TRAVIS_BUILD_NUMBER') if os.getenv('TRAVIS') else os.environ.get('BUILD_NUMBER') return odintools.version(PACKAGE_VERSION, b) setup( name='osaapi', version_getter=version, author='...
<commit_before>import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): if os.getenv('TRAVIS'): return os.getenv('TRAVIS_BUILD_NUMBER') else: import odintools return odintools.version(PACKAGE_VERSION, os.environ.get('BUILD_NUMBER')) setup( name='osaapi', ...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): import odintools b = os.getenv('TRAVIS_BUILD_NUMBER') if os.getenv('TRAVIS') else os.environ.get('BUILD_NUMBER') return odintools.version(PACKAGE_VERSION, b) setup( name='osaapi', version_getter=version, author='...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): if os.getenv('TRAVIS'): return os.getenv('TRAVIS_BUILD_NUMBER') else: import odintools return odintools.version(PACKAGE_VERSION, os.environ.get('BUILD_NUMBER')) setup( name='osaapi', version_gett...
<commit_before>import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): if os.getenv('TRAVIS'): return os.getenv('TRAVIS_BUILD_NUMBER') else: import odintools return odintools.version(PACKAGE_VERSION, os.environ.get('BUILD_NUMBER')) setup( name='osaapi', ...
df97966941f2ffe924f98b329b136edf069eb6ca
setup.py
setup.py
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.2.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.2.1', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
Bump version number in preparation for next release.
Bump version number in preparation for next release.
Python
mit
django-ddp/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,PythonicNinja/django-ddp,commoncode/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,PythonicNinja/django-ddp,PythonicNinja/django-ddp
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.2.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.2.1', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
<commit_before>#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.2.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', aut...
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.2.1', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.2.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
<commit_before>#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.2.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', aut...
d63d391d5b9ee221c0cd67e030895f4598430f08
onetime/models.py
onetime/models.py
from datetime import datetime from django.db import models from django.contrib.auth.models import User class Key(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=40) created = models.DateTimeField(auto_now_add=True) usage_left = models.IntegerField(null=True, default=1) ...
from datetime import datetime from django.db import models from django.contrib.auth.models import User class Key(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=40) created = models.DateTimeField(auto_now_add=True) usage_left = models.IntegerField(null=True, default=1) ...
Update key usage when the usage_left counter is still greater than zero.
Update key usage when the usage_left counter is still greater than zero.
Python
bsd-3-clause
uploadcare/django-loginurl,vanschelven/cmsplugin-journal,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,fajran/django-loginurl,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-web...
from datetime import datetime from django.db import models from django.contrib.auth.models import User class Key(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=40) created = models.DateTimeField(auto_now_add=True) usage_left = models.IntegerField(null=True, default=1) ...
from datetime import datetime from django.db import models from django.contrib.auth.models import User class Key(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=40) created = models.DateTimeField(auto_now_add=True) usage_left = models.IntegerField(null=True, default=1) ...
<commit_before>from datetime import datetime from django.db import models from django.contrib.auth.models import User class Key(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=40) created = models.DateTimeField(auto_now_add=True) usage_left = models.IntegerField(null=Tr...
from datetime import datetime from django.db import models from django.contrib.auth.models import User class Key(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=40) created = models.DateTimeField(auto_now_add=True) usage_left = models.IntegerField(null=True, default=1) ...
from datetime import datetime from django.db import models from django.contrib.auth.models import User class Key(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=40) created = models.DateTimeField(auto_now_add=True) usage_left = models.IntegerField(null=True, default=1) ...
<commit_before>from datetime import datetime from django.db import models from django.contrib.auth.models import User class Key(models.Model): user = models.ForeignKey(User) key = models.CharField(max_length=40) created = models.DateTimeField(auto_now_add=True) usage_left = models.IntegerField(null=Tr...
c8a0f4f439c2123c9b7f9b081f91d75b1f9a8a13
dmoj/checkers/linecount.py
dmoj/checkers/linecount.py
from re import split as resplit from typing import Callable, Union from dmoj.result import CheckerResult from dmoj.utils.unicode import utf8bytes verdict = u"\u2717\u2713" def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True, match: Callable[[bytes, bytes], bool]...
from re import split as resplit from typing import Callable, Union from dmoj.result import CheckerResult from dmoj.utils.unicode import utf8bytes verdict = u"\u2717\u2713" def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True, **kwargs) -> Union[CheckerResult, boo...
Remove the match param to fix RCE.
Remove the match param to fix RCE.
Python
agpl-3.0
DMOJ/judge,DMOJ/judge,DMOJ/judge
from re import split as resplit from typing import Callable, Union from dmoj.result import CheckerResult from dmoj.utils.unicode import utf8bytes verdict = u"\u2717\u2713" def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True, match: Callable[[bytes, bytes], bool]...
from re import split as resplit from typing import Callable, Union from dmoj.result import CheckerResult from dmoj.utils.unicode import utf8bytes verdict = u"\u2717\u2713" def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True, **kwargs) -> Union[CheckerResult, boo...
<commit_before>from re import split as resplit from typing import Callable, Union from dmoj.result import CheckerResult from dmoj.utils.unicode import utf8bytes verdict = u"\u2717\u2713" def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True, match: Callable[[bytes...
from re import split as resplit from typing import Callable, Union from dmoj.result import CheckerResult from dmoj.utils.unicode import utf8bytes verdict = u"\u2717\u2713" def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True, **kwargs) -> Union[CheckerResult, boo...
from re import split as resplit from typing import Callable, Union from dmoj.result import CheckerResult from dmoj.utils.unicode import utf8bytes verdict = u"\u2717\u2713" def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True, match: Callable[[bytes, bytes], bool]...
<commit_before>from re import split as resplit from typing import Callable, Union from dmoj.result import CheckerResult from dmoj.utils.unicode import utf8bytes verdict = u"\u2717\u2713" def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True, match: Callable[[bytes...
18b62174d8fd48691a78f23b0a9f806eb7eb01f7
indra/tests/test_tas.py
indra/tests/test_tas.py
from nose.plugins.attrib import attr from indra.sources.tas import process_from_web @attr('slow') def test_processor(): tp = process_from_web(affinity_class_limit=10) assert tp assert tp.statements num_stmts = len(tp.statements) # This is the total number of statements about human genes assert...
from nose.plugins.attrib import attr from indra.sources.tas import process_from_web @attr('slow') def test_processor(): tp = process_from_web(affinity_class_limit=10) assert tp assert tp.statements num_stmts = len(tp.statements) # This is the total number of statements about human genes assert...
Update test again after better aggregation
Update test again after better aggregation
Python
bsd-2-clause
johnbachman/indra,bgyori/indra,johnbachman/belpy,sorgerlab/indra,sorgerlab/indra,johnbachman/belpy,sorgerlab/belpy,bgyori/indra,sorgerlab/belpy,johnbachman/indra,bgyori/indra,johnbachman/indra,sorgerlab/indra,sorgerlab/belpy,johnbachman/belpy
from nose.plugins.attrib import attr from indra.sources.tas import process_from_web @attr('slow') def test_processor(): tp = process_from_web(affinity_class_limit=10) assert tp assert tp.statements num_stmts = len(tp.statements) # This is the total number of statements about human genes assert...
from nose.plugins.attrib import attr from indra.sources.tas import process_from_web @attr('slow') def test_processor(): tp = process_from_web(affinity_class_limit=10) assert tp assert tp.statements num_stmts = len(tp.statements) # This is the total number of statements about human genes assert...
<commit_before>from nose.plugins.attrib import attr from indra.sources.tas import process_from_web @attr('slow') def test_processor(): tp = process_from_web(affinity_class_limit=10) assert tp assert tp.statements num_stmts = len(tp.statements) # This is the total number of statements about human g...
from nose.plugins.attrib import attr from indra.sources.tas import process_from_web @attr('slow') def test_processor(): tp = process_from_web(affinity_class_limit=10) assert tp assert tp.statements num_stmts = len(tp.statements) # This is the total number of statements about human genes assert...
from nose.plugins.attrib import attr from indra.sources.tas import process_from_web @attr('slow') def test_processor(): tp = process_from_web(affinity_class_limit=10) assert tp assert tp.statements num_stmts = len(tp.statements) # This is the total number of statements about human genes assert...
<commit_before>from nose.plugins.attrib import attr from indra.sources.tas import process_from_web @attr('slow') def test_processor(): tp = process_from_web(affinity_class_limit=10) assert tp assert tp.statements num_stmts = len(tp.statements) # This is the total number of statements about human g...
973641c7d68f4b1505541a06ec46901b412ab56b
tests/test_constraints.py
tests/test_constraints.py
import unittest import numpy as np from constraints import (generate_constraints_function, generate_constraint_gradients_function, ) from robot_arm import RobotArm class TestConstraintFunctions(unittest.TestCase): def setUp(self): self.lengths = (3, 2, 2,) self.destinati...
import unittest import numpy as np from constraints import (generate_constraints_function, generate_constraint_gradients_function, ) from robot_arm import RobotArm class TestConstraintFunctions(unittest.TestCase): def setUp(self): self.lengths = (3, 2, 2,) self.destinati...
Test LICQ condition of constraint gradient
Test LICQ condition of constraint gradient
Python
mit
JakobGM/robotarm-optimization
import unittest import numpy as np from constraints import (generate_constraints_function, generate_constraint_gradients_function, ) from robot_arm import RobotArm class TestConstraintFunctions(unittest.TestCase): def setUp(self): self.lengths = (3, 2, 2,) self.destinati...
import unittest import numpy as np from constraints import (generate_constraints_function, generate_constraint_gradients_function, ) from robot_arm import RobotArm class TestConstraintFunctions(unittest.TestCase): def setUp(self): self.lengths = (3, 2, 2,) self.destinati...
<commit_before>import unittest import numpy as np from constraints import (generate_constraints_function, generate_constraint_gradients_function, ) from robot_arm import RobotArm class TestConstraintFunctions(unittest.TestCase): def setUp(self): self.lengths = (3, 2, 2,) ...
import unittest import numpy as np from constraints import (generate_constraints_function, generate_constraint_gradients_function, ) from robot_arm import RobotArm class TestConstraintFunctions(unittest.TestCase): def setUp(self): self.lengths = (3, 2, 2,) self.destinati...
import unittest import numpy as np from constraints import (generate_constraints_function, generate_constraint_gradients_function, ) from robot_arm import RobotArm class TestConstraintFunctions(unittest.TestCase): def setUp(self): self.lengths = (3, 2, 2,) self.destinati...
<commit_before>import unittest import numpy as np from constraints import (generate_constraints_function, generate_constraint_gradients_function, ) from robot_arm import RobotArm class TestConstraintFunctions(unittest.TestCase): def setUp(self): self.lengths = (3, 2, 2,) ...
c8c9c42f14c742c6fcb180b7a3cc1bab1655ac46
projections/simpleexpr.py
projections/simpleexpr.py
import numpy as np import numpy.ma as ma import projections.r2py.reval as reval import projections.r2py.rparser as rparser class SimpleExpr(): def __init__(self, name, expr): self.name = name self.tree = reval.make_inputs(rparser.parse(expr)) lokals = {} exec(reval.to_py(self.tree, name), lokals) ...
import numpy as np import numpy.ma as ma import projections.r2py.reval as reval import projections.r2py.rparser as rparser class SimpleExpr(): def __init__(self, name, expr): self.name = name self.tree = reval.make_inputs(rparser.parse(expr)) lokals = {} exec(reval.to_py(self.tree, name), lokals) ...
Improve determination of array shape for constant expressions
Improve determination of array shape for constant expressions When Evaluating a constant expression, I only used to look at the first column in the df dictionary. But that could also be a constant or expression. So look instead at all columns and find the first numpy array.
Python
apache-2.0
ricardog/raster-project,ricardog/raster-project,ricardog/raster-project,ricardog/raster-project,ricardog/raster-project
import numpy as np import numpy.ma as ma import projections.r2py.reval as reval import projections.r2py.rparser as rparser class SimpleExpr(): def __init__(self, name, expr): self.name = name self.tree = reval.make_inputs(rparser.parse(expr)) lokals = {} exec(reval.to_py(self.tree, name), lokals) ...
import numpy as np import numpy.ma as ma import projections.r2py.reval as reval import projections.r2py.rparser as rparser class SimpleExpr(): def __init__(self, name, expr): self.name = name self.tree = reval.make_inputs(rparser.parse(expr)) lokals = {} exec(reval.to_py(self.tree, name), lokals) ...
<commit_before> import numpy as np import numpy.ma as ma import projections.r2py.reval as reval import projections.r2py.rparser as rparser class SimpleExpr(): def __init__(self, name, expr): self.name = name self.tree = reval.make_inputs(rparser.parse(expr)) lokals = {} exec(reval.to_py(self.tree, n...
import numpy as np import numpy.ma as ma import projections.r2py.reval as reval import projections.r2py.rparser as rparser class SimpleExpr(): def __init__(self, name, expr): self.name = name self.tree = reval.make_inputs(rparser.parse(expr)) lokals = {} exec(reval.to_py(self.tree, name), lokals) ...
import numpy as np import numpy.ma as ma import projections.r2py.reval as reval import projections.r2py.rparser as rparser class SimpleExpr(): def __init__(self, name, expr): self.name = name self.tree = reval.make_inputs(rparser.parse(expr)) lokals = {} exec(reval.to_py(self.tree, name), lokals) ...
<commit_before> import numpy as np import numpy.ma as ma import projections.r2py.reval as reval import projections.r2py.rparser as rparser class SimpleExpr(): def __init__(self, name, expr): self.name = name self.tree = reval.make_inputs(rparser.parse(expr)) lokals = {} exec(reval.to_py(self.tree, n...
632180274abe4cf91f65cf0e84f817dc7124e293
zerver/migrations/0108_fix_default_string_id.py
zerver/migrations/0108_fix_default_string_id.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-24 02:39 from __future__ import unicode_literals from django.db import migrations def fix_realm_string_ids(apps, schema_editor): # type: (StateApps, DatabaseSchemaEditor) -> None Realm = apps.get_model('zerver', 'Realm') if Realm.objects.coun...
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-24 02:39 from __future__ import unicode_literals from django.db import migrations from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps def fix_realm_string_ids(apps, schema_editor...
Add imports needed for new migration.
mypy: Add imports needed for new migration.
Python
apache-2.0
eeshangarg/zulip,Galexrt/zulip,shubhamdhama/zulip,punchagan/zulip,Galexrt/zulip,tommyip/zulip,brainwane/zulip,tommyip/zulip,zulip/zulip,brainwane/zulip,punchagan/zulip,eeshangarg/zulip,rht/zulip,timabbott/zulip,rht/zulip,zulip/zulip,andersk/zulip,synicalsyntax/zulip,brainwane/zulip,rht/zulip,eeshangarg/zulip,rishig/zul...
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-24 02:39 from __future__ import unicode_literals from django.db import migrations def fix_realm_string_ids(apps, schema_editor): # type: (StateApps, DatabaseSchemaEditor) -> None Realm = apps.get_model('zerver', 'Realm') if Realm.objects.coun...
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-24 02:39 from __future__ import unicode_literals from django.db import migrations from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps def fix_realm_string_ids(apps, schema_editor...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-24 02:39 from __future__ import unicode_literals from django.db import migrations def fix_realm_string_ids(apps, schema_editor): # type: (StateApps, DatabaseSchemaEditor) -> None Realm = apps.get_model('zerver', 'Realm') if Rea...
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-24 02:39 from __future__ import unicode_literals from django.db import migrations from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps def fix_realm_string_ids(apps, schema_editor...
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-24 02:39 from __future__ import unicode_literals from django.db import migrations def fix_realm_string_ids(apps, schema_editor): # type: (StateApps, DatabaseSchemaEditor) -> None Realm = apps.get_model('zerver', 'Realm') if Realm.objects.coun...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-24 02:39 from __future__ import unicode_literals from django.db import migrations def fix_realm_string_ids(apps, schema_editor): # type: (StateApps, DatabaseSchemaEditor) -> None Realm = apps.get_model('zerver', 'Realm') if Rea...
91ef89371f7ba99346ba982a3fdb7fc2105a9840
superdesk/users/__init__.py
superdesk/users/__init__.py
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from .users ...
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from .users ...
Make UsersResource reusable for LDAP
Make UsersResource reusable for LDAP
Python
agpl-3.0
ioanpocol/superdesk-core,plamut/superdesk-core,akintolga/superdesk-core,ancafarcas/superdesk-core,ancafarcas/superdesk-core,nistormihai/superdesk-core,superdesk/superdesk-core,sivakuna-aap/superdesk-core,superdesk/superdesk-core,mdhaman/superdesk-core,petrjasek/superdesk-core,mdhaman/superdesk-core,mugurrus/superdesk-c...
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from .users ...
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from .users ...
<commit_before># -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/licens...
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from .users ...
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from .users ...
<commit_before># -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/licens...
05e19922a5a0f7268ce1a34e25e5deb8e9a2f5d3
sfmtools.py
sfmtools.py
""" Utility functions for PhotoScan processing """ import os, sys import PhotoScan def align_and_clean_photos(chunk): ncameras = len(chunk.cameras) for frame in chunk.frames: frame.matchPhotos() chunk.alignCameras() for camera in chunk.cameras: if camera.transform is None: ...
""" Utility functions for PhotoScan processing """ import os, sys import PhotoScan def align_and_clean_photos(chunk): ncameras = len(chunk.cameras) for frame in chunk.frames: frame.matchPhotos() chunk.alignCameras() for camera in chunk.cameras: if camera.transform is None: ...
Check for trailing slash in path
Check for trailing slash in path
Python
mit
rmsare/sfmtools
""" Utility functions for PhotoScan processing """ import os, sys import PhotoScan def align_and_clean_photos(chunk): ncameras = len(chunk.cameras) for frame in chunk.frames: frame.matchPhotos() chunk.alignCameras() for camera in chunk.cameras: if camera.transform is None: ...
""" Utility functions for PhotoScan processing """ import os, sys import PhotoScan def align_and_clean_photos(chunk): ncameras = len(chunk.cameras) for frame in chunk.frames: frame.matchPhotos() chunk.alignCameras() for camera in chunk.cameras: if camera.transform is None: ...
<commit_before>""" Utility functions for PhotoScan processing """ import os, sys import PhotoScan def align_and_clean_photos(chunk): ncameras = len(chunk.cameras) for frame in chunk.frames: frame.matchPhotos() chunk.alignCameras() for camera in chunk.cameras: if camera.transform is No...
""" Utility functions for PhotoScan processing """ import os, sys import PhotoScan def align_and_clean_photos(chunk): ncameras = len(chunk.cameras) for frame in chunk.frames: frame.matchPhotos() chunk.alignCameras() for camera in chunk.cameras: if camera.transform is None: ...
""" Utility functions for PhotoScan processing """ import os, sys import PhotoScan def align_and_clean_photos(chunk): ncameras = len(chunk.cameras) for frame in chunk.frames: frame.matchPhotos() chunk.alignCameras() for camera in chunk.cameras: if camera.transform is None: ...
<commit_before>""" Utility functions for PhotoScan processing """ import os, sys import PhotoScan def align_and_clean_photos(chunk): ncameras = len(chunk.cameras) for frame in chunk.frames: frame.matchPhotos() chunk.alignCameras() for camera in chunk.cameras: if camera.transform is No...
33328f7d6c3fbab4a7ae968103828ac40463543b
__main__.py
__main__.py
#!/usr/bin/env python # MAKE IT UNICODE OK import sys reload( sys ) sys.setdefaultencoding( 'utf-8' ) import os, sys import Bot import logging if __name__ == '__main__': logging.basicConfig( level = logging.DEBUG, format = '[%(asctime)s] %(levelname)s: %(message)s' ) logging.getLogger().addHandler( logging.FileHa...
#!/usr/bin/env python # MAKE IT UNICODE OK import sys reload( sys ) sys.setdefaultencoding( 'utf-8' ) import os, sys import Bot import logging if __name__ == '__main__': logging.basicConfig( filename = 'ircbot.log', level = logging.DEBUG, format = '[%(asctime)s] %(levelname)s: %(message)s' ) logging.info( "Welcom...
Set default logger to file
Set default logger to file
Python
mit
jawsper/modularirc
#!/usr/bin/env python # MAKE IT UNICODE OK import sys reload( sys ) sys.setdefaultencoding( 'utf-8' ) import os, sys import Bot import logging if __name__ == '__main__': logging.basicConfig( level = logging.DEBUG, format = '[%(asctime)s] %(levelname)s: %(message)s' ) logging.getLogger().addHandler( logging.FileHa...
#!/usr/bin/env python # MAKE IT UNICODE OK import sys reload( sys ) sys.setdefaultencoding( 'utf-8' ) import os, sys import Bot import logging if __name__ == '__main__': logging.basicConfig( filename = 'ircbot.log', level = logging.DEBUG, format = '[%(asctime)s] %(levelname)s: %(message)s' ) logging.info( "Welcom...
<commit_before>#!/usr/bin/env python # MAKE IT UNICODE OK import sys reload( sys ) sys.setdefaultencoding( 'utf-8' ) import os, sys import Bot import logging if __name__ == '__main__': logging.basicConfig( level = logging.DEBUG, format = '[%(asctime)s] %(levelname)s: %(message)s' ) logging.getLogger().addHandler(...
#!/usr/bin/env python # MAKE IT UNICODE OK import sys reload( sys ) sys.setdefaultencoding( 'utf-8' ) import os, sys import Bot import logging if __name__ == '__main__': logging.basicConfig( filename = 'ircbot.log', level = logging.DEBUG, format = '[%(asctime)s] %(levelname)s: %(message)s' ) logging.info( "Welcom...
#!/usr/bin/env python # MAKE IT UNICODE OK import sys reload( sys ) sys.setdefaultencoding( 'utf-8' ) import os, sys import Bot import logging if __name__ == '__main__': logging.basicConfig( level = logging.DEBUG, format = '[%(asctime)s] %(levelname)s: %(message)s' ) logging.getLogger().addHandler( logging.FileHa...
<commit_before>#!/usr/bin/env python # MAKE IT UNICODE OK import sys reload( sys ) sys.setdefaultencoding( 'utf-8' ) import os, sys import Bot import logging if __name__ == '__main__': logging.basicConfig( level = logging.DEBUG, format = '[%(asctime)s] %(levelname)s: %(message)s' ) logging.getLogger().addHandler(...
0bd84e74a30806f1e317288aa5dee87b4c669790
shcol/config.py
shcol/config.py
# -*- coding: utf-8 -*- # Copyright (c) 2013-2015, Sebastian Linke # Released under the Simplified BSD license # (see LICENSE file for details). """ Constants that are used by `shcol` in many places. This is meant to modified (if needed) only *before* running `shcol`, since most of these constants are only read durin...
# -*- coding: utf-8 -*- # Copyright (c) 2013-2015, Sebastian Linke # Released under the Simplified BSD license # (see LICENSE file for details). """ Constants that are used by `shcol` in many places. This is meant to modified (if needed) only *before* running `shcol`, since most of these constants are only read durin...
Use output stream's encoding (if any). Blindly using UTF-8 would break output on Windows terminals.
Use output stream's encoding (if any). Blindly using UTF-8 would break output on Windows terminals.
Python
bsd-2-clause
seblin/shcol
# -*- coding: utf-8 -*- # Copyright (c) 2013-2015, Sebastian Linke # Released under the Simplified BSD license # (see LICENSE file for details). """ Constants that are used by `shcol` in many places. This is meant to modified (if needed) only *before* running `shcol`, since most of these constants are only read durin...
# -*- coding: utf-8 -*- # Copyright (c) 2013-2015, Sebastian Linke # Released under the Simplified BSD license # (see LICENSE file for details). """ Constants that are used by `shcol` in many places. This is meant to modified (if needed) only *before* running `shcol`, since most of these constants are only read durin...
<commit_before># -*- coding: utf-8 -*- # Copyright (c) 2013-2015, Sebastian Linke # Released under the Simplified BSD license # (see LICENSE file for details). """ Constants that are used by `shcol` in many places. This is meant to modified (if needed) only *before* running `shcol`, since most of these constants are ...
# -*- coding: utf-8 -*- # Copyright (c) 2013-2015, Sebastian Linke # Released under the Simplified BSD license # (see LICENSE file for details). """ Constants that are used by `shcol` in many places. This is meant to modified (if needed) only *before* running `shcol`, since most of these constants are only read durin...
# -*- coding: utf-8 -*- # Copyright (c) 2013-2015, Sebastian Linke # Released under the Simplified BSD license # (see LICENSE file for details). """ Constants that are used by `shcol` in many places. This is meant to modified (if needed) only *before* running `shcol`, since most of these constants are only read durin...
<commit_before># -*- coding: utf-8 -*- # Copyright (c) 2013-2015, Sebastian Linke # Released under the Simplified BSD license # (see LICENSE file for details). """ Constants that are used by `shcol` in many places. This is meant to modified (if needed) only *before* running `shcol`, since most of these constants are ...
49a275a268fba520252ee864c39934699c053d13
csunplugged/resources/views/barcode_checksum_poster.py
csunplugged/resources/views/barcode_checksum_poster.py
"""Module for generating Barcode Checksum Poster resource.""" from PIL import Image from utils.retrieve_query_parameter import retrieve_query_parameter def resource_image(request, resource): """Create a image for Barcode Checksum Poster resource. Args: request: HTTP request object (QueryDict). ...
"""Module for generating Barcode Checksum Poster resource.""" from PIL import Image from utils.retrieve_query_parameter import retrieve_query_parameter def resource(request, resource): """Create a image for Barcode Checksum Poster resource. Args: request: HTTP request object (QueryDict). res...
Update barcode resource to new resource specification
Update barcode resource to new resource specification
Python
mit
uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged
"""Module for generating Barcode Checksum Poster resource.""" from PIL import Image from utils.retrieve_query_parameter import retrieve_query_parameter def resource_image(request, resource): """Create a image for Barcode Checksum Poster resource. Args: request: HTTP request object (QueryDict). ...
"""Module for generating Barcode Checksum Poster resource.""" from PIL import Image from utils.retrieve_query_parameter import retrieve_query_parameter def resource(request, resource): """Create a image for Barcode Checksum Poster resource. Args: request: HTTP request object (QueryDict). res...
<commit_before>"""Module for generating Barcode Checksum Poster resource.""" from PIL import Image from utils.retrieve_query_parameter import retrieve_query_parameter def resource_image(request, resource): """Create a image for Barcode Checksum Poster resource. Args: request: HTTP request object (Qu...
"""Module for generating Barcode Checksum Poster resource.""" from PIL import Image from utils.retrieve_query_parameter import retrieve_query_parameter def resource(request, resource): """Create a image for Barcode Checksum Poster resource. Args: request: HTTP request object (QueryDict). res...
"""Module for generating Barcode Checksum Poster resource.""" from PIL import Image from utils.retrieve_query_parameter import retrieve_query_parameter def resource_image(request, resource): """Create a image for Barcode Checksum Poster resource. Args: request: HTTP request object (QueryDict). ...
<commit_before>"""Module for generating Barcode Checksum Poster resource.""" from PIL import Image from utils.retrieve_query_parameter import retrieve_query_parameter def resource_image(request, resource): """Create a image for Barcode Checksum Poster resource. Args: request: HTTP request object (Qu...
ee74fa5705fbf276e092b778f5bead9ffcd04b5e
django_fixmystreet/fixmystreet/tests/__init__.py
django_fixmystreet/fixmystreet/tests/__init__.py
import shutil import os from django.core.files.storage import default_storage from django.test import TestCase class SampleFilesTestCase(TestCase): fixtures = ['sample'] @classmethod def setUpClass(cls): default_storage.location = 'media' # force using source media folder to avoid real data erasi...
import shutil import os from django.core.files.storage import default_storage from django.test import TestCase class SampleFilesTestCase(TestCase): fixtures = ['sample'] @classmethod def setUpClass(cls): default_storage.location = 'media' # force using source media folder to avoid real data erasi...
Fix unit test fixtures files
Fix unit test fixtures files
Python
agpl-3.0
IMIO/django-fixmystreet,IMIO/django-fixmystreet,IMIO/django-fixmystreet,IMIO/django-fixmystreet
import shutil import os from django.core.files.storage import default_storage from django.test import TestCase class SampleFilesTestCase(TestCase): fixtures = ['sample'] @classmethod def setUpClass(cls): default_storage.location = 'media' # force using source media folder to avoid real data erasi...
import shutil import os from django.core.files.storage import default_storage from django.test import TestCase class SampleFilesTestCase(TestCase): fixtures = ['sample'] @classmethod def setUpClass(cls): default_storage.location = 'media' # force using source media folder to avoid real data erasi...
<commit_before>import shutil import os from django.core.files.storage import default_storage from django.test import TestCase class SampleFilesTestCase(TestCase): fixtures = ['sample'] @classmethod def setUpClass(cls): default_storage.location = 'media' # force using source media folder to avoid ...
import shutil import os from django.core.files.storage import default_storage from django.test import TestCase class SampleFilesTestCase(TestCase): fixtures = ['sample'] @classmethod def setUpClass(cls): default_storage.location = 'media' # force using source media folder to avoid real data erasi...
import shutil import os from django.core.files.storage import default_storage from django.test import TestCase class SampleFilesTestCase(TestCase): fixtures = ['sample'] @classmethod def setUpClass(cls): default_storage.location = 'media' # force using source media folder to avoid real data erasi...
<commit_before>import shutil import os from django.core.files.storage import default_storage from django.test import TestCase class SampleFilesTestCase(TestCase): fixtures = ['sample'] @classmethod def setUpClass(cls): default_storage.location = 'media' # force using source media folder to avoid ...
12f3bb8c82b97496c79948d323f7076b6618293a
saleor/graphql/scalars.py
saleor/graphql/scalars.py
from graphene.types import Scalar from graphql.language import ast class AttributesFilterScalar(Scalar): @staticmethod def coerce_filter(value): if isinstance(value, tuple) and len(value) == 2: return ":".join(value) serialize = coerce_filter parse_value = coerce_filter @sta...
from graphene.types import Scalar from graphql.language import ast class AttributesFilterScalar(Scalar): @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): splitted = node.value.split(":") if len(splitted) == 2: return tuple(splitted) ...
Fix parsing attributes filter values in GraphQL API
Fix parsing attributes filter values in GraphQL API
Python
bsd-3-clause
KenMutemi/saleor,KenMutemi/saleor,jreigel/saleor,itbabu/saleor,maferelo/saleor,maferelo/saleor,jreigel/saleor,jreigel/saleor,HyperManTT/ECommerceSaleor,mociepka/saleor,UITools/saleor,UITools/saleor,maferelo/saleor,car3oon/saleor,itbabu/saleor,UITools/saleor,HyperManTT/ECommerceSaleor,car3oon/saleor,car3oon/saleor,UIToo...
from graphene.types import Scalar from graphql.language import ast class AttributesFilterScalar(Scalar): @staticmethod def coerce_filter(value): if isinstance(value, tuple) and len(value) == 2: return ":".join(value) serialize = coerce_filter parse_value = coerce_filter @sta...
from graphene.types import Scalar from graphql.language import ast class AttributesFilterScalar(Scalar): @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): splitted = node.value.split(":") if len(splitted) == 2: return tuple(splitted) ...
<commit_before>from graphene.types import Scalar from graphql.language import ast class AttributesFilterScalar(Scalar): @staticmethod def coerce_filter(value): if isinstance(value, tuple) and len(value) == 2: return ":".join(value) serialize = coerce_filter parse_value = coerce_f...
from graphene.types import Scalar from graphql.language import ast class AttributesFilterScalar(Scalar): @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): splitted = node.value.split(":") if len(splitted) == 2: return tuple(splitted) ...
from graphene.types import Scalar from graphql.language import ast class AttributesFilterScalar(Scalar): @staticmethod def coerce_filter(value): if isinstance(value, tuple) and len(value) == 2: return ":".join(value) serialize = coerce_filter parse_value = coerce_filter @sta...
<commit_before>from graphene.types import Scalar from graphql.language import ast class AttributesFilterScalar(Scalar): @staticmethod def coerce_filter(value): if isinstance(value, tuple) and len(value) == 2: return ":".join(value) serialize = coerce_filter parse_value = coerce_f...
5b8ff4276fbe92d5ccd5fa63fecccc5ff7d571a9
quokka/core/tests/test_models.py
quokka/core/tests/test_models.py
# coding: utf-8 from . import BaseTestCase from ..models import Channel class TestCoreModels(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.channel, new = Channel.objects.get_or_create( title=u'Monkey Island...
# coding: utf-8 from . import BaseTestCase from ..models import Channel class TestChannel(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.parent, new = Channel.objects.get_or_create( title=u'Father', ...
Add more core tests / Rename test
Add more core tests / Rename test
Python
mit
romulocollopy/quokka,felipevolpone/quokka,lnick/quokka,ChengChiongWah/quokka,felipevolpone/quokka,wushuyi/quokka,wushuyi/quokka,cbeloni/quokka,felipevolpone/quokka,CoolCloud/quokka,ChengChiongWah/quokka,lnick/quokka,romulocollopy/quokka,Ckai1991/quokka,cbeloni/quokka,CoolCloud/quokka,alexandre/quokka,felipevolpone/quok...
# coding: utf-8 from . import BaseTestCase from ..models import Channel class TestCoreModels(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.channel, new = Channel.objects.get_or_create( title=u'Monkey Island...
# coding: utf-8 from . import BaseTestCase from ..models import Channel class TestChannel(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.parent, new = Channel.objects.get_or_create( title=u'Father', ...
<commit_before># coding: utf-8 from . import BaseTestCase from ..models import Channel class TestCoreModels(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.channel, new = Channel.objects.get_or_create( title=...
# coding: utf-8 from . import BaseTestCase from ..models import Channel class TestChannel(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.parent, new = Channel.objects.get_or_create( title=u'Father', ...
# coding: utf-8 from . import BaseTestCase from ..models import Channel class TestCoreModels(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.channel, new = Channel.objects.get_or_create( title=u'Monkey Island...
<commit_before># coding: utf-8 from . import BaseTestCase from ..models import Channel class TestCoreModels(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.channel, new = Channel.objects.get_or_create( title=...
3037562643bc1ddaf081a6fa9c757aed4101bb53
robots/urls.py
robots/urls.py
try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url urlpatterns = patterns( 'robots.views', url(r'^$', 'rules_list', name='robots_rule_list'), )
from django.conf.urls import url from robots.views import rules_list urlpatterns = [ url(r'^$', rules_list, name='robots_rule_list'), ]
Fix warnings about URLconf in Django 1.9
Fix warnings about URLconf in Django 1.9 * django.conf.urls.patterns will be removed in Django 1.10 * Passing a dotted path and not a view function will be deprecated in Django 1.10
Python
bsd-3-clause
jezdez/django-robots,jezdez/django-robots,jscott1971/django-robots,jscott1971/django-robots,jazzband/django-robots,jazzband/django-robots
try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url urlpatterns = patterns( 'robots.views', url(r'^$', 'rules_list', name='robots_rule_list'), ) Fix warnings about URLconf in Django 1.9 * django.conf.urls.patterns will be removed in D...
from django.conf.urls import url from robots.views import rules_list urlpatterns = [ url(r'^$', rules_list, name='robots_rule_list'), ]
<commit_before>try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url urlpatterns = patterns( 'robots.views', url(r'^$', 'rules_list', name='robots_rule_list'), ) <commit_msg>Fix warnings about URLconf in Django 1.9 * django.conf.urls.pa...
from django.conf.urls import url from robots.views import rules_list urlpatterns = [ url(r'^$', rules_list, name='robots_rule_list'), ]
try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url urlpatterns = patterns( 'robots.views', url(r'^$', 'rules_list', name='robots_rule_list'), ) Fix warnings about URLconf in Django 1.9 * django.conf.urls.patterns will be removed in D...
<commit_before>try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url urlpatterns = patterns( 'robots.views', url(r'^$', 'rules_list', name='robots_rule_list'), ) <commit_msg>Fix warnings about URLconf in Django 1.9 * django.conf.urls.pa...
76243416f36a932c16bee93cc753de3d71168f0b
manager/__init__.py
manager/__init__.py
import os from flask import Flask from flask.ext.assets import Bundle, Environment from flask.ext.login import LoginManager from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) # Load the app config app.config.from_object("config.Config") assets = Environment(app) db= SQLAlchemy(app) login = LoginMana...
import os from flask import Flask from flask.ext.assets import Bundle, Environment from flask.ext.login import LoginManager from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) # Load the app config app.config.from_object("config.Config") assets = Environment(app) db= SQLAlchemy(app) login = LoginMana...
Add user table to module init
Add user table to module init
Python
mit
hreeder/ignition,hreeder/ignition,hreeder/ignition
import os from flask import Flask from flask.ext.assets import Bundle, Environment from flask.ext.login import LoginManager from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) # Load the app config app.config.from_object("config.Config") assets = Environment(app) db= SQLAlchemy(app) login = LoginMana...
import os from flask import Flask from flask.ext.assets import Bundle, Environment from flask.ext.login import LoginManager from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) # Load the app config app.config.from_object("config.Config") assets = Environment(app) db= SQLAlchemy(app) login = LoginMana...
<commit_before>import os from flask import Flask from flask.ext.assets import Bundle, Environment from flask.ext.login import LoginManager from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) # Load the app config app.config.from_object("config.Config") assets = Environment(app) db= SQLAlchemy(app) lo...
import os from flask import Flask from flask.ext.assets import Bundle, Environment from flask.ext.login import LoginManager from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) # Load the app config app.config.from_object("config.Config") assets = Environment(app) db= SQLAlchemy(app) login = LoginMana...
import os from flask import Flask from flask.ext.assets import Bundle, Environment from flask.ext.login import LoginManager from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) # Load the app config app.config.from_object("config.Config") assets = Environment(app) db= SQLAlchemy(app) login = LoginMana...
<commit_before>import os from flask import Flask from flask.ext.assets import Bundle, Environment from flask.ext.login import LoginManager from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) # Load the app config app.config.from_object("config.Config") assets = Environment(app) db= SQLAlchemy(app) lo...
aba5ae9736b064fd1e3541de3ef36371d92fc875
RandoAmisSecours/admin.py
RandoAmisSecours/admin.py
# -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2013 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
# -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2013 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
Fix import when using python3.3
Fix import when using python3.3
Python
agpl-3.0
ivoire/RandoAmisSecours,ivoire/RandoAmisSecours
# -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2013 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
# -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2013 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
<commit_before># -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2013 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, eith...
# -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2013 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
# -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2013 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
<commit_before># -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2013 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, eith...
b3ef748df9eca585ae3fc77da666ba5ce93bc428
lala/plugins/fortune.py
lala/plugins/fortune.py
import logging from functools import partial from lala.util import command, msg from twisted.internet.utils import getProcessOutput @command def fortune(user, channel, text): """Show a random, hopefully interesting, adage""" _call_fortune(user, channel) @command def ofortune(user, channel, text): """Show...
import logging from functools import partial from lala.util import command, msg from twisted.internet.utils import getProcessOutput @command def fortune(user, channel, text): """Show a random, hopefully interesting, adage""" _call_fortune(user, channel) @command def ofortune(user, channel, text): """Show...
Replace newlines with spaces for readability
Replace newlines with spaces for readability
Python
mit
mineo/lala,mineo/lala
import logging from functools import partial from lala.util import command, msg from twisted.internet.utils import getProcessOutput @command def fortune(user, channel, text): """Show a random, hopefully interesting, adage""" _call_fortune(user, channel) @command def ofortune(user, channel, text): """Show...
import logging from functools import partial from lala.util import command, msg from twisted.internet.utils import getProcessOutput @command def fortune(user, channel, text): """Show a random, hopefully interesting, adage""" _call_fortune(user, channel) @command def ofortune(user, channel, text): """Show...
<commit_before>import logging from functools import partial from lala.util import command, msg from twisted.internet.utils import getProcessOutput @command def fortune(user, channel, text): """Show a random, hopefully interesting, adage""" _call_fortune(user, channel) @command def ofortune(user, channel, tex...
import logging from functools import partial from lala.util import command, msg from twisted.internet.utils import getProcessOutput @command def fortune(user, channel, text): """Show a random, hopefully interesting, adage""" _call_fortune(user, channel) @command def ofortune(user, channel, text): """Show...
import logging from functools import partial from lala.util import command, msg from twisted.internet.utils import getProcessOutput @command def fortune(user, channel, text): """Show a random, hopefully interesting, adage""" _call_fortune(user, channel) @command def ofortune(user, channel, text): """Show...
<commit_before>import logging from functools import partial from lala.util import command, msg from twisted.internet.utils import getProcessOutput @command def fortune(user, channel, text): """Show a random, hopefully interesting, adage""" _call_fortune(user, channel) @command def ofortune(user, channel, tex...
b9e1b34348444c4c51c8fd30ff7882552e21939b
temba/msgs/migrations/0094_auto_20170501_1641.py
temba/msgs/migrations/0094_auto_20170501_1641.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-01 16:41 from __future__ import unicode_literals from django.db import migrations, models import temba.utils.models class Migration(migrations.Migration): dependencies = [ ('msgs', '0093_populate_translatables'), ] operations = [ ...
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-01 16:41 from __future__ import unicode_literals from django.db import migrations, models import temba.utils.models class Migration(migrations.Migration): dependencies = [ ('msgs', '0093_populate_translatables'), ] operations = [ ...
Change order of operations within migration so breaking schema changes come last
Change order of operations within migration so breaking schema changes come last
Python
agpl-3.0
pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-01 16:41 from __future__ import unicode_literals from django.db import migrations, models import temba.utils.models class Migration(migrations.Migration): dependencies = [ ('msgs', '0093_populate_translatables'), ] operations = [ ...
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-01 16:41 from __future__ import unicode_literals from django.db import migrations, models import temba.utils.models class Migration(migrations.Migration): dependencies = [ ('msgs', '0093_populate_translatables'), ] operations = [ ...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-01 16:41 from __future__ import unicode_literals from django.db import migrations, models import temba.utils.models class Migration(migrations.Migration): dependencies = [ ('msgs', '0093_populate_translatables'), ] o...
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-01 16:41 from __future__ import unicode_literals from django.db import migrations, models import temba.utils.models class Migration(migrations.Migration): dependencies = [ ('msgs', '0093_populate_translatables'), ] operations = [ ...
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-01 16:41 from __future__ import unicode_literals from django.db import migrations, models import temba.utils.models class Migration(migrations.Migration): dependencies = [ ('msgs', '0093_populate_translatables'), ] operations = [ ...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-05-01 16:41 from __future__ import unicode_literals from django.db import migrations, models import temba.utils.models class Migration(migrations.Migration): dependencies = [ ('msgs', '0093_populate_translatables'), ] o...
3c9da01bee3d157e344f3ad317b777b3977b2e4d
account_invoice_start_end_dates/models/account_move.py
account_invoice_start_end_dates/models/account_move.py
# Copyright 2019 Akretion France <https://akretion.com/> # @author: Alexis de Lattre <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, models from odoo.exceptions import UserError class AccountMove(models.Model): _inherit = "account.move" def ...
# Copyright 2019 Akretion France <https://akretion.com/> # @author: Alexis de Lattre <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, models from odoo.exceptions import UserError class AccountMove(models.Model): _inherit = "account.move" def ...
Use super() instead of super(classname, self)
Use super() instead of super(classname, self)
Python
agpl-3.0
OCA/account-closing,OCA/account-closing
# Copyright 2019 Akretion France <https://akretion.com/> # @author: Alexis de Lattre <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, models from odoo.exceptions import UserError class AccountMove(models.Model): _inherit = "account.move" def ...
# Copyright 2019 Akretion France <https://akretion.com/> # @author: Alexis de Lattre <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, models from odoo.exceptions import UserError class AccountMove(models.Model): _inherit = "account.move" def ...
<commit_before># Copyright 2019 Akretion France <https://akretion.com/> # @author: Alexis de Lattre <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, models from odoo.exceptions import UserError class AccountMove(models.Model): _inherit = "account....
# Copyright 2019 Akretion France <https://akretion.com/> # @author: Alexis de Lattre <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, models from odoo.exceptions import UserError class AccountMove(models.Model): _inherit = "account.move" def ...
# Copyright 2019 Akretion France <https://akretion.com/> # @author: Alexis de Lattre <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, models from odoo.exceptions import UserError class AccountMove(models.Model): _inherit = "account.move" def ...
<commit_before># Copyright 2019 Akretion France <https://akretion.com/> # @author: Alexis de Lattre <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, models from odoo.exceptions import UserError class AccountMove(models.Model): _inherit = "account....
d0919465239399f1ab6d65bbd8c42b1b9657ddb6
scripts/utils.py
scripts/utils.py
#!/usr/bin/env python3 # Touhou Community Reliant Automatic Patcher # Scripts # # ---- # """Utility functions shared among all the scripts.""" from collections import OrderedDict import json import os json_load_params = { 'object_pairs_hook': OrderedDict } def patch_files_filter(files): """Filters all file ...
#!/usr/bin/env python3 # Touhou Community Reliant Automatic Patcher # Scripts # # ---- # """Utility functions shared among all the scripts.""" from collections import OrderedDict import json import os json_load_params = { 'object_pairs_hook': OrderedDict } def patch_files_filter(files): """Filters all file ...
Allow to override the JSON loading and dumping parameters.
scripts: Allow to override the JSON loading and dumping parameters.
Python
unlicense
VBChunguk/thcrap,thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,VBChunguk/thcrap
#!/usr/bin/env python3 # Touhou Community Reliant Automatic Patcher # Scripts # # ---- # """Utility functions shared among all the scripts.""" from collections import OrderedDict import json import os json_load_params = { 'object_pairs_hook': OrderedDict } def patch_files_filter(files): """Filters all file ...
#!/usr/bin/env python3 # Touhou Community Reliant Automatic Patcher # Scripts # # ---- # """Utility functions shared among all the scripts.""" from collections import OrderedDict import json import os json_load_params = { 'object_pairs_hook': OrderedDict } def patch_files_filter(files): """Filters all file ...
<commit_before>#!/usr/bin/env python3 # Touhou Community Reliant Automatic Patcher # Scripts # # ---- # """Utility functions shared among all the scripts.""" from collections import OrderedDict import json import os json_load_params = { 'object_pairs_hook': OrderedDict } def patch_files_filter(files): """Fi...
#!/usr/bin/env python3 # Touhou Community Reliant Automatic Patcher # Scripts # # ---- # """Utility functions shared among all the scripts.""" from collections import OrderedDict import json import os json_load_params = { 'object_pairs_hook': OrderedDict } def patch_files_filter(files): """Filters all file ...
#!/usr/bin/env python3 # Touhou Community Reliant Automatic Patcher # Scripts # # ---- # """Utility functions shared among all the scripts.""" from collections import OrderedDict import json import os json_load_params = { 'object_pairs_hook': OrderedDict } def patch_files_filter(files): """Filters all file ...
<commit_before>#!/usr/bin/env python3 # Touhou Community Reliant Automatic Patcher # Scripts # # ---- # """Utility functions shared among all the scripts.""" from collections import OrderedDict import json import os json_load_params = { 'object_pairs_hook': OrderedDict } def patch_files_filter(files): """Fi...
b0254fd4090c0d17f60a87f3fe5fe28c0382310e
scripts/v0to1.py
scripts/v0to1.py
#!/usr/bin/env python import sys import h5py infiles = sys.argv[1:] for infile in infiles: with h5py.File(infile, 'a') as h5: print(infile) if 'format-version' in h5.attrs and h5.attrs['format-version'] < 1: if 'matrix' in h5 and not 'pixels' in h5: print('renaming mat...
#!/usr/bin/env python import sys import h5py infiles = sys.argv[1:] for infile in infiles: with h5py.File(infile, 'a') as h5: print(infile) if 'format-version' in h5.attrs and h5.attrs['format-version'] < 1: if 'matrix' in h5 and not 'pixels' in h5: print('renaming mat...
Drop old names from v0
Drop old names from v0
Python
bsd-3-clause
mirnylab/cooler
#!/usr/bin/env python import sys import h5py infiles = sys.argv[1:] for infile in infiles: with h5py.File(infile, 'a') as h5: print(infile) if 'format-version' in h5.attrs and h5.attrs['format-version'] < 1: if 'matrix' in h5 and not 'pixels' in h5: print('renaming mat...
#!/usr/bin/env python import sys import h5py infiles = sys.argv[1:] for infile in infiles: with h5py.File(infile, 'a') as h5: print(infile) if 'format-version' in h5.attrs and h5.attrs['format-version'] < 1: if 'matrix' in h5 and not 'pixels' in h5: print('renaming mat...
<commit_before>#!/usr/bin/env python import sys import h5py infiles = sys.argv[1:] for infile in infiles: with h5py.File(infile, 'a') as h5: print(infile) if 'format-version' in h5.attrs and h5.attrs['format-version'] < 1: if 'matrix' in h5 and not 'pixels' in h5: prin...
#!/usr/bin/env python import sys import h5py infiles = sys.argv[1:] for infile in infiles: with h5py.File(infile, 'a') as h5: print(infile) if 'format-version' in h5.attrs and h5.attrs['format-version'] < 1: if 'matrix' in h5 and not 'pixels' in h5: print('renaming mat...
#!/usr/bin/env python import sys import h5py infiles = sys.argv[1:] for infile in infiles: with h5py.File(infile, 'a') as h5: print(infile) if 'format-version' in h5.attrs and h5.attrs['format-version'] < 1: if 'matrix' in h5 and not 'pixels' in h5: print('renaming mat...
<commit_before>#!/usr/bin/env python import sys import h5py infiles = sys.argv[1:] for infile in infiles: with h5py.File(infile, 'a') as h5: print(infile) if 'format-version' in h5.attrs and h5.attrs['format-version'] < 1: if 'matrix' in h5 and not 'pixels' in h5: prin...
de82b44979f3e3b1c7e73594cd2138d00add4e47
test-console.py
test-console.py
import logging logging.basicConfig(level=logging.DEBUG) import mdk_tracing import time import quark tracer = mdk_tracing.Tracer.withURLsAndToken("ws://localhost:52690/ws", None, None) # tracer = mdk_tracing.Tracer.withURLsAndToken("wss://tracing-develop.datawire.io/ws", None, None) def goodHandler(result): # loggi...
import logging logging.basicConfig(level=logging.DEBUG) import mdk_tracing import time import quark # tracer = mdk_tracing.Tracer.withURLsAndToken("ws://localhost:52690/ws", None, None) tracer = mdk_tracing.Tracer.withURLsAndToken("wss://tracing-develop.datawire.io/ws", None, None) def goodHandler(result): # loggi...
Switch console to use tracing-develop
Switch console to use tracing-develop
Python
apache-2.0
datawire/mdk,datawire/mdk,datawire/mdk,datawire/mdk
import logging logging.basicConfig(level=logging.DEBUG) import mdk_tracing import time import quark tracer = mdk_tracing.Tracer.withURLsAndToken("ws://localhost:52690/ws", None, None) # tracer = mdk_tracing.Tracer.withURLsAndToken("wss://tracing-develop.datawire.io/ws", None, None) def goodHandler(result): # loggi...
import logging logging.basicConfig(level=logging.DEBUG) import mdk_tracing import time import quark # tracer = mdk_tracing.Tracer.withURLsAndToken("ws://localhost:52690/ws", None, None) tracer = mdk_tracing.Tracer.withURLsAndToken("wss://tracing-develop.datawire.io/ws", None, None) def goodHandler(result): # loggi...
<commit_before>import logging logging.basicConfig(level=logging.DEBUG) import mdk_tracing import time import quark tracer = mdk_tracing.Tracer.withURLsAndToken("ws://localhost:52690/ws", None, None) # tracer = mdk_tracing.Tracer.withURLsAndToken("wss://tracing-develop.datawire.io/ws", None, None) def goodHandler(re...
import logging logging.basicConfig(level=logging.DEBUG) import mdk_tracing import time import quark # tracer = mdk_tracing.Tracer.withURLsAndToken("ws://localhost:52690/ws", None, None) tracer = mdk_tracing.Tracer.withURLsAndToken("wss://tracing-develop.datawire.io/ws", None, None) def goodHandler(result): # loggi...
import logging logging.basicConfig(level=logging.DEBUG) import mdk_tracing import time import quark tracer = mdk_tracing.Tracer.withURLsAndToken("ws://localhost:52690/ws", None, None) # tracer = mdk_tracing.Tracer.withURLsAndToken("wss://tracing-develop.datawire.io/ws", None, None) def goodHandler(result): # loggi...
<commit_before>import logging logging.basicConfig(level=logging.DEBUG) import mdk_tracing import time import quark tracer = mdk_tracing.Tracer.withURLsAndToken("ws://localhost:52690/ws", None, None) # tracer = mdk_tracing.Tracer.withURLsAndToken("wss://tracing-develop.datawire.io/ws", None, None) def goodHandler(re...
43350965e171e6a3bfd89af3dd192ab5c9281b3a
vumi/blinkenlights/tests/test_message20110818.py
vumi/blinkenlights/tests/test_message20110818.py
from twisted.trial.unittest import TestCase import vumi.blinkenlights.message20110818 as message import time class TestMessage(TestCase): def test_to_dict(self): now = time.time() datapoint = ("vumi.w1.a_metric", now, 1.5) msg = message.MetricMessage() msg.append(datapoint) ...
from twisted.trial.unittest import TestCase import vumi.blinkenlights.message20110818 as message import time class TestMessage(TestCase): def test_to_dict(self): now = time.time() datapoint = ("vumi.w1.a_metric", now, 1.5) msg = message.MetricMessage() msg.append(datapoint) ...
Add test for extend method.
Add test for extend method.
Python
bsd-3-clause
TouK/vumi,vishwaprakashmishra/xmatrix,vishwaprakashmishra/xmatrix,vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi,TouK/vumi,harrissoerja/vumi,harrissoerja/vumi
from twisted.trial.unittest import TestCase import vumi.blinkenlights.message20110818 as message import time class TestMessage(TestCase): def test_to_dict(self): now = time.time() datapoint = ("vumi.w1.a_metric", now, 1.5) msg = message.MetricMessage() msg.append(datapoint) ...
from twisted.trial.unittest import TestCase import vumi.blinkenlights.message20110818 as message import time class TestMessage(TestCase): def test_to_dict(self): now = time.time() datapoint = ("vumi.w1.a_metric", now, 1.5) msg = message.MetricMessage() msg.append(datapoint) ...
<commit_before>from twisted.trial.unittest import TestCase import vumi.blinkenlights.message20110818 as message import time class TestMessage(TestCase): def test_to_dict(self): now = time.time() datapoint = ("vumi.w1.a_metric", now, 1.5) msg = message.MetricMessage() msg.append(da...
from twisted.trial.unittest import TestCase import vumi.blinkenlights.message20110818 as message import time class TestMessage(TestCase): def test_to_dict(self): now = time.time() datapoint = ("vumi.w1.a_metric", now, 1.5) msg = message.MetricMessage() msg.append(datapoint) ...
from twisted.trial.unittest import TestCase import vumi.blinkenlights.message20110818 as message import time class TestMessage(TestCase): def test_to_dict(self): now = time.time() datapoint = ("vumi.w1.a_metric", now, 1.5) msg = message.MetricMessage() msg.append(datapoint) ...
<commit_before>from twisted.trial.unittest import TestCase import vumi.blinkenlights.message20110818 as message import time class TestMessage(TestCase): def test_to_dict(self): now = time.time() datapoint = ("vumi.w1.a_metric", now, 1.5) msg = message.MetricMessage() msg.append(da...
f5198851aebb000a6107b3f9ce34825da200abff
src/foremast/utils/get_template.py
src/foremast/utils/get_template.py
"""Render Jinja2 template.""" import logging import os import jinja2 LOG = logging.getLogger(__name__) def get_template(template_file='', **kwargs): """Get the Jinja2 template and renders with dict _kwargs_. Args: kwargs: Keywords to use for rendering the Jinja2 template. Returns: Stri...
"""Render Jinja2 template.""" import logging import os import jinja2 LOG = logging.getLogger(__name__) def get_template(template_file='', **kwargs): """Get the Jinja2 template and renders with dict _kwargs_. Args: kwargs: Keywords to use for rendering the Jinja2 template. Returns: Stri...
Use more descriptive variable names
style: Use more descriptive variable names See also: PSOBAT-1197
Python
apache-2.0
gogoair/foremast,gogoair/foremast
"""Render Jinja2 template.""" import logging import os import jinja2 LOG = logging.getLogger(__name__) def get_template(template_file='', **kwargs): """Get the Jinja2 template and renders with dict _kwargs_. Args: kwargs: Keywords to use for rendering the Jinja2 template. Returns: Stri...
"""Render Jinja2 template.""" import logging import os import jinja2 LOG = logging.getLogger(__name__) def get_template(template_file='', **kwargs): """Get the Jinja2 template and renders with dict _kwargs_. Args: kwargs: Keywords to use for rendering the Jinja2 template. Returns: Stri...
<commit_before>"""Render Jinja2 template.""" import logging import os import jinja2 LOG = logging.getLogger(__name__) def get_template(template_file='', **kwargs): """Get the Jinja2 template and renders with dict _kwargs_. Args: kwargs: Keywords to use for rendering the Jinja2 template. Return...
"""Render Jinja2 template.""" import logging import os import jinja2 LOG = logging.getLogger(__name__) def get_template(template_file='', **kwargs): """Get the Jinja2 template and renders with dict _kwargs_. Args: kwargs: Keywords to use for rendering the Jinja2 template. Returns: Stri...
"""Render Jinja2 template.""" import logging import os import jinja2 LOG = logging.getLogger(__name__) def get_template(template_file='', **kwargs): """Get the Jinja2 template and renders with dict _kwargs_. Args: kwargs: Keywords to use for rendering the Jinja2 template. Returns: Stri...
<commit_before>"""Render Jinja2 template.""" import logging import os import jinja2 LOG = logging.getLogger(__name__) def get_template(template_file='', **kwargs): """Get the Jinja2 template and renders with dict _kwargs_. Args: kwargs: Keywords to use for rendering the Jinja2 template. Return...
159d09e18dc3b10b7ba3c104a2761f300d50ff28
organizer/models.py
organizer/models.py
from django.db import models # Model Field Reference # https://docs.djangoproject.com/en/1.8/ref/models/fields/ class Tag(models.Model): name = models.CharField( max_length=31, unique=True) slug = models.SlugField( max_length=31, unique=True, help_text='A label for URL config...
from django.db import models # Model Field Reference # https://docs.djangoproject.com/en/1.8/ref/models/fields/ class Tag(models.Model): name = models.CharField( max_length=31, unique=True) slug = models.SlugField( max_length=31, unique=True, help_text='A label for URL config...
Add options to NewsLink model fields.
Ch03: Add options to NewsLink model fields. [skip ci] Field options allow us to easily customize behavior of a field. Verbose name documentation: https://docs.djangoproject.com/en/1.8/ref/models/fields/#verbose-name https://docs.djangoproject.com/en/1.8/topics/db/models/#verbose-field-names The max_length f...
Python
bsd-2-clause
jambonrose/DjangoUnleashed-1.8,jambonrose/DjangoUnleashed-1.8
from django.db import models # Model Field Reference # https://docs.djangoproject.com/en/1.8/ref/models/fields/ class Tag(models.Model): name = models.CharField( max_length=31, unique=True) slug = models.SlugField( max_length=31, unique=True, help_text='A label for URL config...
from django.db import models # Model Field Reference # https://docs.djangoproject.com/en/1.8/ref/models/fields/ class Tag(models.Model): name = models.CharField( max_length=31, unique=True) slug = models.SlugField( max_length=31, unique=True, help_text='A label for URL config...
<commit_before>from django.db import models # Model Field Reference # https://docs.djangoproject.com/en/1.8/ref/models/fields/ class Tag(models.Model): name = models.CharField( max_length=31, unique=True) slug = models.SlugField( max_length=31, unique=True, help_text='A label...
from django.db import models # Model Field Reference # https://docs.djangoproject.com/en/1.8/ref/models/fields/ class Tag(models.Model): name = models.CharField( max_length=31, unique=True) slug = models.SlugField( max_length=31, unique=True, help_text='A label for URL config...
from django.db import models # Model Field Reference # https://docs.djangoproject.com/en/1.8/ref/models/fields/ class Tag(models.Model): name = models.CharField( max_length=31, unique=True) slug = models.SlugField( max_length=31, unique=True, help_text='A label for URL config...
<commit_before>from django.db import models # Model Field Reference # https://docs.djangoproject.com/en/1.8/ref/models/fields/ class Tag(models.Model): name = models.CharField( max_length=31, unique=True) slug = models.SlugField( max_length=31, unique=True, help_text='A label...
761fbb68f72ff8f425ad40670ea908b4959d3292
specchio/main.py
specchio/main.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time from watchdog.observers import Observer from specchio.handlers import SpecchioEventHandler from specchio.utils import init_logger, logger def main(): """Main function for specchio Example: specchio test/ user@host:test/ :return: Non...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time from watchdog.observers import Observer from specchio.handlers import SpecchioEventHandler from specchio.utils import init_logger, logger def main(): """Main function for specchio Example: specchio test/ user@host:test/ :return: Non...
Fix the output when there is wrong usage
Fix the output when there is wrong usage
Python
mit
brickgao/specchio
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time from watchdog.observers import Observer from specchio.handlers import SpecchioEventHandler from specchio.utils import init_logger, logger def main(): """Main function for specchio Example: specchio test/ user@host:test/ :return: Non...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time from watchdog.observers import Observer from specchio.handlers import SpecchioEventHandler from specchio.utils import init_logger, logger def main(): """Main function for specchio Example: specchio test/ user@host:test/ :return: Non...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time from watchdog.observers import Observer from specchio.handlers import SpecchioEventHandler from specchio.utils import init_logger, logger def main(): """Main function for specchio Example: specchio test/ user@host:test/ ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time from watchdog.observers import Observer from specchio.handlers import SpecchioEventHandler from specchio.utils import init_logger, logger def main(): """Main function for specchio Example: specchio test/ user@host:test/ :return: Non...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time from watchdog.observers import Observer from specchio.handlers import SpecchioEventHandler from specchio.utils import init_logger, logger def main(): """Main function for specchio Example: specchio test/ user@host:test/ :return: Non...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time from watchdog.observers import Observer from specchio.handlers import SpecchioEventHandler from specchio.utils import init_logger, logger def main(): """Main function for specchio Example: specchio test/ user@host:test/ ...
e910c9f3ee3fec868f2a6dfb7b7d337440cbb768
virtool/logs.py
virtool/logs.py
import logging.handlers import coloredlogs def configure(verbose=False): logging_level = logging.INFO if verbose else logging.DEBUG logging.captureWarnings(True) log_format = "%(asctime)-20s %(module)-11s %(levelname)-8s %(message)s" coloredlogs.install( level=logging_level, fmt=lo...
import logging.handlers import coloredlogs def configure(verbose=False): logging_level = logging.INFO if verbose else logging.DEBUG logging.captureWarnings(True) log_format = "%(asctime)-20s %(module)-11s %(levelname)-8s %(message)s" coloredlogs.install( level=logging_level, fmt=lo...
Write all log lines to log files
Write all log lines to log files Only the virtool logger was being written before.
Python
mit
igboyes/virtool,virtool/virtool,virtool/virtool,igboyes/virtool
import logging.handlers import coloredlogs def configure(verbose=False): logging_level = logging.INFO if verbose else logging.DEBUG logging.captureWarnings(True) log_format = "%(asctime)-20s %(module)-11s %(levelname)-8s %(message)s" coloredlogs.install( level=logging_level, fmt=lo...
import logging.handlers import coloredlogs def configure(verbose=False): logging_level = logging.INFO if verbose else logging.DEBUG logging.captureWarnings(True) log_format = "%(asctime)-20s %(module)-11s %(levelname)-8s %(message)s" coloredlogs.install( level=logging_level, fmt=lo...
<commit_before>import logging.handlers import coloredlogs def configure(verbose=False): logging_level = logging.INFO if verbose else logging.DEBUG logging.captureWarnings(True) log_format = "%(asctime)-20s %(module)-11s %(levelname)-8s %(message)s" coloredlogs.install( level=logging_level,...
import logging.handlers import coloredlogs def configure(verbose=False): logging_level = logging.INFO if verbose else logging.DEBUG logging.captureWarnings(True) log_format = "%(asctime)-20s %(module)-11s %(levelname)-8s %(message)s" coloredlogs.install( level=logging_level, fmt=lo...
import logging.handlers import coloredlogs def configure(verbose=False): logging_level = logging.INFO if verbose else logging.DEBUG logging.captureWarnings(True) log_format = "%(asctime)-20s %(module)-11s %(levelname)-8s %(message)s" coloredlogs.install( level=logging_level, fmt=lo...
<commit_before>import logging.handlers import coloredlogs def configure(verbose=False): logging_level = logging.INFO if verbose else logging.DEBUG logging.captureWarnings(True) log_format = "%(asctime)-20s %(module)-11s %(levelname)-8s %(message)s" coloredlogs.install( level=logging_level,...
0ddbea23c8703576e260fa5b57474930393e7d1a
base/components/merchandise/media/views.py
base/components/merchandise/media/views.py
from django.views.generic import DetailView from .models import Videodisc class VideodiscDetailView(DetailView): model = Videodisc template_name = 'merchandise/media/videodisc_detail.html'
Create a small detail view for videodiscs.
Create a small detail view for videodiscs.
Python
apache-2.0
hello-base/web,hello-base/web,hello-base/web,hello-base/web
Create a small detail view for videodiscs.
from django.views.generic import DetailView from .models import Videodisc class VideodiscDetailView(DetailView): model = Videodisc template_name = 'merchandise/media/videodisc_detail.html'
<commit_before><commit_msg>Create a small detail view for videodiscs.<commit_after>
from django.views.generic import DetailView from .models import Videodisc class VideodiscDetailView(DetailView): model = Videodisc template_name = 'merchandise/media/videodisc_detail.html'
Create a small detail view for videodiscs.from django.views.generic import DetailView from .models import Videodisc class VideodiscDetailView(DetailView): model = Videodisc template_name = 'merchandise/media/videodisc_detail.html'
<commit_before><commit_msg>Create a small detail view for videodiscs.<commit_after>from django.views.generic import DetailView from .models import Videodisc class VideodiscDetailView(DetailView): model = Videodisc template_name = 'merchandise/media/videodisc_detail.html'
5d188a71ae43ec8858f985dddbb0ff970cd18e73
feder/domains/apps.py
feder/domains/apps.py
from django.apps import AppConfig class DomainsConfig(AppConfig): name = "domains"
from django.apps import AppConfig class DomainsConfig(AppConfig): name = "feder.domains"
Fix DomainsConfig.name to fix rtfd build
Fix DomainsConfig.name to fix rtfd build
Python
mit
watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder
from django.apps import AppConfig class DomainsConfig(AppConfig): name = "domains" Fix DomainsConfig.name to fix rtfd build
from django.apps import AppConfig class DomainsConfig(AppConfig): name = "feder.domains"
<commit_before>from django.apps import AppConfig class DomainsConfig(AppConfig): name = "domains" <commit_msg>Fix DomainsConfig.name to fix rtfd build<commit_after>
from django.apps import AppConfig class DomainsConfig(AppConfig): name = "feder.domains"
from django.apps import AppConfig class DomainsConfig(AppConfig): name = "domains" Fix DomainsConfig.name to fix rtfd buildfrom django.apps import AppConfig class DomainsConfig(AppConfig): name = "feder.domains"
<commit_before>from django.apps import AppConfig class DomainsConfig(AppConfig): name = "domains" <commit_msg>Fix DomainsConfig.name to fix rtfd build<commit_after>from django.apps import AppConfig class DomainsConfig(AppConfig): name = "feder.domains"
f6e8907b0e742b47425de140cc7b308c3815ffce
dequorum/forms.py
dequorum/forms.py
from django import forms from django.forms import widgets from . import models class ThreadCreateForm(forms.ModelForm): class Meta: model = models.Thread fields = ['title'] class MessageCreateForm(forms.ModelForm): class Meta: model = models.Message fields = ['body'] cl...
from django import forms from django.forms import widgets from . import models class ThreadCreateForm(forms.ModelForm): class Meta: model = models.Thread fields = ['title'] class MessageCreateForm(forms.ModelForm): class Meta: model = models.Message fields = ['body'] cl...
Mark tags as not required in filter form
Mark tags as not required in filter form
Python
mit
funkybob/django-dequorum,funkybob/django-dequorum,funkybob/django-dequorum
from django import forms from django.forms import widgets from . import models class ThreadCreateForm(forms.ModelForm): class Meta: model = models.Thread fields = ['title'] class MessageCreateForm(forms.ModelForm): class Meta: model = models.Message fields = ['body'] cl...
from django import forms from django.forms import widgets from . import models class ThreadCreateForm(forms.ModelForm): class Meta: model = models.Thread fields = ['title'] class MessageCreateForm(forms.ModelForm): class Meta: model = models.Message fields = ['body'] cl...
<commit_before> from django import forms from django.forms import widgets from . import models class ThreadCreateForm(forms.ModelForm): class Meta: model = models.Thread fields = ['title'] class MessageCreateForm(forms.ModelForm): class Meta: model = models.Message fields ...
from django import forms from django.forms import widgets from . import models class ThreadCreateForm(forms.ModelForm): class Meta: model = models.Thread fields = ['title'] class MessageCreateForm(forms.ModelForm): class Meta: model = models.Message fields = ['body'] cl...
from django import forms from django.forms import widgets from . import models class ThreadCreateForm(forms.ModelForm): class Meta: model = models.Thread fields = ['title'] class MessageCreateForm(forms.ModelForm): class Meta: model = models.Message fields = ['body'] cl...
<commit_before> from django import forms from django.forms import widgets from . import models class ThreadCreateForm(forms.ModelForm): class Meta: model = models.Thread fields = ['title'] class MessageCreateForm(forms.ModelForm): class Meta: model = models.Message fields ...
58734468f027ddff31bfa7dc685f4af177e8dbb1
t5x/__init__.py
t5x/__init__.py
# Copyright 2021 The T5X 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 or agreed to in writ...
# Copyright 2021 The T5X 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 or agreed to in writ...
Add t5x.losses to public API.
Add t5x.losses to public API. PiperOrigin-RevId: 417631806
Python
apache-2.0
google-research/t5x
# Copyright 2021 The T5X 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 or agreed to in writ...
# Copyright 2021 The T5X 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 or agreed to in writ...
<commit_before># Copyright 2021 The T5X 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 or ag...
# Copyright 2021 The T5X 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 or agreed to in writ...
# Copyright 2021 The T5X 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 or agreed to in writ...
<commit_before># Copyright 2021 The T5X 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 or ag...
34960807eac1818a8167ff015e941c42be8827da
checkenv.py
checkenv.py
from colorama import Fore from pkgutil import iter_modules def check_import(packagename): """ Checks that a package is present. Returns true if it is available, and false if not available. """ if packagename in (name for _, name, _ in iter_modules()): return True else: return F...
from colorama import Fore, Style from pkgutil import iter_modules def check_import(packagename): """ Checks that a package is present. Returns true if it is available, and false if not available. """ if packagename in (name for _, name, _ in iter_modules()): return True else: r...
Reset colors at the end
Reset colors at the end
Python
mit
ericmjl/data-testing-tutorial,ericmjl/data-testing-tutorial
from colorama import Fore from pkgutil import iter_modules def check_import(packagename): """ Checks that a package is present. Returns true if it is available, and false if not available. """ if packagename in (name for _, name, _ in iter_modules()): return True else: return F...
from colorama import Fore, Style from pkgutil import iter_modules def check_import(packagename): """ Checks that a package is present. Returns true if it is available, and false if not available. """ if packagename in (name for _, name, _ in iter_modules()): return True else: r...
<commit_before>from colorama import Fore from pkgutil import iter_modules def check_import(packagename): """ Checks that a package is present. Returns true if it is available, and false if not available. """ if packagename in (name for _, name, _ in iter_modules()): return True else: ...
from colorama import Fore, Style from pkgutil import iter_modules def check_import(packagename): """ Checks that a package is present. Returns true if it is available, and false if not available. """ if packagename in (name for _, name, _ in iter_modules()): return True else: r...
from colorama import Fore from pkgutil import iter_modules def check_import(packagename): """ Checks that a package is present. Returns true if it is available, and false if not available. """ if packagename in (name for _, name, _ in iter_modules()): return True else: return F...
<commit_before>from colorama import Fore from pkgutil import iter_modules def check_import(packagename): """ Checks that a package is present. Returns true if it is available, and false if not available. """ if packagename in (name for _, name, _ in iter_modules()): return True else: ...
dfa752590c944fc07253c01c3d99b640a46dae1d
jinja2_time/jinja2_time.py
jinja2_time/jinja2_time.py
# -*- coding: utf-8 -*- import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.ext...
# -*- coding: utf-8 -*- import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.ext...
Implement parser method for optional offset
Implement parser method for optional offset
Python
mit
hackebrot/jinja2-time
# -*- coding: utf-8 -*- import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.ext...
# -*- coding: utf-8 -*- import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.ext...
<commit_before># -*- coding: utf-8 -*- import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment ...
# -*- coding: utf-8 -*- import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.ext...
# -*- coding: utf-8 -*- import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.ext...
<commit_before># -*- coding: utf-8 -*- import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment ...
5b3d69d2c9338ab0c50fd9ea8cf3c01adf0c1de3
breakpad.py
breakpad.py
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Breakpad for Python. Sends a notification when a process stops on an exception.""" import atexit import getpass import urllib import traceback impor...
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Breakpad for Python. Sends a notification when a process stops on an exception.""" import atexit import getpass import urllib import traceback impor...
Disable braekpad automatic registration while we figure out stuff
Disable braekpad automatic registration while we figure out stuff Review URL: http://codereview.chromium.org/462022 git-svn-id: fd409f4bdeea2bb50a5d34bb4d4bfc2046a5a3dd@33686 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
xuyuhan/depot_tools,npe9/depot_tools,SuYiling/chrome_depot_tools,Neozaru/depot_tools,npe9/depot_tools,Midrya/chromium,michalliu/chromium-depot_tools,kaiix/depot_tools,disigma/depot_tools,Chilledheart/depot_tools,fracting/depot_tools,airtimemedia/depot_tools,Midrya/chromium,duongbaoduy/gtools,coreos/depot_tools,duongbao...
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Breakpad for Python. Sends a notification when a process stops on an exception.""" import atexit import getpass import urllib import traceback impor...
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Breakpad for Python. Sends a notification when a process stops on an exception.""" import atexit import getpass import urllib import traceback impor...
<commit_before># Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Breakpad for Python. Sends a notification when a process stops on an exception.""" import atexit import getpass import urllib import ...
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Breakpad for Python. Sends a notification when a process stops on an exception.""" import atexit import getpass import urllib import traceback impor...
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Breakpad for Python. Sends a notification when a process stops on an exception.""" import atexit import getpass import urllib import traceback impor...
<commit_before># Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Breakpad for Python. Sends a notification when a process stops on an exception.""" import atexit import getpass import urllib import ...
d68f28581cd3c3f57f7c41adbd65676887a51136
opps/channels/tests/test_forms.py
opps/channels/tests/test_forms.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from opps.channels.models import Channel from opps.channels.forms import ChannelAdminForm class ChannelFormTest(TestCase): def setUp(self): ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from opps.channels.models import Channel from opps.channels.forms import ChannelAdminForm class ChannelFormTest(TestCase): def setUp(self): ...
Add test check readonly field slug of channel
Add test check readonly field slug of channel
Python
mit
jeanmask/opps,opps/opps,jeanmask/opps,YACOWS/opps,williamroot/opps,williamroot/opps,opps/opps,YACOWS/opps,YACOWS/opps,williamroot/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,opps/opps,jeanmask/opps,opps/opps
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from opps.channels.models import Channel from opps.channels.forms import ChannelAdminForm class ChannelFormTest(TestCase): def setUp(self): ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from opps.channels.models import Channel from opps.channels.forms import ChannelAdminForm class ChannelFormTest(TestCase): def setUp(self): ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from opps.channels.models import Channel from opps.channels.forms import ChannelAdminForm class ChannelFormTest(TestCase): de...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from opps.channels.models import Channel from opps.channels.forms import ChannelAdminForm class ChannelFormTest(TestCase): def setUp(self): ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from opps.channels.models import Channel from opps.channels.forms import ChannelAdminForm class ChannelFormTest(TestCase): def setUp(self): ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from opps.channels.models import Channel from opps.channels.forms import ChannelAdminForm class ChannelFormTest(TestCase): de...
b97115679929dfe4f69618f756850617f265048f
service/pixelated/config/site.py
service/pixelated/config/site.py
from twisted.web.server import Site, Request class AddCSPHeaderRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): self.setHeader('Content-Security-Policy', self.CSP_HEADER_VALUES) self.setHeader('X-Content-Security-Policy', self.CSP...
from twisted.web.server import Site, Request class AddSecurityHeadersRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): self.setHeader('Content-Security-Policy', self.CSP_HEADER_VALUES) self.setHeader('X-Content-Security-Policy', se...
Rename class to match intent
Rename class to match intent
Python
agpl-3.0
pixelated-project/pixelated-user-agent,pixelated/pixelated-user-agent,pixelated-project/pixelated-user-agent,pixelated-project/pixelated-user-agent,pixelated-project/pixelated-user-agent,pixelated/pixelated-user-agent,pixelated-project/pixelated-user-agent,pixelated/pixelated-user-agent,pixelated/pixelated-user-agent,p...
from twisted.web.server import Site, Request class AddCSPHeaderRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): self.setHeader('Content-Security-Policy', self.CSP_HEADER_VALUES) self.setHeader('X-Content-Security-Policy', self.CSP...
from twisted.web.server import Site, Request class AddSecurityHeadersRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): self.setHeader('Content-Security-Policy', self.CSP_HEADER_VALUES) self.setHeader('X-Content-Security-Policy', se...
<commit_before>from twisted.web.server import Site, Request class AddCSPHeaderRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): self.setHeader('Content-Security-Policy', self.CSP_HEADER_VALUES) self.setHeader('X-Content-Security-Po...
from twisted.web.server import Site, Request class AddSecurityHeadersRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): self.setHeader('Content-Security-Policy', self.CSP_HEADER_VALUES) self.setHeader('X-Content-Security-Policy', se...
from twisted.web.server import Site, Request class AddCSPHeaderRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): self.setHeader('Content-Security-Policy', self.CSP_HEADER_VALUES) self.setHeader('X-Content-Security-Policy', self.CSP...
<commit_before>from twisted.web.server import Site, Request class AddCSPHeaderRequest(Request): CSP_HEADER_VALUES = "default-src 'self'; style-src 'self' 'unsafe-inline'" def process(self): self.setHeader('Content-Security-Policy', self.CSP_HEADER_VALUES) self.setHeader('X-Content-Security-Po...
4b245b9a859552adb9c19fafc4bdfab5780782f2
d1_common_python/src/d1_common/__init__.py
d1_common_python/src/d1_common/__init__.py
# -*- coding: utf-8 -*- # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2016 DataONE # # Licensed under the Apache License, Version 2.0 ...
# -*- coding: utf-8 -*- # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2016 DataONE # # Licensed under the Apache License, Version 2.0 ...
Add logging NullHandler to prevent "no handler found" errors
Add logging NullHandler to prevent "no handler found" errors This fixes the issue where "no handler found" errors would be printed by the library if library clients did not set up logging.
Python
apache-2.0
DataONEorg/d1_python,DataONEorg/d1_python,DataONEorg/d1_python,DataONEorg/d1_python
# -*- coding: utf-8 -*- # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2016 DataONE # # Licensed under the Apache License, Version 2.0 ...
# -*- coding: utf-8 -*- # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2016 DataONE # # Licensed under the Apache License, Version 2.0 ...
<commit_before># -*- coding: utf-8 -*- # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2016 DataONE # # Licensed under the Apache Licens...
# -*- coding: utf-8 -*- # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2016 DataONE # # Licensed under the Apache License, Version 2.0 ...
# -*- coding: utf-8 -*- # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2016 DataONE # # Licensed under the Apache License, Version 2.0 ...
<commit_before># -*- coding: utf-8 -*- # This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2016 DataONE # # Licensed under the Apache Licens...
af8a96e08029e2dc746cfa1ecbd7a6d02be1c374
InvenTree/company/forms.py
InvenTree/company/forms.py
""" Django Forms for interacting with Company app """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from InvenTree.forms import HelperForm from .models import Company from .models import SupplierPart from .models import SupplierPriceBreak class EditCompanyForm(HelperForm): """ Form for editin...
""" Django Forms for interacting with Company app """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from InvenTree.forms import HelperForm from .models import Company from .models import SupplierPart from .models import SupplierPriceBreak class EditCompanyForm(HelperForm): """ Form for editin...
Add option to edit currency
Add option to edit currency
Python
mit
SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree
""" Django Forms for interacting with Company app """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from InvenTree.forms import HelperForm from .models import Company from .models import SupplierPart from .models import SupplierPriceBreak class EditCompanyForm(HelperForm): """ Form for editin...
""" Django Forms for interacting with Company app """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from InvenTree.forms import HelperForm from .models import Company from .models import SupplierPart from .models import SupplierPriceBreak class EditCompanyForm(HelperForm): """ Form for editin...
<commit_before>""" Django Forms for interacting with Company app """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from InvenTree.forms import HelperForm from .models import Company from .models import SupplierPart from .models import SupplierPriceBreak class EditCompanyForm(HelperForm): """ ...
""" Django Forms for interacting with Company app """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from InvenTree.forms import HelperForm from .models import Company from .models import SupplierPart from .models import SupplierPriceBreak class EditCompanyForm(HelperForm): """ Form for editin...
""" Django Forms for interacting with Company app """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from InvenTree.forms import HelperForm from .models import Company from .models import SupplierPart from .models import SupplierPriceBreak class EditCompanyForm(HelperForm): """ Form for editin...
<commit_before>""" Django Forms for interacting with Company app """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from InvenTree.forms import HelperForm from .models import Company from .models import SupplierPart from .models import SupplierPriceBreak class EditCompanyForm(HelperForm): """ ...
824c46b7d3953e1933a72def4edf058a577487ea
byceps/services/attendance/transfer/models.py
byceps/services/attendance/transfer/models.py
""" byceps.services.attendance.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from attr import attrib, attrs from ....services.seating.models.seat import Seat from ....services.user.models.user import User @...
""" byceps.services.attendance.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from dataclasses import dataclass from ....services.seating.models.seat import Seat from ....services.user.models.user import User ...
Use `dataclass` instead of `attr` for attendance model
Use `dataclass` instead of `attr` for attendance model
Python
bsd-3-clause
m-ober/byceps,homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps
""" byceps.services.attendance.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from attr import attrib, attrs from ....services.seating.models.seat import Seat from ....services.user.models.user import User @...
""" byceps.services.attendance.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from dataclasses import dataclass from ....services.seating.models.seat import Seat from ....services.user.models.user import User ...
<commit_before>""" byceps.services.attendance.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from attr import attrib, attrs from ....services.seating.models.seat import Seat from ....services.user.models.user ...
""" byceps.services.attendance.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from dataclasses import dataclass from ....services.seating.models.seat import Seat from ....services.user.models.user import User ...
""" byceps.services.attendance.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from attr import attrib, attrs from ....services.seating.models.seat import Seat from ....services.user.models.user import User @...
<commit_before>""" byceps.services.attendance.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from attr import attrib, attrs from ....services.seating.models.seat import Seat from ....services.user.models.user ...
7d52ee6030b2e59a6b6cb6dce78686e8d551281b
examples/horizontal_boxplot.py
examples/horizontal_boxplot.py
""" Horizontal boxplot with observations ==================================== _thumb: .7, .37 """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # Initialize the figure f, ax = plt.subplots(figsize=(7, 6)) ax.set_xscale("log") # Load the example planets dataset planet...
""" Horizontal boxplot with observations ==================================== _thumb: .7, .37 """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # Initialize the figure with a logarithmic x axis f, ax = plt.subplots(figsize=(7, 6)) ax.set_xscale("log") # Load the exa...
Fix comments in horizontal boxplot example
Fix comments in horizontal boxplot example
Python
bsd-3-clause
mwaskom/seaborn,phobson/seaborn,arokem/seaborn,lukauskas/seaborn,anntzer/seaborn,arokem/seaborn,sauliusl/seaborn,mwaskom/seaborn,phobson/seaborn,petebachant/seaborn,anntzer/seaborn,lukauskas/seaborn
""" Horizontal boxplot with observations ==================================== _thumb: .7, .37 """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # Initialize the figure f, ax = plt.subplots(figsize=(7, 6)) ax.set_xscale("log") # Load the example planets dataset planet...
""" Horizontal boxplot with observations ==================================== _thumb: .7, .37 """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # Initialize the figure with a logarithmic x axis f, ax = plt.subplots(figsize=(7, 6)) ax.set_xscale("log") # Load the exa...
<commit_before>""" Horizontal boxplot with observations ==================================== _thumb: .7, .37 """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # Initialize the figure f, ax = plt.subplots(figsize=(7, 6)) ax.set_xscale("log") # Load the example planets...
""" Horizontal boxplot with observations ==================================== _thumb: .7, .37 """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # Initialize the figure with a logarithmic x axis f, ax = plt.subplots(figsize=(7, 6)) ax.set_xscale("log") # Load the exa...
""" Horizontal boxplot with observations ==================================== _thumb: .7, .37 """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # Initialize the figure f, ax = plt.subplots(figsize=(7, 6)) ax.set_xscale("log") # Load the example planets dataset planet...
<commit_before>""" Horizontal boxplot with observations ==================================== _thumb: .7, .37 """ import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # Initialize the figure f, ax = plt.subplots(figsize=(7, 6)) ax.set_xscale("log") # Load the example planets...
7bc23b277e53bb1c826dc6af7296b688ba9a97f1
blimp_boards/users/urls.py
blimp_boards/users/urls.py
from django.conf.urls import patterns, url from . import views api_urlpatterns = patterns( # Prefix '', (r'auth/signin/$', views.SigninAPIView.as_view()), (r'auth/signup/$', views.SignupAPIView.as_view()), (r'auth/username/validate/$', views.ValidateUsernameAPIView.as_view()), (r'auth/forgot...
from django.conf.urls import patterns, url from . import views api_urlpatterns = patterns( # Prefix '', (r'auth/signin/$', views.SigninAPIView.as_view()), (r'auth/signup/$', views.SignupAPIView.as_view()), (r'auth/username/validate/$', views.ValidateUsernameAPIView.as_view()), (r'auth/forgot...
Change to signup url to allow steps
Change to signup url to allow steps
Python
agpl-3.0
GetBlimp/boards-backend,jessamynsmith/boards-backend,jessamynsmith/boards-backend
from django.conf.urls import patterns, url from . import views api_urlpatterns = patterns( # Prefix '', (r'auth/signin/$', views.SigninAPIView.as_view()), (r'auth/signup/$', views.SignupAPIView.as_view()), (r'auth/username/validate/$', views.ValidateUsernameAPIView.as_view()), (r'auth/forgot...
from django.conf.urls import patterns, url from . import views api_urlpatterns = patterns( # Prefix '', (r'auth/signin/$', views.SigninAPIView.as_view()), (r'auth/signup/$', views.SignupAPIView.as_view()), (r'auth/username/validate/$', views.ValidateUsernameAPIView.as_view()), (r'auth/forgot...
<commit_before>from django.conf.urls import patterns, url from . import views api_urlpatterns = patterns( # Prefix '', (r'auth/signin/$', views.SigninAPIView.as_view()), (r'auth/signup/$', views.SignupAPIView.as_view()), (r'auth/username/validate/$', views.ValidateUsernameAPIView.as_view()), ...
from django.conf.urls import patterns, url from . import views api_urlpatterns = patterns( # Prefix '', (r'auth/signin/$', views.SigninAPIView.as_view()), (r'auth/signup/$', views.SignupAPIView.as_view()), (r'auth/username/validate/$', views.ValidateUsernameAPIView.as_view()), (r'auth/forgot...
from django.conf.urls import patterns, url from . import views api_urlpatterns = patterns( # Prefix '', (r'auth/signin/$', views.SigninAPIView.as_view()), (r'auth/signup/$', views.SignupAPIView.as_view()), (r'auth/username/validate/$', views.ValidateUsernameAPIView.as_view()), (r'auth/forgot...
<commit_before>from django.conf.urls import patterns, url from . import views api_urlpatterns = patterns( # Prefix '', (r'auth/signin/$', views.SigninAPIView.as_view()), (r'auth/signup/$', views.SignupAPIView.as_view()), (r'auth/username/validate/$', views.ValidateUsernameAPIView.as_view()), ...
582c0e22c2d91b11a667933532b0a802757b26f6
templates/dns_param_template.py
templates/dns_param_template.py
import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # DNS configuration options # [DEFAULT] # dns_config_file=dns_config.xml hostip=$__contrail_host_ip__ # Resolved IP of `hostname` hostname=$__contrail_hostname__ # Retrieved as `hostname` # http_server...
import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # DNS configuration options # [DEFAULT] # dns_config_file=dns_config.xml hostip=$__contrail_host_ip__ # Resolved IP of `hostname` hostname=$__contrail_hostname__ # Retrieved as `hostname` # http_server...
Change log file size to 1MB
Change log file size to 1MB
Python
apache-2.0
Juniper/contrail-provisioning,Juniper/contrail-provisioning
import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # DNS configuration options # [DEFAULT] # dns_config_file=dns_config.xml hostip=$__contrail_host_ip__ # Resolved IP of `hostname` hostname=$__contrail_hostname__ # Retrieved as `hostname` # http_server...
import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # DNS configuration options # [DEFAULT] # dns_config_file=dns_config.xml hostip=$__contrail_host_ip__ # Resolved IP of `hostname` hostname=$__contrail_hostname__ # Retrieved as `hostname` # http_server...
<commit_before>import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # DNS configuration options # [DEFAULT] # dns_config_file=dns_config.xml hostip=$__contrail_host_ip__ # Resolved IP of `hostname` hostname=$__contrail_hostname__ # Retrieved as `hostname...
import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # DNS configuration options # [DEFAULT] # dns_config_file=dns_config.xml hostip=$__contrail_host_ip__ # Resolved IP of `hostname` hostname=$__contrail_hostname__ # Retrieved as `hostname` # http_server...
import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # DNS configuration options # [DEFAULT] # dns_config_file=dns_config.xml hostip=$__contrail_host_ip__ # Resolved IP of `hostname` hostname=$__contrail_hostname__ # Retrieved as `hostname` # http_server...
<commit_before>import string template = string.Template("""# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # # DNS configuration options # [DEFAULT] # dns_config_file=dns_config.xml hostip=$__contrail_host_ip__ # Resolved IP of `hostname` hostname=$__contrail_hostname__ # Retrieved as `hostname...