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
977b2ac4baa8f8beaad860ae115c1f884ee5102b
src/plugins/python/python/python_plugin2.py
src/plugins/python/python/python_plugin2.py
class ElektraPlugin(object): def __init__(self): self.x = 1 pass def open(self, config, errorKey): print("[CLASS-PYTHON-2] open -->") self.x = self.x + 1 return 1 def get(self, returned, parentKey): print("[CLASS-PYTHON-2] get") return 1 def set(self, returned, parentKey): print("[CLASS-PYTHON-2]...
class ElektraPlugin(object): def __init__(self): self.x = 1 def open(self, config, errorKey): print("[CLASS-PYTHON-2] open -->") self.x = self.x + 1 return 1 def get(self, returned, parentKey): print("[CLASS-PYTHON-2] get") return 1 def set(self, returned, parentKey): print("[CLASS-PYTHON-2] set") ...
Remove unnecessary statement from example
Python: Remove unnecessary statement from example
Python
bsd-3-clause
petermax2/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,petermax2/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,petermax2/libelektra,Elektr...
class ElektraPlugin(object): def __init__(self): self.x = 1 pass def open(self, config, errorKey): print("[CLASS-PYTHON-2] open -->") self.x = self.x + 1 return 1 def get(self, returned, parentKey): print("[CLASS-PYTHON-2] get") return 1 def set(self, returned, parentKey): print("[CLASS-PYTHON-2]...
class ElektraPlugin(object): def __init__(self): self.x = 1 def open(self, config, errorKey): print("[CLASS-PYTHON-2] open -->") self.x = self.x + 1 return 1 def get(self, returned, parentKey): print("[CLASS-PYTHON-2] get") return 1 def set(self, returned, parentKey): print("[CLASS-PYTHON-2] set") ...
<commit_before>class ElektraPlugin(object): def __init__(self): self.x = 1 pass def open(self, config, errorKey): print("[CLASS-PYTHON-2] open -->") self.x = self.x + 1 return 1 def get(self, returned, parentKey): print("[CLASS-PYTHON-2] get") return 1 def set(self, returned, parentKey): print("[...
class ElektraPlugin(object): def __init__(self): self.x = 1 def open(self, config, errorKey): print("[CLASS-PYTHON-2] open -->") self.x = self.x + 1 return 1 def get(self, returned, parentKey): print("[CLASS-PYTHON-2] get") return 1 def set(self, returned, parentKey): print("[CLASS-PYTHON-2] set") ...
class ElektraPlugin(object): def __init__(self): self.x = 1 pass def open(self, config, errorKey): print("[CLASS-PYTHON-2] open -->") self.x = self.x + 1 return 1 def get(self, returned, parentKey): print("[CLASS-PYTHON-2] get") return 1 def set(self, returned, parentKey): print("[CLASS-PYTHON-2]...
<commit_before>class ElektraPlugin(object): def __init__(self): self.x = 1 pass def open(self, config, errorKey): print("[CLASS-PYTHON-2] open -->") self.x = self.x + 1 return 1 def get(self, returned, parentKey): print("[CLASS-PYTHON-2] get") return 1 def set(self, returned, parentKey): print("[...
c38e64dc57ec2fd07d64c638dad81ce9b6079425
setup/fusion/scripts/Comp/avalon/publish.py
setup/fusion/scripts/Comp/avalon/publish.py
import os import sys import avalon.api import avalon.fusion import pyblish_qml def _install_fusion(): from pyblish_qml import settings import pyblish_qml.host as host sys.stdout.write("Setting up Pyblish QML in Fusion\n") if settings.ContextLabel == settings.ContextLabelDefault: settings....
import os import sys import avalon.api import avalon.fusion import pyblish_qml def _install_fusion(): from pyblish_qml import settings import pyblish_qml.host as host sys.stdout.write("Setting up Pyblish QML in Fusion\n") if settings.ContextLabel == settings.ContextLabelDefault: settings....
Remove reference to Deadline in window title
Remove reference to Deadline in window title
Python
mit
getavalon/core,MoonShineVFX/core,mindbender-studio/core,mindbender-studio/core,getavalon/core,MoonShineVFX/core
import os import sys import avalon.api import avalon.fusion import pyblish_qml def _install_fusion(): from pyblish_qml import settings import pyblish_qml.host as host sys.stdout.write("Setting up Pyblish QML in Fusion\n") if settings.ContextLabel == settings.ContextLabelDefault: settings....
import os import sys import avalon.api import avalon.fusion import pyblish_qml def _install_fusion(): from pyblish_qml import settings import pyblish_qml.host as host sys.stdout.write("Setting up Pyblish QML in Fusion\n") if settings.ContextLabel == settings.ContextLabelDefault: settings....
<commit_before>import os import sys import avalon.api import avalon.fusion import pyblish_qml def _install_fusion(): from pyblish_qml import settings import pyblish_qml.host as host sys.stdout.write("Setting up Pyblish QML in Fusion\n") if settings.ContextLabel == settings.ContextLabelDefault: ...
import os import sys import avalon.api import avalon.fusion import pyblish_qml def _install_fusion(): from pyblish_qml import settings import pyblish_qml.host as host sys.stdout.write("Setting up Pyblish QML in Fusion\n") if settings.ContextLabel == settings.ContextLabelDefault: settings....
import os import sys import avalon.api import avalon.fusion import pyblish_qml def _install_fusion(): from pyblish_qml import settings import pyblish_qml.host as host sys.stdout.write("Setting up Pyblish QML in Fusion\n") if settings.ContextLabel == settings.ContextLabelDefault: settings....
<commit_before>import os import sys import avalon.api import avalon.fusion import pyblish_qml def _install_fusion(): from pyblish_qml import settings import pyblish_qml.host as host sys.stdout.write("Setting up Pyblish QML in Fusion\n") if settings.ContextLabel == settings.ContextLabelDefault: ...
51c0ae7b647a9ea354928f80acbcabef778bedd5
icekit/page_types/articles/models.py
icekit/page_types/articles/models.py
from django.db import models from icekit.content_collections.abstract_models import \ AbstractCollectedContent, AbstractListingPage, TitleSlugMixin from icekit.publishing.models import PublishableFluentContents class ArticleCategoryPage(AbstractListingPage): def get_public_items(self): unpublished_pk ...
from django.db import models from icekit.content_collections.abstract_models import \ AbstractCollectedContent, AbstractListingPage, TitleSlugMixin from icekit.publishing.models import PublishableFluentContents class ArticleCategoryPage(AbstractListingPage): def get_public_items(self): unpublished_pk ...
Update `unique_together`. Order matters. Fields are scanned by PostgreSQL in order.
Update `unique_together`. Order matters. Fields are scanned by PostgreSQL in order. The first field should be the one most likely to uniquely identify an object.
Python
mit
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
from django.db import models from icekit.content_collections.abstract_models import \ AbstractCollectedContent, AbstractListingPage, TitleSlugMixin from icekit.publishing.models import PublishableFluentContents class ArticleCategoryPage(AbstractListingPage): def get_public_items(self): unpublished_pk ...
from django.db import models from icekit.content_collections.abstract_models import \ AbstractCollectedContent, AbstractListingPage, TitleSlugMixin from icekit.publishing.models import PublishableFluentContents class ArticleCategoryPage(AbstractListingPage): def get_public_items(self): unpublished_pk ...
<commit_before>from django.db import models from icekit.content_collections.abstract_models import \ AbstractCollectedContent, AbstractListingPage, TitleSlugMixin from icekit.publishing.models import PublishableFluentContents class ArticleCategoryPage(AbstractListingPage): def get_public_items(self): ...
from django.db import models from icekit.content_collections.abstract_models import \ AbstractCollectedContent, AbstractListingPage, TitleSlugMixin from icekit.publishing.models import PublishableFluentContents class ArticleCategoryPage(AbstractListingPage): def get_public_items(self): unpublished_pk ...
from django.db import models from icekit.content_collections.abstract_models import \ AbstractCollectedContent, AbstractListingPage, TitleSlugMixin from icekit.publishing.models import PublishableFluentContents class ArticleCategoryPage(AbstractListingPage): def get_public_items(self): unpublished_pk ...
<commit_before>from django.db import models from icekit.content_collections.abstract_models import \ AbstractCollectedContent, AbstractListingPage, TitleSlugMixin from icekit.publishing.models import PublishableFluentContents class ArticleCategoryPage(AbstractListingPage): def get_public_items(self): ...
62233f81247b24a2face81231983ec841ed681ab
src/arduino/arduino_io.py
src/arduino/arduino_io.py
from pygalileo.io.dio import Dio from pygalileo.io.pwmio import Pwmio ''' Defining Digital Pins modes: INPUT, INPUT_PULLUP, and OUTPUT ''' INPUT = 'in' OUTPUT = 'out' ''' Defining Pin Levels: HIGH and LOW ''' HIGH = 1 LOW = 0 _DIOS = {} def pinMode(pin, mode): if pin not in _DIOS: dio = Dio(pin) ...
from pygalileo.io.dio import Dio from pygalileo.io.pwmio import Pwmio ''' Defining Digital Pins modes: INPUT, INPUT_PULLUP, and OUTPUT ''' INPUT = 'in' OUTPUT = 'out' ''' Defining Pin Levels: HIGH and LOW ''' HIGH = 1 LOW = 0 _DIOS = {} def pinMode(pin, mode): if pin not in _DIOS: dio = Dio(pin) ...
Fix analogWrite API naming issue
Fix analogWrite API naming issue
Python
mit
bucketzxm/pyquark,rli9/pygalileo,rli9/pyquark
from pygalileo.io.dio import Dio from pygalileo.io.pwmio import Pwmio ''' Defining Digital Pins modes: INPUT, INPUT_PULLUP, and OUTPUT ''' INPUT = 'in' OUTPUT = 'out' ''' Defining Pin Levels: HIGH and LOW ''' HIGH = 1 LOW = 0 _DIOS = {} def pinMode(pin, mode): if pin not in _DIOS: dio = Dio(pin) ...
from pygalileo.io.dio import Dio from pygalileo.io.pwmio import Pwmio ''' Defining Digital Pins modes: INPUT, INPUT_PULLUP, and OUTPUT ''' INPUT = 'in' OUTPUT = 'out' ''' Defining Pin Levels: HIGH and LOW ''' HIGH = 1 LOW = 0 _DIOS = {} def pinMode(pin, mode): if pin not in _DIOS: dio = Dio(pin) ...
<commit_before>from pygalileo.io.dio import Dio from pygalileo.io.pwmio import Pwmio ''' Defining Digital Pins modes: INPUT, INPUT_PULLUP, and OUTPUT ''' INPUT = 'in' OUTPUT = 'out' ''' Defining Pin Levels: HIGH and LOW ''' HIGH = 1 LOW = 0 _DIOS = {} def pinMode(pin, mode): if pin not in _DIOS: dio = ...
from pygalileo.io.dio import Dio from pygalileo.io.pwmio import Pwmio ''' Defining Digital Pins modes: INPUT, INPUT_PULLUP, and OUTPUT ''' INPUT = 'in' OUTPUT = 'out' ''' Defining Pin Levels: HIGH and LOW ''' HIGH = 1 LOW = 0 _DIOS = {} def pinMode(pin, mode): if pin not in _DIOS: dio = Dio(pin) ...
from pygalileo.io.dio import Dio from pygalileo.io.pwmio import Pwmio ''' Defining Digital Pins modes: INPUT, INPUT_PULLUP, and OUTPUT ''' INPUT = 'in' OUTPUT = 'out' ''' Defining Pin Levels: HIGH and LOW ''' HIGH = 1 LOW = 0 _DIOS = {} def pinMode(pin, mode): if pin not in _DIOS: dio = Dio(pin) ...
<commit_before>from pygalileo.io.dio import Dio from pygalileo.io.pwmio import Pwmio ''' Defining Digital Pins modes: INPUT, INPUT_PULLUP, and OUTPUT ''' INPUT = 'in' OUTPUT = 'out' ''' Defining Pin Levels: HIGH and LOW ''' HIGH = 1 LOW = 0 _DIOS = {} def pinMode(pin, mode): if pin not in _DIOS: dio = ...
e1aa1379eb9ac6c550537c95f6b949a2d456d7c4
demo/demo/models.py
demo/demo/models.py
from django.db import models from django.contrib.auth.models import User ABODE_TYPES = ( ('SH', 'Small house'), ('H', 'House'), ('SB', 'Small building'), ('B', 'Building') ) GENDERS = ( ('M', 'Male'), ('F', 'Female') ) class World(models.Model): god = models.ForeignKey(User, related_na...
from django.db import models ABODE_TYPES = ( ('SH', 'Small house'), ('H', 'House'), ('SB', 'Small building'), ('B', 'Building') ) GENDERS = ( ('M', 'Male'), ('F', 'Female') ) class World(models.Model): name = models.CharField(max_length=30) description = models.TextField() class...
Remove relation to user model in order to keep things simpler
Remove relation to user model in order to keep things simpler
Python
mit
novafloss/populous
from django.db import models from django.contrib.auth.models import User ABODE_TYPES = ( ('SH', 'Small house'), ('H', 'House'), ('SB', 'Small building'), ('B', 'Building') ) GENDERS = ( ('M', 'Male'), ('F', 'Female') ) class World(models.Model): god = models.ForeignKey(User, related_na...
from django.db import models ABODE_TYPES = ( ('SH', 'Small house'), ('H', 'House'), ('SB', 'Small building'), ('B', 'Building') ) GENDERS = ( ('M', 'Male'), ('F', 'Female') ) class World(models.Model): name = models.CharField(max_length=30) description = models.TextField() class...
<commit_before>from django.db import models from django.contrib.auth.models import User ABODE_TYPES = ( ('SH', 'Small house'), ('H', 'House'), ('SB', 'Small building'), ('B', 'Building') ) GENDERS = ( ('M', 'Male'), ('F', 'Female') ) class World(models.Model): god = models.ForeignKey(U...
from django.db import models ABODE_TYPES = ( ('SH', 'Small house'), ('H', 'House'), ('SB', 'Small building'), ('B', 'Building') ) GENDERS = ( ('M', 'Male'), ('F', 'Female') ) class World(models.Model): name = models.CharField(max_length=30) description = models.TextField() class...
from django.db import models from django.contrib.auth.models import User ABODE_TYPES = ( ('SH', 'Small house'), ('H', 'House'), ('SB', 'Small building'), ('B', 'Building') ) GENDERS = ( ('M', 'Male'), ('F', 'Female') ) class World(models.Model): god = models.ForeignKey(User, related_na...
<commit_before>from django.db import models from django.contrib.auth.models import User ABODE_TYPES = ( ('SH', 'Small house'), ('H', 'House'), ('SB', 'Small building'), ('B', 'Building') ) GENDERS = ( ('M', 'Male'), ('F', 'Female') ) class World(models.Model): god = models.ForeignKey(U...
cd9836a3147e13ac511b9c14a3d75e0c7a886eba
viper/interpreter/value.py
viper/interpreter/value.py
from .environment import Environment from viper.parser.ast.nodes import Expr class Value: pass class TupleVal(Value): def __init__(self, *vals: Value): self.vals = list(vals) def __repr__(self) -> str: return f"TupleVal({', '.join(self.vals)})" class NumVal(Value): def __init__(s...
from .environment import Environment from viper.parser.ast.nodes import Expr class Value: pass class TupleVal(Value): def __init__(self, *vals: Value): self.vals = list(vals) def __repr__(self) -> str: return f"TupleVal({', '.join(map(str, self.vals))})" class NumVal(Value): def ...
Fix __repl__ implementation for TupleVal
Fix __repl__ implementation for TupleVal
Python
apache-2.0
pdarragh/Viper
from .environment import Environment from viper.parser.ast.nodes import Expr class Value: pass class TupleVal(Value): def __init__(self, *vals: Value): self.vals = list(vals) def __repr__(self) -> str: return f"TupleVal({', '.join(self.vals)})" class NumVal(Value): def __init__(s...
from .environment import Environment from viper.parser.ast.nodes import Expr class Value: pass class TupleVal(Value): def __init__(self, *vals: Value): self.vals = list(vals) def __repr__(self) -> str: return f"TupleVal({', '.join(map(str, self.vals))})" class NumVal(Value): def ...
<commit_before>from .environment import Environment from viper.parser.ast.nodes import Expr class Value: pass class TupleVal(Value): def __init__(self, *vals: Value): self.vals = list(vals) def __repr__(self) -> str: return f"TupleVal({', '.join(self.vals)})" class NumVal(Value): ...
from .environment import Environment from viper.parser.ast.nodes import Expr class Value: pass class TupleVal(Value): def __init__(self, *vals: Value): self.vals = list(vals) def __repr__(self) -> str: return f"TupleVal({', '.join(map(str, self.vals))})" class NumVal(Value): def ...
from .environment import Environment from viper.parser.ast.nodes import Expr class Value: pass class TupleVal(Value): def __init__(self, *vals: Value): self.vals = list(vals) def __repr__(self) -> str: return f"TupleVal({', '.join(self.vals)})" class NumVal(Value): def __init__(s...
<commit_before>from .environment import Environment from viper.parser.ast.nodes import Expr class Value: pass class TupleVal(Value): def __init__(self, *vals: Value): self.vals = list(vals) def __repr__(self) -> str: return f"TupleVal({', '.join(self.vals)})" class NumVal(Value): ...
00b68bca8f8f1c857aadf5af1cba717fcfa1272e
jsl/registry.py
jsl/registry.py
# coding: utf-8 from __future__ import unicode_literals """ A registry of all documents. """ _documents_registry = {} def get_document(name, module=None): if module: name = '{}.{}'.format(module, name) return _documents_registry[name] def put_document(name, document_cls, module=None): if modul...
# coding: utf-8 from __future__ import unicode_literals """ A registry of all documents. """ _documents_registry = {} def get_document(name, module=None): if module: name = '{0}.{1}'.format(module, name) return _documents_registry[name] def put_document(name, document_cls, module=None): if modu...
Fix incompatibility with Python 2.6
Fix incompatibility with Python 2.6
Python
bsd-3-clause
aromanovich/jsl,aromanovich/jsl
# coding: utf-8 from __future__ import unicode_literals """ A registry of all documents. """ _documents_registry = {} def get_document(name, module=None): if module: name = '{}.{}'.format(module, name) return _documents_registry[name] def put_document(name, document_cls, module=None): if modul...
# coding: utf-8 from __future__ import unicode_literals """ A registry of all documents. """ _documents_registry = {} def get_document(name, module=None): if module: name = '{0}.{1}'.format(module, name) return _documents_registry[name] def put_document(name, document_cls, module=None): if modu...
<commit_before># coding: utf-8 from __future__ import unicode_literals """ A registry of all documents. """ _documents_registry = {} def get_document(name, module=None): if module: name = '{}.{}'.format(module, name) return _documents_registry[name] def put_document(name, document_cls, module=None...
# coding: utf-8 from __future__ import unicode_literals """ A registry of all documents. """ _documents_registry = {} def get_document(name, module=None): if module: name = '{0}.{1}'.format(module, name) return _documents_registry[name] def put_document(name, document_cls, module=None): if modu...
# coding: utf-8 from __future__ import unicode_literals """ A registry of all documents. """ _documents_registry = {} def get_document(name, module=None): if module: name = '{}.{}'.format(module, name) return _documents_registry[name] def put_document(name, document_cls, module=None): if modul...
<commit_before># coding: utf-8 from __future__ import unicode_literals """ A registry of all documents. """ _documents_registry = {} def get_document(name, module=None): if module: name = '{}.{}'.format(module, name) return _documents_registry[name] def put_document(name, document_cls, module=None...
443874df07a3c3ed8d9e075b25e5f93c1de0128b
tests/devices_test/device_packages_test.py
tests/devices_test/device_packages_test.py
# vim:set fileencoding=utf-8 import unittest from blivet.devices import DiskDevice from blivet.devices import LUKSDevice from blivet.devices import MDRaidArrayDevice from blivet.formats import getFormat class DevicePackagesTestCase(unittest.TestCase): """Test device name validation""" def testPackages(self...
# vim:set fileencoding=utf-8 import unittest from blivet.devices import DiskDevice from blivet.devices import LUKSDevice from blivet.devices import MDRaidArrayDevice from blivet.formats import getFormat class DevicePackagesTestCase(unittest.TestCase): """Test device name validation""" def testPackages(self...
Use len of set to check for duplicates in list of packages.
Use len of set to check for duplicates in list of packages. Resolves: #154. Checking for equality of the two lists was a mistake, since the order of the list generated from the set is undefined.
Python
lgpl-2.1
rhinstaller/blivet,jkonecny12/blivet,AdamWill/blivet,vojtechtrefny/blivet,jkonecny12/blivet,rvykydal/blivet,vpodzime/blivet,rhinstaller/blivet,AdamWill/blivet,rvykydal/blivet,vojtechtrefny/blivet,vpodzime/blivet
# vim:set fileencoding=utf-8 import unittest from blivet.devices import DiskDevice from blivet.devices import LUKSDevice from blivet.devices import MDRaidArrayDevice from blivet.formats import getFormat class DevicePackagesTestCase(unittest.TestCase): """Test device name validation""" def testPackages(self...
# vim:set fileencoding=utf-8 import unittest from blivet.devices import DiskDevice from blivet.devices import LUKSDevice from blivet.devices import MDRaidArrayDevice from blivet.formats import getFormat class DevicePackagesTestCase(unittest.TestCase): """Test device name validation""" def testPackages(self...
<commit_before># vim:set fileencoding=utf-8 import unittest from blivet.devices import DiskDevice from blivet.devices import LUKSDevice from blivet.devices import MDRaidArrayDevice from blivet.formats import getFormat class DevicePackagesTestCase(unittest.TestCase): """Test device name validation""" def te...
# vim:set fileencoding=utf-8 import unittest from blivet.devices import DiskDevice from blivet.devices import LUKSDevice from blivet.devices import MDRaidArrayDevice from blivet.formats import getFormat class DevicePackagesTestCase(unittest.TestCase): """Test device name validation""" def testPackages(self...
# vim:set fileencoding=utf-8 import unittest from blivet.devices import DiskDevice from blivet.devices import LUKSDevice from blivet.devices import MDRaidArrayDevice from blivet.formats import getFormat class DevicePackagesTestCase(unittest.TestCase): """Test device name validation""" def testPackages(self...
<commit_before># vim:set fileencoding=utf-8 import unittest from blivet.devices import DiskDevice from blivet.devices import LUKSDevice from blivet.devices import MDRaidArrayDevice from blivet.formats import getFormat class DevicePackagesTestCase(unittest.TestCase): """Test device name validation""" def te...
13cad8b6fb7c484a492333e86a6e774ce4742a40
src/webassets/filter/uglifyjs.py
src/webassets/filter/uglifyjs.py
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
import subprocess from webassets.exceptions import FilterError from webassets.filter import Filter __all__ = ('UglifyJSFilter',) class UglifyJSFilter(Filter): """ Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assu...
Make UglifyJSFilter docstring more consistent with other filters
Make UglifyJSFilter docstring more consistent with other filters
Python
bsd-2-clause
john2x/webassets,scorphus/webassets,aconrad/webassets,0x1997/webassets,heynemann/webassets,0x1997/webassets,glorpen/webassets,JDeuce/webassets,aconrad/webassets,john2x/webassets,JDeuce/webassets,glorpen/webassets,florianjacob/webassets,heynemann/webassets,aconrad/webassets,wijerasa/webassets,florianjacob/webassets,glor...
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
import subprocess from webassets.exceptions import FilterError from webassets.filter import Filter __all__ = ('UglifyJSFilter',) class UglifyJSFilter(Filter): """ Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assu...
<commit_before>"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by se...
import subprocess from webassets.exceptions import FilterError from webassets.filter import Filter __all__ = ('UglifyJSFilter',) class UglifyJSFilter(Filter): """ Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assu...
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
<commit_before>"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by se...
9e39f0ccba89e12eb5ee6269555dae9c854d44f2
dbaas/dbaas_services/analyzing/integration/analyze.py
dbaas/dbaas_services/analyzing/integration/analyze.py
# -*- coding: utf-8 -*- import requests from dbaas_services.analyzing.exceptions import ServiceNotAvailable class AnalyzeService(object): def __init__(self, endpoint, healh_check_route, healh_check_string): self.endpoint = endpoint self.healh_check_route = healh_check_route self.healh_chec...
# -*- coding: utf-8 -*- import requests from dbaas_services.analyzing.exceptions import ServiceNotAvailable class AnalyzeService(object): def __init__(self, endpoint, healh_check_route, healh_check_string): self.endpoint = endpoint self.healh_check_route = healh_check_route self.healh_chec...
Change data param to json
Change data param to json
Python
bsd-3-clause
globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service
# -*- coding: utf-8 -*- import requests from dbaas_services.analyzing.exceptions import ServiceNotAvailable class AnalyzeService(object): def __init__(self, endpoint, healh_check_route, healh_check_string): self.endpoint = endpoint self.healh_check_route = healh_check_route self.healh_chec...
# -*- coding: utf-8 -*- import requests from dbaas_services.analyzing.exceptions import ServiceNotAvailable class AnalyzeService(object): def __init__(self, endpoint, healh_check_route, healh_check_string): self.endpoint = endpoint self.healh_check_route = healh_check_route self.healh_chec...
<commit_before># -*- coding: utf-8 -*- import requests from dbaas_services.analyzing.exceptions import ServiceNotAvailable class AnalyzeService(object): def __init__(self, endpoint, healh_check_route, healh_check_string): self.endpoint = endpoint self.healh_check_route = healh_check_route ...
# -*- coding: utf-8 -*- import requests from dbaas_services.analyzing.exceptions import ServiceNotAvailable class AnalyzeService(object): def __init__(self, endpoint, healh_check_route, healh_check_string): self.endpoint = endpoint self.healh_check_route = healh_check_route self.healh_chec...
# -*- coding: utf-8 -*- import requests from dbaas_services.analyzing.exceptions import ServiceNotAvailable class AnalyzeService(object): def __init__(self, endpoint, healh_check_route, healh_check_string): self.endpoint = endpoint self.healh_check_route = healh_check_route self.healh_chec...
<commit_before># -*- coding: utf-8 -*- import requests from dbaas_services.analyzing.exceptions import ServiceNotAvailable class AnalyzeService(object): def __init__(self, endpoint, healh_check_route, healh_check_string): self.endpoint = endpoint self.healh_check_route = healh_check_route ...
5d0fb37bdb42833b0468c094a3e310015c68be3f
debugtools/__init__.py
debugtools/__init__.py
VERSION = (1, 1, 0)
VERSION = (1, 1, 0) # Make sure the ``{% print %}`` is always available, even without a {% load debug_tags %} call. # **NOTE** this uses the undocumented, unofficial add_to_builtins() call. It's not promoted # by Django developers because it's better to be explicit with a {% load .. %} in the templates. # # This funct...
Make sure {% print %} is always available for you in templates
Make sure {% print %} is always available for you in templates
Python
apache-2.0
edoburu/django-debugtools,edoburu/django-debugtools,edoburu/django-debugtools
VERSION = (1, 1, 0) Make sure {% print %} is always available for you in templates
VERSION = (1, 1, 0) # Make sure the ``{% print %}`` is always available, even without a {% load debug_tags %} call. # **NOTE** this uses the undocumented, unofficial add_to_builtins() call. It's not promoted # by Django developers because it's better to be explicit with a {% load .. %} in the templates. # # This funct...
<commit_before>VERSION = (1, 1, 0) <commit_msg>Make sure {% print %} is always available for you in templates<commit_after>
VERSION = (1, 1, 0) # Make sure the ``{% print %}`` is always available, even without a {% load debug_tags %} call. # **NOTE** this uses the undocumented, unofficial add_to_builtins() call. It's not promoted # by Django developers because it's better to be explicit with a {% load .. %} in the templates. # # This funct...
VERSION = (1, 1, 0) Make sure {% print %} is always available for you in templatesVERSION = (1, 1, 0) # Make sure the ``{% print %}`` is always available, even without a {% load debug_tags %} call. # **NOTE** this uses the undocumented, unofficial add_to_builtins() call. It's not promoted # by Django developers becaus...
<commit_before>VERSION = (1, 1, 0) <commit_msg>Make sure {% print %} is always available for you in templates<commit_after>VERSION = (1, 1, 0) # Make sure the ``{% print %}`` is always available, even without a {% load debug_tags %} call. # **NOTE** this uses the undocumented, unofficial add_to_builtins() call. It's n...
2ef671ca19f237ab0bf3fcc632048b34a2c5d3dc
tutorials/models.py
tutorials/models.py
from django.db import models from markdownx.models import MarkdownxField # Create your models here. class Tutorial(models.Model): # ToDo: Fields that are out-commented are missing according to the mockup -> datamodel ?? # Category = models.TextField() title = models.TextField() html = models.TextFie...
from django.db import models from django.urls import reverse from markdownx.models import MarkdownxField # add options if needed CATEGORY_OPTIONS = [('io', 'I/O'), ('intro', 'Introduction')] LEVEL_OPTIONS = [(1, '1'), (2, '2'), (3, '3')] # Create your models here. class Tutorial(models.Model): # ToDo: Fields th...
Add options for choices fields, Add new fields to Tutorial model
Add options for choices fields, Add new fields to Tutorial model
Python
agpl-3.0
openego/oeplatform,openego/oeplatform,openego/oeplatform,openego/oeplatform
from django.db import models from markdownx.models import MarkdownxField # Create your models here. class Tutorial(models.Model): # ToDo: Fields that are out-commented are missing according to the mockup -> datamodel ?? # Category = models.TextField() title = models.TextField() html = models.TextFie...
from django.db import models from django.urls import reverse from markdownx.models import MarkdownxField # add options if needed CATEGORY_OPTIONS = [('io', 'I/O'), ('intro', 'Introduction')] LEVEL_OPTIONS = [(1, '1'), (2, '2'), (3, '3')] # Create your models here. class Tutorial(models.Model): # ToDo: Fields th...
<commit_before>from django.db import models from markdownx.models import MarkdownxField # Create your models here. class Tutorial(models.Model): # ToDo: Fields that are out-commented are missing according to the mockup -> datamodel ?? # Category = models.TextField() title = models.TextField() html =...
from django.db import models from django.urls import reverse from markdownx.models import MarkdownxField # add options if needed CATEGORY_OPTIONS = [('io', 'I/O'), ('intro', 'Introduction')] LEVEL_OPTIONS = [(1, '1'), (2, '2'), (3, '3')] # Create your models here. class Tutorial(models.Model): # ToDo: Fields th...
from django.db import models from markdownx.models import MarkdownxField # Create your models here. class Tutorial(models.Model): # ToDo: Fields that are out-commented are missing according to the mockup -> datamodel ?? # Category = models.TextField() title = models.TextField() html = models.TextFie...
<commit_before>from django.db import models from markdownx.models import MarkdownxField # Create your models here. class Tutorial(models.Model): # ToDo: Fields that are out-commented are missing according to the mockup -> datamodel ?? # Category = models.TextField() title = models.TextField() html =...
141a75f910d239aa7a593f9edda53fd49a02f8c4
digitalmanifesto/views.py
digitalmanifesto/views.py
from __future__ import absolute_import, unicode_literals from django.http import HttpResponse from django.views.generic import TemplateView from manifestos.models import Manifesto, Collection LETSENCRYPT_SECRET = 'RoqK1ZHN6384upsmMKbrJuxqaGNKcmJc5JApOy8qi8Y' def acme_challenge(request, key): resp = '.'.join(k...
from __future__ import absolute_import, unicode_literals from django.http import HttpResponse from django.views.generic import TemplateView from manifestos.models import Manifesto, Collection LETSENCRYPT_SECRET = 'RoqK1ZHN6384upsmMKbrJuxqaGNKcmJc5JApOy8qi8Y' def acme_challenge(request, key): resp = '.'.join((...
Fix typo in acme_challenge view (str.join() takes a single iterable, not *args)
Fix typo in acme_challenge view (str.join() takes a single iterable, not *args)
Python
mit
gwhigs/digital-manifesto,gwhigs/digital-manifesto,gwhigs/digital-manifesto,gwhigs/digital-manifesto
from __future__ import absolute_import, unicode_literals from django.http import HttpResponse from django.views.generic import TemplateView from manifestos.models import Manifesto, Collection LETSENCRYPT_SECRET = 'RoqK1ZHN6384upsmMKbrJuxqaGNKcmJc5JApOy8qi8Y' def acme_challenge(request, key): resp = '.'.join(k...
from __future__ import absolute_import, unicode_literals from django.http import HttpResponse from django.views.generic import TemplateView from manifestos.models import Manifesto, Collection LETSENCRYPT_SECRET = 'RoqK1ZHN6384upsmMKbrJuxqaGNKcmJc5JApOy8qi8Y' def acme_challenge(request, key): resp = '.'.join((...
<commit_before>from __future__ import absolute_import, unicode_literals from django.http import HttpResponse from django.views.generic import TemplateView from manifestos.models import Manifesto, Collection LETSENCRYPT_SECRET = 'RoqK1ZHN6384upsmMKbrJuxqaGNKcmJc5JApOy8qi8Y' def acme_challenge(request, key): re...
from __future__ import absolute_import, unicode_literals from django.http import HttpResponse from django.views.generic import TemplateView from manifestos.models import Manifesto, Collection LETSENCRYPT_SECRET = 'RoqK1ZHN6384upsmMKbrJuxqaGNKcmJc5JApOy8qi8Y' def acme_challenge(request, key): resp = '.'.join((...
from __future__ import absolute_import, unicode_literals from django.http import HttpResponse from django.views.generic import TemplateView from manifestos.models import Manifesto, Collection LETSENCRYPT_SECRET = 'RoqK1ZHN6384upsmMKbrJuxqaGNKcmJc5JApOy8qi8Y' def acme_challenge(request, key): resp = '.'.join(k...
<commit_before>from __future__ import absolute_import, unicode_literals from django.http import HttpResponse from django.views.generic import TemplateView from manifestos.models import Manifesto, Collection LETSENCRYPT_SECRET = 'RoqK1ZHN6384upsmMKbrJuxqaGNKcmJc5JApOy8qi8Y' def acme_challenge(request, key): re...
0524817b152b4e3211d5d8101c661a54578e5888
dmoj/checkers/standard.py
dmoj/checkers/standard.py
def check(process_output, judge_output, **kwargs): from six.moves import zip process_lines = list(filter(None, process_output.split(b'\n'))) judge_lines = list(filter(None, judge_output.split(b'\n'))) if len(process_lines) != len(judge_lines): return False for process_line, judge_line in zip...
from ._checker import standard def check(process_output, judge_output, _checker=standard, **kwargs): return _checker(judge_output, process_output) del standard
Remove untested checker code path
Remove untested checker code path
Python
agpl-3.0
DMOJ/judge,DMOJ/judge,DMOJ/judge
def check(process_output, judge_output, **kwargs): from six.moves import zip process_lines = list(filter(None, process_output.split(b'\n'))) judge_lines = list(filter(None, judge_output.split(b'\n'))) if len(process_lines) != len(judge_lines): return False for process_line, judge_line in zip...
from ._checker import standard def check(process_output, judge_output, _checker=standard, **kwargs): return _checker(judge_output, process_output) del standard
<commit_before>def check(process_output, judge_output, **kwargs): from six.moves import zip process_lines = list(filter(None, process_output.split(b'\n'))) judge_lines = list(filter(None, judge_output.split(b'\n'))) if len(process_lines) != len(judge_lines): return False for process_line, ju...
from ._checker import standard def check(process_output, judge_output, _checker=standard, **kwargs): return _checker(judge_output, process_output) del standard
def check(process_output, judge_output, **kwargs): from six.moves import zip process_lines = list(filter(None, process_output.split(b'\n'))) judge_lines = list(filter(None, judge_output.split(b'\n'))) if len(process_lines) != len(judge_lines): return False for process_line, judge_line in zip...
<commit_before>def check(process_output, judge_output, **kwargs): from six.moves import zip process_lines = list(filter(None, process_output.split(b'\n'))) judge_lines = list(filter(None, judge_output.split(b'\n'))) if len(process_lines) != len(judge_lines): return False for process_line, ju...
e98a098ac6a21b0192771fd3a8d5c48468cd4340
pymatgen/phasediagram/__init__.py
pymatgen/phasediagram/__init__.py
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The package is designe...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The package is designe...
Add quick aliases to PD.
Add quick aliases to PD. Former-commit-id: 6a0680d54cc1d391a351f4d5e8ff72f696d303db [formerly 5fe981c7ed92d45548d3f7ab6abb38d149d0ada2] Former-commit-id: f76e0dc538c182b4978eb54b51cbebafa257ce04
Python
mit
aykol/pymatgen,tschaume/pymatgen,Bismarrck/pymatgen,setten/pymatgen,fraricci/pymatgen,Bismarrck/pymatgen,gVallverdu/pymatgen,richardtran415/pymatgen,johnson1228/pymatgen,davidwaroquiers/pymatgen,gpetretto/pymatgen,tallakahath/pymatgen,gpetretto/pymatgen,gVallverdu/pymatgen,matk86/pymatgen,davidwaroquiers/pymatgen,sette...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The package is designe...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The package is designe...
<commit_before># coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The pac...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The package is designe...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The package is designe...
<commit_before># coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The pac...
4f7e991960c24fc9548f8f3d6d5f8967c2ece84a
numpy/array_api/_typing.py
numpy/array_api/_typing.py
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = [ "Array", "Device", "Dtype", ...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = [ "Array", "Device", "Dtype", ...
Add a missing subscription slot to `NestedSequence`
MAINT: Add a missing subscription slot to `NestedSequence`
Python
bsd-3-clause
numpy/numpy,anntzer/numpy,numpy/numpy,pdebuyl/numpy,seberg/numpy,rgommers/numpy,anntzer/numpy,charris/numpy,charris/numpy,jakirkham/numpy,charris/numpy,jakirkham/numpy,pdebuyl/numpy,anntzer/numpy,mhvk/numpy,endolith/numpy,mattip/numpy,mattip/numpy,rgommers/numpy,numpy/numpy,mhvk/numpy,mhvk/numpy,rgommers/numpy,charris/...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = [ "Array", "Device", "Dtype", ...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = [ "Array", "Device", "Dtype", ...
<commit_before>""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = [ "Array", "Device",...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = [ "Array", "Device", "Dtype", ...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = [ "Array", "Device", "Dtype", ...
<commit_before>""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = [ "Array", "Device",...
5996401b8d7313437abfc9a52b503e8357927641
openupgradelib/__init__.py
openupgradelib/__init__.py
# -*- coding: utf-8 -*- __author__ = 'Odoo Community Association (OCA)' __email__ = '[email protected]' __version__ = '1.0.0' __doc__ = """A library with support functions to be called from Odoo \ migration scripts.""" __license__ = "AGPL-3"
# -*- coding: utf-8 -*- __author__ = 'Odoo Community Association (OCA)' __email__ = '[email protected]' __version__ = '1.1.0' __doc__ = """A library with support functions to be called from Odoo \ migration scripts.""" __license__ = "AGPL-3"
Bump version for next release
Bump version for next release
Python
agpl-3.0
kurkop/openupgradelib,hbrunn/openupgradelib,StefanRijnhart/openupgradelib,bwrsandman/openupgradelib,sebalix/openupgradelib,OCA/openupgradelib,blaggacao/openupgradelib
# -*- coding: utf-8 -*- __author__ = 'Odoo Community Association (OCA)' __email__ = '[email protected]' __version__ = '1.0.0' __doc__ = """A library with support functions to be called from Odoo \ migration scripts.""" __license__ = "AGPL-3" Bump version for next release
# -*- coding: utf-8 -*- __author__ = 'Odoo Community Association (OCA)' __email__ = '[email protected]' __version__ = '1.1.0' __doc__ = """A library with support functions to be called from Odoo \ migration scripts.""" __license__ = "AGPL-3"
<commit_before># -*- coding: utf-8 -*- __author__ = 'Odoo Community Association (OCA)' __email__ = '[email protected]' __version__ = '1.0.0' __doc__ = """A library with support functions to be called from Odoo \ migration scripts.""" __license__ = "AGPL-3" <commit_msg>Bump version for next release<commit_afte...
# -*- coding: utf-8 -*- __author__ = 'Odoo Community Association (OCA)' __email__ = '[email protected]' __version__ = '1.1.0' __doc__ = """A library with support functions to be called from Odoo \ migration scripts.""" __license__ = "AGPL-3"
# -*- coding: utf-8 -*- __author__ = 'Odoo Community Association (OCA)' __email__ = '[email protected]' __version__ = '1.0.0' __doc__ = """A library with support functions to be called from Odoo \ migration scripts.""" __license__ = "AGPL-3" Bump version for next release# -*- coding: utf-8 -*- __author__ = '...
<commit_before># -*- coding: utf-8 -*- __author__ = 'Odoo Community Association (OCA)' __email__ = '[email protected]' __version__ = '1.0.0' __doc__ = """A library with support functions to be called from Odoo \ migration scripts.""" __license__ = "AGPL-3" <commit_msg>Bump version for next release<commit_afte...
226a4c1af180f0bf1924a84c76d1d2b300557e9b
instana/instrumentation/urllib3.py
instana/instrumentation/urllib3.py
from __future__ import absolute_import import opentracing.ext.tags as ext import instana import opentracing import wrapt @wrapt.patch_function_wrapper('urllib3', 'PoolManager.urlopen') def urlopen_with_instana(wrapped, instance, args, kwargs): try: span = instana.internal_tracer.start_span("urllib3") ...
from __future__ import absolute_import import opentracing.ext.tags as ext import instana import opentracing import wrapt @wrapt.patch_function_wrapper('urllib3', 'PoolManager.urlopen') def urlopen_with_instana(wrapped, instance, args, kwargs): try: span = instana.internal_tracer.start_span("urllib3") ...
Make sure to finish span when there is an exception
Make sure to finish span when there is an exception
Python
mit
instana/python-sensor,instana/python-sensor
from __future__ import absolute_import import opentracing.ext.tags as ext import instana import opentracing import wrapt @wrapt.patch_function_wrapper('urllib3', 'PoolManager.urlopen') def urlopen_with_instana(wrapped, instance, args, kwargs): try: span = instana.internal_tracer.start_span("urllib3") ...
from __future__ import absolute_import import opentracing.ext.tags as ext import instana import opentracing import wrapt @wrapt.patch_function_wrapper('urllib3', 'PoolManager.urlopen') def urlopen_with_instana(wrapped, instance, args, kwargs): try: span = instana.internal_tracer.start_span("urllib3") ...
<commit_before>from __future__ import absolute_import import opentracing.ext.tags as ext import instana import opentracing import wrapt @wrapt.patch_function_wrapper('urllib3', 'PoolManager.urlopen') def urlopen_with_instana(wrapped, instance, args, kwargs): try: span = instana.internal_tracer.start_span(...
from __future__ import absolute_import import opentracing.ext.tags as ext import instana import opentracing import wrapt @wrapt.patch_function_wrapper('urllib3', 'PoolManager.urlopen') def urlopen_with_instana(wrapped, instance, args, kwargs): try: span = instana.internal_tracer.start_span("urllib3") ...
from __future__ import absolute_import import opentracing.ext.tags as ext import instana import opentracing import wrapt @wrapt.patch_function_wrapper('urllib3', 'PoolManager.urlopen') def urlopen_with_instana(wrapped, instance, args, kwargs): try: span = instana.internal_tracer.start_span("urllib3") ...
<commit_before>from __future__ import absolute_import import opentracing.ext.tags as ext import instana import opentracing import wrapt @wrapt.patch_function_wrapper('urllib3', 'PoolManager.urlopen') def urlopen_with_instana(wrapped, instance, args, kwargs): try: span = instana.internal_tracer.start_span(...
9b8fb2d745af7bb8c69e504a97612727b7e9a2d8
storlets/gateway/gateways/base.py
storlets/gateway/gateways/base.py
# Copyright IBM Corp. 2015, 2015 All Rights Reserved # Copyright (c) 2010-2016 OpenStack Foundation # # 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/LICEN...
# Copyright IBM Corp. 2015, 2015 All Rights Reserved # Copyright (c) 2010-2016 OpenStack Foundation # # 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/LICEN...
Use consistent arguments for invocation_flow method
Use consistent arguments for invocation_flow method Trivial-Fix Change-Id: I6481147a722b2f366300f2ac7952ebd94f1a2ada
Python
apache-2.0
openstack/storlets,openstack/storlets,openstack/storlets,openstack/storlets
# Copyright IBM Corp. 2015, 2015 All Rights Reserved # Copyright (c) 2010-2016 OpenStack Foundation # # 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/LICEN...
# Copyright IBM Corp. 2015, 2015 All Rights Reserved # Copyright (c) 2010-2016 OpenStack Foundation # # 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/LICEN...
<commit_before># Copyright IBM Corp. 2015, 2015 All Rights Reserved # Copyright (c) 2010-2016 OpenStack Foundation # # 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...
# Copyright IBM Corp. 2015, 2015 All Rights Reserved # Copyright (c) 2010-2016 OpenStack Foundation # # 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/LICEN...
# Copyright IBM Corp. 2015, 2015 All Rights Reserved # Copyright (c) 2010-2016 OpenStack Foundation # # 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/LICEN...
<commit_before># Copyright IBM Corp. 2015, 2015 All Rights Reserved # Copyright (c) 2010-2016 OpenStack Foundation # # 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...
97d2b5b55a6cec3644a323662e52b9b256c18f33
mdx_linkify/mdx_linkify.py
mdx_linkify/mdx_linkify.py
from bleach.linkifier import Linker from markdown.postprocessors import Postprocessor from markdown.extensions import Extension class LinkifyExtension(Extension): def __init__(self, **kwargs): self.config = { 'linker_options': [{}, 'Options for bleach.linkifier.Linker'], } su...
from bleach.linkifier import Linker from markdown.postprocessors import Postprocessor from markdown.extensions import Extension class LinkifyExtension(Extension): def __init__(self, **kwargs): self.config = { 'linker_options': [{}, 'Options for bleach.linkifier.Linker'], } su...
Fix IndexError: pop from empty list
fix: Fix IndexError: pop from empty list Create Linker instance for each run, to bypass html5lib bugs Refs #15
Python
mit
daGrevis/mdx_linkify
from bleach.linkifier import Linker from markdown.postprocessors import Postprocessor from markdown.extensions import Extension class LinkifyExtension(Extension): def __init__(self, **kwargs): self.config = { 'linker_options': [{}, 'Options for bleach.linkifier.Linker'], } su...
from bleach.linkifier import Linker from markdown.postprocessors import Postprocessor from markdown.extensions import Extension class LinkifyExtension(Extension): def __init__(self, **kwargs): self.config = { 'linker_options': [{}, 'Options for bleach.linkifier.Linker'], } su...
<commit_before>from bleach.linkifier import Linker from markdown.postprocessors import Postprocessor from markdown.extensions import Extension class LinkifyExtension(Extension): def __init__(self, **kwargs): self.config = { 'linker_options': [{}, 'Options for bleach.linkifier.Linker'], ...
from bleach.linkifier import Linker from markdown.postprocessors import Postprocessor from markdown.extensions import Extension class LinkifyExtension(Extension): def __init__(self, **kwargs): self.config = { 'linker_options': [{}, 'Options for bleach.linkifier.Linker'], } su...
from bleach.linkifier import Linker from markdown.postprocessors import Postprocessor from markdown.extensions import Extension class LinkifyExtension(Extension): def __init__(self, **kwargs): self.config = { 'linker_options': [{}, 'Options for bleach.linkifier.Linker'], } su...
<commit_before>from bleach.linkifier import Linker from markdown.postprocessors import Postprocessor from markdown.extensions import Extension class LinkifyExtension(Extension): def __init__(self, **kwargs): self.config = { 'linker_options': [{}, 'Options for bleach.linkifier.Linker'], ...
04ac8f763277014a95c9b5559cab6abc11ad9390
test/integration/test_qt.py
test/integration/test_qt.py
from . import * # MSBuild backend doesn't support generated_source yet. @skip_if_backend('msbuild') class TestQt(IntegrationTest): def run_executable(self, exe): if env.host_platform.genus == 'linux': output = self.assertPopen([exe], extra_env={'DISPLAY': ''}, ...
from . import * # MSBuild backend doesn't support generated_source yet. @skip_if_backend('msbuild') class TestQt(IntegrationTest): def run_executable(self, exe): if env.host_platform.genus == 'linux': output = self.assertPopen([exe], extra_env={'DISPLAY': ''}, ...
Fix integration tests on Mint 20
Fix integration tests on Mint 20
Python
bsd-3-clause
jimporter/bfg9000,jimporter/bfg9000,jimporter/bfg9000,jimporter/bfg9000
from . import * # MSBuild backend doesn't support generated_source yet. @skip_if_backend('msbuild') class TestQt(IntegrationTest): def run_executable(self, exe): if env.host_platform.genus == 'linux': output = self.assertPopen([exe], extra_env={'DISPLAY': ''}, ...
from . import * # MSBuild backend doesn't support generated_source yet. @skip_if_backend('msbuild') class TestQt(IntegrationTest): def run_executable(self, exe): if env.host_platform.genus == 'linux': output = self.assertPopen([exe], extra_env={'DISPLAY': ''}, ...
<commit_before>from . import * # MSBuild backend doesn't support generated_source yet. @skip_if_backend('msbuild') class TestQt(IntegrationTest): def run_executable(self, exe): if env.host_platform.genus == 'linux': output = self.assertPopen([exe], extra_env={'DISPLAY': ''}, ...
from . import * # MSBuild backend doesn't support generated_source yet. @skip_if_backend('msbuild') class TestQt(IntegrationTest): def run_executable(self, exe): if env.host_platform.genus == 'linux': output = self.assertPopen([exe], extra_env={'DISPLAY': ''}, ...
from . import * # MSBuild backend doesn't support generated_source yet. @skip_if_backend('msbuild') class TestQt(IntegrationTest): def run_executable(self, exe): if env.host_platform.genus == 'linux': output = self.assertPopen([exe], extra_env={'DISPLAY': ''}, ...
<commit_before>from . import * # MSBuild backend doesn't support generated_source yet. @skip_if_backend('msbuild') class TestQt(IntegrationTest): def run_executable(self, exe): if env.host_platform.genus == 'linux': output = self.assertPopen([exe], extra_env={'DISPLAY': ''}, ...
b5676fde38b1d7c40bc5873a65e864c3bd3214d9
heufybot/utils/logutils.py
heufybot/utils/logutils.py
from twisted.python import log, util import logging class LevelLoggingObserver(log.FileLogObserver): def __init__(self, logfile, logLevel): log.FileLogObserver.__init__(self, logfile) self.logLevel = logLevel def __call__(self, eventDict): self.emit(eventDict) def emit(self, even...
from twisted.python import log, util import logging, sys, traceback def logExceptionTrace(error = None): if error: log.msg("A Python excecution error occurred:", error, level=logging.ERROR) log.msg(traceback.format_exc(sys.exc_info()[2]), level=logging.ERROR) class LevelLoggingObserver(log.FileLogObs...
Add a helper function for exception logging
Add a helper function for exception logging
Python
mit
Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot
from twisted.python import log, util import logging class LevelLoggingObserver(log.FileLogObserver): def __init__(self, logfile, logLevel): log.FileLogObserver.__init__(self, logfile) self.logLevel = logLevel def __call__(self, eventDict): self.emit(eventDict) def emit(self, even...
from twisted.python import log, util import logging, sys, traceback def logExceptionTrace(error = None): if error: log.msg("A Python excecution error occurred:", error, level=logging.ERROR) log.msg(traceback.format_exc(sys.exc_info()[2]), level=logging.ERROR) class LevelLoggingObserver(log.FileLogObs...
<commit_before>from twisted.python import log, util import logging class LevelLoggingObserver(log.FileLogObserver): def __init__(self, logfile, logLevel): log.FileLogObserver.__init__(self, logfile) self.logLevel = logLevel def __call__(self, eventDict): self.emit(eventDict) def ...
from twisted.python import log, util import logging, sys, traceback def logExceptionTrace(error = None): if error: log.msg("A Python excecution error occurred:", error, level=logging.ERROR) log.msg(traceback.format_exc(sys.exc_info()[2]), level=logging.ERROR) class LevelLoggingObserver(log.FileLogObs...
from twisted.python import log, util import logging class LevelLoggingObserver(log.FileLogObserver): def __init__(self, logfile, logLevel): log.FileLogObserver.__init__(self, logfile) self.logLevel = logLevel def __call__(self, eventDict): self.emit(eventDict) def emit(self, even...
<commit_before>from twisted.python import log, util import logging class LevelLoggingObserver(log.FileLogObserver): def __init__(self, logfile, logLevel): log.FileLogObserver.__init__(self, logfile) self.logLevel = logLevel def __call__(self, eventDict): self.emit(eventDict) def ...
7e2e1c45ea9f83f11dc5d3b828a36e13825bcd8b
tests/credentials.py
tests/credentials.py
import os import unittest import tweedr class TestCredentials(unittest.TestCase): def test_mysql(self): if 'TRAVIS' in os.environ: print 'For obvious reasons, Travis CI cannot run this test.' else: names = ['MYSQL_PASS', 'MYSQL_HOST'] values = [os.environ[name]...
import os import unittest import tweedr class TestCredentials(unittest.TestCase): def test_mysql(self): if os.environ.get('TRAVIS'): print 'For obvious reasons, Travis CI cannot run this test.' else: names = ['MYSQL_PASS', 'MYSQL_HOST'] values = [os.environ[nam...
Test for Travis CI variable a little less recklessly.
Test for Travis CI variable a little less recklessly.
Python
mit
dssg/tweedr,dssg/tweedr,dssg/tweedr,dssg/tweedr
import os import unittest import tweedr class TestCredentials(unittest.TestCase): def test_mysql(self): if 'TRAVIS' in os.environ: print 'For obvious reasons, Travis CI cannot run this test.' else: names = ['MYSQL_PASS', 'MYSQL_HOST'] values = [os.environ[name]...
import os import unittest import tweedr class TestCredentials(unittest.TestCase): def test_mysql(self): if os.environ.get('TRAVIS'): print 'For obvious reasons, Travis CI cannot run this test.' else: names = ['MYSQL_PASS', 'MYSQL_HOST'] values = [os.environ[nam...
<commit_before>import os import unittest import tweedr class TestCredentials(unittest.TestCase): def test_mysql(self): if 'TRAVIS' in os.environ: print 'For obvious reasons, Travis CI cannot run this test.' else: names = ['MYSQL_PASS', 'MYSQL_HOST'] values = [o...
import os import unittest import tweedr class TestCredentials(unittest.TestCase): def test_mysql(self): if os.environ.get('TRAVIS'): print 'For obvious reasons, Travis CI cannot run this test.' else: names = ['MYSQL_PASS', 'MYSQL_HOST'] values = [os.environ[nam...
import os import unittest import tweedr class TestCredentials(unittest.TestCase): def test_mysql(self): if 'TRAVIS' in os.environ: print 'For obvious reasons, Travis CI cannot run this test.' else: names = ['MYSQL_PASS', 'MYSQL_HOST'] values = [os.environ[name]...
<commit_before>import os import unittest import tweedr class TestCredentials(unittest.TestCase): def test_mysql(self): if 'TRAVIS' in os.environ: print 'For obvious reasons, Travis CI cannot run this test.' else: names = ['MYSQL_PASS', 'MYSQL_HOST'] values = [o...
3b97e2eafaf8e2cdc2b39024f125c284a5f9de23
tests/python-test-library/testcases/conf.py
tests/python-test-library/testcases/conf.py
#!/usr/bin/env python2.5 ## ## @file contextOrientationTCs.py ## ## Copyright (C) 2008 Nokia. All rights reserved. ## ## ## ## ## Requires python2.5-gobject and python2.5-dbus ## ## Implements also some testing API: ## ## contextSrcPath="." sessionConfigPath="tests/python-test-library/stubs" ctxBusName = "org.freed...
#!/usr/bin/env python2.5 ## ## @file contextOrientationTCs.py ## ## Copyright (C) 2008 Nokia. All rights reserved. ## ## ## ## ## Requires python2.5-gobject and python2.5-dbus ## ## Implements also some testing API: ## ## contextSrcPath="." sessionConfigPath="tests/python-test-library/stubs" ctxBusName = "org.freed...
Modify subscription handler interface name
Modify subscription handler interface name
Python
lgpl-2.1
rburchell/ck,rburchell/ck,rburchell/ck,rburchell/ck,rburchell/ck
#!/usr/bin/env python2.5 ## ## @file contextOrientationTCs.py ## ## Copyright (C) 2008 Nokia. All rights reserved. ## ## ## ## ## Requires python2.5-gobject and python2.5-dbus ## ## Implements also some testing API: ## ## contextSrcPath="." sessionConfigPath="tests/python-test-library/stubs" ctxBusName = "org.freed...
#!/usr/bin/env python2.5 ## ## @file contextOrientationTCs.py ## ## Copyright (C) 2008 Nokia. All rights reserved. ## ## ## ## ## Requires python2.5-gobject and python2.5-dbus ## ## Implements also some testing API: ## ## contextSrcPath="." sessionConfigPath="tests/python-test-library/stubs" ctxBusName = "org.freed...
<commit_before>#!/usr/bin/env python2.5 ## ## @file contextOrientationTCs.py ## ## Copyright (C) 2008 Nokia. All rights reserved. ## ## ## ## ## Requires python2.5-gobject and python2.5-dbus ## ## Implements also some testing API: ## ## contextSrcPath="." sessionConfigPath="tests/python-test-library/stubs" ctxBusNa...
#!/usr/bin/env python2.5 ## ## @file contextOrientationTCs.py ## ## Copyright (C) 2008 Nokia. All rights reserved. ## ## ## ## ## Requires python2.5-gobject and python2.5-dbus ## ## Implements also some testing API: ## ## contextSrcPath="." sessionConfigPath="tests/python-test-library/stubs" ctxBusName = "org.freed...
#!/usr/bin/env python2.5 ## ## @file contextOrientationTCs.py ## ## Copyright (C) 2008 Nokia. All rights reserved. ## ## ## ## ## Requires python2.5-gobject and python2.5-dbus ## ## Implements also some testing API: ## ## contextSrcPath="." sessionConfigPath="tests/python-test-library/stubs" ctxBusName = "org.freed...
<commit_before>#!/usr/bin/env python2.5 ## ## @file contextOrientationTCs.py ## ## Copyright (C) 2008 Nokia. All rights reserved. ## ## ## ## ## Requires python2.5-gobject and python2.5-dbus ## ## Implements also some testing API: ## ## contextSrcPath="." sessionConfigPath="tests/python-test-library/stubs" ctxBusNa...
2a779fedbb533eda7a8856e6a543f09faae9ac85
thinc/neural/tests/unit/Model/test_setup.py
thinc/neural/tests/unit/Model/test_setup.py
# encoding: utf8 from __future__ import unicode_literals import pytest from flexmock import flexmock from hypothesis import given, strategies import abc from .... import base @pytest.mark.parametrize('new_name', ['mymodel', 'layer', 'basic', '', '漢字']) def test_name_override(new_name): control = base.Model() ...
from .... import base
Remove tests or removed Model.setup method
Remove tests or removed Model.setup method
Python
mit
explosion/thinc,explosion/thinc,explosion/thinc,explosion/thinc,spacy-io/thinc,spacy-io/thinc,spacy-io/thinc
# encoding: utf8 from __future__ import unicode_literals import pytest from flexmock import flexmock from hypothesis import given, strategies import abc from .... import base @pytest.mark.parametrize('new_name', ['mymodel', 'layer', 'basic', '', '漢字']) def test_name_override(new_name): control = base.Model() ...
from .... import base
<commit_before># encoding: utf8 from __future__ import unicode_literals import pytest from flexmock import flexmock from hypothesis import given, strategies import abc from .... import base @pytest.mark.parametrize('new_name', ['mymodel', 'layer', 'basic', '', '漢字']) def test_name_override(new_name): control = b...
from .... import base
# encoding: utf8 from __future__ import unicode_literals import pytest from flexmock import flexmock from hypothesis import given, strategies import abc from .... import base @pytest.mark.parametrize('new_name', ['mymodel', 'layer', 'basic', '', '漢字']) def test_name_override(new_name): control = base.Model() ...
<commit_before># encoding: utf8 from __future__ import unicode_literals import pytest from flexmock import flexmock from hypothesis import given, strategies import abc from .... import base @pytest.mark.parametrize('new_name', ['mymodel', 'layer', 'basic', '', '漢字']) def test_name_override(new_name): control = b...
6b9120b5b12da3f32f2c6377905f7ecd103f164e
packages/grid/backend/grid/api/token.py
packages/grid/backend/grid/api/token.py
# stdlib from typing import Optional # third party from pydantic import BaseModel class Token(BaseModel): access_token: str token_type: str metadata: str class TokenPayload(BaseModel): sub: Optional[int] = None
# stdlib from typing import Optional # third party from pydantic import BaseModel class Token(BaseModel): access_token: str token_type: str metadata: str class TokenPayload(BaseModel): sub: Optional[int] = None guest: bool = False
UPDATE TokenPayload pydantic model to support guest flag
UPDATE TokenPayload pydantic model to support guest flag
Python
apache-2.0
OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft
# stdlib from typing import Optional # third party from pydantic import BaseModel class Token(BaseModel): access_token: str token_type: str metadata: str class TokenPayload(BaseModel): sub: Optional[int] = None UPDATE TokenPayload pydantic model to support guest flag
# stdlib from typing import Optional # third party from pydantic import BaseModel class Token(BaseModel): access_token: str token_type: str metadata: str class TokenPayload(BaseModel): sub: Optional[int] = None guest: bool = False
<commit_before># stdlib from typing import Optional # third party from pydantic import BaseModel class Token(BaseModel): access_token: str token_type: str metadata: str class TokenPayload(BaseModel): sub: Optional[int] = None <commit_msg>UPDATE TokenPayload pydantic model to support guest flag<comm...
# stdlib from typing import Optional # third party from pydantic import BaseModel class Token(BaseModel): access_token: str token_type: str metadata: str class TokenPayload(BaseModel): sub: Optional[int] = None guest: bool = False
# stdlib from typing import Optional # third party from pydantic import BaseModel class Token(BaseModel): access_token: str token_type: str metadata: str class TokenPayload(BaseModel): sub: Optional[int] = None UPDATE TokenPayload pydantic model to support guest flag# stdlib from typing import Opti...
<commit_before># stdlib from typing import Optional # third party from pydantic import BaseModel class Token(BaseModel): access_token: str token_type: str metadata: str class TokenPayload(BaseModel): sub: Optional[int] = None <commit_msg>UPDATE TokenPayload pydantic model to support guest flag<comm...
257addd4403ae17a79c955d9751d5f3072c2a020
nightreads/emails/views.py
nightreads/emails/views.py
from django.shortcuts import render, redirect from django.views.generic import View from django.core.urlresolvers import reverse from django.contrib import messages from .models import Email from .forms import EmailAdminForm from nightreads.user_manager.models import Subscription class SendEmailAdminView(View): ...
from django.shortcuts import render, redirect from django.views.generic import View from django.core.urlresolvers import reverse from django.contrib import messages from .models import Email from .forms import EmailAdminForm from nightreads.user_manager.models import Subscription class SendEmailAdminView(View): ...
Update target count to consider users who subded to `all`
Update target count to consider users who subded to `all`
Python
mit
avinassh/nightreads,avinassh/nightreads
from django.shortcuts import render, redirect from django.views.generic import View from django.core.urlresolvers import reverse from django.contrib import messages from .models import Email from .forms import EmailAdminForm from nightreads.user_manager.models import Subscription class SendEmailAdminView(View): ...
from django.shortcuts import render, redirect from django.views.generic import View from django.core.urlresolvers import reverse from django.contrib import messages from .models import Email from .forms import EmailAdminForm from nightreads.user_manager.models import Subscription class SendEmailAdminView(View): ...
<commit_before>from django.shortcuts import render, redirect from django.views.generic import View from django.core.urlresolvers import reverse from django.contrib import messages from .models import Email from .forms import EmailAdminForm from nightreads.user_manager.models import Subscription class SendEmailAdminV...
from django.shortcuts import render, redirect from django.views.generic import View from django.core.urlresolvers import reverse from django.contrib import messages from .models import Email from .forms import EmailAdminForm from nightreads.user_manager.models import Subscription class SendEmailAdminView(View): ...
from django.shortcuts import render, redirect from django.views.generic import View from django.core.urlresolvers import reverse from django.contrib import messages from .models import Email from .forms import EmailAdminForm from nightreads.user_manager.models import Subscription class SendEmailAdminView(View): ...
<commit_before>from django.shortcuts import render, redirect from django.views.generic import View from django.core.urlresolvers import reverse from django.contrib import messages from .models import Email from .forms import EmailAdminForm from nightreads.user_manager.models import Subscription class SendEmailAdminV...
a1318a5ced6efc4ae88abc0b23190daea5899704
open_humans/serializers.py
open_humans/serializers.py
from django.contrib.auth.models import User from django.core.urlresolvers import reverse from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): url = serializers.SerializerMethodField('get_profile_url') class Meta: model = User fields = ('id', 'url', 'use...
from django.contrib.auth.models import User # from django.core.urlresolvers import reverse from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): # url = serializers.SerializerMethodField('get_profile_url') message = serializers.SerializerMethodField('get_message') c...
Make /api/profile return no private data
Make /api/profile return no private data
Python
mit
OpenHumans/open-humans,PersonalGenomesOrg/open-humans,PersonalGenomesOrg/open-humans,PersonalGenomesOrg/open-humans,OpenHumans/open-humans,OpenHumans/open-humans,OpenHumans/open-humans,PersonalGenomesOrg/open-humans
from django.contrib.auth.models import User from django.core.urlresolvers import reverse from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): url = serializers.SerializerMethodField('get_profile_url') class Meta: model = User fields = ('id', 'url', 'use...
from django.contrib.auth.models import User # from django.core.urlresolvers import reverse from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): # url = serializers.SerializerMethodField('get_profile_url') message = serializers.SerializerMethodField('get_message') c...
<commit_before>from django.contrib.auth.models import User from django.core.urlresolvers import reverse from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): url = serializers.SerializerMethodField('get_profile_url') class Meta: model = User fields = ('i...
from django.contrib.auth.models import User # from django.core.urlresolvers import reverse from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): # url = serializers.SerializerMethodField('get_profile_url') message = serializers.SerializerMethodField('get_message') c...
from django.contrib.auth.models import User from django.core.urlresolvers import reverse from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): url = serializers.SerializerMethodField('get_profile_url') class Meta: model = User fields = ('id', 'url', 'use...
<commit_before>from django.contrib.auth.models import User from django.core.urlresolvers import reverse from rest_framework import serializers class ProfileSerializer(serializers.ModelSerializer): url = serializers.SerializerMethodField('get_profile_url') class Meta: model = User fields = ('i...
ecdde0ef68a295910039c0a3a4a26f0580fd81f6
starbowmodweb/news/views.py
starbowmodweb/news/views.py
from django.http import HttpResponse from django.shortcuts import render from django.db import connections import bbcode def dictfetchall(cursor): "Returns all rows from a cursor as a dict" desc = cursor.description return [ dict(zip([col[0] for col in desc], row)) for row in cursor.fetch...
from django.http import HttpResponse from django.shortcuts import render from django.db import connections import bbcode def bbcode_img(tag_name, value, options, parent, context): if tag_name in options and 'x' in options[tag_name]: options['width'], options['height'] = options[tag_name].split('x', 1) ...
Add support for the [img] tag.
Add support for the [img] tag.
Python
mit
Starbow/StarbowWebSite,Starbow/StarbowWebSite,Starbow/StarbowWebSite
from django.http import HttpResponse from django.shortcuts import render from django.db import connections import bbcode def dictfetchall(cursor): "Returns all rows from a cursor as a dict" desc = cursor.description return [ dict(zip([col[0] for col in desc], row)) for row in cursor.fetch...
from django.http import HttpResponse from django.shortcuts import render from django.db import connections import bbcode def bbcode_img(tag_name, value, options, parent, context): if tag_name in options and 'x' in options[tag_name]: options['width'], options['height'] = options[tag_name].split('x', 1) ...
<commit_before>from django.http import HttpResponse from django.shortcuts import render from django.db import connections import bbcode def dictfetchall(cursor): "Returns all rows from a cursor as a dict" desc = cursor.description return [ dict(zip([col[0] for col in desc], row)) for row ...
from django.http import HttpResponse from django.shortcuts import render from django.db import connections import bbcode def bbcode_img(tag_name, value, options, parent, context): if tag_name in options and 'x' in options[tag_name]: options['width'], options['height'] = options[tag_name].split('x', 1) ...
from django.http import HttpResponse from django.shortcuts import render from django.db import connections import bbcode def dictfetchall(cursor): "Returns all rows from a cursor as a dict" desc = cursor.description return [ dict(zip([col[0] for col in desc], row)) for row in cursor.fetch...
<commit_before>from django.http import HttpResponse from django.shortcuts import render from django.db import connections import bbcode def dictfetchall(cursor): "Returns all rows from a cursor as a dict" desc = cursor.description return [ dict(zip([col[0] for col in desc], row)) for row ...
577fb4b24f681260cd49a3503566fe921e2d252f
compresstest.py
compresstest.py
#!/usr/bin/python import bz2 import gzip import optparse import os import sys import time if __name__ == '__main__': # Create the option parser, and give a small usage example. optionparser = optparse.OptionParser(usage='%prog [options] -f /some/file.bz2') optionparser.add_option('-f', '--file', default=...
#!/usr/bin/python import bz2 import gzip import optparse import os import sys import time if __name__ == '__main__': # Create the option parser, and give a small usage example. optionparser = optparse.OptionParser(usage='%prog [options] -f /some/file.bz2') optionparser.add_option('-f', '--file', default=...
Fix copy/paste error in Gzip open
Fix copy/paste error in Gzip open
Python
unlicense
tomc603/pycompresstest
#!/usr/bin/python import bz2 import gzip import optparse import os import sys import time if __name__ == '__main__': # Create the option parser, and give a small usage example. optionparser = optparse.OptionParser(usage='%prog [options] -f /some/file.bz2') optionparser.add_option('-f', '--file', default=...
#!/usr/bin/python import bz2 import gzip import optparse import os import sys import time if __name__ == '__main__': # Create the option parser, and give a small usage example. optionparser = optparse.OptionParser(usage='%prog [options] -f /some/file.bz2') optionparser.add_option('-f', '--file', default=...
<commit_before>#!/usr/bin/python import bz2 import gzip import optparse import os import sys import time if __name__ == '__main__': # Create the option parser, and give a small usage example. optionparser = optparse.OptionParser(usage='%prog [options] -f /some/file.bz2') optionparser.add_option('-f', '--...
#!/usr/bin/python import bz2 import gzip import optparse import os import sys import time if __name__ == '__main__': # Create the option parser, and give a small usage example. optionparser = optparse.OptionParser(usage='%prog [options] -f /some/file.bz2') optionparser.add_option('-f', '--file', default=...
#!/usr/bin/python import bz2 import gzip import optparse import os import sys import time if __name__ == '__main__': # Create the option parser, and give a small usage example. optionparser = optparse.OptionParser(usage='%prog [options] -f /some/file.bz2') optionparser.add_option('-f', '--file', default=...
<commit_before>#!/usr/bin/python import bz2 import gzip import optparse import os import sys import time if __name__ == '__main__': # Create the option parser, and give a small usage example. optionparser = optparse.OptionParser(usage='%prog [options] -f /some/file.bz2') optionparser.add_option('-f', '--...
8ec20a26531abab5e3824cabe36d87a9e761cba0
testing/skarphed-core/workspace/tests/permissions.py
testing/skarphed-core/workspace/tests/permissions.py
#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as ...
#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as ...
Revert "commiting failing dummytest to test CI-setup"
Revert "commiting failing dummytest to test CI-setup" This reverts commit eaac3ef8430d0a0c02ebaed82e1e8d27889124a6.
Python
agpl-3.0
skarphed/skarphed,skarphed/skarphed
#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as ...
#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as ...
<commit_before>#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public...
#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as ...
#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as ...
<commit_before>#!/usr/bin/python #-*- coding: utf-8 -*- ########################################################### # © 2011 Daniel 'grindhold' Brendle and Team # # This file is part of Skarphed. # # Skarphed is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public...
ea67ca087b06347625f8116e1583fd046a75159a
providers/pt/rcaap/apps.py
providers/pt/rcaap/apps.py
from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.pt.rcaap' version = '0.0.1' title = 'rcaap' long_title = 'RCAAP - Repositório Científico de Acesso Aberto de Portugal' home_page = 'http://www.rcaap.pt' url = 'http://www.rcaap.pt/oai' ...
from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.pt.rcaap' version = '0.0.1' title = 'rcaap' long_title = 'RCAAP - Repositório Científico de Acesso Aberto de Portugal' home_page = 'http://www.rcaap.pt' url = 'http://www.rcaap.pt/oai' ...
Remove time granularity from rcaap
Remove time granularity from rcaap
Python
apache-2.0
laurenbarker/SHARE,CenterForOpenScience/SHARE,zamattiac/SHARE,aaxelb/SHARE,zamattiac/SHARE,aaxelb/SHARE,CenterForOpenScience/SHARE,CenterForOpenScience/SHARE,laurenbarker/SHARE,laurenbarker/SHARE,zamattiac/SHARE,aaxelb/SHARE
from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.pt.rcaap' version = '0.0.1' title = 'rcaap' long_title = 'RCAAP - Repositório Científico de Acesso Aberto de Portugal' home_page = 'http://www.rcaap.pt' url = 'http://www.rcaap.pt/oai' ...
from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.pt.rcaap' version = '0.0.1' title = 'rcaap' long_title = 'RCAAP - Repositório Científico de Acesso Aberto de Portugal' home_page = 'http://www.rcaap.pt' url = 'http://www.rcaap.pt/oai' ...
<commit_before>from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.pt.rcaap' version = '0.0.1' title = 'rcaap' long_title = 'RCAAP - Repositório Científico de Acesso Aberto de Portugal' home_page = 'http://www.rcaap.pt' url = 'http://www.rca...
from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.pt.rcaap' version = '0.0.1' title = 'rcaap' long_title = 'RCAAP - Repositório Científico de Acesso Aberto de Portugal' home_page = 'http://www.rcaap.pt' url = 'http://www.rcaap.pt/oai' ...
from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.pt.rcaap' version = '0.0.1' title = 'rcaap' long_title = 'RCAAP - Repositório Científico de Acesso Aberto de Portugal' home_page = 'http://www.rcaap.pt' url = 'http://www.rcaap.pt/oai' ...
<commit_before>from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.pt.rcaap' version = '0.0.1' title = 'rcaap' long_title = 'RCAAP - Repositório Científico de Acesso Aberto de Portugal' home_page = 'http://www.rcaap.pt' url = 'http://www.rca...
d0e95cf13290049a95ac3b92e16cfba80b770147
connector/views.py
connector/views.py
from django.conf import settings from django.template import RequestContext from django.http import HttpResponse, HttpResponseNotFound from django.template import Template from cancer_browser.core.http import HttpResponseSendFile from django.core.urlresolvers import reverse import os, re def client_vars(request, bas...
from django.conf import settings from django.template import RequestContext from django.http import HttpResponse, HttpResponseNotFound from django.template import Template from cancer_browser.core.http import HttpResponseSendFile from django.core.urlresolvers import reverse import os, re def client_vars(request, bas...
Add mime types for jpeg, gif.
Add mime types for jpeg, gif.
Python
apache-2.0
acthp/ucsc-xena-client,acthp/ucsc-xena-client,acthp/ucsc-xena-client,ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client
from django.conf import settings from django.template import RequestContext from django.http import HttpResponse, HttpResponseNotFound from django.template import Template from cancer_browser.core.http import HttpResponseSendFile from django.core.urlresolvers import reverse import os, re def client_vars(request, bas...
from django.conf import settings from django.template import RequestContext from django.http import HttpResponse, HttpResponseNotFound from django.template import Template from cancer_browser.core.http import HttpResponseSendFile from django.core.urlresolvers import reverse import os, re def client_vars(request, bas...
<commit_before>from django.conf import settings from django.template import RequestContext from django.http import HttpResponse, HttpResponseNotFound from django.template import Template from cancer_browser.core.http import HttpResponseSendFile from django.core.urlresolvers import reverse import os, re def client_va...
from django.conf import settings from django.template import RequestContext from django.http import HttpResponse, HttpResponseNotFound from django.template import Template from cancer_browser.core.http import HttpResponseSendFile from django.core.urlresolvers import reverse import os, re def client_vars(request, bas...
from django.conf import settings from django.template import RequestContext from django.http import HttpResponse, HttpResponseNotFound from django.template import Template from cancer_browser.core.http import HttpResponseSendFile from django.core.urlresolvers import reverse import os, re def client_vars(request, bas...
<commit_before>from django.conf import settings from django.template import RequestContext from django.http import HttpResponse, HttpResponseNotFound from django.template import Template from cancer_browser.core.http import HttpResponseSendFile from django.core.urlresolvers import reverse import os, re def client_va...
1e2822bb71c123993419479c2d4f5fc3e80e35bb
reddit_adzerk/adzerkads.py
reddit_adzerk/adzerkads.py
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) adzerk_all_the_things = g.live_config.get("adzerk_all_the_things") adzerk_srs = g.live_config.get("adzerk_srs") in_adzerk_sr = a...
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) adzerk_all_the_things = g.live_config.get("adzerk_all_the_things") adzerk_srs = g.live_config.get("adzerk_srs") in_adzerk_sr = a...
Use analytics name for subreddits if available.
Use analytics name for subreddits if available. This allows a catch-all for multis to be used.
Python
bsd-3-clause
madbook/reddit-plugin-adzerk,madbook/reddit-plugin-adzerk,madbook/reddit-plugin-adzerk
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) adzerk_all_the_things = g.live_config.get("adzerk_all_the_things") adzerk_srs = g.live_config.get("adzerk_srs") in_adzerk_sr = a...
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) adzerk_all_the_things = g.live_config.get("adzerk_all_the_things") adzerk_srs = g.live_config.get("adzerk_srs") in_adzerk_sr = a...
<commit_before>from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) adzerk_all_the_things = g.live_config.get("adzerk_all_the_things") adzerk_srs = g.live_config.get("adzerk_srs") i...
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) adzerk_all_the_things = g.live_config.get("adzerk_all_the_things") adzerk_srs = g.live_config.get("adzerk_srs") in_adzerk_sr = a...
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) adzerk_all_the_things = g.live_config.get("adzerk_all_the_things") adzerk_srs = g.live_config.get("adzerk_srs") in_adzerk_sr = a...
<commit_before>from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) adzerk_all_the_things = g.live_config.get("adzerk_all_the_things") adzerk_srs = g.live_config.get("adzerk_srs") i...
cb747072b171882bcfceeeb720bba9e7c53c9357
fm/mathengine/problemTypes/derivPolynomial.py
fm/mathengine/problemTypes/derivPolynomial.py
import random from sympy import * import fm.mathengine.problemTypes.problem as problem class derivPolynomial(problem.Problem): terms = [1,2,3,4,5] exponents = [0,1,2,3,4,5,6] coefficients = [1,2,3,4,5,6,7,8,9] def generate_problem(self): nterms = random.choice(self.terms) nexponents = random.sample(self.expo...
import random from sympy import * import fm.mathengine.problemTypes.problem as problem class derivPolynomial(problem.Problem): terms = [1,2,3,4,5] exponents = [0,1,2,3,4,5,6] coefficients = [1,2,3,4,5,6,7,8,9] def generate_problem(self): nterms = random.choice(self.terms) nexponents = random.sample(self.expo...
Fix bug in polynomial differentiate module
Fix bug in polynomial differentiate module
Python
mit
stephenjust/fastmath,stephenjust/fastmath,stephenjust/fastmath,stephenjust/fastmath
import random from sympy import * import fm.mathengine.problemTypes.problem as problem class derivPolynomial(problem.Problem): terms = [1,2,3,4,5] exponents = [0,1,2,3,4,5,6] coefficients = [1,2,3,4,5,6,7,8,9] def generate_problem(self): nterms = random.choice(self.terms) nexponents = random.sample(self.expo...
import random from sympy import * import fm.mathengine.problemTypes.problem as problem class derivPolynomial(problem.Problem): terms = [1,2,3,4,5] exponents = [0,1,2,3,4,5,6] coefficients = [1,2,3,4,5,6,7,8,9] def generate_problem(self): nterms = random.choice(self.terms) nexponents = random.sample(self.expo...
<commit_before>import random from sympy import * import fm.mathengine.problemTypes.problem as problem class derivPolynomial(problem.Problem): terms = [1,2,3,4,5] exponents = [0,1,2,3,4,5,6] coefficients = [1,2,3,4,5,6,7,8,9] def generate_problem(self): nterms = random.choice(self.terms) nexponents = random.s...
import random from sympy import * import fm.mathengine.problemTypes.problem as problem class derivPolynomial(problem.Problem): terms = [1,2,3,4,5] exponents = [0,1,2,3,4,5,6] coefficients = [1,2,3,4,5,6,7,8,9] def generate_problem(self): nterms = random.choice(self.terms) nexponents = random.sample(self.expo...
import random from sympy import * import fm.mathengine.problemTypes.problem as problem class derivPolynomial(problem.Problem): terms = [1,2,3,4,5] exponents = [0,1,2,3,4,5,6] coefficients = [1,2,3,4,5,6,7,8,9] def generate_problem(self): nterms = random.choice(self.terms) nexponents = random.sample(self.expo...
<commit_before>import random from sympy import * import fm.mathengine.problemTypes.problem as problem class derivPolynomial(problem.Problem): terms = [1,2,3,4,5] exponents = [0,1,2,3,4,5,6] coefficients = [1,2,3,4,5,6,7,8,9] def generate_problem(self): nterms = random.choice(self.terms) nexponents = random.s...
f0b30432d38cba43d534727b74644e9d29b7264f
Lib/defcon/errors.py
Lib/defcon/errors.py
class DefconError(Exception): pass
class DefconError(Exception): _report = None def _set_report(self, value): self._report = value def _get_report(self): return self._report report = property(_get_report, _set_report)
Allow DefconError to contain a report.
Allow DefconError to contain a report.
Python
mit
moyogo/defcon,adrientetar/defcon,anthrotype/defcon,typesupply/defcon
class DefconError(Exception): passAllow DefconError to contain a report.
class DefconError(Exception): _report = None def _set_report(self, value): self._report = value def _get_report(self): return self._report report = property(_get_report, _set_report)
<commit_before>class DefconError(Exception): pass<commit_msg>Allow DefconError to contain a report.<commit_after>
class DefconError(Exception): _report = None def _set_report(self, value): self._report = value def _get_report(self): return self._report report = property(_get_report, _set_report)
class DefconError(Exception): passAllow DefconError to contain a report.class DefconError(Exception): _report = None def _set_report(self, value): self._report = value def _get_report(self): return self._report report = property(_get_report, _set_report)
<commit_before>class DefconError(Exception): pass<commit_msg>Allow DefconError to contain a report.<commit_after>class DefconError(Exception): _report = None def _set_report(self, value): self._report = value def _get_report(self): return self._report report = property(_get_report, _...
601a8d665a9bf84f8deea17153ffa9a94267abbf
tests/api_tests/base/test_middleware.py
tests/api_tests/base/test_middleware.py
# -*- coding: utf-8 -*- from tests.base import ApiTestCase, fake import mock from nose.tools import * # flake8: noqa from api.base.middleware import TokuTransactionsMiddleware from tests.base import ApiTestCase class TestMiddlewareRollback(ApiTestCase): @mock.patch('api.base.middleware.commands') def ...
# -*- coding: utf-8 -*- from tests.base import ApiTestCase, fake import mock from nose.tools import * # flake8: noqa from api.base.middleware import TokuTransactionsMiddleware from tests.base import ApiTestCase class TestMiddlewareRollback(ApiTestCase): def setUp(self): super(TestMiddlewareRollback, se...
Clean up assert statements and add test for successful commit
Clean up assert statements and add test for successful commit
Python
apache-2.0
emetsger/osf.io,kwierman/osf.io,abought/osf.io,caneruguz/osf.io,baylee-d/osf.io,GageGaskins/osf.io,mluo613/osf.io,jnayak1/osf.io,sloria/osf.io,TomBaxter/osf.io,caseyrollins/osf.io,kch8qx/osf.io,rdhyee/osf.io,emetsger/osf.io,zamattiac/osf.io,billyhunt/osf.io,mattclark/osf.io,danielneis/osf.io,kch8qx/osf.io,aaxelb/osf.io...
# -*- coding: utf-8 -*- from tests.base import ApiTestCase, fake import mock from nose.tools import * # flake8: noqa from api.base.middleware import TokuTransactionsMiddleware from tests.base import ApiTestCase class TestMiddlewareRollback(ApiTestCase): @mock.patch('api.base.middleware.commands') def ...
# -*- coding: utf-8 -*- from tests.base import ApiTestCase, fake import mock from nose.tools import * # flake8: noqa from api.base.middleware import TokuTransactionsMiddleware from tests.base import ApiTestCase class TestMiddlewareRollback(ApiTestCase): def setUp(self): super(TestMiddlewareRollback, se...
<commit_before># -*- coding: utf-8 -*- from tests.base import ApiTestCase, fake import mock from nose.tools import * # flake8: noqa from api.base.middleware import TokuTransactionsMiddleware from tests.base import ApiTestCase class TestMiddlewareRollback(ApiTestCase): @mock.patch('api.base.middleware.comm...
# -*- coding: utf-8 -*- from tests.base import ApiTestCase, fake import mock from nose.tools import * # flake8: noqa from api.base.middleware import TokuTransactionsMiddleware from tests.base import ApiTestCase class TestMiddlewareRollback(ApiTestCase): def setUp(self): super(TestMiddlewareRollback, se...
# -*- coding: utf-8 -*- from tests.base import ApiTestCase, fake import mock from nose.tools import * # flake8: noqa from api.base.middleware import TokuTransactionsMiddleware from tests.base import ApiTestCase class TestMiddlewareRollback(ApiTestCase): @mock.patch('api.base.middleware.commands') def ...
<commit_before># -*- coding: utf-8 -*- from tests.base import ApiTestCase, fake import mock from nose.tools import * # flake8: noqa from api.base.middleware import TokuTransactionsMiddleware from tests.base import ApiTestCase class TestMiddlewareRollback(ApiTestCase): @mock.patch('api.base.middleware.comm...
d09a3dfae995b514b417c07db24fcd8a6e343f1e
migrations/160-products-migration.py
migrations/160-products-migration.py
from django.utils.encoding import smart_str from kitsune.products.models import Product from kitsune.taggit.models import Tag from kitsune.wiki.models import Document tags_to_migrate = { # source tag -> product 'firefox': ['firefox'], 'sync': ['firefox', 'mobile'], 'persona': ['firefox'], 'desktop...
from django.utils.encoding import smart_str from kitsune.products.models import Product from taggit.models import Tag from kitsune.wiki.models import Document tags_to_migrate = { # source tag -> product 'firefox': ['firefox'], 'sync': ['firefox', 'mobile'], 'persona': ['firefox'], 'desktop': ['fir...
Fix wrong module name in migrations
Fix wrong module name in migrations
Python
bsd-3-clause
safwanrahman/kitsune,chirilo/kitsune,YOTOV-LIMITED/kitsune,safwanrahman/kitsune,H1ghT0p/kitsune,brittanystoroz/kitsune,mozilla/kitsune,MikkCZ/kitsune,orvi2014/kitsune,anushbmx/kitsune,H1ghT0p/kitsune,safwanrahman/linuxdesh,MikkCZ/kitsune,YOTOV-LIMITED/kitsune,asdofindia/kitsune,MikkCZ/kitsune,MziRintu/kitsune,iDTLabssl...
from django.utils.encoding import smart_str from kitsune.products.models import Product from kitsune.taggit.models import Tag from kitsune.wiki.models import Document tags_to_migrate = { # source tag -> product 'firefox': ['firefox'], 'sync': ['firefox', 'mobile'], 'persona': ['firefox'], 'desktop...
from django.utils.encoding import smart_str from kitsune.products.models import Product from taggit.models import Tag from kitsune.wiki.models import Document tags_to_migrate = { # source tag -> product 'firefox': ['firefox'], 'sync': ['firefox', 'mobile'], 'persona': ['firefox'], 'desktop': ['fir...
<commit_before>from django.utils.encoding import smart_str from kitsune.products.models import Product from kitsune.taggit.models import Tag from kitsune.wiki.models import Document tags_to_migrate = { # source tag -> product 'firefox': ['firefox'], 'sync': ['firefox', 'mobile'], 'persona': ['firefox'...
from django.utils.encoding import smart_str from kitsune.products.models import Product from taggit.models import Tag from kitsune.wiki.models import Document tags_to_migrate = { # source tag -> product 'firefox': ['firefox'], 'sync': ['firefox', 'mobile'], 'persona': ['firefox'], 'desktop': ['fir...
from django.utils.encoding import smart_str from kitsune.products.models import Product from kitsune.taggit.models import Tag from kitsune.wiki.models import Document tags_to_migrate = { # source tag -> product 'firefox': ['firefox'], 'sync': ['firefox', 'mobile'], 'persona': ['firefox'], 'desktop...
<commit_before>from django.utils.encoding import smart_str from kitsune.products.models import Product from kitsune.taggit.models import Tag from kitsune.wiki.models import Document tags_to_migrate = { # source tag -> product 'firefox': ['firefox'], 'sync': ['firefox', 'mobile'], 'persona': ['firefox'...
e0709e7432cf5acd82a8fe914b50fca6d5cdc735
scoring_engine/models/__init__.py
scoring_engine/models/__init__.py
from scoring_engine.models.user import User from scoring_engine.models.service import Service from scoring_engine.models.account import Account from scoring_engine.models.property import Property from scoring_engine.models.team import Team from scoring_engine.models.check import Check from scoring_engine.models.round i...
Revert changes to models init
Revert changes to models init
Python
mit
pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine
Revert changes to models init
from scoring_engine.models.user import User from scoring_engine.models.service import Service from scoring_engine.models.account import Account from scoring_engine.models.property import Property from scoring_engine.models.team import Team from scoring_engine.models.check import Check from scoring_engine.models.round i...
<commit_before><commit_msg>Revert changes to models init<commit_after>
from scoring_engine.models.user import User from scoring_engine.models.service import Service from scoring_engine.models.account import Account from scoring_engine.models.property import Property from scoring_engine.models.team import Team from scoring_engine.models.check import Check from scoring_engine.models.round i...
Revert changes to models initfrom scoring_engine.models.user import User from scoring_engine.models.service import Service from scoring_engine.models.account import Account from scoring_engine.models.property import Property from scoring_engine.models.team import Team from scoring_engine.models.check import Check from ...
<commit_before><commit_msg>Revert changes to models init<commit_after>from scoring_engine.models.user import User from scoring_engine.models.service import Service from scoring_engine.models.account import Account from scoring_engine.models.property import Property from scoring_engine.models.team import Team from scori...
3c65881633daee8d5b19760e5c887dce25ab69c3
froide/helper/db_utils.py
froide/helper/db_utils.py
from django.db import IntegrityError from django.template.defaultfilters import slugify def save_obj_with_slug(obj, attribute='title', **kwargs): obj.slug = slugify(getattr(obj, attribute)) return save_obj_unique(obj, 'slug', **kwargs) def save_obj_unique(obj, attr, count=0, postfix_format='-{count}'): ...
from django.db import IntegrityError from django.template.defaultfilters import slugify def save_obj_with_slug(obj, attribute='title', **kwargs): obj.slug = slugify(getattr(obj, attribute)) return save_obj_unique(obj, 'slug', **kwargs) def save_obj_unique(obj, attr, count=0, postfix_format='-{count}'): ...
Fix bad initial count in slug creation helper
Fix bad initial count in slug creation helper
Python
mit
stefanw/froide,stefanw/froide,stefanw/froide,fin/froide,fin/froide,fin/froide,fin/froide,stefanw/froide,stefanw/froide
from django.db import IntegrityError from django.template.defaultfilters import slugify def save_obj_with_slug(obj, attribute='title', **kwargs): obj.slug = slugify(getattr(obj, attribute)) return save_obj_unique(obj, 'slug', **kwargs) def save_obj_unique(obj, attr, count=0, postfix_format='-{count}'): ...
from django.db import IntegrityError from django.template.defaultfilters import slugify def save_obj_with_slug(obj, attribute='title', **kwargs): obj.slug = slugify(getattr(obj, attribute)) return save_obj_unique(obj, 'slug', **kwargs) def save_obj_unique(obj, attr, count=0, postfix_format='-{count}'): ...
<commit_before>from django.db import IntegrityError from django.template.defaultfilters import slugify def save_obj_with_slug(obj, attribute='title', **kwargs): obj.slug = slugify(getattr(obj, attribute)) return save_obj_unique(obj, 'slug', **kwargs) def save_obj_unique(obj, attr, count=0, postfix_format='-...
from django.db import IntegrityError from django.template.defaultfilters import slugify def save_obj_with_slug(obj, attribute='title', **kwargs): obj.slug = slugify(getattr(obj, attribute)) return save_obj_unique(obj, 'slug', **kwargs) def save_obj_unique(obj, attr, count=0, postfix_format='-{count}'): ...
from django.db import IntegrityError from django.template.defaultfilters import slugify def save_obj_with_slug(obj, attribute='title', **kwargs): obj.slug = slugify(getattr(obj, attribute)) return save_obj_unique(obj, 'slug', **kwargs) def save_obj_unique(obj, attr, count=0, postfix_format='-{count}'): ...
<commit_before>from django.db import IntegrityError from django.template.defaultfilters import slugify def save_obj_with_slug(obj, attribute='title', **kwargs): obj.slug = slugify(getattr(obj, attribute)) return save_obj_unique(obj, 'slug', **kwargs) def save_obj_unique(obj, attr, count=0, postfix_format='-...
186b3846e5fe9298549b5a5c98e9ec9817f35203
twisted/plugins/specter_plugin.py
twisted/plugins/specter_plugin.py
from zope.interface import implements from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl import specter class Options(usage.Options): op...
import yaml from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl from zope.interface import implements import specter class Options(usage.Opt...
Move config parsing to plugin, use for SSL keys
Move config parsing to plugin, use for SSL keys
Python
mit
praekelt/specter,praekelt/specter
from zope.interface import implements from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl import specter class Options(usage.Options): op...
import yaml from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl from zope.interface import implements import specter class Options(usage.Opt...
<commit_before>from zope.interface import implements from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl import specter class Options(usage.O...
import yaml from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl from zope.interface import implements import specter class Options(usage.Opt...
from zope.interface import implements from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl import specter class Options(usage.Options): op...
<commit_before>from zope.interface import implements from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl import specter class Options(usage.O...
139346c72a09719eba3d444c67d1b54c1b68eae6
uni_form/templatetags/uni_form_field.py
uni_form/templatetags/uni_form_field.py
from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload" } @register.filter def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxinput" @register.filter def with_class(field): ...
from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload", "passwordinput":"passwordinput textInput" } @register.filter def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxin...
Add "passwordinput" to class_converter, because it needs the textInput class too.
Add "passwordinput" to class_converter, because it needs the textInput class too.
Python
mit
treyhunner/django-crispy-forms,uranusjr/django-crispy-forms-ng,alanwj/django-crispy-forms,iris-edu-int/django-crispy-forms,scuml/django-crispy-forms,RamezIssac/django-crispy-forms,PetrDlouhy/django-crispy-forms,zixan/django-crispy-forms,smirolo/django-crispy-forms,schrd/django-crispy-forms,CashStar/django-uni-form,pyda...
from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload" } @register.filter def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxinput" @register.filter def with_class(field): ...
from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload", "passwordinput":"passwordinput textInput" } @register.filter def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxin...
<commit_before>from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload" } @register.filter def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxinput" @register.filter def with_...
from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload", "passwordinput":"passwordinput textInput" } @register.filter def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxin...
from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload" } @register.filter def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxinput" @register.filter def with_class(field): ...
<commit_before>from django import template register = template.Library() class_converter = { "textinput":"textinput textInput", "fileinput":"fileinput fileUpload" } @register.filter def is_checkbox(field): return field.field.widget.__class__.__name__.lower() == "checkboxinput" @register.filter def with_...
c55b0bf0e8249a7ca0b66a9338b777bac574ee61
openbudget/apps/projects/urls/api.py
openbudget/apps/projects/urls/api.py
from django.conf.urls import patterns, url from openbudget.apps.projects.views import api urlpatterns = patterns('', url(r'^$', api.ProjectList.as_view(), name='project-list' ), url(r'^states/$', api.StateList.as_view(), name='state-list' ), url( r'^(?P<uui...
from django.conf.urls import patterns, url from openbudget.apps.projects.views import api urlpatterns = patterns('', url(r'^$', api.ProjectList.as_view(), name='project-list' ), url(r'^states/$', api.StateList.as_view(), name='state-list' ), url( r'^(?P<uui...
Put back the trailing / and fix it in the JS model
Put back the trailing / and fix it in the JS model
Python
bsd-3-clause
pwalsh/openbudgets,moshe742/openbudgets,pwalsh/openbudgets,openbudgets/openbudgets,pwalsh/openbudgets,openbudgets/openbudgets,openbudgets/openbudgets,shaib/openbudgets,shaib/openbudgets,moshe742/openbudgets
from django.conf.urls import patterns, url from openbudget.apps.projects.views import api urlpatterns = patterns('', url(r'^$', api.ProjectList.as_view(), name='project-list' ), url(r'^states/$', api.StateList.as_view(), name='state-list' ), url( r'^(?P<uui...
from django.conf.urls import patterns, url from openbudget.apps.projects.views import api urlpatterns = patterns('', url(r'^$', api.ProjectList.as_view(), name='project-list' ), url(r'^states/$', api.StateList.as_view(), name='state-list' ), url( r'^(?P<uui...
<commit_before>from django.conf.urls import patterns, url from openbudget.apps.projects.views import api urlpatterns = patterns('', url(r'^$', api.ProjectList.as_view(), name='project-list' ), url(r'^states/$', api.StateList.as_view(), name='state-list' ), url( ...
from django.conf.urls import patterns, url from openbudget.apps.projects.views import api urlpatterns = patterns('', url(r'^$', api.ProjectList.as_view(), name='project-list' ), url(r'^states/$', api.StateList.as_view(), name='state-list' ), url( r'^(?P<uui...
from django.conf.urls import patterns, url from openbudget.apps.projects.views import api urlpatterns = patterns('', url(r'^$', api.ProjectList.as_view(), name='project-list' ), url(r'^states/$', api.StateList.as_view(), name='state-list' ), url( r'^(?P<uui...
<commit_before>from django.conf.urls import patterns, url from openbudget.apps.projects.views import api urlpatterns = patterns('', url(r'^$', api.ProjectList.as_view(), name='project-list' ), url(r'^states/$', api.StateList.as_view(), name='state-list' ), url( ...
32fa0f4937aa9fc5545aed8d839618579a9b0be4
markdown_i18n/extension.py
markdown_i18n/extension.py
from markdown.extensions import Extension from markdown_i18n.parser import I18NTreeProcessor class I18NExtension(Extension): def __init__(self, **kwargs): self.config = { 'i18n_lang': ['en_US', 'Locale'], 'i18n_dir': ['', 'Path to get the translations and'] } self....
from markdown.extensions import Extension from markdown_i18n.parser import I18NTreeProcessor class I18NExtension(Extension): def __init__(self, **kwargs): self.config = { 'i18n_lang': ['en_US', 'Locale'], 'i18n_dir': ['', 'Path to get the translations and'] } self....
Fix link previous to TOC and Fix priority
Fix link previous to TOC and Fix priority
Python
mit
gisce/markdown-i18n
from markdown.extensions import Extension from markdown_i18n.parser import I18NTreeProcessor class I18NExtension(Extension): def __init__(self, **kwargs): self.config = { 'i18n_lang': ['en_US', 'Locale'], 'i18n_dir': ['', 'Path to get the translations and'] } self....
from markdown.extensions import Extension from markdown_i18n.parser import I18NTreeProcessor class I18NExtension(Extension): def __init__(self, **kwargs): self.config = { 'i18n_lang': ['en_US', 'Locale'], 'i18n_dir': ['', 'Path to get the translations and'] } self....
<commit_before>from markdown.extensions import Extension from markdown_i18n.parser import I18NTreeProcessor class I18NExtension(Extension): def __init__(self, **kwargs): self.config = { 'i18n_lang': ['en_US', 'Locale'], 'i18n_dir': ['', 'Path to get the translations and'] ...
from markdown.extensions import Extension from markdown_i18n.parser import I18NTreeProcessor class I18NExtension(Extension): def __init__(self, **kwargs): self.config = { 'i18n_lang': ['en_US', 'Locale'], 'i18n_dir': ['', 'Path to get the translations and'] } self....
from markdown.extensions import Extension from markdown_i18n.parser import I18NTreeProcessor class I18NExtension(Extension): def __init__(self, **kwargs): self.config = { 'i18n_lang': ['en_US', 'Locale'], 'i18n_dir': ['', 'Path to get the translations and'] } self....
<commit_before>from markdown.extensions import Extension from markdown_i18n.parser import I18NTreeProcessor class I18NExtension(Extension): def __init__(self, **kwargs): self.config = { 'i18n_lang': ['en_US', 'Locale'], 'i18n_dir': ['', 'Path to get the translations and'] ...
db334f19f66a4d842f206696a40ac2d351c774ac
Testing/test_Misc.py
Testing/test_Misc.py
import unittest import os import scipy from SloppyCell.ReactionNetworks import * from AlgTestNets import algebraic_net_assignment base_net = algebraic_net_assignment.copy() class test_Misc(unittest.TestCase): def test_AssignedVarBug(self): """ Test handling of assigned variables initialized to concentra...
import unittest import os import scipy from SloppyCell.ReactionNetworks import * from AlgTestNets import algebraic_net_assignment base_net = algebraic_net_assignment.copy() class test_Misc(unittest.TestCase): def test_AssignedVarBug(self): """ Test handling of assigned variables initialized to concentra...
Add test for bug involving function definitions that Jordan found.
Add test for bug involving function definitions that Jordan found.
Python
bsd-3-clause
GutenkunstLab/SloppyCell,GutenkunstLab/SloppyCell
import unittest import os import scipy from SloppyCell.ReactionNetworks import * from AlgTestNets import algebraic_net_assignment base_net = algebraic_net_assignment.copy() class test_Misc(unittest.TestCase): def test_AssignedVarBug(self): """ Test handling of assigned variables initialized to concentra...
import unittest import os import scipy from SloppyCell.ReactionNetworks import * from AlgTestNets import algebraic_net_assignment base_net = algebraic_net_assignment.copy() class test_Misc(unittest.TestCase): def test_AssignedVarBug(self): """ Test handling of assigned variables initialized to concentra...
<commit_before>import unittest import os import scipy from SloppyCell.ReactionNetworks import * from AlgTestNets import algebraic_net_assignment base_net = algebraic_net_assignment.copy() class test_Misc(unittest.TestCase): def test_AssignedVarBug(self): """ Test handling of assigned variables initializ...
import unittest import os import scipy from SloppyCell.ReactionNetworks import * from AlgTestNets import algebraic_net_assignment base_net = algebraic_net_assignment.copy() class test_Misc(unittest.TestCase): def test_AssignedVarBug(self): """ Test handling of assigned variables initialized to concentra...
import unittest import os import scipy from SloppyCell.ReactionNetworks import * from AlgTestNets import algebraic_net_assignment base_net = algebraic_net_assignment.copy() class test_Misc(unittest.TestCase): def test_AssignedVarBug(self): """ Test handling of assigned variables initialized to concentra...
<commit_before>import unittest import os import scipy from SloppyCell.ReactionNetworks import * from AlgTestNets import algebraic_net_assignment base_net = algebraic_net_assignment.copy() class test_Misc(unittest.TestCase): def test_AssignedVarBug(self): """ Test handling of assigned variables initializ...
f89c60e6ff2c846aacd39db8488de1300b156a71
src/membership/web/views.py
src/membership/web/views.py
""" """ from wheezy.core.collections import attrdict from wheezy.core.comp import u from wheezy.security import Principal from wheezy.web.authorization import authorize from shared.views import APIHandler from membership.validation import credential_validator class SignInHandler(APIHandler): def post(self): ...
""" """ from wheezy.core.collections import attrdict from wheezy.core.comp import u from wheezy.security import Principal from wheezy.web.authorization import authorize from shared.views import APIHandler from membership.validation import credential_validator class SignInHandler(APIHandler): def post(self): ...
Use try_update_model in sign in handler instead of dict update.
Use try_update_model in sign in handler instead of dict update.
Python
mit
akornatskyy/sample-blog-api,akornatskyy/sample-blog-api
""" """ from wheezy.core.collections import attrdict from wheezy.core.comp import u from wheezy.security import Principal from wheezy.web.authorization import authorize from shared.views import APIHandler from membership.validation import credential_validator class SignInHandler(APIHandler): def post(self): ...
""" """ from wheezy.core.collections import attrdict from wheezy.core.comp import u from wheezy.security import Principal from wheezy.web.authorization import authorize from shared.views import APIHandler from membership.validation import credential_validator class SignInHandler(APIHandler): def post(self): ...
<commit_before>""" """ from wheezy.core.collections import attrdict from wheezy.core.comp import u from wheezy.security import Principal from wheezy.web.authorization import authorize from shared.views import APIHandler from membership.validation import credential_validator class SignInHandler(APIHandler): de...
""" """ from wheezy.core.collections import attrdict from wheezy.core.comp import u from wheezy.security import Principal from wheezy.web.authorization import authorize from shared.views import APIHandler from membership.validation import credential_validator class SignInHandler(APIHandler): def post(self): ...
""" """ from wheezy.core.collections import attrdict from wheezy.core.comp import u from wheezy.security import Principal from wheezy.web.authorization import authorize from shared.views import APIHandler from membership.validation import credential_validator class SignInHandler(APIHandler): def post(self): ...
<commit_before>""" """ from wheezy.core.collections import attrdict from wheezy.core.comp import u from wheezy.security import Principal from wheezy.web.authorization import authorize from shared.views import APIHandler from membership.validation import credential_validator class SignInHandler(APIHandler): de...
7288badce0b2ccf78cf4fbd041b5cf909343cc46
profile_collection/startup/80-areadetector.py
profile_collection/startup/80-areadetector.py
from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode', name='shctl1'...
from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 #shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode', name='shctl1...
Put shutter control entirely in the user's hands
[CFG] Put shutter control entirely in the user's hands
Python
bsd-2-clause
NSLS-II-XPD/ipython_ophyd,NSLS-II-XPD/ipython_ophyd
from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode', name='shctl1'...
from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 #shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode', name='shctl1...
<commit_before>from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode'...
from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 #shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode', name='shctl1...
from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode', name='shctl1'...
<commit_before>from ophyd.controls.area_detector import (AreaDetectorFileStoreHDF5, AreaDetectorFileStoreTIFF, AreaDetectorFileStoreTIFFSquashing) # from shutter import sh1 shctl1 = EpicsSignal('XF:28IDC-ES:1{Det:PE1}cam1:ShutterMode'...
9c7f842c0766603d02c9ee1b5fcc7f2e8f6b1a64
ibmcnx/doc/DataSources.py
ibmcnx/doc/DataSources.py
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
Create documentation of DataSource Settings
8: Create documentation of DataSource Settings Task-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/8
Python
apache-2.0
stoeps13/ibmcnx2,stoeps13/ibmcnx2
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
<commit_before>###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Co...
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
<commit_before>###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Co...
8086005811314734acde07f8cce481f48967edf5
ibmcnx/doc/DataSources.py
ibmcnx/doc/DataSources.py
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
Create documentation of DataSource Settings
: Create documentation of DataSource Settings Task-Url:
Python
apache-2.0
stoeps13/ibmcnx2,stoeps13/ibmcnx2
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
<commit_before>###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Co...
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Connections Appli...
<commit_before>###### # Check ExId (GUID) by Email through JDBC # # Author: Christoph Stoettner # Mail: [email protected] # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-04 # # License: Apache 2.0 # # Check ExId of a User in all Co...
62d65f6db0b4507fdc78ef3934e80c4b2760c85d
accounts/backends.py
accounts/backends.py
from django.conf import settings from django.contrib.auth.models import User, check_password import crypt import nis class NISBackend: """ Authenticate against a user on an NIS server. """ def authenticate(self, username, password): user = None try: passwd = nis.match(user...
from django.conf import settings from django.contrib.auth.models import User, check_password import crypt import nis class NISBackend: """ Authenticate against a user on an NIS server. """ def authenticate(self, username, password): user = None try: passwd = nis.match(user...
Add a little function to make it easier to create users on-the-fly via NIS
Add a little function to make it easier to create users on-the-fly via NIS
Python
mit
chazy/reviewboard,beol/reviewboard,1tush/reviewboard,1tush/reviewboard,KnowNo/reviewboard,asutherland/opc-reviewboard,KnowNo/reviewboard,reviewboard/reviewboard,custode/reviewboard,chazy/reviewboard,KnowNo/reviewboard,atagar/ReviewBoard,1tush/reviewboard,sgallagher/reviewboard,chazy/reviewboard,Khan/reviewboard,chazy/r...
from django.conf import settings from django.contrib.auth.models import User, check_password import crypt import nis class NISBackend: """ Authenticate against a user on an NIS server. """ def authenticate(self, username, password): user = None try: passwd = nis.match(user...
from django.conf import settings from django.contrib.auth.models import User, check_password import crypt import nis class NISBackend: """ Authenticate against a user on an NIS server. """ def authenticate(self, username, password): user = None try: passwd = nis.match(user...
<commit_before>from django.conf import settings from django.contrib.auth.models import User, check_password import crypt import nis class NISBackend: """ Authenticate against a user on an NIS server. """ def authenticate(self, username, password): user = None try: passwd =...
from django.conf import settings from django.contrib.auth.models import User, check_password import crypt import nis class NISBackend: """ Authenticate against a user on an NIS server. """ def authenticate(self, username, password): user = None try: passwd = nis.match(user...
from django.conf import settings from django.contrib.auth.models import User, check_password import crypt import nis class NISBackend: """ Authenticate against a user on an NIS server. """ def authenticate(self, username, password): user = None try: passwd = nis.match(user...
<commit_before>from django.conf import settings from django.contrib.auth.models import User, check_password import crypt import nis class NISBackend: """ Authenticate against a user on an NIS server. """ def authenticate(self, username, password): user = None try: passwd =...
43cd20e94c01e9364d8b0b2e50c701810d68b491
adhocracy4/filters/views.py
adhocracy4/filters/views.py
from django.views import generic class FilteredListView(generic.ListView): """List view with support for filtering and sorting via django-filter. Usage: Set filter_set to your django_filters.FilterSet definition. Use view.filter.form in the template to access the filter form. Note: ...
from django.views import generic class FilteredListView(generic.ListView): """List view with support for filtering and sorting via django-filter. Usage: Set filter_set to your django_filters.FilterSet definition. Use view.filter.form in the template to access the filter form. Note: ...
Allow to override kwargs of filter
Allow to override kwargs of filter
Python
agpl-3.0
liqd/adhocracy4,liqd/adhocracy4,liqd/adhocracy4,liqd/adhocracy4
from django.views import generic class FilteredListView(generic.ListView): """List view with support for filtering and sorting via django-filter. Usage: Set filter_set to your django_filters.FilterSet definition. Use view.filter.form in the template to access the filter form. Note: ...
from django.views import generic class FilteredListView(generic.ListView): """List view with support for filtering and sorting via django-filter. Usage: Set filter_set to your django_filters.FilterSet definition. Use view.filter.form in the template to access the filter form. Note: ...
<commit_before>from django.views import generic class FilteredListView(generic.ListView): """List view with support for filtering and sorting via django-filter. Usage: Set filter_set to your django_filters.FilterSet definition. Use view.filter.form in the template to access the filter form. ...
from django.views import generic class FilteredListView(generic.ListView): """List view with support for filtering and sorting via django-filter. Usage: Set filter_set to your django_filters.FilterSet definition. Use view.filter.form in the template to access the filter form. Note: ...
from django.views import generic class FilteredListView(generic.ListView): """List view with support for filtering and sorting via django-filter. Usage: Set filter_set to your django_filters.FilterSet definition. Use view.filter.form in the template to access the filter form. Note: ...
<commit_before>from django.views import generic class FilteredListView(generic.ListView): """List view with support for filtering and sorting via django-filter. Usage: Set filter_set to your django_filters.FilterSet definition. Use view.filter.form in the template to access the filter form. ...
5f409fd075e1bf4d4d58cb280f25761965f6a446
url_shortener/__main__.py
url_shortener/__main__.py
# -*- coding: utf-8 -*- from url_shortener import app, custom_config_loaded, views log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: import logging from logging.handlers import TimedRotatingFileHandler file_handler = TimedRotatingFileHandler(log_file, when='d') file_handler....
# -*- coding: utf-8 -*- from url_shortener import app, views from url_shortener.validation import configure_url_validator from url_shortener.models import configure_random_factory log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: import logging from logging.handlers import TimedRota...
Refactor applying custom configuration after it is loaded
Refactor applying custom configuration after it is loaded The call sending custom_config_loaded is being replaced with direct calls to the functions configure_random_factory and configure_url_validator.
Python
mit
piotr-rusin/url-shortener,piotr-rusin/url-shortener
# -*- coding: utf-8 -*- from url_shortener import app, custom_config_loaded, views log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: import logging from logging.handlers import TimedRotatingFileHandler file_handler = TimedRotatingFileHandler(log_file, when='d') file_handler....
# -*- coding: utf-8 -*- from url_shortener import app, views from url_shortener.validation import configure_url_validator from url_shortener.models import configure_random_factory log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: import logging from logging.handlers import TimedRota...
<commit_before># -*- coding: utf-8 -*- from url_shortener import app, custom_config_loaded, views log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: import logging from logging.handlers import TimedRotatingFileHandler file_handler = TimedRotatingFileHandler(log_file, when='d') ...
# -*- coding: utf-8 -*- from url_shortener import app, views from url_shortener.validation import configure_url_validator from url_shortener.models import configure_random_factory log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: import logging from logging.handlers import TimedRota...
# -*- coding: utf-8 -*- from url_shortener import app, custom_config_loaded, views log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: import logging from logging.handlers import TimedRotatingFileHandler file_handler = TimedRotatingFileHandler(log_file, when='d') file_handler....
<commit_before># -*- coding: utf-8 -*- from url_shortener import app, custom_config_loaded, views log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: import logging from logging.handlers import TimedRotatingFileHandler file_handler = TimedRotatingFileHandler(log_file, when='d') ...
a56aec4868f41022f6131d81d896da2a05717c89
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup setup( name='etl_utils', version='0.0.1', url='http://github.com/mvj3/etl_utils/', license='MIT', author='David Chen', author_email=''.join(reversed("moc.liamg@emojvm")), description='etl utils', long_description='etl utils', pac...
# -*- coding: utf-8 -*- from setuptools import setup setup( name='etl_utils', version='0.0.2', url='http://github.com/mvj3/etl_utils/', license='MIT', author='David Chen', author_email=''.join(reversed("moc.liamg@emojvm")), description='etl utils', long_description='etl utils', pac...
Use pyenchant and bump to v0.0.2
Use pyenchant and bump to v0.0.2
Python
mit
likaiguo/etl_utils,fi-ecavc/etl_utils,17zuoye/etl_utils,sdgdsffdsfff/etl_utils,likaiguo/etl_utils,Luiti/etl_utils,sdgdsffdsfff/etl_utils,17zuoye/etl_utils,fi-ecavc/etl_utils,likaiguo/etl_utils,Luiti/etl_utils
# -*- coding: utf-8 -*- from setuptools import setup setup( name='etl_utils', version='0.0.1', url='http://github.com/mvj3/etl_utils/', license='MIT', author='David Chen', author_email=''.join(reversed("moc.liamg@emojvm")), description='etl utils', long_description='etl utils', pac...
# -*- coding: utf-8 -*- from setuptools import setup setup( name='etl_utils', version='0.0.2', url='http://github.com/mvj3/etl_utils/', license='MIT', author='David Chen', author_email=''.join(reversed("moc.liamg@emojvm")), description='etl utils', long_description='etl utils', pac...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup setup( name='etl_utils', version='0.0.1', url='http://github.com/mvj3/etl_utils/', license='MIT', author='David Chen', author_email=''.join(reversed("moc.liamg@emojvm")), description='etl utils', long_description='etl ...
# -*- coding: utf-8 -*- from setuptools import setup setup( name='etl_utils', version='0.0.2', url='http://github.com/mvj3/etl_utils/', license='MIT', author='David Chen', author_email=''.join(reversed("moc.liamg@emojvm")), description='etl utils', long_description='etl utils', pac...
# -*- coding: utf-8 -*- from setuptools import setup setup( name='etl_utils', version='0.0.1', url='http://github.com/mvj3/etl_utils/', license='MIT', author='David Chen', author_email=''.join(reversed("moc.liamg@emojvm")), description='etl utils', long_description='etl utils', pac...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup setup( name='etl_utils', version='0.0.1', url='http://github.com/mvj3/etl_utils/', license='MIT', author='David Chen', author_email=''.join(reversed("moc.liamg@emojvm")), description='etl utils', long_description='etl ...
2ce711aa3584f4417600ea02166c05bd9f80273f
setup.py
setup.py
from setuptools import setup, find_packages setup( name='MetaSV', version='0.1-alpha', description='MetaSV: An accurate and integrative structural-variant caller for next generation sequencing', author='Bina Technologies', author_email='[email protected]', url='https://github.com/bioinfor...
from setuptools import setup, find_packages setup( name='MetaSV', version='0.1-alpha', description='MetaSV: An accurate and integrative structural-variant caller for next generation sequencing', author='Bina Technologies', author_email='[email protected]', url='https://github.com/bioinfor...
Add another script in install and add a dependency link for pysam
Add another script in install and add a dependency link for pysam
Python
bsd-2-clause
chapmanb/metasv,bioinform/metasv,chapmanb/metasv,bioinform/metasv,msahraeian/metasv,msahraeian/metasv,bioinform/metasv,msahraeian/metasv,chapmanb/metasv
from setuptools import setup, find_packages setup( name='MetaSV', version='0.1-alpha', description='MetaSV: An accurate and integrative structural-variant caller for next generation sequencing', author='Bina Technologies', author_email='[email protected]', url='https://github.com/bioinfor...
from setuptools import setup, find_packages setup( name='MetaSV', version='0.1-alpha', description='MetaSV: An accurate and integrative structural-variant caller for next generation sequencing', author='Bina Technologies', author_email='[email protected]', url='https://github.com/bioinfor...
<commit_before>from setuptools import setup, find_packages setup( name='MetaSV', version='0.1-alpha', description='MetaSV: An accurate and integrative structural-variant caller for next generation sequencing', author='Bina Technologies', author_email='[email protected]', url='https://gith...
from setuptools import setup, find_packages setup( name='MetaSV', version='0.1-alpha', description='MetaSV: An accurate and integrative structural-variant caller for next generation sequencing', author='Bina Technologies', author_email='[email protected]', url='https://github.com/bioinfor...
from setuptools import setup, find_packages setup( name='MetaSV', version='0.1-alpha', description='MetaSV: An accurate and integrative structural-variant caller for next generation sequencing', author='Bina Technologies', author_email='[email protected]', url='https://github.com/bioinfor...
<commit_before>from setuptools import setup, find_packages setup( name='MetaSV', version='0.1-alpha', description='MetaSV: An accurate and integrative structural-variant caller for next generation sequencing', author='Bina Technologies', author_email='[email protected]', url='https://gith...
4c1ff61540a6f97a80b150f337e892a728d9944b
feedhq/feeds/management/commands/favicons.py
feedhq/feeds/management/commands/favicons.py
from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from raven import Client from ...models import Feed, Favicon class Command(BaseCommand): """Fetches favicon updates and saves them if there are any""" optio...
from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from raven import Client from ...models import UniqueFeed, Favicon class Command(BaseCommand): """Fetches favicon updates and saves them if there are any""" ...
Update favicon based on UniqueFeed values, not Feed
Update favicon based on UniqueFeed values, not Feed
Python
bsd-3-clause
feedhq/feedhq,feedhq/feedhq,rmoorman/feedhq,rmoorman/feedhq,vincentbernat/feedhq,feedhq/feedhq,vincentbernat/feedhq,feedhq/feedhq,vincentbernat/feedhq,vincentbernat/feedhq,rmoorman/feedhq,rmoorman/feedhq,vincentbernat/feedhq,feedhq/feedhq,rmoorman/feedhq
from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from raven import Client from ...models import Feed, Favicon class Command(BaseCommand): """Fetches favicon updates and saves them if there are any""" optio...
from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from raven import Client from ...models import UniqueFeed, Favicon class Command(BaseCommand): """Fetches favicon updates and saves them if there are any""" ...
<commit_before>from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from raven import Client from ...models import Feed, Favicon class Command(BaseCommand): """Fetches favicon updates and saves them if there are a...
from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from raven import Client from ...models import UniqueFeed, Favicon class Command(BaseCommand): """Fetches favicon updates and saves them if there are any""" ...
from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from raven import Client from ...models import Feed, Favicon class Command(BaseCommand): """Fetches favicon updates and saves them if there are any""" optio...
<commit_before>from optparse import make_option from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection from raven import Client from ...models import Feed, Favicon class Command(BaseCommand): """Fetches favicon updates and saves them if there are a...
5ed2886fa89d25da93ca12ceb9d1f9f25dec19fc
apps/challenge/management/commands/generate_challenge_feed_1st_complete.py
apps/challenge/management/commands/generate_challenge_feed_1st_complete.py
from optparse import make_option import sys from django.core.management.base import BaseCommand from challenge.models import Challenge, UserChallenge from resources.models import Resource from django.conf import settings from django.db.models import Avg, Max, Min, Count class Command(BaseCommand): args = "" he...
from optparse import make_option import sys from django.core.management.base import BaseCommand from challenge.models import Challenge, UserChallenge from resources.models import Resource from django.conf import settings from django.db.models import Avg, Max, Min, Count class Command(BaseCommand): args = "" he...
Fix order for 'first to complete' calculation
Fix order for 'first to complete' calculation
Python
bsd-3-clause
mfitzp/smrtr,mfitzp/smrtr
from optparse import make_option import sys from django.core.management.base import BaseCommand from challenge.models import Challenge, UserChallenge from resources.models import Resource from django.conf import settings from django.db.models import Avg, Max, Min, Count class Command(BaseCommand): args = "" he...
from optparse import make_option import sys from django.core.management.base import BaseCommand from challenge.models import Challenge, UserChallenge from resources.models import Resource from django.conf import settings from django.db.models import Avg, Max, Min, Count class Command(BaseCommand): args = "" he...
<commit_before>from optparse import make_option import sys from django.core.management.base import BaseCommand from challenge.models import Challenge, UserChallenge from resources.models import Resource from django.conf import settings from django.db.models import Avg, Max, Min, Count class Command(BaseCommand): a...
from optparse import make_option import sys from django.core.management.base import BaseCommand from challenge.models import Challenge, UserChallenge from resources.models import Resource from django.conf import settings from django.db.models import Avg, Max, Min, Count class Command(BaseCommand): args = "" he...
from optparse import make_option import sys from django.core.management.base import BaseCommand from challenge.models import Challenge, UserChallenge from resources.models import Resource from django.conf import settings from django.db.models import Avg, Max, Min, Count class Command(BaseCommand): args = "" he...
<commit_before>from optparse import make_option import sys from django.core.management.base import BaseCommand from challenge.models import Challenge, UserChallenge from resources.models import Resource from django.conf import settings from django.db.models import Avg, Max, Min, Count class Command(BaseCommand): a...
5d36b16fde863cccf404f658f53eac600ac9ddb1
foomodules/link_harvester/common_handlers.py
foomodules/link_harvester/common_handlers.py
import re import socket import urllib from bs4 import BeautifulSoup WURSTBALL_RE = re.compile("^http[s]://wurstball.de/[0-9]+/") def default_handler(metadata): return {key: getattr(metadata, key) for key in ["original_url", "url", "title", "description", "human_readable_type"]} def wu...
import logging import re import socket import urllib from bs4 import BeautifulSoup logger = logging.getLogger(__name__) WURSTBALL_RE = re.compile("^http[s]://wurstball.de/[0-9]+/") def default_handler(metadata): return {key: getattr(metadata, key) for key in ["original_url", "url", "title", "descript...
Print warning when wurstball downloads fail
Print warning when wurstball downloads fail
Python
mit
horazont/xmpp-crowd
import re import socket import urllib from bs4 import BeautifulSoup WURSTBALL_RE = re.compile("^http[s]://wurstball.de/[0-9]+/") def default_handler(metadata): return {key: getattr(metadata, key) for key in ["original_url", "url", "title", "description", "human_readable_type"]} def wu...
import logging import re import socket import urllib from bs4 import BeautifulSoup logger = logging.getLogger(__name__) WURSTBALL_RE = re.compile("^http[s]://wurstball.de/[0-9]+/") def default_handler(metadata): return {key: getattr(metadata, key) for key in ["original_url", "url", "title", "descript...
<commit_before>import re import socket import urllib from bs4 import BeautifulSoup WURSTBALL_RE = re.compile("^http[s]://wurstball.de/[0-9]+/") def default_handler(metadata): return {key: getattr(metadata, key) for key in ["original_url", "url", "title", "description", "human_readable_t...
import logging import re import socket import urllib from bs4 import BeautifulSoup logger = logging.getLogger(__name__) WURSTBALL_RE = re.compile("^http[s]://wurstball.de/[0-9]+/") def default_handler(metadata): return {key: getattr(metadata, key) for key in ["original_url", "url", "title", "descript...
import re import socket import urllib from bs4 import BeautifulSoup WURSTBALL_RE = re.compile("^http[s]://wurstball.de/[0-9]+/") def default_handler(metadata): return {key: getattr(metadata, key) for key in ["original_url", "url", "title", "description", "human_readable_type"]} def wu...
<commit_before>import re import socket import urllib from bs4 import BeautifulSoup WURSTBALL_RE = re.compile("^http[s]://wurstball.de/[0-9]+/") def default_handler(metadata): return {key: getattr(metadata, key) for key in ["original_url", "url", "title", "description", "human_readable_t...
5a8d7375b617bd5605bce5f09a4caedef170a85c
gbpservice/neutron/db/migration/cli.py
gbpservice/neutron/db/migration/cli.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
Set project when doing neutron DB migrations
Set project when doing neutron DB migrations That way, the default configuration files/dirs from the neutron projects are read when doing the DB migrations. This is useful if eg. some configuration files are in /etc/neutron/neutron.conf.d/ . Theses files will then be automatically evaluated. Change-Id: I4997a86c4df5f...
Python
apache-2.0
noironetworks/group-based-policy,stackforge/group-based-policy,stackforge/group-based-policy,noironetworks/group-based-policy
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
a58e035027c732f519791fe587ddd509c7013344
mail/tests/handlers/react_tests.py
mail/tests/handlers/react_tests.py
from nose.tools import * from lamson.testing import * import os from lamson import server relay = relay(port=8823) client = RouterConversation("queuetester@localhost", "requests_tests") confirm_format = "testing-confirm-[0-9]+@" noreply_format = "testing-noreply@" host = "localhost" def test_react_for_existing_proje...
from nose.tools import * from lamson.testing import * import os from lamson import server relay = relay(port=8823) client = RouterConversation("queuetester@localhost", "requests_tests") confirm_format = "testing-confirm-[0-9]+@" noreply_format = "testing-noreply@" host = "localhost" def test_react_for_existing_proje...
Add tests for sending messages to "user" projects
Add tests for sending messages to "user" projects
Python
apache-2.0
heiths/allura,leotrubach/sourceforge-allura,lym/allura-git,lym/allura-git,apache/allura,leotrubach/sourceforge-allura,apache/incubator-allura,apache/allura,apache/incubator-allura,Bitergia/allura,Bitergia/allura,heiths/allura,lym/allura-git,apache/allura,lym/allura-git,leotrubach/sourceforge-allura,apache/incubator-all...
from nose.tools import * from lamson.testing import * import os from lamson import server relay = relay(port=8823) client = RouterConversation("queuetester@localhost", "requests_tests") confirm_format = "testing-confirm-[0-9]+@" noreply_format = "testing-noreply@" host = "localhost" def test_react_for_existing_proje...
from nose.tools import * from lamson.testing import * import os from lamson import server relay = relay(port=8823) client = RouterConversation("queuetester@localhost", "requests_tests") confirm_format = "testing-confirm-[0-9]+@" noreply_format = "testing-noreply@" host = "localhost" def test_react_for_existing_proje...
<commit_before>from nose.tools import * from lamson.testing import * import os from lamson import server relay = relay(port=8823) client = RouterConversation("queuetester@localhost", "requests_tests") confirm_format = "testing-confirm-[0-9]+@" noreply_format = "testing-noreply@" host = "localhost" def test_react_for...
from nose.tools import * from lamson.testing import * import os from lamson import server relay = relay(port=8823) client = RouterConversation("queuetester@localhost", "requests_tests") confirm_format = "testing-confirm-[0-9]+@" noreply_format = "testing-noreply@" host = "localhost" def test_react_for_existing_proje...
from nose.tools import * from lamson.testing import * import os from lamson import server relay = relay(port=8823) client = RouterConversation("queuetester@localhost", "requests_tests") confirm_format = "testing-confirm-[0-9]+@" noreply_format = "testing-noreply@" host = "localhost" def test_react_for_existing_proje...
<commit_before>from nose.tools import * from lamson.testing import * import os from lamson import server relay = relay(port=8823) client = RouterConversation("queuetester@localhost", "requests_tests") confirm_format = "testing-confirm-[0-9]+@" noreply_format = "testing-noreply@" host = "localhost" def test_react_for...
1ff4b0473c79150d5387ed2174b120128d465737
app.py
app.py
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" if __name__ == "__main__": app.run();
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" @app.route("/user/<username>") def show_user(username): return "User page for user " + username @app.route("/game/<gamename>") def show_game(gamename): return "Game page for game " + gamename @app.route("/g...
Add stub methods for expected paths
Add stub methods for expected paths
Python
mit
JamesLaverack/scoreboard,JamesLaverack/scoreboard,JamesLaverack/scoreboard
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" if __name__ == "__main__": app.run(); Add stub methods for expected paths
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" @app.route("/user/<username>") def show_user(username): return "User page for user " + username @app.route("/game/<gamename>") def show_game(gamename): return "Game page for game " + gamename @app.route("/g...
<commit_before>from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" if __name__ == "__main__": app.run(); <commit_msg>Add stub methods for expected paths<commit_after>
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" @app.route("/user/<username>") def show_user(username): return "User page for user " + username @app.route("/game/<gamename>") def show_game(gamename): return "Game page for game " + gamename @app.route("/g...
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" if __name__ == "__main__": app.run(); Add stub methods for expected pathsfrom flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" @app.route("/user/<username>") def ...
<commit_before>from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, world!" if __name__ == "__main__": app.run(); <commit_msg>Add stub methods for expected paths<commit_after>from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, wor...
6cd1c7a95ca4162643b6d52f4bb82596178fde22
gaphor/UML/__init__.py
gaphor/UML/__init__.py
# Here, order matters from gaphor.UML.uml2 import * # noqa: isort:skip from gaphor.UML.presentation import Presentation # noqa: isort:skip import gaphor.UML.uml2overrides # noqa: isort:skip from gaphor.UML.elementfactory import ElementFactory # noqa: isort:skip from gaphor.UML import modelfactory as model # noqa: ...
# Here, order matters from gaphor.UML.uml2 import * # noqa: isort:skip from gaphor.UML.presentation import Presentation # noqa: isort:skip from gaphor.UML.elementfactory import ElementFactory # noqa: isort:skip from gaphor.UML import modelfactory as model # noqa: isort:skip from gaphor.UML.umlfmt import format fro...
Reorder imports in UML module
Reorder imports in UML module
Python
lgpl-2.1
amolenaar/gaphor,amolenaar/gaphor
# Here, order matters from gaphor.UML.uml2 import * # noqa: isort:skip from gaphor.UML.presentation import Presentation # noqa: isort:skip import gaphor.UML.uml2overrides # noqa: isort:skip from gaphor.UML.elementfactory import ElementFactory # noqa: isort:skip from gaphor.UML import modelfactory as model # noqa: ...
# Here, order matters from gaphor.UML.uml2 import * # noqa: isort:skip from gaphor.UML.presentation import Presentation # noqa: isort:skip from gaphor.UML.elementfactory import ElementFactory # noqa: isort:skip from gaphor.UML import modelfactory as model # noqa: isort:skip from gaphor.UML.umlfmt import format fro...
<commit_before># Here, order matters from gaphor.UML.uml2 import * # noqa: isort:skip from gaphor.UML.presentation import Presentation # noqa: isort:skip import gaphor.UML.uml2overrides # noqa: isort:skip from gaphor.UML.elementfactory import ElementFactory # noqa: isort:skip from gaphor.UML import modelfactory as ...
# Here, order matters from gaphor.UML.uml2 import * # noqa: isort:skip from gaphor.UML.presentation import Presentation # noqa: isort:skip from gaphor.UML.elementfactory import ElementFactory # noqa: isort:skip from gaphor.UML import modelfactory as model # noqa: isort:skip from gaphor.UML.umlfmt import format fro...
# Here, order matters from gaphor.UML.uml2 import * # noqa: isort:skip from gaphor.UML.presentation import Presentation # noqa: isort:skip import gaphor.UML.uml2overrides # noqa: isort:skip from gaphor.UML.elementfactory import ElementFactory # noqa: isort:skip from gaphor.UML import modelfactory as model # noqa: ...
<commit_before># Here, order matters from gaphor.UML.uml2 import * # noqa: isort:skip from gaphor.UML.presentation import Presentation # noqa: isort:skip import gaphor.UML.uml2overrides # noqa: isort:skip from gaphor.UML.elementfactory import ElementFactory # noqa: isort:skip from gaphor.UML import modelfactory as ...
d89ce876e4cba010b060599d1f23d23f63552ad9
globaleaks/__init__.py
globaleaks/__init__.py
# -*- encoding: utf-8 -*- # # In here we shall keep track of all variables and objects that should be # instantiated only once and be common to pieces of GLBackend code. __version__ = '2.24.16' DATABASE_VERSION = 6 # Add here by hand the languages supported! # copy paste format from 'grunt makeTranslations' LANGUAGES...
# -*- encoding: utf-8 -*- # # In here we shall keep track of all variables and objects that should be # instantiated only once and be common to pieces of GLBackend code. __version__ = '2.24.16' DATABASE_VERSION = 6 # Add here by hand the languages supported! # copy paste format from 'grunt makeTranslations' LANGUAGES...
Fix typo inside of LANGUAGES_SUPPORTED.
Fix typo inside of LANGUAGES_SUPPORTED.
Python
agpl-3.0
vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks
# -*- encoding: utf-8 -*- # # In here we shall keep track of all variables and objects that should be # instantiated only once and be common to pieces of GLBackend code. __version__ = '2.24.16' DATABASE_VERSION = 6 # Add here by hand the languages supported! # copy paste format from 'grunt makeTranslations' LANGUAGES...
# -*- encoding: utf-8 -*- # # In here we shall keep track of all variables and objects that should be # instantiated only once and be common to pieces of GLBackend code. __version__ = '2.24.16' DATABASE_VERSION = 6 # Add here by hand the languages supported! # copy paste format from 'grunt makeTranslations' LANGUAGES...
<commit_before># -*- encoding: utf-8 -*- # # In here we shall keep track of all variables and objects that should be # instantiated only once and be common to pieces of GLBackend code. __version__ = '2.24.16' DATABASE_VERSION = 6 # Add here by hand the languages supported! # copy paste format from 'grunt makeTranslat...
# -*- encoding: utf-8 -*- # # In here we shall keep track of all variables and objects that should be # instantiated only once and be common to pieces of GLBackend code. __version__ = '2.24.16' DATABASE_VERSION = 6 # Add here by hand the languages supported! # copy paste format from 'grunt makeTranslations' LANGUAGES...
# -*- encoding: utf-8 -*- # # In here we shall keep track of all variables and objects that should be # instantiated only once and be common to pieces of GLBackend code. __version__ = '2.24.16' DATABASE_VERSION = 6 # Add here by hand the languages supported! # copy paste format from 'grunt makeTranslations' LANGUAGES...
<commit_before># -*- encoding: utf-8 -*- # # In here we shall keep track of all variables and objects that should be # instantiated only once and be common to pieces of GLBackend code. __version__ = '2.24.16' DATABASE_VERSION = 6 # Add here by hand the languages supported! # copy paste format from 'grunt makeTranslat...
65c3f9fa4e31bc2c1c448846faba4af58bfd5e61
src/download.py
src/download.py
import tarfile import os from six.moves.urllib import request url_dir = 'https://www.cs.toronto.edu/~kriz/' file_name = 'cifar-10-python.tar.gz' save_dir = 'dataset' tar_path = os.path.join(save_dir, file_name) if __name__ == '__main__': if os.path.exists(tar_path): print('{:s} already downloaded.'.format...
import tarfile import os from six.moves.urllib import request url_dir = 'https://www.cs.toronto.edu/~kriz/' file_name = 'cifar-10-python.tar.gz' save_dir = 'dataset' tar_path = os.path.join(save_dir, file_name) if __name__ == '__main__': if not os.path.exists(save_dir): os.makedirs(save_dir) if os.pat...
Make dataset directory if it does not exist.
[fix] Make dataset directory if it does not exist.
Python
mit
dsanno/chainer-cifar
import tarfile import os from six.moves.urllib import request url_dir = 'https://www.cs.toronto.edu/~kriz/' file_name = 'cifar-10-python.tar.gz' save_dir = 'dataset' tar_path = os.path.join(save_dir, file_name) if __name__ == '__main__': if os.path.exists(tar_path): print('{:s} already downloaded.'.format...
import tarfile import os from six.moves.urllib import request url_dir = 'https://www.cs.toronto.edu/~kriz/' file_name = 'cifar-10-python.tar.gz' save_dir = 'dataset' tar_path = os.path.join(save_dir, file_name) if __name__ == '__main__': if not os.path.exists(save_dir): os.makedirs(save_dir) if os.pat...
<commit_before>import tarfile import os from six.moves.urllib import request url_dir = 'https://www.cs.toronto.edu/~kriz/' file_name = 'cifar-10-python.tar.gz' save_dir = 'dataset' tar_path = os.path.join(save_dir, file_name) if __name__ == '__main__': if os.path.exists(tar_path): print('{:s} already down...
import tarfile import os from six.moves.urllib import request url_dir = 'https://www.cs.toronto.edu/~kriz/' file_name = 'cifar-10-python.tar.gz' save_dir = 'dataset' tar_path = os.path.join(save_dir, file_name) if __name__ == '__main__': if not os.path.exists(save_dir): os.makedirs(save_dir) if os.pat...
import tarfile import os from six.moves.urllib import request url_dir = 'https://www.cs.toronto.edu/~kriz/' file_name = 'cifar-10-python.tar.gz' save_dir = 'dataset' tar_path = os.path.join(save_dir, file_name) if __name__ == '__main__': if os.path.exists(tar_path): print('{:s} already downloaded.'.format...
<commit_before>import tarfile import os from six.moves.urllib import request url_dir = 'https://www.cs.toronto.edu/~kriz/' file_name = 'cifar-10-python.tar.gz' save_dir = 'dataset' tar_path = os.path.join(save_dir, file_name) if __name__ == '__main__': if os.path.exists(tar_path): print('{:s} already down...
8836c5a5274c2a3573d2e706b67a1288de6e59bd
utils/repl.py
utils/repl.py
from nex.state import GlobalState from nex.reader import Reader, EndOfFile from nex.lexer import Lexer from nex.instructioner import Instructioner from nex.banisher import Banisher from nex.parsing.command_parser import command_parser from nex.parsing.utils import ChunkGrabber from nex.box_writer import write_to_file f...
from nex.state import GlobalState from nex.reader import Reader from nex.lexer import Lexer from nex.instructioner import Instructioner from nex.banisher import Banisher from nex.parsing.command_parser import command_parser from nex.parsing.utils import ChunkGrabber from nex.box_writer import write_to_dvi_file from nex...
Insert plain.tex into REPL state
Insert plain.tex into REPL state
Python
mit
eddiejessup/nex
from nex.state import GlobalState from nex.reader import Reader, EndOfFile from nex.lexer import Lexer from nex.instructioner import Instructioner from nex.banisher import Banisher from nex.parsing.command_parser import command_parser from nex.parsing.utils import ChunkGrabber from nex.box_writer import write_to_file f...
from nex.state import GlobalState from nex.reader import Reader from nex.lexer import Lexer from nex.instructioner import Instructioner from nex.banisher import Banisher from nex.parsing.command_parser import command_parser from nex.parsing.utils import ChunkGrabber from nex.box_writer import write_to_dvi_file from nex...
<commit_before>from nex.state import GlobalState from nex.reader import Reader, EndOfFile from nex.lexer import Lexer from nex.instructioner import Instructioner from nex.banisher import Banisher from nex.parsing.command_parser import command_parser from nex.parsing.utils import ChunkGrabber from nex.box_writer import ...
from nex.state import GlobalState from nex.reader import Reader from nex.lexer import Lexer from nex.instructioner import Instructioner from nex.banisher import Banisher from nex.parsing.command_parser import command_parser from nex.parsing.utils import ChunkGrabber from nex.box_writer import write_to_dvi_file from nex...
from nex.state import GlobalState from nex.reader import Reader, EndOfFile from nex.lexer import Lexer from nex.instructioner import Instructioner from nex.banisher import Banisher from nex.parsing.command_parser import command_parser from nex.parsing.utils import ChunkGrabber from nex.box_writer import write_to_file f...
<commit_before>from nex.state import GlobalState from nex.reader import Reader, EndOfFile from nex.lexer import Lexer from nex.instructioner import Instructioner from nex.banisher import Banisher from nex.parsing.command_parser import command_parser from nex.parsing.utils import ChunkGrabber from nex.box_writer import ...
4324257e5fe1c49281e4844b07d222b68bd45287
avalon/fusion/lib.py
avalon/fusion/lib.py
import re import os import contextlib from . import pipeline @contextlib.contextmanager def maintained_selection(): comp = pipeline.get_current_comp() previous_selection = comp.GetToolList(True).values() try: yield finally: flow = comp.CurrentFrame.FlowView flow.Select() # No...
import re import os import contextlib from . import pipeline @contextlib.contextmanager def maintained_selection(): comp = pipeline.get_current_comp() previous_selection = comp.GetToolList(True).values() try: yield finally: flow = comp.CurrentFrame.FlowView flow.Select() # No...
Fix doctest - not sure why it was failing on the quotation marks
Fix doctest - not sure why it was failing on the quotation marks
Python
mit
getavalon/core,mindbender-studio/core,mindbender-studio/core,getavalon/core
import re import os import contextlib from . import pipeline @contextlib.contextmanager def maintained_selection(): comp = pipeline.get_current_comp() previous_selection = comp.GetToolList(True).values() try: yield finally: flow = comp.CurrentFrame.FlowView flow.Select() # No...
import re import os import contextlib from . import pipeline @contextlib.contextmanager def maintained_selection(): comp = pipeline.get_current_comp() previous_selection = comp.GetToolList(True).values() try: yield finally: flow = comp.CurrentFrame.FlowView flow.Select() # No...
<commit_before>import re import os import contextlib from . import pipeline @contextlib.contextmanager def maintained_selection(): comp = pipeline.get_current_comp() previous_selection = comp.GetToolList(True).values() try: yield finally: flow = comp.CurrentFrame.FlowView flow...
import re import os import contextlib from . import pipeline @contextlib.contextmanager def maintained_selection(): comp = pipeline.get_current_comp() previous_selection = comp.GetToolList(True).values() try: yield finally: flow = comp.CurrentFrame.FlowView flow.Select() # No...
import re import os import contextlib from . import pipeline @contextlib.contextmanager def maintained_selection(): comp = pipeline.get_current_comp() previous_selection = comp.GetToolList(True).values() try: yield finally: flow = comp.CurrentFrame.FlowView flow.Select() # No...
<commit_before>import re import os import contextlib from . import pipeline @contextlib.contextmanager def maintained_selection(): comp = pipeline.get_current_comp() previous_selection = comp.GetToolList(True).values() try: yield finally: flow = comp.CurrentFrame.FlowView flow...
7b08777d77d6cfd5a4eeeee81fb51f5fdedde987
bumblebee/modules/caffeine.py
bumblebee/modules/caffeine.py
# pylint: disable=C0111,R0903 """Enable/disable automatic screen locking. Requires the following executables: * xset * notify-send """ import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, s...
# pylint: disable=C0111,R0903 """Enable/disable automatic screen locking. Requires the following executables: * xset * notify-send """ import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, s...
Add support for switching dpms
Add support for switching dpms
Python
mit
tobi-wan-kenobi/bumblebee-status,tobi-wan-kenobi/bumblebee-status
# pylint: disable=C0111,R0903 """Enable/disable automatic screen locking. Requires the following executables: * xset * notify-send """ import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, s...
# pylint: disable=C0111,R0903 """Enable/disable automatic screen locking. Requires the following executables: * xset * notify-send """ import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, s...
<commit_before># pylint: disable=C0111,R0903 """Enable/disable automatic screen locking. Requires the following executables: * xset * notify-send """ import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): ...
# pylint: disable=C0111,R0903 """Enable/disable automatic screen locking. Requires the following executables: * xset * notify-send """ import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, s...
# pylint: disable=C0111,R0903 """Enable/disable automatic screen locking. Requires the following executables: * xset * notify-send """ import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, s...
<commit_before># pylint: disable=C0111,R0903 """Enable/disable automatic screen locking. Requires the following executables: * xset * notify-send """ import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): ...
fd46372e7c8b6d0a181b9be0af1d812351874ec4
furious/extras/appengine/ndb_persistence.py
furious/extras/appengine/ndb_persistence.py
def store_async_result(async): """Persist the Async's result to the datastore.""" pass def store_async_marker(async): """Persist a marker indicating the Async ran to the datastore.""" pass
# # Copyright 2014 WebFilings, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
Add simple ndb_persitence Context storage model
Add simple ndb_persitence Context storage model
Python
apache-2.0
rosshendrickson-wf/furious,Workiva/furious,rosshendrickson-wf/furious,beaulyddon-wf/furious,mattsanders-wf/furious,andreleblanc-wf/furious,beaulyddon-wf/furious,mattsanders-wf/furious,andreleblanc-wf/furious,Workiva/furious
def store_async_result(async): """Persist the Async's result to the datastore.""" pass def store_async_marker(async): """Persist a marker indicating the Async ran to the datastore.""" pass Add simple ndb_persitence Context storage model
# # Copyright 2014 WebFilings, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
<commit_before> def store_async_result(async): """Persist the Async's result to the datastore.""" pass def store_async_marker(async): """Persist a marker indicating the Async ran to the datastore.""" pass <commit_msg>Add simple ndb_persitence Context storage model<commit_after>
# # Copyright 2014 WebFilings, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
def store_async_result(async): """Persist the Async's result to the datastore.""" pass def store_async_marker(async): """Persist a marker indicating the Async ran to the datastore.""" pass Add simple ndb_persitence Context storage model# # Copyright 2014 WebFilings, LLC # # Licensed under the Apache...
<commit_before> def store_async_result(async): """Persist the Async's result to the datastore.""" pass def store_async_marker(async): """Persist a marker indicating the Async ran to the datastore.""" pass <commit_msg>Add simple ndb_persitence Context storage model<commit_after># # Copyright 2014 WebF...
03d62abc0f48e49e1bfd672ab6c7c60cd8f6fef5
users/models.py
users/models.py
from django.contrib.auth.models import AbstractUser from django.db import models class Person(AbstractUser): description = models.TextField(blank=True) def __str__(self): return "User(<{}>}".format(self.email)
from django.contrib.auth.models import AbstractUser from django.db import models class Person(AbstractUser): description = models.TextField(blank=True) def __str__(self): if self.email: return "User(<{}>)".format(self.email) return "User(<{}>)".format(self.username)
Fix return string from user model
Fix return string from user model Also return username if there is no email address set
Python
mit
Nikola-K/django-template,Nikola-K/django-template
from django.contrib.auth.models import AbstractUser from django.db import models class Person(AbstractUser): description = models.TextField(blank=True) def __str__(self): return "User(<{}>}".format(self.email) Fix return string from user model Also return username if there is no email address set
from django.contrib.auth.models import AbstractUser from django.db import models class Person(AbstractUser): description = models.TextField(blank=True) def __str__(self): if self.email: return "User(<{}>)".format(self.email) return "User(<{}>)".format(self.username)
<commit_before>from django.contrib.auth.models import AbstractUser from django.db import models class Person(AbstractUser): description = models.TextField(blank=True) def __str__(self): return "User(<{}>}".format(self.email) <commit_msg>Fix return string from user model Also return username if the...
from django.contrib.auth.models import AbstractUser from django.db import models class Person(AbstractUser): description = models.TextField(blank=True) def __str__(self): if self.email: return "User(<{}>)".format(self.email) return "User(<{}>)".format(self.username)
from django.contrib.auth.models import AbstractUser from django.db import models class Person(AbstractUser): description = models.TextField(blank=True) def __str__(self): return "User(<{}>}".format(self.email) Fix return string from user model Also return username if there is no email address setf...
<commit_before>from django.contrib.auth.models import AbstractUser from django.db import models class Person(AbstractUser): description = models.TextField(blank=True) def __str__(self): return "User(<{}>}".format(self.email) <commit_msg>Fix return string from user model Also return username if the...
38efa77f8831b2fcceb5f86f31a1ec7dc6aa5627
src/odometry.py
src/odometry.py
#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry current_odometry = None def get_odometry(message): global current_odometry current_odometry = message if __name__ == '__main__': rospy.init_node('odometry') subscriber = rospy.Subscriber('odom', Odometry, get_odometry) publishe...
#!/usr/bin/env python import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Pose current_pose = None def get_pose(message): global current_pose current_pose = message.pose[0] if __name__ == '__main__': rospy.init_node('pose') subscriber = rospy.Subscriber('gazebo/mo...
Change subscribed topic and message type
Change subscribed topic and message type
Python
mit
bit0001/trajectory_tracking,bit0001/trajectory_tracking
#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry current_odometry = None def get_odometry(message): global current_odometry current_odometry = message if __name__ == '__main__': rospy.init_node('odometry') subscriber = rospy.Subscriber('odom', Odometry, get_odometry) publishe...
#!/usr/bin/env python import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Pose current_pose = None def get_pose(message): global current_pose current_pose = message.pose[0] if __name__ == '__main__': rospy.init_node('pose') subscriber = rospy.Subscriber('gazebo/mo...
<commit_before>#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry current_odometry = None def get_odometry(message): global current_odometry current_odometry = message if __name__ == '__main__': rospy.init_node('odometry') subscriber = rospy.Subscriber('odom', Odometry, get_odometr...
#!/usr/bin/env python import rospy from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Pose current_pose = None def get_pose(message): global current_pose current_pose = message.pose[0] if __name__ == '__main__': rospy.init_node('pose') subscriber = rospy.Subscriber('gazebo/mo...
#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry current_odometry = None def get_odometry(message): global current_odometry current_odometry = message if __name__ == '__main__': rospy.init_node('odometry') subscriber = rospy.Subscriber('odom', Odometry, get_odometry) publishe...
<commit_before>#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry current_odometry = None def get_odometry(message): global current_odometry current_odometry = message if __name__ == '__main__': rospy.init_node('odometry') subscriber = rospy.Subscriber('odom', Odometry, get_odometr...
ea2922cabe441abcf0475445d94cffed0d0fa131
kafka/kafkaConsumer.py
kafka/kafkaConsumer.py
#!/usr/bin/env python import threading, logging, time from kafka import KafkaConsumer class Consumer(threading.Thread): daemon = True def run(self): #consumer = KafkaConsumer(bootstrap_servers='10.100.198.220:9092', consumer = KafkaConsumer(bootstrap_servers='10.0.2.15:9092', ...
#!/usr/bin/env python import threading, logging, time from kafka import KafkaConsumer class Consumer(threading.Thread): daemon = True def run(self): consumer = KafkaConsumer(bootstrap_servers='10.100.198.220:9092', #consumer = KafkaConsumer(bootstrap_servers='10.0.2.15:9092', ...
Update IP address of kafka consumer
Update IP address of kafka consumer
Python
apache-2.0
opencord/voltha,opencord/voltha,opencord/voltha,opencord/voltha,opencord/voltha
#!/usr/bin/env python import threading, logging, time from kafka import KafkaConsumer class Consumer(threading.Thread): daemon = True def run(self): #consumer = KafkaConsumer(bootstrap_servers='10.100.198.220:9092', consumer = KafkaConsumer(bootstrap_servers='10.0.2.15:9092', ...
#!/usr/bin/env python import threading, logging, time from kafka import KafkaConsumer class Consumer(threading.Thread): daemon = True def run(self): consumer = KafkaConsumer(bootstrap_servers='10.100.198.220:9092', #consumer = KafkaConsumer(bootstrap_servers='10.0.2.15:9092', ...
<commit_before>#!/usr/bin/env python import threading, logging, time from kafka import KafkaConsumer class Consumer(threading.Thread): daemon = True def run(self): #consumer = KafkaConsumer(bootstrap_servers='10.100.198.220:9092', consumer = KafkaConsumer(bootstrap_servers='10.0.2.15:9092', ...
#!/usr/bin/env python import threading, logging, time from kafka import KafkaConsumer class Consumer(threading.Thread): daemon = True def run(self): consumer = KafkaConsumer(bootstrap_servers='10.100.198.220:9092', #consumer = KafkaConsumer(bootstrap_servers='10.0.2.15:9092', ...
#!/usr/bin/env python import threading, logging, time from kafka import KafkaConsumer class Consumer(threading.Thread): daemon = True def run(self): #consumer = KafkaConsumer(bootstrap_servers='10.100.198.220:9092', consumer = KafkaConsumer(bootstrap_servers='10.0.2.15:9092', ...
<commit_before>#!/usr/bin/env python import threading, logging, time from kafka import KafkaConsumer class Consumer(threading.Thread): daemon = True def run(self): #consumer = KafkaConsumer(bootstrap_servers='10.100.198.220:9092', consumer = KafkaConsumer(bootstrap_servers='10.0.2.15:9092', ...
440b8424f11dc1f665bb512d30795c2bb6eda96e
mapentity/tests/models.py
mapentity/tests/models.py
from django.db.models import loading from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry from mapentity.models import MapEntityMixin class MushroomSpot(models.Model): serialized = models.CharField(max_length=200, null=True, default=None) """geom as python attribute""" ...
from django.db.models import loading from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry from mapentity.models import MapEntityMixin class MushroomSpot(models.Model): name = models.CharField(max_length=100, default='Empty') serialized = models.CharField(max_length=200, n...
Add normal field to test model
Add normal field to test model
Python
bsd-3-clause
Anaethelion/django-mapentity,makinacorpus/django-mapentity,Anaethelion/django-mapentity,makinacorpus/django-mapentity,Anaethelion/django-mapentity,makinacorpus/django-mapentity
from django.db.models import loading from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry from mapentity.models import MapEntityMixin class MushroomSpot(models.Model): serialized = models.CharField(max_length=200, null=True, default=None) """geom as python attribute""" ...
from django.db.models import loading from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry from mapentity.models import MapEntityMixin class MushroomSpot(models.Model): name = models.CharField(max_length=100, default='Empty') serialized = models.CharField(max_length=200, n...
<commit_before>from django.db.models import loading from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry from mapentity.models import MapEntityMixin class MushroomSpot(models.Model): serialized = models.CharField(max_length=200, null=True, default=None) """geom as python...
from django.db.models import loading from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry from mapentity.models import MapEntityMixin class MushroomSpot(models.Model): name = models.CharField(max_length=100, default='Empty') serialized = models.CharField(max_length=200, n...
from django.db.models import loading from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry from mapentity.models import MapEntityMixin class MushroomSpot(models.Model): serialized = models.CharField(max_length=200, null=True, default=None) """geom as python attribute""" ...
<commit_before>from django.db.models import loading from django.contrib.gis.db import models from django.contrib.gis.geos import GEOSGeometry from mapentity.models import MapEntityMixin class MushroomSpot(models.Model): serialized = models.CharField(max_length=200, null=True, default=None) """geom as python...
e34c9ede88524b64b3a84d579718af6766a5e483
bin/get_templates.py
bin/get_templates.py
#!/usr/bin/env python import json import os from engine import types, consts template_dir = os.path.join(os.environ['PORTER'], 'templates') structs = ( (types.new_unit, "Tank", (consts.RED,)), (types.new_attack, "RegularCannon", ()), (types.new_armor, "WeakMetal", ()), (types.new_movement, "Treads",...
#!/usr/bin/env python import json import os from lib.functional import multi_map from engine import types, consts template_dir = os.path.join(os.environ['PORTER'], 'templates') structs = ( (types.new_unit, "Tank", (consts.RED,)), (types.new_attack, "RegularCannon", ()), (types.new_armor, "WeakMetal", ()...
Rename print_struct to generate_template and use multi_map
Rename print_struct to generate_template and use multi_map
Python
mit
Tactique/game_engine,Tactique/game_engine
#!/usr/bin/env python import json import os from engine import types, consts template_dir = os.path.join(os.environ['PORTER'], 'templates') structs = ( (types.new_unit, "Tank", (consts.RED,)), (types.new_attack, "RegularCannon", ()), (types.new_armor, "WeakMetal", ()), (types.new_movement, "Treads",...
#!/usr/bin/env python import json import os from lib.functional import multi_map from engine import types, consts template_dir = os.path.join(os.environ['PORTER'], 'templates') structs = ( (types.new_unit, "Tank", (consts.RED,)), (types.new_attack, "RegularCannon", ()), (types.new_armor, "WeakMetal", ()...
<commit_before>#!/usr/bin/env python import json import os from engine import types, consts template_dir = os.path.join(os.environ['PORTER'], 'templates') structs = ( (types.new_unit, "Tank", (consts.RED,)), (types.new_attack, "RegularCannon", ()), (types.new_armor, "WeakMetal", ()), (types.new_move...
#!/usr/bin/env python import json import os from lib.functional import multi_map from engine import types, consts template_dir = os.path.join(os.environ['PORTER'], 'templates') structs = ( (types.new_unit, "Tank", (consts.RED,)), (types.new_attack, "RegularCannon", ()), (types.new_armor, "WeakMetal", ()...
#!/usr/bin/env python import json import os from engine import types, consts template_dir = os.path.join(os.environ['PORTER'], 'templates') structs = ( (types.new_unit, "Tank", (consts.RED,)), (types.new_attack, "RegularCannon", ()), (types.new_armor, "WeakMetal", ()), (types.new_movement, "Treads",...
<commit_before>#!/usr/bin/env python import json import os from engine import types, consts template_dir = os.path.join(os.environ['PORTER'], 'templates') structs = ( (types.new_unit, "Tank", (consts.RED,)), (types.new_attack, "RegularCannon", ()), (types.new_armor, "WeakMetal", ()), (types.new_move...
a8fd3c484e0425168976bd55a687d2c632efa198
lib/ansiblelint/formatters/__init__.py
lib/ansiblelint/formatters/__init__.py
class Formatter: def format(self, match): formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n" return formatstr.format(match.rule.id, match.message, match.filename, match.linenumber, m...
class Formatter: def format(self, match): formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n" return formatstr.format(match.rule.id, match.message, match.filename, match.linenumber, m...
Add brackets around rule ID in parseable format.
Add brackets around rule ID in parseable format. This formatter was supposed to model after the PEP8 format, but was incorrect. The actualy format is: "<filename>:<linenumber>: [<rule.id>] <message>"
Python
mit
MatrixCrawler/ansible-lint,schlueter/ansible-lint,willthames/ansible-lint,MiLk/ansible-lint,charleswhchan/ansible-lint,dataxu/ansible-lint
class Formatter: def format(self, match): formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n" return formatstr.format(match.rule.id, match.message, match.filename, match.linenumber, m...
class Formatter: def format(self, match): formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n" return formatstr.format(match.rule.id, match.message, match.filename, match.linenumber, m...
<commit_before>class Formatter: def format(self, match): formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n" return formatstr.format(match.rule.id, match.message, match.filename, match.linenumber, ...
class Formatter: def format(self, match): formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n" return formatstr.format(match.rule.id, match.message, match.filename, match.linenumber, m...
class Formatter: def format(self, match): formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n" return formatstr.format(match.rule.id, match.message, match.filename, match.linenumber, m...
<commit_before>class Formatter: def format(self, match): formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n" return formatstr.format(match.rule.id, match.message, match.filename, match.linenumber, ...
93abffd833498b4bae083bd70f3f154d9151c384
src/coordinators/models.py
src/coordinators/models.py
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from locations.models import District class Coordinator(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) is_manage...
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from locations.models import District class Coordinator(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) is_manage...
Fix OneToOneField instance check in filter_by_district
Fix OneToOneField instance check in filter_by_district
Python
mit
mrts/foodbank-campaign,mrts/foodbank-campaign,mrts/foodbank-campaign,mrts/foodbank-campaign
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from locations.models import District class Coordinator(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) is_manage...
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from locations.models import District class Coordinator(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) is_manage...
<commit_before>from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from locations.models import District class Coordinator(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE...
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from locations.models import District class Coordinator(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) is_manage...
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from locations.models import District class Coordinator(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) is_manage...
<commit_before>from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from locations.models import District class Coordinator(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE...
53d41d629f0f34bbea3461a37cbe1c8f7f7e15f3
toolkit/diary/edit_prefs.py
toolkit/diary/edit_prefs.py
import logging logger = logging.getLogger(__name__) KNOWN_PREFS = {'popups': True} PREF_MAP = {'false': False, 'true': True} def get_preferences(session): edit_prefs = {} for pref, default in KNOWN_PREFS.iteritems(): value = session.get('editpref_' + pref, default) if value: edi...
import logging logger = logging.getLogger(__name__) KNOWN_PREFS = {'popups': 'true'} def get_preferences(session): edit_prefs = {} for pref, default in KNOWN_PREFS.iteritems(): value = session.get('editpref_' + pref, default) if value: edit_prefs[pref] = value return edit_pref...
Fix default behavior; popup window pref is (for now) stored as a string 'true'/'false', not a python Bool.
Fix default behavior; popup window pref is (for now) stored as a string 'true'/'false', not a python Bool.
Python
agpl-3.0
BenMotz/cubetoolkit,BenMotz/cubetoolkit,BenMotz/cubetoolkit,BenMotz/cubetoolkit
import logging logger = logging.getLogger(__name__) KNOWN_PREFS = {'popups': True} PREF_MAP = {'false': False, 'true': True} def get_preferences(session): edit_prefs = {} for pref, default in KNOWN_PREFS.iteritems(): value = session.get('editpref_' + pref, default) if value: edi...
import logging logger = logging.getLogger(__name__) KNOWN_PREFS = {'popups': 'true'} def get_preferences(session): edit_prefs = {} for pref, default in KNOWN_PREFS.iteritems(): value = session.get('editpref_' + pref, default) if value: edit_prefs[pref] = value return edit_pref...
<commit_before>import logging logger = logging.getLogger(__name__) KNOWN_PREFS = {'popups': True} PREF_MAP = {'false': False, 'true': True} def get_preferences(session): edit_prefs = {} for pref, default in KNOWN_PREFS.iteritems(): value = session.get('editpref_' + pref, default) if value: ...
import logging logger = logging.getLogger(__name__) KNOWN_PREFS = {'popups': 'true'} def get_preferences(session): edit_prefs = {} for pref, default in KNOWN_PREFS.iteritems(): value = session.get('editpref_' + pref, default) if value: edit_prefs[pref] = value return edit_pref...
import logging logger = logging.getLogger(__name__) KNOWN_PREFS = {'popups': True} PREF_MAP = {'false': False, 'true': True} def get_preferences(session): edit_prefs = {} for pref, default in KNOWN_PREFS.iteritems(): value = session.get('editpref_' + pref, default) if value: edi...
<commit_before>import logging logger = logging.getLogger(__name__) KNOWN_PREFS = {'popups': True} PREF_MAP = {'false': False, 'true': True} def get_preferences(session): edit_prefs = {} for pref, default in KNOWN_PREFS.iteritems(): value = session.get('editpref_' + pref, default) if value: ...
9af7c012c8ef2ca2999408abe98bdc3aa0ee1738
base_partner_merge/__openerp__.py
base_partner_merge/__openerp__.py
{ 'name': 'Base Partner Merge', 'author': 'OpenERP S.A.', 'category': 'Generic Modules/Base', 'version': '0.1', 'description': """ backport module, to be removed when we switch to saas2 on the private servers """, 'depends': [ 'base', ], 'data': [ 'security/ir.model.acces...
{ 'name': 'Base Partner Merge', 'author': "OpenERP S.A.,Odoo Community Association (OCA)", 'category': 'Generic Modules/Base', 'version': '0.1', 'description': """ backport module, to be removed when we switch to saas2 on the private servers """, 'depends': [ 'base', ], 'data': [...
Add OCA as author of OCA addons
Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association.
Python
agpl-3.0
microcom/partner-contact,brain-tec/partner-contact,microcom/partner-contact,brain-tec/partner-contact
{ 'name': 'Base Partner Merge', 'author': 'OpenERP S.A.', 'category': 'Generic Modules/Base', 'version': '0.1', 'description': """ backport module, to be removed when we switch to saas2 on the private servers """, 'depends': [ 'base', ], 'data': [ 'security/ir.model.acces...
{ 'name': 'Base Partner Merge', 'author': "OpenERP S.A.,Odoo Community Association (OCA)", 'category': 'Generic Modules/Base', 'version': '0.1', 'description': """ backport module, to be removed when we switch to saas2 on the private servers """, 'depends': [ 'base', ], 'data': [...
<commit_before>{ 'name': 'Base Partner Merge', 'author': 'OpenERP S.A.', 'category': 'Generic Modules/Base', 'version': '0.1', 'description': """ backport module, to be removed when we switch to saas2 on the private servers """, 'depends': [ 'base', ], 'data': [ 'security...
{ 'name': 'Base Partner Merge', 'author': "OpenERP S.A.,Odoo Community Association (OCA)", 'category': 'Generic Modules/Base', 'version': '0.1', 'description': """ backport module, to be removed when we switch to saas2 on the private servers """, 'depends': [ 'base', ], 'data': [...
{ 'name': 'Base Partner Merge', 'author': 'OpenERP S.A.', 'category': 'Generic Modules/Base', 'version': '0.1', 'description': """ backport module, to be removed when we switch to saas2 on the private servers """, 'depends': [ 'base', ], 'data': [ 'security/ir.model.acces...
<commit_before>{ 'name': 'Base Partner Merge', 'author': 'OpenERP S.A.', 'category': 'Generic Modules/Base', 'version': '0.1', 'description': """ backport module, to be removed when we switch to saas2 on the private servers """, 'depends': [ 'base', ], 'data': [ 'security...
9dc6de1a97c18fa03787349ed64c1a4100b5d170
datapackage_pipelines_od4tj/processors/fix-numbers.py
datapackage_pipelines_od4tj/processors/fix-numbers.py
from datapackage_pipelines.wrapper import process def process_row(row, row_index, spec, resource_index, parameters, stats): for f in spec['schema']['fields']: if 'factor' in f: factor = { '1m': 1000000 }[f['factor']] v = row[f...
from datapackage_pipelines.wrapper import process def process_row(row, row_index, spec, resource_index, parameters, stats): for f in spec['schema']['fields']: if 'factor' in f: factor = { '1m': 1000000 }[f['factor']] v = r...
Fix bad indentation in processor
Fix bad indentation in processor
Python
mit
okfn/datapackage_pipelines_od4tj
from datapackage_pipelines.wrapper import process def process_row(row, row_index, spec, resource_index, parameters, stats): for f in spec['schema']['fields']: if 'factor' in f: factor = { '1m': 1000000 }[f['factor']] v = row[f...
from datapackage_pipelines.wrapper import process def process_row(row, row_index, spec, resource_index, parameters, stats): for f in spec['schema']['fields']: if 'factor' in f: factor = { '1m': 1000000 }[f['factor']] v = r...
<commit_before>from datapackage_pipelines.wrapper import process def process_row(row, row_index, spec, resource_index, parameters, stats): for f in spec['schema']['fields']: if 'factor' in f: factor = { '1m': 1000000 }[f['factor']] ...
from datapackage_pipelines.wrapper import process def process_row(row, row_index, spec, resource_index, parameters, stats): for f in spec['schema']['fields']: if 'factor' in f: factor = { '1m': 1000000 }[f['factor']] v = r...
from datapackage_pipelines.wrapper import process def process_row(row, row_index, spec, resource_index, parameters, stats): for f in spec['schema']['fields']: if 'factor' in f: factor = { '1m': 1000000 }[f['factor']] v = row[f...
<commit_before>from datapackage_pipelines.wrapper import process def process_row(row, row_index, spec, resource_index, parameters, stats): for f in spec['schema']['fields']: if 'factor' in f: factor = { '1m': 1000000 }[f['factor']] ...
6cb9b552f30cd25b9266677fd2c13140697e2f20
thinglang/foundation/templates.py
thinglang/foundation/templates.py
HEADER = """/** {file_name} Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ """ FOUNDATION_ENUM = HEADER + """ #pragma once #include <string> {imports} enum class {name} {{ {values} }}; """ FOUNDATION_SWITCH = """ inline auto {func_name}({name} val){{ switch (val){{ ...
HEADER = """/** {file_name} Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ """ FOUNDATION_ENUM = HEADER + """ #pragma once #include <string> {imports} enum class {name} {{ {values} }}; """ FOUNDATION_SWITCH = """ inline auto {func_name}({name} val){{ switch (val){{ ...
Fix capitalization method in class_names
Fix capitalization method in class_names
Python
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
HEADER = """/** {file_name} Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ """ FOUNDATION_ENUM = HEADER + """ #pragma once #include <string> {imports} enum class {name} {{ {values} }}; """ FOUNDATION_SWITCH = """ inline auto {func_name}({name} val){{ switch (val){{ ...
HEADER = """/** {file_name} Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ """ FOUNDATION_ENUM = HEADER + """ #pragma once #include <string> {imports} enum class {name} {{ {values} }}; """ FOUNDATION_SWITCH = """ inline auto {func_name}({name} val){{ switch (val){{ ...
<commit_before>HEADER = """/** {file_name} Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ """ FOUNDATION_ENUM = HEADER + """ #pragma once #include <string> {imports} enum class {name} {{ {values} }}; """ FOUNDATION_SWITCH = """ inline auto {func_name}({name} val){{ swit...
HEADER = """/** {file_name} Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ """ FOUNDATION_ENUM = HEADER + """ #pragma once #include <string> {imports} enum class {name} {{ {values} }}; """ FOUNDATION_SWITCH = """ inline auto {func_name}({name} val){{ switch (val){{ ...
HEADER = """/** {file_name} Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ """ FOUNDATION_ENUM = HEADER + """ #pragma once #include <string> {imports} enum class {name} {{ {values} }}; """ FOUNDATION_SWITCH = """ inline auto {func_name}({name} val){{ switch (val){{ ...
<commit_before>HEADER = """/** {file_name} Auto-generated code - do not modify. thinglang C++ transpiler, 0.0.0 **/ """ FOUNDATION_ENUM = HEADER + """ #pragma once #include <string> {imports} enum class {name} {{ {values} }}; """ FOUNDATION_SWITCH = """ inline auto {func_name}({name} val){{ swit...
2752c9880934aed1f02ab5e9cc111b07cb449c46
async_messages/middleware.py
async_messages/middleware.py
from django.contrib import messages from async_messages import get_message class AsyncMiddleware(object): def process_request(self, request): # Check for message for this user and, if it exists, # call the messages API with it if not request.user.is_authenticated(): return ...
from django.contrib import messages from async_messages import get_message class AsyncMiddleware(object): def process_response(self, request, response): # Check for message for this user and, if it exists, # call the messages API with it if not request.user.is_authenticated(): ...
Add the message during the processing of the response.
Add the message during the processing of the response.
Python
mit
codeinthehole/django-async-messages
from django.contrib import messages from async_messages import get_message class AsyncMiddleware(object): def process_request(self, request): # Check for message for this user and, if it exists, # call the messages API with it if not request.user.is_authenticated(): return ...
from django.contrib import messages from async_messages import get_message class AsyncMiddleware(object): def process_response(self, request, response): # Check for message for this user and, if it exists, # call the messages API with it if not request.user.is_authenticated(): ...
<commit_before>from django.contrib import messages from async_messages import get_message class AsyncMiddleware(object): def process_request(self, request): # Check for message for this user and, if it exists, # call the messages API with it if not request.user.is_authenticated(): ...
from django.contrib import messages from async_messages import get_message class AsyncMiddleware(object): def process_response(self, request, response): # Check for message for this user and, if it exists, # call the messages API with it if not request.user.is_authenticated(): ...
from django.contrib import messages from async_messages import get_message class AsyncMiddleware(object): def process_request(self, request): # Check for message for this user and, if it exists, # call the messages API with it if not request.user.is_authenticated(): return ...
<commit_before>from django.contrib import messages from async_messages import get_message class AsyncMiddleware(object): def process_request(self, request): # Check for message for this user and, if it exists, # call the messages API with it if not request.user.is_authenticated(): ...
68b07eb2a49c56b696ab4d95b32a70a371f9d0f8
elevator_cli/io.py
elevator_cli/io.py
# -*- coding: utf-8 -*- # Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. from clint.textui import puts, colored from elevator.utils.patterns import destructurate from .helpers import FAILURE_STATUS def prompt(*args, **kwargs): current_db = kwargs.pop('current_db', 'default') ...
# -*- coding: utf-8 -*- # Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. from clint.textui import puts, colored from elevator.utils.patterns import destructurate from .helpers import FAILURE_STATUS def prompt(*args, **kwargs): current_db = kwargs.pop('current_db', 'default') ...
Update : uppercase every input commands
Update : uppercase every input commands
Python
mit
oleiade/Elevator
# -*- coding: utf-8 -*- # Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. from clint.textui import puts, colored from elevator.utils.patterns import destructurate from .helpers import FAILURE_STATUS def prompt(*args, **kwargs): current_db = kwargs.pop('current_db', 'default') ...
# -*- coding: utf-8 -*- # Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. from clint.textui import puts, colored from elevator.utils.patterns import destructurate from .helpers import FAILURE_STATUS def prompt(*args, **kwargs): current_db = kwargs.pop('current_db', 'default') ...
<commit_before># -*- coding: utf-8 -*- # Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. from clint.textui import puts, colored from elevator.utils.patterns import destructurate from .helpers import FAILURE_STATUS def prompt(*args, **kwargs): current_db = kwargs.pop('current_db...
# -*- coding: utf-8 -*- # Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. from clint.textui import puts, colored from elevator.utils.patterns import destructurate from .helpers import FAILURE_STATUS def prompt(*args, **kwargs): current_db = kwargs.pop('current_db', 'default') ...
# -*- coding: utf-8 -*- # Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. from clint.textui import puts, colored from elevator.utils.patterns import destructurate from .helpers import FAILURE_STATUS def prompt(*args, **kwargs): current_db = kwargs.pop('current_db', 'default') ...
<commit_before># -*- coding: utf-8 -*- # Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. from clint.textui import puts, colored from elevator.utils.patterns import destructurate from .helpers import FAILURE_STATUS def prompt(*args, **kwargs): current_db = kwargs.pop('current_db...
eb9b1cc747dc807a52ee7d0dec0992eb70005840
cacao_app/configuracion/models.py
cacao_app/configuracion/models.py
# -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel from ckeditor.fields import RichTextField class Contacto(SingletonModel): """ This model store the Contacto object but this only have one instance """ informacion_contacto = RichTextField('Informacion de Co...
# -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel from ckeditor.fields import RichTextField class Contacto(SingletonModel): """ This model store the Contacto object but this only have one instance """ informacion_contacto = RichTextField( 'Informa...
Set help text for app logo
Set help text for app logo
Python
bsd-3-clause
CacaoMovil/guia-de-cacao-django,CacaoMovil/guia-de-cacao-django,CacaoMovil/guia-de-cacao-django
# -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel from ckeditor.fields import RichTextField class Contacto(SingletonModel): """ This model store the Contacto object but this only have one instance """ informacion_contacto = RichTextField('Informacion de Co...
# -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel from ckeditor.fields import RichTextField class Contacto(SingletonModel): """ This model store the Contacto object but this only have one instance """ informacion_contacto = RichTextField( 'Informa...
<commit_before># -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel from ckeditor.fields import RichTextField class Contacto(SingletonModel): """ This model store the Contacto object but this only have one instance """ informacion_contacto = RichTextField('In...
# -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel from ckeditor.fields import RichTextField class Contacto(SingletonModel): """ This model store the Contacto object but this only have one instance """ informacion_contacto = RichTextField( 'Informa...
# -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel from ckeditor.fields import RichTextField class Contacto(SingletonModel): """ This model store the Contacto object but this only have one instance """ informacion_contacto = RichTextField('Informacion de Co...
<commit_before># -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel from ckeditor.fields import RichTextField class Contacto(SingletonModel): """ This model store the Contacto object but this only have one instance """ informacion_contacto = RichTextField('In...
12bcc60fff5119e95fb1de593cc0c5e6ab8294ea
changes/api/jobstep_deallocate.py
changes/api/jobstep_deallocate.py
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.constants import Status from changes.config import db from changes.jobs.sync_job_step import sync_job_step from changes.models import JobStep class JobStepDeallocateAPIView(APIView): def post(sel...
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.constants import Status from changes.config import db from changes.jobs.sync_job_step import sync_job_step from changes.models import JobStep class JobStepDeallocateAPIView(APIView): def post(sel...
Revert "Allow running jobsteps to be deallocated"
Revert "Allow running jobsteps to be deallocated" This reverts commit 9b720026722ce92a8c0e05aa041d6e861c5e4e82.
Python
apache-2.0
wfxiang08/changes,wfxiang08/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes,bowlofstew/changes,dropbox/changes,dropbox/changes,dropbox/changes,wfxiang08/changes,bowlofstew/changes,bowlofstew/changes
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.constants import Status from changes.config import db from changes.jobs.sync_job_step import sync_job_step from changes.models import JobStep class JobStepDeallocateAPIView(APIView): def post(sel...
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.constants import Status from changes.config import db from changes.jobs.sync_job_step import sync_job_step from changes.models import JobStep class JobStepDeallocateAPIView(APIView): def post(sel...
<commit_before>from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.constants import Status from changes.config import db from changes.jobs.sync_job_step import sync_job_step from changes.models import JobStep class JobStepDeallocateAPIView(APIView): ...
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.constants import Status from changes.config import db from changes.jobs.sync_job_step import sync_job_step from changes.models import JobStep class JobStepDeallocateAPIView(APIView): def post(sel...
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.constants import Status from changes.config import db from changes.jobs.sync_job_step import sync_job_step from changes.models import JobStep class JobStepDeallocateAPIView(APIView): def post(sel...
<commit_before>from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.constants import Status from changes.config import db from changes.jobs.sync_job_step import sync_job_step from changes.models import JobStep class JobStepDeallocateAPIView(APIView): ...
c3745e7017c1788f4633d09ef4d29a37018b53d3
populus/cli/main.py
populus/cli/main.py
import click @click.group() def main(): """ Populus """ pass
import click CONTEXT_SETTINGS = dict( # Support -h as a shortcut for --help help_option_names=['-h', '--help'], ) @click.group(context_settings=CONTEXT_SETTINGS) def main(): """ Populus """ pass
Support -h as a shortcut for --help
CLI: Support -h as a shortcut for --help
Python
mit
pipermerriam/populus,euri10/populus,euri10/populus,pipermerriam/populus,euri10/populus
import click @click.group() def main(): """ Populus """ pass CLI: Support -h as a shortcut for --help
import click CONTEXT_SETTINGS = dict( # Support -h as a shortcut for --help help_option_names=['-h', '--help'], ) @click.group(context_settings=CONTEXT_SETTINGS) def main(): """ Populus """ pass
<commit_before>import click @click.group() def main(): """ Populus """ pass <commit_msg>CLI: Support -h as a shortcut for --help<commit_after>
import click CONTEXT_SETTINGS = dict( # Support -h as a shortcut for --help help_option_names=['-h', '--help'], ) @click.group(context_settings=CONTEXT_SETTINGS) def main(): """ Populus """ pass
import click @click.group() def main(): """ Populus """ pass CLI: Support -h as a shortcut for --helpimport click CONTEXT_SETTINGS = dict( # Support -h as a shortcut for --help help_option_names=['-h', '--help'], ) @click.group(context_settings=CONTEXT_SETTINGS) def main(): """ Pop...
<commit_before>import click @click.group() def main(): """ Populus """ pass <commit_msg>CLI: Support -h as a shortcut for --help<commit_after>import click CONTEXT_SETTINGS = dict( # Support -h as a shortcut for --help help_option_names=['-h', '--help'], ) @click.group(context_settings=CONT...
35e54a2fa4408aff70989437554cfe1ee2318799
test_utils/views.py
test_utils/views.py
from django.http import HttpResponse import logging from test_utils.testmaker import Testmaker def set_logging(request, filename=None): if not filename: filename = request.REQUEST['filename'] log_file = '/tmp/testmaker/tests/%s_tests_custom.py' % filename serialize_file = '/tmp/testmaker/tests/%s_s...
from django.http import HttpResponse import logging from test_utils.testmaker.processors.base import slugify from test_utils.testmaker import Testmaker def set_logging(request, filename=None): if not filename: filename = request.REQUEST['filename'] filename = slugify(filename) log_file = '/tmp/te...
Use slugify to filenameify the strings passed in. This should probably live in a test_utils.utils. Too many utils!
Use slugify to filenameify the strings passed in. This should probably live in a test_utils.utils. Too many utils!
Python
mit
ericholscher/django-test-utils,frac/django-test-utils,acdha/django-test-utils,frac/django-test-utils,ericholscher/django-test-utils,acdha/django-test-utils
from django.http import HttpResponse import logging from test_utils.testmaker import Testmaker def set_logging(request, filename=None): if not filename: filename = request.REQUEST['filename'] log_file = '/tmp/testmaker/tests/%s_tests_custom.py' % filename serialize_file = '/tmp/testmaker/tests/%s_s...
from django.http import HttpResponse import logging from test_utils.testmaker.processors.base import slugify from test_utils.testmaker import Testmaker def set_logging(request, filename=None): if not filename: filename = request.REQUEST['filename'] filename = slugify(filename) log_file = '/tmp/te...
<commit_before>from django.http import HttpResponse import logging from test_utils.testmaker import Testmaker def set_logging(request, filename=None): if not filename: filename = request.REQUEST['filename'] log_file = '/tmp/testmaker/tests/%s_tests_custom.py' % filename serialize_file = '/tmp/testm...
from django.http import HttpResponse import logging from test_utils.testmaker.processors.base import slugify from test_utils.testmaker import Testmaker def set_logging(request, filename=None): if not filename: filename = request.REQUEST['filename'] filename = slugify(filename) log_file = '/tmp/te...
from django.http import HttpResponse import logging from test_utils.testmaker import Testmaker def set_logging(request, filename=None): if not filename: filename = request.REQUEST['filename'] log_file = '/tmp/testmaker/tests/%s_tests_custom.py' % filename serialize_file = '/tmp/testmaker/tests/%s_s...
<commit_before>from django.http import HttpResponse import logging from test_utils.testmaker import Testmaker def set_logging(request, filename=None): if not filename: filename = request.REQUEST['filename'] log_file = '/tmp/testmaker/tests/%s_tests_custom.py' % filename serialize_file = '/tmp/testm...
955cb0d27ab52348b753c3edea731223e2631f50
Climate_Police/tests/test_plot_pollutants.py
Climate_Police/tests/test_plot_pollutants.py
#run the test with default values of df, state and year import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): result...
#run the test with default values of df, state and year import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): fig, f...
Add flag to plot_pollutant unit test
Add flag to plot_pollutant unit test also change assertTrue to assertEqual
Python
mit
abhisheksugam/Climate_Police
#run the test with default values of df, state and year import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): result...
#run the test with default values of df, state and year import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): fig, f...
<commit_before>#run the test with default values of df, state and year import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): ...
#run the test with default values of df, state and year import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): fig, f...
#run the test with default values of df, state and year import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): result...
<commit_before>#run the test with default values of df, state and year import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): ...
b715a0fdc6db68f3c0ae30f1ff09e1aa8bb94524
Wrappers/Phenix/Xtriage.py
Wrappers/Phenix/Xtriage.py
#!/usr/bin/env python # Xtriage.py # Copyright (C) 2017 Diamond Light Source, Richard Gildea # # This code is distributed under the BSD license, a copy of which is # included in the root directory of this package. from __future__ import absolute_import, division, print_function from xia2.Driver.DriverFactory im...
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from xia2.Driver.DriverFactory import DriverFactory def Xtriage(DriverType=None): """A factory for the Xtriage wrappers.""" DriverInstance = DriverFactory.Driver("simple") class XtriageWrapper(DriverInstance.__clas...
Clean __main__ + header boiler plate
Clean __main__ + header boiler plate Then flake8 warnings re: os / sys etc.
Python
bsd-3-clause
xia2/xia2,xia2/xia2
#!/usr/bin/env python # Xtriage.py # Copyright (C) 2017 Diamond Light Source, Richard Gildea # # This code is distributed under the BSD license, a copy of which is # included in the root directory of this package. from __future__ import absolute_import, division, print_function from xia2.Driver.DriverFactory im...
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from xia2.Driver.DriverFactory import DriverFactory def Xtriage(DriverType=None): """A factory for the Xtriage wrappers.""" DriverInstance = DriverFactory.Driver("simple") class XtriageWrapper(DriverInstance.__clas...
<commit_before>#!/usr/bin/env python # Xtriage.py # Copyright (C) 2017 Diamond Light Source, Richard Gildea # # This code is distributed under the BSD license, a copy of which is # included in the root directory of this package. from __future__ import absolute_import, division, print_function from xia2.Driver.D...
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from xia2.Driver.DriverFactory import DriverFactory def Xtriage(DriverType=None): """A factory for the Xtriage wrappers.""" DriverInstance = DriverFactory.Driver("simple") class XtriageWrapper(DriverInstance.__clas...
#!/usr/bin/env python # Xtriage.py # Copyright (C) 2017 Diamond Light Source, Richard Gildea # # This code is distributed under the BSD license, a copy of which is # included in the root directory of this package. from __future__ import absolute_import, division, print_function from xia2.Driver.DriverFactory im...
<commit_before>#!/usr/bin/env python # Xtriage.py # Copyright (C) 2017 Diamond Light Source, Richard Gildea # # This code is distributed under the BSD license, a copy of which is # included in the root directory of this package. from __future__ import absolute_import, division, print_function from xia2.Driver.D...
5a5e1b528265eb7b7d901566d9afcba52a4cec78
mothermayi/entryway.py
mothermayi/entryway.py
import logging import pkg_resources LOGGER = logging.getLogger(__name__) PLUGINS = {} def load(): for entry in pkg_resources.iter_entry_points(group='mothermayi'): runner = entry.load() plugin = runner() LOGGER.debug("Loaded plugin %s", plugin['name']) if plugin['name'] in PLUGINS: ...
import logging import pkg_resources LOGGER = logging.getLogger(__name__) PLUGINS = {} def load(): for entry in pkg_resources.iter_entry_points(group='mothermayi'): runner = entry.load() plugin = runner() plugin['dist'] = entry.dist LOGGER.debug("Loaded plugin %s from %s", plugin['na...
Raise a warning instead of failing on plugin overwrite
Raise a warning instead of failing on plugin overwrite I'm not sure why but my local developer versions of plugins are registering more than once with different names. I think it might be because I have a difference between the package name and the module name. Not sure. Anyways, I'm going to change this for now with ...
Python
mit
EliRibble/mothermayi
import logging import pkg_resources LOGGER = logging.getLogger(__name__) PLUGINS = {} def load(): for entry in pkg_resources.iter_entry_points(group='mothermayi'): runner = entry.load() plugin = runner() LOGGER.debug("Loaded plugin %s", plugin['name']) if plugin['name'] in PLUGINS: ...
import logging import pkg_resources LOGGER = logging.getLogger(__name__) PLUGINS = {} def load(): for entry in pkg_resources.iter_entry_points(group='mothermayi'): runner = entry.load() plugin = runner() plugin['dist'] = entry.dist LOGGER.debug("Loaded plugin %s from %s", plugin['na...
<commit_before>import logging import pkg_resources LOGGER = logging.getLogger(__name__) PLUGINS = {} def load(): for entry in pkg_resources.iter_entry_points(group='mothermayi'): runner = entry.load() plugin = runner() LOGGER.debug("Loaded plugin %s", plugin['name']) if plugin['name...
import logging import pkg_resources LOGGER = logging.getLogger(__name__) PLUGINS = {} def load(): for entry in pkg_resources.iter_entry_points(group='mothermayi'): runner = entry.load() plugin = runner() plugin['dist'] = entry.dist LOGGER.debug("Loaded plugin %s from %s", plugin['na...
import logging import pkg_resources LOGGER = logging.getLogger(__name__) PLUGINS = {} def load(): for entry in pkg_resources.iter_entry_points(group='mothermayi'): runner = entry.load() plugin = runner() LOGGER.debug("Loaded plugin %s", plugin['name']) if plugin['name'] in PLUGINS: ...
<commit_before>import logging import pkg_resources LOGGER = logging.getLogger(__name__) PLUGINS = {} def load(): for entry in pkg_resources.iter_entry_points(group='mothermayi'): runner = entry.load() plugin = runner() LOGGER.debug("Loaded plugin %s", plugin['name']) if plugin['name...
067c9be6c9e362a9a902f3233e1ae0b2643d405f
src/sequences/io/trend/price/macd/s_chunk.py
src/sequences/io/trend/price/macd/s_chunk.py
''' Sequential Price-Trend Models: MACD with Price-Bar-Chunk (MDC) ''' import numpy import json from techmodels.overlays.trend.price.chunk import sign_chunker from techmodels.indicators.trend.price.macd import MACDIndicator def macd_chunk(data, nfast=10, nslow=35, nema=5, getter=lambda x: x): prices = numpy.arra...
''' Sequential Price-Trend Models: MACD with Price-Bar-Chunk (MDC) ''' import numpy import json from techmodels.overlays.trend.price.chunk import sign_chunker from techmodels.indicators.trend.price.macd import MACDIndicator def macd_chunk(data, nfast=10, nslow=35, nema=5, getter=lambda x: x): prices = numpy.arra...
Handle two arguments while converting to JSON
Feature: Handle two arguments while converting to JSON
Python
mpl-2.0
Skalman/owl_analytics
''' Sequential Price-Trend Models: MACD with Price-Bar-Chunk (MDC) ''' import numpy import json from techmodels.overlays.trend.price.chunk import sign_chunker from techmodels.indicators.trend.price.macd import MACDIndicator def macd_chunk(data, nfast=10, nslow=35, nema=5, getter=lambda x: x): prices = numpy.arra...
''' Sequential Price-Trend Models: MACD with Price-Bar-Chunk (MDC) ''' import numpy import json from techmodels.overlays.trend.price.chunk import sign_chunker from techmodels.indicators.trend.price.macd import MACDIndicator def macd_chunk(data, nfast=10, nslow=35, nema=5, getter=lambda x: x): prices = numpy.arra...
<commit_before>''' Sequential Price-Trend Models: MACD with Price-Bar-Chunk (MDC) ''' import numpy import json from techmodels.overlays.trend.price.chunk import sign_chunker from techmodels.indicators.trend.price.macd import MACDIndicator def macd_chunk(data, nfast=10, nslow=35, nema=5, getter=lambda x: x): pric...
''' Sequential Price-Trend Models: MACD with Price-Bar-Chunk (MDC) ''' import numpy import json from techmodels.overlays.trend.price.chunk import sign_chunker from techmodels.indicators.trend.price.macd import MACDIndicator def macd_chunk(data, nfast=10, nslow=35, nema=5, getter=lambda x: x): prices = numpy.arra...
''' Sequential Price-Trend Models: MACD with Price-Bar-Chunk (MDC) ''' import numpy import json from techmodels.overlays.trend.price.chunk import sign_chunker from techmodels.indicators.trend.price.macd import MACDIndicator def macd_chunk(data, nfast=10, nslow=35, nema=5, getter=lambda x: x): prices = numpy.arra...
<commit_before>''' Sequential Price-Trend Models: MACD with Price-Bar-Chunk (MDC) ''' import numpy import json from techmodels.overlays.trend.price.chunk import sign_chunker from techmodels.indicators.trend.price.macd import MACDIndicator def macd_chunk(data, nfast=10, nslow=35, nema=5, getter=lambda x: x): pric...
179365edffa9333afaed71568d89ab5c57607c42
vinepy/utils.py
vinepy/utils.py
from datetime import datetime def strptime(string, fmt='%Y-%m-%dT%H:%M:%S.%f'): return datetime.strptime(string, fmt) # From http://stackoverflow.com/a/14620633 # CAUTION: it causes memory leak in < 2.7.3 and < 3.2.3 class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__in...
from datetime import datetime def strptime(string, fmt='%Y-%m-%dT%H:%M:%S.%f'): return datetime.strptime(string, fmt) # From http://stackoverflow.com/a/14620633 # CAUTION: it causes memory leak in < 2.7.3 and < 3.2.3 class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__in...
Add util to convert between short and long postId formats
Add util to convert between short and long postId formats
Python
mit
davoclavo/vinepy
from datetime import datetime def strptime(string, fmt='%Y-%m-%dT%H:%M:%S.%f'): return datetime.strptime(string, fmt) # From http://stackoverflow.com/a/14620633 # CAUTION: it causes memory leak in < 2.7.3 and < 3.2.3 class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__in...
from datetime import datetime def strptime(string, fmt='%Y-%m-%dT%H:%M:%S.%f'): return datetime.strptime(string, fmt) # From http://stackoverflow.com/a/14620633 # CAUTION: it causes memory leak in < 2.7.3 and < 3.2.3 class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__in...
<commit_before>from datetime import datetime def strptime(string, fmt='%Y-%m-%dT%H:%M:%S.%f'): return datetime.strptime(string, fmt) # From http://stackoverflow.com/a/14620633 # CAUTION: it causes memory leak in < 2.7.3 and < 3.2.3 class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrD...
from datetime import datetime def strptime(string, fmt='%Y-%m-%dT%H:%M:%S.%f'): return datetime.strptime(string, fmt) # From http://stackoverflow.com/a/14620633 # CAUTION: it causes memory leak in < 2.7.3 and < 3.2.3 class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__in...
from datetime import datetime def strptime(string, fmt='%Y-%m-%dT%H:%M:%S.%f'): return datetime.strptime(string, fmt) # From http://stackoverflow.com/a/14620633 # CAUTION: it causes memory leak in < 2.7.3 and < 3.2.3 class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrDict, self).__in...
<commit_before>from datetime import datetime def strptime(string, fmt='%Y-%m-%dT%H:%M:%S.%f'): return datetime.strptime(string, fmt) # From http://stackoverflow.com/a/14620633 # CAUTION: it causes memory leak in < 2.7.3 and < 3.2.3 class AttrDict(dict): def __init__(self, *args, **kwargs): super(AttrD...
2565df456ecb290f620ce4dadca19c76b0eeb1af
widgets/card.py
widgets/card.py
# -*- coding: utf-8 -*- from flask import render_template from cache import cache from models.person import Person @cache.memoize(24 * 60 * 60) def card(person_or_id, **kwargs): if isinstance(person_or_id, Person): person = person_or_id else: person = Person.query.filter_by(id=person_or_id)...
# -*- coding: utf-8 -*- from flask import render_template from cache import cache from models.person import Person @cache.memoize(24 * 60 * 60) def card(person_or_id, detailed=False, small=False): if isinstance(person_or_id, Person): person = person_or_id else: person = Person.query.filter_...
Fix a bug in caching
Fix a bug in caching
Python
apache-2.0
teampopong/pokr.kr,teampopong/pokr.kr,teampopong/pokr.kr,teampopong/pokr.kr
# -*- coding: utf-8 -*- from flask import render_template from cache import cache from models.person import Person @cache.memoize(24 * 60 * 60) def card(person_or_id, **kwargs): if isinstance(person_or_id, Person): person = person_or_id else: person = Person.query.filter_by(id=person_or_id)...
# -*- coding: utf-8 -*- from flask import render_template from cache import cache from models.person import Person @cache.memoize(24 * 60 * 60) def card(person_or_id, detailed=False, small=False): if isinstance(person_or_id, Person): person = person_or_id else: person = Person.query.filter_...
<commit_before># -*- coding: utf-8 -*- from flask import render_template from cache import cache from models.person import Person @cache.memoize(24 * 60 * 60) def card(person_or_id, **kwargs): if isinstance(person_or_id, Person): person = person_or_id else: person = Person.query.filter_by(i...
# -*- coding: utf-8 -*- from flask import render_template from cache import cache from models.person import Person @cache.memoize(24 * 60 * 60) def card(person_or_id, detailed=False, small=False): if isinstance(person_or_id, Person): person = person_or_id else: person = Person.query.filter_...
# -*- coding: utf-8 -*- from flask import render_template from cache import cache from models.person import Person @cache.memoize(24 * 60 * 60) def card(person_or_id, **kwargs): if isinstance(person_or_id, Person): person = person_or_id else: person = Person.query.filter_by(id=person_or_id)...
<commit_before># -*- coding: utf-8 -*- from flask import render_template from cache import cache from models.person import Person @cache.memoize(24 * 60 * 60) def card(person_or_id, **kwargs): if isinstance(person_or_id, Person): person = person_or_id else: person = Person.query.filter_by(i...
4320eecc294fa1233a2ad7b4cdec1e2dc1e83b37
testing/test_simbad.py
testing/test_simbad.py
import pytest import vcr try: from unittest import mock except ImportError: import mock from k2catalogue.models import EPIC, create_session from k2catalogue.simbad import Simbad @pytest.fixture def session(): return create_session() @pytest.fixture def epic(session): return session.query(EPIC).filt...
import pytest import vcr try: from unittest import mock except ImportError: import mock from k2catalogue.models import EPIC, create_session from k2catalogue.simbad import Simbad @pytest.fixture def session(): return create_session() @pytest.fixture def epic(session): return mock.Mock(ra=123.456, de...
Remove real database during testing
Remove real database during testing
Python
mit
mindriot101/k2catalogue
import pytest import vcr try: from unittest import mock except ImportError: import mock from k2catalogue.models import EPIC, create_session from k2catalogue.simbad import Simbad @pytest.fixture def session(): return create_session() @pytest.fixture def epic(session): return session.query(EPIC).filt...
import pytest import vcr try: from unittest import mock except ImportError: import mock from k2catalogue.models import EPIC, create_session from k2catalogue.simbad import Simbad @pytest.fixture def session(): return create_session() @pytest.fixture def epic(session): return mock.Mock(ra=123.456, de...
<commit_before>import pytest import vcr try: from unittest import mock except ImportError: import mock from k2catalogue.models import EPIC, create_session from k2catalogue.simbad import Simbad @pytest.fixture def session(): return create_session() @pytest.fixture def epic(session): return session.q...
import pytest import vcr try: from unittest import mock except ImportError: import mock from k2catalogue.models import EPIC, create_session from k2catalogue.simbad import Simbad @pytest.fixture def session(): return create_session() @pytest.fixture def epic(session): return mock.Mock(ra=123.456, de...
import pytest import vcr try: from unittest import mock except ImportError: import mock from k2catalogue.models import EPIC, create_session from k2catalogue.simbad import Simbad @pytest.fixture def session(): return create_session() @pytest.fixture def epic(session): return session.query(EPIC).filt...
<commit_before>import pytest import vcr try: from unittest import mock except ImportError: import mock from k2catalogue.models import EPIC, create_session from k2catalogue.simbad import Simbad @pytest.fixture def session(): return create_session() @pytest.fixture def epic(session): return session.q...
05ab2efe19ada626b254ea019d6f2fb0a16a923b
clinvoc/examples/parser_example.py
clinvoc/examples/parser_example.py
from clinvoc.icd9 import ICD9CM # This string describes a set of ICD 9 codes codestring = '745.0-745.3, 745.6*, 746, 747.1-747.49, 747.81, 747.89, 35.8, 35.81, 35.82, 35.83, 35.84' # Use clinvoc to parse and standardize the above codes vocab = ICD9CM() codeset = vocab.parse(codestring) print(codeset)
from clinvoc.icd9 import ICD9CM # This string describes a set of ICD 9 codes codestring = '745.0-745.3, 745.6*, 746, 747.1-747.49, 747.81, 747.89, 35.8, 35.81, 35.82, 35.83, 35.84' # Use clinvoc to parse and standardize the above codes vocab = ICD9CM() codeset = vocab.parse(codestring) print(sorted(codeset))
Sort codes in ICD 9 parsing example
Sort codes in ICD 9 parsing example
Python
mit
jcrudy/clinvoc
from clinvoc.icd9 import ICD9CM # This string describes a set of ICD 9 codes codestring = '745.0-745.3, 745.6*, 746, 747.1-747.49, 747.81, 747.89, 35.8, 35.81, 35.82, 35.83, 35.84' # Use clinvoc to parse and standardize the above codes vocab = ICD9CM() codeset = vocab.parse(codestring) print(codeset) Sort codes in IC...
from clinvoc.icd9 import ICD9CM # This string describes a set of ICD 9 codes codestring = '745.0-745.3, 745.6*, 746, 747.1-747.49, 747.81, 747.89, 35.8, 35.81, 35.82, 35.83, 35.84' # Use clinvoc to parse and standardize the above codes vocab = ICD9CM() codeset = vocab.parse(codestring) print(sorted(codeset))
<commit_before>from clinvoc.icd9 import ICD9CM # This string describes a set of ICD 9 codes codestring = '745.0-745.3, 745.6*, 746, 747.1-747.49, 747.81, 747.89, 35.8, 35.81, 35.82, 35.83, 35.84' # Use clinvoc to parse and standardize the above codes vocab = ICD9CM() codeset = vocab.parse(codestring) print(codeset) <...
from clinvoc.icd9 import ICD9CM # This string describes a set of ICD 9 codes codestring = '745.0-745.3, 745.6*, 746, 747.1-747.49, 747.81, 747.89, 35.8, 35.81, 35.82, 35.83, 35.84' # Use clinvoc to parse and standardize the above codes vocab = ICD9CM() codeset = vocab.parse(codestring) print(sorted(codeset))
from clinvoc.icd9 import ICD9CM # This string describes a set of ICD 9 codes codestring = '745.0-745.3, 745.6*, 746, 747.1-747.49, 747.81, 747.89, 35.8, 35.81, 35.82, 35.83, 35.84' # Use clinvoc to parse and standardize the above codes vocab = ICD9CM() codeset = vocab.parse(codestring) print(codeset) Sort codes in IC...
<commit_before>from clinvoc.icd9 import ICD9CM # This string describes a set of ICD 9 codes codestring = '745.0-745.3, 745.6*, 746, 747.1-747.49, 747.81, 747.89, 35.8, 35.81, 35.82, 35.83, 35.84' # Use clinvoc to parse and standardize the above codes vocab = ICD9CM() codeset = vocab.parse(codestring) print(codeset) <...
3152e485bb8ee07489c1fb472652934b7dfec540
tests/test_clone.py
tests/test_clone.py
import unittest from cvsgit.command.clone import clone from os.path import dirname, join, exists from shutil import rmtree class Test(unittest.TestCase): def setUp(self): self.tmpdir = join(dirname(__file__), 'tmp') def tearDown(self): if exists(self.tmpdir): rmtree(self.tmpdir) ...
import unittest from cvsgit.command.clone import clone from os.path import dirname, join, exists from shutil import rmtree class Test(unittest.TestCase): def setUp(self): self.tmpdir = join(dirname(__file__), 'tmp') def tearDown(self): if exists(self.tmpdir): rmtree(self.tmpdir) ...
Use unabbreviated --quiet-git option in clone test
Use unabbreviated --quiet-git option in clone test
Python
isc
ustuehler/git-cvs,ustuehler/git-cvs
import unittest from cvsgit.command.clone import clone from os.path import dirname, join, exists from shutil import rmtree class Test(unittest.TestCase): def setUp(self): self.tmpdir = join(dirname(__file__), 'tmp') def tearDown(self): if exists(self.tmpdir): rmtree(self.tmpdir) ...
import unittest from cvsgit.command.clone import clone from os.path import dirname, join, exists from shutil import rmtree class Test(unittest.TestCase): def setUp(self): self.tmpdir = join(dirname(__file__), 'tmp') def tearDown(self): if exists(self.tmpdir): rmtree(self.tmpdir) ...
<commit_before>import unittest from cvsgit.command.clone import clone from os.path import dirname, join, exists from shutil import rmtree class Test(unittest.TestCase): def setUp(self): self.tmpdir = join(dirname(__file__), 'tmp') def tearDown(self): if exists(self.tmpdir): rmtree...
import unittest from cvsgit.command.clone import clone from os.path import dirname, join, exists from shutil import rmtree class Test(unittest.TestCase): def setUp(self): self.tmpdir = join(dirname(__file__), 'tmp') def tearDown(self): if exists(self.tmpdir): rmtree(self.tmpdir) ...
import unittest from cvsgit.command.clone import clone from os.path import dirname, join, exists from shutil import rmtree class Test(unittest.TestCase): def setUp(self): self.tmpdir = join(dirname(__file__), 'tmp') def tearDown(self): if exists(self.tmpdir): rmtree(self.tmpdir) ...
<commit_before>import unittest from cvsgit.command.clone import clone from os.path import dirname, join, exists from shutil import rmtree class Test(unittest.TestCase): def setUp(self): self.tmpdir = join(dirname(__file__), 'tmp') def tearDown(self): if exists(self.tmpdir): rmtree...
8ae44c3645eb6ec0bc0063299a193c14280430c7
tests/capstone/policy/test_greedy.py
tests/capstone/policy/test_greedy.py
import unittest from capstone.policy import GreedyPolicy from capstone.util import play_match class FakeEnv(object): def __init__(self): self._actions = [] def cur_state(self): return 'FakeState' def actions(self, state): return self._actions class TestGreedy(unittest.TestCase...
import unittest from capstone.policy import GreedyPolicy class TestGreedy(unittest.TestCase): def setUp(self): self.policy = GreedyPolicy() def test_max_action(self): state = 1 actions = [1, 5, 8] fake_qf = { (state, 1): 5, (state, 5): 33, ...
Remove FakeEnv from Greedy test suite
Remove FakeEnv from Greedy test suite
Python
mit
davidrobles/mlnd-capstone-code
import unittest from capstone.policy import GreedyPolicy from capstone.util import play_match class FakeEnv(object): def __init__(self): self._actions = [] def cur_state(self): return 'FakeState' def actions(self, state): return self._actions class TestGreedy(unittest.TestCase...
import unittest from capstone.policy import GreedyPolicy class TestGreedy(unittest.TestCase): def setUp(self): self.policy = GreedyPolicy() def test_max_action(self): state = 1 actions = [1, 5, 8] fake_qf = { (state, 1): 5, (state, 5): 33, ...
<commit_before>import unittest from capstone.policy import GreedyPolicy from capstone.util import play_match class FakeEnv(object): def __init__(self): self._actions = [] def cur_state(self): return 'FakeState' def actions(self, state): return self._actions class TestGreedy(un...
import unittest from capstone.policy import GreedyPolicy class TestGreedy(unittest.TestCase): def setUp(self): self.policy = GreedyPolicy() def test_max_action(self): state = 1 actions = [1, 5, 8] fake_qf = { (state, 1): 5, (state, 5): 33, ...
import unittest from capstone.policy import GreedyPolicy from capstone.util import play_match class FakeEnv(object): def __init__(self): self._actions = [] def cur_state(self): return 'FakeState' def actions(self, state): return self._actions class TestGreedy(unittest.TestCase...
<commit_before>import unittest from capstone.policy import GreedyPolicy from capstone.util import play_match class FakeEnv(object): def __init__(self): self._actions = [] def cur_state(self): return 'FakeState' def actions(self, state): return self._actions class TestGreedy(un...
02af21600824ee1f836e89e825cc94fd1d949628
resolwe/flow/migrations/0046_purge_data_dependencies.py
resolwe/flow/migrations/0046_purge_data_dependencies.py
# Generated by Django 2.2.15 on 2020-09-21 11:38 from django.db import migrations from resolwe.flow.utils import iterate_fields def purge_data_dependencies(apps, schema_editor): Data = apps.get_model("flow", "Data") DataDependency = apps.get_model("flow", "DataDependency") for data in Data.objects.iter...
# Generated by Django 2.2.15 on 2020-09-21 11:38 from django.db import migrations from resolwe.flow.utils import iterate_fields def purge_data_dependencies(apps, schema_editor): Data = apps.get_model("flow", "Data") DataDependency = apps.get_model("flow", "DataDependency") for data in Data.objects.iter...
Fix migration to use actual value instead of non-existing attribute
Fix migration to use actual value instead of non-existing attribute
Python
apache-2.0
genialis/resolwe,genialis/resolwe
# Generated by Django 2.2.15 on 2020-09-21 11:38 from django.db import migrations from resolwe.flow.utils import iterate_fields def purge_data_dependencies(apps, schema_editor): Data = apps.get_model("flow", "Data") DataDependency = apps.get_model("flow", "DataDependency") for data in Data.objects.iter...
# Generated by Django 2.2.15 on 2020-09-21 11:38 from django.db import migrations from resolwe.flow.utils import iterate_fields def purge_data_dependencies(apps, schema_editor): Data = apps.get_model("flow", "Data") DataDependency = apps.get_model("flow", "DataDependency") for data in Data.objects.iter...
<commit_before># Generated by Django 2.2.15 on 2020-09-21 11:38 from django.db import migrations from resolwe.flow.utils import iterate_fields def purge_data_dependencies(apps, schema_editor): Data = apps.get_model("flow", "Data") DataDependency = apps.get_model("flow", "DataDependency") for data in Da...
# Generated by Django 2.2.15 on 2020-09-21 11:38 from django.db import migrations from resolwe.flow.utils import iterate_fields def purge_data_dependencies(apps, schema_editor): Data = apps.get_model("flow", "Data") DataDependency = apps.get_model("flow", "DataDependency") for data in Data.objects.iter...
# Generated by Django 2.2.15 on 2020-09-21 11:38 from django.db import migrations from resolwe.flow.utils import iterate_fields def purge_data_dependencies(apps, schema_editor): Data = apps.get_model("flow", "Data") DataDependency = apps.get_model("flow", "DataDependency") for data in Data.objects.iter...
<commit_before># Generated by Django 2.2.15 on 2020-09-21 11:38 from django.db import migrations from resolwe.flow.utils import iterate_fields def purge_data_dependencies(apps, schema_editor): Data = apps.get_model("flow", "Data") DataDependency = apps.get_model("flow", "DataDependency") for data in Da...
9934fefe478bfa99bc8998ea5021700696160444
sale_payment_method_automatic_workflow/__openerp__.py
sale_payment_method_automatic_workflow/__openerp__.py
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
Correct author list, add OCA
Correct author list, add OCA
Python
agpl-3.0
Endika/e-commerce,BT-fgarbely/e-commerce,cloud9UG/e-commerce,JayVora-SerpentCS/e-commerce,BT-ojossen/e-commerce,Antiun/e-commerce,brain-tec/e-commerce,raycarnes/e-commerce,BT-ojossen/e-commerce,raycarnes/e-commerce,vauxoo-dev/e-commerce,damdam-s/e-commerce,Antiun/e-commerce,jt-xx/e-commerce,brain-tec/e-commerce,JayVora...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
0d7f93a787dcf723d79e9122702833c4942f09cc
photo/qt/image.py
photo/qt/image.py
"""Provide the class Image corresponding to an IdxItem. """ import os.path import re from PySide import QtGui class ImageNotFoundError(Exception): pass class Image(object): def __init__(self, basedir, item): self.item = item self.fileName = os.path.join(basedir, item.filename) self...
"""Provide the class Image corresponding to an IdxItem. """ import os.path import re from PySide import QtGui class ImageNotFoundError(Exception): pass class Image(object): def __init__(self, basedir, item): self.item = item self.fileName = os.path.join(basedir, item.filename) self...
Store the rotation matrix corresponding to the orientation in the item.
Store the rotation matrix corresponding to the orientation in the item.
Python
apache-2.0
RKrahl/photo-tools
"""Provide the class Image corresponding to an IdxItem. """ import os.path import re from PySide import QtGui class ImageNotFoundError(Exception): pass class Image(object): def __init__(self, basedir, item): self.item = item self.fileName = os.path.join(basedir, item.filename) self...
"""Provide the class Image corresponding to an IdxItem. """ import os.path import re from PySide import QtGui class ImageNotFoundError(Exception): pass class Image(object): def __init__(self, basedir, item): self.item = item self.fileName = os.path.join(basedir, item.filename) self...
<commit_before>"""Provide the class Image corresponding to an IdxItem. """ import os.path import re from PySide import QtGui class ImageNotFoundError(Exception): pass class Image(object): def __init__(self, basedir, item): self.item = item self.fileName = os.path.join(basedir, item.filenam...
"""Provide the class Image corresponding to an IdxItem. """ import os.path import re from PySide import QtGui class ImageNotFoundError(Exception): pass class Image(object): def __init__(self, basedir, item): self.item = item self.fileName = os.path.join(basedir, item.filename) self...
"""Provide the class Image corresponding to an IdxItem. """ import os.path import re from PySide import QtGui class ImageNotFoundError(Exception): pass class Image(object): def __init__(self, basedir, item): self.item = item self.fileName = os.path.join(basedir, item.filename) self...
<commit_before>"""Provide the class Image corresponding to an IdxItem. """ import os.path import re from PySide import QtGui class ImageNotFoundError(Exception): pass class Image(object): def __init__(self, basedir, item): self.item = item self.fileName = os.path.join(basedir, item.filenam...
1cf7b11cdb12a135f2dfa99d7e625eb160b0d7c2
apps/orders/models.py
apps/orders/models.py
from django.db import models # Create your models here.
from django.db import models from ..shop.models import Product class Order(models.Model): first_name = models.CharField(verbose_name="Ім,я", max_length=50) last_name = models.CharField(verbose_name="Прізвище", max_length=50) email = models.EmailField(verbose_name="Email") address = models.CharField(v...
Create Order and OrderItem Models
Create Order and OrderItem Models
Python
mit
samitnuk/online_shop,samitnuk/online_shop,samitnuk/online_shop
from django.db import models # Create your models here. Create Order and OrderItem Models
from django.db import models from ..shop.models import Product class Order(models.Model): first_name = models.CharField(verbose_name="Ім,я", max_length=50) last_name = models.CharField(verbose_name="Прізвище", max_length=50) email = models.EmailField(verbose_name="Email") address = models.CharField(v...
<commit_before>from django.db import models # Create your models here. <commit_msg>Create Order and OrderItem Models<commit_after>
from django.db import models from ..shop.models import Product class Order(models.Model): first_name = models.CharField(verbose_name="Ім,я", max_length=50) last_name = models.CharField(verbose_name="Прізвище", max_length=50) email = models.EmailField(verbose_name="Email") address = models.CharField(v...
from django.db import models # Create your models here. Create Order and OrderItem Modelsfrom django.db import models from ..shop.models import Product class Order(models.Model): first_name = models.CharField(verbose_name="Ім,я", max_length=50) last_name = models.CharField(verbose_name="Прізвище", max_lengt...
<commit_before>from django.db import models # Create your models here. <commit_msg>Create Order and OrderItem Models<commit_after>from django.db import models from ..shop.models import Product class Order(models.Model): first_name = models.CharField(verbose_name="Ім,я", max_length=50) last_name = models.Cha...
e5c5d7fae40eee638175c180c9cc7317d4bfe4b3
scripts/migration/migrate_date_modified_for_existing_nodes.py
scripts/migration/migrate_date_modified_for_existing_nodes.py
""" This will add a date_modified field to all nodes. Date_modified will be equivalent to the date of the last log. """ import sys import logging from modularodm import Q from website.app import init_app from website import models from scripts import utils as script_utils from framework.transactions.context import Tok...
""" This will add a date_modified field to all nodes. Date_modified will be equivalent to the date of the last log. """ import sys import logging from modularodm import Q from website.app import init_app from website import models from scripts import utils as script_utils from framework.transactions.context import Tok...
Fix migration; work around node whose files were unmigrated
Fix migration; work around node whose files were unmigrated [skip ci]
Python
apache-2.0
cwisecarver/osf.io,cslzchen/osf.io,baylee-d/osf.io,crcresearch/osf.io,TomHeatwole/osf.io,kwierman/osf.io,KAsante95/osf.io,acshi/osf.io,zachjanicki/osf.io,mluo613/osf.io,kwierman/osf.io,chennan47/osf.io,RomanZWang/osf.io,KAsante95/osf.io,asanfilippo7/osf.io,chrisseto/osf.io,mluke93/osf.io,emetsger/osf.io,amyshi188/osf.i...
""" This will add a date_modified field to all nodes. Date_modified will be equivalent to the date of the last log. """ import sys import logging from modularodm import Q from website.app import init_app from website import models from scripts import utils as script_utils from framework.transactions.context import Tok...
""" This will add a date_modified field to all nodes. Date_modified will be equivalent to the date of the last log. """ import sys import logging from modularodm import Q from website.app import init_app from website import models from scripts import utils as script_utils from framework.transactions.context import Tok...
<commit_before>""" This will add a date_modified field to all nodes. Date_modified will be equivalent to the date of the last log. """ import sys import logging from modularodm import Q from website.app import init_app from website import models from scripts import utils as script_utils from framework.transactions.con...
""" This will add a date_modified field to all nodes. Date_modified will be equivalent to the date of the last log. """ import sys import logging from modularodm import Q from website.app import init_app from website import models from scripts import utils as script_utils from framework.transactions.context import Tok...
""" This will add a date_modified field to all nodes. Date_modified will be equivalent to the date of the last log. """ import sys import logging from modularodm import Q from website.app import init_app from website import models from scripts import utils as script_utils from framework.transactions.context import Tok...
<commit_before>""" This will add a date_modified field to all nodes. Date_modified will be equivalent to the date of the last log. """ import sys import logging from modularodm import Q from website.app import init_app from website import models from scripts import utils as script_utils from framework.transactions.con...
348d69c1491b7065dff06f6aebba105d72bbfd0d
metal/mmtl/test_mmtl.py
metal/mmtl/test_mmtl.py
import unittest from nose.tools import nottest from metal.mmtl.BERT_tasks import create_tasks from metal.mmtl.metal_model import MetalModel from metal.mmtl.trainer import MultitaskTrainer @nottest class MMTLTest(unittest.TestCase): @classmethod def setUpClass(cls): task_names = [ "COLA",...
import unittest from nose.tools import nottest from metal.mmtl.bert_tasks import create_tasks from metal.mmtl.metal_model import MetalModel from metal.mmtl.trainer import MultitaskTrainer @nottest class MMTLTest(unittest.TestCase): @classmethod def setUpClass(cls): task_names = [ "COLA",...
Fix BERT -> bert in bert_tasks
Fix BERT -> bert in bert_tasks
Python
apache-2.0
HazyResearch/metal,HazyResearch/metal
import unittest from nose.tools import nottest from metal.mmtl.BERT_tasks import create_tasks from metal.mmtl.metal_model import MetalModel from metal.mmtl.trainer import MultitaskTrainer @nottest class MMTLTest(unittest.TestCase): @classmethod def setUpClass(cls): task_names = [ "COLA",...
import unittest from nose.tools import nottest from metal.mmtl.bert_tasks import create_tasks from metal.mmtl.metal_model import MetalModel from metal.mmtl.trainer import MultitaskTrainer @nottest class MMTLTest(unittest.TestCase): @classmethod def setUpClass(cls): task_names = [ "COLA",...
<commit_before>import unittest from nose.tools import nottest from metal.mmtl.BERT_tasks import create_tasks from metal.mmtl.metal_model import MetalModel from metal.mmtl.trainer import MultitaskTrainer @nottest class MMTLTest(unittest.TestCase): @classmethod def setUpClass(cls): task_names = [ ...
import unittest from nose.tools import nottest from metal.mmtl.bert_tasks import create_tasks from metal.mmtl.metal_model import MetalModel from metal.mmtl.trainer import MultitaskTrainer @nottest class MMTLTest(unittest.TestCase): @classmethod def setUpClass(cls): task_names = [ "COLA",...
import unittest from nose.tools import nottest from metal.mmtl.BERT_tasks import create_tasks from metal.mmtl.metal_model import MetalModel from metal.mmtl.trainer import MultitaskTrainer @nottest class MMTLTest(unittest.TestCase): @classmethod def setUpClass(cls): task_names = [ "COLA",...
<commit_before>import unittest from nose.tools import nottest from metal.mmtl.BERT_tasks import create_tasks from metal.mmtl.metal_model import MetalModel from metal.mmtl.trainer import MultitaskTrainer @nottest class MMTLTest(unittest.TestCase): @classmethod def setUpClass(cls): task_names = [ ...