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
891a85fc427b16295c6f792d7311eca1e497332e
api/__init__.py
api/__init__.py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='postgresql://postgres@localhost:5432/loadstone') db = SQLAlchemy(app) import api.views
from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='sqlite://') db = SQLAlchemy(app) import api.views
Set default to sqlite memory
Set default to sqlite memory
Python
mit
Demotivated/loadstone
from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='postgresql://postgres@localhost:5432/loadstone') db = SQLAlchemy(app) import api.views Se...
from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='sqlite://') db = SQLAlchemy(app) import api.views
<commit_before>from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='postgresql://postgres@localhost:5432/loadstone') db = SQLAlchemy(app) impo...
from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='sqlite://') db = SQLAlchemy(app) import api.views
from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='postgresql://postgres@localhost:5432/loadstone') db = SQLAlchemy(app) import api.views Se...
<commit_before>from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='postgresql://postgres@localhost:5432/loadstone') db = SQLAlchemy(app) impo...
27ffe13842cfd346c568a51299b8f2349daf32c0
app/__init__.py
app/__init__.py
import logging logging.basicConfig( format='%(asctime)s %(levelname)-8s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S')
Add proper formatting of logs in app init
Add proper formatting of logs in app init
Python
mit
futuresimple/triggear
Add proper formatting of logs in app init
import logging logging.basicConfig( format='%(asctime)s %(levelname)-8s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S')
<commit_before><commit_msg>Add proper formatting of logs in app init<commit_after>
import logging logging.basicConfig( format='%(asctime)s %(levelname)-8s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S')
Add proper formatting of logs in app initimport logging logging.basicConfig( format='%(asctime)s %(levelname)-8s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S')
<commit_before><commit_msg>Add proper formatting of logs in app init<commit_after>import logging logging.basicConfig( format='%(asctime)s %(levelname)-8s %(message)s', level=logging.INFO, datefmt='%Y-%m-%d %H:%M:%S')
9c877984d1f9175660911d9cac457d6ff87b2754
troposphere/validators.py
troposphere/validators.py
# Copyright (c) 2012-2013, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. def boolean(x): if x in [True, 1, '1', 'true', 'True']: return "true" if x in [False, 0, '0', 'false', 'False']: return "false" raise ValueError def integer(x): if isins...
# Copyright (c) 2012-2013, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. def boolean(x): if x in [True, 1, '1', 'true', 'True']: return "true" if x in [False, 0, '0', 'false', 'False']: return "false" raise ValueError def integer(x): if isins...
Make sure we're comparing integers in positive_integer
Make sure we're comparing integers in positive_integer
Python
bsd-2-clause
jantman/troposphere,amosshapira/troposphere,ikben/troposphere,samcrang/troposphere,pas256/troposphere,ptoraskar/troposphere,cryptickp/troposphere,xxxVxxx/troposphere,horacio3/troposphere,alonsodomin/troposphere,alonsodomin/troposphere,pas256/troposphere,DualSpark/troposphere,7digital/troposphere,jdc0589/troposphere,ibl...
# Copyright (c) 2012-2013, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. def boolean(x): if x in [True, 1, '1', 'true', 'True']: return "true" if x in [False, 0, '0', 'false', 'False']: return "false" raise ValueError def integer(x): if isins...
# Copyright (c) 2012-2013, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. def boolean(x): if x in [True, 1, '1', 'true', 'True']: return "true" if x in [False, 0, '0', 'false', 'False']: return "false" raise ValueError def integer(x): if isins...
<commit_before># Copyright (c) 2012-2013, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. def boolean(x): if x in [True, 1, '1', 'true', 'True']: return "true" if x in [False, 0, '0', 'false', 'False']: return "false" raise ValueError def integer(x...
# Copyright (c) 2012-2013, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. def boolean(x): if x in [True, 1, '1', 'true', 'True']: return "true" if x in [False, 0, '0', 'false', 'False']: return "false" raise ValueError def integer(x): if isins...
# Copyright (c) 2012-2013, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. def boolean(x): if x in [True, 1, '1', 'true', 'True']: return "true" if x in [False, 0, '0', 'false', 'False']: return "false" raise ValueError def integer(x): if isins...
<commit_before># Copyright (c) 2012-2013, Mark Peek <[email protected]> # All rights reserved. # # See LICENSE file for full license. def boolean(x): if x in [True, 1, '1', 'true', 'True']: return "true" if x in [False, 0, '0', 'false', 'False']: return "false" raise ValueError def integer(x...
8c8eb5207fd34ba381b89cb147dd3c38b68cf3ad
stocks.py
stocks.py
#!/usr/bin/env python def find_points(prices, window): pivot = None next_pivot = None profit = 0 for i, price in enumerate(prices): if pivot is None or price < prices[pivot]: pivot = i next_pivot = max(next_pivot, pivot + 1) if pivot != i and (next_pivot is No...
#!/usr/bin/env python def find_profit(prices, window): pivot = None next_pivot = None profit = 0 for i, price in enumerate(prices): if pivot is None or price < prices[pivot]: pivot = i next_pivot = max(next_pivot, pivot + 1) if pivot != i and (next_pivot is No...
Change the name of the function
Change the name of the function
Python
mit
jrasky/planetlabs-challenge
#!/usr/bin/env python def find_points(prices, window): pivot = None next_pivot = None profit = 0 for i, price in enumerate(prices): if pivot is None or price < prices[pivot]: pivot = i next_pivot = max(next_pivot, pivot + 1) if pivot != i and (next_pivot is No...
#!/usr/bin/env python def find_profit(prices, window): pivot = None next_pivot = None profit = 0 for i, price in enumerate(prices): if pivot is None or price < prices[pivot]: pivot = i next_pivot = max(next_pivot, pivot + 1) if pivot != i and (next_pivot is No...
<commit_before>#!/usr/bin/env python def find_points(prices, window): pivot = None next_pivot = None profit = 0 for i, price in enumerate(prices): if pivot is None or price < prices[pivot]: pivot = i next_pivot = max(next_pivot, pivot + 1) if pivot != i and (n...
#!/usr/bin/env python def find_profit(prices, window): pivot = None next_pivot = None profit = 0 for i, price in enumerate(prices): if pivot is None or price < prices[pivot]: pivot = i next_pivot = max(next_pivot, pivot + 1) if pivot != i and (next_pivot is No...
#!/usr/bin/env python def find_points(prices, window): pivot = None next_pivot = None profit = 0 for i, price in enumerate(prices): if pivot is None or price < prices[pivot]: pivot = i next_pivot = max(next_pivot, pivot + 1) if pivot != i and (next_pivot is No...
<commit_before>#!/usr/bin/env python def find_points(prices, window): pivot = None next_pivot = None profit = 0 for i, price in enumerate(prices): if pivot is None or price < prices[pivot]: pivot = i next_pivot = max(next_pivot, pivot + 1) if pivot != i and (n...
e4abd01162bfd4af8cd1f2e657e8a6343b766e8c
anchor/names.py
anchor/names.py
""" Names of the modalities """ # Set constants of the names of the models so they can always be referenced # as variables rather than strings # Most of the density is at 0 NEAR_ZERO = '~0' # Old "middle" modality - most of the density is at 0.5 NEAR_HALF = 'concurrent' # Most of the density is at 1 NEAR_ONE = '~1'...
""" Names of the modalities """ # Set constants of the names of the models so they can always be referenced # as variables rather than strings # Most of the density is at 0 NEAR_ZERO = '~0' # Old "middle" modality - most of the density is at 0.5 NEAR_HALF = 'concurrent' # Most of the density is at 1 NEAR_ONE = '~1'...
Change null model name to ambivalent
Change null model name to ambivalent
Python
bsd-3-clause
YeoLab/anchor
""" Names of the modalities """ # Set constants of the names of the models so they can always be referenced # as variables rather than strings # Most of the density is at 0 NEAR_ZERO = '~0' # Old "middle" modality - most of the density is at 0.5 NEAR_HALF = 'concurrent' # Most of the density is at 1 NEAR_ONE = '~1'...
""" Names of the modalities """ # Set constants of the names of the models so they can always be referenced # as variables rather than strings # Most of the density is at 0 NEAR_ZERO = '~0' # Old "middle" modality - most of the density is at 0.5 NEAR_HALF = 'concurrent' # Most of the density is at 1 NEAR_ONE = '~1'...
<commit_before>""" Names of the modalities """ # Set constants of the names of the models so they can always be referenced # as variables rather than strings # Most of the density is at 0 NEAR_ZERO = '~0' # Old "middle" modality - most of the density is at 0.5 NEAR_HALF = 'concurrent' # Most of the density is at 1 ...
""" Names of the modalities """ # Set constants of the names of the models so they can always be referenced # as variables rather than strings # Most of the density is at 0 NEAR_ZERO = '~0' # Old "middle" modality - most of the density is at 0.5 NEAR_HALF = 'concurrent' # Most of the density is at 1 NEAR_ONE = '~1'...
""" Names of the modalities """ # Set constants of the names of the models so they can always be referenced # as variables rather than strings # Most of the density is at 0 NEAR_ZERO = '~0' # Old "middle" modality - most of the density is at 0.5 NEAR_HALF = 'concurrent' # Most of the density is at 1 NEAR_ONE = '~1'...
<commit_before>""" Names of the modalities """ # Set constants of the names of the models so they can always be referenced # as variables rather than strings # Most of the density is at 0 NEAR_ZERO = '~0' # Old "middle" modality - most of the density is at 0.5 NEAR_HALF = 'concurrent' # Most of the density is at 1 ...
15a7ced2d0da014e5d5508ed50c045de3cc9e9d2
_lib/wordpress_faq_processor.py
_lib/wordpress_faq_processor.py
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.conte...
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.conte...
Change faq processor to bulk index
Change faq processor to bulk index
Python
cc0-1.0
imuchnik/cfgov-refresh,imuchnik/cfgov-refresh,imuchnik/cfgov-refresh,imuchnik/cfgov-refresh
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.conte...
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.conte...
<commit_before>import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.l...
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.conte...
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.conte...
<commit_before>import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.l...
f45e182ec206ab08b1bea699033938b562558670
test/test_compression.py
test/test_compression.py
import unittest import bmemcached import bz2 class MemcachedTests(unittest.TestCase): def setUp(self): self.server = '127.0.0.1:11211' self.client = bmemcached.Client(self.server, 'user', 'password') self.bzclient = bmemcached.Client(self.server, 'user', 'password', bz2) self.data =...
import unittest import bz2 import bmemcached class MemcachedTests(unittest.TestCase): def setUp(self): self.server = '127.0.0.1:11211' self.client = bmemcached.Client(self.server, 'user', 'password') self.bzclient = bmemcached.Client(self.server, 'user', 'password', ...
Use keyword arguments to avoid accidentally setting timeout
Use keyword arguments to avoid accidentally setting timeout
Python
mit
xmonster-tech/python-binary-memcached,jaysonsantos/python-binary-memcached,xmonster-tech/python-binary-memcached,jaysonsantos/python-binary-memcached
import unittest import bmemcached import bz2 class MemcachedTests(unittest.TestCase): def setUp(self): self.server = '127.0.0.1:11211' self.client = bmemcached.Client(self.server, 'user', 'password') self.bzclient = bmemcached.Client(self.server, 'user', 'password', bz2) self.data =...
import unittest import bz2 import bmemcached class MemcachedTests(unittest.TestCase): def setUp(self): self.server = '127.0.0.1:11211' self.client = bmemcached.Client(self.server, 'user', 'password') self.bzclient = bmemcached.Client(self.server, 'user', 'password', ...
<commit_before>import unittest import bmemcached import bz2 class MemcachedTests(unittest.TestCase): def setUp(self): self.server = '127.0.0.1:11211' self.client = bmemcached.Client(self.server, 'user', 'password') self.bzclient = bmemcached.Client(self.server, 'user', 'password', bz2) ...
import unittest import bz2 import bmemcached class MemcachedTests(unittest.TestCase): def setUp(self): self.server = '127.0.0.1:11211' self.client = bmemcached.Client(self.server, 'user', 'password') self.bzclient = bmemcached.Client(self.server, 'user', 'password', ...
import unittest import bmemcached import bz2 class MemcachedTests(unittest.TestCase): def setUp(self): self.server = '127.0.0.1:11211' self.client = bmemcached.Client(self.server, 'user', 'password') self.bzclient = bmemcached.Client(self.server, 'user', 'password', bz2) self.data =...
<commit_before>import unittest import bmemcached import bz2 class MemcachedTests(unittest.TestCase): def setUp(self): self.server = '127.0.0.1:11211' self.client = bmemcached.Client(self.server, 'user', 'password') self.bzclient = bmemcached.Client(self.server, 'user', 'password', bz2) ...
6bbd81efbd4821a3963a021d8456531f01edfd6c
tests/test_rover_instance.py
tests/test_rover_instance.py
from unittest import TestCase from rover import Rover class TestRover(TestCase): def setUp(self): self.rover = Rover() def test_rover_compass(self): assert self.rover.compass == ['N', 'E', 'S', 'W'] def test_rover_position(self): assert self.rover.position == (self.rover.x, self...
from unittest import TestCase from rover import Rover class TestRover(TestCase): def setUp(self): self.rover = Rover() def test_rover_compass(self): assert self.rover.compass == ['N', 'E', 'S', 'W'] def test_rover_position(self): assert self.rover.position == (self.rover.x, self...
Add failing test for set position method
Add failing test for set position method
Python
mit
authentik8/rover
from unittest import TestCase from rover import Rover class TestRover(TestCase): def setUp(self): self.rover = Rover() def test_rover_compass(self): assert self.rover.compass == ['N', 'E', 'S', 'W'] def test_rover_position(self): assert self.rover.position == (self.rover.x, self...
from unittest import TestCase from rover import Rover class TestRover(TestCase): def setUp(self): self.rover = Rover() def test_rover_compass(self): assert self.rover.compass == ['N', 'E', 'S', 'W'] def test_rover_position(self): assert self.rover.position == (self.rover.x, self...
<commit_before> from unittest import TestCase from rover import Rover class TestRover(TestCase): def setUp(self): self.rover = Rover() def test_rover_compass(self): assert self.rover.compass == ['N', 'E', 'S', 'W'] def test_rover_position(self): assert self.rover.position == (sel...
from unittest import TestCase from rover import Rover class TestRover(TestCase): def setUp(self): self.rover = Rover() def test_rover_compass(self): assert self.rover.compass == ['N', 'E', 'S', 'W'] def test_rover_position(self): assert self.rover.position == (self.rover.x, self...
from unittest import TestCase from rover import Rover class TestRover(TestCase): def setUp(self): self.rover = Rover() def test_rover_compass(self): assert self.rover.compass == ['N', 'E', 'S', 'W'] def test_rover_position(self): assert self.rover.position == (self.rover.x, self...
<commit_before> from unittest import TestCase from rover import Rover class TestRover(TestCase): def setUp(self): self.rover = Rover() def test_rover_compass(self): assert self.rover.compass == ['N', 'E', 'S', 'W'] def test_rover_position(self): assert self.rover.position == (sel...
31eae0aee3a6ae9fa7abea312ff1ea843a98e853
graphene/contrib/django/tests/models.py
graphene/contrib/django/tests/models.py
from __future__ import absolute_import from django.db import models class Pet(models.Model): name = models.CharField(max_length=30) class Film(models.Model): reporters = models.ManyToManyField('Reporter', related_name='films') class Reporter(models.Model): first...
from __future__ import absolute_import from django.db import models class Pet(models.Model): name = models.CharField(max_length=30) class Film(models.Model): reporters = models.ManyToManyField('Reporter', related_name='films') class Reporter(models.Model): first...
Improve Django field conversion real-life tests
Improve Django field conversion real-life tests
Python
mit
graphql-python/graphene,sjhewitt/graphene,Globegitter/graphene,sjhewitt/graphene,Globegitter/graphene,graphql-python/graphene
from __future__ import absolute_import from django.db import models class Pet(models.Model): name = models.CharField(max_length=30) class Film(models.Model): reporters = models.ManyToManyField('Reporter', related_name='films') class Reporter(models.Model): first...
from __future__ import absolute_import from django.db import models class Pet(models.Model): name = models.CharField(max_length=30) class Film(models.Model): reporters = models.ManyToManyField('Reporter', related_name='films') class Reporter(models.Model): first...
<commit_before>from __future__ import absolute_import from django.db import models class Pet(models.Model): name = models.CharField(max_length=30) class Film(models.Model): reporters = models.ManyToManyField('Reporter', related_name='films') class Reporter(models.Mo...
from __future__ import absolute_import from django.db import models class Pet(models.Model): name = models.CharField(max_length=30) class Film(models.Model): reporters = models.ManyToManyField('Reporter', related_name='films') class Reporter(models.Model): first...
from __future__ import absolute_import from django.db import models class Pet(models.Model): name = models.CharField(max_length=30) class Film(models.Model): reporters = models.ManyToManyField('Reporter', related_name='films') class Reporter(models.Model): first...
<commit_before>from __future__ import absolute_import from django.db import models class Pet(models.Model): name = models.CharField(max_length=30) class Film(models.Model): reporters = models.ManyToManyField('Reporter', related_name='films') class Reporter(models.Mo...
6d1117fbba83b258162cc0f397573e21cd31543e
batch_effect.py
batch_effect.py
#!/usr/bin/env python import argparse import csv import shutil import subprocess import sys if __name__ == '__main__': parser = argparse.ArgumentParser(description="Chain together Inkscape extensions") parser.add_argument('--id', type=str, action='append', dest='ids', default=[], help=...
#!/usr/bin/env python import csv import optparse import shutil import subprocess import sys if __name__ == '__main__': parser = optparse.OptionParser(description="Chain together Inkscape extensions", usage="%prog [options] svgpath") parser.add_option('--id', dest='ids', acti...
Make compatible with Python <2.7
Make compatible with Python <2.7 The argparse module was added in Python 2.7, but the Python bundled with Inkscape is 2.6. Switching to optparse makes this extension compatible with the Python bundled with Inkscape.
Python
mit
jturner314/inkscape-batch-effect
#!/usr/bin/env python import argparse import csv import shutil import subprocess import sys if __name__ == '__main__': parser = argparse.ArgumentParser(description="Chain together Inkscape extensions") parser.add_argument('--id', type=str, action='append', dest='ids', default=[], help=...
#!/usr/bin/env python import csv import optparse import shutil import subprocess import sys if __name__ == '__main__': parser = optparse.OptionParser(description="Chain together Inkscape extensions", usage="%prog [options] svgpath") parser.add_option('--id', dest='ids', acti...
<commit_before>#!/usr/bin/env python import argparse import csv import shutil import subprocess import sys if __name__ == '__main__': parser = argparse.ArgumentParser(description="Chain together Inkscape extensions") parser.add_argument('--id', type=str, action='append', dest='ids', default=[], ...
#!/usr/bin/env python import csv import optparse import shutil import subprocess import sys if __name__ == '__main__': parser = optparse.OptionParser(description="Chain together Inkscape extensions", usage="%prog [options] svgpath") parser.add_option('--id', dest='ids', acti...
#!/usr/bin/env python import argparse import csv import shutil import subprocess import sys if __name__ == '__main__': parser = argparse.ArgumentParser(description="Chain together Inkscape extensions") parser.add_argument('--id', type=str, action='append', dest='ids', default=[], help=...
<commit_before>#!/usr/bin/env python import argparse import csv import shutil import subprocess import sys if __name__ == '__main__': parser = argparse.ArgumentParser(description="Chain together Inkscape extensions") parser.add_argument('--id', type=str, action='append', dest='ids', default=[], ...
2b80ef0b732403dea1af72693ebb2adc19863cac
test_hash.py
test_hash.py
from hash_table import HashTable import io import pytest words = [] with io.open('/usr/share/dict/words', 'r') as word_file: words = word_file.readlines() def test_init(): ht = HashTable() assert len(ht.table) == 1024 ht2 = HashTable(10000) assert len(ht2.table) == 10000 def test_hash(): ...
from hash_table import HashTable import io import pytest words = [] with io.open('/usr/share/dict/words', 'r') as word_file: words = word_file.readlines() def test_init(): ht = HashTable() assert len(ht.table) == 1024 ht2 = HashTable(10000) assert len(ht2.table) == 10000 def test_hash(): ...
Change test to check for KeyError instead of IndexError for test_non_item
Change test to check for KeyError instead of IndexError for test_non_item
Python
mit
jwarren116/data-structures-deux
from hash_table import HashTable import io import pytest words = [] with io.open('/usr/share/dict/words', 'r') as word_file: words = word_file.readlines() def test_init(): ht = HashTable() assert len(ht.table) == 1024 ht2 = HashTable(10000) assert len(ht2.table) == 10000 def test_hash(): ...
from hash_table import HashTable import io import pytest words = [] with io.open('/usr/share/dict/words', 'r') as word_file: words = word_file.readlines() def test_init(): ht = HashTable() assert len(ht.table) == 1024 ht2 = HashTable(10000) assert len(ht2.table) == 10000 def test_hash(): ...
<commit_before>from hash_table import HashTable import io import pytest words = [] with io.open('/usr/share/dict/words', 'r') as word_file: words = word_file.readlines() def test_init(): ht = HashTable() assert len(ht.table) == 1024 ht2 = HashTable(10000) assert len(ht2.table) == 10000 def te...
from hash_table import HashTable import io import pytest words = [] with io.open('/usr/share/dict/words', 'r') as word_file: words = word_file.readlines() def test_init(): ht = HashTable() assert len(ht.table) == 1024 ht2 = HashTable(10000) assert len(ht2.table) == 10000 def test_hash(): ...
from hash_table import HashTable import io import pytest words = [] with io.open('/usr/share/dict/words', 'r') as word_file: words = word_file.readlines() def test_init(): ht = HashTable() assert len(ht.table) == 1024 ht2 = HashTable(10000) assert len(ht2.table) == 10000 def test_hash(): ...
<commit_before>from hash_table import HashTable import io import pytest words = [] with io.open('/usr/share/dict/words', 'r') as word_file: words = word_file.readlines() def test_init(): ht = HashTable() assert len(ht.table) == 1024 ht2 = HashTable(10000) assert len(ht2.table) == 10000 def te...
25ebc324c0af6e1ce74535cc75227071637a7a18
areaScraper.py
areaScraper.py
# Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design from bs4 import BeautifulSoup import re fh = open("sites.htm", "r") soup = BeautifulSoup(fh, "html.parser") for columnDiv in soup.h1.next_sibling.next_sibling: for state in columnDiv: for city in state: print(city) #prin...
#!/usr/bin/python3.4 # Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design # Returns dictionary of 'city name string' : 'site url' # for all American cities in states/territories @ CL from bs4 import BeautifulSoup import re def getCities(): fh = open("sites.htm", "r") soup = B...
Complete site scraper for all American cities
Complete site scraper for all American cities areaScraper.py contains the getCities() function, which will return a dictionary of 'city name string' : 'url string' for each Craigslist "site", corresponding to American cities, regions, etc.
Python
mit
MuSystemsAnalysis/craigslist_area_search,MuSystemsAnalysis/craigslist_area_search
# Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design from bs4 import BeautifulSoup import re fh = open("sites.htm", "r") soup = BeautifulSoup(fh, "html.parser") for columnDiv in soup.h1.next_sibling.next_sibling: for state in columnDiv: for city in state: print(city) #prin...
#!/usr/bin/python3.4 # Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design # Returns dictionary of 'city name string' : 'site url' # for all American cities in states/territories @ CL from bs4 import BeautifulSoup import re def getCities(): fh = open("sites.htm", "r") soup = B...
<commit_before># Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design from bs4 import BeautifulSoup import re fh = open("sites.htm", "r") soup = BeautifulSoup(fh, "html.parser") for columnDiv in soup.h1.next_sibling.next_sibling: for state in columnDiv: for city in state: pri...
#!/usr/bin/python3.4 # Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design # Returns dictionary of 'city name string' : 'site url' # for all American cities in states/territories @ CL from bs4 import BeautifulSoup import re def getCities(): fh = open("sites.htm", "r") soup = B...
# Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design from bs4 import BeautifulSoup import re fh = open("sites.htm", "r") soup = BeautifulSoup(fh, "html.parser") for columnDiv in soup.h1.next_sibling.next_sibling: for state in columnDiv: for city in state: print(city) #prin...
<commit_before># Craigslist City Scraper # By Marshall Ehlinger # For sp2015 Systems Analysis and Design from bs4 import BeautifulSoup import re fh = open("sites.htm", "r") soup = BeautifulSoup(fh, "html.parser") for columnDiv in soup.h1.next_sibling.next_sibling: for state in columnDiv: for city in state: pri...
e8d9dae51dc812e94236d1cc45cf1479d88f02f6
grokapi/queries.py
grokapi/queries.py
# -*- coding: utf-8 -*- class Grok: """stats.grok.se article statistics.""" def __init__(self, title, site): self.site = site self.title = title def _make_url(self, year, month): """Make the URL to the JSON output of stats.grok.se service.""" base_url = "http://stats.gro...
# -*- coding: utf-8 -*- class Grok(object): """stats.grok.se article statistics.""" def __init__(self, title, site): self.site = site self.title = title def _make_url(self, year, month): """Make the URL to the JSON output of stats.grok.se service.""" base_url = "http://s...
Make Grok a new-style class inheriting from object
Make Grok a new-style class inheriting from object
Python
mit
Commonists/Grokapi
# -*- coding: utf-8 -*- class Grok: """stats.grok.se article statistics.""" def __init__(self, title, site): self.site = site self.title = title def _make_url(self, year, month): """Make the URL to the JSON output of stats.grok.se service.""" base_url = "http://stats.gro...
# -*- coding: utf-8 -*- class Grok(object): """stats.grok.se article statistics.""" def __init__(self, title, site): self.site = site self.title = title def _make_url(self, year, month): """Make the URL to the JSON output of stats.grok.se service.""" base_url = "http://s...
<commit_before># -*- coding: utf-8 -*- class Grok: """stats.grok.se article statistics.""" def __init__(self, title, site): self.site = site self.title = title def _make_url(self, year, month): """Make the URL to the JSON output of stats.grok.se service.""" base_url = "h...
# -*- coding: utf-8 -*- class Grok(object): """stats.grok.se article statistics.""" def __init__(self, title, site): self.site = site self.title = title def _make_url(self, year, month): """Make the URL to the JSON output of stats.grok.se service.""" base_url = "http://s...
# -*- coding: utf-8 -*- class Grok: """stats.grok.se article statistics.""" def __init__(self, title, site): self.site = site self.title = title def _make_url(self, year, month): """Make the URL to the JSON output of stats.grok.se service.""" base_url = "http://stats.gro...
<commit_before># -*- coding: utf-8 -*- class Grok: """stats.grok.se article statistics.""" def __init__(self, title, site): self.site = site self.title = title def _make_url(self, year, month): """Make the URL to the JSON output of stats.grok.se service.""" base_url = "h...
49a7968e51ce850428936fb2fc66c905ce8b8998
head1stpython/Chapter3/sketch.py
head1stpython/Chapter3/sketch.py
#Import dependencies #Load OS functions from the standard library import os os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3') #Change path for the current directory data = open('sketch.txt') #Start iteration over the text file for each_line in data: try: ...
#Import dependencies #Load OS functions from the standard library import os #Change path for the current directory os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3') #Check if file exists if os.path.exists('sketch.txt'): #Load the text file into 'data' variable ...
Validate if the file exists (if/else)
Validate if the file exists (if/else)
Python
unlicense
israelzuniga/python-octo-wookie
#Import dependencies #Load OS functions from the standard library import os os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3') #Change path for the current directory data = open('sketch.txt') #Start iteration over the text file for each_line in data: try: ...
#Import dependencies #Load OS functions from the standard library import os #Change path for the current directory os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3') #Check if file exists if os.path.exists('sketch.txt'): #Load the text file into 'data' variable ...
<commit_before>#Import dependencies #Load OS functions from the standard library import os os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3') #Change path for the current directory data = open('sketch.txt') #Start iteration over the text file for each_line in data: ...
#Import dependencies #Load OS functions from the standard library import os #Change path for the current directory os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3') #Check if file exists if os.path.exists('sketch.txt'): #Load the text file into 'data' variable ...
#Import dependencies #Load OS functions from the standard library import os os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3') #Change path for the current directory data = open('sketch.txt') #Start iteration over the text file for each_line in data: try: ...
<commit_before>#Import dependencies #Load OS functions from the standard library import os os.chdir('/home/israel/Development/Python_Exercises/python-octo-wookie/head1stpython/Chapter3') #Change path for the current directory data = open('sketch.txt') #Start iteration over the text file for each_line in data: ...
a15d1df33fece7ddeefcbeb5a8094df2ebccd7c6
tests/test_dict_utils.py
tests/test_dict_utils.py
import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search(self): pass
import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search_found(self): dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}} found_value = dict_utils.dict_search_value(dict_1, 'name') self.assertEqual(found_value, '...
Add some tests for the implemented methods
Add some tests for the implemented methods
Python
mit
glowdigitalmedia/dict-utils
import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search(self): pass Add some tests for the implemented methods
import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search_found(self): dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}} found_value = dict_utils.dict_search_value(dict_1, 'name') self.assertEqual(found_value, '...
<commit_before>import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search(self): pass <commit_msg>Add some tests for the implemented methods<commit_after>
import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search_found(self): dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'Age': 30}}} found_value = dict_utils.dict_search_value(dict_1, 'name') self.assertEqual(found_value, '...
import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search(self): pass Add some tests for the implemented methodsimport unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search_found(self): ...
<commit_before>import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase): def test_dict_search(self): pass <commit_msg>Add some tests for the implemented methods<commit_after>import unittest from dict_utils import dict_utils class DictUtilsTestCase(unittest.TestCase):...
48be23ec035daa041edc77f5478a2405a8311428
tests/test_request_id.py
tests/test_request_id.py
from unittest import mock from werkzeug.test import EnvironBuilder from notifications_utils import request_helper from notifications_utils.request_helper import CustomRequest def test_get_request_id_from_request_id_header(): builder = EnvironBuilder() builder.headers['NotifyRequestID'] = 'from-header' bu...
from unittest import mock from werkzeug.test import EnvironBuilder from notifications_utils import request_helper from notifications_utils.request_helper import CustomRequest def test_get_request_id_from_request_id_header(): builder = EnvironBuilder() builder.headers['X-B3-TraceId'] = 'from-header' reque...
Refactor tests to check for the new headers
Refactor tests to check for the new headers
Python
mit
alphagov/notifications-utils
from unittest import mock from werkzeug.test import EnvironBuilder from notifications_utils import request_helper from notifications_utils.request_helper import CustomRequest def test_get_request_id_from_request_id_header(): builder = EnvironBuilder() builder.headers['NotifyRequestID'] = 'from-header' bu...
from unittest import mock from werkzeug.test import EnvironBuilder from notifications_utils import request_helper from notifications_utils.request_helper import CustomRequest def test_get_request_id_from_request_id_header(): builder = EnvironBuilder() builder.headers['X-B3-TraceId'] = 'from-header' reque...
<commit_before>from unittest import mock from werkzeug.test import EnvironBuilder from notifications_utils import request_helper from notifications_utils.request_helper import CustomRequest def test_get_request_id_from_request_id_header(): builder = EnvironBuilder() builder.headers['NotifyRequestID'] = 'from...
from unittest import mock from werkzeug.test import EnvironBuilder from notifications_utils import request_helper from notifications_utils.request_helper import CustomRequest def test_get_request_id_from_request_id_header(): builder = EnvironBuilder() builder.headers['X-B3-TraceId'] = 'from-header' reque...
from unittest import mock from werkzeug.test import EnvironBuilder from notifications_utils import request_helper from notifications_utils.request_helper import CustomRequest def test_get_request_id_from_request_id_header(): builder = EnvironBuilder() builder.headers['NotifyRequestID'] = 'from-header' bu...
<commit_before>from unittest import mock from werkzeug.test import EnvironBuilder from notifications_utils import request_helper from notifications_utils.request_helper import CustomRequest def test_get_request_id_from_request_id_header(): builder = EnvironBuilder() builder.headers['NotifyRequestID'] = 'from...
07a8ca051b46a04df806647202144bd563d5dc5a
tests/locale_utils.py
tests/locale_utils.py
import subprocess """Helper functions, decorators,... for working with locales""" def get_avail_locales(): return {loc.strip() for loc in subprocess.check_output(["locale", "-a"]).split()} def requires_locales(locales): """A decorator factory to skip tests that require unavailable locales :param set lo...
import subprocess """Helper functions, decorators,... for working with locales""" def get_avail_locales(): return {loc.decode(errors="replace").strip() for loc in subprocess.check_output(["locale", "-a"]).split()} def requires_locales(locales): """A decorator factory to skip tests that require unavailable l...
Fix checking for available locales
Fix checking for available locales "subprocess.check" returns bytes, so we need to decode the lang codes before comparing them with required languages.
Python
lgpl-2.1
rhinstaller/libbytesize,rhinstaller/libbytesize,rhinstaller/libbytesize
import subprocess """Helper functions, decorators,... for working with locales""" def get_avail_locales(): return {loc.strip() for loc in subprocess.check_output(["locale", "-a"]).split()} def requires_locales(locales): """A decorator factory to skip tests that require unavailable locales :param set lo...
import subprocess """Helper functions, decorators,... for working with locales""" def get_avail_locales(): return {loc.decode(errors="replace").strip() for loc in subprocess.check_output(["locale", "-a"]).split()} def requires_locales(locales): """A decorator factory to skip tests that require unavailable l...
<commit_before> import subprocess """Helper functions, decorators,... for working with locales""" def get_avail_locales(): return {loc.strip() for loc in subprocess.check_output(["locale", "-a"]).split()} def requires_locales(locales): """A decorator factory to skip tests that require unavailable locales ...
import subprocess """Helper functions, decorators,... for working with locales""" def get_avail_locales(): return {loc.decode(errors="replace").strip() for loc in subprocess.check_output(["locale", "-a"]).split()} def requires_locales(locales): """A decorator factory to skip tests that require unavailable l...
import subprocess """Helper functions, decorators,... for working with locales""" def get_avail_locales(): return {loc.strip() for loc in subprocess.check_output(["locale", "-a"]).split()} def requires_locales(locales): """A decorator factory to skip tests that require unavailable locales :param set lo...
<commit_before> import subprocess """Helper functions, decorators,... for working with locales""" def get_avail_locales(): return {loc.strip() for loc in subprocess.check_output(["locale", "-a"]).split()} def requires_locales(locales): """A decorator factory to skip tests that require unavailable locales ...
80aff93d3f0040f5886e983a6ce781717f7703a4
sites/www/conf.py
sites/www/conf.py
# Obtain shared config values import sys import os from os.path import abspath, join, dirname sys.path.append(abspath(join(dirname(__file__), '..'))) from shared_conf import * # Local blog extension sys.path.append(abspath('.')) extensions.append('blog') rss_link = 'http://paramiko.org' rss_description = 'Paramiko pr...
# Obtain shared config values import sys import os from os.path import abspath, join, dirname sys.path.append(abspath(join(dirname(__file__), '..'))) from shared_conf import * # Local blog extension sys.path.append(abspath('.')) extensions.append('blog') rss_link = 'http://paramiko.org' rss_description = 'Paramiko pr...
Fix broken tag-tree links in changelog
Fix broken tag-tree links in changelog
Python
lgpl-2.1
SebastianDeiss/paramiko,zarr12steven/paramiko,thisch/paramiko,thusoy/paramiko,toby82/paramiko,dorianpula/paramiko,jorik041/paramiko,zpzgone/paramiko,paramiko/paramiko,mhdaimi/paramiko,dlitz/paramiko,Automatic/paramiko,varunarya10/paramiko,ameily/paramiko,fvicente/paramiko,digitalquacks/paramiko,selboo/paramiko,anadigi/...
# Obtain shared config values import sys import os from os.path import abspath, join, dirname sys.path.append(abspath(join(dirname(__file__), '..'))) from shared_conf import * # Local blog extension sys.path.append(abspath('.')) extensions.append('blog') rss_link = 'http://paramiko.org' rss_description = 'Paramiko pr...
# Obtain shared config values import sys import os from os.path import abspath, join, dirname sys.path.append(abspath(join(dirname(__file__), '..'))) from shared_conf import * # Local blog extension sys.path.append(abspath('.')) extensions.append('blog') rss_link = 'http://paramiko.org' rss_description = 'Paramiko pr...
<commit_before># Obtain shared config values import sys import os from os.path import abspath, join, dirname sys.path.append(abspath(join(dirname(__file__), '..'))) from shared_conf import * # Local blog extension sys.path.append(abspath('.')) extensions.append('blog') rss_link = 'http://paramiko.org' rss_description...
# Obtain shared config values import sys import os from os.path import abspath, join, dirname sys.path.append(abspath(join(dirname(__file__), '..'))) from shared_conf import * # Local blog extension sys.path.append(abspath('.')) extensions.append('blog') rss_link = 'http://paramiko.org' rss_description = 'Paramiko pr...
# Obtain shared config values import sys import os from os.path import abspath, join, dirname sys.path.append(abspath(join(dirname(__file__), '..'))) from shared_conf import * # Local blog extension sys.path.append(abspath('.')) extensions.append('blog') rss_link = 'http://paramiko.org' rss_description = 'Paramiko pr...
<commit_before># Obtain shared config values import sys import os from os.path import abspath, join, dirname sys.path.append(abspath(join(dirname(__file__), '..'))) from shared_conf import * # Local blog extension sys.path.append(abspath('.')) extensions.append('blog') rss_link = 'http://paramiko.org' rss_description...
e366f6da5673a4c92ffcf65492951e0c6fc886ed
tests/test_element.py
tests/test_element.py
import rml.element def test_create_element(): e = rml.element.Element('BPM', 6.0) assert e.get_type() == 'BPM' assert e.get_length() == 6.0 def test_add_element_to_family(): e = rml.element.Element('dummy', 0.0) e.add_to_family('fam') assert 'fam' in e.get_families()
import pkg_resources pkg_resources.require('cothread') import cothread import rml.element def test_create_element(): e = rml.element.Element('BPM', 6.0) assert e.get_type() == 'BPM' assert e.get_length() == 6.0 def test_add_element_to_family(): e = rml.element.Element('dummy', 0.0) e.add_to_fami...
Test before creating the get_pv() method
Test before creating the get_pv() method
Python
apache-2.0
razvanvasile/RML,willrogers/pml,willrogers/pml
import rml.element def test_create_element(): e = rml.element.Element('BPM', 6.0) assert e.get_type() == 'BPM' assert e.get_length() == 6.0 def test_add_element_to_family(): e = rml.element.Element('dummy', 0.0) e.add_to_family('fam') assert 'fam' in e.get_families() Test before creating the...
import pkg_resources pkg_resources.require('cothread') import cothread import rml.element def test_create_element(): e = rml.element.Element('BPM', 6.0) assert e.get_type() == 'BPM' assert e.get_length() == 6.0 def test_add_element_to_family(): e = rml.element.Element('dummy', 0.0) e.add_to_fami...
<commit_before>import rml.element def test_create_element(): e = rml.element.Element('BPM', 6.0) assert e.get_type() == 'BPM' assert e.get_length() == 6.0 def test_add_element_to_family(): e = rml.element.Element('dummy', 0.0) e.add_to_family('fam') assert 'fam' in e.get_families() <commit_m...
import pkg_resources pkg_resources.require('cothread') import cothread import rml.element def test_create_element(): e = rml.element.Element('BPM', 6.0) assert e.get_type() == 'BPM' assert e.get_length() == 6.0 def test_add_element_to_family(): e = rml.element.Element('dummy', 0.0) e.add_to_fami...
import rml.element def test_create_element(): e = rml.element.Element('BPM', 6.0) assert e.get_type() == 'BPM' assert e.get_length() == 6.0 def test_add_element_to_family(): e = rml.element.Element('dummy', 0.0) e.add_to_family('fam') assert 'fam' in e.get_families() Test before creating the...
<commit_before>import rml.element def test_create_element(): e = rml.element.Element('BPM', 6.0) assert e.get_type() == 'BPM' assert e.get_length() == 6.0 def test_add_element_to_family(): e = rml.element.Element('dummy', 0.0) e.add_to_family('fam') assert 'fam' in e.get_families() <commit_m...
0b884ed68f2c4b482f9eadbf38adc01f7d869f1a
tests/test_exports.py
tests/test_exports.py
import unittest import websockets import websockets.client import websockets.exceptions import websockets.legacy.auth import websockets.legacy.client import websockets.legacy.protocol import websockets.legacy.server import websockets.server import websockets.typing import websockets.uri combined_exports = ( webs...
import unittest import websockets import websockets.client import websockets.exceptions import websockets.legacy.auth import websockets.legacy.client import websockets.legacy.protocol import websockets.legacy.server import websockets.server import websockets.typing import websockets.uri combined_exports = ( webs...
Rename test class consistently with others.
Rename test class consistently with others.
Python
bsd-3-clause
aaugustin/websockets,aaugustin/websockets,aaugustin/websockets,aaugustin/websockets
import unittest import websockets import websockets.client import websockets.exceptions import websockets.legacy.auth import websockets.legacy.client import websockets.legacy.protocol import websockets.legacy.server import websockets.server import websockets.typing import websockets.uri combined_exports = ( webs...
import unittest import websockets import websockets.client import websockets.exceptions import websockets.legacy.auth import websockets.legacy.client import websockets.legacy.protocol import websockets.legacy.server import websockets.server import websockets.typing import websockets.uri combined_exports = ( webs...
<commit_before>import unittest import websockets import websockets.client import websockets.exceptions import websockets.legacy.auth import websockets.legacy.client import websockets.legacy.protocol import websockets.legacy.server import websockets.server import websockets.typing import websockets.uri combined_expor...
import unittest import websockets import websockets.client import websockets.exceptions import websockets.legacy.auth import websockets.legacy.client import websockets.legacy.protocol import websockets.legacy.server import websockets.server import websockets.typing import websockets.uri combined_exports = ( webs...
import unittest import websockets import websockets.client import websockets.exceptions import websockets.legacy.auth import websockets.legacy.client import websockets.legacy.protocol import websockets.legacy.server import websockets.server import websockets.typing import websockets.uri combined_exports = ( webs...
<commit_before>import unittest import websockets import websockets.client import websockets.exceptions import websockets.legacy.auth import websockets.legacy.client import websockets.legacy.protocol import websockets.legacy.server import websockets.server import websockets.typing import websockets.uri combined_expor...
3bbe539f387697137040f665958e0e0e27e6a420
tests/test_session.py
tests/test_session.py
# Local imports from uplink import session def test_base_url(uplink_builder_mock): # Setup uplink_builder_mock.base_url = "https://api.github.com" sess = session.Session(uplink_builder_mock) # Run & Verify assert uplink_builder_mock.base_url == sess.base_url def test_headers(uplink_builder_mock...
# Local imports from uplink import session def test_base_url(uplink_builder_mock): # Setup uplink_builder_mock.base_url = "https://api.github.com" sess = session.Session(uplink_builder_mock) # Run & Verify assert uplink_builder_mock.base_url == sess.base_url def test_headers(uplink_builder_mock...
Fix `assert_called` usage for Python 3.5 build
Fix `assert_called` usage for Python 3.5 build The `assert_called` method seems to invoke a bug caused by a type in the unittest mock module. (The bug was ultimately tracked and fix here: https://bugs.python.org/issue24656)
Python
mit
prkumar/uplink
# Local imports from uplink import session def test_base_url(uplink_builder_mock): # Setup uplink_builder_mock.base_url = "https://api.github.com" sess = session.Session(uplink_builder_mock) # Run & Verify assert uplink_builder_mock.base_url == sess.base_url def test_headers(uplink_builder_mock...
# Local imports from uplink import session def test_base_url(uplink_builder_mock): # Setup uplink_builder_mock.base_url = "https://api.github.com" sess = session.Session(uplink_builder_mock) # Run & Verify assert uplink_builder_mock.base_url == sess.base_url def test_headers(uplink_builder_mock...
<commit_before># Local imports from uplink import session def test_base_url(uplink_builder_mock): # Setup uplink_builder_mock.base_url = "https://api.github.com" sess = session.Session(uplink_builder_mock) # Run & Verify assert uplink_builder_mock.base_url == sess.base_url def test_headers(upli...
# Local imports from uplink import session def test_base_url(uplink_builder_mock): # Setup uplink_builder_mock.base_url = "https://api.github.com" sess = session.Session(uplink_builder_mock) # Run & Verify assert uplink_builder_mock.base_url == sess.base_url def test_headers(uplink_builder_mock...
# Local imports from uplink import session def test_base_url(uplink_builder_mock): # Setup uplink_builder_mock.base_url = "https://api.github.com" sess = session.Session(uplink_builder_mock) # Run & Verify assert uplink_builder_mock.base_url == sess.base_url def test_headers(uplink_builder_mock...
<commit_before># Local imports from uplink import session def test_base_url(uplink_builder_mock): # Setup uplink_builder_mock.base_url = "https://api.github.com" sess = session.Session(uplink_builder_mock) # Run & Verify assert uplink_builder_mock.base_url == sess.base_url def test_headers(upli...
72f3a5d1bc4c69cb0641ea5529655d5b68d156c1
fluentcms_googlemaps/views.py
fluentcms_googlemaps/views.py
import json from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, Http404, HttpResponseBadRequest from django.views.generic.detail import BaseDetailView from .models import Marker class MarkerDetailView(BaseDetailView): """ Simple view for fetching marker details. """...
import json from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, Http404 from django.views.generic.detail import BaseDetailView from .models import Marker class MarkerDetailView(BaseDetailView): """ Simple view for fetching marker details. """ # TODO: support dif...
Fix 500 error when no ID parameter is passed
Fix 500 error when no ID parameter is passed
Python
apache-2.0
edoburu/fluentcms-googlemaps,edoburu/fluentcms-googlemaps,edoburu/fluentcms-googlemaps
import json from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, Http404, HttpResponseBadRequest from django.views.generic.detail import BaseDetailView from .models import Marker class MarkerDetailView(BaseDetailView): """ Simple view for fetching marker details. """...
import json from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, Http404 from django.views.generic.detail import BaseDetailView from .models import Marker class MarkerDetailView(BaseDetailView): """ Simple view for fetching marker details. """ # TODO: support dif...
<commit_before>import json from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, Http404, HttpResponseBadRequest from django.views.generic.detail import BaseDetailView from .models import Marker class MarkerDetailView(BaseDetailView): """ Simple view for fetching marker d...
import json from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, Http404 from django.views.generic.detail import BaseDetailView from .models import Marker class MarkerDetailView(BaseDetailView): """ Simple view for fetching marker details. """ # TODO: support dif...
import json from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, Http404, HttpResponseBadRequest from django.views.generic.detail import BaseDetailView from .models import Marker class MarkerDetailView(BaseDetailView): """ Simple view for fetching marker details. """...
<commit_before>import json from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, Http404, HttpResponseBadRequest from django.views.generic.detail import BaseDetailView from .models import Marker class MarkerDetailView(BaseDetailView): """ Simple view for fetching marker d...
cdf60bc0b07c282e75fba747c8adedd165aa0abd
index.py
index.py
#!/usr/bin/env python2.7 from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) else: html = ...
#!/usr/bin/env python2.7 from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = request.args.get("lang") if request.args.get("lang") else choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == ...
Make the language changeable via a GET parameter.
Make the language changeable via a GET parameter.
Python
mit
YtvwlD/dyluna,YtvwlD/dyluna,YtvwlD/dyluna
#!/usr/bin/env python2.7 from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) else: html = ...
#!/usr/bin/env python2.7 from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = request.args.get("lang") if request.args.get("lang") else choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == ...
<commit_before>#!/usr/bin/env python2.7 from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) ...
#!/usr/bin/env python2.7 from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = request.args.get("lang") if request.args.get("lang") else choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == ...
#!/usr/bin/env python2.7 from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) else: html = ...
<commit_before>#!/usr/bin/env python2.7 from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) ...
8a9f707960c3b39488c9bbee6ce7f22c6fbfc853
web/config/local_settings.py
web/config/local_settings.py
import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): CLUSTER_SERVERS = ...
import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): MEMCACHE_HOSTS = o...
Fix memcache hosts setting from env
Fix memcache hosts setting from env Before this fix if one had set OS env vars for both CLUSTER_SERVERS and MEMCACHE_HOSTS the value of later would override the former and the graphite web application fails to show any metrics.
Python
apache-2.0
Banno/graphite-setup,Banno/graphite-setup,Banno/graphite-setup
import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): CLUSTER_SERVERS = ...
import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): MEMCACHE_HOSTS = o...
<commit_before>import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): CLU...
import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): MEMCACHE_HOSTS = o...
import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): CLUSTER_SERVERS = ...
<commit_before>import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): CLU...
31f3a4a5c388c7c021c103687fbc8c8a8a0be005
mythril/support/support_utils.py
mythril/support/support_utils.py
"""This module contains utility functions for the Mythril support package.""" from typing import Dict import logging import _pysha3 as sha3 log = logging.getLogger(__name__) class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict def __call__(cls,...
"""This module contains utility functions for the Mythril support package.""" from typing import Dict import logging import _pysha3 as sha3 log = logging.getLogger(__name__) class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict def __call__(cls,...
Make the hash function for generic case
Make the hash function for generic case
Python
mit
b-mueller/mythril,b-mueller/mythril,b-mueller/mythril,b-mueller/mythril
"""This module contains utility functions for the Mythril support package.""" from typing import Dict import logging import _pysha3 as sha3 log = logging.getLogger(__name__) class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict def __call__(cls,...
"""This module contains utility functions for the Mythril support package.""" from typing import Dict import logging import _pysha3 as sha3 log = logging.getLogger(__name__) class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict def __call__(cls,...
<commit_before>"""This module contains utility functions for the Mythril support package.""" from typing import Dict import logging import _pysha3 as sha3 log = logging.getLogger(__name__) class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict de...
"""This module contains utility functions for the Mythril support package.""" from typing import Dict import logging import _pysha3 as sha3 log = logging.getLogger(__name__) class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict def __call__(cls,...
"""This module contains utility functions for the Mythril support package.""" from typing import Dict import logging import _pysha3 as sha3 log = logging.getLogger(__name__) class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict def __call__(cls,...
<commit_before>"""This module contains utility functions for the Mythril support package.""" from typing import Dict import logging import _pysha3 as sha3 log = logging.getLogger(__name__) class Singleton(type): """A metaclass type implementing the singleton pattern.""" _instances = {} # type: Dict de...
17224d7db16865bc735f27b1f919c6146089d4fd
vumi/dispatchers/__init__.py
vumi/dispatchers/__init__.py
"""The vumi.dispatchers API.""" __all__ = ["BaseDispatchWorker", "BaseDispatchRouter", "SimpleDispatchRouter", "TransportToTransportRouter", "ToAddrRouter", "FromAddrMultiplexRouter", "UserGroupingRouter"] from vumi.dispatchers.base import (BaseDispatchWorker, BaseDispatchRouter, ...
"""The vumi.dispatchers API.""" __all__ = ["BaseDispatchWorker", "BaseDispatchRouter", "SimpleDispatchRouter", "TransportToTransportRouter", "ToAddrRouter", "FromAddrMultiplexRouter", "UserGroupingRouter", "ContentKeywordRouter"] from vumi.dispatchers.base import (BaseDispatchWorker, ...
Add ContentKeywordRouter to vumi.dispatchers API.
Add ContentKeywordRouter to vumi.dispatchers API.
Python
bsd-3-clause
TouK/vumi,vishwaprakashmishra/xmatrix,harrissoerja/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi,harrissoerja/vumi,vishwaprakashmishra/xmatrix,TouK/vumi
"""The vumi.dispatchers API.""" __all__ = ["BaseDispatchWorker", "BaseDispatchRouter", "SimpleDispatchRouter", "TransportToTransportRouter", "ToAddrRouter", "FromAddrMultiplexRouter", "UserGroupingRouter"] from vumi.dispatchers.base import (BaseDispatchWorker, BaseDispatchRouter, ...
"""The vumi.dispatchers API.""" __all__ = ["BaseDispatchWorker", "BaseDispatchRouter", "SimpleDispatchRouter", "TransportToTransportRouter", "ToAddrRouter", "FromAddrMultiplexRouter", "UserGroupingRouter", "ContentKeywordRouter"] from vumi.dispatchers.base import (BaseDispatchWorker, ...
<commit_before>"""The vumi.dispatchers API.""" __all__ = ["BaseDispatchWorker", "BaseDispatchRouter", "SimpleDispatchRouter", "TransportToTransportRouter", "ToAddrRouter", "FromAddrMultiplexRouter", "UserGroupingRouter"] from vumi.dispatchers.base import (BaseDispatchWorker, BaseDispatchRouter, ...
"""The vumi.dispatchers API.""" __all__ = ["BaseDispatchWorker", "BaseDispatchRouter", "SimpleDispatchRouter", "TransportToTransportRouter", "ToAddrRouter", "FromAddrMultiplexRouter", "UserGroupingRouter", "ContentKeywordRouter"] from vumi.dispatchers.base import (BaseDispatchWorker, ...
"""The vumi.dispatchers API.""" __all__ = ["BaseDispatchWorker", "BaseDispatchRouter", "SimpleDispatchRouter", "TransportToTransportRouter", "ToAddrRouter", "FromAddrMultiplexRouter", "UserGroupingRouter"] from vumi.dispatchers.base import (BaseDispatchWorker, BaseDispatchRouter, ...
<commit_before>"""The vumi.dispatchers API.""" __all__ = ["BaseDispatchWorker", "BaseDispatchRouter", "SimpleDispatchRouter", "TransportToTransportRouter", "ToAddrRouter", "FromAddrMultiplexRouter", "UserGroupingRouter"] from vumi.dispatchers.base import (BaseDispatchWorker, BaseDispatchRouter, ...
18a669f3fc9ebd5c1604d1f43fa7b93a2513a250
Rubik/GearRatios/gear_ratios.py
Rubik/GearRatios/gear_ratios.py
import threading # Sounds note: Could use http://simpleaudio.readthedocs.io/en/latest/installation.html class GearRatio (threading.Thread): PIN1 = 5 PIN2 = 6 STATE_IDLE = 1 STATE_START = 2 STATE_COUNTING = 3 STATE_RESULT = 4 RESULT_SOUNDS = [] #TODO add filenames for different result soun...
import threading # Sounds note: Could use http://simpleaudio.readthedocs.io/en/latest/installation.html class GearRatio (threading.Thread): PIN1 = 5 PIN2 = 6 STATE_QUIT = -1 STATE_IDLE = 1 STATE_START = 2 STATE_COUNTING = 3 STATE_RESULT = 4 RESULT_SOUNDS = [] #TODO add filenames for d...
Add basic state machine for gear ratios
Add basic state machine for gear ratios
Python
apache-2.0
RoboErik/RUBIK,RoboErik/RUBIK,RoboErik/RUBIK
import threading # Sounds note: Could use http://simpleaudio.readthedocs.io/en/latest/installation.html class GearRatio (threading.Thread): PIN1 = 5 PIN2 = 6 STATE_IDLE = 1 STATE_START = 2 STATE_COUNTING = 3 STATE_RESULT = 4 RESULT_SOUNDS = [] #TODO add filenames for different result soun...
import threading # Sounds note: Could use http://simpleaudio.readthedocs.io/en/latest/installation.html class GearRatio (threading.Thread): PIN1 = 5 PIN2 = 6 STATE_QUIT = -1 STATE_IDLE = 1 STATE_START = 2 STATE_COUNTING = 3 STATE_RESULT = 4 RESULT_SOUNDS = [] #TODO add filenames for d...
<commit_before>import threading # Sounds note: Could use http://simpleaudio.readthedocs.io/en/latest/installation.html class GearRatio (threading.Thread): PIN1 = 5 PIN2 = 6 STATE_IDLE = 1 STATE_START = 2 STATE_COUNTING = 3 STATE_RESULT = 4 RESULT_SOUNDS = [] #TODO add filenames for differ...
import threading # Sounds note: Could use http://simpleaudio.readthedocs.io/en/latest/installation.html class GearRatio (threading.Thread): PIN1 = 5 PIN2 = 6 STATE_QUIT = -1 STATE_IDLE = 1 STATE_START = 2 STATE_COUNTING = 3 STATE_RESULT = 4 RESULT_SOUNDS = [] #TODO add filenames for d...
import threading # Sounds note: Could use http://simpleaudio.readthedocs.io/en/latest/installation.html class GearRatio (threading.Thread): PIN1 = 5 PIN2 = 6 STATE_IDLE = 1 STATE_START = 2 STATE_COUNTING = 3 STATE_RESULT = 4 RESULT_SOUNDS = [] #TODO add filenames for different result soun...
<commit_before>import threading # Sounds note: Could use http://simpleaudio.readthedocs.io/en/latest/installation.html class GearRatio (threading.Thread): PIN1 = 5 PIN2 = 6 STATE_IDLE = 1 STATE_START = 2 STATE_COUNTING = 3 STATE_RESULT = 4 RESULT_SOUNDS = [] #TODO add filenames for differ...
c7f1759ef02c0fa12ca408dfac9d25227fbceba7
nova/policies/server_password.py
nova/policies/server_password.py
# Copyright 2016 Cloudbase Solutions Srl # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
# Copyright 2016 Cloudbase Solutions Srl # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
Introduce scope_types in server password policy
Introduce scope_types in server password policy oslo.policy introduced the scope_type feature which can control the access level at system-level and project-level. - https://docs.openstack.org/oslo.policy/latest/user/usage.html#setting-scope - http://specs.openstack.org/openstack/keystone-specs/specs/keystone/queens...
Python
apache-2.0
klmitch/nova,openstack/nova,klmitch/nova,openstack/nova,mahak/nova,mahak/nova,mahak/nova,klmitch/nova,klmitch/nova,openstack/nova
# Copyright 2016 Cloudbase Solutions Srl # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
# Copyright 2016 Cloudbase Solutions Srl # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
<commit_before># Copyright 2016 Cloudbase Solutions Srl # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
# Copyright 2016 Cloudbase Solutions Srl # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
# Copyright 2016 Cloudbase Solutions Srl # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
<commit_before># Copyright 2016 Cloudbase Solutions Srl # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
0aba3f8d1131b502beff1c249e55af88115950ae
migrations/versions/20140430220209_4093ccb6d914.py
migrations/versions/20140430220209_4093ccb6d914.py
"""empty message Revision ID: 4093ccb6d914 Revises: None Create Date: 2014-04-30 22:02:09.991428 """ # revision identifiers, used by Alembic. revision = '4093ccb6d914' down_revision = None from alembic import op import sqlalchemy as sa from datetime import datetime def upgrade(): op.create_table('gallery', ...
"""empty message Revision ID: 4093ccb6d914 Revises: None Create Date: 2014-04-30 22:02:09.991428 """ # revision identifiers, used by Alembic. revision = '4093ccb6d914' down_revision = None from alembic import op import sqlalchemy as sa from datetime import datetime def upgrade(): op.create_table('gallery', ...
Convert text columns to varchar for mysql
Convert text columns to varchar for mysql
Python
mit
taeram/ineffable,taeram/ineffable,taeram/ineffable
"""empty message Revision ID: 4093ccb6d914 Revises: None Create Date: 2014-04-30 22:02:09.991428 """ # revision identifiers, used by Alembic. revision = '4093ccb6d914' down_revision = None from alembic import op import sqlalchemy as sa from datetime import datetime def upgrade(): op.create_table('gallery', ...
"""empty message Revision ID: 4093ccb6d914 Revises: None Create Date: 2014-04-30 22:02:09.991428 """ # revision identifiers, used by Alembic. revision = '4093ccb6d914' down_revision = None from alembic import op import sqlalchemy as sa from datetime import datetime def upgrade(): op.create_table('gallery', ...
<commit_before>"""empty message Revision ID: 4093ccb6d914 Revises: None Create Date: 2014-04-30 22:02:09.991428 """ # revision identifiers, used by Alembic. revision = '4093ccb6d914' down_revision = None from alembic import op import sqlalchemy as sa from datetime import datetime def upgrade(): op.create_tabl...
"""empty message Revision ID: 4093ccb6d914 Revises: None Create Date: 2014-04-30 22:02:09.991428 """ # revision identifiers, used by Alembic. revision = '4093ccb6d914' down_revision = None from alembic import op import sqlalchemy as sa from datetime import datetime def upgrade(): op.create_table('gallery', ...
"""empty message Revision ID: 4093ccb6d914 Revises: None Create Date: 2014-04-30 22:02:09.991428 """ # revision identifiers, used by Alembic. revision = '4093ccb6d914' down_revision = None from alembic import op import sqlalchemy as sa from datetime import datetime def upgrade(): op.create_table('gallery', ...
<commit_before>"""empty message Revision ID: 4093ccb6d914 Revises: None Create Date: 2014-04-30 22:02:09.991428 """ # revision identifiers, used by Alembic. revision = '4093ccb6d914' down_revision = None from alembic import op import sqlalchemy as sa from datetime import datetime def upgrade(): op.create_tabl...
13544ca42db9947eaed7e82c4733683f1fc7c381
cobe/control.py
cobe/control.py
import argparse import logging import sys from . import commands parser = argparse.ArgumentParser(description="Cobe control") parser.add_argument("-b", "--brain", default="cobe.brain") parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS) subparsers = parser.add_subparsers(title="Commands") com...
import argparse import logging import sys from . import commands parser = argparse.ArgumentParser(description="Cobe control") parser.add_argument("-b", "--brain", default="cobe.brain") parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS) parser.add_argument("--instatrace", metavar="FILE", ...
Add a command line argument for enabling instatrace globally
Add a command line argument for enabling instatrace globally
Python
mit
LeMagnesium/cobe,meska/cobe,LeMagnesium/cobe,pteichman/cobe,wodim/cobe-ng,DarkMio/cobe,tiagochiavericosta/cobe,wodim/cobe-ng,tiagochiavericosta/cobe,pteichman/cobe,DarkMio/cobe,meska/cobe
import argparse import logging import sys from . import commands parser = argparse.ArgumentParser(description="Cobe control") parser.add_argument("-b", "--brain", default="cobe.brain") parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS) subparsers = parser.add_subparsers(title="Commands") com...
import argparse import logging import sys from . import commands parser = argparse.ArgumentParser(description="Cobe control") parser.add_argument("-b", "--brain", default="cobe.brain") parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS) parser.add_argument("--instatrace", metavar="FILE", ...
<commit_before>import argparse import logging import sys from . import commands parser = argparse.ArgumentParser(description="Cobe control") parser.add_argument("-b", "--brain", default="cobe.brain") parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS) subparsers = parser.add_subparsers(title=...
import argparse import logging import sys from . import commands parser = argparse.ArgumentParser(description="Cobe control") parser.add_argument("-b", "--brain", default="cobe.brain") parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS) parser.add_argument("--instatrace", metavar="FILE", ...
import argparse import logging import sys from . import commands parser = argparse.ArgumentParser(description="Cobe control") parser.add_argument("-b", "--brain", default="cobe.brain") parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS) subparsers = parser.add_subparsers(title="Commands") com...
<commit_before>import argparse import logging import sys from . import commands parser = argparse.ArgumentParser(description="Cobe control") parser.add_argument("-b", "--brain", default="cobe.brain") parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS) subparsers = parser.add_subparsers(title=...
58d04f636a01cb1d2cbf75414edcd819029058e4
packages/python-windows/setup.py
packages/python-windows/setup.py
#!/usr/bin/env python # ==================================================================== # Copyright (c) 2006 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://sub...
#!/usr/bin/env python # ==================================================================== # Copyright (c) 2006 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://sub...
Fix the python-windows installer generator by making it include the .dll files in the installer. That list originally consisted only of "*.dll". When the build system was modified to generate .pyd files for the binary modules, it was changed to "*.pyd". The Subversion libraries and the dependencies are still .dll files...
Fix the python-windows installer generator by making it include the .dll files in the installer. That list originally consisted only of "*.dll". When the build system was modified to generate .pyd files for the binary modules, it was changed to "*.pyd". The Subversion libraries and the dependencies are still .dll files...
Python
apache-2.0
YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion
#!/usr/bin/env python # ==================================================================== # Copyright (c) 2006 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://sub...
#!/usr/bin/env python # ==================================================================== # Copyright (c) 2006 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://sub...
<commit_before>#!/usr/bin/env python # ==================================================================== # Copyright (c) 2006 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also availabl...
#!/usr/bin/env python # ==================================================================== # Copyright (c) 2006 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://sub...
#!/usr/bin/env python # ==================================================================== # Copyright (c) 2006 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://sub...
<commit_before>#!/usr/bin/env python # ==================================================================== # Copyright (c) 2006 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also availabl...
93d2e33795e240407ab7e18aec67514124ff6713
app/__init__.py
app/__init__.py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from instance.config import app_config app = Flask(__name__) def EnvironmentName(environ): app.config.from_object(app_config[environ]) EnvironmentName('TestingConfig') databases = SQLAlchemy(app) from app.v1 import bucketlist
from flask import Flask from flask_sqlalchemy import SQLAlchemy from instance.config import app_config app = Flask(__name__) def EnvironmentName(environ): app.config.from_object(app_config[environ]) EnvironmentName('DevelopmentEnviron') databases = SQLAlchemy(app) from app.v1 import bucketlist
Change postman testing environment to development
Change postman testing environment to development
Python
mit
paulupendo/CP-2-Bucketlist-Application
from flask import Flask from flask_sqlalchemy import SQLAlchemy from instance.config import app_config app = Flask(__name__) def EnvironmentName(environ): app.config.from_object(app_config[environ]) EnvironmentName('TestingConfig') databases = SQLAlchemy(app) from app.v1 import bucketlist Change postman test...
from flask import Flask from flask_sqlalchemy import SQLAlchemy from instance.config import app_config app = Flask(__name__) def EnvironmentName(environ): app.config.from_object(app_config[environ]) EnvironmentName('DevelopmentEnviron') databases = SQLAlchemy(app) from app.v1 import bucketlist
<commit_before>from flask import Flask from flask_sqlalchemy import SQLAlchemy from instance.config import app_config app = Flask(__name__) def EnvironmentName(environ): app.config.from_object(app_config[environ]) EnvironmentName('TestingConfig') databases = SQLAlchemy(app) from app.v1 import bucketlist <com...
from flask import Flask from flask_sqlalchemy import SQLAlchemy from instance.config import app_config app = Flask(__name__) def EnvironmentName(environ): app.config.from_object(app_config[environ]) EnvironmentName('DevelopmentEnviron') databases = SQLAlchemy(app) from app.v1 import bucketlist
from flask import Flask from flask_sqlalchemy import SQLAlchemy from instance.config import app_config app = Flask(__name__) def EnvironmentName(environ): app.config.from_object(app_config[environ]) EnvironmentName('TestingConfig') databases = SQLAlchemy(app) from app.v1 import bucketlist Change postman test...
<commit_before>from flask import Flask from flask_sqlalchemy import SQLAlchemy from instance.config import app_config app = Flask(__name__) def EnvironmentName(environ): app.config.from_object(app_config[environ]) EnvironmentName('TestingConfig') databases = SQLAlchemy(app) from app.v1 import bucketlist <com...
cabe0f3659f210f07e84db11fe30a0d848b2a92b
partner_person/__openerp__.py
partner_person/__openerp__.py
# -*- coding: utf-8 -*- { 'name': 'Partners Persons Management', 'version': '1.0', 'category': 'Tools', 'sequence': 14, 'summary': '', 'description': """ Partners Persons Management =========================== Openerp consider a person those partners that have not "is_company" as true, now, t...
# -*- coding: utf-8 -*- { 'name': 'Partners Persons Management', 'version': '1.0', 'category': 'Tools', 'sequence': 14, 'summary': '', 'description': """ Partners Persons Management =========================== Openerp consider a person those partners that have not "is_company" as true, now, t...
FIX partner person not instalable
FIX partner person not instalable
Python
agpl-3.0
syci/ingadhoc-odoo-addons,ingadhoc/sale,adhoc-dev/account-financial-tools,ingadhoc/odoo-addons,adhoc-dev/account-financial-tools,adhoc-dev/odoo-addons,bmya/odoo-addons,ingadhoc/account-financial-tools,ClearCorp/account-financial-tools,dvitme/odoo-addons,maljac/odoo-addons,jorsea/odoo-addons,syci/ingadhoc-odoo-addons,ad...
# -*- coding: utf-8 -*- { 'name': 'Partners Persons Management', 'version': '1.0', 'category': 'Tools', 'sequence': 14, 'summary': '', 'description': """ Partners Persons Management =========================== Openerp consider a person those partners that have not "is_company" as true, now, t...
# -*- coding: utf-8 -*- { 'name': 'Partners Persons Management', 'version': '1.0', 'category': 'Tools', 'sequence': 14, 'summary': '', 'description': """ Partners Persons Management =========================== Openerp consider a person those partners that have not "is_company" as true, now, t...
<commit_before># -*- coding: utf-8 -*- { 'name': 'Partners Persons Management', 'version': '1.0', 'category': 'Tools', 'sequence': 14, 'summary': '', 'description': """ Partners Persons Management =========================== Openerp consider a person those partners that have not "is_company" ...
# -*- coding: utf-8 -*- { 'name': 'Partners Persons Management', 'version': '1.0', 'category': 'Tools', 'sequence': 14, 'summary': '', 'description': """ Partners Persons Management =========================== Openerp consider a person those partners that have not "is_company" as true, now, t...
# -*- coding: utf-8 -*- { 'name': 'Partners Persons Management', 'version': '1.0', 'category': 'Tools', 'sequence': 14, 'summary': '', 'description': """ Partners Persons Management =========================== Openerp consider a person those partners that have not "is_company" as true, now, t...
<commit_before># -*- coding: utf-8 -*- { 'name': 'Partners Persons Management', 'version': '1.0', 'category': 'Tools', 'sequence': 14, 'summary': '', 'description': """ Partners Persons Management =========================== Openerp consider a person those partners that have not "is_company" ...
0469c2aba43b20b76482eb9c42c7be19eb39b2a4
benchctl/benchctl.py
benchctl/benchctl.py
import click import repl as benchrepl @click.group() @click.option('--debug/--no-debug', default=False) def cli(debug): """Benchctl is a utility for interacting with benchd and benchd-aggregator servers to fetch data, program experiments, and control instruments. It is additionally used to configure and administr...
import click import repl as benchrepl CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.group(context_settings=CONTEXT_SETTINGS) @click.option('--debug/--no-debug', default=False) def cli(debug): """Benchctl is a utility for interacting with benchd and benchd-aggregator servers to fetch data, pr...
Add -h as an alternative help flag
Add -h as an alternative help flag
Python
bsd-3-clause
openlabequipment/benchd
import click import repl as benchrepl @click.group() @click.option('--debug/--no-debug', default=False) def cli(debug): """Benchctl is a utility for interacting with benchd and benchd-aggregator servers to fetch data, program experiments, and control instruments. It is additionally used to configure and administr...
import click import repl as benchrepl CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.group(context_settings=CONTEXT_SETTINGS) @click.option('--debug/--no-debug', default=False) def cli(debug): """Benchctl is a utility for interacting with benchd and benchd-aggregator servers to fetch data, pr...
<commit_before>import click import repl as benchrepl @click.group() @click.option('--debug/--no-debug', default=False) def cli(debug): """Benchctl is a utility for interacting with benchd and benchd-aggregator servers to fetch data, program experiments, and control instruments. It is additionally used to configur...
import click import repl as benchrepl CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.group(context_settings=CONTEXT_SETTINGS) @click.option('--debug/--no-debug', default=False) def cli(debug): """Benchctl is a utility for interacting with benchd and benchd-aggregator servers to fetch data, pr...
import click import repl as benchrepl @click.group() @click.option('--debug/--no-debug', default=False) def cli(debug): """Benchctl is a utility for interacting with benchd and benchd-aggregator servers to fetch data, program experiments, and control instruments. It is additionally used to configure and administr...
<commit_before>import click import repl as benchrepl @click.group() @click.option('--debug/--no-debug', default=False) def cli(debug): """Benchctl is a utility for interacting with benchd and benchd-aggregator servers to fetch data, program experiments, and control instruments. It is additionally used to configur...
5f1ccd3845e198495e33748b460ef6fa9858e925
app/settings.py
app/settings.py
import os EQ_RABBITMQ_URL = os.getenv('EQ_RABBITMQ_URL', 'amqp://admin:admin@localhost:5672/%2F') EQ_RABBITMQ_QUEUE_NAME = os.getenv('EQ_RABBITMQ_QUEUE_NAME', 'eq-submissions') EQ_RABBITMQ_TEST_QUEUE_NAME = os.getenv('EQ_RABBITMQ_TEST_QUEUE_NAME', 'eq-test') EQ_PRODUCTION = os.getenv("EQ_PRODUCTION", 'True') EQ_RRM_P...
import os EQ_RABBITMQ_URL = os.getenv('EQ_RABBITMQ_URL', 'amqp://admin:admin@localhost:5672/%2F') EQ_RABBITMQ_QUEUE_NAME = os.getenv('EQ_RABBITMQ_QUEUE_NAME', 'eq-submissions') EQ_RABBITMQ_TEST_QUEUE_NAME = os.getenv('EQ_RABBITMQ_TEST_QUEUE_NAME', 'eq-test') EQ_PRODUCTION = os.getenv("EQ_PRODUCTION", 'True') EQ_RRM_P...
Make sure there is a default for LOG Group
Make sure there is a default for LOG Group
Python
mit
ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner
import os EQ_RABBITMQ_URL = os.getenv('EQ_RABBITMQ_URL', 'amqp://admin:admin@localhost:5672/%2F') EQ_RABBITMQ_QUEUE_NAME = os.getenv('EQ_RABBITMQ_QUEUE_NAME', 'eq-submissions') EQ_RABBITMQ_TEST_QUEUE_NAME = os.getenv('EQ_RABBITMQ_TEST_QUEUE_NAME', 'eq-test') EQ_PRODUCTION = os.getenv("EQ_PRODUCTION", 'True') EQ_RRM_P...
import os EQ_RABBITMQ_URL = os.getenv('EQ_RABBITMQ_URL', 'amqp://admin:admin@localhost:5672/%2F') EQ_RABBITMQ_QUEUE_NAME = os.getenv('EQ_RABBITMQ_QUEUE_NAME', 'eq-submissions') EQ_RABBITMQ_TEST_QUEUE_NAME = os.getenv('EQ_RABBITMQ_TEST_QUEUE_NAME', 'eq-test') EQ_PRODUCTION = os.getenv("EQ_PRODUCTION", 'True') EQ_RRM_P...
<commit_before>import os EQ_RABBITMQ_URL = os.getenv('EQ_RABBITMQ_URL', 'amqp://admin:admin@localhost:5672/%2F') EQ_RABBITMQ_QUEUE_NAME = os.getenv('EQ_RABBITMQ_QUEUE_NAME', 'eq-submissions') EQ_RABBITMQ_TEST_QUEUE_NAME = os.getenv('EQ_RABBITMQ_TEST_QUEUE_NAME', 'eq-test') EQ_PRODUCTION = os.getenv("EQ_PRODUCTION", '...
import os EQ_RABBITMQ_URL = os.getenv('EQ_RABBITMQ_URL', 'amqp://admin:admin@localhost:5672/%2F') EQ_RABBITMQ_QUEUE_NAME = os.getenv('EQ_RABBITMQ_QUEUE_NAME', 'eq-submissions') EQ_RABBITMQ_TEST_QUEUE_NAME = os.getenv('EQ_RABBITMQ_TEST_QUEUE_NAME', 'eq-test') EQ_PRODUCTION = os.getenv("EQ_PRODUCTION", 'True') EQ_RRM_P...
import os EQ_RABBITMQ_URL = os.getenv('EQ_RABBITMQ_URL', 'amqp://admin:admin@localhost:5672/%2F') EQ_RABBITMQ_QUEUE_NAME = os.getenv('EQ_RABBITMQ_QUEUE_NAME', 'eq-submissions') EQ_RABBITMQ_TEST_QUEUE_NAME = os.getenv('EQ_RABBITMQ_TEST_QUEUE_NAME', 'eq-test') EQ_PRODUCTION = os.getenv("EQ_PRODUCTION", 'True') EQ_RRM_P...
<commit_before>import os EQ_RABBITMQ_URL = os.getenv('EQ_RABBITMQ_URL', 'amqp://admin:admin@localhost:5672/%2F') EQ_RABBITMQ_QUEUE_NAME = os.getenv('EQ_RABBITMQ_QUEUE_NAME', 'eq-submissions') EQ_RABBITMQ_TEST_QUEUE_NAME = os.getenv('EQ_RABBITMQ_TEST_QUEUE_NAME', 'eq-test') EQ_PRODUCTION = os.getenv("EQ_PRODUCTION", '...
292a5e5abd0cd3f6d1b30b4513a0bd1f22cefa1b
nova/version.py
nova/version.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
Mark 2012.2 final in prep for RC1
Mark 2012.2 final in prep for RC1 Mark 2012.2 Final=True as we prepare to publish Nova Folsom RC1 Change-Id: I72731bded164aeec3c7e47f6bfe44fb219a9ea56
Python
apache-2.0
paulmathews/nova,NewpTone/stacklab-nova,paulmathews/nova,NewpTone/stacklab-nova,savi-dev/nova,NewpTone/stacklab-nova,savi-dev/nova,savi-dev/nova,paulmathews/nova
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licens...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licens...
257d3bf6cee059de50872cd02b682e1a05d467e9
phylocommons/get_treestore.py
phylocommons/get_treestore.py
from treestore import Treestore import settings def get_treestore(): return Treestore(**settings.TREESTORE_KWARGS) def uri_from_tree_id(tree_id): return (settings.TREE_URI + tree_id) def tree_id_from_uri(uri): if uri.startswith(settings.TREE_URI): uri = uri.replace(settings.TREE_URI, '', 1) ...
from treestore import Treestore import settings def get_treestore(): return Treestore(**settings.TREESTORE_KWARGS) def uri_from_tree_id(tree_id): return Treestore.uri_from_id(tree_id, base_uri=settings.TREE_URI) def tree_id_from_uri(uri): if uri.startswith(settings.TREE_URI): uri = uri.replace(s...
Use treestore to get URIs from IDs.
Use treestore to get URIs from IDs.
Python
mit
NESCent/phylocommons,NESCent/phylocommons
from treestore import Treestore import settings def get_treestore(): return Treestore(**settings.TREESTORE_KWARGS) def uri_from_tree_id(tree_id): return (settings.TREE_URI + tree_id) def tree_id_from_uri(uri): if uri.startswith(settings.TREE_URI): uri = uri.replace(settings.TREE_URI, '', 1) ...
from treestore import Treestore import settings def get_treestore(): return Treestore(**settings.TREESTORE_KWARGS) def uri_from_tree_id(tree_id): return Treestore.uri_from_id(tree_id, base_uri=settings.TREE_URI) def tree_id_from_uri(uri): if uri.startswith(settings.TREE_URI): uri = uri.replace(s...
<commit_before>from treestore import Treestore import settings def get_treestore(): return Treestore(**settings.TREESTORE_KWARGS) def uri_from_tree_id(tree_id): return (settings.TREE_URI + tree_id) def tree_id_from_uri(uri): if uri.startswith(settings.TREE_URI): uri = uri.replace(settings.TREE_U...
from treestore import Treestore import settings def get_treestore(): return Treestore(**settings.TREESTORE_KWARGS) def uri_from_tree_id(tree_id): return Treestore.uri_from_id(tree_id, base_uri=settings.TREE_URI) def tree_id_from_uri(uri): if uri.startswith(settings.TREE_URI): uri = uri.replace(s...
from treestore import Treestore import settings def get_treestore(): return Treestore(**settings.TREESTORE_KWARGS) def uri_from_tree_id(tree_id): return (settings.TREE_URI + tree_id) def tree_id_from_uri(uri): if uri.startswith(settings.TREE_URI): uri = uri.replace(settings.TREE_URI, '', 1) ...
<commit_before>from treestore import Treestore import settings def get_treestore(): return Treestore(**settings.TREESTORE_KWARGS) def uri_from_tree_id(tree_id): return (settings.TREE_URI + tree_id) def tree_id_from_uri(uri): if uri.startswith(settings.TREE_URI): uri = uri.replace(settings.TREE_U...
25e694675d3d2ef8a24f6d0cdd978f42465ae2dc
xdocker/clean_logs.py
xdocker/clean_logs.py
#!/usr/bin/env python # encoding: utf-8 import os import datetime from config import USER_DIRECTORY, LOG_DIRECTORY_NAME, STORE_LOGS NOW = datetime.datetime.now() def clean_log(filepath): delete = False with open(filepath) as fp: line = fp.readline() try: date_str = ' '.join(line...
#!/usr/bin/env python # encoding: utf-8 import os import datetime from config import USER_DIRECTORY, LOG_DIRECTORY_NAME, STORE_LOGS NOW = datetime.datetime.now() def clean_log(filepath): delete = False with open(filepath) as fp: line = fp.readline() try: date_str = ' '.join(line...
Fix clean logs script wrong date parsing
Fix clean logs script wrong date parsing
Python
apache-2.0
XDocker/Engine,XDocker/Engine
#!/usr/bin/env python # encoding: utf-8 import os import datetime from config import USER_DIRECTORY, LOG_DIRECTORY_NAME, STORE_LOGS NOW = datetime.datetime.now() def clean_log(filepath): delete = False with open(filepath) as fp: line = fp.readline() try: date_str = ' '.join(line...
#!/usr/bin/env python # encoding: utf-8 import os import datetime from config import USER_DIRECTORY, LOG_DIRECTORY_NAME, STORE_LOGS NOW = datetime.datetime.now() def clean_log(filepath): delete = False with open(filepath) as fp: line = fp.readline() try: date_str = ' '.join(line...
<commit_before>#!/usr/bin/env python # encoding: utf-8 import os import datetime from config import USER_DIRECTORY, LOG_DIRECTORY_NAME, STORE_LOGS NOW = datetime.datetime.now() def clean_log(filepath): delete = False with open(filepath) as fp: line = fp.readline() try: date_str ...
#!/usr/bin/env python # encoding: utf-8 import os import datetime from config import USER_DIRECTORY, LOG_DIRECTORY_NAME, STORE_LOGS NOW = datetime.datetime.now() def clean_log(filepath): delete = False with open(filepath) as fp: line = fp.readline() try: date_str = ' '.join(line...
#!/usr/bin/env python # encoding: utf-8 import os import datetime from config import USER_DIRECTORY, LOG_DIRECTORY_NAME, STORE_LOGS NOW = datetime.datetime.now() def clean_log(filepath): delete = False with open(filepath) as fp: line = fp.readline() try: date_str = ' '.join(line...
<commit_before>#!/usr/bin/env python # encoding: utf-8 import os import datetime from config import USER_DIRECTORY, LOG_DIRECTORY_NAME, STORE_LOGS NOW = datetime.datetime.now() def clean_log(filepath): delete = False with open(filepath) as fp: line = fp.readline() try: date_str ...
05f95bae2c04cb07739b220df1a60577016a1f53
yolapy/models/site.py
yolapy/models/site.py
from six import iteritems from yolapy.services import Yola class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self.fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, other): ret...
from six import iteritems from yolapy.services import Yola class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self._fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, other): re...
Change Site.fields to protected Site._fields
Change Site.fields to protected Site._fields
Python
mit
yola/yolapy
from six import iteritems from yolapy.services import Yola class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self.fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, other): ret...
from six import iteritems from yolapy.services import Yola class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self._fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, other): re...
<commit_before>from six import iteritems from yolapy.services import Yola class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self.fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, othe...
from six import iteritems from yolapy.services import Yola class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self._fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, other): re...
from six import iteritems from yolapy.services import Yola class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self.fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, other): ret...
<commit_before>from six import iteritems from yolapy.services import Yola class Site(object): """Represents a Site resource on the Yola API.""" def __init__(self, **kwargs): self.fields = kwargs for key, val in iteritems(kwargs): setattr(self, key, val) def __eq__(self, othe...
853dc6b254c66807fd6c44b374c89b90069f55b5
Lib/test/test_startfile.py
Lib/test/test_startfile.py
# Ridiculously simple test of the os.startfile function for Windows. # # empty.vbs is an empty file (except for a comment), which does # nothing when run with cscript or wscript. # # A possible improvement would be to have empty.vbs do something that # we can detect here, to make sure that not only the os.startfile() #...
# Ridiculously simple test of the os.startfile function for Windows. # # empty.vbs is an empty file (except for a comment), which does # nothing when run with cscript or wscript. # # A possible improvement would be to have empty.vbs do something that # we can detect here, to make sure that not only the os.startfile() #...
Change the import statement so that the test is skipped when os.startfile is not present.
Change the import statement so that the test is skipped when os.startfile is not present.
Python
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
# Ridiculously simple test of the os.startfile function for Windows. # # empty.vbs is an empty file (except for a comment), which does # nothing when run with cscript or wscript. # # A possible improvement would be to have empty.vbs do something that # we can detect here, to make sure that not only the os.startfile() #...
# Ridiculously simple test of the os.startfile function for Windows. # # empty.vbs is an empty file (except for a comment), which does # nothing when run with cscript or wscript. # # A possible improvement would be to have empty.vbs do something that # we can detect here, to make sure that not only the os.startfile() #...
<commit_before># Ridiculously simple test of the os.startfile function for Windows. # # empty.vbs is an empty file (except for a comment), which does # nothing when run with cscript or wscript. # # A possible improvement would be to have empty.vbs do something that # we can detect here, to make sure that not only the o...
# Ridiculously simple test of the os.startfile function for Windows. # # empty.vbs is an empty file (except for a comment), which does # nothing when run with cscript or wscript. # # A possible improvement would be to have empty.vbs do something that # we can detect here, to make sure that not only the os.startfile() #...
# Ridiculously simple test of the os.startfile function for Windows. # # empty.vbs is an empty file (except for a comment), which does # nothing when run with cscript or wscript. # # A possible improvement would be to have empty.vbs do something that # we can detect here, to make sure that not only the os.startfile() #...
<commit_before># Ridiculously simple test of the os.startfile function for Windows. # # empty.vbs is an empty file (except for a comment), which does # nothing when run with cscript or wscript. # # A possible improvement would be to have empty.vbs do something that # we can detect here, to make sure that not only the o...
4a5ea880b77e44fa20129e6195cf37d5d72427f3
webpay/model/model.py
webpay/model/model.py
import json class Model: def __init__(self, client, data, conversion = None): self._client = client self._data = data for k, v in data.items(): if conversion is None: self.__dict__[k] = v else: conv = conversion(k) sel...
import json class Model: def __init__(self, client, data, conversion = None): self._client = client self._data = data for k, v in data.items(): if conversion is None: self.__dict__[k] = v else: conv = conversion(k) sel...
Use type's module and name to show full class path correctly
Use type's module and name to show full class path correctly
Python
mit
yamaneko1212/webpay-python
import json class Model: def __init__(self, client, data, conversion = None): self._client = client self._data = data for k, v in data.items(): if conversion is None: self.__dict__[k] = v else: conv = conversion(k) sel...
import json class Model: def __init__(self, client, data, conversion = None): self._client = client self._data = data for k, v in data.items(): if conversion is None: self.__dict__[k] = v else: conv = conversion(k) sel...
<commit_before>import json class Model: def __init__(self, client, data, conversion = None): self._client = client self._data = data for k, v in data.items(): if conversion is None: self.__dict__[k] = v else: conv = conversion(k) ...
import json class Model: def __init__(self, client, data, conversion = None): self._client = client self._data = data for k, v in data.items(): if conversion is None: self.__dict__[k] = v else: conv = conversion(k) sel...
import json class Model: def __init__(self, client, data, conversion = None): self._client = client self._data = data for k, v in data.items(): if conversion is None: self.__dict__[k] = v else: conv = conversion(k) sel...
<commit_before>import json class Model: def __init__(self, client, data, conversion = None): self._client = client self._data = data for k, v in data.items(): if conversion is None: self.__dict__[k] = v else: conv = conversion(k) ...
9e22082a280babb1e0880fe24fa17c45aac09515
docker-nodev.py
docker-nodev.py
from __future__ import print_function import subprocess import sys DOCKER_CREATE_IN = 'docker create -it nodev {}' DOCKER_SIMPLE_CMD_IN = 'docker {} {container_id}' def nodev(argv=()): container_id = subprocess.check_output(DOCKER_CREATE_IN.format(' '.join(argv)), shell=True).strip() print('creating conta...
from __future__ import print_function import subprocess import sys DOCKER_CREATE_IN = 'docker create -it nodev {}' DOCKER_SIMPLE_CMD_IN = 'docker {} {container_id}' def nodev(argv=()): container_id = subprocess.check_output(DOCKER_CREATE_IN.format(' '.join(argv)), shell=True).decode('utf-8').strip() print...
Fix python3 crash and cleaner error reporting.
Fix python3 crash and cleaner error reporting.
Python
mit
nodev-io/nodev-starter-kit,nodev-io/nodev-tutorial,nodev-io/nodev-starter-kit
from __future__ import print_function import subprocess import sys DOCKER_CREATE_IN = 'docker create -it nodev {}' DOCKER_SIMPLE_CMD_IN = 'docker {} {container_id}' def nodev(argv=()): container_id = subprocess.check_output(DOCKER_CREATE_IN.format(' '.join(argv)), shell=True).strip() print('creating conta...
from __future__ import print_function import subprocess import sys DOCKER_CREATE_IN = 'docker create -it nodev {}' DOCKER_SIMPLE_CMD_IN = 'docker {} {container_id}' def nodev(argv=()): container_id = subprocess.check_output(DOCKER_CREATE_IN.format(' '.join(argv)), shell=True).decode('utf-8').strip() print...
<commit_before> from __future__ import print_function import subprocess import sys DOCKER_CREATE_IN = 'docker create -it nodev {}' DOCKER_SIMPLE_CMD_IN = 'docker {} {container_id}' def nodev(argv=()): container_id = subprocess.check_output(DOCKER_CREATE_IN.format(' '.join(argv)), shell=True).strip() print(...
from __future__ import print_function import subprocess import sys DOCKER_CREATE_IN = 'docker create -it nodev {}' DOCKER_SIMPLE_CMD_IN = 'docker {} {container_id}' def nodev(argv=()): container_id = subprocess.check_output(DOCKER_CREATE_IN.format(' '.join(argv)), shell=True).decode('utf-8').strip() print...
from __future__ import print_function import subprocess import sys DOCKER_CREATE_IN = 'docker create -it nodev {}' DOCKER_SIMPLE_CMD_IN = 'docker {} {container_id}' def nodev(argv=()): container_id = subprocess.check_output(DOCKER_CREATE_IN.format(' '.join(argv)), shell=True).strip() print('creating conta...
<commit_before> from __future__ import print_function import subprocess import sys DOCKER_CREATE_IN = 'docker create -it nodev {}' DOCKER_SIMPLE_CMD_IN = 'docker {} {container_id}' def nodev(argv=()): container_id = subprocess.check_output(DOCKER_CREATE_IN.format(' '.join(argv)), shell=True).strip() print(...
87bb90370b8d7439989072ae17634dd30276f24c
yanico/config.py
yanico/config.py
# Copyright 2015-2016 Masayuki Yamamoto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
# Copyright 2015-2016 Masayuki Yamamoto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
Add docstring into load function
Add docstring into load function Describe which file parse at least.
Python
apache-2.0
ma8ma/yanico
# Copyright 2015-2016 Masayuki Yamamoto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
# Copyright 2015-2016 Masayuki Yamamoto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
<commit_before># Copyright 2015-2016 Masayuki Yamamoto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
# Copyright 2015-2016 Masayuki Yamamoto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
# Copyright 2015-2016 Masayuki Yamamoto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
<commit_before># Copyright 2015-2016 Masayuki Yamamoto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
3ce0aef8d546f83485c1048dac9e9524f2501552
src/wagtail_personalisation/blocks.py
src/wagtail_personalisation/blocks.py
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from wagtail.core import blocks from wagtail_personalisation.adapters import get_segment_adapter from wagtail_personalisation.models import Segment def list_segment_choices(): for pk, name in Segment...
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from wagtail.core import blocks from wagtail_personalisation.adapters import get_segment_adapter from wagtail_personalisation.models import Segment def list_segment_choices(): yield -1, ("Show to eve...
Add an option to show a personalised block to everyone
Add an option to show a personalised block to everyone
Python
mit
LabD/wagtail-personalisation,LabD/wagtail-personalisation,LabD/wagtail-personalisation
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from wagtail.core import blocks from wagtail_personalisation.adapters import get_segment_adapter from wagtail_personalisation.models import Segment def list_segment_choices(): for pk, name in Segment...
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from wagtail.core import blocks from wagtail_personalisation.adapters import get_segment_adapter from wagtail_personalisation.models import Segment def list_segment_choices(): yield -1, ("Show to eve...
<commit_before>from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from wagtail.core import blocks from wagtail_personalisation.adapters import get_segment_adapter from wagtail_personalisation.models import Segment def list_segment_choices(): for pk, ...
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from wagtail.core import blocks from wagtail_personalisation.adapters import get_segment_adapter from wagtail_personalisation.models import Segment def list_segment_choices(): yield -1, ("Show to eve...
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from wagtail.core import blocks from wagtail_personalisation.adapters import get_segment_adapter from wagtail_personalisation.models import Segment def list_segment_choices(): for pk, name in Segment...
<commit_before>from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from wagtail.core import blocks from wagtail_personalisation.adapters import get_segment_adapter from wagtail_personalisation.models import Segment def list_segment_choices(): for pk, ...
cbeabd95e172ae213a3e95f2285b4ccc00a80254
src/you_get/extractors/dailymotion.py
src/you_get/extractors/dailymotion.py
#!/usr/bin/env python __all__ = ['dailymotion_download'] from ..common import * def dailymotion_download(url, output_dir = '.', merge = True, info_only = False): """Downloads Dailymotion videos by URL. """ html = get_content(url) info = json.loads(match1(html, r'qualities":({.+?}),"')) title = m...
#!/usr/bin/env python __all__ = ['dailymotion_download'] from ..common import * def dailymotion_download(url, output_dir = '.', merge = True, info_only = False): """Downloads Dailymotion videos by URL. """ html = get_content(url) info = json.loads(match1(html, r'qualities":({.+?}),"')) title = m...
Fix problems with videos that do not have 720p mode
Fix problems with videos that do not have 720p mode
Python
mit
linhua55/you-get,jindaxia/you-get,qzane/you-get,cnbeining/you-get,zmwangx/you-get,linhua55/you-get,Red54/you-get,lilydjwg/you-get,xyuanmu/you-get,qzane/you-get,zmwangx/you-get,lilydjwg/you-get,smart-techs/you-get,specter4mjy/you-get,xyuanmu/you-get,smart-techs/you-get,cnbeining/you-get
#!/usr/bin/env python __all__ = ['dailymotion_download'] from ..common import * def dailymotion_download(url, output_dir = '.', merge = True, info_only = False): """Downloads Dailymotion videos by URL. """ html = get_content(url) info = json.loads(match1(html, r'qualities":({.+?}),"')) title = m...
#!/usr/bin/env python __all__ = ['dailymotion_download'] from ..common import * def dailymotion_download(url, output_dir = '.', merge = True, info_only = False): """Downloads Dailymotion videos by URL. """ html = get_content(url) info = json.loads(match1(html, r'qualities":({.+?}),"')) title = m...
<commit_before>#!/usr/bin/env python __all__ = ['dailymotion_download'] from ..common import * def dailymotion_download(url, output_dir = '.', merge = True, info_only = False): """Downloads Dailymotion videos by URL. """ html = get_content(url) info = json.loads(match1(html, r'qualities":({.+?}),"')...
#!/usr/bin/env python __all__ = ['dailymotion_download'] from ..common import * def dailymotion_download(url, output_dir = '.', merge = True, info_only = False): """Downloads Dailymotion videos by URL. """ html = get_content(url) info = json.loads(match1(html, r'qualities":({.+?}),"')) title = m...
#!/usr/bin/env python __all__ = ['dailymotion_download'] from ..common import * def dailymotion_download(url, output_dir = '.', merge = True, info_only = False): """Downloads Dailymotion videos by URL. """ html = get_content(url) info = json.loads(match1(html, r'qualities":({.+?}),"')) title = m...
<commit_before>#!/usr/bin/env python __all__ = ['dailymotion_download'] from ..common import * def dailymotion_download(url, output_dir = '.', merge = True, info_only = False): """Downloads Dailymotion videos by URL. """ html = get_content(url) info = json.loads(match1(html, r'qualities":({.+?}),"')...
71b917eabce9b520d8f7568d1825fa451ea2b8fb
menpofit/aam/result.py
menpofit/aam/result.py
from __future__ import division from menpofit.result import ( ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult) # TODO: document me! # TODO: handle costs class AAMAlgorithmResult(ParametricAlgorithmResult): r""" """ def __init__(self, image, fitter, shape_parameters, ...
from __future__ import division from menpofit.result import ( ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult) # TODO: document me! # TODO: handle costs class AAMAlgorithmResult(ParametricAlgorithmResult): r""" """ def __init__(self, image, fitter, shape_parameters, ...
Make shape a property for LinearAAMAlgorithmResult
Make shape a property for LinearAAMAlgorithmResult
Python
bsd-3-clause
yuxiang-zhou/menpofit,grigorisg9gr/menpofit,grigorisg9gr/menpofit,yuxiang-zhou/menpofit
from __future__ import division from menpofit.result import ( ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult) # TODO: document me! # TODO: handle costs class AAMAlgorithmResult(ParametricAlgorithmResult): r""" """ def __init__(self, image, fitter, shape_parameters, ...
from __future__ import division from menpofit.result import ( ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult) # TODO: document me! # TODO: handle costs class AAMAlgorithmResult(ParametricAlgorithmResult): r""" """ def __init__(self, image, fitter, shape_parameters, ...
<commit_before>from __future__ import division from menpofit.result import ( ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult) # TODO: document me! # TODO: handle costs class AAMAlgorithmResult(ParametricAlgorithmResult): r""" """ def __init__(self, image, fitter, shape_parame...
from __future__ import division from menpofit.result import ( ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult) # TODO: document me! # TODO: handle costs class AAMAlgorithmResult(ParametricAlgorithmResult): r""" """ def __init__(self, image, fitter, shape_parameters, ...
from __future__ import division from menpofit.result import ( ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult) # TODO: document me! # TODO: handle costs class AAMAlgorithmResult(ParametricAlgorithmResult): r""" """ def __init__(self, image, fitter, shape_parameters, ...
<commit_before>from __future__ import division from menpofit.result import ( ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult) # TODO: document me! # TODO: handle costs class AAMAlgorithmResult(ParametricAlgorithmResult): r""" """ def __init__(self, image, fitter, shape_parame...
62c51799953c1299e7c89c61a23270bf55e9cd69
PortalEnrollment/models.py
PortalEnrollment/models.py
from django.db import models # Create your models here.
from django.db import models from Portal.models import CharacterAttribute from django.utils.translation import ugettext as _ # Create your models here. class Enrollment(models.Model): roles = models.ManyToManyField(_('Role'), CharacterAttribute) open = models.BooleanField(_('Open Enrollment'), default=False) ...
Add first model for Enrollment application
Add first model for Enrollment application
Python
mit
elryndir/GuildPortal,elryndir/GuildPortal
from django.db import models # Create your models here. Add first model for Enrollment application
from django.db import models from Portal.models import CharacterAttribute from django.utils.translation import ugettext as _ # Create your models here. class Enrollment(models.Model): roles = models.ManyToManyField(_('Role'), CharacterAttribute) open = models.BooleanField(_('Open Enrollment'), default=False) ...
<commit_before>from django.db import models # Create your models here. <commit_msg>Add first model for Enrollment application<commit_after>
from django.db import models from Portal.models import CharacterAttribute from django.utils.translation import ugettext as _ # Create your models here. class Enrollment(models.Model): roles = models.ManyToManyField(_('Role'), CharacterAttribute) open = models.BooleanField(_('Open Enrollment'), default=False) ...
from django.db import models # Create your models here. Add first model for Enrollment applicationfrom django.db import models from Portal.models import CharacterAttribute from django.utils.translation import ugettext as _ # Create your models here. class Enrollment(models.Model): roles = models.ManyToManyField(...
<commit_before>from django.db import models # Create your models here. <commit_msg>Add first model for Enrollment application<commit_after>from django.db import models from Portal.models import CharacterAttribute from django.utils.translation import ugettext as _ # Create your models here. class Enrollment(models.Mo...
e96ede7ad3753bfed461eca83b1cd77e8bccd180
pylinks/links/search_indexes.py
pylinks/links/search_indexes.py
from haystack import indexes from pylinks.links.models import Link class LinkIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Link
from haystack import indexes from pylinks.links.models import Link class LinkIndex(indexes.RealTimeSearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Link
Switch to real-time index (easier for low volume)
Switch to real-time index (easier for low volume)
Python
mit
michaelmior/pylinks,michaelmior/pylinks,michaelmior/pylinks
from haystack import indexes from pylinks.links.models import Link class LinkIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Link Switch to real-time index (easier for low volume)
from haystack import indexes from pylinks.links.models import Link class LinkIndex(indexes.RealTimeSearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Link
<commit_before>from haystack import indexes from pylinks.links.models import Link class LinkIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Link <commit_msg>Switch to real-time index (easier for low volume)<commit_a...
from haystack import indexes from pylinks.links.models import Link class LinkIndex(indexes.RealTimeSearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Link
from haystack import indexes from pylinks.links.models import Link class LinkIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Link Switch to real-time index (easier for low volume)from haystack import indexes from py...
<commit_before>from haystack import indexes from pylinks.links.models import Link class LinkIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Link <commit_msg>Switch to real-time index (easier for low volume)<commit_a...
f189143309f41766e8e8ad24d96ee68ba6584cb9
rcamp/rcamp/settings/logging.py
rcamp/rcamp/settings/logging.py
import os from .toggles import * if not DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST') EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT')) else: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' LOGGING = { 'vers...
import os from .toggles import * if not DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST') EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT')) else: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' LOGGING = { 'vers...
Add handler and logger for management commands
Add handler and logger for management commands
Python
mit
ResearchComputing/RCAMP,ResearchComputing/RCAMP,ResearchComputing/RCAMP,ResearchComputing/RCAMP
import os from .toggles import * if not DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST') EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT')) else: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' LOGGING = { 'vers...
import os from .toggles import * if not DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST') EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT')) else: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' LOGGING = { 'vers...
<commit_before>import os from .toggles import * if not DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST') EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT')) else: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' LOGGIN...
import os from .toggles import * if not DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST') EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT')) else: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' LOGGING = { 'vers...
import os from .toggles import * if not DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST') EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT')) else: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' LOGGING = { 'vers...
<commit_before>import os from .toggles import * if not DEBUG: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = os.environ.get('RCAMP_EMAIL_HOST') EMAIL_PORT = int(os.environ.get('RCAMP_EMAIL_PORT')) else: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' LOGGIN...
2896d1d0507ac312ab6246c3ccb33bbb6bc6d331
bluebottle/common/management/commands/makemessages.py
bluebottle/common/management/commands/makemessages.py
import json import codecs import tempfile from django.core.management.commands.makemessages import Command as BaseCommand class Command(BaseCommand): """ Extend the makemessages to include some of the fixtures """ fixtures = [ ('bb_projects', 'project_data.json'), ('bb_tasks', 'skills.json'),...
import json import codecs import tempfile from django.core.management.commands.makemessages import Command as BaseCommand class Command(BaseCommand): """ Extend the makemessages to include some of the fixtures """ fixtures = [ ('bb_projects', 'project_data.json'), ('bb_tasks', 'skills.json'),...
Add a context to the fixture translations
Add a context to the fixture translations
Python
bsd-3-clause
onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle
import json import codecs import tempfile from django.core.management.commands.makemessages import Command as BaseCommand class Command(BaseCommand): """ Extend the makemessages to include some of the fixtures """ fixtures = [ ('bb_projects', 'project_data.json'), ('bb_tasks', 'skills.json'),...
import json import codecs import tempfile from django.core.management.commands.makemessages import Command as BaseCommand class Command(BaseCommand): """ Extend the makemessages to include some of the fixtures """ fixtures = [ ('bb_projects', 'project_data.json'), ('bb_tasks', 'skills.json'),...
<commit_before>import json import codecs import tempfile from django.core.management.commands.makemessages import Command as BaseCommand class Command(BaseCommand): """ Extend the makemessages to include some of the fixtures """ fixtures = [ ('bb_projects', 'project_data.json'), ('bb_tasks', ...
import json import codecs import tempfile from django.core.management.commands.makemessages import Command as BaseCommand class Command(BaseCommand): """ Extend the makemessages to include some of the fixtures """ fixtures = [ ('bb_projects', 'project_data.json'), ('bb_tasks', 'skills.json'),...
import json import codecs import tempfile from django.core.management.commands.makemessages import Command as BaseCommand class Command(BaseCommand): """ Extend the makemessages to include some of the fixtures """ fixtures = [ ('bb_projects', 'project_data.json'), ('bb_tasks', 'skills.json'),...
<commit_before>import json import codecs import tempfile from django.core.management.commands.makemessages import Command as BaseCommand class Command(BaseCommand): """ Extend the makemessages to include some of the fixtures """ fixtures = [ ('bb_projects', 'project_data.json'), ('bb_tasks', ...
cea2d67bf2f806c295a6c03894efa5c8bc0644a1
steamplaytime/app.py
steamplaytime/app.py
class App(object): def __init__(self, ID, name): self.ID = ID self.name = name self.date = [] self.minutes = [] self.last_day = [] def id_str(self): return str(self.ID) def get_db_playtime(self, cursor): query = 'SELECT time_of_record, minutes_played...
class App(object): def __init__(self, ID, name): self.ID = ID self.name = name self.date = [] self.minutes = [] self.last_day = [] def id_str(self): return str(self.ID) def get_db_playtime(self, cursor): query = 'SELECT time_of_record, minutes_played...
Fix abnormally big spikes in graph
FIX: Fix abnormally big spikes in graph
Python
mit
fsteffek/steamplog
class App(object): def __init__(self, ID, name): self.ID = ID self.name = name self.date = [] self.minutes = [] self.last_day = [] def id_str(self): return str(self.ID) def get_db_playtime(self, cursor): query = 'SELECT time_of_record, minutes_played...
class App(object): def __init__(self, ID, name): self.ID = ID self.name = name self.date = [] self.minutes = [] self.last_day = [] def id_str(self): return str(self.ID) def get_db_playtime(self, cursor): query = 'SELECT time_of_record, minutes_played...
<commit_before>class App(object): def __init__(self, ID, name): self.ID = ID self.name = name self.date = [] self.minutes = [] self.last_day = [] def id_str(self): return str(self.ID) def get_db_playtime(self, cursor): query = 'SELECT time_of_record,...
class App(object): def __init__(self, ID, name): self.ID = ID self.name = name self.date = [] self.minutes = [] self.last_day = [] def id_str(self): return str(self.ID) def get_db_playtime(self, cursor): query = 'SELECT time_of_record, minutes_played...
class App(object): def __init__(self, ID, name): self.ID = ID self.name = name self.date = [] self.minutes = [] self.last_day = [] def id_str(self): return str(self.ID) def get_db_playtime(self, cursor): query = 'SELECT time_of_record, minutes_played...
<commit_before>class App(object): def __init__(self, ID, name): self.ID = ID self.name = name self.date = [] self.minutes = [] self.last_day = [] def id_str(self): return str(self.ID) def get_db_playtime(self, cursor): query = 'SELECT time_of_record,...
8277a92ed16516a60d7abaaee20603017a511d8e
setup.py
setup.py
# # This file is part of gruvi. Gruvi is free software available under the terms # of the MIT license. See the file "LICENSE" that was provided together with # this source file for the licensing terms. # # Copyright (c) 2012 the gruvi authors. See the file "AUTHORS" for a complete # list. from setuptools import setup ...
# # This file is part of gruvi. Gruvi is free software available under the terms # of the MIT license. See the file "LICENSE" that was provided together with # this source file for the licensing terms. # # Copyright (c) 2012 the gruvi authors. See the file "AUTHORS" for a complete # list. from setuptools import setup ...
Add missing dependency for pyuv.
Add missing dependency for pyuv.
Python
mit
geertj/gruvi,geertj/gruvi,swegener/gruvi,swegener/gruvi
# # This file is part of gruvi. Gruvi is free software available under the terms # of the MIT license. See the file "LICENSE" that was provided together with # this source file for the licensing terms. # # Copyright (c) 2012 the gruvi authors. See the file "AUTHORS" for a complete # list. from setuptools import setup ...
# # This file is part of gruvi. Gruvi is free software available under the terms # of the MIT license. See the file "LICENSE" that was provided together with # this source file for the licensing terms. # # Copyright (c) 2012 the gruvi authors. See the file "AUTHORS" for a complete # list. from setuptools import setup ...
<commit_before># # This file is part of gruvi. Gruvi is free software available under the terms # of the MIT license. See the file "LICENSE" that was provided together with # this source file for the licensing terms. # # Copyright (c) 2012 the gruvi authors. See the file "AUTHORS" for a complete # list. from setuptool...
# # This file is part of gruvi. Gruvi is free software available under the terms # of the MIT license. See the file "LICENSE" that was provided together with # this source file for the licensing terms. # # Copyright (c) 2012 the gruvi authors. See the file "AUTHORS" for a complete # list. from setuptools import setup ...
# # This file is part of gruvi. Gruvi is free software available under the terms # of the MIT license. See the file "LICENSE" that was provided together with # this source file for the licensing terms. # # Copyright (c) 2012 the gruvi authors. See the file "AUTHORS" for a complete # list. from setuptools import setup ...
<commit_before># # This file is part of gruvi. Gruvi is free software available under the terms # of the MIT license. See the file "LICENSE" that was provided together with # this source file for the licensing terms. # # Copyright (c) 2012 the gruvi authors. See the file "AUTHORS" for a complete # list. from setuptool...
2a782a354bfc403c86b84e31c6fcce8d4135a2c9
setup.py
setup.py
import os from setuptools import setup from pyspeedtest import __program__, __version__ # allow setup.py to be run from any path os.chdir(os.path.dirname(os.path.abspath(__file__))) setup( name=__program__, version=__version__, py_modules=['pyspeedtest'], scripts=['bin/pyspeedtest'], license='MIT'...
import os from setuptools import setup from pyspeedtest import __program__, __version__ # allow setup.py to be run from any path os.chdir(os.path.dirname(os.path.abspath(__file__))) setup( name=__program__, version=__version__, py_modules=['pyspeedtest'], scripts=['bin/pyspeedtest'], license='MIT'...
Revise download_url string for consistency with main script
Revise download_url string for consistency with main script
Python
mit
fopina/pyspeedtest,fopina/pyspeedtest
import os from setuptools import setup from pyspeedtest import __program__, __version__ # allow setup.py to be run from any path os.chdir(os.path.dirname(os.path.abspath(__file__))) setup( name=__program__, version=__version__, py_modules=['pyspeedtest'], scripts=['bin/pyspeedtest'], license='MIT'...
import os from setuptools import setup from pyspeedtest import __program__, __version__ # allow setup.py to be run from any path os.chdir(os.path.dirname(os.path.abspath(__file__))) setup( name=__program__, version=__version__, py_modules=['pyspeedtest'], scripts=['bin/pyspeedtest'], license='MIT'...
<commit_before>import os from setuptools import setup from pyspeedtest import __program__, __version__ # allow setup.py to be run from any path os.chdir(os.path.dirname(os.path.abspath(__file__))) setup( name=__program__, version=__version__, py_modules=['pyspeedtest'], scripts=['bin/pyspeedtest'], ...
import os from setuptools import setup from pyspeedtest import __program__, __version__ # allow setup.py to be run from any path os.chdir(os.path.dirname(os.path.abspath(__file__))) setup( name=__program__, version=__version__, py_modules=['pyspeedtest'], scripts=['bin/pyspeedtest'], license='MIT'...
import os from setuptools import setup from pyspeedtest import __program__, __version__ # allow setup.py to be run from any path os.chdir(os.path.dirname(os.path.abspath(__file__))) setup( name=__program__, version=__version__, py_modules=['pyspeedtest'], scripts=['bin/pyspeedtest'], license='MIT'...
<commit_before>import os from setuptools import setup from pyspeedtest import __program__, __version__ # allow setup.py to be run from any path os.chdir(os.path.dirname(os.path.abspath(__file__))) setup( name=__program__, version=__version__, py_modules=['pyspeedtest'], scripts=['bin/pyspeedtest'], ...
f5b0203b5651f25246b79896da2c002b8ddad4d6
setup.py
setup.py
from setuptools import setup from pybib import __version__ setup(name='pybib', version=__version__, description='Fetch citation information, given a Digital Object Identifier', long_description=open('README.rst').read(), url='https://github.com/jgilchrist/pybib', author='Jonny Gilchrist'...
from setuptools import setup from pybib import __version__ with open('README.rst') as f: readme = f.read() setup(name='pybib', version=__version__, description='Fetch citation information, given a Digital Object Identifier', long_description=readme, url='https://github.com/jgilchrist/pybi...
Use a context handler for reading in README
Use a context handler for reading in README
Python
bsd-3-clause
jgilchrist/pybib
from setuptools import setup from pybib import __version__ setup(name='pybib', version=__version__, description='Fetch citation information, given a Digital Object Identifier', long_description=open('README.rst').read(), url='https://github.com/jgilchrist/pybib', author='Jonny Gilchrist'...
from setuptools import setup from pybib import __version__ with open('README.rst') as f: readme = f.read() setup(name='pybib', version=__version__, description='Fetch citation information, given a Digital Object Identifier', long_description=readme, url='https://github.com/jgilchrist/pybi...
<commit_before>from setuptools import setup from pybib import __version__ setup(name='pybib', version=__version__, description='Fetch citation information, given a Digital Object Identifier', long_description=open('README.rst').read(), url='https://github.com/jgilchrist/pybib', author='J...
from setuptools import setup from pybib import __version__ with open('README.rst') as f: readme = f.read() setup(name='pybib', version=__version__, description='Fetch citation information, given a Digital Object Identifier', long_description=readme, url='https://github.com/jgilchrist/pybi...
from setuptools import setup from pybib import __version__ setup(name='pybib', version=__version__, description='Fetch citation information, given a Digital Object Identifier', long_description=open('README.rst').read(), url='https://github.com/jgilchrist/pybib', author='Jonny Gilchrist'...
<commit_before>from setuptools import setup from pybib import __version__ setup(name='pybib', version=__version__, description='Fetch citation information, given a Digital Object Identifier', long_description=open('README.rst').read(), url='https://github.com/jgilchrist/pybib', author='J...
15f1e52deeda43d032d0d7d68ce50300715c5658
setup.py
setup.py
from authy import __version__ from setuptools import setup, find_packages # to install authy type the following command: # python setup.py install # setup( name="authy", version=__version__, description="Authy API Client", author="Authy Inc", author_email="[email protected]", url="http...
from authy import __version__ from setuptools import setup, find_packages # to install authy type the following command: # python setup.py install with open('README.md') as f: long_description = f.read() setup( name="authy", version=__version__, description="Authy API Client", author="Authy I...
Update long_description for PyPI description integration
Update long_description for PyPI description integration
Python
mit
authy/authy-python,authy/authy-python
from authy import __version__ from setuptools import setup, find_packages # to install authy type the following command: # python setup.py install # setup( name="authy", version=__version__, description="Authy API Client", author="Authy Inc", author_email="[email protected]", url="http...
from authy import __version__ from setuptools import setup, find_packages # to install authy type the following command: # python setup.py install with open('README.md') as f: long_description = f.read() setup( name="authy", version=__version__, description="Authy API Client", author="Authy I...
<commit_before>from authy import __version__ from setuptools import setup, find_packages # to install authy type the following command: # python setup.py install # setup( name="authy", version=__version__, description="Authy API Client", author="Authy Inc", author_email="[email protected]"...
from authy import __version__ from setuptools import setup, find_packages # to install authy type the following command: # python setup.py install with open('README.md') as f: long_description = f.read() setup( name="authy", version=__version__, description="Authy API Client", author="Authy I...
from authy import __version__ from setuptools import setup, find_packages # to install authy type the following command: # python setup.py install # setup( name="authy", version=__version__, description="Authy API Client", author="Authy Inc", author_email="[email protected]", url="http...
<commit_before>from authy import __version__ from setuptools import setup, find_packages # to install authy type the following command: # python setup.py install # setup( name="authy", version=__version__, description="Authy API Client", author="Authy Inc", author_email="[email protected]"...
e36f55a8a39c6ee696432c2be43d6af1a57db2c2
setup.py
setup.py
from distutils.core import setup from setuptools import find_packages setup( name='mediawiki-utilities', version="0.4.15", author='Aaron Halfaker', author_email='[email protected]', packages=find_packages(), scripts=[], url='http://pypi.python.org/pypi/mediawiki-utilities', lice...
from distutils.core import setup from setuptools import find_packages setup( name='mediawiki-utilities', version="0.4.15", author='Aaron Halfaker', author_email='[email protected]', packages=find_packages(), scripts=[], url='http://pypi.python.org/pypi/mediawiki-utilities', lice...
Fix syntax of dependencies to be compatible with debuild
Fix syntax of dependencies to be compatible with debuild Also drop argparse as an explicit dependency, it's part of python3
Python
mit
mediawiki-utilities/python-mediawiki-utilities,halfak/Mediawiki-Utilities
from distutils.core import setup from setuptools import find_packages setup( name='mediawiki-utilities', version="0.4.15", author='Aaron Halfaker', author_email='[email protected]', packages=find_packages(), scripts=[], url='http://pypi.python.org/pypi/mediawiki-utilities', lice...
from distutils.core import setup from setuptools import find_packages setup( name='mediawiki-utilities', version="0.4.15", author='Aaron Halfaker', author_email='[email protected]', packages=find_packages(), scripts=[], url='http://pypi.python.org/pypi/mediawiki-utilities', lice...
<commit_before>from distutils.core import setup from setuptools import find_packages setup( name='mediawiki-utilities', version="0.4.15", author='Aaron Halfaker', author_email='[email protected]', packages=find_packages(), scripts=[], url='http://pypi.python.org/pypi/mediawiki-utili...
from distutils.core import setup from setuptools import find_packages setup( name='mediawiki-utilities', version="0.4.15", author='Aaron Halfaker', author_email='[email protected]', packages=find_packages(), scripts=[], url='http://pypi.python.org/pypi/mediawiki-utilities', lice...
from distutils.core import setup from setuptools import find_packages setup( name='mediawiki-utilities', version="0.4.15", author='Aaron Halfaker', author_email='[email protected]', packages=find_packages(), scripts=[], url='http://pypi.python.org/pypi/mediawiki-utilities', lice...
<commit_before>from distutils.core import setup from setuptools import find_packages setup( name='mediawiki-utilities', version="0.4.15", author='Aaron Halfaker', author_email='[email protected]', packages=find_packages(), scripts=[], url='http://pypi.python.org/pypi/mediawiki-utili...
ba500886eb0d49fc92188ec2cce7a14326d63ef1
setup.py
setup.py
from setuptools import setup setup(name='striketracker', version='0.5', description='Command line interface to the Highwinds CDN', url='https://github.com/Highwinds/striketracker', author='Mark Cahill', author_email='[email protected]', license='MIT', packages=['striketrac...
from setuptools import setup setup(name='striketracker', version='0.5.1', description='Command line interface to the Highwinds CDN', url='https://github.com/Highwinds/striketracker', author='Mark Cahill', author_email='[email protected]', license='MIT', packages=['striketr...
Bump version number for host clone functionality
Bump version number for host clone functionality
Python
mit
Highwinds/striketracker
from setuptools import setup setup(name='striketracker', version='0.5', description='Command line interface to the Highwinds CDN', url='https://github.com/Highwinds/striketracker', author='Mark Cahill', author_email='[email protected]', license='MIT', packages=['striketrac...
from setuptools import setup setup(name='striketracker', version='0.5.1', description='Command line interface to the Highwinds CDN', url='https://github.com/Highwinds/striketracker', author='Mark Cahill', author_email='[email protected]', license='MIT', packages=['striketr...
<commit_before>from setuptools import setup setup(name='striketracker', version='0.5', description='Command line interface to the Highwinds CDN', url='https://github.com/Highwinds/striketracker', author='Mark Cahill', author_email='[email protected]', license='MIT', packag...
from setuptools import setup setup(name='striketracker', version='0.5.1', description='Command line interface to the Highwinds CDN', url='https://github.com/Highwinds/striketracker', author='Mark Cahill', author_email='[email protected]', license='MIT', packages=['striketr...
from setuptools import setup setup(name='striketracker', version='0.5', description='Command line interface to the Highwinds CDN', url='https://github.com/Highwinds/striketracker', author='Mark Cahill', author_email='[email protected]', license='MIT', packages=['striketrac...
<commit_before>from setuptools import setup setup(name='striketracker', version='0.5', description='Command line interface to the Highwinds CDN', url='https://github.com/Highwinds/striketracker', author='Mark Cahill', author_email='[email protected]', license='MIT', packag...
ae6607feb1d9c7be224bfae13319f672c47368c0
setup.py
setup.py
from setuptools import setup setup( name='django-cacheops', version='1.3.1', author='Alexander Schepanovski', author_email='[email protected]', description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=open('README.rst').read(), url='h...
from setuptools import setup setup( name='django-cacheops', version='1.3.1', author='Alexander Schepanovski', author_email='[email protected]', description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=open('README.rst').read().replace('|B...
Remove build status from rst for PyPI
Remove build status from rst for PyPI
Python
bsd-3-clause
whyflyru/django-cacheops,andwun/django-cacheops,Suor/django-cacheops,ErwinJunge/django-cacheops,LPgenerator/django-cacheops,bourivouh/django-cacheops,rutube/django-cacheops,th13f/django-cacheops
from setuptools import setup setup( name='django-cacheops', version='1.3.1', author='Alexander Schepanovski', author_email='[email protected]', description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=open('README.rst').read(), url='h...
from setuptools import setup setup( name='django-cacheops', version='1.3.1', author='Alexander Schepanovski', author_email='[email protected]', description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=open('README.rst').read().replace('|B...
<commit_before>from setuptools import setup setup( name='django-cacheops', version='1.3.1', author='Alexander Schepanovski', author_email='[email protected]', description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=open('README.rst').rea...
from setuptools import setup setup( name='django-cacheops', version='1.3.1', author='Alexander Schepanovski', author_email='[email protected]', description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=open('README.rst').read().replace('|B...
from setuptools import setup setup( name='django-cacheops', version='1.3.1', author='Alexander Schepanovski', author_email='[email protected]', description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=open('README.rst').read(), url='h...
<commit_before>from setuptools import setup setup( name='django-cacheops', version='1.3.1', author='Alexander Schepanovski', author_email='[email protected]', description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=open('README.rst').rea...
26d0961b210190f43584ddd46db42284761b50e8
setup.py
setup.py
from setuptools import setup, find_packages setup( name='lmsh', version='0.1', description="Command line interface to Lab Manager SOAP API", license='BSD', author='James Saryerwinnie', author_email='[email protected]', packages=find_packages(), entry_points={ 'console_scripts': [...
from setuptools import setup, find_packages setup( name='lmsh', version='0.1', description="Command line interface to Lab Manager SOAP API", license='BSD', author='James Saryerwinnie', author_email='[email protected]', packages=find_packages(), entry_points={ 'console_scripts': [...
Add comma to separate classifiers
Add comma to separate classifiers
Python
bsd-3-clause
jamesls/labmanager-shell
from setuptools import setup, find_packages setup( name='lmsh', version='0.1', description="Command line interface to Lab Manager SOAP API", license='BSD', author='James Saryerwinnie', author_email='[email protected]', packages=find_packages(), entry_points={ 'console_scripts': [...
from setuptools import setup, find_packages setup( name='lmsh', version='0.1', description="Command line interface to Lab Manager SOAP API", license='BSD', author='James Saryerwinnie', author_email='[email protected]', packages=find_packages(), entry_points={ 'console_scripts': [...
<commit_before>from setuptools import setup, find_packages setup( name='lmsh', version='0.1', description="Command line interface to Lab Manager SOAP API", license='BSD', author='James Saryerwinnie', author_email='[email protected]', packages=find_packages(), entry_points={ 'cons...
from setuptools import setup, find_packages setup( name='lmsh', version='0.1', description="Command line interface to Lab Manager SOAP API", license='BSD', author='James Saryerwinnie', author_email='[email protected]', packages=find_packages(), entry_points={ 'console_scripts': [...
from setuptools import setup, find_packages setup( name='lmsh', version='0.1', description="Command line interface to Lab Manager SOAP API", license='BSD', author='James Saryerwinnie', author_email='[email protected]', packages=find_packages(), entry_points={ 'console_scripts': [...
<commit_before>from setuptools import setup, find_packages setup( name='lmsh', version='0.1', description="Command line interface to Lab Manager SOAP API", license='BSD', author='James Saryerwinnie', author_email='[email protected]', packages=find_packages(), entry_points={ 'cons...
675f5a269859f1e38419b23a82b732f22f858b74
setup.py
setup.py
from distutils.core import setup setup( name="sqlite_object", version="0.3.3", author_email="[email protected]", description="sqlite-backed collection objects", author="Luke Hospadaruk", url="https://github.com/hospadar/sqlite_object", packages=["sqlite_object"], )
from distutils.core import setup setup( name="sqlite_object", version="0.3.3", author_email="[email protected]", description="sqlite-backed collection objects", author="Matt Stancliff via originally Luke Hospadaruk", url="https://github.com/mattsta/sqlite_object", packages=["sqlite_object"], ...
Update package details to point to my repo
Update package details to point to my repo Is this right? I guess it's right since I'm taking over responsibility for this fork. Would be nice if the package ecosystem had a full "history of ownership" feature instead of just overwriting everything in your own name?
Python
mit
hospadar/sqlite_object
from distutils.core import setup setup( name="sqlite_object", version="0.3.3", author_email="[email protected]", description="sqlite-backed collection objects", author="Luke Hospadaruk", url="https://github.com/hospadar/sqlite_object", packages=["sqlite_object"], ) Update package details ...
from distutils.core import setup setup( name="sqlite_object", version="0.3.3", author_email="[email protected]", description="sqlite-backed collection objects", author="Matt Stancliff via originally Luke Hospadaruk", url="https://github.com/mattsta/sqlite_object", packages=["sqlite_object"], ...
<commit_before>from distutils.core import setup setup( name="sqlite_object", version="0.3.3", author_email="[email protected]", description="sqlite-backed collection objects", author="Luke Hospadaruk", url="https://github.com/hospadar/sqlite_object", packages=["sqlite_object"], ) <commit_...
from distutils.core import setup setup( name="sqlite_object", version="0.3.3", author_email="[email protected]", description="sqlite-backed collection objects", author="Matt Stancliff via originally Luke Hospadaruk", url="https://github.com/mattsta/sqlite_object", packages=["sqlite_object"], ...
from distutils.core import setup setup( name="sqlite_object", version="0.3.3", author_email="[email protected]", description="sqlite-backed collection objects", author="Luke Hospadaruk", url="https://github.com/hospadar/sqlite_object", packages=["sqlite_object"], ) Update package details ...
<commit_before>from distutils.core import setup setup( name="sqlite_object", version="0.3.3", author_email="[email protected]", description="sqlite-backed collection objects", author="Luke Hospadaruk", url="https://github.com/hospadar/sqlite_object", packages=["sqlite_object"], ) <commit_...
0740d16b60a3ecc26e72c51ea85257b2c0d03d18
setup.py
setup.py
from __future__ import absolute_import from setuptools import setup long_description="""TravisCI results .. image:: https://travis-ci.org/nanonyme/simplecpreprocessor.svg """ setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_email = "seppo....
from __future__ import absolute_import from setuptools import setup long_description="""http://github.com/nanonyme/simplepreprocessor""" setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_email = "[email protected]", description = "Simple C preprocessor for usage eg before CFFI...
Make long description not point to Travis since can't guarantee tag
Make long description not point to Travis since can't guarantee tag
Python
mit
nanonyme/simplecpreprocessor
from __future__ import absolute_import from setuptools import setup long_description="""TravisCI results .. image:: https://travis-ci.org/nanonyme/simplecpreprocessor.svg """ setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_email = "seppo....
from __future__ import absolute_import from setuptools import setup long_description="""http://github.com/nanonyme/simplepreprocessor""" setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_email = "[email protected]", description = "Simple C preprocessor for usage eg before CFFI...
<commit_before>from __future__ import absolute_import from setuptools import setup long_description="""TravisCI results .. image:: https://travis-ci.org/nanonyme/simplecpreprocessor.svg """ setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_...
from __future__ import absolute_import from setuptools import setup long_description="""http://github.com/nanonyme/simplepreprocessor""" setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_email = "[email protected]", description = "Simple C preprocessor for usage eg before CFFI...
from __future__ import absolute_import from setuptools import setup long_description="""TravisCI results .. image:: https://travis-ci.org/nanonyme/simplecpreprocessor.svg """ setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_email = "seppo....
<commit_before>from __future__ import absolute_import from setuptools import setup long_description="""TravisCI results .. image:: https://travis-ci.org/nanonyme/simplecpreprocessor.svg """ setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_...
0c9daff813d81e712b92fb78a02ef8bc17cdfdc3
setup.py
setup.py
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='0.2', url='http://github.com/jwg4/flask-selfdoc',...
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0a1', url='http://github.com/jwg4/flask-selfdoc...
Add a prerelease version number.
Add a prerelease version number.
Python
mit
jwg4/flask-autodoc,jwg4/flask-autodoc
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='0.2', url='http://github.com/jwg4/flask-selfdoc',...
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0a1', url='http://github.com/jwg4/flask-selfdoc...
<commit_before>""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='0.2', url='http://github.com/jwg4/...
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0a1', url='http://github.com/jwg4/flask-selfdoc...
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='0.2', url='http://github.com/jwg4/flask-selfdoc',...
<commit_before>""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='0.2', url='http://github.com/jwg4/...
b0bc5c5573e33b67cf0803fb7da4bb0d6a875fc6
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup import sys data = dict( name='python-datetime_tz', version='0.1', author='Tim Ansell', author_email='[email protected]', packages=['datetime_tz'], install_requires=['pytz'], ) if sys.version[:3] < '...
try: from setuptools import setup except ImportError: from distutils.core import setup import sys data = dict( name='python-datetime_tz', version='0.1', author='Tim Ansell', author_email='[email protected]', packages=['datetime_tz'], install_requires=['pytz'], ) if sys.version[:3] < '...
Reduce the requirements a little bit.
Reduce the requirements a little bit.
Python
apache-2.0
matthewhampton/python-datetime-tz,dave42/python-datetime-tz,j5int/python-datetime-tz,mithro/python-datetime-tz,davidfraser/python-datetime-tz,mithro/python-datetime-tz,davidfraser/python-datetime-tz,j5int/python-datetime-tz
try: from setuptools import setup except ImportError: from distutils.core import setup import sys data = dict( name='python-datetime_tz', version='0.1', author='Tim Ansell', author_email='[email protected]', packages=['datetime_tz'], install_requires=['pytz'], ) if sys.version[:3] < '...
try: from setuptools import setup except ImportError: from distutils.core import setup import sys data = dict( name='python-datetime_tz', version='0.1', author='Tim Ansell', author_email='[email protected]', packages=['datetime_tz'], install_requires=['pytz'], ) if sys.version[:3] < '...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup import sys data = dict( name='python-datetime_tz', version='0.1', author='Tim Ansell', author_email='[email protected]', packages=['datetime_tz'], install_requires=['pytz'], ) if sys....
try: from setuptools import setup except ImportError: from distutils.core import setup import sys data = dict( name='python-datetime_tz', version='0.1', author='Tim Ansell', author_email='[email protected]', packages=['datetime_tz'], install_requires=['pytz'], ) if sys.version[:3] < '...
try: from setuptools import setup except ImportError: from distutils.core import setup import sys data = dict( name='python-datetime_tz', version='0.1', author='Tim Ansell', author_email='[email protected]', packages=['datetime_tz'], install_requires=['pytz'], ) if sys.version[:3] < '...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup import sys data = dict( name='python-datetime_tz', version='0.1', author='Tim Ansell', author_email='[email protected]', packages=['datetime_tz'], install_requires=['pytz'], ) if sys....
509ca7039b6b914785f44ec7aa2de5b644075a37
setup.py
setup.py
from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.7' INSTALL_REQUIRES = [ 'boto>=2.38.0', 'boto3>=1.2.3', 'smart-open>=1.3.1', 'dateutils>=0.6.6', 'retrying>=1.3.3' ] setup( name=package, version=version, author="Skimlinks Ltd.", author_email="dev@sk...
from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.7' INSTALL_REQUIRES = [ 'boto>=2.38.0', 'boto3>=1.2.3', 'smart_open==1.3.2', # smart open must be 1.3.2 because in 1.3.3 onward the gzip write functionality has been removed 'dateutils>=0.6.6', 'retrying>=1.3.3' ] s...
Fix smart_open to version which supports gzip streaming
Fix smart_open to version which supports gzip streaming
Python
apache-2.0
skimhub/aws-utils
from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.7' INSTALL_REQUIRES = [ 'boto>=2.38.0', 'boto3>=1.2.3', 'smart-open>=1.3.1', 'dateutils>=0.6.6', 'retrying>=1.3.3' ] setup( name=package, version=version, author="Skimlinks Ltd.", author_email="dev@sk...
from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.7' INSTALL_REQUIRES = [ 'boto>=2.38.0', 'boto3>=1.2.3', 'smart_open==1.3.2', # smart open must be 1.3.2 because in 1.3.3 onward the gzip write functionality has been removed 'dateutils>=0.6.6', 'retrying>=1.3.3' ] s...
<commit_before>from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.7' INSTALL_REQUIRES = [ 'boto>=2.38.0', 'boto3>=1.2.3', 'smart-open>=1.3.1', 'dateutils>=0.6.6', 'retrying>=1.3.3' ] setup( name=package, version=version, author="Skimlinks Ltd.", autho...
from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.7' INSTALL_REQUIRES = [ 'boto>=2.38.0', 'boto3>=1.2.3', 'smart_open==1.3.2', # smart open must be 1.3.2 because in 1.3.3 onward the gzip write functionality has been removed 'dateutils>=0.6.6', 'retrying>=1.3.3' ] s...
from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.7' INSTALL_REQUIRES = [ 'boto>=2.38.0', 'boto3>=1.2.3', 'smart-open>=1.3.1', 'dateutils>=0.6.6', 'retrying>=1.3.3' ] setup( name=package, version=version, author="Skimlinks Ltd.", author_email="dev@sk...
<commit_before>from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.7' INSTALL_REQUIRES = [ 'boto>=2.38.0', 'boto3>=1.2.3', 'smart-open>=1.3.1', 'dateutils>=0.6.6', 'retrying>=1.3.3' ] setup( name=package, version=version, author="Skimlinks Ltd.", autho...
8eb9de99511a96b1966ece6892fb937add5b2295
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='2.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='[email protected]', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='2.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='[email protected]', url='https://github.com/unt-libraries/aubreylib', l...
Update pyuntl source to match aubrey's requirement
Update pyuntl source to match aubrey's requirement
Python
bsd-3-clause
unt-libraries/aubreylib
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='2.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='[email protected]', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='2.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='[email protected]', url='https://github.com/unt-libraries/aubreylib', l...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='2.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='[email protected]', url='https://github.com/unt-libraries/au...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='2.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='[email protected]', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='2.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='[email protected]', url='https://github.com/unt-libraries/aubreylib', l...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='2.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='[email protected]', url='https://github.com/unt-libraries/au...
ea991176d3f0562b5000dbd03320a9145129e586
setup.py
setup.py
import os import setuptools setuptools.setup( name='gymnasium', version='0.0.2', packages=setuptools.find_packages(), author='Leif Johnson', author_email='[email protected]', description='yet another OpenGL-with-physics simulation framework', long_description=open(os.path.join(os.path.di...
import os import setuptools setuptools.setup( name='lmj.sim', version='0.0.2', packages=setuptools.find_packages(), author='Leif Johnson', author_email='[email protected]', description='yet another OpenGL-with-physics simulation framework', long_description=open(os.path.join(os.path.dirn...
Fix up package naming confusion for the moment.
Fix up package naming confusion for the moment.
Python
mit
EmbodiedCognition/pagoda,EmbodiedCognition/pagoda
import os import setuptools setuptools.setup( name='gymnasium', version='0.0.2', packages=setuptools.find_packages(), author='Leif Johnson', author_email='[email protected]', description='yet another OpenGL-with-physics simulation framework', long_description=open(os.path.join(os.path.di...
import os import setuptools setuptools.setup( name='lmj.sim', version='0.0.2', packages=setuptools.find_packages(), author='Leif Johnson', author_email='[email protected]', description='yet another OpenGL-with-physics simulation framework', long_description=open(os.path.join(os.path.dirn...
<commit_before>import os import setuptools setuptools.setup( name='gymnasium', version='0.0.2', packages=setuptools.find_packages(), author='Leif Johnson', author_email='[email protected]', description='yet another OpenGL-with-physics simulation framework', long_description=open(os.path....
import os import setuptools setuptools.setup( name='lmj.sim', version='0.0.2', packages=setuptools.find_packages(), author='Leif Johnson', author_email='[email protected]', description='yet another OpenGL-with-physics simulation framework', long_description=open(os.path.join(os.path.dirn...
import os import setuptools setuptools.setup( name='gymnasium', version='0.0.2', packages=setuptools.find_packages(), author='Leif Johnson', author_email='[email protected]', description='yet another OpenGL-with-physics simulation framework', long_description=open(os.path.join(os.path.di...
<commit_before>import os import setuptools setuptools.setup( name='gymnasium', version='0.0.2', packages=setuptools.find_packages(), author='Leif Johnson', author_email='[email protected]', description='yet another OpenGL-with-physics simulation framework', long_description=open(os.path....
c1a152126aa92e7b0a1139eb9c172f2aedc4e744
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='django-backupdb', version='1.0', description='Management commands for backing up and restoring databases in Django.', long_description=readme(), ...
#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='django-backupdb', version='0.2', description='Management commands for backing up and restoring databases in Django.', long_description=readme(), ...
Set version number, add beta status
Set version number, add beta status
Python
bsd-2-clause
fusionbox/django-backupdb
#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='django-backupdb', version='1.0', description='Management commands for backing up and restoring databases in Django.', long_description=readme(), ...
#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='django-backupdb', version='0.2', description='Management commands for backing up and restoring databases in Django.', long_description=readme(), ...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='django-backupdb', version='1.0', description='Management commands for backing up and restoring databases in Django.', long_descripti...
#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='django-backupdb', version='0.2', description='Management commands for backing up and restoring databases in Django.', long_description=readme(), ...
#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='django-backupdb', version='1.0', description='Management commands for backing up and restoring databases in Django.', long_description=readme(), ...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages def readme(): with open('README.rst') as f: return f.read() setup(name='django-backupdb', version='1.0', description='Management commands for backing up and restoring databases in Django.', long_descripti...
76aaa3a07fb181a55bae6e7ea03ad04522720ea1
setup.py
setup.py
from setuptools import setup, find_packages import census long_description = open('README.rst').read() setup( name="census", version=census.__version__, py_modules=['census'], author="Jeremy Carbaugh", author_email='[email protected]', license="BSD", url="http://github.com/s...
from setuptools import setup, find_packages import census long_description = open('README.rst').read() setup( name="census", version=census.__version__, py_modules=['census'], author="Jeremy Carbaugh", author_email='[email protected]', license="BSD", url="http://github.com/s...
Use >= for install requirements
Use >= for install requirements The currently listed requirements are getting a bit old and it's hard to resolve them with the requirements in other libraries.
Python
bsd-3-clause
sunlightlabs/census,joehand/census,dmc2015/census,UDST/census
from setuptools import setup, find_packages import census long_description = open('README.rst').read() setup( name="census", version=census.__version__, py_modules=['census'], author="Jeremy Carbaugh", author_email='[email protected]', license="BSD", url="http://github.com/s...
from setuptools import setup, find_packages import census long_description = open('README.rst').read() setup( name="census", version=census.__version__, py_modules=['census'], author="Jeremy Carbaugh", author_email='[email protected]', license="BSD", url="http://github.com/s...
<commit_before>from setuptools import setup, find_packages import census long_description = open('README.rst').read() setup( name="census", version=census.__version__, py_modules=['census'], author="Jeremy Carbaugh", author_email='[email protected]', license="BSD", url="http...
from setuptools import setup, find_packages import census long_description = open('README.rst').read() setup( name="census", version=census.__version__, py_modules=['census'], author="Jeremy Carbaugh", author_email='[email protected]', license="BSD", url="http://github.com/s...
from setuptools import setup, find_packages import census long_description = open('README.rst').read() setup( name="census", version=census.__version__, py_modules=['census'], author="Jeremy Carbaugh", author_email='[email protected]', license="BSD", url="http://github.com/s...
<commit_before>from setuptools import setup, find_packages import census long_description = open('README.rst').read() setup( name="census", version=census.__version__, py_modules=['census'], author="Jeremy Carbaugh", author_email='[email protected]', license="BSD", url="http...
02240275e9adba0c40f0b9a1f6d82e88272e71c8
setup.py
setup.py
import os from setuptools import setup version = '0.1.0' name = 'apns-proxy-client' short_description = 'Client library for APNs Proxy Server.' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = [ 'pyzmq', 'simplejson' ] setup( name=name, version=v...
import os from setuptools import setup version = '0.1.0' name = 'apns-proxy-client' short_description = 'Client library for APNs Proxy Server.' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() def read_README(): try: # pip install from pypy return read('READ...
Fix install error for [pip install git+git://..]
Fix install error for [pip install git+git://..]
Python
bsd-2-clause
voyagegroup/apns-proxy-client-py
import os from setuptools import setup version = '0.1.0' name = 'apns-proxy-client' short_description = 'Client library for APNs Proxy Server.' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = [ 'pyzmq', 'simplejson' ] setup( name=name, version=v...
import os from setuptools import setup version = '0.1.0' name = 'apns-proxy-client' short_description = 'Client library for APNs Proxy Server.' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() def read_README(): try: # pip install from pypy return read('READ...
<commit_before>import os from setuptools import setup version = '0.1.0' name = 'apns-proxy-client' short_description = 'Client library for APNs Proxy Server.' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = [ 'pyzmq', 'simplejson' ] setup( name=name...
import os from setuptools import setup version = '0.1.0' name = 'apns-proxy-client' short_description = 'Client library for APNs Proxy Server.' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() def read_README(): try: # pip install from pypy return read('READ...
import os from setuptools import setup version = '0.1.0' name = 'apns-proxy-client' short_description = 'Client library for APNs Proxy Server.' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = [ 'pyzmq', 'simplejson' ] setup( name=name, version=v...
<commit_before>import os from setuptools import setup version = '0.1.0' name = 'apns-proxy-client' short_description = 'Client library for APNs Proxy Server.' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = [ 'pyzmq', 'simplejson' ] setup( name=name...
8a0ea95de9343b901d7d3cd8b3c5b0370d43eb0f
setup.py
setup.py
#!/usr/bin/env python """Setup script for GDM.""" import setuptools from gdm import __project__, __version__, CLI, DESCRIPTION import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANGES.md').read() ...
#!/usr/bin/env python """Setup script for GDM.""" import setuptools from gdm import __project__, __version__, CLI, DESCRIPTION import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANGES.md').read() ...
Update classifiers for a beta release
Update classifiers for a beta release
Python
mit
jacebrowning/gitman,jacebrowning/gdm
#!/usr/bin/env python """Setup script for GDM.""" import setuptools from gdm import __project__, __version__, CLI, DESCRIPTION import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANGES.md').read() ...
#!/usr/bin/env python """Setup script for GDM.""" import setuptools from gdm import __project__, __version__, CLI, DESCRIPTION import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANGES.md').read() ...
<commit_before>#!/usr/bin/env python """Setup script for GDM.""" import setuptools from gdm import __project__, __version__, CLI, DESCRIPTION import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANG...
#!/usr/bin/env python """Setup script for GDM.""" import setuptools from gdm import __project__, __version__, CLI, DESCRIPTION import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANGES.md').read() ...
#!/usr/bin/env python """Setup script for GDM.""" import setuptools from gdm import __project__, __version__, CLI, DESCRIPTION import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANGES.md').read() ...
<commit_before>#!/usr/bin/env python """Setup script for GDM.""" import setuptools from gdm import __project__, __version__, CLI, DESCRIPTION import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANG...
6c7089177a970f4535cf1494ea17b6412fa36bf0
clifford/_version.py
clifford/_version.py
# Package versioning solution originally found here: # http://stackoverflow.com/q/458550 # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.3.0dev1'
# Package versioning solution originally found here: # http://stackoverflow.com/q/458550 # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.3.0dev2'
Create a pre-release with the new zenodo metadata
Create a pre-release with the new zenodo metadata A recent PR added .zenodo.json. Making a pre-release should trigger zenodo to rebuild their info page.
Python
bsd-3-clause
arsenovic/clifford,arsenovic/clifford
# Package versioning solution originally found here: # http://stackoverflow.com/q/458550 # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.3.0dev1' Create a pre-release ...
# Package versioning solution originally found here: # http://stackoverflow.com/q/458550 # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.3.0dev2'
<commit_before># Package versioning solution originally found here: # http://stackoverflow.com/q/458550 # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.3.0dev1' <commi...
# Package versioning solution originally found here: # http://stackoverflow.com/q/458550 # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.3.0dev2'
# Package versioning solution originally found here: # http://stackoverflow.com/q/458550 # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.3.0dev1' Create a pre-release ...
<commit_before># Package versioning solution originally found here: # http://stackoverflow.com/q/458550 # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.3.0dev1' <commi...
56f7be6efa949eba46c5ba65b8c2f614cb09be8f
setup.py
setup.py
from setuptools import setup, find_packages import os, sys version = '0.0.1' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst')).read() except IOError: README = '' TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow'] py_version = sys.versi...
from setuptools import setup, find_packages import os, sys version = '0.0.1' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst')).read() except IOError: README = '' TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow'] py_version = sys.versi...
Add importlib dependency on Py2.6
Add importlib dependency on Py2.6
Python
mit
miraculixx/depot,rlam3/depot,amol-/depot,eprikazc/depot,miraculixx/depot
from setuptools import setup, find_packages import os, sys version = '0.0.1' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst')).read() except IOError: README = '' TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow'] py_version = sys.versi...
from setuptools import setup, find_packages import os, sys version = '0.0.1' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst')).read() except IOError: README = '' TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow'] py_version = sys.versi...
<commit_before>from setuptools import setup, find_packages import os, sys version = '0.0.1' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst')).read() except IOError: README = '' TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow'] py_vers...
from setuptools import setup, find_packages import os, sys version = '0.0.1' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst')).read() except IOError: README = '' TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow'] py_version = sys.versi...
from setuptools import setup, find_packages import os, sys version = '0.0.1' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst')).read() except IOError: README = '' TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow'] py_version = sys.versi...
<commit_before>from setuptools import setup, find_packages import os, sys version = '0.0.1' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.rst')).read() except IOError: README = '' TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow'] py_vers...
1709282ed45baa582f09324bd269eae3b6c40a05
setup.py
setup.py
import multiprocessing # noqa # stop tests breaking tox from setuptools import find_packages, setup import tvrenamr def long_desc(): with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() return readme + '\n\n' + changelog setup( nam...
import multiprocessing # noqa # stop tests breaking tox from setuptools import find_packages, setup import tvrenamr def long_desc(): with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() return readme + '\n\n' + changelog setup( nam...
Call long_desc instead of the function
Call long_desc instead of the function
Python
mit
ghickman/tvrenamr,wintersandroid/tvrenamr
import multiprocessing # noqa # stop tests breaking tox from setuptools import find_packages, setup import tvrenamr def long_desc(): with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() return readme + '\n\n' + changelog setup( nam...
import multiprocessing # noqa # stop tests breaking tox from setuptools import find_packages, setup import tvrenamr def long_desc(): with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() return readme + '\n\n' + changelog setup( nam...
<commit_before>import multiprocessing # noqa # stop tests breaking tox from setuptools import find_packages, setup import tvrenamr def long_desc(): with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() return readme + '\n\n' + changelog ...
import multiprocessing # noqa # stop tests breaking tox from setuptools import find_packages, setup import tvrenamr def long_desc(): with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() return readme + '\n\n' + changelog setup( nam...
import multiprocessing # noqa # stop tests breaking tox from setuptools import find_packages, setup import tvrenamr def long_desc(): with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() return readme + '\n\n' + changelog setup( nam...
<commit_before>import multiprocessing # noqa # stop tests breaking tox from setuptools import find_packages, setup import tvrenamr def long_desc(): with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() return readme + '\n\n' + changelog ...
fefee2d3de81f2072f97ffb83a56049b7f81028c
setup.py
setup.py
#!/usr/bin/env python from __future__ import print_function from setuptools import setup setup(name="abzer", author="Wieland Hoffmann", author_email="[email protected]", packages=["abzer"], package_dir={"abzer": "abzer"}, download_url=["https://github.com/mineo/abzer/tarball/master"], ...
#!/usr/bin/env python from __future__ import print_function from setuptools import setup setup(name="abzer", author="Wieland Hoffmann", author_email="[email protected]", packages=["abzer"], package_dir={"abzer": "abzer"}, download_url=["https://github.com/mineo/abzer/tarball/master"], ...
Add a console_scripts entry point
Add a console_scripts entry point
Python
mit
mineo/abzer,mineo/abzer
#!/usr/bin/env python from __future__ import print_function from setuptools import setup setup(name="abzer", author="Wieland Hoffmann", author_email="[email protected]", packages=["abzer"], package_dir={"abzer": "abzer"}, download_url=["https://github.com/mineo/abzer/tarball/master"], ...
#!/usr/bin/env python from __future__ import print_function from setuptools import setup setup(name="abzer", author="Wieland Hoffmann", author_email="[email protected]", packages=["abzer"], package_dir={"abzer": "abzer"}, download_url=["https://github.com/mineo/abzer/tarball/master"], ...
<commit_before>#!/usr/bin/env python from __future__ import print_function from setuptools import setup setup(name="abzer", author="Wieland Hoffmann", author_email="[email protected]", packages=["abzer"], package_dir={"abzer": "abzer"}, download_url=["https://github.com/mineo/abzer/tarb...
#!/usr/bin/env python from __future__ import print_function from setuptools import setup setup(name="abzer", author="Wieland Hoffmann", author_email="[email protected]", packages=["abzer"], package_dir={"abzer": "abzer"}, download_url=["https://github.com/mineo/abzer/tarball/master"], ...
#!/usr/bin/env python from __future__ import print_function from setuptools import setup setup(name="abzer", author="Wieland Hoffmann", author_email="[email protected]", packages=["abzer"], package_dir={"abzer": "abzer"}, download_url=["https://github.com/mineo/abzer/tarball/master"], ...
<commit_before>#!/usr/bin/env python from __future__ import print_function from setuptools import setup setup(name="abzer", author="Wieland Hoffmann", author_email="[email protected]", packages=["abzer"], package_dir={"abzer": "abzer"}, download_url=["https://github.com/mineo/abzer/tarb...
1c953644fe922ed1a523279c86e4ad1724112849
saleor/dashboard/product/api.py
saleor/dashboard/product/api.py
from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import get_object_or_404 from rest_framework import renderers, status from rest_framework.decorators import renderer_classes, api_view from rest_framework.response import Response from saleor.dashboard.views import staff_member_required from r...
from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import get_object_or_404 from rest_framework import renderers, status from rest_framework.decorators import renderer_classes, api_view from rest_framework.response import Response from saleor.dashboard.views import staff_member_required from r...
Allow posting data as dict by jquery
Allow posting data as dict by jquery
Python
bsd-3-clause
avorio/saleor,avorio/saleor,maferelo/saleor,taedori81/saleor,jreigel/saleor,Drekscott/Motlaesaleor,josesanch/saleor,jreigel/saleor,rodrigozn/CW-Shop,HyperManTT/ECommerceSaleor,Drekscott/Motlaesaleor,rchav/vinerack,maferelo/saleor,HyperManTT/ECommerceSaleor,dashmug/saleor,UITools/saleor,car3oon/saleor,taedori81/saleor,K...
from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import get_object_or_404 from rest_framework import renderers, status from rest_framework.decorators import renderer_classes, api_view from rest_framework.response import Response from saleor.dashboard.views import staff_member_required from r...
from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import get_object_or_404 from rest_framework import renderers, status from rest_framework.decorators import renderer_classes, api_view from rest_framework.response import Response from saleor.dashboard.views import staff_member_required from r...
<commit_before>from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import get_object_or_404 from rest_framework import renderers, status from rest_framework.decorators import renderer_classes, api_view from rest_framework.response import Response from saleor.dashboard.views import staff_member_r...
from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import get_object_or_404 from rest_framework import renderers, status from rest_framework.decorators import renderer_classes, api_view from rest_framework.response import Response from saleor.dashboard.views import staff_member_required from r...
from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import get_object_or_404 from rest_framework import renderers, status from rest_framework.decorators import renderer_classes, api_view from rest_framework.response import Response from saleor.dashboard.views import staff_member_required from r...
<commit_before>from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import get_object_or_404 from rest_framework import renderers, status from rest_framework.decorators import renderer_classes, api_view from rest_framework.response import Response from saleor.dashboard.views import staff_member_r...
36e9f441d75109bef7cd0e0bd17c40db0a6564d4
ncbi_genome_download/__init__.py
ncbi_genome_download/__init__.py
"""Download genome files from the NCBI""" from .config import ( SUPPORTED_TAXONOMIC_GROUPS, NgdConfig ) from .core import ( args_download, download, argument_parser, ) __version__ = '0.2.8' __all__ = [ 'download', 'args_download', 'SUPPORTED_TAXONOMIC_GROUPS', 'NgdConfig', 'argu...
"""Download genome files from the NCBI""" from .config import ( SUPPORTED_TAXONOMIC_GROUPS, NgdConfig ) from .core import ( args_download, download, argument_parser, ) __version__ = '0.2.9' __all__ = [ 'download', 'args_download', 'SUPPORTED_TAXONOMIC_GROUPS', 'NgdConfig', 'argu...
Bump version number to 0.2.9
Bump version number to 0.2.9 Signed-off-by: Kai Blin <[email protected]>
Python
apache-2.0
kblin/ncbi-genome-download,kblin/ncbi-genome-download
"""Download genome files from the NCBI""" from .config import ( SUPPORTED_TAXONOMIC_GROUPS, NgdConfig ) from .core import ( args_download, download, argument_parser, ) __version__ = '0.2.8' __all__ = [ 'download', 'args_download', 'SUPPORTED_TAXONOMIC_GROUPS', 'NgdConfig', 'argu...
"""Download genome files from the NCBI""" from .config import ( SUPPORTED_TAXONOMIC_GROUPS, NgdConfig ) from .core import ( args_download, download, argument_parser, ) __version__ = '0.2.9' __all__ = [ 'download', 'args_download', 'SUPPORTED_TAXONOMIC_GROUPS', 'NgdConfig', 'argu...
<commit_before>"""Download genome files from the NCBI""" from .config import ( SUPPORTED_TAXONOMIC_GROUPS, NgdConfig ) from .core import ( args_download, download, argument_parser, ) __version__ = '0.2.8' __all__ = [ 'download', 'args_download', 'SUPPORTED_TAXONOMIC_GROUPS', 'NgdCon...
"""Download genome files from the NCBI""" from .config import ( SUPPORTED_TAXONOMIC_GROUPS, NgdConfig ) from .core import ( args_download, download, argument_parser, ) __version__ = '0.2.9' __all__ = [ 'download', 'args_download', 'SUPPORTED_TAXONOMIC_GROUPS', 'NgdConfig', 'argu...
"""Download genome files from the NCBI""" from .config import ( SUPPORTED_TAXONOMIC_GROUPS, NgdConfig ) from .core import ( args_download, download, argument_parser, ) __version__ = '0.2.8' __all__ = [ 'download', 'args_download', 'SUPPORTED_TAXONOMIC_GROUPS', 'NgdConfig', 'argu...
<commit_before>"""Download genome files from the NCBI""" from .config import ( SUPPORTED_TAXONOMIC_GROUPS, NgdConfig ) from .core import ( args_download, download, argument_parser, ) __version__ = '0.2.8' __all__ = [ 'download', 'args_download', 'SUPPORTED_TAXONOMIC_GROUPS', 'NgdCon...
8e14f3a7d40d386185d445afc18e6add57cd107e
LR/lr/lib/helpers.py
LR/lr/lib/helpers.py
"""Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password def importModuleFromFile(fullpath): """Load...
from datetime import datetime import time """Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password def ...
Add Method the return time now in complete UTC iso complete format
Add Method the return time now in complete UTC iso complete format
Python
apache-2.0
jimklo/LearningRegistry,jimklo/LearningRegistry,jimklo/LearningRegistry,LearningRegistry/LearningRegistry,LearningRegistry/LearningRegistry,jimklo/LearningRegistry,jimklo/LearningRegistry,LearningRegistry/LearningRegistry,LearningRegistry/LearningRegistry,LearningRegistry/LearningRegistry,jimklo/LearningRegistry,jimklo...
"""Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password def importModuleFromFile(fullpath): """Load...
from datetime import datetime import time """Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password def ...
<commit_before>"""Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password def importModuleFromFile(fullpat...
from datetime import datetime import time """Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password def ...
"""Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password def importModuleFromFile(fullpath): """Load...
<commit_before>"""Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password def importModuleFromFile(fullpat...
9e9256a65afa8569950ca344b3d074afcd6293c5
flocker/cli/test/test_deploy_script.py
flocker/cli/test/test_deploy_script.py
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Unit tests for the implementation ``flocker-deploy``. """ from twisted.trial.unittest import TestCase, SynchronousTestCase from ...testtools import FlockerScriptTestsMixin, StandardOptionsTestsMixin from ..script import DeployScript, DeployOptions cl...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Unit tests for the implementation ``flocker-deploy``. """ from twisted.trial.unittest import TestCase, SynchronousTestCase from ...testtools import FlockerScriptTestsMixin, StandardOptionsTestsMixin from ..script import DeployScript, DeployOptions cl...
Test for a deferred result of DeployScript.main
Test for a deferred result of DeployScript.main
Python
apache-2.0
moypray/flocker,LaynePeng/flocker,1d4Nf6/flocker,LaynePeng/flocker,AndyHuu/flocker,hackday-profilers/flocker,LaynePeng/flocker,agonzalezro/flocker,achanda/flocker,agonzalezro/flocker,Azulinho/flocker,adamtheturtle/flocker,beni55/flocker,agonzalezro/flocker,mbrukman/flocker,wallnerryan/flocker-profiles,mbrukman/flocker,...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Unit tests for the implementation ``flocker-deploy``. """ from twisted.trial.unittest import TestCase, SynchronousTestCase from ...testtools import FlockerScriptTestsMixin, StandardOptionsTestsMixin from ..script import DeployScript, DeployOptions cl...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Unit tests for the implementation ``flocker-deploy``. """ from twisted.trial.unittest import TestCase, SynchronousTestCase from ...testtools import FlockerScriptTestsMixin, StandardOptionsTestsMixin from ..script import DeployScript, DeployOptions cl...
<commit_before># Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Unit tests for the implementation ``flocker-deploy``. """ from twisted.trial.unittest import TestCase, SynchronousTestCase from ...testtools import FlockerScriptTestsMixin, StandardOptionsTestsMixin from ..script import DeployScript, Dep...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Unit tests for the implementation ``flocker-deploy``. """ from twisted.trial.unittest import TestCase, SynchronousTestCase from ...testtools import FlockerScriptTestsMixin, StandardOptionsTestsMixin from ..script import DeployScript, DeployOptions cl...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Unit tests for the implementation ``flocker-deploy``. """ from twisted.trial.unittest import TestCase, SynchronousTestCase from ...testtools import FlockerScriptTestsMixin, StandardOptionsTestsMixin from ..script import DeployScript, DeployOptions cl...
<commit_before># Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Unit tests for the implementation ``flocker-deploy``. """ from twisted.trial.unittest import TestCase, SynchronousTestCase from ...testtools import FlockerScriptTestsMixin, StandardOptionsTestsMixin from ..script import DeployScript, Dep...
16c0a0341ad61b164b5d2bf750b6f5319c74b245
refresh_html.py
refresh_html.py
import os template_header = """<html> <head><title>Littlefield Charts</title></head> <body> <table>""" template_footer = """</table> <p><a href="production.csv">Download production data</a></p> <p><a href="rankings.csv">Download latest rankings</a></p> </body> </html>""" root = os.path.abspath(os.path.dirname(__file...
import datetime import os now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") template_header = """<html> <head><title>Littlefield Charts</title></head> <body> <p>Data last collected: %s</p> <table>""" % now template_footer = """</table> <p><a href="production.csv">Download production data</a></p> <p><a href...
Add current date to generated HTML
Add current date to generated HTML
Python
mit
eallrich/littlefield,eallrich/littlefield
import os template_header = """<html> <head><title>Littlefield Charts</title></head> <body> <table>""" template_footer = """</table> <p><a href="production.csv">Download production data</a></p> <p><a href="rankings.csv">Download latest rankings</a></p> </body> </html>""" root = os.path.abspath(os.path.dirname(__file...
import datetime import os now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") template_header = """<html> <head><title>Littlefield Charts</title></head> <body> <p>Data last collected: %s</p> <table>""" % now template_footer = """</table> <p><a href="production.csv">Download production data</a></p> <p><a href...
<commit_before>import os template_header = """<html> <head><title>Littlefield Charts</title></head> <body> <table>""" template_footer = """</table> <p><a href="production.csv">Download production data</a></p> <p><a href="rankings.csv">Download latest rankings</a></p> </body> </html>""" root = os.path.abspath(os.path...
import datetime import os now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") template_header = """<html> <head><title>Littlefield Charts</title></head> <body> <p>Data last collected: %s</p> <table>""" % now template_footer = """</table> <p><a href="production.csv">Download production data</a></p> <p><a href...
import os template_header = """<html> <head><title>Littlefield Charts</title></head> <body> <table>""" template_footer = """</table> <p><a href="production.csv">Download production data</a></p> <p><a href="rankings.csv">Download latest rankings</a></p> </body> </html>""" root = os.path.abspath(os.path.dirname(__file...
<commit_before>import os template_header = """<html> <head><title>Littlefield Charts</title></head> <body> <table>""" template_footer = """</table> <p><a href="production.csv">Download production data</a></p> <p><a href="rankings.csv">Download latest rankings</a></p> </body> </html>""" root = os.path.abspath(os.path...
2efeba04a04d8d9591c02e8176f1ed251dd95338
IPython/lib/display.py
IPython/lib/display.py
"""Various display related classes. Authors : MinRK, dannystaple """ import urllib class YouTubeVideo(object): """Class for embedding a YouTube Video in an IPython session, based on its video id. e.g. to embed the video on this page: http://www.youtube.com/watch?v=foo you would do: vid = YouTu...
"""Various display related classes. Authors : MinRK, dannystaple """ import urllib class YouTubeVideo(object): """Class for embedding a YouTube Video in an IPython session, based on its video id. e.g. to embed the video on this page: http://www.youtube.com/watch?v=foo you would do: vid = YouTu...
Add newline, spaces on string format
Add newline, spaces on string format Add newline on end of file, put spaces around the string operator (pep8/pylint).
Python
bsd-3-clause
ipython/ipython,ipython/ipython
"""Various display related classes. Authors : MinRK, dannystaple """ import urllib class YouTubeVideo(object): """Class for embedding a YouTube Video in an IPython session, based on its video id. e.g. to embed the video on this page: http://www.youtube.com/watch?v=foo you would do: vid = YouTu...
"""Various display related classes. Authors : MinRK, dannystaple """ import urllib class YouTubeVideo(object): """Class for embedding a YouTube Video in an IPython session, based on its video id. e.g. to embed the video on this page: http://www.youtube.com/watch?v=foo you would do: vid = YouTu...
<commit_before>"""Various display related classes. Authors : MinRK, dannystaple """ import urllib class YouTubeVideo(object): """Class for embedding a YouTube Video in an IPython session, based on its video id. e.g. to embed the video on this page: http://www.youtube.com/watch?v=foo you would do: ...
"""Various display related classes. Authors : MinRK, dannystaple """ import urllib class YouTubeVideo(object): """Class for embedding a YouTube Video in an IPython session, based on its video id. e.g. to embed the video on this page: http://www.youtube.com/watch?v=foo you would do: vid = YouTu...
"""Various display related classes. Authors : MinRK, dannystaple """ import urllib class YouTubeVideo(object): """Class for embedding a YouTube Video in an IPython session, based on its video id. e.g. to embed the video on this page: http://www.youtube.com/watch?v=foo you would do: vid = YouTu...
<commit_before>"""Various display related classes. Authors : MinRK, dannystaple """ import urllib class YouTubeVideo(object): """Class for embedding a YouTube Video in an IPython session, based on its video id. e.g. to embed the video on this page: http://www.youtube.com/watch?v=foo you would do: ...
c2fb76dfa3b6b7a7723bb667a581c6f583710d89
lsync/templates.py
lsync/templates.py
#!/usr/bin/python settings = """settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd-status.log", statusInterval = 5, pidfile = "/var/run/lsyncd.pid" } """ sync = """sync{ default.rsync, source="%(source)s", target="%(target)s", rsyn...
#!/usr/bin/python settings = """-- This file is now generated by a simple config generator. -- Just run http://github.com/rcbau/hacks/lsync/generator.py from the -- /etc/lsync directory and pipe the output to /etc/lsync/lsyncd.conf.lua settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/l...
Add a simple block comment explaining what happens.
Add a simple block comment explaining what happens.
Python
apache-2.0
rcbau/hacks,rcbau/hacks,rcbau/hacks
#!/usr/bin/python settings = """settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd-status.log", statusInterval = 5, pidfile = "/var/run/lsyncd.pid" } """ sync = """sync{ default.rsync, source="%(source)s", target="%(target)s", rsyn...
#!/usr/bin/python settings = """-- This file is now generated by a simple config generator. -- Just run http://github.com/rcbau/hacks/lsync/generator.py from the -- /etc/lsync directory and pipe the output to /etc/lsync/lsyncd.conf.lua settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/l...
<commit_before>#!/usr/bin/python settings = """settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd-status.log", statusInterval = 5, pidfile = "/var/run/lsyncd.pid" } """ sync = """sync{ default.rsync, source="%(source)s", target="%(target)s...
#!/usr/bin/python settings = """-- This file is now generated by a simple config generator. -- Just run http://github.com/rcbau/hacks/lsync/generator.py from the -- /etc/lsync directory and pipe the output to /etc/lsync/lsyncd.conf.lua settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/l...
#!/usr/bin/python settings = """settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd-status.log", statusInterval = 5, pidfile = "/var/run/lsyncd.pid" } """ sync = """sync{ default.rsync, source="%(source)s", target="%(target)s", rsyn...
<commit_before>#!/usr/bin/python settings = """settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd-status.log", statusInterval = 5, pidfile = "/var/run/lsyncd.pid" } """ sync = """sync{ default.rsync, source="%(source)s", target="%(target)s...
ad1e635688dffe5a5ba3f7f30f31d804f695d201
string/anagram.py
string/anagram.py
# Return true if two strings are anagrams of one another def is_anagram(str_one, str_two): # lower case both strings to account for case insensitivity a = str_one.lower() b = str_two.lower() # convert strings into lists and sort each a = list(a).sort() b = list(b).sort() # convert lists back into strings a =...
# Return true if two strings are anagrams of one another def is_anagram(str_one, str_two): # lower case both strings to account for case insensitivity a = str_one.lower() b = str_two.lower() # convert strings into lists and sort each a = list(a) b = list(b) # sort lists a.sort() b.sort() # consolidate lis...
Debug and add test cases
Debug and add test cases
Python
mit
derekmpham/interview-prep,derekmpham/interview-prep
# Return true if two strings are anagrams of one another def is_anagram(str_one, str_two): # lower case both strings to account for case insensitivity a = str_one.lower() b = str_two.lower() # convert strings into lists and sort each a = list(a).sort() b = list(b).sort() # convert lists back into strings a =...
# Return true if two strings are anagrams of one another def is_anagram(str_one, str_two): # lower case both strings to account for case insensitivity a = str_one.lower() b = str_two.lower() # convert strings into lists and sort each a = list(a) b = list(b) # sort lists a.sort() b.sort() # consolidate lis...
<commit_before># Return true if two strings are anagrams of one another def is_anagram(str_one, str_two): # lower case both strings to account for case insensitivity a = str_one.lower() b = str_two.lower() # convert strings into lists and sort each a = list(a).sort() b = list(b).sort() # convert lists back in...
# Return true if two strings are anagrams of one another def is_anagram(str_one, str_two): # lower case both strings to account for case insensitivity a = str_one.lower() b = str_two.lower() # convert strings into lists and sort each a = list(a) b = list(b) # sort lists a.sort() b.sort() # consolidate lis...
# Return true if two strings are anagrams of one another def is_anagram(str_one, str_two): # lower case both strings to account for case insensitivity a = str_one.lower() b = str_two.lower() # convert strings into lists and sort each a = list(a).sort() b = list(b).sort() # convert lists back into strings a =...
<commit_before># Return true if two strings are anagrams of one another def is_anagram(str_one, str_two): # lower case both strings to account for case insensitivity a = str_one.lower() b = str_two.lower() # convert strings into lists and sort each a = list(a).sort() b = list(b).sort() # convert lists back in...
1bc61edde0e41ec3f2fe66758654b55ed51ec36a
test/test_repo.py
test/test_repo.py
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import six from asv import config from asv import repo def test_repo(tmpdir): conf = config.Config() conf.pro...
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import six from asv import config from asv import repo def _test_generic_repo(conf, hash_range=...
Add test for mercurial repo
Add test for mercurial repo
Python
bsd-3-clause
pv/asv,waylonflinn/asv,airspeed-velocity/asv,pv/asv,qwhelan/asv,mdboom/asv,waylonflinn/asv,waylonflinn/asv,ericdill/asv,giltis/asv,ericdill/asv,airspeed-velocity/asv,mdboom/asv,qwhelan/asv,giltis/asv,airspeed-velocity/asv,qwhelan/asv,edisongustavo/asv,mdboom/asv,spacetelescope/asv,edisongustavo/asv,ericdill/asv,pv/asv,...
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import six from asv import config from asv import repo def test_repo(tmpdir): conf = config.Config() conf.pro...
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import six from asv import config from asv import repo def _test_generic_repo(conf, hash_range=...
<commit_before># -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import six from asv import config from asv import repo def test_repo(tmpdir): conf = config.Config(...
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import six from asv import config from asv import repo def _test_generic_repo(conf, hash_range=...
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import six from asv import config from asv import repo def test_repo(tmpdir): conf = config.Config() conf.pro...
<commit_before># -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import six from asv import config from asv import repo def test_repo(tmpdir): conf = config.Config(...
f668f6066864b1efe3863cdb43b8fee4e08a312b
test/test_mk_dirs.py
test/test_mk_dirs.py
from __future__ import absolute_import, print_function from ..pyautoupdate.launcher import Launcher from .pytest_makevers import create_update_dir import os def test_mk_dirs(create_update_dir): """Test that ensures that downlaods directory is created properly""" assert not os.path.isdir(Launcher.updatedir) ...
from __future__ import absolute_import, print_function from ..pyautoupdate.launcher import Launcher from .pytest_makevers import create_update_dir import os def test_mk_dirs(create_update_dir): """Test that ensures that downlaods directory is created properly""" assert not os.path.isdir(Launcher.updatedir) ...
Remove Launcher.updatedir after mkdirs test
Remove Launcher.updatedir after mkdirs test Should go into fixture later
Python
lgpl-2.1
rlee287/pyautoupdate,rlee287/pyautoupdate
from __future__ import absolute_import, print_function from ..pyautoupdate.launcher import Launcher from .pytest_makevers import create_update_dir import os def test_mk_dirs(create_update_dir): """Test that ensures that downlaods directory is created properly""" assert not os.path.isdir(Launcher.updatedir) ...
from __future__ import absolute_import, print_function from ..pyautoupdate.launcher import Launcher from .pytest_makevers import create_update_dir import os def test_mk_dirs(create_update_dir): """Test that ensures that downlaods directory is created properly""" assert not os.path.isdir(Launcher.updatedir) ...
<commit_before>from __future__ import absolute_import, print_function from ..pyautoupdate.launcher import Launcher from .pytest_makevers import create_update_dir import os def test_mk_dirs(create_update_dir): """Test that ensures that downlaods directory is created properly""" assert not os.path.isdir(Launche...
from __future__ import absolute_import, print_function from ..pyautoupdate.launcher import Launcher from .pytest_makevers import create_update_dir import os def test_mk_dirs(create_update_dir): """Test that ensures that downlaods directory is created properly""" assert not os.path.isdir(Launcher.updatedir) ...
from __future__ import absolute_import, print_function from ..pyautoupdate.launcher import Launcher from .pytest_makevers import create_update_dir import os def test_mk_dirs(create_update_dir): """Test that ensures that downlaods directory is created properly""" assert not os.path.isdir(Launcher.updatedir) ...
<commit_before>from __future__ import absolute_import, print_function from ..pyautoupdate.launcher import Launcher from .pytest_makevers import create_update_dir import os def test_mk_dirs(create_update_dir): """Test that ensures that downlaods directory is created properly""" assert not os.path.isdir(Launche...
b5d812504924af2e2781f4be63a6191e5c47879d
test_project/urls.py
test_project/urls.py
"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
Support multiple templates in TEST_TEMPLATES setting.
Support multiple templates in TEST_TEMPLATES setting. Unit tests need to be able to test redirects and other features involving multiple web pages. This commit changes the singleton TEST_TEMPLATE setting to TEST_TEMPLATES, which is a list of path, template tuples.
Python
bsd-3-clause
nimbis/django-selenium-testcase,nimbis/django-selenium-testcase
"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
<commit_before>"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, n...
"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
<commit_before>"""test_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, n...
d0b2b0aa3674fb6b85fd788e88a3a54f4cc22046
pytablewriter/_excel_workbook.py
pytablewriter/_excel_workbook.py
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <[email protected]> """ from __future__ import absolute_import import xlsxwriter class ExcelWorkbookXlsx(object): @property def workbook(self): return self.__workbook @property def file_path(self): return self.__file_path ...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <[email protected]> """ from __future__ import absolute_import import abc import six import xlsxwriter @six.add_metaclass(abc.ABCMeta) class ExcelWorkbookInterface(object): @abc.abstractproperty def workbook(self): pass @abc.abstractpr...
Add an interface class and a base class of for Excel Workbook
Add an interface class and a base class of for Excel Workbook
Python
mit
thombashi/pytablewriter
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <[email protected]> """ from __future__ import absolute_import import xlsxwriter class ExcelWorkbookXlsx(object): @property def workbook(self): return self.__workbook @property def file_path(self): return self.__file_path ...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <[email protected]> """ from __future__ import absolute_import import abc import six import xlsxwriter @six.add_metaclass(abc.ABCMeta) class ExcelWorkbookInterface(object): @abc.abstractproperty def workbook(self): pass @abc.abstractpr...
<commit_before># encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <[email protected]> """ from __future__ import absolute_import import xlsxwriter class ExcelWorkbookXlsx(object): @property def workbook(self): return self.__workbook @property def file_path(self): return sel...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <[email protected]> """ from __future__ import absolute_import import abc import six import xlsxwriter @six.add_metaclass(abc.ABCMeta) class ExcelWorkbookInterface(object): @abc.abstractproperty def workbook(self): pass @abc.abstractpr...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <[email protected]> """ from __future__ import absolute_import import xlsxwriter class ExcelWorkbookXlsx(object): @property def workbook(self): return self.__workbook @property def file_path(self): return self.__file_path ...
<commit_before># encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <[email protected]> """ from __future__ import absolute_import import xlsxwriter class ExcelWorkbookXlsx(object): @property def workbook(self): return self.__workbook @property def file_path(self): return sel...
85dd4d777ccfe9e9fd23c650d43386a0b50444b7
tests/__init__.py
tests/__init__.py
# Copyright (C) 2017 Martin Packman <[email protected]> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at your...
Add new skipUnlessBuiltin function for testing
Add new skipUnlessBuiltin function for testing
Python
lgpl-2.1
paramiko/paramiko,mirrorcoder/paramiko,jaraco/paramiko,SebastianDeiss/paramiko,ameily/paramiko
Add new skipUnlessBuiltin function for testing
# Copyright (C) 2017 Martin Packman <[email protected]> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at your...
<commit_before><commit_msg>Add new skipUnlessBuiltin function for testing<commit_after>
# Copyright (C) 2017 Martin Packman <[email protected]> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at your...
Add new skipUnlessBuiltin function for testing# Copyright (C) 2017 Martin Packman <[email protected]> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; ...
<commit_before><commit_msg>Add new skipUnlessBuiltin function for testing<commit_after># Copyright (C) 2017 Martin Packman <[email protected]> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as publ...
b42cd651d3d839e3fa42aa1b155aab7a9eb33505
tests/settings.py
tests/settings.py
# -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': 'test', 'PASSWORD': 'test', ...
# -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': '', 'PASSWORD': '', 'HOST': ...
Use default user/password for testing
Use default user/password for testing
Python
bsd-3-clause
djangonauts/django-pgjson,djangonauts/django-pgjson
# -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': 'test', 'PASSWORD': 'test', ...
# -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': '', 'PASSWORD': '', 'HOST': ...
<commit_before># -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': 'test', 'PASSWORD': '...
# -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': '', 'PASSWORD': '', 'HOST': ...
# -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': 'test', 'PASSWORD': 'test', ...
<commit_before># -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': 'test', 'PASSWORD': '...
15c474fb25479f044e0199a26e5f0ec95c2bb0ec
tests/test_api.py
tests/test_api.py
import json def test_get_user_list(client, user): response = client.get("/api/v1/users") user_list = json.loads(str(response.data)) user_data = user_list["data"][0] assert user_data["github_name"] == user.github_name assert user_data["github_url"] == user.github_url def test_get_user(client, use...
import json def test_get_user_list(client, user): response = client.get("/api/v1/users") user_list = json.loads(response.get_data().decode("utf-8")) user_data = user_list["data"][0] assert user_data["github_name"] == user.github_name assert user_data["github_url"] == user.github_url def test_get...
Fix tests to correctly decode utf-8 bytestrings.
Fix tests to correctly decode utf-8 bytestrings.
Python
mit
PythonClutch/python-clutch,PythonClutch/python-clutch,PythonClutch/python-clutch
import json def test_get_user_list(client, user): response = client.get("/api/v1/users") user_list = json.loads(str(response.data)) user_data = user_list["data"][0] assert user_data["github_name"] == user.github_name assert user_data["github_url"] == user.github_url def test_get_user(client, use...
import json def test_get_user_list(client, user): response = client.get("/api/v1/users") user_list = json.loads(response.get_data().decode("utf-8")) user_data = user_list["data"][0] assert user_data["github_name"] == user.github_name assert user_data["github_url"] == user.github_url def test_get...
<commit_before>import json def test_get_user_list(client, user): response = client.get("/api/v1/users") user_list = json.loads(str(response.data)) user_data = user_list["data"][0] assert user_data["github_name"] == user.github_name assert user_data["github_url"] == user.github_url def test_get_u...
import json def test_get_user_list(client, user): response = client.get("/api/v1/users") user_list = json.loads(response.get_data().decode("utf-8")) user_data = user_list["data"][0] assert user_data["github_name"] == user.github_name assert user_data["github_url"] == user.github_url def test_get...
import json def test_get_user_list(client, user): response = client.get("/api/v1/users") user_list = json.loads(str(response.data)) user_data = user_list["data"][0] assert user_data["github_name"] == user.github_name assert user_data["github_url"] == user.github_url def test_get_user(client, use...
<commit_before>import json def test_get_user_list(client, user): response = client.get("/api/v1/users") user_list = json.loads(str(response.data)) user_data = user_list["data"][0] assert user_data["github_name"] == user.github_name assert user_data["github_url"] == user.github_url def test_get_u...
9247021be1dc60acd11104ec1de04ea5718c054c
tests/test_config.py
tests/test_config.py
import sys import unittest from skeletor.config import Config from .helpers import nostdout class ConfigTests(unittest.TestCase): """ Argument Passing & Config Tests. """ def setUp(self): self._old_sys_argv = sys.argv sys.argv = [self._old_sys_argv[0].replace('nosetests', 'skeletor')] ...
import sys import unittest from skeletor.config import Config from .helpers import nostdout class ConfigTests(unittest.TestCase): """ Argument Passing & Config Tests. """ def setUp(self): self._old_sys_argv = sys.argv sys.argv = [self._old_sys_argv[0].replace('nosetests', 'skeletor')] ...
Test for valid and invalid project names
Test for valid and invalid project names
Python
bsd-3-clause
krak3n/Facio,krak3n/Facio,krak3n/Facio,krak3n/Facio,krak3n/Facio
import sys import unittest from skeletor.config import Config from .helpers import nostdout class ConfigTests(unittest.TestCase): """ Argument Passing & Config Tests. """ def setUp(self): self._old_sys_argv = sys.argv sys.argv = [self._old_sys_argv[0].replace('nosetests', 'skeletor')] ...
import sys import unittest from skeletor.config import Config from .helpers import nostdout class ConfigTests(unittest.TestCase): """ Argument Passing & Config Tests. """ def setUp(self): self._old_sys_argv = sys.argv sys.argv = [self._old_sys_argv[0].replace('nosetests', 'skeletor')] ...
<commit_before>import sys import unittest from skeletor.config import Config from .helpers import nostdout class ConfigTests(unittest.TestCase): """ Argument Passing & Config Tests. """ def setUp(self): self._old_sys_argv = sys.argv sys.argv = [self._old_sys_argv[0].replace('nosetests', 'sk...
import sys import unittest from skeletor.config import Config from .helpers import nostdout class ConfigTests(unittest.TestCase): """ Argument Passing & Config Tests. """ def setUp(self): self._old_sys_argv = sys.argv sys.argv = [self._old_sys_argv[0].replace('nosetests', 'skeletor')] ...
import sys import unittest from skeletor.config import Config from .helpers import nostdout class ConfigTests(unittest.TestCase): """ Argument Passing & Config Tests. """ def setUp(self): self._old_sys_argv = sys.argv sys.argv = [self._old_sys_argv[0].replace('nosetests', 'skeletor')] ...
<commit_before>import sys import unittest from skeletor.config import Config from .helpers import nostdout class ConfigTests(unittest.TestCase): """ Argument Passing & Config Tests. """ def setUp(self): self._old_sys_argv = sys.argv sys.argv = [self._old_sys_argv[0].replace('nosetests', 'sk...
fc91e70bfa2d46ce923cdd3e2f2d591f8a5b367b
tests/test_person.py
tests/test_person.py
import unittest from classes.person import Person class PersonClassTest(unittest.TestCase): pass # def test_add_person_successfully(self): # my_class_instance = Person() # initial_person_count = len(my_class_instance.all_persons) # staff_neil = my_class_instance.add_person("Neil Armstr...
import unittest from classes.person import Person class PersonClassTest(unittest.TestCase): def test_full_name_only_returns_strings(self): with self.assertRaises(ValueError, msg='Only strings are allowed as names'): my_class_instance = Person("staff", "Peter", "Musonye") my_class_i...
Add tests for class Person
Add tests for class Person
Python
mit
peterpaints/room-allocator
import unittest from classes.person import Person class PersonClassTest(unittest.TestCase): pass # def test_add_person_successfully(self): # my_class_instance = Person() # initial_person_count = len(my_class_instance.all_persons) # staff_neil = my_class_instance.add_person("Neil Armstr...
import unittest from classes.person import Person class PersonClassTest(unittest.TestCase): def test_full_name_only_returns_strings(self): with self.assertRaises(ValueError, msg='Only strings are allowed as names'): my_class_instance = Person("staff", "Peter", "Musonye") my_class_i...
<commit_before>import unittest from classes.person import Person class PersonClassTest(unittest.TestCase): pass # def test_add_person_successfully(self): # my_class_instance = Person() # initial_person_count = len(my_class_instance.all_persons) # staff_neil = my_class_instance.add_pers...
import unittest from classes.person import Person class PersonClassTest(unittest.TestCase): def test_full_name_only_returns_strings(self): with self.assertRaises(ValueError, msg='Only strings are allowed as names'): my_class_instance = Person("staff", "Peter", "Musonye") my_class_i...
import unittest from classes.person import Person class PersonClassTest(unittest.TestCase): pass # def test_add_person_successfully(self): # my_class_instance = Person() # initial_person_count = len(my_class_instance.all_persons) # staff_neil = my_class_instance.add_person("Neil Armstr...
<commit_before>import unittest from classes.person import Person class PersonClassTest(unittest.TestCase): pass # def test_add_person_successfully(self): # my_class_instance = Person() # initial_person_count = len(my_class_instance.all_persons) # staff_neil = my_class_instance.add_pers...
a98b8e78d48ce28e63ed0be2a9dbc008cc21ba97
pi_broadcast_service/rabbit.py
pi_broadcast_service/rabbit.py
import json import pika class Publisher(object): def __init__(self, rabbit_url, exchange): self._rabbit_url = rabbit_url self._exchange = exchange self._connection = pika.BlockingConnection(pika.URLParameters(self._rabbit_url)) self._channel = self._connection.channel() def s...
import json import pika class Publisher(object): def __init__(self, rabbit_url, exchange): self._rabbit_url = rabbit_url self._exchange = exchange self._connection = pika.BlockingConnection(pika.URLParameters(self._rabbit_url)) self._channel = self._connection.channel() def s...
Add a stop method to base class
Add a stop method to base class
Python
mit
projectweekend/Pi-Broadcast-Service
import json import pika class Publisher(object): def __init__(self, rabbit_url, exchange): self._rabbit_url = rabbit_url self._exchange = exchange self._connection = pika.BlockingConnection(pika.URLParameters(self._rabbit_url)) self._channel = self._connection.channel() def s...
import json import pika class Publisher(object): def __init__(self, rabbit_url, exchange): self._rabbit_url = rabbit_url self._exchange = exchange self._connection = pika.BlockingConnection(pika.URLParameters(self._rabbit_url)) self._channel = self._connection.channel() def s...
<commit_before>import json import pika class Publisher(object): def __init__(self, rabbit_url, exchange): self._rabbit_url = rabbit_url self._exchange = exchange self._connection = pika.BlockingConnection(pika.URLParameters(self._rabbit_url)) self._channel = self._connection.chann...
import json import pika class Publisher(object): def __init__(self, rabbit_url, exchange): self._rabbit_url = rabbit_url self._exchange = exchange self._connection = pika.BlockingConnection(pika.URLParameters(self._rabbit_url)) self._channel = self._connection.channel() def s...
import json import pika class Publisher(object): def __init__(self, rabbit_url, exchange): self._rabbit_url = rabbit_url self._exchange = exchange self._connection = pika.BlockingConnection(pika.URLParameters(self._rabbit_url)) self._channel = self._connection.channel() def s...
<commit_before>import json import pika class Publisher(object): def __init__(self, rabbit_url, exchange): self._rabbit_url = rabbit_url self._exchange = exchange self._connection = pika.BlockingConnection(pika.URLParameters(self._rabbit_url)) self._channel = self._connection.chann...
3964606d6f0e28b127af57b1d13c12b3352f861a
ggd/__main__.py
ggd/__main__.py
import sys import argparse from .__init__ import __version__ from . make_bash import add_make_bash from . check_recipe import add_check_recipe from . list_files import add_list_files from . search import add_search from . show_env import add_show_env def main(args=None): if args is None: args = sys.argv[1:...
import sys import argparse from .__init__ import __version__ from . make_bash import add_make_bash from . check_recipe import add_check_recipe from . list_files import add_list_files from . search import add_search from . show_env import add_show_env from . install import add_install from . uninstall import add_uninsta...
Add installer and uninstaller to main
Add installer and uninstaller to main
Python
mit
gogetdata/ggd-cli,gogetdata/ggd-cli
import sys import argparse from .__init__ import __version__ from . make_bash import add_make_bash from . check_recipe import add_check_recipe from . list_files import add_list_files from . search import add_search from . show_env import add_show_env def main(args=None): if args is None: args = sys.argv[1:...
import sys import argparse from .__init__ import __version__ from . make_bash import add_make_bash from . check_recipe import add_check_recipe from . list_files import add_list_files from . search import add_search from . show_env import add_show_env from . install import add_install from . uninstall import add_uninsta...
<commit_before>import sys import argparse from .__init__ import __version__ from . make_bash import add_make_bash from . check_recipe import add_check_recipe from . list_files import add_list_files from . search import add_search from . show_env import add_show_env def main(args=None): if args is None: arg...
import sys import argparse from .__init__ import __version__ from . make_bash import add_make_bash from . check_recipe import add_check_recipe from . list_files import add_list_files from . search import add_search from . show_env import add_show_env from . install import add_install from . uninstall import add_uninsta...
import sys import argparse from .__init__ import __version__ from . make_bash import add_make_bash from . check_recipe import add_check_recipe from . list_files import add_list_files from . search import add_search from . show_env import add_show_env def main(args=None): if args is None: args = sys.argv[1:...
<commit_before>import sys import argparse from .__init__ import __version__ from . make_bash import add_make_bash from . check_recipe import add_check_recipe from . list_files import add_list_files from . search import add_search from . show_env import add_show_env def main(args=None): if args is None: arg...
ca94513b3487232a2f9714ddc129d141c011b4af
dadd/master/admin.py
dadd/master/admin.py
from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from dadd.master import models class ProcessModelView(ModelView): # Make the latest first column_default_sort = ('start_time', True) def __init__(self, session): super(ProcessModelView, self).__init__(models.Pro...
from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from dadd.master import models class ProcessModelView(ModelView): # Make the latest first column_default_sort = ('start_time', True) def __init__(self, session): super(ProcessModelView, self).__init__(models.Pro...
Sort the logfile by added time.
Sort the logfile by added time.
Python
bsd-3-clause
ionrock/dadd,ionrock/dadd,ionrock/dadd,ionrock/dadd
from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from dadd.master import models class ProcessModelView(ModelView): # Make the latest first column_default_sort = ('start_time', True) def __init__(self, session): super(ProcessModelView, self).__init__(models.Pro...
from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from dadd.master import models class ProcessModelView(ModelView): # Make the latest first column_default_sort = ('start_time', True) def __init__(self, session): super(ProcessModelView, self).__init__(models.Pro...
<commit_before>from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from dadd.master import models class ProcessModelView(ModelView): # Make the latest first column_default_sort = ('start_time', True) def __init__(self, session): super(ProcessModelView, self).__in...
from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from dadd.master import models class ProcessModelView(ModelView): # Make the latest first column_default_sort = ('start_time', True) def __init__(self, session): super(ProcessModelView, self).__init__(models.Pro...
from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from dadd.master import models class ProcessModelView(ModelView): # Make the latest first column_default_sort = ('start_time', True) def __init__(self, session): super(ProcessModelView, self).__init__(models.Pro...
<commit_before>from flask.ext.admin import Admin from flask.ext.admin.contrib.sqla import ModelView from dadd.master import models class ProcessModelView(ModelView): # Make the latest first column_default_sort = ('start_time', True) def __init__(self, session): super(ProcessModelView, self).__in...
5cfb7a1b0feca5cd33f93447cfc43c1c944d4810
tests/test_dragon.py
tests/test_dragon.py
import pytest from mugloar import dragon def test_partition(): for solution in dragon.partition(20, 4, 0, 10): print(solution) assert abs(solution[0]) + abs(solution[1]) + abs(solution[2]) + abs(solution[3]) == 20
import pytest from mugloar import dragon @pytest.fixture def dragon_instance(): return dragon.Dragon() @pytest.fixture def knight(): return [('endurance', 8), ('attack', 5), ('armor', 4), ('agility', 3)] @pytest.fixture def dragon_stats(): return 10, 10, 0, 0 def test_set_relative_stats(dragon_insta...
Implement rudimentary unit tests for dragon class
Implement rudimentary unit tests for dragon class
Python
mit
reinikai/mugloar
import pytest from mugloar import dragon def test_partition(): for solution in dragon.partition(20, 4, 0, 10): print(solution) assert abs(solution[0]) + abs(solution[1]) + abs(solution[2]) + abs(solution[3]) == 20 Implement rudimentary unit tests for dragon class
import pytest from mugloar import dragon @pytest.fixture def dragon_instance(): return dragon.Dragon() @pytest.fixture def knight(): return [('endurance', 8), ('attack', 5), ('armor', 4), ('agility', 3)] @pytest.fixture def dragon_stats(): return 10, 10, 0, 0 def test_set_relative_stats(dragon_insta...
<commit_before>import pytest from mugloar import dragon def test_partition(): for solution in dragon.partition(20, 4, 0, 10): print(solution) assert abs(solution[0]) + abs(solution[1]) + abs(solution[2]) + abs(solution[3]) == 20 <commit_msg>Implement rudimentary unit tests for dragon class<commit_...
import pytest from mugloar import dragon @pytest.fixture def dragon_instance(): return dragon.Dragon() @pytest.fixture def knight(): return [('endurance', 8), ('attack', 5), ('armor', 4), ('agility', 3)] @pytest.fixture def dragon_stats(): return 10, 10, 0, 0 def test_set_relative_stats(dragon_insta...
import pytest from mugloar import dragon def test_partition(): for solution in dragon.partition(20, 4, 0, 10): print(solution) assert abs(solution[0]) + abs(solution[1]) + abs(solution[2]) + abs(solution[3]) == 20 Implement rudimentary unit tests for dragon classimport pytest from mugloar import d...
<commit_before>import pytest from mugloar import dragon def test_partition(): for solution in dragon.partition(20, 4, 0, 10): print(solution) assert abs(solution[0]) + abs(solution[1]) + abs(solution[2]) + abs(solution[3]) == 20 <commit_msg>Implement rudimentary unit tests for dragon class<commit_...
918db0dddae47e660aecabba73b460dc13ca0bc4
tests/test_cli_eigenvals.py
tests/test_cli_eigenvals.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import tempfile import numpy as np import bands_inspect as bi from click.testing import CliRunner import tbmodels from tbmodels._cli import cli def test_cli_eigenvals(sample): samples_dir = sample('cli_eigenvals') runner = CliRunner() ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import tempfile import numpy as np import bands_inspect as bi from click.testing import CliRunner import tbmodels from tbmodels._cli import cli def test_cli_eigenvals(sample): samples_dir = sample('cli_eigenvals') runner = CliRunner() ...
Fix test for new bands_inspect version.
Fix test for new bands_inspect version.
Python
apache-2.0
Z2PackDev/TBmodels,Z2PackDev/TBmodels
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import tempfile import numpy as np import bands_inspect as bi from click.testing import CliRunner import tbmodels from tbmodels._cli import cli def test_cli_eigenvals(sample): samples_dir = sample('cli_eigenvals') runner = CliRunner() ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import tempfile import numpy as np import bands_inspect as bi from click.testing import CliRunner import tbmodels from tbmodels._cli import cli def test_cli_eigenvals(sample): samples_dir = sample('cli_eigenvals') runner = CliRunner() ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import tempfile import numpy as np import bands_inspect as bi from click.testing import CliRunner import tbmodels from tbmodels._cli import cli def test_cli_eigenvals(sample): samples_dir = sample('cli_eigenvals') runner =...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import tempfile import numpy as np import bands_inspect as bi from click.testing import CliRunner import tbmodels from tbmodels._cli import cli def test_cli_eigenvals(sample): samples_dir = sample('cli_eigenvals') runner = CliRunner() ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import tempfile import numpy as np import bands_inspect as bi from click.testing import CliRunner import tbmodels from tbmodels._cli import cli def test_cli_eigenvals(sample): samples_dir = sample('cli_eigenvals') runner = CliRunner() ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import tempfile import numpy as np import bands_inspect as bi from click.testing import CliRunner import tbmodels from tbmodels._cli import cli def test_cli_eigenvals(sample): samples_dir = sample('cli_eigenvals') runner =...
3afe14ee6beb1a3177d929bacb20b3c4bb9363d7
tests/test_parser.py
tests/test_parser.py
import unittest from xhtml2pdf.parser import pisaParser from xhtml2pdf.context import pisaContext _data = b""" <!doctype html> <html> <title>TITLE</title> <body> BODY </body> </html> """ class TestCase(unittest.TestCase): def testParser(self): c = pisaContext(".") r = pisaParser(_data, c) ...
import unittest from xhtml2pdf.parser import pisaParser from xhtml2pdf.context import pisaContext _data = b""" <!doctype html> <html> <title>TITLE</title> <body> BODY </body> </html> """ class TestCase(unittest.TestCase): def testParser(self): c = pisaContext(".") r = pisaParser(_data, c) ...
Add tests for base64 image
Add tests for base64 image
Python
apache-2.0
trib3/xhtml2pdf,chrisglass/xhtml2pdf,jensadne/xhtml2pdf,tinjyuu/xhtml2pdf,xhtml2pdf/xhtml2pdf,orbitvu/xhtml2pdf,chrisglass/xhtml2pdf,trib3/xhtml2pdf,tinjyuu/xhtml2pdf,orbitvu/xhtml2pdf,jensadne/xhtml2pdf,xhtml2pdf/xhtml2pdf
import unittest from xhtml2pdf.parser import pisaParser from xhtml2pdf.context import pisaContext _data = b""" <!doctype html> <html> <title>TITLE</title> <body> BODY </body> </html> """ class TestCase(unittest.TestCase): def testParser(self): c = pisaContext(".") r = pisaParser(_data, c) ...
import unittest from xhtml2pdf.parser import pisaParser from xhtml2pdf.context import pisaContext _data = b""" <!doctype html> <html> <title>TITLE</title> <body> BODY </body> </html> """ class TestCase(unittest.TestCase): def testParser(self): c = pisaContext(".") r = pisaParser(_data, c) ...
<commit_before>import unittest from xhtml2pdf.parser import pisaParser from xhtml2pdf.context import pisaContext _data = b""" <!doctype html> <html> <title>TITLE</title> <body> BODY </body> </html> """ class TestCase(unittest.TestCase): def testParser(self): c = pisaContext(".") r = pisaParser(_...
import unittest from xhtml2pdf.parser import pisaParser from xhtml2pdf.context import pisaContext _data = b""" <!doctype html> <html> <title>TITLE</title> <body> BODY </body> </html> """ class TestCase(unittest.TestCase): def testParser(self): c = pisaContext(".") r = pisaParser(_data, c) ...
import unittest from xhtml2pdf.parser import pisaParser from xhtml2pdf.context import pisaContext _data = b""" <!doctype html> <html> <title>TITLE</title> <body> BODY </body> </html> """ class TestCase(unittest.TestCase): def testParser(self): c = pisaContext(".") r = pisaParser(_data, c) ...
<commit_before>import unittest from xhtml2pdf.parser import pisaParser from xhtml2pdf.context import pisaContext _data = b""" <!doctype html> <html> <title>TITLE</title> <body> BODY </body> </html> """ class TestCase(unittest.TestCase): def testParser(self): c = pisaContext(".") r = pisaParser(_...
432233a99d9036f358716b48a0e26054a7e217bf
SlugifyCommand.py
SlugifyCommand.py
# encoding: utf-8 '''This adds a "slugify" command to be invoked by Sublime Text. It is made available as "Slugify" in the command palette by Default.sublime-commands. Parts of these commands are borrowed from the sublime-slug package: https://github.com/madeingnecca/sublime-slug ''' from __future__ import unicode_li...
# encoding: utf-8 '''This adds a "slugify" command to be invoked by Sublime Text. It is made available as "Slugify" in the command palette by Default.sublime-commands. Parts of these commands are borrowed from the sublime-slug package: https://github.com/madeingnecca/sublime-slug ''' from __future__ import unicode_li...
Fix broken plugin on Windows.
Fix broken plugin on Windows.
Python
mit
alimony/sublime-slugify
# encoding: utf-8 '''This adds a "slugify" command to be invoked by Sublime Text. It is made available as "Slugify" in the command palette by Default.sublime-commands. Parts of these commands are borrowed from the sublime-slug package: https://github.com/madeingnecca/sublime-slug ''' from __future__ import unicode_li...
# encoding: utf-8 '''This adds a "slugify" command to be invoked by Sublime Text. It is made available as "Slugify" in the command palette by Default.sublime-commands. Parts of these commands are borrowed from the sublime-slug package: https://github.com/madeingnecca/sublime-slug ''' from __future__ import unicode_li...
<commit_before># encoding: utf-8 '''This adds a "slugify" command to be invoked by Sublime Text. It is made available as "Slugify" in the command palette by Default.sublime-commands. Parts of these commands are borrowed from the sublime-slug package: https://github.com/madeingnecca/sublime-slug ''' from __future__ im...
# encoding: utf-8 '''This adds a "slugify" command to be invoked by Sublime Text. It is made available as "Slugify" in the command palette by Default.sublime-commands. Parts of these commands are borrowed from the sublime-slug package: https://github.com/madeingnecca/sublime-slug ''' from __future__ import unicode_li...
# encoding: utf-8 '''This adds a "slugify" command to be invoked by Sublime Text. It is made available as "Slugify" in the command palette by Default.sublime-commands. Parts of these commands are borrowed from the sublime-slug package: https://github.com/madeingnecca/sublime-slug ''' from __future__ import unicode_li...
<commit_before># encoding: utf-8 '''This adds a "slugify" command to be invoked by Sublime Text. It is made available as "Slugify" in the command palette by Default.sublime-commands. Parts of these commands are borrowed from the sublime-slug package: https://github.com/madeingnecca/sublime-slug ''' from __future__ im...
c347e6e763b79a9c4af6d7776093ce9ed711c43d
monkeys/release.py
monkeys/release.py
from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if not local_only: ...
from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if not local_only: ...
Use `twine` to deploy Wikked to Pypi.
cm: Use `twine` to deploy Wikked to Pypi.
Python
apache-2.0
ludovicchabant/Wikked,ludovicchabant/Wikked,ludovicchabant/Wikked
from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if not local_only: ...
from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if not local_only: ...
<commit_before>from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if n...
from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if not local_only: ...
from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if not local_only: ...
<commit_before>from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if n...
cbe447825408d7178e1b4eb4bf981600001ada32
rymtracks/services/archiveorg.py
rymtracks/services/archiveorg.py
# -*- coding: utf-8 -*- """ This module contains Service implementation of Archive.org. http://archive.org """ from . import Service, JSONMixin from six import text_type from tornado.httpclient import HTTPRequest ############################################################################## class ArchiveOrg(JSON...
# -*- coding: utf-8 -*- """ This module contains Service implementation of Archive.org. http://archive.org """ from . import Service, JSONMixin from six import text_type from tornado.httpclient import HTTPRequest ############################################################################## class ArchiveOrg(JSON...
Put weaker requirements on Archive.org service
Put weaker requirements on Archive.org service
Python
mit
9seconds/rymtracks
# -*- coding: utf-8 -*- """ This module contains Service implementation of Archive.org. http://archive.org """ from . import Service, JSONMixin from six import text_type from tornado.httpclient import HTTPRequest ############################################################################## class ArchiveOrg(JSON...
# -*- coding: utf-8 -*- """ This module contains Service implementation of Archive.org. http://archive.org """ from . import Service, JSONMixin from six import text_type from tornado.httpclient import HTTPRequest ############################################################################## class ArchiveOrg(JSON...
<commit_before># -*- coding: utf-8 -*- """ This module contains Service implementation of Archive.org. http://archive.org """ from . import Service, JSONMixin from six import text_type from tornado.httpclient import HTTPRequest ############################################################################## class ...
# -*- coding: utf-8 -*- """ This module contains Service implementation of Archive.org. http://archive.org """ from . import Service, JSONMixin from six import text_type from tornado.httpclient import HTTPRequest ############################################################################## class ArchiveOrg(JSON...
# -*- coding: utf-8 -*- """ This module contains Service implementation of Archive.org. http://archive.org """ from . import Service, JSONMixin from six import text_type from tornado.httpclient import HTTPRequest ############################################################################## class ArchiveOrg(JSON...
<commit_before># -*- coding: utf-8 -*- """ This module contains Service implementation of Archive.org. http://archive.org """ from . import Service, JSONMixin from six import text_type from tornado.httpclient import HTTPRequest ############################################################################## class ...