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
5875baf754d3bcc911f828fc3ecb302ac6da967f
tagcache/lock.py
tagcache/lock.py
# -*- encoding: utf-8 -*- import os import fcntl from tagcache.utils import open_file class FileLock(object): def __init__(self, path): self.path = path self.fd = None def acquire(self, ex=False, nb=False): """ Acquire a lock on a path. :param ex (optional): defa...
# -*- encoding: utf-8 -*- import os import fcntl from tagcache.utils import open_file class FileLock(object): def __init__(self, path): self.path = path self.fd = None @property def is_acquired(self): return self.fd is not None def acquire(self, ex=False, nb=False): ...
Add `is_acquired` property to FileLock
Add `is_acquired` property to FileLock
Python
mit
huangjunwen/tagcache
# -*- encoding: utf-8 -*- import os import fcntl from tagcache.utils import open_file class FileLock(object): def __init__(self, path): self.path = path self.fd = None def acquire(self, ex=False, nb=False): """ Acquire a lock on a path. :param ex (optional): defa...
# -*- encoding: utf-8 -*- import os import fcntl from tagcache.utils import open_file class FileLock(object): def __init__(self, path): self.path = path self.fd = None @property def is_acquired(self): return self.fd is not None def acquire(self, ex=False, nb=False): ...
<commit_before># -*- encoding: utf-8 -*- import os import fcntl from tagcache.utils import open_file class FileLock(object): def __init__(self, path): self.path = path self.fd = None def acquire(self, ex=False, nb=False): """ Acquire a lock on a path. :param ex (...
# -*- encoding: utf-8 -*- import os import fcntl from tagcache.utils import open_file class FileLock(object): def __init__(self, path): self.path = path self.fd = None @property def is_acquired(self): return self.fd is not None def acquire(self, ex=False, nb=False): ...
# -*- encoding: utf-8 -*- import os import fcntl from tagcache.utils import open_file class FileLock(object): def __init__(self, path): self.path = path self.fd = None def acquire(self, ex=False, nb=False): """ Acquire a lock on a path. :param ex (optional): defa...
<commit_before># -*- encoding: utf-8 -*- import os import fcntl from tagcache.utils import open_file class FileLock(object): def __init__(self, path): self.path = path self.fd = None def acquire(self, ex=False, nb=False): """ Acquire a lock on a path. :param ex (...
a56108990e2cda8694f7b5c4fe3c615966c4cd6c
python/powers_of_two.py
python/powers_of_two.py
def powers_of_two(limit): value = 1 while value < limit: yield value value += value # Use the generator for i in powers_of_two(70): print(i) # Explore the mechanism print(type(powers_of_two)) # <class 'function'> g = powers_of_two(100) print(type(g)) # <class 'generator'> pri...
def powers_of_two(limit): value = 1 while value < limit: yield value value += value # Use the generator for i in powers_of_two(70): print(i) # Explore the mechanism g = powers_of_two(100) assert(str(type(powers_of_two)) == "<class 'function'>") assert(str(type(g)) == "<class 'generator'>")...
Use asserts instead of prints
Use asserts instead of prints
Python
mit
rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/polyglot,...
def powers_of_two(limit): value = 1 while value < limit: yield value value += value # Use the generator for i in powers_of_two(70): print(i) # Explore the mechanism print(type(powers_of_two)) # <class 'function'> g = powers_of_two(100) print(type(g)) # <class 'generator'> pri...
def powers_of_two(limit): value = 1 while value < limit: yield value value += value # Use the generator for i in powers_of_two(70): print(i) # Explore the mechanism g = powers_of_two(100) assert(str(type(powers_of_two)) == "<class 'function'>") assert(str(type(g)) == "<class 'generator'>")...
<commit_before>def powers_of_two(limit): value = 1 while value < limit: yield value value += value # Use the generator for i in powers_of_two(70): print(i) # Explore the mechanism print(type(powers_of_two)) # <class 'function'> g = powers_of_two(100) print(type(g)) # <class '...
def powers_of_two(limit): value = 1 while value < limit: yield value value += value # Use the generator for i in powers_of_two(70): print(i) # Explore the mechanism g = powers_of_two(100) assert(str(type(powers_of_two)) == "<class 'function'>") assert(str(type(g)) == "<class 'generator'>")...
def powers_of_two(limit): value = 1 while value < limit: yield value value += value # Use the generator for i in powers_of_two(70): print(i) # Explore the mechanism print(type(powers_of_two)) # <class 'function'> g = powers_of_two(100) print(type(g)) # <class 'generator'> pri...
<commit_before>def powers_of_two(limit): value = 1 while value < limit: yield value value += value # Use the generator for i in powers_of_two(70): print(i) # Explore the mechanism print(type(powers_of_two)) # <class 'function'> g = powers_of_two(100) print(type(g)) # <class '...
55a1f6197800249b3ad13ec7c5358e907ea04c46
comics/comics/treadingground.py
comics/comics/treadingground.py
from comics.aggregator.crawler import CrawlerBase, CrawlerImage from comics.meta.base import MetaBase class Meta(MetaBase): name = 'Treading Ground' language = 'en' url = 'http://www.treadingground.com/' start_date = '2003-10-12' rights = 'Nick Wright' class Crawler(CrawlerBase): history_capab...
from comics.aggregator.crawler import CrawlerBase, CrawlerImage from comics.meta.base import MetaBase class Meta(MetaBase): name = 'Treading Ground' language = 'en' url = 'http://www.treadingground.com/' start_date = '2003-10-12' rights = 'Nick Wright' class Crawler(CrawlerBase): schedule = No...
Remove schedule for ended comic
Remove schedule for ended comic
Python
agpl-3.0
klette/comics,datagutten/comics,klette/comics,jodal/comics,datagutten/comics,klette/comics,jodal/comics,jodal/comics,jodal/comics,datagutten/comics,datagutten/comics
from comics.aggregator.crawler import CrawlerBase, CrawlerImage from comics.meta.base import MetaBase class Meta(MetaBase): name = 'Treading Ground' language = 'en' url = 'http://www.treadingground.com/' start_date = '2003-10-12' rights = 'Nick Wright' class Crawler(CrawlerBase): history_capab...
from comics.aggregator.crawler import CrawlerBase, CrawlerImage from comics.meta.base import MetaBase class Meta(MetaBase): name = 'Treading Ground' language = 'en' url = 'http://www.treadingground.com/' start_date = '2003-10-12' rights = 'Nick Wright' class Crawler(CrawlerBase): schedule = No...
<commit_before>from comics.aggregator.crawler import CrawlerBase, CrawlerImage from comics.meta.base import MetaBase class Meta(MetaBase): name = 'Treading Ground' language = 'en' url = 'http://www.treadingground.com/' start_date = '2003-10-12' rights = 'Nick Wright' class Crawler(CrawlerBase): ...
from comics.aggregator.crawler import CrawlerBase, CrawlerImage from comics.meta.base import MetaBase class Meta(MetaBase): name = 'Treading Ground' language = 'en' url = 'http://www.treadingground.com/' start_date = '2003-10-12' rights = 'Nick Wright' class Crawler(CrawlerBase): schedule = No...
from comics.aggregator.crawler import CrawlerBase, CrawlerImage from comics.meta.base import MetaBase class Meta(MetaBase): name = 'Treading Ground' language = 'en' url = 'http://www.treadingground.com/' start_date = '2003-10-12' rights = 'Nick Wright' class Crawler(CrawlerBase): history_capab...
<commit_before>from comics.aggregator.crawler import CrawlerBase, CrawlerImage from comics.meta.base import MetaBase class Meta(MetaBase): name = 'Treading Ground' language = 'en' url = 'http://www.treadingground.com/' start_date = '2003-10-12' rights = 'Nick Wright' class Crawler(CrawlerBase): ...
0795ffe195798461961fc41329fb7df30ec429c3
lisa/server/tests/test_plugins.py
lisa/server/tests/test_plugins.py
from lisa.server.plugins.PluginManager import PluginManagerSingleton from twisted.trial import unittest import json class LisaClientTestCase_Plugin(unittest.TestCase): def setUp(self): self.pluginManager = PluginManagerSingleton.get() def test_a_install_plugin(self): answer = self.pluginManag...
from lisa.server.plugins.PluginManager import PluginManagerSingleton from twisted.trial import unittest import json class LisaClientTestCase_Plugin(unittest.TestCase): def setUp(self): self.pluginManager = PluginManagerSingleton.get() def test_a_install_plugin(self): answer = self.pluginManag...
Test with a dedicated plugin now
Test with a dedicated plugin now
Python
mit
Seraf/LISA,Seraf/LISA,Seraf/LISA,Seraf/LISA
from lisa.server.plugins.PluginManager import PluginManagerSingleton from twisted.trial import unittest import json class LisaClientTestCase_Plugin(unittest.TestCase): def setUp(self): self.pluginManager = PluginManagerSingleton.get() def test_a_install_plugin(self): answer = self.pluginManag...
from lisa.server.plugins.PluginManager import PluginManagerSingleton from twisted.trial import unittest import json class LisaClientTestCase_Plugin(unittest.TestCase): def setUp(self): self.pluginManager = PluginManagerSingleton.get() def test_a_install_plugin(self): answer = self.pluginManag...
<commit_before>from lisa.server.plugins.PluginManager import PluginManagerSingleton from twisted.trial import unittest import json class LisaClientTestCase_Plugin(unittest.TestCase): def setUp(self): self.pluginManager = PluginManagerSingleton.get() def test_a_install_plugin(self): answer = s...
from lisa.server.plugins.PluginManager import PluginManagerSingleton from twisted.trial import unittest import json class LisaClientTestCase_Plugin(unittest.TestCase): def setUp(self): self.pluginManager = PluginManagerSingleton.get() def test_a_install_plugin(self): answer = self.pluginManag...
from lisa.server.plugins.PluginManager import PluginManagerSingleton from twisted.trial import unittest import json class LisaClientTestCase_Plugin(unittest.TestCase): def setUp(self): self.pluginManager = PluginManagerSingleton.get() def test_a_install_plugin(self): answer = self.pluginManag...
<commit_before>from lisa.server.plugins.PluginManager import PluginManagerSingleton from twisted.trial import unittest import json class LisaClientTestCase_Plugin(unittest.TestCase): def setUp(self): self.pluginManager = PluginManagerSingleton.get() def test_a_install_plugin(self): answer = s...
d4fc34ea4635ee4ec294e1eb52fcd83174dd52c5
steve/_version.py
steve/_version.py
####################################################################### # This file is part of steve. # # Copyright (C) 2012 Will Kahn-Greene # # steve is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ve...
####################################################################### # This file is part of steve. # # Copyright (C) 2012 Will Kahn-Greene # # steve is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ve...
Add version number notes; set to dev
Add version number notes; set to dev
Python
bsd-2-clause
willkg/steve,pyvideo/steve,CarlFK/steve,willkg/steve,pyvideo/steve,CarlFK/steve,willkg/steve,CarlFK/steve,pyvideo/steve
####################################################################### # This file is part of steve. # # Copyright (C) 2012 Will Kahn-Greene # # steve is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ve...
####################################################################### # This file is part of steve. # # Copyright (C) 2012 Will Kahn-Greene # # steve is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ve...
<commit_before>####################################################################### # This file is part of steve. # # Copyright (C) 2012 Will Kahn-Greene # # steve is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founda...
####################################################################### # This file is part of steve. # # Copyright (C) 2012 Will Kahn-Greene # # steve is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ve...
####################################################################### # This file is part of steve. # # Copyright (C) 2012 Will Kahn-Greene # # steve is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ve...
<commit_before>####################################################################### # This file is part of steve. # # Copyright (C) 2012 Will Kahn-Greene # # steve is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founda...
ae5dab44cd1dc921398ec242d0718bbcebc09f37
test/test_pudl.py
test/test_pudl.py
"""Tests excercising the pudl module for use with PyTest.""" import pytest import pudl.pudl import pudl.ferc1 import pudl.constants as pc def test_init_db(): """Create a fresh PUDL DB and pull in some FERC1 & EIA923 data.""" pudl.ferc1.init_db(refyear=2015, years=range(2007, 2016), ...
"""Tests excercising the pudl module for use with PyTest.""" import pytest import pudl.pudl import pudl.ferc1 import pudl.constants as pc def test_init_db(): """Create a fresh PUDL DB and pull in some FERC1 & EIA923 data.""" pudl.ferc1.init_db(refyear=2015, years=range(2007, 2016), ...
Expand default test years for PUDL to 2011-2015
Expand default test years for PUDL to 2011-2015 Tests successfully passed for all EIA923 tables ingesting from 2011 through 2015 (2016 still needs some id_mapping or exhaustie ID love).
Python
mit
catalyst-cooperative/pudl,catalyst-cooperative/pudl
"""Tests excercising the pudl module for use with PyTest.""" import pytest import pudl.pudl import pudl.ferc1 import pudl.constants as pc def test_init_db(): """Create a fresh PUDL DB and pull in some FERC1 & EIA923 data.""" pudl.ferc1.init_db(refyear=2015, years=range(2007, 2016), ...
"""Tests excercising the pudl module for use with PyTest.""" import pytest import pudl.pudl import pudl.ferc1 import pudl.constants as pc def test_init_db(): """Create a fresh PUDL DB and pull in some FERC1 & EIA923 data.""" pudl.ferc1.init_db(refyear=2015, years=range(2007, 2016), ...
<commit_before>"""Tests excercising the pudl module for use with PyTest.""" import pytest import pudl.pudl import pudl.ferc1 import pudl.constants as pc def test_init_db(): """Create a fresh PUDL DB and pull in some FERC1 & EIA923 data.""" pudl.ferc1.init_db(refyear=2015, years=range(2...
"""Tests excercising the pudl module for use with PyTest.""" import pytest import pudl.pudl import pudl.ferc1 import pudl.constants as pc def test_init_db(): """Create a fresh PUDL DB and pull in some FERC1 & EIA923 data.""" pudl.ferc1.init_db(refyear=2015, years=range(2007, 2016), ...
"""Tests excercising the pudl module for use with PyTest.""" import pytest import pudl.pudl import pudl.ferc1 import pudl.constants as pc def test_init_db(): """Create a fresh PUDL DB and pull in some FERC1 & EIA923 data.""" pudl.ferc1.init_db(refyear=2015, years=range(2007, 2016), ...
<commit_before>"""Tests excercising the pudl module for use with PyTest.""" import pytest import pudl.pudl import pudl.ferc1 import pudl.constants as pc def test_init_db(): """Create a fresh PUDL DB and pull in some FERC1 & EIA923 data.""" pudl.ferc1.init_db(refyear=2015, years=range(2...
5487126bfc3c4fd16243b9c7e00b204f2f8d7374
tests/test_znc.py
tests/test_znc.py
def test_service_running(Service): service = Service('znc') assert service.is_running def test_socket_listening(Socket): socket = Socket('tcp://127.0.0.1:6666') assert socket.is_listening
from testinfra.utils.ansible_runner import AnsibleRunner testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') def test_service_enabled(Service): service = Service('znc') assert service.is_enabled def test_service_running(Service): service = Service('znc') assert service.i...
Tweak the infratest a bit
Tweak the infratest a bit
Python
mit
triplepoint/ansible-znc
def test_service_running(Service): service = Service('znc') assert service.is_running def test_socket_listening(Socket): socket = Socket('tcp://127.0.0.1:6666') assert socket.is_listening Tweak the infratest a bit
from testinfra.utils.ansible_runner import AnsibleRunner testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') def test_service_enabled(Service): service = Service('znc') assert service.is_enabled def test_service_running(Service): service = Service('znc') assert service.i...
<commit_before>def test_service_running(Service): service = Service('znc') assert service.is_running def test_socket_listening(Socket): socket = Socket('tcp://127.0.0.1:6666') assert socket.is_listening <commit_msg>Tweak the infratest a bit<commit_after>
from testinfra.utils.ansible_runner import AnsibleRunner testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') def test_service_enabled(Service): service = Service('znc') assert service.is_enabled def test_service_running(Service): service = Service('znc') assert service.i...
def test_service_running(Service): service = Service('znc') assert service.is_running def test_socket_listening(Socket): socket = Socket('tcp://127.0.0.1:6666') assert socket.is_listening Tweak the infratest a bitfrom testinfra.utils.ansible_runner import AnsibleRunner testinfra_hosts = AnsibleRunner...
<commit_before>def test_service_running(Service): service = Service('znc') assert service.is_running def test_socket_listening(Socket): socket = Socket('tcp://127.0.0.1:6666') assert socket.is_listening <commit_msg>Tweak the infratest a bit<commit_after>from testinfra.utils.ansible_runner import Ansib...
67b18247d48cc0a6e13526fdbe28756ea67e5166
shuup/guide/settings.py
shuup/guide/settings.py
# This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. #: ReadtheDocs API URL #: #: URL for fetching search results via ReadtheDocs API. SHUUP_GUIDE_API_U...
# This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. #: ReadtheDocs API URL #: #: URL for fetching search results via ReadtheDocs API. SHUUP_GUIDE_API_U...
Update guide url to shuup-guide.readthedocs.io
Update guide url to shuup-guide.readthedocs.io Refs SHUUP-3188
Python
agpl-3.0
shoopio/shoop,shoopio/shoop,suutari/shoop,suutari-ai/shoop,shoopio/shoop,suutari-ai/shoop,shawnadelic/shuup,suutari/shoop,shawnadelic/shuup,hrayr-artunyan/shuup,shawnadelic/shuup,hrayr-artunyan/shuup,suutari-ai/shoop,suutari/shoop,hrayr-artunyan/shuup
# This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. #: ReadtheDocs API URL #: #: URL for fetching search results via ReadtheDocs API. SHUUP_GUIDE_API_U...
# This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. #: ReadtheDocs API URL #: #: URL for fetching search results via ReadtheDocs API. SHUUP_GUIDE_API_U...
<commit_before># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. #: ReadtheDocs API URL #: #: URL for fetching search results via ReadtheDocs API. SH...
# This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. #: ReadtheDocs API URL #: #: URL for fetching search results via ReadtheDocs API. SHUUP_GUIDE_API_U...
# This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. #: ReadtheDocs API URL #: #: URL for fetching search results via ReadtheDocs API. SHUUP_GUIDE_API_U...
<commit_before># This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. #: ReadtheDocs API URL #: #: URL for fetching search results via ReadtheDocs API. SH...
0dd9fba16a73954a3bbb18c5b2de9995c07ef56f
pushbullet/filetype.py
pushbullet/filetype.py
def _magic_get_file_type(f, _): file_type = magic.from_buffer(f.read(1024), mime=True) f.seek(0) return file_type def _guess_file_type(_, filename): return mimetypes.guess_type(filename)[0] try: import magic except ImportError: import mimetypes get_file_type = _guess_file_type else: ...
def _magic_get_file_type(f, _): file_type = magic.from_buffer(f.read(1024), mime=True) f.seek(0) return file_type.decode("ASCII") def _guess_file_type(_, filename): return mimetypes.guess_type(filename)[0] try: import magic except ImportError: import mimetypes get_file_type = _guess_file...
Fix libmagic issue with Python 3
Fix libmagic issue with Python 3
Python
mit
kovacsbalu/pushbullet.py,randomchars/pushbullet.py,Saturn/pushbullet.py
def _magic_get_file_type(f, _): file_type = magic.from_buffer(f.read(1024), mime=True) f.seek(0) return file_type def _guess_file_type(_, filename): return mimetypes.guess_type(filename)[0] try: import magic except ImportError: import mimetypes get_file_type = _guess_file_type else: ...
def _magic_get_file_type(f, _): file_type = magic.from_buffer(f.read(1024), mime=True) f.seek(0) return file_type.decode("ASCII") def _guess_file_type(_, filename): return mimetypes.guess_type(filename)[0] try: import magic except ImportError: import mimetypes get_file_type = _guess_file...
<commit_before>def _magic_get_file_type(f, _): file_type = magic.from_buffer(f.read(1024), mime=True) f.seek(0) return file_type def _guess_file_type(_, filename): return mimetypes.guess_type(filename)[0] try: import magic except ImportError: import mimetypes get_file_type = _guess_file_...
def _magic_get_file_type(f, _): file_type = magic.from_buffer(f.read(1024), mime=True) f.seek(0) return file_type.decode("ASCII") def _guess_file_type(_, filename): return mimetypes.guess_type(filename)[0] try: import magic except ImportError: import mimetypes get_file_type = _guess_file...
def _magic_get_file_type(f, _): file_type = magic.from_buffer(f.read(1024), mime=True) f.seek(0) return file_type def _guess_file_type(_, filename): return mimetypes.guess_type(filename)[0] try: import magic except ImportError: import mimetypes get_file_type = _guess_file_type else: ...
<commit_before>def _magic_get_file_type(f, _): file_type = magic.from_buffer(f.read(1024), mime=True) f.seek(0) return file_type def _guess_file_type(_, filename): return mimetypes.guess_type(filename)[0] try: import magic except ImportError: import mimetypes get_file_type = _guess_file_...
9a7a0c015d0a1d23ae62ad45bcb9db0b58f4ed3e
clintools/deployed_settings.py
clintools/deployed_settings.py
from settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = T...
from settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = T...
Update deployed settings to access mysql.
Update deployed settings to access mysql.
Python
mit
SaturdayNeighborhoodHealthClinic/clintools,SaturdayNeighborhoodHealthClinic/clintools,SaturdayNeighborhoodHealthClinic/clintools
from settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = T...
from settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = T...
<commit_before>from settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True SECURE_SSL_REDIRECT = True SESSION_CO...
from settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = T...
from settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = T...
<commit_before>from settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True SECURE_SSL_REDIRECT = True SESSION_CO...
5f6e8c9317f7c52198d6cd77fa819785072b5d6a
numba2/compiler/interpreter.py
numba2/compiler/interpreter.py
# -*- coding: utf-8 -*- """ IR interpreter. Run a series of translation phases on a numba function, and interpreter the IR with the arguments. """ from __future__ import print_function, division, absolute_import from numba2 import typeof, jit from numba2.compiler.frontend import translate, interpret from numba2.pipe...
# -*- coding: utf-8 -*- """ IR interpreter. Run a series of translation phases on a numba function, and interpreter the IR with the arguments. """ from __future__ import print_function, division, absolute_import from numba2 import typeof, jit from numba2.compiler.frontend import translate, interpret from numba2.pipe...
Use tracer in debug IR interpretation mode
Use tracer in debug IR interpretation mode
Python
bsd-2-clause
flypy/flypy,flypy/flypy
# -*- coding: utf-8 -*- """ IR interpreter. Run a series of translation phases on a numba function, and interpreter the IR with the arguments. """ from __future__ import print_function, division, absolute_import from numba2 import typeof, jit from numba2.compiler.frontend import translate, interpret from numba2.pipe...
# -*- coding: utf-8 -*- """ IR interpreter. Run a series of translation phases on a numba function, and interpreter the IR with the arguments. """ from __future__ import print_function, division, absolute_import from numba2 import typeof, jit from numba2.compiler.frontend import translate, interpret from numba2.pipe...
<commit_before># -*- coding: utf-8 -*- """ IR interpreter. Run a series of translation phases on a numba function, and interpreter the IR with the arguments. """ from __future__ import print_function, division, absolute_import from numba2 import typeof, jit from numba2.compiler.frontend import translate, interpret f...
# -*- coding: utf-8 -*- """ IR interpreter. Run a series of translation phases on a numba function, and interpreter the IR with the arguments. """ from __future__ import print_function, division, absolute_import from numba2 import typeof, jit from numba2.compiler.frontend import translate, interpret from numba2.pipe...
# -*- coding: utf-8 -*- """ IR interpreter. Run a series of translation phases on a numba function, and interpreter the IR with the arguments. """ from __future__ import print_function, division, absolute_import from numba2 import typeof, jit from numba2.compiler.frontend import translate, interpret from numba2.pipe...
<commit_before># -*- coding: utf-8 -*- """ IR interpreter. Run a series of translation phases on a numba function, and interpreter the IR with the arguments. """ from __future__ import print_function, division, absolute_import from numba2 import typeof, jit from numba2.compiler.frontend import translate, interpret f...
bb897662f7f3fc17b32ffd06962fa5cb582fb6d7
easytz/middleware.py
easytz/middleware.py
from django.conf import settings from django.utils import timezone from pytz import UnknownTimeZoneError from .models import TimezoneStore class TimezonesMiddleware(object): def process_request(self, request): """ Attempts to activate a timezone from a cookie or session """ if get...
from django.conf import settings from django.utils import timezone from pytz import UnknownTimeZoneError from .models import TimezoneStore class TimezonesMiddleware(object): def process_request(self, request): """ Attempts to activate a timezone from a cookie or session """ if get...
Set the timezone right after it gets activated.
Set the timezone right after it gets activated.
Python
apache-2.0
jamesmfriedman/django-easytz
from django.conf import settings from django.utils import timezone from pytz import UnknownTimeZoneError from .models import TimezoneStore class TimezonesMiddleware(object): def process_request(self, request): """ Attempts to activate a timezone from a cookie or session """ if get...
from django.conf import settings from django.utils import timezone from pytz import UnknownTimeZoneError from .models import TimezoneStore class TimezonesMiddleware(object): def process_request(self, request): """ Attempts to activate a timezone from a cookie or session """ if get...
<commit_before>from django.conf import settings from django.utils import timezone from pytz import UnknownTimeZoneError from .models import TimezoneStore class TimezonesMiddleware(object): def process_request(self, request): """ Attempts to activate a timezone from a cookie or session """...
from django.conf import settings from django.utils import timezone from pytz import UnknownTimeZoneError from .models import TimezoneStore class TimezonesMiddleware(object): def process_request(self, request): """ Attempts to activate a timezone from a cookie or session """ if get...
from django.conf import settings from django.utils import timezone from pytz import UnknownTimeZoneError from .models import TimezoneStore class TimezonesMiddleware(object): def process_request(self, request): """ Attempts to activate a timezone from a cookie or session """ if get...
<commit_before>from django.conf import settings from django.utils import timezone from pytz import UnknownTimeZoneError from .models import TimezoneStore class TimezonesMiddleware(object): def process_request(self, request): """ Attempts to activate a timezone from a cookie or session """...
c035b951d85ffc60598968ca5a277afc416446a3
pylinks/main/models.py
pylinks/main/models.py
from django.db import models from django.contrib.sites.models import Site class DatedModel(models.Model): created_time = models.DateTimeField(auto_now_add=True, null=True) updated_time = models.DateTimeField(auto_now=True, null=True) class Meta: abstract = True get_latest_by = 'updated_ti...
from django.db import models from django.contrib.sites.models import Site class DatedModel(models.Model): created_time = models.DateTimeField(auto_now_add=True, null=True) updated_time = models.DateTimeField(auto_now=True, null=True) class Meta: abstract = True get_latest_by = 'updated_ti...
Clear sites cache on SiteInfo save
Clear sites cache on SiteInfo save
Python
mit
michaelmior/pylinks,michaelmior/pylinks,michaelmior/pylinks
from django.db import models from django.contrib.sites.models import Site class DatedModel(models.Model): created_time = models.DateTimeField(auto_now_add=True, null=True) updated_time = models.DateTimeField(auto_now=True, null=True) class Meta: abstract = True get_latest_by = 'updated_ti...
from django.db import models from django.contrib.sites.models import Site class DatedModel(models.Model): created_time = models.DateTimeField(auto_now_add=True, null=True) updated_time = models.DateTimeField(auto_now=True, null=True) class Meta: abstract = True get_latest_by = 'updated_ti...
<commit_before>from django.db import models from django.contrib.sites.models import Site class DatedModel(models.Model): created_time = models.DateTimeField(auto_now_add=True, null=True) updated_time = models.DateTimeField(auto_now=True, null=True) class Meta: abstract = True get_latest_b...
from django.db import models from django.contrib.sites.models import Site class DatedModel(models.Model): created_time = models.DateTimeField(auto_now_add=True, null=True) updated_time = models.DateTimeField(auto_now=True, null=True) class Meta: abstract = True get_latest_by = 'updated_ti...
from django.db import models from django.contrib.sites.models import Site class DatedModel(models.Model): created_time = models.DateTimeField(auto_now_add=True, null=True) updated_time = models.DateTimeField(auto_now=True, null=True) class Meta: abstract = True get_latest_by = 'updated_ti...
<commit_before>from django.db import models from django.contrib.sites.models import Site class DatedModel(models.Model): created_time = models.DateTimeField(auto_now_add=True, null=True) updated_time = models.DateTimeField(auto_now=True, null=True) class Meta: abstract = True get_latest_b...
2d2ced090f8ad8bfd12bfd6543af73918b16345b
nailgun/nailgun/extrasettings.py
nailgun/nailgun/extrasettings.py
import os import os.path LOGPATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") LOGFILE = os.path.join(LOGPATH, "nailgun.log") LOGLEVEL = "DEBUG" CELERYLOGFILE = os.path.join(LOGPATH, "celery.log") CELERYLOGLEVEL = "DEBUG" CHEF_CONF_FOLDER = LOGPATH # For testing purposes PATH_TO_SSH_KEY = os.path....
import os import os.path LOGPATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") LOGFILE = os.path.join(LOGPATH, "nailgun.log") LOGLEVEL = "DEBUG" CELERYLOGFILE = os.path.join(LOGPATH, "celery.log") CELERYLOGLEVEL = "DEBUG" CHEF_CONF_FOLDER = LOGPATH # For testing purposes home = os.getenv("HOME") P...
Fix running nailgun server under Windows
Fix running nailgun server under Windows
Python
apache-2.0
zhaochao/fuel-web,zhaochao/fuel-main,SmartInfrastructures/fuel-web-dev,huntxu/fuel-web,eayunstack/fuel-main,huntxu/fuel-web,huntxu/fuel-web,nebril/fuel-web,zhaochao/fuel-web,SmartInfrastructures/fuel-main-dev,ddepaoli3/fuel-main-dev,AnselZhangGit/fuel-main,koder-ua/nailgun-fcert,eayunstack/fuel-web,prmtl/fuel-web,zhaoc...
import os import os.path LOGPATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") LOGFILE = os.path.join(LOGPATH, "nailgun.log") LOGLEVEL = "DEBUG" CELERYLOGFILE = os.path.join(LOGPATH, "celery.log") CELERYLOGLEVEL = "DEBUG" CHEF_CONF_FOLDER = LOGPATH # For testing purposes PATH_TO_SSH_KEY = os.path....
import os import os.path LOGPATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") LOGFILE = os.path.join(LOGPATH, "nailgun.log") LOGLEVEL = "DEBUG" CELERYLOGFILE = os.path.join(LOGPATH, "celery.log") CELERYLOGLEVEL = "DEBUG" CHEF_CONF_FOLDER = LOGPATH # For testing purposes home = os.getenv("HOME") P...
<commit_before>import os import os.path LOGPATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") LOGFILE = os.path.join(LOGPATH, "nailgun.log") LOGLEVEL = "DEBUG" CELERYLOGFILE = os.path.join(LOGPATH, "celery.log") CELERYLOGLEVEL = "DEBUG" CHEF_CONF_FOLDER = LOGPATH # For testing purposes PATH_TO_SSH...
import os import os.path LOGPATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") LOGFILE = os.path.join(LOGPATH, "nailgun.log") LOGLEVEL = "DEBUG" CELERYLOGFILE = os.path.join(LOGPATH, "celery.log") CELERYLOGLEVEL = "DEBUG" CHEF_CONF_FOLDER = LOGPATH # For testing purposes home = os.getenv("HOME") P...
import os import os.path LOGPATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") LOGFILE = os.path.join(LOGPATH, "nailgun.log") LOGLEVEL = "DEBUG" CELERYLOGFILE = os.path.join(LOGPATH, "celery.log") CELERYLOGLEVEL = "DEBUG" CHEF_CONF_FOLDER = LOGPATH # For testing purposes PATH_TO_SSH_KEY = os.path....
<commit_before>import os import os.path LOGPATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") LOGFILE = os.path.join(LOGPATH, "nailgun.log") LOGLEVEL = "DEBUG" CELERYLOGFILE = os.path.join(LOGPATH, "celery.log") CELERYLOGLEVEL = "DEBUG" CHEF_CONF_FOLDER = LOGPATH # For testing purposes PATH_TO_SSH...
e250f7bd61206b53cdad6522ddef231b96ef373b
ncbi_genome_download/__main__.py
ncbi_genome_download/__main__.py
"""Command line handling for ncbi-genome-download.""" import logging from ncbi_genome_download import args_download from ncbi_genome_download import argument_parser from ncbi_genome_download import __version__ def main(): """Build and parse command line.""" parser = argument_parser(version=__version__) ar...
"""Command line handling for ncbi-genome-download.""" import logging from ncbi_genome_download import args_download from ncbi_genome_download import argument_parser from ncbi_genome_download import __version__ def main(): """Build and parse command line.""" parser = argument_parser(version=__version__) ar...
Print nicer error messages on invalid arguments
main: Print nicer error messages on invalid arguments Signed-off-by: Kai Blin <[email protected]>
Python
apache-2.0
kblin/ncbi-genome-download,kblin/ncbi-genome-download
"""Command line handling for ncbi-genome-download.""" import logging from ncbi_genome_download import args_download from ncbi_genome_download import argument_parser from ncbi_genome_download import __version__ def main(): """Build and parse command line.""" parser = argument_parser(version=__version__) ar...
"""Command line handling for ncbi-genome-download.""" import logging from ncbi_genome_download import args_download from ncbi_genome_download import argument_parser from ncbi_genome_download import __version__ def main(): """Build and parse command line.""" parser = argument_parser(version=__version__) ar...
<commit_before>"""Command line handling for ncbi-genome-download.""" import logging from ncbi_genome_download import args_download from ncbi_genome_download import argument_parser from ncbi_genome_download import __version__ def main(): """Build and parse command line.""" parser = argument_parser(version=__ve...
"""Command line handling for ncbi-genome-download.""" import logging from ncbi_genome_download import args_download from ncbi_genome_download import argument_parser from ncbi_genome_download import __version__ def main(): """Build and parse command line.""" parser = argument_parser(version=__version__) ar...
"""Command line handling for ncbi-genome-download.""" import logging from ncbi_genome_download import args_download from ncbi_genome_download import argument_parser from ncbi_genome_download import __version__ def main(): """Build and parse command line.""" parser = argument_parser(version=__version__) ar...
<commit_before>"""Command line handling for ncbi-genome-download.""" import logging from ncbi_genome_download import args_download from ncbi_genome_download import argument_parser from ncbi_genome_download import __version__ def main(): """Build and parse command line.""" parser = argument_parser(version=__ve...
e3aa2ca9d9fb74de6512acd04c509a41c176040a
pdc/apps/repository/filters.py
pdc/apps/repository/filters.py
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters as filters from pdc.apps.common.filters import MultiValueFilter from . import models class RepoFilter(filters.FilterSet): arch = MultiValueFilter(name='variant_arch__arch__name') ...
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters as filters from pdc.apps.common.filters import MultiValueFilter, MultiIntFilter from . import models class RepoFilter(filters.FilterSet): arch = MultiValueFilter(name='variant_arch__...
Fix product_id filter on content delivery repos
Fix product_id filter on content delivery repos The value should be an integer. JIRA: PDC-1104
Python
mit
release-engineering/product-definition-center,release-engineering/product-definition-center,lao605/product-definition-center,lao605/product-definition-center,product-definition-center/product-definition-center,pombredanne/product-definition-center,xychu/product-definition-center,xychu/product-definition-center,pombreda...
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters as filters from pdc.apps.common.filters import MultiValueFilter from . import models class RepoFilter(filters.FilterSet): arch = MultiValueFilter(name='variant_arch__arch__name') ...
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters as filters from pdc.apps.common.filters import MultiValueFilter, MultiIntFilter from . import models class RepoFilter(filters.FilterSet): arch = MultiValueFilter(name='variant_arch__...
<commit_before># # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters as filters from pdc.apps.common.filters import MultiValueFilter from . import models class RepoFilter(filters.FilterSet): arch = MultiValueFilter(name='variant_arch__a...
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters as filters from pdc.apps.common.filters import MultiValueFilter, MultiIntFilter from . import models class RepoFilter(filters.FilterSet): arch = MultiValueFilter(name='variant_arch__...
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters as filters from pdc.apps.common.filters import MultiValueFilter from . import models class RepoFilter(filters.FilterSet): arch = MultiValueFilter(name='variant_arch__arch__name') ...
<commit_before># # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters as filters from pdc.apps.common.filters import MultiValueFilter from . import models class RepoFilter(filters.FilterSet): arch = MultiValueFilter(name='variant_arch__a...
ba8231787a6f464ee946feaea9d853ee24894478
eJRF/snap-ci/snap-settings.py
eJRF/snap-ci/snap-settings.py
DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "app_test", "USER": "go", "PASSWORD": "go", "HOST": "localhost", } } LETTUCE_AVOID_APPS = ( 'south', 'django_nose', 'lettuce.django', 'django_extensions...
import os DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "app_test", "USER": "go", "PASSWORD": "go", "HOST": "localhost", } } LETTUCE_AVOID_APPS = ( 'south', 'django_nose', 'lettuce.django', 'django...
Revert "also removing the un-needed import"
Revert "also removing the un-needed import" This reverts commit 483a88a2c707a3e5d44b9db83c2a7d2184f9acff.
Python
bsd-3-clause
eJRF/ejrf,eJRF/ejrf,eJRF/ejrf,eJRF/ejrf
DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "app_test", "USER": "go", "PASSWORD": "go", "HOST": "localhost", } } LETTUCE_AVOID_APPS = ( 'south', 'django_nose', 'lettuce.django', 'django_extensions...
import os DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "app_test", "USER": "go", "PASSWORD": "go", "HOST": "localhost", } } LETTUCE_AVOID_APPS = ( 'south', 'django_nose', 'lettuce.django', 'django...
<commit_before>DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "app_test", "USER": "go", "PASSWORD": "go", "HOST": "localhost", } } LETTUCE_AVOID_APPS = ( 'south', 'django_nose', 'lettuce.django', 'dj...
import os DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "app_test", "USER": "go", "PASSWORD": "go", "HOST": "localhost", } } LETTUCE_AVOID_APPS = ( 'south', 'django_nose', 'lettuce.django', 'django...
DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "app_test", "USER": "go", "PASSWORD": "go", "HOST": "localhost", } } LETTUCE_AVOID_APPS = ( 'south', 'django_nose', 'lettuce.django', 'django_extensions...
<commit_before>DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "app_test", "USER": "go", "PASSWORD": "go", "HOST": "localhost", } } LETTUCE_AVOID_APPS = ( 'south', 'django_nose', 'lettuce.django', 'dj...
5c41286666290c2a067c51b7ab9ea171e4657d69
fb/models.py
fb/models.py
from django.db import models # Create your models here.
from django.db import models class UserPost(models.Model): text = models.TextField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) author = models.CharField(default='Eau De Web', max_length=20) def __unicode__(self): return '{} @ {}'.format(self.author, self.date_added)
Write a model class for user posts.
Write a model class for user posts.
Python
apache-2.0
pure-python/brainmate
from django.db import models # Create your models here. Write a model class for user posts.
from django.db import models class UserPost(models.Model): text = models.TextField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) author = models.CharField(default='Eau De Web', max_length=20) def __unicode__(self): return '{} @ {}'.format(self.author, self.date_added)
<commit_before>from django.db import models # Create your models here. <commit_msg>Write a model class for user posts.<commit_after>
from django.db import models class UserPost(models.Model): text = models.TextField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) author = models.CharField(default='Eau De Web', max_length=20) def __unicode__(self): return '{} @ {}'.format(self.author, self.date_added)
from django.db import models # Create your models here. Write a model class for user posts.from django.db import models class UserPost(models.Model): text = models.TextField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) author = models.CharField(default='Eau De Web', max_length=20)...
<commit_before>from django.db import models # Create your models here. <commit_msg>Write a model class for user posts.<commit_after>from django.db import models class UserPost(models.Model): text = models.TextField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) author = models.CharF...
3c0ebc1a8e5a3d626a53eb94fb80c9466b46ee59
rplugin/python/vimp.py
rplugin/python/vimp.py
import neovim @neovim.plugin class VimpBuffers(object): def __init__(self, vim): self.vim = vim @neovim.command("ToggleTerminalBuffer") def toggle_terminal_buffer(self): current_buffer = self.vim.current.buffer # find the currently open terminal and close it for idx, windo...
import neovim import os from datetime import datetime @neovim.plugin class VimpBuffers(object): def __init__(self, vim): self.vim = vim @neovim.command("ToggleTerminalBuffer") def toggle_terminal_buffer(self): current_buffer = self.vim.current.buffer # find the currently open term...
Add command to quickly open a notes file
Add command to quickly open a notes file
Python
mit
vpetro/vimp
import neovim @neovim.plugin class VimpBuffers(object): def __init__(self, vim): self.vim = vim @neovim.command("ToggleTerminalBuffer") def toggle_terminal_buffer(self): current_buffer = self.vim.current.buffer # find the currently open terminal and close it for idx, windo...
import neovim import os from datetime import datetime @neovim.plugin class VimpBuffers(object): def __init__(self, vim): self.vim = vim @neovim.command("ToggleTerminalBuffer") def toggle_terminal_buffer(self): current_buffer = self.vim.current.buffer # find the currently open term...
<commit_before>import neovim @neovim.plugin class VimpBuffers(object): def __init__(self, vim): self.vim = vim @neovim.command("ToggleTerminalBuffer") def toggle_terminal_buffer(self): current_buffer = self.vim.current.buffer # find the currently open terminal and close it ...
import neovim import os from datetime import datetime @neovim.plugin class VimpBuffers(object): def __init__(self, vim): self.vim = vim @neovim.command("ToggleTerminalBuffer") def toggle_terminal_buffer(self): current_buffer = self.vim.current.buffer # find the currently open term...
import neovim @neovim.plugin class VimpBuffers(object): def __init__(self, vim): self.vim = vim @neovim.command("ToggleTerminalBuffer") def toggle_terminal_buffer(self): current_buffer = self.vim.current.buffer # find the currently open terminal and close it for idx, windo...
<commit_before>import neovim @neovim.plugin class VimpBuffers(object): def __init__(self, vim): self.vim = vim @neovim.command("ToggleTerminalBuffer") def toggle_terminal_buffer(self): current_buffer = self.vim.current.buffer # find the currently open terminal and close it ...
68f25d536945e06fae814bdf19218bc148f6cc93
backend/scripts/updatedf.py
backend/scripts/updatedf.py
#!/usr/bin/env python #import hashlib import os def main(): for root, dirs, files in os.walk("/mcfs/data/materialscommons"): for f in files: print f if __name__ == "__main__": main()
#!/usr/bin/env python import hashlib import os import rethinkdb as r def main(): conn = r.connect('localhost', 28015, db='materialscommons') for root, dirs, files in os.walk("/mcfs/data/materialscommons"): for f in files: path = os.path.join(root, f) with open(path) as fd: ...
Update script to write results to the database.
Update script to write results to the database.
Python
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
#!/usr/bin/env python #import hashlib import os def main(): for root, dirs, files in os.walk("/mcfs/data/materialscommons"): for f in files: print f if __name__ == "__main__": main() Update script to write results to the database.
#!/usr/bin/env python import hashlib import os import rethinkdb as r def main(): conn = r.connect('localhost', 28015, db='materialscommons') for root, dirs, files in os.walk("/mcfs/data/materialscommons"): for f in files: path = os.path.join(root, f) with open(path) as fd: ...
<commit_before>#!/usr/bin/env python #import hashlib import os def main(): for root, dirs, files in os.walk("/mcfs/data/materialscommons"): for f in files: print f if __name__ == "__main__": main() <commit_msg>Update script to write results to the database.<commit_after>
#!/usr/bin/env python import hashlib import os import rethinkdb as r def main(): conn = r.connect('localhost', 28015, db='materialscommons') for root, dirs, files in os.walk("/mcfs/data/materialscommons"): for f in files: path = os.path.join(root, f) with open(path) as fd: ...
#!/usr/bin/env python #import hashlib import os def main(): for root, dirs, files in os.walk("/mcfs/data/materialscommons"): for f in files: print f if __name__ == "__main__": main() Update script to write results to the database.#!/usr/bin/env python import hashlib import os import reth...
<commit_before>#!/usr/bin/env python #import hashlib import os def main(): for root, dirs, files in os.walk("/mcfs/data/materialscommons"): for f in files: print f if __name__ == "__main__": main() <commit_msg>Update script to write results to the database.<commit_after>#!/usr/bin/env pyt...
2844589a64ae8998b03cc1e3be7fee232618d9e9
test/txn_tests.py
test/txn_tests.py
from __future__ import absolute_import import captable import unittest import datetime from ._helpers import StubTransaction class TransactionTests(unittest.TestCase): """Test adding transactions and processing them""" def setUp(self): """Initialize a blank captable and authorize multiple classes of...
from __future__ import absolute_import import captable import unittest import datetime from ._helpers import StubTransaction class TransactionTests(unittest.TestCase): """Test adding transactions and processing them""" def setUp(self): """Initialize a blank captable and authorize multiple classes of...
Test transaction list in table is ordered
Test transaction list in table is ordered
Python
mit
fongandrew/captable.py
from __future__ import absolute_import import captable import unittest import datetime from ._helpers import StubTransaction class TransactionTests(unittest.TestCase): """Test adding transactions and processing them""" def setUp(self): """Initialize a blank captable and authorize multiple classes of...
from __future__ import absolute_import import captable import unittest import datetime from ._helpers import StubTransaction class TransactionTests(unittest.TestCase): """Test adding transactions and processing them""" def setUp(self): """Initialize a blank captable and authorize multiple classes of...
<commit_before>from __future__ import absolute_import import captable import unittest import datetime from ._helpers import StubTransaction class TransactionTests(unittest.TestCase): """Test adding transactions and processing them""" def setUp(self): """Initialize a blank captable and authorize mult...
from __future__ import absolute_import import captable import unittest import datetime from ._helpers import StubTransaction class TransactionTests(unittest.TestCase): """Test adding transactions and processing them""" def setUp(self): """Initialize a blank captable and authorize multiple classes of...
from __future__ import absolute_import import captable import unittest import datetime from ._helpers import StubTransaction class TransactionTests(unittest.TestCase): """Test adding transactions and processing them""" def setUp(self): """Initialize a blank captable and authorize multiple classes of...
<commit_before>from __future__ import absolute_import import captable import unittest import datetime from ._helpers import StubTransaction class TransactionTests(unittest.TestCase): """Test adding transactions and processing them""" def setUp(self): """Initialize a blank captable and authorize mult...
04fa3a9fd61cc83c23ddd59ea474bd45cd2a1e8c
tests/__init__.py
tests/__init__.py
# coding: utf-8 from __future__ import unicode_literals from __future__ import absolute_import from os.path import join, realpath import fs # Add the local code directory to the `fs` module path fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs")))
# coding: utf-8 from __future__ import unicode_literals from __future__ import absolute_import from os.path import join, realpath import fs # Add the local code directory to the `fs` module path # Can only rely on fs.__path__ being an iterable - on windows it's not a list newPath = list(fs.__path__) newPath.insert(...
Make namespace packages work for tests in windows
Make namespace packages work for tests in windows
Python
mit
rkhwaja/fs.onedrivefs
# coding: utf-8 from __future__ import unicode_literals from __future__ import absolute_import from os.path import join, realpath import fs # Add the local code directory to the `fs` module path fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs"))) Make namespace packages work for tests in windows
# coding: utf-8 from __future__ import unicode_literals from __future__ import absolute_import from os.path import join, realpath import fs # Add the local code directory to the `fs` module path # Can only rely on fs.__path__ being an iterable - on windows it's not a list newPath = list(fs.__path__) newPath.insert(...
<commit_before># coding: utf-8 from __future__ import unicode_literals from __future__ import absolute_import from os.path import join, realpath import fs # Add the local code directory to the `fs` module path fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs"))) <commit_msg>Make namespace packages work...
# coding: utf-8 from __future__ import unicode_literals from __future__ import absolute_import from os.path import join, realpath import fs # Add the local code directory to the `fs` module path # Can only rely on fs.__path__ being an iterable - on windows it's not a list newPath = list(fs.__path__) newPath.insert(...
# coding: utf-8 from __future__ import unicode_literals from __future__ import absolute_import from os.path import join, realpath import fs # Add the local code directory to the `fs` module path fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs"))) Make namespace packages work for tests in windows# codi...
<commit_before># coding: utf-8 from __future__ import unicode_literals from __future__ import absolute_import from os.path import join, realpath import fs # Add the local code directory to the `fs` module path fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs"))) <commit_msg>Make namespace packages work...
3bcc646e1120e69a9aab412e22a4f85cce4da7bf
hashtable.py
hashtable.py
# Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string class HashTable(object): def __init__(self): self.table = [None]*10000 def store(self, string): hash_value = self.calculate_hash_value(string) if hash_value != -1: if self.table[h...
# Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string class HashTable(object): def __init__(self): self.table = [None]*10000 def store(self, string): hash_value = self.calculate_hash_value(string) if hash_value != -1: if self.table[h...
Add calculate hash value method
Add calculate hash value method
Python
mit
derekmpham/interview-prep,derekmpham/interview-prep
# Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string class HashTable(object): def __init__(self): self.table = [None]*10000 def store(self, string): hash_value = self.calculate_hash_value(string) if hash_value != -1: if self.table[h...
# Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string class HashTable(object): def __init__(self): self.table = [None]*10000 def store(self, string): hash_value = self.calculate_hash_value(string) if hash_value != -1: if self.table[h...
<commit_before># Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string class HashTable(object): def __init__(self): self.table = [None]*10000 def store(self, string): hash_value = self.calculate_hash_value(string) if hash_value != -1: ...
# Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string class HashTable(object): def __init__(self): self.table = [None]*10000 def store(self, string): hash_value = self.calculate_hash_value(string) if hash_value != -1: if self.table[h...
# Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string class HashTable(object): def __init__(self): self.table = [None]*10000 def store(self, string): hash_value = self.calculate_hash_value(string) if hash_value != -1: if self.table[h...
<commit_before># Write hashtable class that stores strings in a hash table where keys are calculated using the first two letters of the string class HashTable(object): def __init__(self): self.table = [None]*10000 def store(self, string): hash_value = self.calculate_hash_value(string) if hash_value != -1: ...
fba8f3a2595ebb032e86c09710ef4757ae87c428
heppy/modules/rgp.py
heppy/modules/rgp.py
from ..Module import Module from ..TagData import TagData class rgp(Module): opmap = { 'infData': 'descend', } def parse_rgpStatus(self, response, tag): status = tag.attrib['s'] response.set(status, tag.text) def render_default(self, request, data): ext = self.re...
from ..Module import Module from ..TagData import TagData class rgp(Module): opmap = { 'infData': 'descend', } def parse_rgpStatus(self, response, tag): status = tag.attrib['s'] response.set(status, tag.text) def render_default(self, request, data): ext = self.re...
Add RGP request and report
Add RGP request and report
Python
bsd-3-clause
hiqdev/reppy
from ..Module import Module from ..TagData import TagData class rgp(Module): opmap = { 'infData': 'descend', } def parse_rgpStatus(self, response, tag): status = tag.attrib['s'] response.set(status, tag.text) def render_default(self, request, data): ext = self.re...
from ..Module import Module from ..TagData import TagData class rgp(Module): opmap = { 'infData': 'descend', } def parse_rgpStatus(self, response, tag): status = tag.attrib['s'] response.set(status, tag.text) def render_default(self, request, data): ext = self.re...
<commit_before>from ..Module import Module from ..TagData import TagData class rgp(Module): opmap = { 'infData': 'descend', } def parse_rgpStatus(self, response, tag): status = tag.attrib['s'] response.set(status, tag.text) def render_default(self, request, data): ...
from ..Module import Module from ..TagData import TagData class rgp(Module): opmap = { 'infData': 'descend', } def parse_rgpStatus(self, response, tag): status = tag.attrib['s'] response.set(status, tag.text) def render_default(self, request, data): ext = self.re...
from ..Module import Module from ..TagData import TagData class rgp(Module): opmap = { 'infData': 'descend', } def parse_rgpStatus(self, response, tag): status = tag.attrib['s'] response.set(status, tag.text) def render_default(self, request, data): ext = self.re...
<commit_before>from ..Module import Module from ..TagData import TagData class rgp(Module): opmap = { 'infData': 'descend', } def parse_rgpStatus(self, response, tag): status = tag.attrib['s'] response.set(status, tag.text) def render_default(self, request, data): ...
83e4e9c98739b6159649888ba561a6e28dfd3ca6
src/dicomweb_client/__init__.py
src/dicomweb_client/__init__.py
__version__ = '0.20.0rc' from dicomweb_client.api import DICOMwebClient
__version__ = '0.20.0' from dicomweb_client.api import DICOMwebClient
Update package version for release
Update package version for release
Python
mit
MGHComputationalPathology/dicomweb-client
__version__ = '0.20.0rc' from dicomweb_client.api import DICOMwebClient Update package version for release
__version__ = '0.20.0' from dicomweb_client.api import DICOMwebClient
<commit_before>__version__ = '0.20.0rc' from dicomweb_client.api import DICOMwebClient <commit_msg>Update package version for release<commit_after>
__version__ = '0.20.0' from dicomweb_client.api import DICOMwebClient
__version__ = '0.20.0rc' from dicomweb_client.api import DICOMwebClient Update package version for release__version__ = '0.20.0' from dicomweb_client.api import DICOMwebClient
<commit_before>__version__ = '0.20.0rc' from dicomweb_client.api import DICOMwebClient <commit_msg>Update package version for release<commit_after>__version__ = '0.20.0' from dicomweb_client.api import DICOMwebClient
33d8e9ce8be2901dab5998192559b0e1c3408807
kikola/core/context_processors.py
kikola/core/context_processors.py
def path(request): """ kikola.core.context_processors.path =================================== Adds current path and full path variables to templates. To enable, adds ``kikola.core.context_processors.path`` to your project's ``settings`` ``TEMPLATE_CONTEXT_PROCESSORS`` var. **Note:** Djan...
def path(request): """ Adds current absolute URI, path and full path variables to templates. To enable, adds ``kikola.core.context_processors.path`` to your project's ``settings`` ``TEMPLATE_CONTEXT_PROCESSORS`` var. **Note:** Django has ``django.core.context_processors.request`` context proce...
Make ``path`` context processor return request absolute URI too.
Make ``path`` context processor return request absolute URI too.
Python
bsd-3-clause
playpauseandstop/kikola
def path(request): """ kikola.core.context_processors.path =================================== Adds current path and full path variables to templates. To enable, adds ``kikola.core.context_processors.path`` to your project's ``settings`` ``TEMPLATE_CONTEXT_PROCESSORS`` var. **Note:** Djan...
def path(request): """ Adds current absolute URI, path and full path variables to templates. To enable, adds ``kikola.core.context_processors.path`` to your project's ``settings`` ``TEMPLATE_CONTEXT_PROCESSORS`` var. **Note:** Django has ``django.core.context_processors.request`` context proce...
<commit_before>def path(request): """ kikola.core.context_processors.path =================================== Adds current path and full path variables to templates. To enable, adds ``kikola.core.context_processors.path`` to your project's ``settings`` ``TEMPLATE_CONTEXT_PROCESSORS`` var. ...
def path(request): """ Adds current absolute URI, path and full path variables to templates. To enable, adds ``kikola.core.context_processors.path`` to your project's ``settings`` ``TEMPLATE_CONTEXT_PROCESSORS`` var. **Note:** Django has ``django.core.context_processors.request`` context proce...
def path(request): """ kikola.core.context_processors.path =================================== Adds current path and full path variables to templates. To enable, adds ``kikola.core.context_processors.path`` to your project's ``settings`` ``TEMPLATE_CONTEXT_PROCESSORS`` var. **Note:** Djan...
<commit_before>def path(request): """ kikola.core.context_processors.path =================================== Adds current path and full path variables to templates. To enable, adds ``kikola.core.context_processors.path`` to your project's ``settings`` ``TEMPLATE_CONTEXT_PROCESSORS`` var. ...
730c7e6982f737c166924e1cae73eb34024fc4ef
AWSLambdas/vote.py
AWSLambdas/vote.py
""" Watch Votes stream and update Sample ups and downs """ import json import boto3 import time import decimal import base64 from boto3.dynamodb.conditions import Key, Attr def consolidate_disposition(disposition_map, records): for record in records: type = record['eventName'] disposition = 0 ...
""" Watch Votes stream and update Sample ups and downs """ import json import boto3 import time import decimal import base64 from boto3.dynamodb.conditions import Key, Attr from decimal import Decimal def consolidate_disposition(disposition_map, records): for record in records: type = record['even...
Update the ups and downs members of the Samples items.
Update the ups and downs members of the Samples items.
Python
mit
SandcastleApps/partyup,SandcastleApps/partyup,SandcastleApps/partyup
""" Watch Votes stream and update Sample ups and downs """ import json import boto3 import time import decimal import base64 from boto3.dynamodb.conditions import Key, Attr def consolidate_disposition(disposition_map, records): for record in records: type = record['eventName'] disposition = 0 ...
""" Watch Votes stream and update Sample ups and downs """ import json import boto3 import time import decimal import base64 from boto3.dynamodb.conditions import Key, Attr from decimal import Decimal def consolidate_disposition(disposition_map, records): for record in records: type = record['even...
<commit_before>""" Watch Votes stream and update Sample ups and downs """ import json import boto3 import time import decimal import base64 from boto3.dynamodb.conditions import Key, Attr def consolidate_disposition(disposition_map, records): for record in records: type = record['eventName'] d...
""" Watch Votes stream and update Sample ups and downs """ import json import boto3 import time import decimal import base64 from boto3.dynamodb.conditions import Key, Attr from decimal import Decimal def consolidate_disposition(disposition_map, records): for record in records: type = record['even...
""" Watch Votes stream and update Sample ups and downs """ import json import boto3 import time import decimal import base64 from boto3.dynamodb.conditions import Key, Attr def consolidate_disposition(disposition_map, records): for record in records: type = record['eventName'] disposition = 0 ...
<commit_before>""" Watch Votes stream and update Sample ups and downs """ import json import boto3 import time import decimal import base64 from boto3.dynamodb.conditions import Key, Attr def consolidate_disposition(disposition_map, records): for record in records: type = record['eventName'] d...
6373e170c77079e304435d4c2e68201e29a7ecce
python/torque-and-development.py
python/torque-and-development.py
#!/bin/python3 import math import os import random import re import sys # Complete the roadsAndLibraries function below. def roadsAndLibraries(n, c_lib, c_road, cities): print("n {}, c_lib {}, c_road {}, cities {}".format(n, c_lib, c_road, cities)) return 0 if __name__ == '__main__': fptr = open(os.envi...
#!/bin/python3 import math import os import random import re import sys # Note the name of the file is based on this URL: # https://www.hackerrank.com/challenges/torque-and-development/problem # The problem name is "Roads and Libraries" def roadsAndLibraries(n, c_lib, c_road, cities): print("n {}, c_lib {}, c_r...
Include dev comment explaing filename
Include dev comment explaing filename
Python
mit
rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank
#!/bin/python3 import math import os import random import re import sys # Complete the roadsAndLibraries function below. def roadsAndLibraries(n, c_lib, c_road, cities): print("n {}, c_lib {}, c_road {}, cities {}".format(n, c_lib, c_road, cities)) return 0 if __name__ == '__main__': fptr = open(os.envi...
#!/bin/python3 import math import os import random import re import sys # Note the name of the file is based on this URL: # https://www.hackerrank.com/challenges/torque-and-development/problem # The problem name is "Roads and Libraries" def roadsAndLibraries(n, c_lib, c_road, cities): print("n {}, c_lib {}, c_r...
<commit_before> #!/bin/python3 import math import os import random import re import sys # Complete the roadsAndLibraries function below. def roadsAndLibraries(n, c_lib, c_road, cities): print("n {}, c_lib {}, c_road {}, cities {}".format(n, c_lib, c_road, cities)) return 0 if __name__ == '__main__': fptr...
#!/bin/python3 import math import os import random import re import sys # Note the name of the file is based on this URL: # https://www.hackerrank.com/challenges/torque-and-development/problem # The problem name is "Roads and Libraries" def roadsAndLibraries(n, c_lib, c_road, cities): print("n {}, c_lib {}, c_r...
#!/bin/python3 import math import os import random import re import sys # Complete the roadsAndLibraries function below. def roadsAndLibraries(n, c_lib, c_road, cities): print("n {}, c_lib {}, c_road {}, cities {}".format(n, c_lib, c_road, cities)) return 0 if __name__ == '__main__': fptr = open(os.envi...
<commit_before> #!/bin/python3 import math import os import random import re import sys # Complete the roadsAndLibraries function below. def roadsAndLibraries(n, c_lib, c_road, cities): print("n {}, c_lib {}, c_road {}, cities {}".format(n, c_lib, c_road, cities)) return 0 if __name__ == '__main__': fptr...
cfffc18c5179a441c0412f313e20a1b3b7059f1c
dump_contributors.py
dump_contributors.py
import requests url = "https://api.github.com/repos/urschrei/pyzotero/contributors" result = requests.get(url) result.raise_for_status() as_dict = result.json() # remove me from the list as_dict.pop(0) header = "# This is the list of people (as distinct from [AUTHORS](AUTHORS)) who have contributed code to Pyzotero.\n\...
# -*- coding: utf-8 -*- import io import requests url = "https://api.github.com/repos/urschrei/pyzotero/contributors" result = requests.get(url) result.raise_for_status() as_dict = result.json() # remove me from the list as_dict.pop(0) header = u"# This is the list of people (as distinct from [AUTHORS](AUTHORS)) who ...
Make contributor dump a bit more robust
Make contributor dump a bit more robust
Python
mit
urschrei/pyzotero
import requests url = "https://api.github.com/repos/urschrei/pyzotero/contributors" result = requests.get(url) result.raise_for_status() as_dict = result.json() # remove me from the list as_dict.pop(0) header = "# This is the list of people (as distinct from [AUTHORS](AUTHORS)) who have contributed code to Pyzotero.\n\...
# -*- coding: utf-8 -*- import io import requests url = "https://api.github.com/repos/urschrei/pyzotero/contributors" result = requests.get(url) result.raise_for_status() as_dict = result.json() # remove me from the list as_dict.pop(0) header = u"# This is the list of people (as distinct from [AUTHORS](AUTHORS)) who ...
<commit_before>import requests url = "https://api.github.com/repos/urschrei/pyzotero/contributors" result = requests.get(url) result.raise_for_status() as_dict = result.json() # remove me from the list as_dict.pop(0) header = "# This is the list of people (as distinct from [AUTHORS](AUTHORS)) who have contributed code ...
# -*- coding: utf-8 -*- import io import requests url = "https://api.github.com/repos/urschrei/pyzotero/contributors" result = requests.get(url) result.raise_for_status() as_dict = result.json() # remove me from the list as_dict.pop(0) header = u"# This is the list of people (as distinct from [AUTHORS](AUTHORS)) who ...
import requests url = "https://api.github.com/repos/urschrei/pyzotero/contributors" result = requests.get(url) result.raise_for_status() as_dict = result.json() # remove me from the list as_dict.pop(0) header = "# This is the list of people (as distinct from [AUTHORS](AUTHORS)) who have contributed code to Pyzotero.\n\...
<commit_before>import requests url = "https://api.github.com/repos/urschrei/pyzotero/contributors" result = requests.get(url) result.raise_for_status() as_dict = result.json() # remove me from the list as_dict.pop(0) header = "# This is the list of people (as distinct from [AUTHORS](AUTHORS)) who have contributed code ...
88bf90d2949da603567e75f2492e5880b2ff8009
build_scripts/rename_wheels.py
build_scripts/rename_wheels.py
# renames ABI string in wheels from cp34m or cp35m to none import os for file in os.listdir('../dist'): if '-cp34m-' in file: file_parts = file.split('-cp34m-') os.rename('../dist/{}'.format(file), '../dist/{}-none-{}'.format(file_parts[0], file_parts[1])) elif '-cp35m-' in f...
# renames ABI string in wheels from cp34m, cp35m, cp36m to none import os for file in os.listdir('../dist'): if '-cp34m-' in file: file_parts = file.split('-cp34m-') os.rename('../dist/{}'.format(file), '../dist/{}-none-{}'.format(file_parts[0], file_parts[1])) elif '-cp35m-'...
Add support for python 3.5 and 3.6
Add support for python 3.5 and 3.6
Python
mit
missionpinball/mpf-mc,missionpinball/mpf-mc,missionpinball/mpf-mc
# renames ABI string in wheels from cp34m or cp35m to none import os for file in os.listdir('../dist'): if '-cp34m-' in file: file_parts = file.split('-cp34m-') os.rename('../dist/{}'.format(file), '../dist/{}-none-{}'.format(file_parts[0], file_parts[1])) elif '-cp35m-' in f...
# renames ABI string in wheels from cp34m, cp35m, cp36m to none import os for file in os.listdir('../dist'): if '-cp34m-' in file: file_parts = file.split('-cp34m-') os.rename('../dist/{}'.format(file), '../dist/{}-none-{}'.format(file_parts[0], file_parts[1])) elif '-cp35m-'...
<commit_before># renames ABI string in wheels from cp34m or cp35m to none import os for file in os.listdir('../dist'): if '-cp34m-' in file: file_parts = file.split('-cp34m-') os.rename('../dist/{}'.format(file), '../dist/{}-none-{}'.format(file_parts[0], file_parts[1])) elif...
# renames ABI string in wheels from cp34m, cp35m, cp36m to none import os for file in os.listdir('../dist'): if '-cp34m-' in file: file_parts = file.split('-cp34m-') os.rename('../dist/{}'.format(file), '../dist/{}-none-{}'.format(file_parts[0], file_parts[1])) elif '-cp35m-'...
# renames ABI string in wheels from cp34m or cp35m to none import os for file in os.listdir('../dist'): if '-cp34m-' in file: file_parts = file.split('-cp34m-') os.rename('../dist/{}'.format(file), '../dist/{}-none-{}'.format(file_parts[0], file_parts[1])) elif '-cp35m-' in f...
<commit_before># renames ABI string in wheels from cp34m or cp35m to none import os for file in os.listdir('../dist'): if '-cp34m-' in file: file_parts = file.split('-cp34m-') os.rename('../dist/{}'.format(file), '../dist/{}-none-{}'.format(file_parts[0], file_parts[1])) elif...
15a5e861e63fa5b2662968ce4296c75ecfadee50
iscc_bench/readers/__init__.py
iscc_bench/readers/__init__.py
# -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks ALL_READERS = (bxbooks,)
# -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks from iscc_bench.readers.harvard import harvard ALL_READERS = (bxbooks, harvard)
Add harvard reader to ALL_READERS
Add harvard reader to ALL_READERS
Python
bsd-2-clause
coblo/isccbench
# -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks ALL_READERS = (bxbooks,) Add harvard reader to ALL_READERS
# -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks from iscc_bench.readers.harvard import harvard ALL_READERS = (bxbooks, harvard)
<commit_before># -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks ALL_READERS = (bxbooks,) <commit_msg>Add harvard reader to ALL_READERS<commit_after>
# -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks from iscc_bench.readers.harvard import harvard ALL_READERS = (bxbooks, harvard)
# -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks ALL_READERS = (bxbooks,) Add harvard reader to ALL_READERS# -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks from iscc_bench.readers.harvard import harvard ALL_READERS = (bxbooks, harvard)
<commit_before># -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks ALL_READERS = (bxbooks,) <commit_msg>Add harvard reader to ALL_READERS<commit_after># -*- coding: utf-8 -*- from iscc_bench.readers.bxbooks import bxbooks from iscc_bench.readers.harvard import harvard ALL_READERS = (bxbooks, ha...
ae260be14e575d9678bd20e94c44c70beb182848
twitterexample.py
twitterexample.py
import json from urllib2 import urlopen import micromodels class TwitterUser(micromodels.Model): id = micromodels.IntegerField() screen_name = micromodels.CharField() name = micromodels.CharField() description = micromodels.CharField() def get_profile_url(self): return 'http://twitter.com...
import json from urllib2 import urlopen import micromodels class TwitterUser(micromodels.Model): id = micromodels.IntegerField() screen_name = micromodels.CharField() name = micromodels.CharField() description = micromodels.CharField() def get_profile_url(self): return 'http://twitter.com...
Add created_at DateTimeField to Twitter example
Add created_at DateTimeField to Twitter example
Python
unlicense
j4mie/micromodels
import json from urllib2 import urlopen import micromodels class TwitterUser(micromodels.Model): id = micromodels.IntegerField() screen_name = micromodels.CharField() name = micromodels.CharField() description = micromodels.CharField() def get_profile_url(self): return 'http://twitter.com...
import json from urllib2 import urlopen import micromodels class TwitterUser(micromodels.Model): id = micromodels.IntegerField() screen_name = micromodels.CharField() name = micromodels.CharField() description = micromodels.CharField() def get_profile_url(self): return 'http://twitter.com...
<commit_before>import json from urllib2 import urlopen import micromodels class TwitterUser(micromodels.Model): id = micromodels.IntegerField() screen_name = micromodels.CharField() name = micromodels.CharField() description = micromodels.CharField() def get_profile_url(self): return 'htt...
import json from urllib2 import urlopen import micromodels class TwitterUser(micromodels.Model): id = micromodels.IntegerField() screen_name = micromodels.CharField() name = micromodels.CharField() description = micromodels.CharField() def get_profile_url(self): return 'http://twitter.com...
import json from urllib2 import urlopen import micromodels class TwitterUser(micromodels.Model): id = micromodels.IntegerField() screen_name = micromodels.CharField() name = micromodels.CharField() description = micromodels.CharField() def get_profile_url(self): return 'http://twitter.com...
<commit_before>import json from urllib2 import urlopen import micromodels class TwitterUser(micromodels.Model): id = micromodels.IntegerField() screen_name = micromodels.CharField() name = micromodels.CharField() description = micromodels.CharField() def get_profile_url(self): return 'htt...
a69edf3e488125067371a96626b7f3cd45e9a11f
inventory.py
inventory.py
from flask import Flask, render_template, url_for, redirect from flask import session, escape, request from peewee import * #from datetime import date app = Flask(__name__) # http://docs.peewee-orm.com/en/latest/peewee/quickstart.html database = SqliteDatabase('developmentData.db') #class Device(Model): # idNumber = ...
from flask import Flask, render_template, url_for, redirect from flask import session, escape, request from peewee import * #from datetime import date app = Flask(__name__) # http://docs.peewee-orm.com/en/latest/peewee/quickstart.html database = SqliteDatabase('developmentData.db') #class Device(Model): # idNumber = ...
Add try for catching server error
Add try for catching server error
Python
mit
lcdi/Inventory,lcdi/Inventory,lcdi/Inventory,lcdi/Inventory
from flask import Flask, render_template, url_for, redirect from flask import session, escape, request from peewee import * #from datetime import date app = Flask(__name__) # http://docs.peewee-orm.com/en/latest/peewee/quickstart.html database = SqliteDatabase('developmentData.db') #class Device(Model): # idNumber = ...
from flask import Flask, render_template, url_for, redirect from flask import session, escape, request from peewee import * #from datetime import date app = Flask(__name__) # http://docs.peewee-orm.com/en/latest/peewee/quickstart.html database = SqliteDatabase('developmentData.db') #class Device(Model): # idNumber = ...
<commit_before>from flask import Flask, render_template, url_for, redirect from flask import session, escape, request from peewee import * #from datetime import date app = Flask(__name__) # http://docs.peewee-orm.com/en/latest/peewee/quickstart.html database = SqliteDatabase('developmentData.db') #class Device(Model)...
from flask import Flask, render_template, url_for, redirect from flask import session, escape, request from peewee import * #from datetime import date app = Flask(__name__) # http://docs.peewee-orm.com/en/latest/peewee/quickstart.html database = SqliteDatabase('developmentData.db') #class Device(Model): # idNumber = ...
from flask import Flask, render_template, url_for, redirect from flask import session, escape, request from peewee import * #from datetime import date app = Flask(__name__) # http://docs.peewee-orm.com/en/latest/peewee/quickstart.html database = SqliteDatabase('developmentData.db') #class Device(Model): # idNumber = ...
<commit_before>from flask import Flask, render_template, url_for, redirect from flask import session, escape, request from peewee import * #from datetime import date app = Flask(__name__) # http://docs.peewee-orm.com/en/latest/peewee/quickstart.html database = SqliteDatabase('developmentData.db') #class Device(Model)...
6ba9c6b0e7fc4bb4eaa8425c9de172a9ada612c6
src/tests.py
src/tests.py
from flask.ext.testing import TestCase from chassis import create_app from chassis.models import db import factories class ChassisTestCase(TestCase): """Base TestCase to add in convenience functions, defaults and custom asserts.""" def create_app(self): return create_app() def setUp(self): ...
from flask.ext.testing import TestCase from chassis import create_app from chassis.models import db import factories class ChassisTestCase(TestCase): """Base TestCase to add in convenience functions, defaults and custom asserts.""" def create_app(self): return create_app() def setUp(self): ...
Fix test case bug where wrong URL was being hit
Fix test case bug where wrong URL was being hit
Python
mit
makmanalp/flask-chassis
from flask.ext.testing import TestCase from chassis import create_app from chassis.models import db import factories class ChassisTestCase(TestCase): """Base TestCase to add in convenience functions, defaults and custom asserts.""" def create_app(self): return create_app() def setUp(self): ...
from flask.ext.testing import TestCase from chassis import create_app from chassis.models import db import factories class ChassisTestCase(TestCase): """Base TestCase to add in convenience functions, defaults and custom asserts.""" def create_app(self): return create_app() def setUp(self): ...
<commit_before>from flask.ext.testing import TestCase from chassis import create_app from chassis.models import db import factories class ChassisTestCase(TestCase): """Base TestCase to add in convenience functions, defaults and custom asserts.""" def create_app(self): return create_app() de...
from flask.ext.testing import TestCase from chassis import create_app from chassis.models import db import factories class ChassisTestCase(TestCase): """Base TestCase to add in convenience functions, defaults and custom asserts.""" def create_app(self): return create_app() def setUp(self): ...
from flask.ext.testing import TestCase from chassis import create_app from chassis.models import db import factories class ChassisTestCase(TestCase): """Base TestCase to add in convenience functions, defaults and custom asserts.""" def create_app(self): return create_app() def setUp(self): ...
<commit_before>from flask.ext.testing import TestCase from chassis import create_app from chassis.models import db import factories class ChassisTestCase(TestCase): """Base TestCase to add in convenience functions, defaults and custom asserts.""" def create_app(self): return create_app() de...
6021c4c54cb0a437878553a1e23f8d433476ff2d
main.py
main.py
import json from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class AddLocationForm(BoxLayout): search_input = ObjectProperty() search_results = ObjectProperty() def search_location(self): ...
import json from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class AddLocationForm(BoxLayout): search_input = ObjectProperty() search_results = ObjectProperty() def search_location(self): ...
Stop crashing when search doesn't have any matches
Stop crashing when search doesn't have any matches
Python
mit
ciappi/Weather
import json from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class AddLocationForm(BoxLayout): search_input = ObjectProperty() search_results = ObjectProperty() def search_location(self): ...
import json from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class AddLocationForm(BoxLayout): search_input = ObjectProperty() search_results = ObjectProperty() def search_location(self): ...
<commit_before>import json from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class AddLocationForm(BoxLayout): search_input = ObjectProperty() search_results = ObjectProperty() def search_location(...
import json from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class AddLocationForm(BoxLayout): search_input = ObjectProperty() search_results = ObjectProperty() def search_location(self): ...
import json from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class AddLocationForm(BoxLayout): search_input = ObjectProperty() search_results = ObjectProperty() def search_location(self): ...
<commit_before>import json from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import ObjectProperty from kivy.network.urlrequest import UrlRequest class AddLocationForm(BoxLayout): search_input = ObjectProperty() search_results = ObjectProperty() def search_location(...
9605a14372aaf2ad4315bad11053839cfe75e50e
main.py
main.py
""" St. George Game main.py Sage Berg, Skyler Berg Created: 5 Dec 2014 """ import places from character import Character from display import Display from actions import AskAboutAssassins, BuyADrink, LeaveInAHuff, SingASong def main(): display = Display() display.enable() character = Character() chara...
""" St. George Game main.py Sage Berg, Skyler Berg Created: 5 Dec 2014 """ import places from character import Character from display import Display from actions import AskAboutAssassins, BuyADrink, LeaveInAHuff, SingASong def main(): display = Display() display.enable() character = Character() chara...
Set previous action after executing
Set previous action after executing
Python
apache-2.0
SageBerg/St.GeorgeGame,SageBerg/St.GeorgeGame,SageBerg/St.GeorgeGame,SageBerg/St.GeorgeGame
""" St. George Game main.py Sage Berg, Skyler Berg Created: 5 Dec 2014 """ import places from character import Character from display import Display from actions import AskAboutAssassins, BuyADrink, LeaveInAHuff, SingASong def main(): display = Display() display.enable() character = Character() chara...
""" St. George Game main.py Sage Berg, Skyler Berg Created: 5 Dec 2014 """ import places from character import Character from display import Display from actions import AskAboutAssassins, BuyADrink, LeaveInAHuff, SingASong def main(): display = Display() display.enable() character = Character() chara...
<commit_before>""" St. George Game main.py Sage Berg, Skyler Berg Created: 5 Dec 2014 """ import places from character import Character from display import Display from actions import AskAboutAssassins, BuyADrink, LeaveInAHuff, SingASong def main(): display = Display() display.enable() character = Charac...
""" St. George Game main.py Sage Berg, Skyler Berg Created: 5 Dec 2014 """ import places from character import Character from display import Display from actions import AskAboutAssassins, BuyADrink, LeaveInAHuff, SingASong def main(): display = Display() display.enable() character = Character() chara...
""" St. George Game main.py Sage Berg, Skyler Berg Created: 5 Dec 2014 """ import places from character import Character from display import Display from actions import AskAboutAssassins, BuyADrink, LeaveInAHuff, SingASong def main(): display = Display() display.enable() character = Character() chara...
<commit_before>""" St. George Game main.py Sage Berg, Skyler Berg Created: 5 Dec 2014 """ import places from character import Character from display import Display from actions import AskAboutAssassins, BuyADrink, LeaveInAHuff, SingASong def main(): display = Display() display.enable() character = Charac...
80933f496ef57abe7335fd9490acf4a1f4a53648
nose2/tests/functional/test_coverage.py
nose2/tests/functional/test_coverage.py
from nose2.tests._common import FunctionalTestCase class TestCoverage(FunctionalTestCase): def test_run(self): proc = self.runIn( 'scenario/test_with_module', '-v', '--with-coverage', '--coverage=lib/' ) stdout, stderr = proc.communicate() ...
import os.path from nose2.tests._common import FunctionalTestCase class TestCoverage(FunctionalTestCase): def test_run(self): proc = self.runIn( 'scenario/test_with_module', '-v', '--with-coverage', '--coverage=lib/' ) STATS = ' 8 ...
Make test also work on Windows that uses backslash as path delimiter
Make test also work on Windows that uses backslash as path delimiter
Python
bsd-2-clause
little-dude/nose2,little-dude/nose2,ezigman/nose2,ezigman/nose2,ojengwa/nose2,ptthiem/nose2,ptthiem/nose2,ojengwa/nose2
from nose2.tests._common import FunctionalTestCase class TestCoverage(FunctionalTestCase): def test_run(self): proc = self.runIn( 'scenario/test_with_module', '-v', '--with-coverage', '--coverage=lib/' ) stdout, stderr = proc.communicate() ...
import os.path from nose2.tests._common import FunctionalTestCase class TestCoverage(FunctionalTestCase): def test_run(self): proc = self.runIn( 'scenario/test_with_module', '-v', '--with-coverage', '--coverage=lib/' ) STATS = ' 8 ...
<commit_before>from nose2.tests._common import FunctionalTestCase class TestCoverage(FunctionalTestCase): def test_run(self): proc = self.runIn( 'scenario/test_with_module', '-v', '--with-coverage', '--coverage=lib/' ) stdout, stderr = proc.c...
import os.path from nose2.tests._common import FunctionalTestCase class TestCoverage(FunctionalTestCase): def test_run(self): proc = self.runIn( 'scenario/test_with_module', '-v', '--with-coverage', '--coverage=lib/' ) STATS = ' 8 ...
from nose2.tests._common import FunctionalTestCase class TestCoverage(FunctionalTestCase): def test_run(self): proc = self.runIn( 'scenario/test_with_module', '-v', '--with-coverage', '--coverage=lib/' ) stdout, stderr = proc.communicate() ...
<commit_before>from nose2.tests._common import FunctionalTestCase class TestCoverage(FunctionalTestCase): def test_run(self): proc = self.runIn( 'scenario/test_with_module', '-v', '--with-coverage', '--coverage=lib/' ) stdout, stderr = proc.c...
e17367b4e5f865db4947fc4139baa0974d4a7326
social/apps/tornado_app/routes.py
social/apps/tornado_app/routes.py
from tornado.web import url from .handlers import AuthHandler, CompleteHandler, DisconnectHandler SOCIAL_AUTH_ROUTES = [ url(r'/login/(?P<backend>[^/]+)/?', AuthHandler, name='begin'), url(r'/complete/(?P<backend>[^/]+)/?', CompleteHandler, name='complete'), url(r'/disconnect/(?P<backend>[^/]+)/?', Disco...
from tornado.web import url from .handlers import AuthHandler, CompleteHandler, DisconnectHandler SOCIAL_AUTH_ROUTES = [ url(r'/login/(?P<backend>[^/]+)/?', AuthHandler, name='begin'), url(r'/complete/(?P<backend>[^/]+)/', CompleteHandler, name='complete'), url(r'/disconnect/(?P<backend>[^/]+)/?', Discon...
Fix redirect_uri issue with tornado reversed url
Fix redirect_uri issue with tornado reversed url When reversing URLs, tornado doesn't interpret the regex optional symbol '?'. This causes the redirect_uri to be https://example.com/complete/mybackend/? with the question mark appended. Some providers will simply append to this uri, causing URLs like https://example.co...
Python
bsd-3-clause
lneoe/python-social-auth,contracode/python-social-auth,python-social-auth/social-core,python-social-auth/social-storage-sqlalchemy,contracode/python-social-auth,ByteInternet/python-social-auth,python-social-auth/social-docs,cmichal/python-social-auth,cjltsod/python-social-auth,python-social-auth/social-app-django,cmich...
from tornado.web import url from .handlers import AuthHandler, CompleteHandler, DisconnectHandler SOCIAL_AUTH_ROUTES = [ url(r'/login/(?P<backend>[^/]+)/?', AuthHandler, name='begin'), url(r'/complete/(?P<backend>[^/]+)/?', CompleteHandler, name='complete'), url(r'/disconnect/(?P<backend>[^/]+)/?', Disco...
from tornado.web import url from .handlers import AuthHandler, CompleteHandler, DisconnectHandler SOCIAL_AUTH_ROUTES = [ url(r'/login/(?P<backend>[^/]+)/?', AuthHandler, name='begin'), url(r'/complete/(?P<backend>[^/]+)/', CompleteHandler, name='complete'), url(r'/disconnect/(?P<backend>[^/]+)/?', Discon...
<commit_before>from tornado.web import url from .handlers import AuthHandler, CompleteHandler, DisconnectHandler SOCIAL_AUTH_ROUTES = [ url(r'/login/(?P<backend>[^/]+)/?', AuthHandler, name='begin'), url(r'/complete/(?P<backend>[^/]+)/?', CompleteHandler, name='complete'), url(r'/disconnect/(?P<backend>[...
from tornado.web import url from .handlers import AuthHandler, CompleteHandler, DisconnectHandler SOCIAL_AUTH_ROUTES = [ url(r'/login/(?P<backend>[^/]+)/?', AuthHandler, name='begin'), url(r'/complete/(?P<backend>[^/]+)/', CompleteHandler, name='complete'), url(r'/disconnect/(?P<backend>[^/]+)/?', Discon...
from tornado.web import url from .handlers import AuthHandler, CompleteHandler, DisconnectHandler SOCIAL_AUTH_ROUTES = [ url(r'/login/(?P<backend>[^/]+)/?', AuthHandler, name='begin'), url(r'/complete/(?P<backend>[^/]+)/?', CompleteHandler, name='complete'), url(r'/disconnect/(?P<backend>[^/]+)/?', Disco...
<commit_before>from tornado.web import url from .handlers import AuthHandler, CompleteHandler, DisconnectHandler SOCIAL_AUTH_ROUTES = [ url(r'/login/(?P<backend>[^/]+)/?', AuthHandler, name='begin'), url(r'/complete/(?P<backend>[^/]+)/?', CompleteHandler, name='complete'), url(r'/disconnect/(?P<backend>[...
cd2c09f8902de59d9bdfa1e52ee65ea974c56412
st2common/st2common/__init__.py
st2common/st2common/__init__.py
# Copyright 2020 StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
Add Copyright headers example for StackStorm
Add Copyright headers example for StackStorm
Python
apache-2.0
Plexxi/st2,StackStorm/st2,nzlosh/st2,StackStorm/st2,nzlosh/st2,nzlosh/st2,StackStorm/st2,StackStorm/st2,Plexxi/st2,Plexxi/st2,nzlosh/st2,Plexxi/st2
# Copyright 2020 StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
<commit_before># Copyright 2020 StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
# Copyright 2020 StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
<commit_before># Copyright 2020 StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
8ba03f6be64ee12634183e0b5c5f3aa3b6014b94
linguine/ops/StanfordCoreNLP.py
linguine/ops/StanfordCoreNLP.py
#!/usr/bin/env python import os """ Performs some core NLP operations as a proof of concept for the library. """ from stanford_corenlp_pywrapper import CoreNLP class StanfordCoreNLP: def __init__(self): # I don't see anywhere to put properties like this path... # For now it's hardcoded and would ...
#!/usr/bin/env python import os """ Performs some core NLP operations as a proof of concept for the library. """ from stanford_corenlp_pywrapper import CoreNLP class StanfordCoreNLP: def __init__(self): # I don't see anywhere to put properties like this path... # For now it's hardcoded and would ...
Add coreNLP models jar relative path as well
Add coreNLP models jar relative path as well
Python
mit
rigatoni/linguine-python,Pastafarians/linguine-python
#!/usr/bin/env python import os """ Performs some core NLP operations as a proof of concept for the library. """ from stanford_corenlp_pywrapper import CoreNLP class StanfordCoreNLP: def __init__(self): # I don't see anywhere to put properties like this path... # For now it's hardcoded and would ...
#!/usr/bin/env python import os """ Performs some core NLP operations as a proof of concept for the library. """ from stanford_corenlp_pywrapper import CoreNLP class StanfordCoreNLP: def __init__(self): # I don't see anywhere to put properties like this path... # For now it's hardcoded and would ...
<commit_before>#!/usr/bin/env python import os """ Performs some core NLP operations as a proof of concept for the library. """ from stanford_corenlp_pywrapper import CoreNLP class StanfordCoreNLP: def __init__(self): # I don't see anywhere to put properties like this path... # For now it's hardc...
#!/usr/bin/env python import os """ Performs some core NLP operations as a proof of concept for the library. """ from stanford_corenlp_pywrapper import CoreNLP class StanfordCoreNLP: def __init__(self): # I don't see anywhere to put properties like this path... # For now it's hardcoded and would ...
#!/usr/bin/env python import os """ Performs some core NLP operations as a proof of concept for the library. """ from stanford_corenlp_pywrapper import CoreNLP class StanfordCoreNLP: def __init__(self): # I don't see anywhere to put properties like this path... # For now it's hardcoded and would ...
<commit_before>#!/usr/bin/env python import os """ Performs some core NLP operations as a proof of concept for the library. """ from stanford_corenlp_pywrapper import CoreNLP class StanfordCoreNLP: def __init__(self): # I don't see anywhere to put properties like this path... # For now it's hardc...
fde1aa2a56af7c63866af98a249f8a5413981437
mr/tests/test_plot_traj_labeling.py
mr/tests/test_plot_traj_labeling.py
import unittest from numpy.testing.decorators import slow import os import pandas as pd from mr import ptraj path, _ = os.path.split(os.path.abspath(__file__)) class TestLabeling(unittest.TestCase): def setUp(self): self.sparse = pd.load(os.path.join(path, 'misc', ...
import unittest from numpy.testing.decorators import slow import os import pandas as pd from mr import ptraj path, _ = os.path.split(os.path.abspath(__file__)) class TestLabeling(unittest.TestCase): def setUp(self): self.sparse = pd.read_pickle(os.path.join(path, 'misc', ...
Replace deprecated pd.load with pd.read_pickle.
Replace deprecated pd.load with pd.read_pickle.
Python
bsd-3-clause
daniorerio/trackpy,daniorerio/trackpy
import unittest from numpy.testing.decorators import slow import os import pandas as pd from mr import ptraj path, _ = os.path.split(os.path.abspath(__file__)) class TestLabeling(unittest.TestCase): def setUp(self): self.sparse = pd.load(os.path.join(path, 'misc', ...
import unittest from numpy.testing.decorators import slow import os import pandas as pd from mr import ptraj path, _ = os.path.split(os.path.abspath(__file__)) class TestLabeling(unittest.TestCase): def setUp(self): self.sparse = pd.read_pickle(os.path.join(path, 'misc', ...
<commit_before>import unittest from numpy.testing.decorators import slow import os import pandas as pd from mr import ptraj path, _ = os.path.split(os.path.abspath(__file__)) class TestLabeling(unittest.TestCase): def setUp(self): self.sparse = pd.load(os.path.join(path, 'misc', ...
import unittest from numpy.testing.decorators import slow import os import pandas as pd from mr import ptraj path, _ = os.path.split(os.path.abspath(__file__)) class TestLabeling(unittest.TestCase): def setUp(self): self.sparse = pd.read_pickle(os.path.join(path, 'misc', ...
import unittest from numpy.testing.decorators import slow import os import pandas as pd from mr import ptraj path, _ = os.path.split(os.path.abspath(__file__)) class TestLabeling(unittest.TestCase): def setUp(self): self.sparse = pd.load(os.path.join(path, 'misc', ...
<commit_before>import unittest from numpy.testing.decorators import slow import os import pandas as pd from mr import ptraj path, _ = os.path.split(os.path.abspath(__file__)) class TestLabeling(unittest.TestCase): def setUp(self): self.sparse = pd.load(os.path.join(path, 'misc', ...
0ba0d7d1e0b19ef0523c66726cff637018703b4a
tests/test_requesthandler.py
tests/test_requesthandler.py
from unittest import TestCase from ppp_datamodel.communication import Request from ppp_datamodel import Triple, Resource, Missing, Sentence from ppp_libmodule.tests import PPPTestCase from ppp_spell_checker import app class RequestHandlerTest(PPPTestCase(app)): def testCorrectSentence(self): original = 'W...
from unittest import TestCase from ppp_datamodel.communication import Request from ppp_datamodel import Triple, Resource, Missing, Sentence from ppp_libmodule.tests import PPPTestCase from ppp_spell_checker import app class RequestHandlerTest(PPPTestCase(app)): def testCorrectSentence(self): original = 'W...
Write tests in a better way
Write tests in a better way
Python
mit
ProjetPP/PPP-Spell-Checker,ProjetPP/PPP-Spell-Checker
from unittest import TestCase from ppp_datamodel.communication import Request from ppp_datamodel import Triple, Resource, Missing, Sentence from ppp_libmodule.tests import PPPTestCase from ppp_spell_checker import app class RequestHandlerTest(PPPTestCase(app)): def testCorrectSentence(self): original = 'W...
from unittest import TestCase from ppp_datamodel.communication import Request from ppp_datamodel import Triple, Resource, Missing, Sentence from ppp_libmodule.tests import PPPTestCase from ppp_spell_checker import app class RequestHandlerTest(PPPTestCase(app)): def testCorrectSentence(self): original = 'W...
<commit_before>from unittest import TestCase from ppp_datamodel.communication import Request from ppp_datamodel import Triple, Resource, Missing, Sentence from ppp_libmodule.tests import PPPTestCase from ppp_spell_checker import app class RequestHandlerTest(PPPTestCase(app)): def testCorrectSentence(self): ...
from unittest import TestCase from ppp_datamodel.communication import Request from ppp_datamodel import Triple, Resource, Missing, Sentence from ppp_libmodule.tests import PPPTestCase from ppp_spell_checker import app class RequestHandlerTest(PPPTestCase(app)): def testCorrectSentence(self): original = 'W...
from unittest import TestCase from ppp_datamodel.communication import Request from ppp_datamodel import Triple, Resource, Missing, Sentence from ppp_libmodule.tests import PPPTestCase from ppp_spell_checker import app class RequestHandlerTest(PPPTestCase(app)): def testCorrectSentence(self): original = 'W...
<commit_before>from unittest import TestCase from ppp_datamodel.communication import Request from ppp_datamodel import Triple, Resource, Missing, Sentence from ppp_libmodule.tests import PPPTestCase from ppp_spell_checker import app class RequestHandlerTest(PPPTestCase(app)): def testCorrectSentence(self): ...
b6ebb7936e19389ee132b6f0bfbeb1ba7441f95a
tmaps/extensions/__init__.py
tmaps/extensions/__init__.py
from .gc3pie import GC3PieEngine gc3pie_engine = GC3PieEngine() from flask.ext.redis import FlaskRedis redis_store = FlaskRedis() from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from auth import jwt from spark import Spark spark = Spark() from .gc3pie import GC3PieEngine gc3pie_engine = GC3PieEngine(...
from flask.ext.redis import FlaskRedis redis_store = FlaskRedis() from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from auth import jwt from spark import Spark spark = Spark() from gc3pie import GC3Pie gc3pie = GC3Pie() from flask.ext.uwsgi_websocket import GeventWebSocket websocket = GeventWebSocket(...
Fix import of tmaps extensions
Fix import of tmaps extensions
Python
agpl-3.0
TissueMAPS/TmServer
from .gc3pie import GC3PieEngine gc3pie_engine = GC3PieEngine() from flask.ext.redis import FlaskRedis redis_store = FlaskRedis() from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from auth import jwt from spark import Spark spark = Spark() from .gc3pie import GC3PieEngine gc3pie_engine = GC3PieEngine(...
from flask.ext.redis import FlaskRedis redis_store = FlaskRedis() from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from auth import jwt from spark import Spark spark = Spark() from gc3pie import GC3Pie gc3pie = GC3Pie() from flask.ext.uwsgi_websocket import GeventWebSocket websocket = GeventWebSocket(...
<commit_before>from .gc3pie import GC3PieEngine gc3pie_engine = GC3PieEngine() from flask.ext.redis import FlaskRedis redis_store = FlaskRedis() from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from auth import jwt from spark import Spark spark = Spark() from .gc3pie import GC3PieEngine gc3pie_engine ...
from flask.ext.redis import FlaskRedis redis_store = FlaskRedis() from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from auth import jwt from spark import Spark spark = Spark() from gc3pie import GC3Pie gc3pie = GC3Pie() from flask.ext.uwsgi_websocket import GeventWebSocket websocket = GeventWebSocket(...
from .gc3pie import GC3PieEngine gc3pie_engine = GC3PieEngine() from flask.ext.redis import FlaskRedis redis_store = FlaskRedis() from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from auth import jwt from spark import Spark spark = Spark() from .gc3pie import GC3PieEngine gc3pie_engine = GC3PieEngine(...
<commit_before>from .gc3pie import GC3PieEngine gc3pie_engine = GC3PieEngine() from flask.ext.redis import FlaskRedis redis_store = FlaskRedis() from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() from auth import jwt from spark import Spark spark = Spark() from .gc3pie import GC3PieEngine gc3pie_engine ...
ac462d27b4242a9e2ee04c052da6b832ae3d0df7
plugins/Tools/TranslateTool/__init__.py
plugins/Tools/TranslateTool/__init__.py
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import TranslateTool from UM.i18n import i18nCatalog i18n_catalog = i18nCatalog("uranium") def getMetaData(): return { "type": "tool", "plugin": { "name": i18n_catalog.i18nc("@lab...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import TranslateTool from UM.i18n import i18nCatalog i18n_catalog = i18nCatalog("uranium") def getMetaData(): return { "type": "tool", "plugin": { "name": i18n_catalog.i18nc("@lab...
Fix order of tools in the toolbar (translate tool on top)
Fix order of tools in the toolbar (translate tool on top) CURA-838
Python
agpl-3.0
onitake/Uranium,onitake/Uranium
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import TranslateTool from UM.i18n import i18nCatalog i18n_catalog = i18nCatalog("uranium") def getMetaData(): return { "type": "tool", "plugin": { "name": i18n_catalog.i18nc("@lab...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import TranslateTool from UM.i18n import i18nCatalog i18n_catalog = i18nCatalog("uranium") def getMetaData(): return { "type": "tool", "plugin": { "name": i18n_catalog.i18nc("@lab...
<commit_before># Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import TranslateTool from UM.i18n import i18nCatalog i18n_catalog = i18nCatalog("uranium") def getMetaData(): return { "type": "tool", "plugin": { "name": i18n_cata...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import TranslateTool from UM.i18n import i18nCatalog i18n_catalog = i18nCatalog("uranium") def getMetaData(): return { "type": "tool", "plugin": { "name": i18n_catalog.i18nc("@lab...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import TranslateTool from UM.i18n import i18nCatalog i18n_catalog = i18nCatalog("uranium") def getMetaData(): return { "type": "tool", "plugin": { "name": i18n_catalog.i18nc("@lab...
<commit_before># Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import TranslateTool from UM.i18n import i18nCatalog i18n_catalog = i18nCatalog("uranium") def getMetaData(): return { "type": "tool", "plugin": { "name": i18n_cata...
69b3911b6aa13a6420a1b9dc3117164f6bf8330f
PyFVCOM/__init__.py
PyFVCOM/__init__.py
""" The FVCOM Python toolbox (PyFVCOM) """ __version__ = '1.3.4' __author__ = 'Pierre Cazenave' __credits__ = ['Pierre Cazenave'] __license__ = 'MIT' __maintainer__ = 'Pierre Cazenave' __email__ = '[email protected]' import inspect from warnings import warn # Import everything! from PyFVCOM import buoy_tools from PyFV...
""" The FVCOM Python toolbox (PyFVCOM) """ __version__ = '1.3.4' __author__ = 'Pierre Cazenave' __credits__ = ['Pierre Cazenave'] __license__ = 'MIT' __maintainer__ = 'Pierre Cazenave' __email__ = '[email protected]' import inspect from warnings import warn # Import everything! from PyFVCOM import buoy_tools from PyFV...
Remove the backwards compatibility as it wasn't working for some reason.
Remove the backwards compatibility as it wasn't working for some reason.
Python
mit
pwcazenave/PyFVCOM
""" The FVCOM Python toolbox (PyFVCOM) """ __version__ = '1.3.4' __author__ = 'Pierre Cazenave' __credits__ = ['Pierre Cazenave'] __license__ = 'MIT' __maintainer__ = 'Pierre Cazenave' __email__ = '[email protected]' import inspect from warnings import warn # Import everything! from PyFVCOM import buoy_tools from PyFV...
""" The FVCOM Python toolbox (PyFVCOM) """ __version__ = '1.3.4' __author__ = 'Pierre Cazenave' __credits__ = ['Pierre Cazenave'] __license__ = 'MIT' __maintainer__ = 'Pierre Cazenave' __email__ = '[email protected]' import inspect from warnings import warn # Import everything! from PyFVCOM import buoy_tools from PyFV...
<commit_before>""" The FVCOM Python toolbox (PyFVCOM) """ __version__ = '1.3.4' __author__ = 'Pierre Cazenave' __credits__ = ['Pierre Cazenave'] __license__ = 'MIT' __maintainer__ = 'Pierre Cazenave' __email__ = '[email protected]' import inspect from warnings import warn # Import everything! from PyFVCOM import buoy_...
""" The FVCOM Python toolbox (PyFVCOM) """ __version__ = '1.3.4' __author__ = 'Pierre Cazenave' __credits__ = ['Pierre Cazenave'] __license__ = 'MIT' __maintainer__ = 'Pierre Cazenave' __email__ = '[email protected]' import inspect from warnings import warn # Import everything! from PyFVCOM import buoy_tools from PyFV...
""" The FVCOM Python toolbox (PyFVCOM) """ __version__ = '1.3.4' __author__ = 'Pierre Cazenave' __credits__ = ['Pierre Cazenave'] __license__ = 'MIT' __maintainer__ = 'Pierre Cazenave' __email__ = '[email protected]' import inspect from warnings import warn # Import everything! from PyFVCOM import buoy_tools from PyFV...
<commit_before>""" The FVCOM Python toolbox (PyFVCOM) """ __version__ = '1.3.4' __author__ = 'Pierre Cazenave' __credits__ = ['Pierre Cazenave'] __license__ = 'MIT' __maintainer__ = 'Pierre Cazenave' __email__ = '[email protected]' import inspect from warnings import warn # Import everything! from PyFVCOM import buoy_...
f967ba433284c573cbce47d84ae55c209801ad6e
ash/PRESUBMIT.py
ash/PRESUBMIT.py
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium presubmit script for src/ash See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on the presubmit A...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium presubmit script for src/ash See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on the presubmit A...
Add linux_chromeos_clang to the list of automatic trybots.
Add linux_chromeos_clang to the list of automatic trybots. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10833037 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@148600 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
krieger-od/nwjs_chromium.src,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,M4sse/chromium.src,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,mogoweb/chro...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium presubmit script for src/ash See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on the presubmit A...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium presubmit script for src/ash See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on the presubmit A...
<commit_before># Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium presubmit script for src/ash See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on ...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium presubmit script for src/ash See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on the presubmit A...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium presubmit script for src/ash See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on the presubmit A...
<commit_before># Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium presubmit script for src/ash See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on ...
fac9a9a461049b164d478c58435725979b46d400
usingnamespace/forms/csrf.py
usingnamespace/forms/csrf.py
# File: csrf.py # Author: Bert JW Regeer <[email protected]> # Created: 2013-01-26 import colander import deform @colander.deferred def deferred_csrf_default(node, kw): request = kw.get('request') csrf_token = request.session.get_csrf_token() return csrf_token @colander.deferred def deferred_csrf_validat...
# File: csrf.py # Author: Bert JW Regeer <[email protected]> # Created: 2013-01-26 import colander import deform @colander.deferred def deferred_csrf_default(node, kw): request = kw.get('request') if request is None: raise KeyError('Require bind: request') csrf_token = request.session.get_csrf_t...
Add some checking that stuff is bound
Add some checking that stuff is bound Specifically we require that request is bound to the form.
Python
isc
usingnamespace/usingnamespace
# File: csrf.py # Author: Bert JW Regeer <[email protected]> # Created: 2013-01-26 import colander import deform @colander.deferred def deferred_csrf_default(node, kw): request = kw.get('request') csrf_token = request.session.get_csrf_token() return csrf_token @colander.deferred def deferred_csrf_validat...
# File: csrf.py # Author: Bert JW Regeer <[email protected]> # Created: 2013-01-26 import colander import deform @colander.deferred def deferred_csrf_default(node, kw): request = kw.get('request') if request is None: raise KeyError('Require bind: request') csrf_token = request.session.get_csrf_t...
<commit_before># File: csrf.py # Author: Bert JW Regeer <[email protected]> # Created: 2013-01-26 import colander import deform @colander.deferred def deferred_csrf_default(node, kw): request = kw.get('request') csrf_token = request.session.get_csrf_token() return csrf_token @colander.deferred def deferr...
# File: csrf.py # Author: Bert JW Regeer <[email protected]> # Created: 2013-01-26 import colander import deform @colander.deferred def deferred_csrf_default(node, kw): request = kw.get('request') if request is None: raise KeyError('Require bind: request') csrf_token = request.session.get_csrf_t...
# File: csrf.py # Author: Bert JW Regeer <[email protected]> # Created: 2013-01-26 import colander import deform @colander.deferred def deferred_csrf_default(node, kw): request = kw.get('request') csrf_token = request.session.get_csrf_token() return csrf_token @colander.deferred def deferred_csrf_validat...
<commit_before># File: csrf.py # Author: Bert JW Regeer <[email protected]> # Created: 2013-01-26 import colander import deform @colander.deferred def deferred_csrf_default(node, kw): request = kw.get('request') csrf_token = request.session.get_csrf_token() return csrf_token @colander.deferred def deferr...
ee7d663f3c7e5c52581527167938d81ca2a07a3d
bisnode/models.py
bisnode/models.py
from datetime import datetime from django.db import models from .constants import COMPANY_RATING_REPORT, RATING_CHOICES from .bisnode import get_bisnode_company_report def bisnode_date_to_date(bisnode_date): formatted_datetime = datetime.strptime(bisnode_date, "%Y%m%d") return formatted_datetime.date() cl...
from datetime import datetime from django.db import models from .constants import COMPANY_RATING_REPORT, RATING_CHOICES from .bisnode import get_bisnode_company_report def bisnode_date_to_date(bisnode_date): formatted_datetime = datetime.strptime(bisnode_date, "%Y%m%d") return formatted_datetime.date() cl...
Make Organization Number a unique field
Make Organization Number a unique field
Python
mit
FundedByMe/django-bisnode
from datetime import datetime from django.db import models from .constants import COMPANY_RATING_REPORT, RATING_CHOICES from .bisnode import get_bisnode_company_report def bisnode_date_to_date(bisnode_date): formatted_datetime = datetime.strptime(bisnode_date, "%Y%m%d") return formatted_datetime.date() cl...
from datetime import datetime from django.db import models from .constants import COMPANY_RATING_REPORT, RATING_CHOICES from .bisnode import get_bisnode_company_report def bisnode_date_to_date(bisnode_date): formatted_datetime = datetime.strptime(bisnode_date, "%Y%m%d") return formatted_datetime.date() cl...
<commit_before>from datetime import datetime from django.db import models from .constants import COMPANY_RATING_REPORT, RATING_CHOICES from .bisnode import get_bisnode_company_report def bisnode_date_to_date(bisnode_date): formatted_datetime = datetime.strptime(bisnode_date, "%Y%m%d") return formatted_datet...
from datetime import datetime from django.db import models from .constants import COMPANY_RATING_REPORT, RATING_CHOICES from .bisnode import get_bisnode_company_report def bisnode_date_to_date(bisnode_date): formatted_datetime = datetime.strptime(bisnode_date, "%Y%m%d") return formatted_datetime.date() cl...
from datetime import datetime from django.db import models from .constants import COMPANY_RATING_REPORT, RATING_CHOICES from .bisnode import get_bisnode_company_report def bisnode_date_to_date(bisnode_date): formatted_datetime = datetime.strptime(bisnode_date, "%Y%m%d") return formatted_datetime.date() cl...
<commit_before>from datetime import datetime from django.db import models from .constants import COMPANY_RATING_REPORT, RATING_CHOICES from .bisnode import get_bisnode_company_report def bisnode_date_to_date(bisnode_date): formatted_datetime = datetime.strptime(bisnode_date, "%Y%m%d") return formatted_datet...
4078dcd4a35dd09c610bb5e9298a87828a0acf8e
apps/core/models.py
apps/core/models.py
from django.db import models # Create your models here.
from django.db import models from django.utils.timezone import now class DateTimeCreatedField(models.DateTimeField): """ DateTimeField that by default, sets editable=False, blank=True, default=now. """ def __init__(self, *args, **kwargs): kwargs.setdefault('editable', False) kwarg...
Implement an abstract base class model
Implement an abstract base class model
Python
mit
SoPR/horas,SoPR/horas,SoPR/horas,SoPR/horas
from django.db import models # Create your models here. Implement an abstract base class model
from django.db import models from django.utils.timezone import now class DateTimeCreatedField(models.DateTimeField): """ DateTimeField that by default, sets editable=False, blank=True, default=now. """ def __init__(self, *args, **kwargs): kwargs.setdefault('editable', False) kwarg...
<commit_before>from django.db import models # Create your models here. <commit_msg>Implement an abstract base class model<commit_after>
from django.db import models from django.utils.timezone import now class DateTimeCreatedField(models.DateTimeField): """ DateTimeField that by default, sets editable=False, blank=True, default=now. """ def __init__(self, *args, **kwargs): kwargs.setdefault('editable', False) kwarg...
from django.db import models # Create your models here. Implement an abstract base class modelfrom django.db import models from django.utils.timezone import now class DateTimeCreatedField(models.DateTimeField): """ DateTimeField that by default, sets editable=False, blank=True, default=now. """ ...
<commit_before>from django.db import models # Create your models here. <commit_msg>Implement an abstract base class model<commit_after>from django.db import models from django.utils.timezone import now class DateTimeCreatedField(models.DateTimeField): """ DateTimeField that by default, sets editable=False, ...
66cc06698d062a679bb0130b435c7d344116c664
test.py
test.py
import sys import django from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'shopify_auth', ...
import sys import django from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'shopify_auth', ...
Add TEMPLATES configuration for Django v1.10 purposes.
Add TEMPLATES configuration for Django v1.10 purposes.
Python
mit
discolabs/django-shopify-auth,discolabs/django-shopify-auth
import sys import django from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'shopify_auth', ...
import sys import django from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'shopify_auth', ...
<commit_before>import sys import django from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'shop...
import sys import django from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'shopify_auth', ...
import sys import django from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'shopify_auth', ...
<commit_before>import sys import django from django.conf import settings settings.configure( DEBUG=True, DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, INSTALLED_APPS=( 'django.contrib.auth', 'django.contrib.contenttypes', 'shop...
9230d01bb88aff393d7c0f71a2417396d6c7a968
timpani/settings.py
timpani/settings.py
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
Use merge instead of add in setSettingValue
Use merge instead of add in setSettingValue
Python
mit
ollien/Timpani,ollien/Timpani,ollien/Timpani
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
<commit_before>from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databa...
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
<commit_before>from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databa...
99bd465550fd8c085cb0317b53647de75cf4eee7
urls.py
urls.py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^', include('api.urls')), url('r^accounts/', include('accounts.urls')), url('', include('social.apps.django_app.urls', namespace='social'...
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^', include('api.urls')), url(r'^accounts/', include('accounts.urls')), url('', include('social.apps.django_app.urls', namespace='social'...
Fix wrong url regxp for accoutns
Fix wrong url regxp for accoutns
Python
agpl-3.0
datea/datea-api,lafactura/datea-api,lafactura/datea-api,datea/datea-api,datea/datea-api,lafactura/datea-api
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^', include('api.urls')), url('r^accounts/', include('accounts.urls')), url('', include('social.apps.django_app.urls', namespace='social'...
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^', include('api.urls')), url(r'^accounts/', include('accounts.urls')), url('', include('social.apps.django_app.urls', namespace='social'...
<commit_before># -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^', include('api.urls')), url('r^accounts/', include('accounts.urls')), url('', include('social.apps.django_app.urls', nam...
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^', include('api.urls')), url(r'^accounts/', include('accounts.urls')), url('', include('social.apps.django_app.urls', namespace='social'...
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^', include('api.urls')), url('r^accounts/', include('accounts.urls')), url('', include('social.apps.django_app.urls', namespace='social'...
<commit_before># -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^', include('api.urls')), url('r^accounts/', include('accounts.urls')), url('', include('social.apps.django_app.urls', nam...
16b69b7a70d0f5f2dc198e09ad8b5d0e9997aba3
src/bindings/python/__init__.py
src/bindings/python/__init__.py
import os import platform import sys if platform.system() == "Windows": os.add_dll_directory(os.path.join(sys.prefix, "Library", "bin"))
import os import platform import sys if platform.system() == "Windows": version_info = sys.version_info if sys.version_info.major == 3 && sys.version_info.minor < 8: sys.path.append(os.path.join(sys.prefix, "Library", "bin")) else: os.add_dll_directory(os.path.join(sys.prefix, "Library", "...
Make aether package initialisation work for both Python 3.7 and 3.8.
Make aether package initialisation work for both Python 3.7 and 3.8.
Python
apache-2.0
LungNoodle/lungsim,LungNoodle/lungsim,LungNoodle/lungsim
import os import platform import sys if platform.system() == "Windows": os.add_dll_directory(os.path.join(sys.prefix, "Library", "bin")) Make aether package initialisation work for both Python 3.7 and 3.8.
import os import platform import sys if platform.system() == "Windows": version_info = sys.version_info if sys.version_info.major == 3 && sys.version_info.minor < 8: sys.path.append(os.path.join(sys.prefix, "Library", "bin")) else: os.add_dll_directory(os.path.join(sys.prefix, "Library", "...
<commit_before>import os import platform import sys if platform.system() == "Windows": os.add_dll_directory(os.path.join(sys.prefix, "Library", "bin")) <commit_msg>Make aether package initialisation work for both Python 3.7 and 3.8.<commit_after>
import os import platform import sys if platform.system() == "Windows": version_info = sys.version_info if sys.version_info.major == 3 && sys.version_info.minor < 8: sys.path.append(os.path.join(sys.prefix, "Library", "bin")) else: os.add_dll_directory(os.path.join(sys.prefix, "Library", "...
import os import platform import sys if platform.system() == "Windows": os.add_dll_directory(os.path.join(sys.prefix, "Library", "bin")) Make aether package initialisation work for both Python 3.7 and 3.8.import os import platform import sys if platform.system() == "Windows": version_info = sys.version_inf...
<commit_before>import os import platform import sys if platform.system() == "Windows": os.add_dll_directory(os.path.join(sys.prefix, "Library", "bin")) <commit_msg>Make aether package initialisation work for both Python 3.7 and 3.8.<commit_after>import os import platform import sys if platform.system() == "Win...
c73bae428fa6ecf4c280a991ed8482250e4d8747
jarn/mkrelease/process.py
jarn/mkrelease/process.py
import os import tee class Process(object): """Process related functions using the tee module.""" def __init__(self, quiet=False, env=None): self.quiet = quiet self.env = env def popen(self, cmd, echo=True, echo2=True): # env *replaces* os.environ if self.quiet: ...
import os import tee class Process(object): """Process related functions using the tee module.""" def __init__(self, quiet=False, env=None): self.quiet = quiet self.env = env def popen(self, cmd, echo=True, echo2=True): # env *replaces* os.environ if self.quiet: ...
Use iteritems in Python 2.
Use iteritems in Python 2.
Python
bsd-2-clause
Jarn/jarn.mkrelease
import os import tee class Process(object): """Process related functions using the tee module.""" def __init__(self, quiet=False, env=None): self.quiet = quiet self.env = env def popen(self, cmd, echo=True, echo2=True): # env *replaces* os.environ if self.quiet: ...
import os import tee class Process(object): """Process related functions using the tee module.""" def __init__(self, quiet=False, env=None): self.quiet = quiet self.env = env def popen(self, cmd, echo=True, echo2=True): # env *replaces* os.environ if self.quiet: ...
<commit_before>import os import tee class Process(object): """Process related functions using the tee module.""" def __init__(self, quiet=False, env=None): self.quiet = quiet self.env = env def popen(self, cmd, echo=True, echo2=True): # env *replaces* os.environ if self.q...
import os import tee class Process(object): """Process related functions using the tee module.""" def __init__(self, quiet=False, env=None): self.quiet = quiet self.env = env def popen(self, cmd, echo=True, echo2=True): # env *replaces* os.environ if self.quiet: ...
import os import tee class Process(object): """Process related functions using the tee module.""" def __init__(self, quiet=False, env=None): self.quiet = quiet self.env = env def popen(self, cmd, echo=True, echo2=True): # env *replaces* os.environ if self.quiet: ...
<commit_before>import os import tee class Process(object): """Process related functions using the tee module.""" def __init__(self, quiet=False, env=None): self.quiet = quiet self.env = env def popen(self, cmd, echo=True, echo2=True): # env *replaces* os.environ if self.q...
01d49c43594829c5ba10c4dcb6db00bfd5e5fb61
lcp/settings/base.py
lcp/settings/base.py
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ['SECRET_KEY']
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ['SECRET_KEY'] # Other settings must explicitly opt-in for debug mode. DEBUG = False
Make the default for DEBUG be False.
Make the default for DEBUG be False.
Python
bsd-2-clause
mblayman/lcp,mblayman/lcp,mblayman/lcp
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ['SECRET_KEY'] Make the default for DEBUG be False.
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ['SECRET_KEY'] # Other settings must explicitly opt-in for debug mode. DEBUG = False
<commit_before>import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ['SECRET_KEY'] <commit_msg>Make the default for DEBUG be False.<commit_after>
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ['SECRET_KEY'] # Other settings must explicitly opt-in for debug mode. DEBUG = False
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ['SECRET_KEY'] Make the default for DEBUG be False.import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR...
<commit_before>import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = os.environ['SECRET_KEY'] <commit_msg>Make the default for DEBUG be False.<commit_after>import os # Build paths inside the project like t...
1f8b37789fd656d80c0424bbd56c3d0b40aa07de
lexicon/discovery.py
lexicon/discovery.py
""" This module takes care of finding information about the runtime of Lexicon: * what are the providers installed, and available * what is the version of Lexicon """ import pkgutil import pkg_resources from lexicon import providers def find_providers(): """Find all providers registered in Lexicon, and their av...
""" This module takes care of finding information about the runtime of Lexicon: * what are the providers installed, and available * what is the version of Lexicon """ import pkgutil import pkg_resources from lexicon import providers def find_providers(): """Find all providers registered in Lexicon, and their av...
Fix resolution of dependencies in a regular install of lexicon distribution
Fix resolution of dependencies in a regular install of lexicon distribution
Python
mit
AnalogJ/lexicon,AnalogJ/lexicon
""" This module takes care of finding information about the runtime of Lexicon: * what are the providers installed, and available * what is the version of Lexicon """ import pkgutil import pkg_resources from lexicon import providers def find_providers(): """Find all providers registered in Lexicon, and their av...
""" This module takes care of finding information about the runtime of Lexicon: * what are the providers installed, and available * what is the version of Lexicon """ import pkgutil import pkg_resources from lexicon import providers def find_providers(): """Find all providers registered in Lexicon, and their av...
<commit_before>""" This module takes care of finding information about the runtime of Lexicon: * what are the providers installed, and available * what is the version of Lexicon """ import pkgutil import pkg_resources from lexicon import providers def find_providers(): """Find all providers registered in Lexico...
""" This module takes care of finding information about the runtime of Lexicon: * what are the providers installed, and available * what is the version of Lexicon """ import pkgutil import pkg_resources from lexicon import providers def find_providers(): """Find all providers registered in Lexicon, and their av...
""" This module takes care of finding information about the runtime of Lexicon: * what are the providers installed, and available * what is the version of Lexicon """ import pkgutil import pkg_resources from lexicon import providers def find_providers(): """Find all providers registered in Lexicon, and their av...
<commit_before>""" This module takes care of finding information about the runtime of Lexicon: * what are the providers installed, and available * what is the version of Lexicon """ import pkgutil import pkg_resources from lexicon import providers def find_providers(): """Find all providers registered in Lexico...
9c4aefb8ea88fd5505602c95f4762fdeb3aea183
oslo_versionedobjects/_utils.py
oslo_versionedobjects/_utils.py
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
Handle TZ change in iso8601 >=0.1.12
Handle TZ change in iso8601 >=0.1.12 The iso8601 lib introduced a change such that if running on python 3.2 or later it internally uses the python timezone information instead of its own implementation. This does not change direct date handling, but when converting this value there is a slight difference where now pyt...
Python
apache-2.0
openstack/oslo.versionedobjects
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
<commit_before># Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except i...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
<commit_before># Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except i...
de9873e9a4d99458ae31bd1f2c68777302e18ffd
test/skills/scheduled_skills.py
test/skills/scheduled_skills.py
from datetime import datetime, timedelta import unittest from mycroft.skills.scheduled_skills import ScheduledSkill from mycroft.util.log import getLogger __author__ = 'eward' logger = getLogger(__name__) class ScheduledSkillTest(unittest.TestCase): skill = ScheduledSkill(name='ScheduledSkillTest') def te...
from datetime import datetime, timedelta import unittest from mycroft.skills.scheduled_skills import ScheduledSkill from mycroft.util.log import getLogger __author__ = 'eward' logger = getLogger(__name__) class ScheduledSkillTest(unittest.TestCase): skill = ScheduledSkill(name='ScheduledSkillTest') def te...
Correct test criteria for time format for scheduled skill.
Correct test criteria for time format for scheduled skill. Now matches current behaviour, previous behaviour is not a good idea since it depended on Locale.
Python
apache-2.0
aatchison/mycroft-core,Dark5ide/mycroft-core,linuxipho/mycroft-core,MycroftAI/mycroft-core,forslund/mycroft-core,aatchison/mycroft-core,forslund/mycroft-core,linuxipho/mycroft-core,MycroftAI/mycroft-core,Dark5ide/mycroft-core
from datetime import datetime, timedelta import unittest from mycroft.skills.scheduled_skills import ScheduledSkill from mycroft.util.log import getLogger __author__ = 'eward' logger = getLogger(__name__) class ScheduledSkillTest(unittest.TestCase): skill = ScheduledSkill(name='ScheduledSkillTest') def te...
from datetime import datetime, timedelta import unittest from mycroft.skills.scheduled_skills import ScheduledSkill from mycroft.util.log import getLogger __author__ = 'eward' logger = getLogger(__name__) class ScheduledSkillTest(unittest.TestCase): skill = ScheduledSkill(name='ScheduledSkillTest') def te...
<commit_before>from datetime import datetime, timedelta import unittest from mycroft.skills.scheduled_skills import ScheduledSkill from mycroft.util.log import getLogger __author__ = 'eward' logger = getLogger(__name__) class ScheduledSkillTest(unittest.TestCase): skill = ScheduledSkill(name='ScheduledSkillTes...
from datetime import datetime, timedelta import unittest from mycroft.skills.scheduled_skills import ScheduledSkill from mycroft.util.log import getLogger __author__ = 'eward' logger = getLogger(__name__) class ScheduledSkillTest(unittest.TestCase): skill = ScheduledSkill(name='ScheduledSkillTest') def te...
from datetime import datetime, timedelta import unittest from mycroft.skills.scheduled_skills import ScheduledSkill from mycroft.util.log import getLogger __author__ = 'eward' logger = getLogger(__name__) class ScheduledSkillTest(unittest.TestCase): skill = ScheduledSkill(name='ScheduledSkillTest') def te...
<commit_before>from datetime import datetime, timedelta import unittest from mycroft.skills.scheduled_skills import ScheduledSkill from mycroft.util.log import getLogger __author__ = 'eward' logger = getLogger(__name__) class ScheduledSkillTest(unittest.TestCase): skill = ScheduledSkill(name='ScheduledSkillTes...
e83df69d675eec01bf3253a2c7911cedb0c081af
tests/test_queryable.py
tests/test_queryable.py
from busbus.queryable import Queryable def test_queryable(): q = Queryable(xrange(10)).where(lambda x: x % 5 == 0) assert next(q) == 0 assert next(q) == 5
from busbus.queryable import Queryable from six.moves import range def test_queryable(): q = Queryable(range(10)).where(lambda x: x % 5 == 0) assert next(q) == 0 assert next(q) == 5
Fix basic test case for Queryable class in Python 3
Fix basic test case for Queryable class in Python 3
Python
mit
spaceboats/busbus
from busbus.queryable import Queryable def test_queryable(): q = Queryable(xrange(10)).where(lambda x: x % 5 == 0) assert next(q) == 0 assert next(q) == 5 Fix basic test case for Queryable class in Python 3
from busbus.queryable import Queryable from six.moves import range def test_queryable(): q = Queryable(range(10)).where(lambda x: x % 5 == 0) assert next(q) == 0 assert next(q) == 5
<commit_before>from busbus.queryable import Queryable def test_queryable(): q = Queryable(xrange(10)).where(lambda x: x % 5 == 0) assert next(q) == 0 assert next(q) == 5 <commit_msg>Fix basic test case for Queryable class in Python 3<commit_after>
from busbus.queryable import Queryable from six.moves import range def test_queryable(): q = Queryable(range(10)).where(lambda x: x % 5 == 0) assert next(q) == 0 assert next(q) == 5
from busbus.queryable import Queryable def test_queryable(): q = Queryable(xrange(10)).where(lambda x: x % 5 == 0) assert next(q) == 0 assert next(q) == 5 Fix basic test case for Queryable class in Python 3from busbus.queryable import Queryable from six.moves import range def test_queryable(): q = ...
<commit_before>from busbus.queryable import Queryable def test_queryable(): q = Queryable(xrange(10)).where(lambda x: x % 5 == 0) assert next(q) == 0 assert next(q) == 5 <commit_msg>Fix basic test case for Queryable class in Python 3<commit_after>from busbus.queryable import Queryable from six.moves impo...
c107f80ba57847b8d195a9abeffd3d14d3048fe6
numscons/__init__.py
numscons/__init__.py
# XXX those are needed by the scons command only... from core.misc import get_scons_path, get_scons_build_dir, \ get_scons_configres_dir, get_scons_configres_filename # XXX those should not be needed by the scons command only... from core.extension import get_python_inc, get_pythonlib_dir # Thos...
# XXX those are needed by the scons command only... from core.misc import get_scons_path, get_scons_build_dir, \ get_scons_configres_dir, get_scons_configres_filename from core.libinfo import get_paths as scons_get_paths # XXX those should not be needed by the scons command only... from core.exte...
Add more missing functions in numscons namespace
Add more missing functions in numscons namespace
Python
bsd-3-clause
cournape/numscons,cournape/numscons,cournape/numscons
# XXX those are needed by the scons command only... from core.misc import get_scons_path, get_scons_build_dir, \ get_scons_configres_dir, get_scons_configres_filename # XXX those should not be needed by the scons command only... from core.extension import get_python_inc, get_pythonlib_dir # Thos...
# XXX those are needed by the scons command only... from core.misc import get_scons_path, get_scons_build_dir, \ get_scons_configres_dir, get_scons_configres_filename from core.libinfo import get_paths as scons_get_paths # XXX those should not be needed by the scons command only... from core.exte...
<commit_before># XXX those are needed by the scons command only... from core.misc import get_scons_path, get_scons_build_dir, \ get_scons_configres_dir, get_scons_configres_filename # XXX those should not be needed by the scons command only... from core.extension import get_python_inc, get_python...
# XXX those are needed by the scons command only... from core.misc import get_scons_path, get_scons_build_dir, \ get_scons_configres_dir, get_scons_configres_filename from core.libinfo import get_paths as scons_get_paths # XXX those should not be needed by the scons command only... from core.exte...
# XXX those are needed by the scons command only... from core.misc import get_scons_path, get_scons_build_dir, \ get_scons_configres_dir, get_scons_configres_filename # XXX those should not be needed by the scons command only... from core.extension import get_python_inc, get_pythonlib_dir # Thos...
<commit_before># XXX those are needed by the scons command only... from core.misc import get_scons_path, get_scons_build_dir, \ get_scons_configres_dir, get_scons_configres_filename # XXX those should not be needed by the scons command only... from core.extension import get_python_inc, get_python...
de21f7802cf9124fc2bb15936d35710946deeb18
examples/asyncio/await.py
examples/asyncio/await.py
import asyncio from rx import Observable async def hello_world(): stream = Observable.just("Hello, world!") n = await stream print(n) loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close()
import asyncio from rx import Observable stream = Observable.just("Hello, world!") async def hello_world(): n = await stream print(n) loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close()
Move stream out of function
Move stream out of function
Python
mit
ReactiveX/RxPY,ReactiveX/RxPY
import asyncio from rx import Observable async def hello_world(): stream = Observable.just("Hello, world!") n = await stream print(n) loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close() Move stream out ...
import asyncio from rx import Observable stream = Observable.just("Hello, world!") async def hello_world(): n = await stream print(n) loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close()
<commit_before>import asyncio from rx import Observable async def hello_world(): stream = Observable.just("Hello, world!") n = await stream print(n) loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close() <...
import asyncio from rx import Observable stream = Observable.just("Hello, world!") async def hello_world(): n = await stream print(n) loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close()
import asyncio from rx import Observable async def hello_world(): stream = Observable.just("Hello, world!") n = await stream print(n) loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close() Move stream out ...
<commit_before>import asyncio from rx import Observable async def hello_world(): stream = Observable.just("Hello, world!") n = await stream print(n) loop = asyncio.get_event_loop() # Blocking call which returns when the hello_world() coroutine is done loop.run_until_complete(hello_world()) loop.close() <...
0232afac110e2cf9f841e861bd9622bcaf79616a
tensorbayes/distributions.py
tensorbayes/distributions.py
""" Assumes softplus activations for gaussian """ import tensorflow as tf import numpy as np def log_bernoulli(x, logits, eps=0.0, axis=-1): return log_bernoulli_with_logits(x, logits, eps, axis) def log_bernoulli_with_logits(x, logits, eps=0.0, axis=-1): if eps > 0.0: max_val = np.log(1.0 - eps) - np...
""" Assumes softplus activations for gaussian """ import tensorflow as tf import numpy as np def log_bernoulli(x, logits, eps=0.0, axis=-1): return log_bernoulli_with_logits(x, logits, eps, axis) def log_bernoulli_with_logits(x, logits, eps=0.0, axis=-1): if eps > 0.0: max_val = np.log(1.0 - eps) - np...
Add tf implementation of KL between normals
Add tf implementation of KL between normals
Python
mit
RuiShu/tensorbayes
""" Assumes softplus activations for gaussian """ import tensorflow as tf import numpy as np def log_bernoulli(x, logits, eps=0.0, axis=-1): return log_bernoulli_with_logits(x, logits, eps, axis) def log_bernoulli_with_logits(x, logits, eps=0.0, axis=-1): if eps > 0.0: max_val = np.log(1.0 - eps) - np...
""" Assumes softplus activations for gaussian """ import tensorflow as tf import numpy as np def log_bernoulli(x, logits, eps=0.0, axis=-1): return log_bernoulli_with_logits(x, logits, eps, axis) def log_bernoulli_with_logits(x, logits, eps=0.0, axis=-1): if eps > 0.0: max_val = np.log(1.0 - eps) - np...
<commit_before>""" Assumes softplus activations for gaussian """ import tensorflow as tf import numpy as np def log_bernoulli(x, logits, eps=0.0, axis=-1): return log_bernoulli_with_logits(x, logits, eps, axis) def log_bernoulli_with_logits(x, logits, eps=0.0, axis=-1): if eps > 0.0: max_val = np.log(...
""" Assumes softplus activations for gaussian """ import tensorflow as tf import numpy as np def log_bernoulli(x, logits, eps=0.0, axis=-1): return log_bernoulli_with_logits(x, logits, eps, axis) def log_bernoulli_with_logits(x, logits, eps=0.0, axis=-1): if eps > 0.0: max_val = np.log(1.0 - eps) - np...
""" Assumes softplus activations for gaussian """ import tensorflow as tf import numpy as np def log_bernoulli(x, logits, eps=0.0, axis=-1): return log_bernoulli_with_logits(x, logits, eps, axis) def log_bernoulli_with_logits(x, logits, eps=0.0, axis=-1): if eps > 0.0: max_val = np.log(1.0 - eps) - np...
<commit_before>""" Assumes softplus activations for gaussian """ import tensorflow as tf import numpy as np def log_bernoulli(x, logits, eps=0.0, axis=-1): return log_bernoulli_with_logits(x, logits, eps, axis) def log_bernoulli_with_logits(x, logits, eps=0.0, axis=-1): if eps > 0.0: max_val = np.log(...
8c7d1aa097c617ce72cff792a4e19c6168d92e07
source/champollion/__init__.py
source/champollion/__init__.py
# :coding: utf-8 import os from ._version import __version__ from directive import ( AutoDataDirective, AutoFunctionDirective, AutoClassDirective ) from viewcode import ( add_source_code_links, create_code_pages, create_missing_code_link ) import parser def parse_js_source(app): """Pars...
# :coding: utf-8 import os from ._version import __version__ from directive import ( AutoDataDirective, AutoFunctionDirective, AutoClassDirective ) from viewcode import ( add_source_code_links, create_code_pages, create_missing_code_link ) import parser def parse_js_source(app): """Pars...
Return version in app setup
Return version in app setup
Python
apache-2.0
buddly27/champollion
# :coding: utf-8 import os from ._version import __version__ from directive import ( AutoDataDirective, AutoFunctionDirective, AutoClassDirective ) from viewcode import ( add_source_code_links, create_code_pages, create_missing_code_link ) import parser def parse_js_source(app): """Pars...
# :coding: utf-8 import os from ._version import __version__ from directive import ( AutoDataDirective, AutoFunctionDirective, AutoClassDirective ) from viewcode import ( add_source_code_links, create_code_pages, create_missing_code_link ) import parser def parse_js_source(app): """Pars...
<commit_before># :coding: utf-8 import os from ._version import __version__ from directive import ( AutoDataDirective, AutoFunctionDirective, AutoClassDirective ) from viewcode import ( add_source_code_links, create_code_pages, create_missing_code_link ) import parser def parse_js_source(ap...
# :coding: utf-8 import os from ._version import __version__ from directive import ( AutoDataDirective, AutoFunctionDirective, AutoClassDirective ) from viewcode import ( add_source_code_links, create_code_pages, create_missing_code_link ) import parser def parse_js_source(app): """Pars...
# :coding: utf-8 import os from ._version import __version__ from directive import ( AutoDataDirective, AutoFunctionDirective, AutoClassDirective ) from viewcode import ( add_source_code_links, create_code_pages, create_missing_code_link ) import parser def parse_js_source(app): """Pars...
<commit_before># :coding: utf-8 import os from ._version import __version__ from directive import ( AutoDataDirective, AutoFunctionDirective, AutoClassDirective ) from viewcode import ( add_source_code_links, create_code_pages, create_missing_code_link ) import parser def parse_js_source(ap...
e0439addb7ab71a2af9b30457975bddded4e6020
web/setup.py
web/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages PACKAGE = "patlms-web" setup( name=PACKAGE, version=0.1, description='PAT LMS web server', author='Adam Chyła', author_email='[email protected]', license='GPLv3', url='https://github.com/chyla/pat-lms',...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages PACKAGE = "patlms-web" setup( name=PACKAGE, version=0.1, description='PAT LMS web server', author='Adam Chyła', author_email='[email protected]', license='GPLv3', url='https://github.com/chyla/pat-lms',...
Set Django to version 1.8.13 and add mock as dependency
Set Django to version 1.8.13 and add mock as dependency
Python
mit
chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas,chyla/pat-lms,chyla/slas,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/slas
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages PACKAGE = "patlms-web" setup( name=PACKAGE, version=0.1, description='PAT LMS web server', author='Adam Chyła', author_email='[email protected]', license='GPLv3', url='https://github.com/chyla/pat-lms',...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages PACKAGE = "patlms-web" setup( name=PACKAGE, version=0.1, description='PAT LMS web server', author='Adam Chyła', author_email='[email protected]', license='GPLv3', url='https://github.com/chyla/pat-lms',...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages PACKAGE = "patlms-web" setup( name=PACKAGE, version=0.1, description='PAT LMS web server', author='Adam Chyła', author_email='[email protected]', license='GPLv3', url='https://github.com/...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages PACKAGE = "patlms-web" setup( name=PACKAGE, version=0.1, description='PAT LMS web server', author='Adam Chyła', author_email='[email protected]', license='GPLv3', url='https://github.com/chyla/pat-lms',...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages PACKAGE = "patlms-web" setup( name=PACKAGE, version=0.1, description='PAT LMS web server', author='Adam Chyła', author_email='[email protected]', license='GPLv3', url='https://github.com/chyla/pat-lms',...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages PACKAGE = "patlms-web" setup( name=PACKAGE, version=0.1, description='PAT LMS web server', author='Adam Chyła', author_email='[email protected]', license='GPLv3', url='https://github.com/...
4ba390219d58d1726773e14928428f2c9495f6de
api/src/SearchApi.py
api/src/SearchApi.py
from apiclient.discovery import build import json # Set DEVELOPER_KEY to the API key value from the APIs & auth > Registered apps # tab of # https://cloud.google.com/console # Please ensure that you have enabled the YouTube Data API for your project. devKeyFile = open("search-api.key", "rb") DEVELOPER_KEY = devKeyF...
from apiclient.discovery import build import json # Set DEVELOPER_KEY to the API key value from the APIs & auth > Registered apps # tab of # https://cloud.google.com/console # Please ensure that you have enabled the YouTube Data API for your project. devKeyFile = open("search-api.key", "rb") DEVELOPER_KEY = devKeyF...
Update search api to produce results more consistant with those found on youtube
Update search api to produce results more consistant with those found on youtube
Python
mit
jghibiki/mopey,jghibiki/mopey,jghibiki/mopey,jghibiki/mopey,jghibiki/mopey
from apiclient.discovery import build import json # Set DEVELOPER_KEY to the API key value from the APIs & auth > Registered apps # tab of # https://cloud.google.com/console # Please ensure that you have enabled the YouTube Data API for your project. devKeyFile = open("search-api.key", "rb") DEVELOPER_KEY = devKeyF...
from apiclient.discovery import build import json # Set DEVELOPER_KEY to the API key value from the APIs & auth > Registered apps # tab of # https://cloud.google.com/console # Please ensure that you have enabled the YouTube Data API for your project. devKeyFile = open("search-api.key", "rb") DEVELOPER_KEY = devKeyF...
<commit_before>from apiclient.discovery import build import json # Set DEVELOPER_KEY to the API key value from the APIs & auth > Registered apps # tab of # https://cloud.google.com/console # Please ensure that you have enabled the YouTube Data API for your project. devKeyFile = open("search-api.key", "rb") DEVELOPE...
from apiclient.discovery import build import json # Set DEVELOPER_KEY to the API key value from the APIs & auth > Registered apps # tab of # https://cloud.google.com/console # Please ensure that you have enabled the YouTube Data API for your project. devKeyFile = open("search-api.key", "rb") DEVELOPER_KEY = devKeyF...
from apiclient.discovery import build import json # Set DEVELOPER_KEY to the API key value from the APIs & auth > Registered apps # tab of # https://cloud.google.com/console # Please ensure that you have enabled the YouTube Data API for your project. devKeyFile = open("search-api.key", "rb") DEVELOPER_KEY = devKeyF...
<commit_before>from apiclient.discovery import build import json # Set DEVELOPER_KEY to the API key value from the APIs & auth > Registered apps # tab of # https://cloud.google.com/console # Please ensure that you have enabled the YouTube Data API for your project. devKeyFile = open("search-api.key", "rb") DEVELOPE...
e1888771261878d576b05bab806e1abfdc1d25bb
ExpandVariables.py
ExpandVariables.py
import sublime, string, platform def expand_variables(the_dict, the_vars): return _expand_variables_recursive(the_dict, the_vars) def _expand_variables_recursive(the_dict, the_vars): for key, value in the_dict.items(): if isinstance(value, dict): value = expand_variables(value, the_vars) ...
import sublime, string, platform def expand_variables(the_dict, the_vars): the_vars['machine'] = platform.machine() the_vars['processor'] = platform.processor() return _expand_variables_recursive(the_dict, the_vars) def _expand_variables_recursive(the_dict, the_vars): for key, value in the_dict.items(...
Add extra vars "machine" and "processor" for the cmake dictionary.
Add extra vars "machine" and "processor" for the cmake dictionary.
Python
mit
rwols/CMakeBuilder
import sublime, string, platform def expand_variables(the_dict, the_vars): return _expand_variables_recursive(the_dict, the_vars) def _expand_variables_recursive(the_dict, the_vars): for key, value in the_dict.items(): if isinstance(value, dict): value = expand_variables(value, the_vars) ...
import sublime, string, platform def expand_variables(the_dict, the_vars): the_vars['machine'] = platform.machine() the_vars['processor'] = platform.processor() return _expand_variables_recursive(the_dict, the_vars) def _expand_variables_recursive(the_dict, the_vars): for key, value in the_dict.items(...
<commit_before>import sublime, string, platform def expand_variables(the_dict, the_vars): return _expand_variables_recursive(the_dict, the_vars) def _expand_variables_recursive(the_dict, the_vars): for key, value in the_dict.items(): if isinstance(value, dict): value = expand_variables(val...
import sublime, string, platform def expand_variables(the_dict, the_vars): the_vars['machine'] = platform.machine() the_vars['processor'] = platform.processor() return _expand_variables_recursive(the_dict, the_vars) def _expand_variables_recursive(the_dict, the_vars): for key, value in the_dict.items(...
import sublime, string, platform def expand_variables(the_dict, the_vars): return _expand_variables_recursive(the_dict, the_vars) def _expand_variables_recursive(the_dict, the_vars): for key, value in the_dict.items(): if isinstance(value, dict): value = expand_variables(value, the_vars) ...
<commit_before>import sublime, string, platform def expand_variables(the_dict, the_vars): return _expand_variables_recursive(the_dict, the_vars) def _expand_variables_recursive(the_dict, the_vars): for key, value in the_dict.items(): if isinstance(value, dict): value = expand_variables(val...
115ffb22128e12a0cc88b7c0cd1dd9bde04fb768
wagtail/utils/compat.py
wagtail/utils/compat.py
def get_related_model(rel): # In Django 1.7 and under, the related model is accessed by doing: rel.model # This was renamed in Django 1.8 to rel.related_model. rel.model now returns # the base model. return getattr(rel, 'related_model', rel.model)
import django def get_related_model(rel): # In Django 1.7 and under, the related model is accessed by doing: rel.model # This was renamed in Django 1.8 to rel.related_model. rel.model now returns # the base model. if django.VERSION >= (1, 8): return rel.related_model else: return r...
Check Django version instead of hasattr
Check Django version instead of hasattr
Python
bsd-3-clause
mixxorz/wagtail,taedori81/wagtail,FlipperPA/wagtail,mixxorz/wagtail,bjesus/wagtail,mjec/wagtail,stevenewey/wagtail,gasman/wagtail,hanpama/wagtail,thenewguy/wagtail,serzans/wagtail,kurtw/wagtail,Klaudit/wagtail,hamsterbacke23/wagtail,rv816/wagtail,Klaudit/wagtail,janusnic/wagtail,kurtrwall/wagtail,marctc/wagtail,rjsprox...
def get_related_model(rel): # In Django 1.7 and under, the related model is accessed by doing: rel.model # This was renamed in Django 1.8 to rel.related_model. rel.model now returns # the base model. return getattr(rel, 'related_model', rel.model) Check Django version instead of hasattr
import django def get_related_model(rel): # In Django 1.7 and under, the related model is accessed by doing: rel.model # This was renamed in Django 1.8 to rel.related_model. rel.model now returns # the base model. if django.VERSION >= (1, 8): return rel.related_model else: return r...
<commit_before>def get_related_model(rel): # In Django 1.7 and under, the related model is accessed by doing: rel.model # This was renamed in Django 1.8 to rel.related_model. rel.model now returns # the base model. return getattr(rel, 'related_model', rel.model) <commit_msg>Check Django version instead ...
import django def get_related_model(rel): # In Django 1.7 and under, the related model is accessed by doing: rel.model # This was renamed in Django 1.8 to rel.related_model. rel.model now returns # the base model. if django.VERSION >= (1, 8): return rel.related_model else: return r...
def get_related_model(rel): # In Django 1.7 and under, the related model is accessed by doing: rel.model # This was renamed in Django 1.8 to rel.related_model. rel.model now returns # the base model. return getattr(rel, 'related_model', rel.model) Check Django version instead of hasattrimport django d...
<commit_before>def get_related_model(rel): # In Django 1.7 and under, the related model is accessed by doing: rel.model # This was renamed in Django 1.8 to rel.related_model. rel.model now returns # the base model. return getattr(rel, 'related_model', rel.model) <commit_msg>Check Django version instead ...
eaf577b7a4aebc872cbf2b5674f9365faeec9cfb
template/module/__openerp__.py
template/module/__openerp__.py
# -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Module name", "summary": "Module summary", "version": "8.0.1.0.0", "category": "Uncategorized", "license": "AGPL-3", "website": "https://odoo-community.org/", "au...
# -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Module name", "summary": "Module summary", "version": "8.0.1.0.0", "category": "Uncategorized", "license": "AGPL-3", "website": "https://odoo-community.org/", "au...
Add real author to author key too.
Add real author to author key too.
Python
agpl-3.0
acsone/maintainers-tools,Endika/maintainer-tools,sambathkumarpi/maintainer-tools,dreispt/maintainer-tools,OCA/maintainer-tools,Yajo/maintainer-tools,Yajo/maintainer-tools,Vauxoo/maintainer-tools,vauxoo-dev/maintainer-tools,OCA/maintainer-tools,acsone/maintainer-tools,dreispt/maintainer-tools,tafaRU/maintainer-tools,Yaj...
# -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Module name", "summary": "Module summary", "version": "8.0.1.0.0", "category": "Uncategorized", "license": "AGPL-3", "website": "https://odoo-community.org/", "au...
# -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Module name", "summary": "Module summary", "version": "8.0.1.0.0", "category": "Uncategorized", "license": "AGPL-3", "website": "https://odoo-community.org/", "au...
<commit_before># -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Module name", "summary": "Module summary", "version": "8.0.1.0.0", "category": "Uncategorized", "license": "AGPL-3", "website": "https://odoo-community...
# -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Module name", "summary": "Module summary", "version": "8.0.1.0.0", "category": "Uncategorized", "license": "AGPL-3", "website": "https://odoo-community.org/", "au...
# -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Module name", "summary": "Module summary", "version": "8.0.1.0.0", "category": "Uncategorized", "license": "AGPL-3", "website": "https://odoo-community.org/", "au...
<commit_before># -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Module name", "summary": "Module summary", "version": "8.0.1.0.0", "category": "Uncategorized", "license": "AGPL-3", "website": "https://odoo-community...
db64ca09e57da414d92888de1b52fade810d855e
handlers/downloadMapHandler.py
handlers/downloadMapHandler.py
from helpers import requestHelper import requests import glob # Exception tracking import tornado.web import tornado.gen import sys import traceback from raven.contrib.tornado import SentryMixin MODULE_NAME = "direct_download" class handler(SentryMixin, requestHelper.asyncRequestHandler): """ Handler for /d/ """ ...
from helpers import requestHelper import requests import glob # Exception tracking import tornado.web import tornado.gen import sys import traceback from raven.contrib.tornado import SentryMixin MODULE_NAME = "direct_download" class handler(SentryMixin, requestHelper.asyncRequestHandler): """ Handler for /d/ """ ...
Add some headers in osu! direct download
Add some headers in osu! direct download
Python
agpl-3.0
osuripple/lets,osuripple/lets
from helpers import requestHelper import requests import glob # Exception tracking import tornado.web import tornado.gen import sys import traceback from raven.contrib.tornado import SentryMixin MODULE_NAME = "direct_download" class handler(SentryMixin, requestHelper.asyncRequestHandler): """ Handler for /d/ """ ...
from helpers import requestHelper import requests import glob # Exception tracking import tornado.web import tornado.gen import sys import traceback from raven.contrib.tornado import SentryMixin MODULE_NAME = "direct_download" class handler(SentryMixin, requestHelper.asyncRequestHandler): """ Handler for /d/ """ ...
<commit_before>from helpers import requestHelper import requests import glob # Exception tracking import tornado.web import tornado.gen import sys import traceback from raven.contrib.tornado import SentryMixin MODULE_NAME = "direct_download" class handler(SentryMixin, requestHelper.asyncRequestHandler): """ Handler...
from helpers import requestHelper import requests import glob # Exception tracking import tornado.web import tornado.gen import sys import traceback from raven.contrib.tornado import SentryMixin MODULE_NAME = "direct_download" class handler(SentryMixin, requestHelper.asyncRequestHandler): """ Handler for /d/ """ ...
from helpers import requestHelper import requests import glob # Exception tracking import tornado.web import tornado.gen import sys import traceback from raven.contrib.tornado import SentryMixin MODULE_NAME = "direct_download" class handler(SentryMixin, requestHelper.asyncRequestHandler): """ Handler for /d/ """ ...
<commit_before>from helpers import requestHelper import requests import glob # Exception tracking import tornado.web import tornado.gen import sys import traceback from raven.contrib.tornado import SentryMixin MODULE_NAME = "direct_download" class handler(SentryMixin, requestHelper.asyncRequestHandler): """ Handler...
03b55cad3839653cea62300eca80571541579d2b
dataviews/__init__.py
dataviews/__init__.py
import sys, os # Add param submodule to sys.path cwd = os.path.abspath(os.path.split(__file__)[0]) sys.path.insert(0, os.path.join(cwd, '..', 'param')) import param __version__ = param.Version(release=(0,7), fpath=__file__, commit="$Format:%h$", reponame='dataviews') from .views import *...
import sys, os # Add param submodule to sys.path cwd = os.path.abspath(os.path.split(__file__)[0]) sys.path.insert(0, os.path.join(cwd, '..', 'param')) import param __version__ = param.Version(release=(0,7), fpath=__file__, commit="$Format:%h$", reponame='dataviews') from .views import *...
Apply default style on import
Apply default style on import
Python
bsd-3-clause
vascotenner/holoviews,basnijholt/holoviews,vascotenner/holoviews,basnijholt/holoviews,mjabri/holoviews,mjabri/holoviews,ioam/holoviews,basnijholt/holoviews,mjabri/holoviews,ioam/holoviews,vascotenner/holoviews,ioam/holoviews
import sys, os # Add param submodule to sys.path cwd = os.path.abspath(os.path.split(__file__)[0]) sys.path.insert(0, os.path.join(cwd, '..', 'param')) import param __version__ = param.Version(release=(0,7), fpath=__file__, commit="$Format:%h$", reponame='dataviews') from .views import *...
import sys, os # Add param submodule to sys.path cwd = os.path.abspath(os.path.split(__file__)[0]) sys.path.insert(0, os.path.join(cwd, '..', 'param')) import param __version__ = param.Version(release=(0,7), fpath=__file__, commit="$Format:%h$", reponame='dataviews') from .views import *...
<commit_before>import sys, os # Add param submodule to sys.path cwd = os.path.abspath(os.path.split(__file__)[0]) sys.path.insert(0, os.path.join(cwd, '..', 'param')) import param __version__ = param.Version(release=(0,7), fpath=__file__, commit="$Format:%h$", reponame='dataviews') from ...
import sys, os # Add param submodule to sys.path cwd = os.path.abspath(os.path.split(__file__)[0]) sys.path.insert(0, os.path.join(cwd, '..', 'param')) import param __version__ = param.Version(release=(0,7), fpath=__file__, commit="$Format:%h$", reponame='dataviews') from .views import *...
import sys, os # Add param submodule to sys.path cwd = os.path.abspath(os.path.split(__file__)[0]) sys.path.insert(0, os.path.join(cwd, '..', 'param')) import param __version__ = param.Version(release=(0,7), fpath=__file__, commit="$Format:%h$", reponame='dataviews') from .views import *...
<commit_before>import sys, os # Add param submodule to sys.path cwd = os.path.abspath(os.path.split(__file__)[0]) sys.path.insert(0, os.path.join(cwd, '..', 'param')) import param __version__ = param.Version(release=(0,7), fpath=__file__, commit="$Format:%h$", reponame='dataviews') from ...
77122e472c3688f96e77b4f39e9767fed0fb53ae
generate_from_template.py
generate_from_template.py
#! /usr/bin/env python from __future__ import print_function import os.path import sys import json import uuid root = sys.path[0] template_path = os.path.join(root, 'templates', 'simple.json') with open(template_path) as template: oyster = json.load(template) new_id = str(uuid.uuid4()) new_filename = new_id + '....
#! /usr/bin/env python import os.path import sys import json import uuid root = sys.path[0] template_path = os.path.join(root, 'templates', 'simple.json') with open(template_path) as template: oyster = json.load(template) new_id = str(uuid.uuid4()) new_filename = new_id + '.json' new_filepath = os.path.join(root...
Make output terse and parseable.
Make output terse and parseable.
Python
mit
nbeaver/cmd-oysters,nbeaver/cmd-oysters
#! /usr/bin/env python from __future__ import print_function import os.path import sys import json import uuid root = sys.path[0] template_path = os.path.join(root, 'templates', 'simple.json') with open(template_path) as template: oyster = json.load(template) new_id = str(uuid.uuid4()) new_filename = new_id + '....
#! /usr/bin/env python import os.path import sys import json import uuid root = sys.path[0] template_path = os.path.join(root, 'templates', 'simple.json') with open(template_path) as template: oyster = json.load(template) new_id = str(uuid.uuid4()) new_filename = new_id + '.json' new_filepath = os.path.join(root...
<commit_before>#! /usr/bin/env python from __future__ import print_function import os.path import sys import json import uuid root = sys.path[0] template_path = os.path.join(root, 'templates', 'simple.json') with open(template_path) as template: oyster = json.load(template) new_id = str(uuid.uuid4()) new_filenam...
#! /usr/bin/env python import os.path import sys import json import uuid root = sys.path[0] template_path = os.path.join(root, 'templates', 'simple.json') with open(template_path) as template: oyster = json.load(template) new_id = str(uuid.uuid4()) new_filename = new_id + '.json' new_filepath = os.path.join(root...
#! /usr/bin/env python from __future__ import print_function import os.path import sys import json import uuid root = sys.path[0] template_path = os.path.join(root, 'templates', 'simple.json') with open(template_path) as template: oyster = json.load(template) new_id = str(uuid.uuid4()) new_filename = new_id + '....
<commit_before>#! /usr/bin/env python from __future__ import print_function import os.path import sys import json import uuid root = sys.path[0] template_path = os.path.join(root, 'templates', 'simple.json') with open(template_path) as template: oyster = json.load(template) new_id = str(uuid.uuid4()) new_filenam...
3eb84a69cf39d72bf0d8dcf7f61c50972aca1c07
parse.py
parse.py
#!/usr/bin/env python # # **THIS SCRIPT IS WRITTEN FOR PYTHON 3.** # """ Usage: python3.4 parse.py ELECTION_NAME PRECINCTS.csv WINEDS.txt OUTPUT.tsv Parses the given files and writes a new output file to stdout. The new output file is tab-delimited (.tsv). Tabs are used since some fields contain commas (e.g. "US Re...
#!/usr/bin/env python # # **THIS SCRIPT IS WRITTEN FOR PYTHON 3.4.** # """ Usage: python3.4 parse.py ELECTION_NAME PRECINCTS.csv WINEDS.txt OUTPUT.tsv Parses the given files and writes a new output file to stdout. The new output file is tab-delimited (.tsv). Tabs are used since some fields contain commas (e.g. "US ...
Switch to Python 3.4 wording.
Switch to Python 3.4 wording.
Python
bsd-3-clause
cjerdonek/wineds-converter
#!/usr/bin/env python # # **THIS SCRIPT IS WRITTEN FOR PYTHON 3.** # """ Usage: python3.4 parse.py ELECTION_NAME PRECINCTS.csv WINEDS.txt OUTPUT.tsv Parses the given files and writes a new output file to stdout. The new output file is tab-delimited (.tsv). Tabs are used since some fields contain commas (e.g. "US Re...
#!/usr/bin/env python # # **THIS SCRIPT IS WRITTEN FOR PYTHON 3.4.** # """ Usage: python3.4 parse.py ELECTION_NAME PRECINCTS.csv WINEDS.txt OUTPUT.tsv Parses the given files and writes a new output file to stdout. The new output file is tab-delimited (.tsv). Tabs are used since some fields contain commas (e.g. "US ...
<commit_before>#!/usr/bin/env python # # **THIS SCRIPT IS WRITTEN FOR PYTHON 3.** # """ Usage: python3.4 parse.py ELECTION_NAME PRECINCTS.csv WINEDS.txt OUTPUT.tsv Parses the given files and writes a new output file to stdout. The new output file is tab-delimited (.tsv). Tabs are used since some fields contain comm...
#!/usr/bin/env python # # **THIS SCRIPT IS WRITTEN FOR PYTHON 3.4.** # """ Usage: python3.4 parse.py ELECTION_NAME PRECINCTS.csv WINEDS.txt OUTPUT.tsv Parses the given files and writes a new output file to stdout. The new output file is tab-delimited (.tsv). Tabs are used since some fields contain commas (e.g. "US ...
#!/usr/bin/env python # # **THIS SCRIPT IS WRITTEN FOR PYTHON 3.** # """ Usage: python3.4 parse.py ELECTION_NAME PRECINCTS.csv WINEDS.txt OUTPUT.tsv Parses the given files and writes a new output file to stdout. The new output file is tab-delimited (.tsv). Tabs are used since some fields contain commas (e.g. "US Re...
<commit_before>#!/usr/bin/env python # # **THIS SCRIPT IS WRITTEN FOR PYTHON 3.** # """ Usage: python3.4 parse.py ELECTION_NAME PRECINCTS.csv WINEDS.txt OUTPUT.tsv Parses the given files and writes a new output file to stdout. The new output file is tab-delimited (.tsv). Tabs are used since some fields contain comm...
e26b0acb0d935348bcbc4e9e012cff3c9ecb353f
journal/tests/test_activity.py
journal/tests/test_activity.py
import datetime from django.test import TestCase from journal.models import Activity, Entry from journal.serializers import ActivitySerializer class ActivityTestCase(TestCase): """Sanity checks for activity""" def setUp(self): cat_e = Entry.objects.create(entry='I like walking the cat') Activ...
import datetime from django.test import TestCase from journal.models import Activity, Entry from journal.serializers import ActivitySerializer class ActivityTestCase(TestCase): """Sanity checks for activity""" def setUp(self): cat_e = Entry.objects.create(entry='I like walking the cat') Activ...
Fix Activity CSV field test
Fix Activity CSV field test
Python
apache-2.0
WildCAS/CASCategorization,WildCAS/CASCategorization,WildCAS/CASCategorization
import datetime from django.test import TestCase from journal.models import Activity, Entry from journal.serializers import ActivitySerializer class ActivityTestCase(TestCase): """Sanity checks for activity""" def setUp(self): cat_e = Entry.objects.create(entry='I like walking the cat') Activ...
import datetime from django.test import TestCase from journal.models import Activity, Entry from journal.serializers import ActivitySerializer class ActivityTestCase(TestCase): """Sanity checks for activity""" def setUp(self): cat_e = Entry.objects.create(entry='I like walking the cat') Activ...
<commit_before>import datetime from django.test import TestCase from journal.models import Activity, Entry from journal.serializers import ActivitySerializer class ActivityTestCase(TestCase): """Sanity checks for activity""" def setUp(self): cat_e = Entry.objects.create(entry='I like walking the cat'...
import datetime from django.test import TestCase from journal.models import Activity, Entry from journal.serializers import ActivitySerializer class ActivityTestCase(TestCase): """Sanity checks for activity""" def setUp(self): cat_e = Entry.objects.create(entry='I like walking the cat') Activ...
import datetime from django.test import TestCase from journal.models import Activity, Entry from journal.serializers import ActivitySerializer class ActivityTestCase(TestCase): """Sanity checks for activity""" def setUp(self): cat_e = Entry.objects.create(entry='I like walking the cat') Activ...
<commit_before>import datetime from django.test import TestCase from journal.models import Activity, Entry from journal.serializers import ActivitySerializer class ActivityTestCase(TestCase): """Sanity checks for activity""" def setUp(self): cat_e = Entry.objects.create(entry='I like walking the cat'...
54cdfe437c5382bde19f5d63086ce54c3d991e8b
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...
b04e7afbd56518ba0e825d70b11a0c88e2d6e29d
astm/tests/utils.py
astm/tests/utils.py
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # class DummyMixIn(object): _input_buffer = '' def flush(self): pass def close(sel...
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # class DummyMixIn(object): _input_buffer = '' addr = ('localhost', '15200') def flush(self...
Set dummy address info for tests.
Set dummy address info for tests.
Python
bsd-3-clause
asingla87/python-astm,andrexmd/python-astm,pombreda/python-astm,mhaulo/python-astm,MarcosHaenisch/python-astm,briankip/python-astm,kxepal/python-astm,123412345/python-astm,tinoshot/python-astm,eddiep1101/python-astm,LogicalKnight/python-astm,Iskander1b/python-astm,AlanZatarain/python-astm,kxepal/python-astm,tectronics/...
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # class DummyMixIn(object): _input_buffer = '' def flush(self): pass def close(sel...
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # class DummyMixIn(object): _input_buffer = '' addr = ('localhost', '15200') def flush(self...
<commit_before># -*- coding: utf-8 -*- # # Copyright (C) 2012 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # class DummyMixIn(object): _input_buffer = '' def flush(self): pass ...
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # class DummyMixIn(object): _input_buffer = '' addr = ('localhost', '15200') def flush(self...
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # class DummyMixIn(object): _input_buffer = '' def flush(self): pass def close(sel...
<commit_before># -*- coding: utf-8 -*- # # Copyright (C) 2012 Alexander Shorin # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. # class DummyMixIn(object): _input_buffer = '' def flush(self): pass ...
4cd96824e2903397751a738cd1736ad2809b6c04
cypher/cypher.py
cypher/cypher.py
import argparse from .util import identify parser = argparse.ArgumentParser( prog="cypher", description="A source code identification tool." ) parser.add_argument( "src", nargs=1, help="Path to unknown source code." ) parser.add_argument( "-v", "--verbose", action="store_true", help...
import argparse from .util import identify parser = argparse.ArgumentParser( prog="cypher", description="A source code identification tool." ) parser.add_argument( "src", nargs=1, help="Path to unknown source code." ) parser.add_argument( "-v", "--verbose", action="store_true", help...
Print "Language not recognized." on failure
Print "Language not recognized." on failure
Python
mit
jdkato/codetype,jdkato/codetype
import argparse from .util import identify parser = argparse.ArgumentParser( prog="cypher", description="A source code identification tool." ) parser.add_argument( "src", nargs=1, help="Path to unknown source code." ) parser.add_argument( "-v", "--verbose", action="store_true", help...
import argparse from .util import identify parser = argparse.ArgumentParser( prog="cypher", description="A source code identification tool." ) parser.add_argument( "src", nargs=1, help="Path to unknown source code." ) parser.add_argument( "-v", "--verbose", action="store_true", help...
<commit_before>import argparse from .util import identify parser = argparse.ArgumentParser( prog="cypher", description="A source code identification tool." ) parser.add_argument( "src", nargs=1, help="Path to unknown source code." ) parser.add_argument( "-v", "--verbose", action="store_...
import argparse from .util import identify parser = argparse.ArgumentParser( prog="cypher", description="A source code identification tool." ) parser.add_argument( "src", nargs=1, help="Path to unknown source code." ) parser.add_argument( "-v", "--verbose", action="store_true", help...
import argparse from .util import identify parser = argparse.ArgumentParser( prog="cypher", description="A source code identification tool." ) parser.add_argument( "src", nargs=1, help="Path to unknown source code." ) parser.add_argument( "-v", "--verbose", action="store_true", help...
<commit_before>import argparse from .util import identify parser = argparse.ArgumentParser( prog="cypher", description="A source code identification tool." ) parser.add_argument( "src", nargs=1, help="Path to unknown source code." ) parser.add_argument( "-v", "--verbose", action="store_...
b589fd212b8cbeeb64d41f0276c17278b9b4bba4
st2client/st2client/models/datastore.py
st2client/st2client/models/datastore.py
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
Fix it so it still works with a setter.
Fix it so it still works with a setter.
Python
apache-2.0
tonybaloney/st2,StackStorm/st2,StackStorm/st2,punalpatel/st2,punalpatel/st2,Plexxi/st2,Plexxi/st2,grengojbo/st2,pixelrebel/st2,pinterb/st2,pixelrebel/st2,dennybaa/st2,alfasin/st2,alfasin/st2,tonybaloney/st2,Itxaka/st2,nzlosh/st2,nzlosh/st2,armab/st2,pinterb/st2,peak6/st2,dennybaa/st2,jtopjian/st2,lakshmi-kannan/st2,ton...
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
<commit_before># Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you...
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
<commit_before># Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you...
bc7bf2a09fe430bb2048842626ecbb476bc6b40c
script/generate_amalgamation.py
script/generate_amalgamation.py
#!/usr/bin/env python import sys from os.path import basename, dirname, join import re INCLUDE_PATTERN = re.compile(r'^\s*#include "([\w.]+)"') seen_files = set() out = sys.stdout def add_file(filename): bname = basename(filename) # Only include each file at most once. if bname in seen_files: return see...
#!/usr/bin/env python import sys from os.path import basename, dirname, join import re INCLUDE_PATTERN = re.compile(r'^\s*#include "([\w.]+)"') WREN_DIR = dirname(dirname(realpath(__file__))) seen_files = set() out = sys.stdout # Prints a plain text file, adding comment markers. def add_comment_file(filename): wi...
Print LICENSE on top of the amalgamation
Print LICENSE on top of the amalgamation
Python
mit
Rohansi/wren,Nelarius/wren,minirop/wren,foresterre/wren,munificent/wren,Nave-Neel/wren,foresterre/wren,Nave-Neel/wren,Nelarius/wren,minirop/wren,Nelarius/wren,Nelarius/wren,foresterre/wren,foresterre/wren,bigdimboom/wren,minirop/wren,bigdimboom/wren,munificent/wren,Rohansi/wren,munificent/wren,bigdimboom/wren,munificen...
#!/usr/bin/env python import sys from os.path import basename, dirname, join import re INCLUDE_PATTERN = re.compile(r'^\s*#include "([\w.]+)"') seen_files = set() out = sys.stdout def add_file(filename): bname = basename(filename) # Only include each file at most once. if bname in seen_files: return see...
#!/usr/bin/env python import sys from os.path import basename, dirname, join import re INCLUDE_PATTERN = re.compile(r'^\s*#include "([\w.]+)"') WREN_DIR = dirname(dirname(realpath(__file__))) seen_files = set() out = sys.stdout # Prints a plain text file, adding comment markers. def add_comment_file(filename): wi...
<commit_before>#!/usr/bin/env python import sys from os.path import basename, dirname, join import re INCLUDE_PATTERN = re.compile(r'^\s*#include "([\w.]+)"') seen_files = set() out = sys.stdout def add_file(filename): bname = basename(filename) # Only include each file at most once. if bname in seen_files: ...
#!/usr/bin/env python import sys from os.path import basename, dirname, join import re INCLUDE_PATTERN = re.compile(r'^\s*#include "([\w.]+)"') WREN_DIR = dirname(dirname(realpath(__file__))) seen_files = set() out = sys.stdout # Prints a plain text file, adding comment markers. def add_comment_file(filename): wi...
#!/usr/bin/env python import sys from os.path import basename, dirname, join import re INCLUDE_PATTERN = re.compile(r'^\s*#include "([\w.]+)"') seen_files = set() out = sys.stdout def add_file(filename): bname = basename(filename) # Only include each file at most once. if bname in seen_files: return see...
<commit_before>#!/usr/bin/env python import sys from os.path import basename, dirname, join import re INCLUDE_PATTERN = re.compile(r'^\s*#include "([\w.]+)"') seen_files = set() out = sys.stdout def add_file(filename): bname = basename(filename) # Only include each file at most once. if bname in seen_files: ...
fc3589210e7244239acbc053d7788dc0cd264b88
app/models.py
app/models.py
from app import db class Sprinkler(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.Text(25)) status = db.Column(db.Text(25)) flow = db.Column(db.Integer) moisture = db.Column(db.Integer) def __init__(self, name, status, flow, moisture): self.name = name ...
from app import db class Sprinkler(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(25)) status = db.Column(db.String(25)) flow = db.Column(db.Integer) moisture = db.Column(db.Integer) def __init__(self, name, status, flow, moisture): self.name = name ...
Fix bug with SQLAlchemy, change TEXT to STRING
Fix bug with SQLAlchemy, change TEXT to STRING
Python
mit
jaredculp/sprinkler-flask-server,jaredculp/sprinkler-flask-server
from app import db class Sprinkler(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.Text(25)) status = db.Column(db.Text(25)) flow = db.Column(db.Integer) moisture = db.Column(db.Integer) def __init__(self, name, status, flow, moisture): self.name = name ...
from app import db class Sprinkler(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(25)) status = db.Column(db.String(25)) flow = db.Column(db.Integer) moisture = db.Column(db.Integer) def __init__(self, name, status, flow, moisture): self.name = name ...
<commit_before>from app import db class Sprinkler(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.Text(25)) status = db.Column(db.Text(25)) flow = db.Column(db.Integer) moisture = db.Column(db.Integer) def __init__(self, name, status, flow, moisture): self.n...
from app import db class Sprinkler(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(25)) status = db.Column(db.String(25)) flow = db.Column(db.Integer) moisture = db.Column(db.Integer) def __init__(self, name, status, flow, moisture): self.name = name ...
from app import db class Sprinkler(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.Text(25)) status = db.Column(db.Text(25)) flow = db.Column(db.Integer) moisture = db.Column(db.Integer) def __init__(self, name, status, flow, moisture): self.name = name ...
<commit_before>from app import db class Sprinkler(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.Text(25)) status = db.Column(db.Text(25)) flow = db.Column(db.Integer) moisture = db.Column(db.Integer) def __init__(self, name, status, flow, moisture): self.n...
4c949cd171d50211ec8ebb95be423293ccb6f917
blog/admin.py
blog/admin.py
from django.contrib import admin from .models import Post @admin.register(Post) class PostAdmin(admin.ModelAdmin): # list view date_hierarchy = 'pub_date' list_display = ( 'title', 'pub_date', 'tag_count') list_filter = ('pub_date',) search_fields = ('title', 'text') # form view f...
from django.contrib import admin from django.db.models import Count from .models import Post @admin.register(Post) class PostAdmin(admin.ModelAdmin): # list view date_hierarchy = 'pub_date' list_display = ( 'title', 'pub_date', 'tag_count') list_filter = ('pub_date',) search_fields = ('ti...
Enable sorting of number of Post tags.
Ch23: Enable sorting of number of Post tags.
Python
bsd-2-clause
jambonrose/DjangoUnleashed-1.8,jambonrose/DjangoUnleashed-1.8
from django.contrib import admin from .models import Post @admin.register(Post) class PostAdmin(admin.ModelAdmin): # list view date_hierarchy = 'pub_date' list_display = ( 'title', 'pub_date', 'tag_count') list_filter = ('pub_date',) search_fields = ('title', 'text') # form view f...
from django.contrib import admin from django.db.models import Count from .models import Post @admin.register(Post) class PostAdmin(admin.ModelAdmin): # list view date_hierarchy = 'pub_date' list_display = ( 'title', 'pub_date', 'tag_count') list_filter = ('pub_date',) search_fields = ('ti...
<commit_before>from django.contrib import admin from .models import Post @admin.register(Post) class PostAdmin(admin.ModelAdmin): # list view date_hierarchy = 'pub_date' list_display = ( 'title', 'pub_date', 'tag_count') list_filter = ('pub_date',) search_fields = ('title', 'text') # ...
from django.contrib import admin from django.db.models import Count from .models import Post @admin.register(Post) class PostAdmin(admin.ModelAdmin): # list view date_hierarchy = 'pub_date' list_display = ( 'title', 'pub_date', 'tag_count') list_filter = ('pub_date',) search_fields = ('ti...
from django.contrib import admin from .models import Post @admin.register(Post) class PostAdmin(admin.ModelAdmin): # list view date_hierarchy = 'pub_date' list_display = ( 'title', 'pub_date', 'tag_count') list_filter = ('pub_date',) search_fields = ('title', 'text') # form view f...
<commit_before>from django.contrib import admin from .models import Post @admin.register(Post) class PostAdmin(admin.ModelAdmin): # list view date_hierarchy = 'pub_date' list_display = ( 'title', 'pub_date', 'tag_count') list_filter = ('pub_date',) search_fields = ('title', 'text') # ...
072d1cd283794fe0e6471237d818504168de4695
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-paginationlinks', version='0.1', description='Django Pagination Links', long_description=open('README.rst').read(), url='https://github.com/blancltd/django-paginationlinks', maintainer='Alex Tomkins', main...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-paginationlinks', version='0.1', description='Django Pagination Links', long_description=readme, url='https://github.co...
Fix problems with UTF-8 README.rst
Fix problems with UTF-8 README.rst
Python
bsd-3-clause
blancltd/django-paginationlinks
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-paginationlinks', version='0.1', description='Django Pagination Links', long_description=open('README.rst').read(), url='https://github.com/blancltd/django-paginationlinks', maintainer='Alex Tomkins', main...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-paginationlinks', version='0.1', description='Django Pagination Links', long_description=readme, url='https://github.co...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-paginationlinks', version='0.1', description='Django Pagination Links', long_description=open('README.rst').read(), url='https://github.com/blancltd/django-paginationlinks', maintainer='Alex Tom...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-paginationlinks', version='0.1', description='Django Pagination Links', long_description=readme, url='https://github.co...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-paginationlinks', version='0.1', description='Django Pagination Links', long_description=open('README.rst').read(), url='https://github.com/blancltd/django-paginationlinks', maintainer='Alex Tomkins', main...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-paginationlinks', version='0.1', description='Django Pagination Links', long_description=open('README.rst').read(), url='https://github.com/blancltd/django-paginationlinks', maintainer='Alex Tom...
49fa2f7d94a0da3957764280ee8697a867bcd1ec
setup.py
setup.py
from setuptools import setup setup( name = 'sphinx-csharp', version = '0.1.0', author = 'djungelorm', author_email = '[email protected]', packages = ['sphinx_csharp'], url = 'https://github.com/djungelorm/sphinx-csharp', license = 'MIT', description = 'C# domain for Sp...
from setuptools import setup setup( name = 'sphinx-csharp', version = '0.1.0', author = 'djungelorm', author_email = '[email protected]', packages = ['sphinx_csharp'], url = 'https://github.com/djungelorm/sphinx-csharp', license = 'MIT', description = 'C# domain for Sp...
Remove python 3.2 from trove classifiers
Remove python 3.2 from trove classifiers
Python
mit
djungelorm/sphinx-csharp
from setuptools import setup setup( name = 'sphinx-csharp', version = '0.1.0', author = 'djungelorm', author_email = '[email protected]', packages = ['sphinx_csharp'], url = 'https://github.com/djungelorm/sphinx-csharp', license = 'MIT', description = 'C# domain for Sp...
from setuptools import setup setup( name = 'sphinx-csharp', version = '0.1.0', author = 'djungelorm', author_email = '[email protected]', packages = ['sphinx_csharp'], url = 'https://github.com/djungelorm/sphinx-csharp', license = 'MIT', description = 'C# domain for Sp...
<commit_before>from setuptools import setup setup( name = 'sphinx-csharp', version = '0.1.0', author = 'djungelorm', author_email = '[email protected]', packages = ['sphinx_csharp'], url = 'https://github.com/djungelorm/sphinx-csharp', license = 'MIT', description = 'C...
from setuptools import setup setup( name = 'sphinx-csharp', version = '0.1.0', author = 'djungelorm', author_email = '[email protected]', packages = ['sphinx_csharp'], url = 'https://github.com/djungelorm/sphinx-csharp', license = 'MIT', description = 'C# domain for Sp...
from setuptools import setup setup( name = 'sphinx-csharp', version = '0.1.0', author = 'djungelorm', author_email = '[email protected]', packages = ['sphinx_csharp'], url = 'https://github.com/djungelorm/sphinx-csharp', license = 'MIT', description = 'C# domain for Sp...
<commit_before>from setuptools import setup setup( name = 'sphinx-csharp', version = '0.1.0', author = 'djungelorm', author_email = '[email protected]', packages = ['sphinx_csharp'], url = 'https://github.com/djungelorm/sphinx-csharp', license = 'MIT', description = 'C...
661040496ebb67cb0f8d8e49d734cfa96f14b0c4
setup.py
setup.py
from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
import os, glob, string, shutil from distutils.core import setup # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
Test edit - to check svn email hook
Test edit - to check svn email hook
Python
bsd-3-clause
bthirion/nipy,alexis-roche/nireg,alexis-roche/niseg,arokem/nipy,alexis-roche/nipy,bthirion/nipy,bthirion/nipy,arokem/nipy,nipy/nireg,alexis-roche/nipy,arokem/nipy,bthirion/nipy,alexis-roche/nipy,nipy/nipy-labs,alexis-roche/nireg,alexis-roche/niseg,alexis-roche/register,nipy/nireg,nipy/nipy-labs,alexis-roche/register,al...
from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
import os, glob, string, shutil from distutils.core import setup # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
<commit_before>from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging....
import os, glob, string, shutil from distutils.core import setup # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
<commit_before>from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging....
fad6bf214e3b148fc37a154ccf2f56f347e686a4
setup.py
setup.py
# coding=utf-8 from distutils.core import setup __version__ = 'unknown' with open('po_localization/version.py') as version_file: exec(version_file.read()) setup( name='po_localization', packages=['po_localization'], version=__version__, description='Localize Django applications without compiling ...
# coding=utf-8 from distutils.core import setup __version__ = 'unknown' with open('po_localization/version.py') as version_file: exec(version_file.read()) setup( name='po_localization', packages=['po_localization', 'po_localization.tests'], version=__version__, description='Localize Django applic...
Install tests along with the rest of the code
Install tests along with the rest of the code
Python
mit
kmichel/po-localization
# coding=utf-8 from distutils.core import setup __version__ = 'unknown' with open('po_localization/version.py') as version_file: exec(version_file.read()) setup( name='po_localization', packages=['po_localization'], version=__version__, description='Localize Django applications without compiling ...
# coding=utf-8 from distutils.core import setup __version__ = 'unknown' with open('po_localization/version.py') as version_file: exec(version_file.read()) setup( name='po_localization', packages=['po_localization', 'po_localization.tests'], version=__version__, description='Localize Django applic...
<commit_before># coding=utf-8 from distutils.core import setup __version__ = 'unknown' with open('po_localization/version.py') as version_file: exec(version_file.read()) setup( name='po_localization', packages=['po_localization'], version=__version__, description='Localize Django applications wit...
# coding=utf-8 from distutils.core import setup __version__ = 'unknown' with open('po_localization/version.py') as version_file: exec(version_file.read()) setup( name='po_localization', packages=['po_localization', 'po_localization.tests'], version=__version__, description='Localize Django applic...
# coding=utf-8 from distutils.core import setup __version__ = 'unknown' with open('po_localization/version.py') as version_file: exec(version_file.read()) setup( name='po_localization', packages=['po_localization'], version=__version__, description='Localize Django applications without compiling ...
<commit_before># coding=utf-8 from distutils.core import setup __version__ = 'unknown' with open('po_localization/version.py') as version_file: exec(version_file.read()) setup( name='po_localization', packages=['po_localization'], version=__version__, description='Localize Django applications wit...
26220ab6aa96b796a1250def81ae701dc8cf5a49
setup.py
setup.py
from os.path import dirname, abspath, join, exists from setuptools import setup long_description = None if exists("README.md"): long_description = open("README.md").read() setup( name="mpegdash", packages=["mpegdash"], description="MPEG-DASH MPD(Media Presentation Description) Parser", long_description=lo...
from os.path import dirname, abspath, join, exists from setuptools import setup long_description = None if exists("README.md"): long_description = open("README.md").read() setup( name="mpegdash", packages=["mpegdash"], description="MPEG-DASH MPD(Media Presentation Description) Parser", long_description=lo...
Set release version to 0.2.0
Set release version to 0.2.0 change repository for maintenance
Python
mit
caststack/python-mpd-parser,supercast-tv/python-mpd-parser
from os.path import dirname, abspath, join, exists from setuptools import setup long_description = None if exists("README.md"): long_description = open("README.md").read() setup( name="mpegdash", packages=["mpegdash"], description="MPEG-DASH MPD(Media Presentation Description) Parser", long_description=lo...
from os.path import dirname, abspath, join, exists from setuptools import setup long_description = None if exists("README.md"): long_description = open("README.md").read() setup( name="mpegdash", packages=["mpegdash"], description="MPEG-DASH MPD(Media Presentation Description) Parser", long_description=lo...
<commit_before>from os.path import dirname, abspath, join, exists from setuptools import setup long_description = None if exists("README.md"): long_description = open("README.md").read() setup( name="mpegdash", packages=["mpegdash"], description="MPEG-DASH MPD(Media Presentation Description) Parser", long...
from os.path import dirname, abspath, join, exists from setuptools import setup long_description = None if exists("README.md"): long_description = open("README.md").read() setup( name="mpegdash", packages=["mpegdash"], description="MPEG-DASH MPD(Media Presentation Description) Parser", long_description=lo...
from os.path import dirname, abspath, join, exists from setuptools import setup long_description = None if exists("README.md"): long_description = open("README.md").read() setup( name="mpegdash", packages=["mpegdash"], description="MPEG-DASH MPD(Media Presentation Description) Parser", long_description=lo...
<commit_before>from os.path import dirname, abspath, join, exists from setuptools import setup long_description = None if exists("README.md"): long_description = open("README.md").read() setup( name="mpegdash", packages=["mpegdash"], description="MPEG-DASH MPD(Media Presentation Description) Parser", long...
319ccff1aa72185e5c02c8094bd1ce5118d94ccd
setup.py
setup.py
"""Installation script for proselint.""" from setuptools import setup setup( name='proselint', version='0.1', description='Making your writing better', url='http://github.com/suchow/proselint', author='Jordan Suchow', author_email='[email protected]', license='MIT', packages=['pr...
"""Installation script for proselint.""" from setuptools import setup setup( name='proselint', version='0.1', description='Making your writing better', url='http://github.com/suchow/proselint', author='Jordan Suchow', author_email='[email protected]', license='MIT', packages=[ ...
Improve importing for install mode
Improve importing for install mode
Python
bsd-3-clause
amperser/proselint,amperser/proselint,amperser/proselint,amperser/proselint,amperser/proselint,jstewmon/proselint,jstewmon/proselint,jstewmon/proselint
"""Installation script for proselint.""" from setuptools import setup setup( name='proselint', version='0.1', description='Making your writing better', url='http://github.com/suchow/proselint', author='Jordan Suchow', author_email='[email protected]', license='MIT', packages=['pr...
"""Installation script for proselint.""" from setuptools import setup setup( name='proselint', version='0.1', description='Making your writing better', url='http://github.com/suchow/proselint', author='Jordan Suchow', author_email='[email protected]', license='MIT', packages=[ ...
<commit_before>"""Installation script for proselint.""" from setuptools import setup setup( name='proselint', version='0.1', description='Making your writing better', url='http://github.com/suchow/proselint', author='Jordan Suchow', author_email='[email protected]', license='MIT', ...
"""Installation script for proselint.""" from setuptools import setup setup( name='proselint', version='0.1', description='Making your writing better', url='http://github.com/suchow/proselint', author='Jordan Suchow', author_email='[email protected]', license='MIT', packages=[ ...
"""Installation script for proselint.""" from setuptools import setup setup( name='proselint', version='0.1', description='Making your writing better', url='http://github.com/suchow/proselint', author='Jordan Suchow', author_email='[email protected]', license='MIT', packages=['pr...
<commit_before>"""Installation script for proselint.""" from setuptools import setup setup( name='proselint', version='0.1', description='Making your writing better', url='http://github.com/suchow/proselint', author='Jordan Suchow', author_email='[email protected]', license='MIT', ...
6611fa93e3d534d9ccd3e954d07d1b12e170b3ff
setup.py
setup.py
#!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import setuptools with open('README.txt') as readme: long_description = readme.read() with open('CHANGES.txt') as changes: long_description += '\n\n' + changes.read() setup_params = dict( name='jaraco.timing', use_hg...
#!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import setuptools with open('README.txt') as readme: long_description = readme.read() with open('CHANGES.txt') as changes: long_description += '\n\n' + changes.read() setup_params = dict( name='jaraco.timing', use_hg...
Make explicit that the project is released under the MIT license.
Make explicit that the project is released under the MIT license.
Python
mit
jaraco/tempora
#!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import setuptools with open('README.txt') as readme: long_description = readme.read() with open('CHANGES.txt') as changes: long_description += '\n\n' + changes.read() setup_params = dict( name='jaraco.timing', use_hg...
#!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import setuptools with open('README.txt') as readme: long_description = readme.read() with open('CHANGES.txt') as changes: long_description += '\n\n' + changes.read() setup_params = dict( name='jaraco.timing', use_hg...
<commit_before>#!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import setuptools with open('README.txt') as readme: long_description = readme.read() with open('CHANGES.txt') as changes: long_description += '\n\n' + changes.read() setup_params = dict( name='jaraco.t...
#!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import setuptools with open('README.txt') as readme: long_description = readme.read() with open('CHANGES.txt') as changes: long_description += '\n\n' + changes.read() setup_params = dict( name='jaraco.timing', use_hg...
#!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import setuptools with open('README.txt') as readme: long_description = readme.read() with open('CHANGES.txt') as changes: long_description += '\n\n' + changes.read() setup_params = dict( name='jaraco.timing', use_hg...
<commit_before>#!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import setuptools with open('README.txt') as readme: long_description = readme.read() with open('CHANGES.txt') as changes: long_description += '\n\n' + changes.read() setup_params = dict( name='jaraco.t...
9100a0a1106ef4419c9b6a25898b83f80afbaecf
setup.py
setup.py
from setuptools import setup, find_packages setup( name='zeit.wysiwyg', version='2.0.8.dev0', author='gocept, Zeit Online', author_email='[email protected]', url='http://www.zeit.de/', description="vivi legacy WYSIWYG editor", packages=find_packages('src'), package_dir={'': 'src'}, ...
from setuptools import setup, find_packages setup( name='zeit.wysiwyg', version='2.0.8.dev0', author='gocept, Zeit Online', author_email='[email protected]', url='http://www.zeit.de/', description="vivi legacy WYSIWYG editor", packages=find_packages('src'), package_dir={'': 'src'}, ...
Update to version with celery.
ZON-3409: Update to version with celery.
Python
bsd-3-clause
ZeitOnline/zeit.wysiwyg,ZeitOnline/zeit.wysiwyg
from setuptools import setup, find_packages setup( name='zeit.wysiwyg', version='2.0.8.dev0', author='gocept, Zeit Online', author_email='[email protected]', url='http://www.zeit.de/', description="vivi legacy WYSIWYG editor", packages=find_packages('src'), package_dir={'': 'src'}, ...
from setuptools import setup, find_packages setup( name='zeit.wysiwyg', version='2.0.8.dev0', author='gocept, Zeit Online', author_email='[email protected]', url='http://www.zeit.de/', description="vivi legacy WYSIWYG editor", packages=find_packages('src'), package_dir={'': 'src'}, ...
<commit_before>from setuptools import setup, find_packages setup( name='zeit.wysiwyg', version='2.0.8.dev0', author='gocept, Zeit Online', author_email='[email protected]', url='http://www.zeit.de/', description="vivi legacy WYSIWYG editor", packages=find_packages('src'), package_dir...
from setuptools import setup, find_packages setup( name='zeit.wysiwyg', version='2.0.8.dev0', author='gocept, Zeit Online', author_email='[email protected]', url='http://www.zeit.de/', description="vivi legacy WYSIWYG editor", packages=find_packages('src'), package_dir={'': 'src'}, ...
from setuptools import setup, find_packages setup( name='zeit.wysiwyg', version='2.0.8.dev0', author='gocept, Zeit Online', author_email='[email protected]', url='http://www.zeit.de/', description="vivi legacy WYSIWYG editor", packages=find_packages('src'), package_dir={'': 'src'}, ...
<commit_before>from setuptools import setup, find_packages setup( name='zeit.wysiwyg', version='2.0.8.dev0', author='gocept, Zeit Online', author_email='[email protected]', url='http://www.zeit.de/', description="vivi legacy WYSIWYG editor", packages=find_packages('src'), package_dir...
7d214c5b9d013c95547d07aed79d02e454abee5d
setup.py
setup.py
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-validation', version='0.3.0', description=( 'A Python package for validating data with pandas'), long_description=open( join(dirname(__file__), 'README.rst'), encoding='utf-8').read(), ...
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-validation', version='0.3.1', description=( 'A Python package for validating data with pandas'), long_description=open( join(dirname(__file__), 'README.rst'), encoding='utf-8').read(), ...
Update release version to 0.3.1
Update release version to 0.3.1
Python
mit
jmenglund/pandas-validation
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-validation', version='0.3.0', description=( 'A Python package for validating data with pandas'), long_description=open( join(dirname(__file__), 'README.rst'), encoding='utf-8').read(), ...
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-validation', version='0.3.1', description=( 'A Python package for validating data with pandas'), long_description=open( join(dirname(__file__), 'README.rst'), encoding='utf-8').read(), ...
<commit_before>from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-validation', version='0.3.0', description=( 'A Python package for validating data with pandas'), long_description=open( join(dirname(__file__), 'README.rst'), encoding='utf-...
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-validation', version='0.3.1', description=( 'A Python package for validating data with pandas'), long_description=open( join(dirname(__file__), 'README.rst'), encoding='utf-8').read(), ...
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-validation', version='0.3.0', description=( 'A Python package for validating data with pandas'), long_description=open( join(dirname(__file__), 'README.rst'), encoding='utf-8').read(), ...
<commit_before>from setuptools import setup, find_packages from os.path import join, dirname setup( name='pandas-validation', version='0.3.0', description=( 'A Python package for validating data with pandas'), long_description=open( join(dirname(__file__), 'README.rst'), encoding='utf-...
22476ba2fcdded7e3ee7d3f1ed323229d9a308ce
setup.py
setup.py
try: from setuptools import setup from setuptools.extension import Extension except ImportError: from distutils.core import setup, Extension def main(): module = Extension('rrdtool', sources=['rrdtoolmodule.c'], include_dirs=['/usr/local/include'], ...
try: from setuptools import setup from setuptools.extension import Extension except ImportError: from distutils.core import setup, Extension def main(): module = Extension('rrdtool', sources=['rrdtoolmodule.h', 'rrdtoolmodule.c'], include_dirs=['/usr/local...
Add missing header file to the list of sources
Add missing header file to the list of sources
Python
lgpl-2.1
commx/python-rrdtool,commx/python-rrdtool
try: from setuptools import setup from setuptools.extension import Extension except ImportError: from distutils.core import setup, Extension def main(): module = Extension('rrdtool', sources=['rrdtoolmodule.c'], include_dirs=['/usr/local/include'], ...
try: from setuptools import setup from setuptools.extension import Extension except ImportError: from distutils.core import setup, Extension def main(): module = Extension('rrdtool', sources=['rrdtoolmodule.h', 'rrdtoolmodule.c'], include_dirs=['/usr/local...
<commit_before>try: from setuptools import setup from setuptools.extension import Extension except ImportError: from distutils.core import setup, Extension def main(): module = Extension('rrdtool', sources=['rrdtoolmodule.c'], include_dirs=['/usr/local/inc...
try: from setuptools import setup from setuptools.extension import Extension except ImportError: from distutils.core import setup, Extension def main(): module = Extension('rrdtool', sources=['rrdtoolmodule.h', 'rrdtoolmodule.c'], include_dirs=['/usr/local...
try: from setuptools import setup from setuptools.extension import Extension except ImportError: from distutils.core import setup, Extension def main(): module = Extension('rrdtool', sources=['rrdtoolmodule.c'], include_dirs=['/usr/local/include'], ...
<commit_before>try: from setuptools import setup from setuptools.extension import Extension except ImportError: from distutils.core import setup, Extension def main(): module = Extension('rrdtool', sources=['rrdtoolmodule.c'], include_dirs=['/usr/local/inc...
3010973a9afc53842ee0f145a156b2083425cc2f
setup.py
setup.py
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-etesync-journal',...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-etesync-journal',...
Set the description's content type.
Set the description's content type.
Python
agpl-3.0
etesync/journal-manager
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-etesync-journal',...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-etesync-journal',...
<commit_before>import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-et...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-etesync-journal',...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-etesync-journal',...
<commit_before>import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-et...
20c44c97bb79e69ed91a125b9e550ebd29818a64
setup.py
setup.py
from setuptools import setup, find_packages requirements = [ 'boto>=2.8.0,<3.0', ] setup( name='celery-s3', version='0.1', description='An S3 result store backend for Celery', long_description=open('README.md').read(), author='Rob Golding', author_email='[email protected]', license='B...
from setuptools import setup, find_packages requirements = [ 'boto>=2.8.0,<3.0', ] setup( name='celery-s3', version='0.1', description='An S3 result store backend for Celery', long_description=open('README.md').read(), author='Rob Golding', author_email='[email protected]', license='B...
Add python compatibility tags for 2.7 and 3.6
Add python compatibility tags for 2.7 and 3.6
Python
bsd-3-clause
robgolding63/celery-s3,robgolding/celery-s3
from setuptools import setup, find_packages requirements = [ 'boto>=2.8.0,<3.0', ] setup( name='celery-s3', version='0.1', description='An S3 result store backend for Celery', long_description=open('README.md').read(), author='Rob Golding', author_email='[email protected]', license='B...
from setuptools import setup, find_packages requirements = [ 'boto>=2.8.0,<3.0', ] setup( name='celery-s3', version='0.1', description='An S3 result store backend for Celery', long_description=open('README.md').read(), author='Rob Golding', author_email='[email protected]', license='B...
<commit_before>from setuptools import setup, find_packages requirements = [ 'boto>=2.8.0,<3.0', ] setup( name='celery-s3', version='0.1', description='An S3 result store backend for Celery', long_description=open('README.md').read(), author='Rob Golding', author_email='[email protected]',...
from setuptools import setup, find_packages requirements = [ 'boto>=2.8.0,<3.0', ] setup( name='celery-s3', version='0.1', description='An S3 result store backend for Celery', long_description=open('README.md').read(), author='Rob Golding', author_email='[email protected]', license='B...
from setuptools import setup, find_packages requirements = [ 'boto>=2.8.0,<3.0', ] setup( name='celery-s3', version='0.1', description='An S3 result store backend for Celery', long_description=open('README.md').read(), author='Rob Golding', author_email='[email protected]', license='B...
<commit_before>from setuptools import setup, find_packages requirements = [ 'boto>=2.8.0,<3.0', ] setup( name='celery-s3', version='0.1', description='An S3 result store backend for Celery', long_description=open('README.md').read(), author='Rob Golding', author_email='[email protected]',...
83fda990174df238496b833f13c8dab32ee19f05
setup.py
setup.py
from setuptools import setup setup( name='tangled', version='0.1a8.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
from setuptools import setup setup( name='tangled', version='0.1a8.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
Upgrade pyflakes from 0.7.3 to 0.8
Upgrade pyflakes from 0.7.3 to 0.8
Python
mit
TangledWeb/tangled
from setuptools import setup setup( name='tangled', version='0.1a8.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
from setuptools import setup setup( name='tangled', version='0.1a8.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
<commit_before>from setuptools import setup setup( name='tangled', version='0.1a8.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt B...
from setuptools import setup setup( name='tangled', version='0.1a8.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
from setuptools import setup setup( name='tangled', version='0.1a8.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
<commit_before>from setuptools import setup setup( name='tangled', version='0.1a8.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt B...
7e8f5707a864e5ee115b46384b6206cc87dffe72
setup.py
setup.py
#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.4" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen", author_e...
#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.4" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen", author_e...
Add css and img files to bdist
Add css and img files to bdist
Python
bsd-3-clause
jait/tupelo
#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.4" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen", author_e...
#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.4" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen", author_e...
<commit_before>#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.4" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen...
#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.4" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen", author_e...
#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.4" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen", author_e...
<commit_before>#!/usr/bin/env python # vim: set sts=4 sw=4 et: try: from setuptools import setup except ImportError: from distutils.core import setup VERSION = "0.0.4" setup (name = "tupelo", description = "Random code around a card game called Tuppi", version = VERSION, author = "Jari Tenhunen...
eccc88e8fc336b18348b3f7369a538fcc7d07c1a
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='upcloud-api', version='0.4.5', description='UpCloud API Client', author='Elias Nygren', maintainer='Mika Lackman', maintainer_email='[email protected]', url='https://github.com/UpCloudLtd/upcloud-python-api', packag...
#!/usr/bin/env python from setuptools import setup setup( name='upcloud-api', version='0.4.5', description='UpCloud API Client', author='Elias Nygren', maintainer='Mika Lackman', maintainer_email='[email protected]', url='https://github.com/UpCloudLtd/upcloud-python-api', packag...
Correct parameter name is download_url.
Correct parameter name is download_url.
Python
mit
UpCloudLtd/upcloud-python-api
#!/usr/bin/env python from setuptools import setup setup( name='upcloud-api', version='0.4.5', description='UpCloud API Client', author='Elias Nygren', maintainer='Mika Lackman', maintainer_email='[email protected]', url='https://github.com/UpCloudLtd/upcloud-python-api', packag...
#!/usr/bin/env python from setuptools import setup setup( name='upcloud-api', version='0.4.5', description='UpCloud API Client', author='Elias Nygren', maintainer='Mika Lackman', maintainer_email='[email protected]', url='https://github.com/UpCloudLtd/upcloud-python-api', packag...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='upcloud-api', version='0.4.5', description='UpCloud API Client', author='Elias Nygren', maintainer='Mika Lackman', maintainer_email='[email protected]', url='https://github.com/UpCloudLtd/upcloud-python-a...
#!/usr/bin/env python from setuptools import setup setup( name='upcloud-api', version='0.4.5', description='UpCloud API Client', author='Elias Nygren', maintainer='Mika Lackman', maintainer_email='[email protected]', url='https://github.com/UpCloudLtd/upcloud-python-api', packag...
#!/usr/bin/env python from setuptools import setup setup( name='upcloud-api', version='0.4.5', description='UpCloud API Client', author='Elias Nygren', maintainer='Mika Lackman', maintainer_email='[email protected]', url='https://github.com/UpCloudLtd/upcloud-python-api', packag...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='upcloud-api', version='0.4.5', description='UpCloud API Client', author='Elias Nygren', maintainer='Mika Lackman', maintainer_email='[email protected]', url='https://github.com/UpCloudLtd/upcloud-python-a...
773c0f6a5b94d502881880c922c4b2ad19b60953
setup.py
setup.py
import os from setuptools import setup setup( name = "django-jsonfield", version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(), description = "JSONField for django models", long_description = open("README.rst").read(), url = "http://bitbucket.org/schinckel/d...
import os from setuptools import setup setup( name = "django-jsonfield", version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(), description = "JSONField for django models", long_description = open("README.rst").read(), url = "http://bitbucket.org/schinckel/d...
Add Python 3 classifier trove
Add Python 3 classifier trove
Python
bsd-3-clause
chrismeyersfsu/django-jsonfield
import os from setuptools import setup setup( name = "django-jsonfield", version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(), description = "JSONField for django models", long_description = open("README.rst").read(), url = "http://bitbucket.org/schinckel/d...
import os from setuptools import setup setup( name = "django-jsonfield", version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(), description = "JSONField for django models", long_description = open("README.rst").read(), url = "http://bitbucket.org/schinckel/d...
<commit_before>import os from setuptools import setup setup( name = "django-jsonfield", version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(), description = "JSONField for django models", long_description = open("README.rst").read(), url = "http://bitbucket....
import os from setuptools import setup setup( name = "django-jsonfield", version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(), description = "JSONField for django models", long_description = open("README.rst").read(), url = "http://bitbucket.org/schinckel/d...
import os from setuptools import setup setup( name = "django-jsonfield", version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(), description = "JSONField for django models", long_description = open("README.rst").read(), url = "http://bitbucket.org/schinckel/d...
<commit_before>import os from setuptools import setup setup( name = "django-jsonfield", version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(), description = "JSONField for django models", long_description = open("README.rst").read(), url = "http://bitbucket....
6802be4498bb1143f4ce4c024a3fd82921eeb937
setup.py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calibre_books.settings') setup( name='calibre-books', author='Adam Bogdał', author_email='[email protected]', description="Calibre server in Django", l...
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calibre_books.settings') setup( name='calibre-books', author='Adam Bogdał', author_email='[email protected]', description="Calibre server in Django", l...
Use pillow instead of ordinary pil
Use pillow instead of ordinary pil
Python
bsd-2-clause
bogdal/calibre-books,bogdal/calibre-books
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calibre_books.settings') setup( name='calibre-books', author='Adam Bogdał', author_email='[email protected]', description="Calibre server in Django", l...
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calibre_books.settings') setup( name='calibre-books', author='Adam Bogdał', author_email='[email protected]', description="Calibre server in Django", l...
<commit_before>#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calibre_books.settings') setup( name='calibre-books', author='Adam Bogdał', author_email='[email protected]', description="Calibre server in...
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calibre_books.settings') setup( name='calibre-books', author='Adam Bogdał', author_email='[email protected]', description="Calibre server in Django", l...
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calibre_books.settings') setup( name='calibre-books', author='Adam Bogdał', author_email='[email protected]', description="Calibre server in Django", l...
<commit_before>#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calibre_books.settings') setup( name='calibre-books', author='Adam Bogdał', author_email='[email protected]', description="Calibre server in...
273786a0e830bd582294419c5a93211552e692ba
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
Add int detection to interpreting results
Add int detection to interpreting results
Python
bsd-3-clause
iansmcf/pash
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.....
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.....
6524d4711e5fa03b1f11979fd3d0319cd268d116
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup import refmanage setup(name="refmanage", version=refmanage.__version__, author="Joshua Ryan Smith", author_email="[email protected]", packages=["refmanage"], url="https://github.com/jrsmith3/refmanage", description="Man...
# -*- coding: utf-8 -*- from distutils.core import setup import refmanage setup(name="refmanage", version=refmanage.__version__, author="Joshua Ryan Smith", author_email="[email protected]", packages=["refmanage"], url="https://github.com/jrsmith3/refmanage", description="Man...
Add entry_point for command-line application
Add entry_point for command-line application Closes #31.
Python
mit
jrsmith3/refmanage
# -*- coding: utf-8 -*- from distutils.core import setup import refmanage setup(name="refmanage", version=refmanage.__version__, author="Joshua Ryan Smith", author_email="[email protected]", packages=["refmanage"], url="https://github.com/jrsmith3/refmanage", description="Man...
# -*- coding: utf-8 -*- from distutils.core import setup import refmanage setup(name="refmanage", version=refmanage.__version__, author="Joshua Ryan Smith", author_email="[email protected]", packages=["refmanage"], url="https://github.com/jrsmith3/refmanage", description="Man...
<commit_before># -*- coding: utf-8 -*- from distutils.core import setup import refmanage setup(name="refmanage", version=refmanage.__version__, author="Joshua Ryan Smith", author_email="[email protected]", packages=["refmanage"], url="https://github.com/jrsmith3/refmanage", d...
# -*- coding: utf-8 -*- from distutils.core import setup import refmanage setup(name="refmanage", version=refmanage.__version__, author="Joshua Ryan Smith", author_email="[email protected]", packages=["refmanage"], url="https://github.com/jrsmith3/refmanage", description="Man...
# -*- coding: utf-8 -*- from distutils.core import setup import refmanage setup(name="refmanage", version=refmanage.__version__, author="Joshua Ryan Smith", author_email="[email protected]", packages=["refmanage"], url="https://github.com/jrsmith3/refmanage", description="Man...
<commit_before># -*- coding: utf-8 -*- from distutils.core import setup import refmanage setup(name="refmanage", version=refmanage.__version__, author="Joshua Ryan Smith", author_email="[email protected]", packages=["refmanage"], url="https://github.com/jrsmith3/refmanage", d...
e4d4e1b79bea641c66dfafe486d94a87c63e6edb
setup.py
setup.py
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-latest-tweets', version='0.4.5', description='Latest Tweets for Django', long_description=readme, url='https://github.c...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-latest-tweets', version='0.4.5', description='Latest Tweets for Django', long_description=readme, url='https://github.c...
Update GitHub repos from blancltd to developersociety
Update GitHub repos from blancltd to developersociety
Python
bsd-3-clause
blancltd/django-latest-tweets
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-latest-tweets', version='0.4.5', description='Latest Tweets for Django', long_description=readme, url='https://github.c...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-latest-tweets', version='0.4.5', description='Latest Tweets for Django', long_description=readme, url='https://github.c...
<commit_before>#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-latest-tweets', version='0.4.5', description='Latest Tweets for Django', long_description=readme, url='h...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-latest-tweets', version='0.4.5', description='Latest Tweets for Django', long_description=readme, url='https://github.c...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-latest-tweets', version='0.4.5', description='Latest Tweets for Django', long_description=readme, url='https://github.c...
<commit_before>#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='django-latest-tweets', version='0.4.5', description='Latest Tweets for Django', long_description=readme, url='h...