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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48a2eb277d234219dd116d9a0dec5a559b22aff8 | app/main/services/process_request_json.py | app/main/services/process_request_json.py | import types
from query_builder import FILTER_FIELDS, TEXT_FIELDS
from conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, types.ListType):
fixed = []
for i in values:
fixed.append(strip_and_lo... | from query_builder import FILTER_FIELDS, TEXT_FIELDS
from conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, basestring):... | Refactor argument processing to list comprehension | Refactor argument processing to list comprehension
| Python | mit | RichardKnop/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api,alphagov/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api,alphagov/digitalmarketplace-search-api | import types
from query_builder import FILTER_FIELDS, TEXT_FIELDS
from conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, types.ListType):
fixed = []
for i in values:
fixed.append(strip_and_lo... | from query_builder import FILTER_FIELDS, TEXT_FIELDS
from conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, basestring):... | <commit_before>import types
from query_builder import FILTER_FIELDS, TEXT_FIELDS
from conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, types.ListType):
fixed = []
for i in values:
fixed.appe... | from query_builder import FILTER_FIELDS, TEXT_FIELDS
from conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, basestring):... | import types
from query_builder import FILTER_FIELDS, TEXT_FIELDS
from conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, types.ListType):
fixed = []
for i in values:
fixed.append(strip_and_lo... | <commit_before>import types
from query_builder import FILTER_FIELDS, TEXT_FIELDS
from conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, types.ListType):
fixed = []
for i in values:
fixed.appe... |
33a4f91981373b284e005b245d19fae0000f9201 | pontoon/administration/management/commands/update_projects.py | pontoon/administration/management/commands/update_projects.py |
import datetime
from django.core.management.base import BaseCommand, CommandError
from pontoon.administration.utils.files import (
update_from_repository,
extract_to_database,
)
from pontoon.base.models import Project
class Command(BaseCommand):
help = 'Update all projects from their repositories and ... |
import datetime
from django.core.management.base import BaseCommand, CommandError
from pontoon.administration.utils.files import (
update_from_repository,
extract_to_database,
)
from pontoon.base.models import Project
class Command(BaseCommand):
args = '<project_id project_id ...>'
help = 'Update ... | Allow specifying which project to udpate with the management command | Allow specifying which project to udpate with the management command
| Python | bsd-3-clause | m8ttyB/pontoon,mozilla/pontoon,mastizada/pontoon,mastizada/pontoon,sudheesh001/pontoon,Jobava/mirror-pontoon,mozilla/pontoon,Osmose/pontoon,sudheesh001/pontoon,yfdyh000/pontoon,mozilla/pontoon,m8ttyB/pontoon,mathjazz/pontoon,participedia/pontoon,mastizada/pontoon,mathjazz/pontoon,sudheesh001/pontoon,Osmose/pontoon,mozi... |
import datetime
from django.core.management.base import BaseCommand, CommandError
from pontoon.administration.utils.files import (
update_from_repository,
extract_to_database,
)
from pontoon.base.models import Project
class Command(BaseCommand):
help = 'Update all projects from their repositories and ... |
import datetime
from django.core.management.base import BaseCommand, CommandError
from pontoon.administration.utils.files import (
update_from_repository,
extract_to_database,
)
from pontoon.base.models import Project
class Command(BaseCommand):
args = '<project_id project_id ...>'
help = 'Update ... | <commit_before>
import datetime
from django.core.management.base import BaseCommand, CommandError
from pontoon.administration.utils.files import (
update_from_repository,
extract_to_database,
)
from pontoon.base.models import Project
class Command(BaseCommand):
help = 'Update all projects from their re... |
import datetime
from django.core.management.base import BaseCommand, CommandError
from pontoon.administration.utils.files import (
update_from_repository,
extract_to_database,
)
from pontoon.base.models import Project
class Command(BaseCommand):
args = '<project_id project_id ...>'
help = 'Update ... |
import datetime
from django.core.management.base import BaseCommand, CommandError
from pontoon.administration.utils.files import (
update_from_repository,
extract_to_database,
)
from pontoon.base.models import Project
class Command(BaseCommand):
help = 'Update all projects from their repositories and ... | <commit_before>
import datetime
from django.core.management.base import BaseCommand, CommandError
from pontoon.administration.utils.files import (
update_from_repository,
extract_to_database,
)
from pontoon.base.models import Project
class Command(BaseCommand):
help = 'Update all projects from their re... |
0263189433456f23bdcbb1921d2f710b045cd5ba | bot.py | bot.py | import zirc
import ssl
import socket
import utils
import commands
debug = False
class Bot(zirc.Client):
def __init__(self):
self.connection = zirc.Socket(family=socket.AF_INET6,
wrapper=ssl.wrap_socket)
self.config = zirc.IRCConfig(host="chat.freenode.net",
... | import zirc
import ssl
import socket
import utils
import commands
debug = False
class Bot(zirc.Client):
def __init__(self):
self.connection = zirc.Socket(family=socket.AF_INET6,
wrapper=ssl.wrap_socket)
self.config = zirc.IRCConfig(host="chat.freenode.net",
... | Fix error where self.config was undefined | Fix error where self.config was undefined
These decorators are harsh
| Python | mit | wolfy1339/Python-IRC-Bot | import zirc
import ssl
import socket
import utils
import commands
debug = False
class Bot(zirc.Client):
def __init__(self):
self.connection = zirc.Socket(family=socket.AF_INET6,
wrapper=ssl.wrap_socket)
self.config = zirc.IRCConfig(host="chat.freenode.net",
... | import zirc
import ssl
import socket
import utils
import commands
debug = False
class Bot(zirc.Client):
def __init__(self):
self.connection = zirc.Socket(family=socket.AF_INET6,
wrapper=ssl.wrap_socket)
self.config = zirc.IRCConfig(host="chat.freenode.net",
... | <commit_before>import zirc
import ssl
import socket
import utils
import commands
debug = False
class Bot(zirc.Client):
def __init__(self):
self.connection = zirc.Socket(family=socket.AF_INET6,
wrapper=ssl.wrap_socket)
self.config = zirc.IRCConfig(host="chat.f... | import zirc
import ssl
import socket
import utils
import commands
debug = False
class Bot(zirc.Client):
def __init__(self):
self.connection = zirc.Socket(family=socket.AF_INET6,
wrapper=ssl.wrap_socket)
self.config = zirc.IRCConfig(host="chat.freenode.net",
... | import zirc
import ssl
import socket
import utils
import commands
debug = False
class Bot(zirc.Client):
def __init__(self):
self.connection = zirc.Socket(family=socket.AF_INET6,
wrapper=ssl.wrap_socket)
self.config = zirc.IRCConfig(host="chat.freenode.net",
... | <commit_before>import zirc
import ssl
import socket
import utils
import commands
debug = False
class Bot(zirc.Client):
def __init__(self):
self.connection = zirc.Socket(family=socket.AF_INET6,
wrapper=ssl.wrap_socket)
self.config = zirc.IRCConfig(host="chat.f... |
052de49807dcb9895608e3882b799642b0b08d18 | exercises/circular-buffer/circular_buffer.py | exercises/circular-buffer/circular_buffer.py | class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
pass
class CircularBuffer(object):
def __init__(self):
pass
| class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
pass
class CircularBuffer(object):
def __init__(self, capacity):
pass
| Add parameter capacity to circular-buffer example | Add parameter capacity to circular-buffer example
Fixes #550 | Python | mit | jmluy/xpython,mweb/python,mweb/python,pheanex/xpython,exercism/xpython,jmluy/xpython,exercism/xpython,smalley/python,behrtam/xpython,behrtam/xpython,exercism/python,N-Parsons/exercism-python,exercism/python,N-Parsons/exercism-python,pheanex/xpython,smalley/python | class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
pass
class CircularBuffer(object):
def __init__(self):
pass
Add parameter capacity to circular-buffer example
Fixes #550 | class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
pass
class CircularBuffer(object):
def __init__(self, capacity):
pass
| <commit_before>class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
pass
class CircularBuffer(object):
def __init__(self):
pass
<commit_msg>Add parameter capacity to circular-buffer example
Fixes #550<commit_after> | class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
pass
class CircularBuffer(object):
def __init__(self, capacity):
pass
| class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
pass
class CircularBuffer(object):
def __init__(self):
pass
Add parameter capacity to circular-buffer example
Fixes #550class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
p... | <commit_before>class BufferFullException(Exception):
pass
class BufferEmptyException(Exception):
pass
class CircularBuffer(object):
def __init__(self):
pass
<commit_msg>Add parameter capacity to circular-buffer example
Fixes #550<commit_after>class BufferFullException(Exception):
pass
cla... |
095f2a78416b12f23b4f59d6415103bd4873a86b | project/tenhou/main.py | project/tenhou/main.py | # -*- coding: utf-8 -*-
import logging
from tenhou.client import TenhouClient
from utils.settings_handler import settings
logger = logging.getLogger('tenhou')
def connect_and_play():
logger.info('Bot AI enabled: {}'.format(settings.ENABLE_AI))
client = TenhouClient()
client.connect()
try:
... | # -*- coding: utf-8 -*-
import logging
from tenhou.client import TenhouClient
from utils.settings_handler import settings
logger = logging.getLogger('tenhou')
def connect_and_play():
logger.info('Bot AI enabled: {}'.format(settings.ENABLE_AI))
client = TenhouClient()
client.connect()
try:
... | Handle unexpected errors and store stack trace to the log | Handle unexpected errors and store stack trace to the log
| Python | mit | MahjongRepository/tenhou-python-bot,huangenyan/Lattish,huangenyan/Lattish,MahjongRepository/tenhou-python-bot | # -*- coding: utf-8 -*-
import logging
from tenhou.client import TenhouClient
from utils.settings_handler import settings
logger = logging.getLogger('tenhou')
def connect_and_play():
logger.info('Bot AI enabled: {}'.format(settings.ENABLE_AI))
client = TenhouClient()
client.connect()
try:
... | # -*- coding: utf-8 -*-
import logging
from tenhou.client import TenhouClient
from utils.settings_handler import settings
logger = logging.getLogger('tenhou')
def connect_and_play():
logger.info('Bot AI enabled: {}'.format(settings.ENABLE_AI))
client = TenhouClient()
client.connect()
try:
... | <commit_before># -*- coding: utf-8 -*-
import logging
from tenhou.client import TenhouClient
from utils.settings_handler import settings
logger = logging.getLogger('tenhou')
def connect_and_play():
logger.info('Bot AI enabled: {}'.format(settings.ENABLE_AI))
client = TenhouClient()
client.connect()
... | # -*- coding: utf-8 -*-
import logging
from tenhou.client import TenhouClient
from utils.settings_handler import settings
logger = logging.getLogger('tenhou')
def connect_and_play():
logger.info('Bot AI enabled: {}'.format(settings.ENABLE_AI))
client = TenhouClient()
client.connect()
try:
... | # -*- coding: utf-8 -*-
import logging
from tenhou.client import TenhouClient
from utils.settings_handler import settings
logger = logging.getLogger('tenhou')
def connect_and_play():
logger.info('Bot AI enabled: {}'.format(settings.ENABLE_AI))
client = TenhouClient()
client.connect()
try:
... | <commit_before># -*- coding: utf-8 -*-
import logging
from tenhou.client import TenhouClient
from utils.settings_handler import settings
logger = logging.getLogger('tenhou')
def connect_and_play():
logger.info('Bot AI enabled: {}'.format(settings.ENABLE_AI))
client = TenhouClient()
client.connect()
... |
1f5ee2f729b947a31ab2b04a72ae8c40616db73a | tests/test_plugin_states.py | tests/test_plugin_states.py | from contextlib import contextmanager
from os import path
from unittest import TestCase
from dictdiffer import diff
from jsontest import JsonTest
from mock import patch
from canaryd_packages import six
from canaryd.plugin import get_plugin_by_name
class TestPluginRealStates(TestCase):
def test_meta_plugin(self... | from contextlib import contextmanager
from os import path
from unittest import TestCase
from dictdiffer import diff
from jsontest import JsonTest
from mock import patch
from canaryd_packages import six
from canaryd.plugin import get_plugin_by_name
from canaryd.settings import CanarydSettings
class TestPluginRealSt... | Fix tests by passing default settings object rather than empty dict. | Fix tests by passing default settings object rather than empty dict.
| Python | mit | Oxygem/canaryd,Oxygem/canaryd | from contextlib import contextmanager
from os import path
from unittest import TestCase
from dictdiffer import diff
from jsontest import JsonTest
from mock import patch
from canaryd_packages import six
from canaryd.plugin import get_plugin_by_name
class TestPluginRealStates(TestCase):
def test_meta_plugin(self... | from contextlib import contextmanager
from os import path
from unittest import TestCase
from dictdiffer import diff
from jsontest import JsonTest
from mock import patch
from canaryd_packages import six
from canaryd.plugin import get_plugin_by_name
from canaryd.settings import CanarydSettings
class TestPluginRealSt... | <commit_before>from contextlib import contextmanager
from os import path
from unittest import TestCase
from dictdiffer import diff
from jsontest import JsonTest
from mock import patch
from canaryd_packages import six
from canaryd.plugin import get_plugin_by_name
class TestPluginRealStates(TestCase):
def test_m... | from contextlib import contextmanager
from os import path
from unittest import TestCase
from dictdiffer import diff
from jsontest import JsonTest
from mock import patch
from canaryd_packages import six
from canaryd.plugin import get_plugin_by_name
from canaryd.settings import CanarydSettings
class TestPluginRealSt... | from contextlib import contextmanager
from os import path
from unittest import TestCase
from dictdiffer import diff
from jsontest import JsonTest
from mock import patch
from canaryd_packages import six
from canaryd.plugin import get_plugin_by_name
class TestPluginRealStates(TestCase):
def test_meta_plugin(self... | <commit_before>from contextlib import contextmanager
from os import path
from unittest import TestCase
from dictdiffer import diff
from jsontest import JsonTest
from mock import patch
from canaryd_packages import six
from canaryd.plugin import get_plugin_by_name
class TestPluginRealStates(TestCase):
def test_m... |
19a508aad7c42469923c6f62acef67113e280501 | memefarm/imagesearch.py | memefarm/imagesearch.py | import json
import os
import random
import requests
from PIL import Image
# GLOBALS
endpoint = "https://www.googleapis.com/customsearch/v1"
searchid = "013060195084513904668:z7-hxk7q35k"
# Retrieve my API key from a secret file
with open(os.path.join(os.path.dirname(__file__), "API_KEY.txt"), "r") as f:
API_KE... | import json
import os
import random
import requests
from io import BytesIO
from PIL import Image
# GLOBALS
endpoint = "https://www.googleapis.com/customsearch/v1"
searchid = "013060195084513904668:z7-hxk7q35k"
# Retrieve my API key from a secret file
with open(os.path.join(os.path.dirname(__file__), "API_KEY.txt"),... | Add method for getting PIL image | Add method for getting PIL image
Also change function names to be uniform throughout
| Python | mit | The-Penultimate-Defenestrator/memefarm | import json
import os
import random
import requests
from PIL import Image
# GLOBALS
endpoint = "https://www.googleapis.com/customsearch/v1"
searchid = "013060195084513904668:z7-hxk7q35k"
# Retrieve my API key from a secret file
with open(os.path.join(os.path.dirname(__file__), "API_KEY.txt"), "r") as f:
API_KE... | import json
import os
import random
import requests
from io import BytesIO
from PIL import Image
# GLOBALS
endpoint = "https://www.googleapis.com/customsearch/v1"
searchid = "013060195084513904668:z7-hxk7q35k"
# Retrieve my API key from a secret file
with open(os.path.join(os.path.dirname(__file__), "API_KEY.txt"),... | <commit_before>import json
import os
import random
import requests
from PIL import Image
# GLOBALS
endpoint = "https://www.googleapis.com/customsearch/v1"
searchid = "013060195084513904668:z7-hxk7q35k"
# Retrieve my API key from a secret file
with open(os.path.join(os.path.dirname(__file__), "API_KEY.txt"), "r") a... | import json
import os
import random
import requests
from io import BytesIO
from PIL import Image
# GLOBALS
endpoint = "https://www.googleapis.com/customsearch/v1"
searchid = "013060195084513904668:z7-hxk7q35k"
# Retrieve my API key from a secret file
with open(os.path.join(os.path.dirname(__file__), "API_KEY.txt"),... | import json
import os
import random
import requests
from PIL import Image
# GLOBALS
endpoint = "https://www.googleapis.com/customsearch/v1"
searchid = "013060195084513904668:z7-hxk7q35k"
# Retrieve my API key from a secret file
with open(os.path.join(os.path.dirname(__file__), "API_KEY.txt"), "r") as f:
API_KE... | <commit_before>import json
import os
import random
import requests
from PIL import Image
# GLOBALS
endpoint = "https://www.googleapis.com/customsearch/v1"
searchid = "013060195084513904668:z7-hxk7q35k"
# Retrieve my API key from a secret file
with open(os.path.join(os.path.dirname(__file__), "API_KEY.txt"), "r") a... |
5f2c7e34bb681fb611f6ba068fc02953d26ab424 | pyinfra/facts/pacman.py | pyinfra/facts/pacman.py | from pyinfra.api import FactBase
from .util.packaging import parse_packages
PACMAN_REGEX = r'^([0-9a-zA-Z\-]+)\s([0-9\._+a-z\-]+)'
class PacmanUnpackGroup(FactBase):
'''
Returns a list of actual packages belonging to the provided package name,
expanding groups or virtual packages.
.. code:: python
... | from pyinfra.api import FactBase
from .util.packaging import parse_packages
PACMAN_REGEX = r'^([0-9a-zA-Z\-]+)\s([0-9\._+a-z\-]+)'
class PacmanUnpackGroup(FactBase):
'''
Returns a list of actual packages belonging to the provided package name,
expanding groups or virtual packages.
.. code:: python
... | Fix docstring in `PacmanUnpackGroup` fact. | Fix docstring in `PacmanUnpackGroup` fact.
| Python | mit | Fizzadar/pyinfra,Fizzadar/pyinfra | from pyinfra.api import FactBase
from .util.packaging import parse_packages
PACMAN_REGEX = r'^([0-9a-zA-Z\-]+)\s([0-9\._+a-z\-]+)'
class PacmanUnpackGroup(FactBase):
'''
Returns a list of actual packages belonging to the provided package name,
expanding groups or virtual packages.
.. code:: python
... | from pyinfra.api import FactBase
from .util.packaging import parse_packages
PACMAN_REGEX = r'^([0-9a-zA-Z\-]+)\s([0-9\._+a-z\-]+)'
class PacmanUnpackGroup(FactBase):
'''
Returns a list of actual packages belonging to the provided package name,
expanding groups or virtual packages.
.. code:: python
... | <commit_before>from pyinfra.api import FactBase
from .util.packaging import parse_packages
PACMAN_REGEX = r'^([0-9a-zA-Z\-]+)\s([0-9\._+a-z\-]+)'
class PacmanUnpackGroup(FactBase):
'''
Returns a list of actual packages belonging to the provided package name,
expanding groups or virtual packages.
..... | from pyinfra.api import FactBase
from .util.packaging import parse_packages
PACMAN_REGEX = r'^([0-9a-zA-Z\-]+)\s([0-9\._+a-z\-]+)'
class PacmanUnpackGroup(FactBase):
'''
Returns a list of actual packages belonging to the provided package name,
expanding groups or virtual packages.
.. code:: python
... | from pyinfra.api import FactBase
from .util.packaging import parse_packages
PACMAN_REGEX = r'^([0-9a-zA-Z\-]+)\s([0-9\._+a-z\-]+)'
class PacmanUnpackGroup(FactBase):
'''
Returns a list of actual packages belonging to the provided package name,
expanding groups or virtual packages.
.. code:: python
... | <commit_before>from pyinfra.api import FactBase
from .util.packaging import parse_packages
PACMAN_REGEX = r'^([0-9a-zA-Z\-]+)\s([0-9\._+a-z\-]+)'
class PacmanUnpackGroup(FactBase):
'''
Returns a list of actual packages belonging to the provided package name,
expanding groups or virtual packages.
..... |
82c4ade1727a044946b0ebf148fe4e015d8dd7af | python/ImageDisplay.py | python/ImageDisplay.py | import numpy as np
import cv2
# Load an image in color
img = cv2.imread("doge.jpeg", 1)
cv2.imshow("image", img)
key = cv2.waitKey(0)
cv2.destroyAllWindows() | Add read image in color | Add read image in color
| Python | mit | maximest-pierre/opencv_example,maximest-pierre/opencv_example | Add read image in color | import numpy as np
import cv2
# Load an image in color
img = cv2.imread("doge.jpeg", 1)
cv2.imshow("image", img)
key = cv2.waitKey(0)
cv2.destroyAllWindows() | <commit_before><commit_msg>Add read image in color<commit_after> | import numpy as np
import cv2
# Load an image in color
img = cv2.imread("doge.jpeg", 1)
cv2.imshow("image", img)
key = cv2.waitKey(0)
cv2.destroyAllWindows() | Add read image in colorimport numpy as np
import cv2
# Load an image in color
img = cv2.imread("doge.jpeg", 1)
cv2.imshow("image", img)
key = cv2.waitKey(0)
cv2.destroyAllWindows() | <commit_before><commit_msg>Add read image in color<commit_after>import numpy as np
import cv2
# Load an image in color
img = cv2.imread("doge.jpeg", 1)
cv2.imshow("image", img)
key = cv2.waitKey(0)
cv2.destroyAllWindows() | |
f6a65fb602fb13c01ad2d9ee7cf50415df9ffa7e | sparkback/__init__.py | sparkback/__init__.py | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | Update command line interface to accept floating point input | Update command line interface to accept floating point input
| Python | mit | mmichie/sparkback | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | <commit_before># -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick heig... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick height
if n == ... | <commit_before># -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
# if every element is the same height return all lower ticks, else compute
# the tick heig... |
4bcc8a2f38a010e90eb28f8b4339fc691216ff10 | main.py | main.py | import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)
app.debug = True
@app.route("/")
def index():
return render_template('index.html')
@app.route("/<zip_code>")
def forecast(zip_code):
if not zip_codes.is_... | import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)
@app.route("/")
def index():
return render_template('index.html')
@app.route("/<zip_code>")
def forecast(zip_code):
if not zip_codes.is_listed(zip_code):... | Debug flags back to false. Can't use it on prod D: | Debug flags back to false. Can't use it on prod D:
This reverts commit 4bf055370da89b13fbe4d1076562183d661904ce.
| Python | agpl-3.0 | joliv/wordy-weather,joliv/wordy-weather | import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)
app.debug = True
@app.route("/")
def index():
return render_template('index.html')
@app.route("/<zip_code>")
def forecast(zip_code):
if not zip_codes.is_... | import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)
@app.route("/")
def index():
return render_template('index.html')
@app.route("/<zip_code>")
def forecast(zip_code):
if not zip_codes.is_listed(zip_code):... | <commit_before>import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)
app.debug = True
@app.route("/")
def index():
return render_template('index.html')
@app.route("/<zip_code>")
def forecast(zip_code):
if no... | import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)
@app.route("/")
def index():
return render_template('index.html')
@app.route("/<zip_code>")
def forecast(zip_code):
if not zip_codes.is_listed(zip_code):... | import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)
app.debug = True
@app.route("/")
def index():
return render_template('index.html')
@app.route("/<zip_code>")
def forecast(zip_code):
if not zip_codes.is_... | <commit_before>import os
from flask import Flask
from flask import render_template
from flask import send_from_directory
import zip_codes
import weather
app = Flask(__name__)
app.debug = True
@app.route("/")
def index():
return render_template('index.html')
@app.route("/<zip_code>")
def forecast(zip_code):
if no... |
9742935bf5dbc58ffa7fa0ab4d23a920aec60837 | main.py | main.py | #!/usr/bin/python3.5
# -*- coding: utf-8 -*-
import sys
def check_dependencies():
deps = ["PyQt5", "unicorn", "capstone", "keystone", "pygments"]
for d in deps:
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
sys.exit... | #!/usr/bin/env python3.5
# -*- coding: utf-8 -*-
import sys
def check_dependencies():
deps = ["PyQt5", "unicorn", "capstone", "keystone", "pygments"]
for d in deps:
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
sys.... | Add support for executing in a virtual env | Add support for executing in a virtual env
| Python | mit | hugsy/cemu,hugsy/cemu,hugsy/cemu | #!/usr/bin/python3.5
# -*- coding: utf-8 -*-
import sys
def check_dependencies():
deps = ["PyQt5", "unicorn", "capstone", "keystone", "pygments"]
for d in deps:
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
sys.exit... | #!/usr/bin/env python3.5
# -*- coding: utf-8 -*-
import sys
def check_dependencies():
deps = ["PyQt5", "unicorn", "capstone", "keystone", "pygments"]
for d in deps:
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
sys.... | <commit_before>#!/usr/bin/python3.5
# -*- coding: utf-8 -*-
import sys
def check_dependencies():
deps = ["PyQt5", "unicorn", "capstone", "keystone", "pygments"]
for d in deps:
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
... | #!/usr/bin/env python3.5
# -*- coding: utf-8 -*-
import sys
def check_dependencies():
deps = ["PyQt5", "unicorn", "capstone", "keystone", "pygments"]
for d in deps:
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
sys.... | #!/usr/bin/python3.5
# -*- coding: utf-8 -*-
import sys
def check_dependencies():
deps = ["PyQt5", "unicorn", "capstone", "keystone", "pygments"]
for d in deps:
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
sys.exit... | <commit_before>#!/usr/bin/python3.5
# -*- coding: utf-8 -*-
import sys
def check_dependencies():
deps = ["PyQt5", "unicorn", "capstone", "keystone", "pygments"]
for d in deps:
try:
__import__(d)
except ImportError:
print("[-] Missing required dependency '%s'" % d)
... |
f5c1255739fa50218af066f2bf690cc46424a38d | main.py | main.py | from crawlers.one337x import One337x
if __name__ == '__main__':
crawler = One337x()
torrents = list(crawler.fetch_torrents('arrow'))
| from crawlers.one337x import One337x
from flask import Flask, request, Response
from jsonpickle import encode
app = Flask(__name__)
app.secret_key = '\xb0\xf6\x86K\x0c d\x15\xfc\xdd\x96\xf5\t\xa5\xba\xfb6\x1am@\xb2r\x82\xc1'
@app.route('/')
def index():
data = {"message": 'Welcome to osprey'}
json_str = encod... | Add API layer using Flask :dancers: | Add API layer using Flask :dancers:
| Python | mit | fayimora/osprey,fayimora/osprey,fayimora/osprey | from crawlers.one337x import One337x
if __name__ == '__main__':
crawler = One337x()
torrents = list(crawler.fetch_torrents('arrow'))
Add API layer using Flask :dancers: | from crawlers.one337x import One337x
from flask import Flask, request, Response
from jsonpickle import encode
app = Flask(__name__)
app.secret_key = '\xb0\xf6\x86K\x0c d\x15\xfc\xdd\x96\xf5\t\xa5\xba\xfb6\x1am@\xb2r\x82\xc1'
@app.route('/')
def index():
data = {"message": 'Welcome to osprey'}
json_str = encod... | <commit_before>from crawlers.one337x import One337x
if __name__ == '__main__':
crawler = One337x()
torrents = list(crawler.fetch_torrents('arrow'))
<commit_msg>Add API layer using Flask :dancers:<commit_after> | from crawlers.one337x import One337x
from flask import Flask, request, Response
from jsonpickle import encode
app = Flask(__name__)
app.secret_key = '\xb0\xf6\x86K\x0c d\x15\xfc\xdd\x96\xf5\t\xa5\xba\xfb6\x1am@\xb2r\x82\xc1'
@app.route('/')
def index():
data = {"message": 'Welcome to osprey'}
json_str = encod... | from crawlers.one337x import One337x
if __name__ == '__main__':
crawler = One337x()
torrents = list(crawler.fetch_torrents('arrow'))
Add API layer using Flask :dancers:from crawlers.one337x import One337x
from flask import Flask, request, Response
from jsonpickle import encode
app = Flask(__name__)
app.secret... | <commit_before>from crawlers.one337x import One337x
if __name__ == '__main__':
crawler = One337x()
torrents = list(crawler.fetch_torrents('arrow'))
<commit_msg>Add API layer using Flask :dancers:<commit_after>from crawlers.one337x import One337x
from flask import Flask, request, Response
from jsonpickle impor... |
b2ef5ac911a850ac90208ff4f6b40670f998b2ec | main.py | main.py | #!/usr/bin/env python
from glob import glob
import os.path
import re
import bottle
@bottle.route('/')
@bottle.view('index')
def index():
return dict(debug=bottle.request.GET.get('debug'))
@bottle.route('/static/<path:re:.*>')
def static(path):
return bottle.static_file(path, root=os.path.join(os.path.dirn... | #!/usr/bin/env python
from glob import glob
import os.path
import re
import bottle
@bottle.route('/')
@bottle.view('index')
def index():
return dict(debug=bottle.request.GET.get('debug'))
@bottle.route('/static/<path:re:.*>')
def static(path):
return bottle.static_file(path, root=os.path.join(os.path.dirn... | Use new Bottle debug API | Use new Bottle debug API
| Python | agpl-3.0 | twpayne/webglmaps,twpayne/webglmaps | #!/usr/bin/env python
from glob import glob
import os.path
import re
import bottle
@bottle.route('/')
@bottle.view('index')
def index():
return dict(debug=bottle.request.GET.get('debug'))
@bottle.route('/static/<path:re:.*>')
def static(path):
return bottle.static_file(path, root=os.path.join(os.path.dirn... | #!/usr/bin/env python
from glob import glob
import os.path
import re
import bottle
@bottle.route('/')
@bottle.view('index')
def index():
return dict(debug=bottle.request.GET.get('debug'))
@bottle.route('/static/<path:re:.*>')
def static(path):
return bottle.static_file(path, root=os.path.join(os.path.dirn... | <commit_before>#!/usr/bin/env python
from glob import glob
import os.path
import re
import bottle
@bottle.route('/')
@bottle.view('index')
def index():
return dict(debug=bottle.request.GET.get('debug'))
@bottle.route('/static/<path:re:.*>')
def static(path):
return bottle.static_file(path, root=os.path.jo... | #!/usr/bin/env python
from glob import glob
import os.path
import re
import bottle
@bottle.route('/')
@bottle.view('index')
def index():
return dict(debug=bottle.request.GET.get('debug'))
@bottle.route('/static/<path:re:.*>')
def static(path):
return bottle.static_file(path, root=os.path.join(os.path.dirn... | #!/usr/bin/env python
from glob import glob
import os.path
import re
import bottle
@bottle.route('/')
@bottle.view('index')
def index():
return dict(debug=bottle.request.GET.get('debug'))
@bottle.route('/static/<path:re:.*>')
def static(path):
return bottle.static_file(path, root=os.path.join(os.path.dirn... | <commit_before>#!/usr/bin/env python
from glob import glob
import os.path
import re
import bottle
@bottle.route('/')
@bottle.view('index')
def index():
return dict(debug=bottle.request.GET.get('debug'))
@bottle.route('/static/<path:re:.*>')
def static(path):
return bottle.static_file(path, root=os.path.jo... |
062c46ca8b83dd7791cfed1305c2ba58872601af | go/api/views.py | go/api/views.py | from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_exempt
from go.api.go_api import client
import logging
logger = logging.getLogger(__name__)
@login_required
@csr... | from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_exempt
from go.api.go_api import client
import logging
logger = logging.getLogger(__name__)
@login_required
@csr... | Add explanatory docstring for the purpose of the go api proxy view | Add explanatory docstring for the purpose of the go api proxy view
| Python | bsd-3-clause | praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go | from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_exempt
from go.api.go_api import client
import logging
logger = logging.getLogger(__name__)
@login_required
@csr... | from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_exempt
from go.api.go_api import client
import logging
logger = logging.getLogger(__name__)
@login_required
@csr... | <commit_before>from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_exempt
from go.api.go_api import client
import logging
logger = logging.getLogger(__name__)
@logi... | from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_exempt
from go.api.go_api import client
import logging
logger = logging.getLogger(__name__)
@login_required
@csr... | from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_exempt
from go.api.go_api import client
import logging
logger = logging.getLogger(__name__)
@login_required
@csr... | <commit_before>from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_exempt
from go.api.go_api import client
import logging
logger = logging.getLogger(__name__)
@logi... |
fa2ac624bc33add0e88f158c525885eef8bf555b | user_management/models/tests/factories.py | user_management/models/tests/factories.py | import factory
from django.contrib.auth import get_user_model
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = get_user_model()
name = factory.Sequence(lambda i: 'Test User {}'.format(i))
email = factory.Sequence(lambda i: 'email{}@example.com'.format(i))
| import factory
from django.contrib.auth import get_user_model
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = get_user_model()
name = factory.Sequence(lambda i: 'Test User {}'.format(i))
email = factory.Sequence(lambda i: 'email{}@example.com'.format(i))
@classmethod
def _prepare(cl... | Improve password handling in UserFactory. | Improve password handling in UserFactory.
| Python | bsd-2-clause | incuna/django-user-management,incuna/django-user-management | import factory
from django.contrib.auth import get_user_model
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = get_user_model()
name = factory.Sequence(lambda i: 'Test User {}'.format(i))
email = factory.Sequence(lambda i: 'email{}@example.com'.format(i))
Improve password handling in UserFact... | import factory
from django.contrib.auth import get_user_model
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = get_user_model()
name = factory.Sequence(lambda i: 'Test User {}'.format(i))
email = factory.Sequence(lambda i: 'email{}@example.com'.format(i))
@classmethod
def _prepare(cl... | <commit_before>import factory
from django.contrib.auth import get_user_model
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = get_user_model()
name = factory.Sequence(lambda i: 'Test User {}'.format(i))
email = factory.Sequence(lambda i: 'email{}@example.com'.format(i))
<commit_msg>Improve pa... | import factory
from django.contrib.auth import get_user_model
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = get_user_model()
name = factory.Sequence(lambda i: 'Test User {}'.format(i))
email = factory.Sequence(lambda i: 'email{}@example.com'.format(i))
@classmethod
def _prepare(cl... | import factory
from django.contrib.auth import get_user_model
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = get_user_model()
name = factory.Sequence(lambda i: 'Test User {}'.format(i))
email = factory.Sequence(lambda i: 'email{}@example.com'.format(i))
Improve password handling in UserFact... | <commit_before>import factory
from django.contrib.auth import get_user_model
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = get_user_model()
name = factory.Sequence(lambda i: 'Test User {}'.format(i))
email = factory.Sequence(lambda i: 'email{}@example.com'.format(i))
<commit_msg>Improve pa... |
4de18ece5ac2f563c6d8a6a247a77cdc8a45881e | hydromet/anomaly.py | hydromet/anomaly.py | def get_monthly_anomaly(ts, start, end):
"""
Get monthly anomaly.
Monthly anomalies calculated from the mean of the data between the specified start and end dates.
:param ts: Pandas timeseries, will be converted to monthly.
:type ts: pandas.TimeSeries
:param start: Start da... | def get_monthly_anomaly(ts, start, end):
"""
Get monthly anomaly.
Monthly anomalies calculated from the mean of the data between the specified start and end dates.
:param ts: Pandas timeseries, will be converted to monthly.
:type ts: pandas.TimeSeries
:param start: Start da... | Use start of month/year dates instead of end. | Use start of month/year dates instead of end.
| Python | bsd-3-clause | amacd31/hydromet-toolkit,amacd31/hydromet-toolkit | def get_monthly_anomaly(ts, start, end):
"""
Get monthly anomaly.
Monthly anomalies calculated from the mean of the data between the specified start and end dates.
:param ts: Pandas timeseries, will be converted to monthly.
:type ts: pandas.TimeSeries
:param start: Start da... | def get_monthly_anomaly(ts, start, end):
"""
Get monthly anomaly.
Monthly anomalies calculated from the mean of the data between the specified start and end dates.
:param ts: Pandas timeseries, will be converted to monthly.
:type ts: pandas.TimeSeries
:param start: Start da... | <commit_before>def get_monthly_anomaly(ts, start, end):
"""
Get monthly anomaly.
Monthly anomalies calculated from the mean of the data between the specified start and end dates.
:param ts: Pandas timeseries, will be converted to monthly.
:type ts: pandas.TimeSeries
:param ... | def get_monthly_anomaly(ts, start, end):
"""
Get monthly anomaly.
Monthly anomalies calculated from the mean of the data between the specified start and end dates.
:param ts: Pandas timeseries, will be converted to monthly.
:type ts: pandas.TimeSeries
:param start: Start da... | def get_monthly_anomaly(ts, start, end):
"""
Get monthly anomaly.
Monthly anomalies calculated from the mean of the data between the specified start and end dates.
:param ts: Pandas timeseries, will be converted to monthly.
:type ts: pandas.TimeSeries
:param start: Start da... | <commit_before>def get_monthly_anomaly(ts, start, end):
"""
Get monthly anomaly.
Monthly anomalies calculated from the mean of the data between the specified start and end dates.
:param ts: Pandas timeseries, will be converted to monthly.
:type ts: pandas.TimeSeries
:param ... |
86197635800e6b19a6b95e9be932999c79042720 | dipy/utils/arrfuncs.py | dipy/utils/arrfuncs.py | """ Utilities to manipulate numpy arrays """
import sys
import numpy as np
from nibabel.volumeutils import endian_codes, native_code, swapped_code
def as_native_array(arr):
""" Return `arr` as native byteordered array
If arr is already native byte ordered, return unchanged. If it is opposite
endian, ... | """ Utilities to manipulate numpy arrays """
import sys
import numpy as np
from nibabel.volumeutils import endian_codes, native_code, swapped_code
def as_native_array(arr):
""" Return `arr` as native byteordered array
If arr is already native byte ordered, return unchanged. If it is opposite
endian, ... | Add vectorized version of np.linalg.pinv | Add vectorized version of np.linalg.pinv
| Python | bsd-3-clause | matthieudumont/dipy,JohnGriffiths/dipy,FrancoisRheaultUS/dipy,matthieudumont/dipy,StongeEtienne/dipy,villalonreina/dipy,FrancoisRheaultUS/dipy,JohnGriffiths/dipy,nilgoyyou/dipy,villalonreina/dipy,nilgoyyou/dipy,StongeEtienne/dipy | """ Utilities to manipulate numpy arrays """
import sys
import numpy as np
from nibabel.volumeutils import endian_codes, native_code, swapped_code
def as_native_array(arr):
""" Return `arr` as native byteordered array
If arr is already native byte ordered, return unchanged. If it is opposite
endian, ... | """ Utilities to manipulate numpy arrays """
import sys
import numpy as np
from nibabel.volumeutils import endian_codes, native_code, swapped_code
def as_native_array(arr):
""" Return `arr` as native byteordered array
If arr is already native byte ordered, return unchanged. If it is opposite
endian, ... | <commit_before>""" Utilities to manipulate numpy arrays """
import sys
import numpy as np
from nibabel.volumeutils import endian_codes, native_code, swapped_code
def as_native_array(arr):
""" Return `arr` as native byteordered array
If arr is already native byte ordered, return unchanged. If it is opposi... | """ Utilities to manipulate numpy arrays """
import sys
import numpy as np
from nibabel.volumeutils import endian_codes, native_code, swapped_code
def as_native_array(arr):
""" Return `arr` as native byteordered array
If arr is already native byte ordered, return unchanged. If it is opposite
endian, ... | """ Utilities to manipulate numpy arrays """
import sys
import numpy as np
from nibabel.volumeutils import endian_codes, native_code, swapped_code
def as_native_array(arr):
""" Return `arr` as native byteordered array
If arr is already native byte ordered, return unchanged. If it is opposite
endian, ... | <commit_before>""" Utilities to manipulate numpy arrays """
import sys
import numpy as np
from nibabel.volumeutils import endian_codes, native_code, swapped_code
def as_native_array(arr):
""" Return `arr` as native byteordered array
If arr is already native byte ordered, return unchanged. If it is opposi... |
f0deb22062930918e497d494aa5e76224f88b5ea | pylxd/containerState.py | pylxd/containerState.py | # Copyright (c) 2016 Canonical Ltd
#
# 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 ... | # Copyright (c) 2016 Canonical Ltd
#
# 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 ... | Fix formatting file for travis | Fix formatting file for travis
| Python | apache-2.0 | lxc/pylxd,lxc/pylxd | # Copyright (c) 2016 Canonical Ltd
#
# 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 ... | # Copyright (c) 2016 Canonical Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | <commit_before># Copyright (c) 2016 Canonical Ltd
#
# 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 app... | # Copyright (c) 2016 Canonical Ltd
#
# 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 ... | # Copyright (c) 2016 Canonical Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | <commit_before># Copyright (c) 2016 Canonical Ltd
#
# 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 app... |
49a182c2b6b7c5e5a7be8452d1ccc262b0d45782 | delphi/urls.py | delphi/urls.py | """delphi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-base... | """delphi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-base... | Add url for static files | Add url for static files [development]
| Python | mit | VulcanoAhab/delphi,VulcanoAhab/delphi,VulcanoAhab/delphi | """delphi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-base... | """delphi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-base... | <commit_before>"""delphi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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='ho... | """delphi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-base... | """delphi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-base... | <commit_before>"""delphi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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='ho... |
612a411d0d4b2323bcbb3c3bdd41df945a075f53 | tree.py | tree.py | import verify
class Tree:
def __init__(self, elements):
self._elements = elements
def count(self):
return len(self._elements)
def elements(self):
result = []
for element in self._elements:
if element.__class__ == Tree:
result += [element.elements()]
else:
result += [... | import verify
import tokenizer
class Tree:
def __init__(self, elements):
self._elements = elements
def count(self):
return len(self._elements)
def elements(self):
result = []
for element in self._elements:
if element.__class__ == Tree:
result += [element.elements()]
else:
... | Switch from scanner to tokenizer. | Switch from scanner to tokenizer.
| Python | apache-2.0 | jkingdon/jh2gh | import verify
class Tree:
def __init__(self, elements):
self._elements = elements
def count(self):
return len(self._elements)
def elements(self):
result = []
for element in self._elements:
if element.__class__ == Tree:
result += [element.elements()]
else:
result += [... | import verify
import tokenizer
class Tree:
def __init__(self, elements):
self._elements = elements
def count(self):
return len(self._elements)
def elements(self):
result = []
for element in self._elements:
if element.__class__ == Tree:
result += [element.elements()]
else:
... | <commit_before>import verify
class Tree:
def __init__(self, elements):
self._elements = elements
def count(self):
return len(self._elements)
def elements(self):
result = []
for element in self._elements:
if element.__class__ == Tree:
result += [element.elements()]
else:
... | import verify
import tokenizer
class Tree:
def __init__(self, elements):
self._elements = elements
def count(self):
return len(self._elements)
def elements(self):
result = []
for element in self._elements:
if element.__class__ == Tree:
result += [element.elements()]
else:
... | import verify
class Tree:
def __init__(self, elements):
self._elements = elements
def count(self):
return len(self._elements)
def elements(self):
result = []
for element in self._elements:
if element.__class__ == Tree:
result += [element.elements()]
else:
result += [... | <commit_before>import verify
class Tree:
def __init__(self, elements):
self._elements = elements
def count(self):
return len(self._elements)
def elements(self):
result = []
for element in self._elements:
if element.__class__ == Tree:
result += [element.elements()]
else:
... |
1c60efdf0b0e2c1b49024ab14b8c012a1acaa71d | saw/filters/__init__.py | saw/filters/__init__.py | import os
import glob
import inspect
import saw.items
curr_path = os.path.dirname(__file__)
__all__ = [ os.path.basename(f)[:-3] for f in glob.glob(curr_path + "/*.py")]
class Filter:
_filters = dict()
@classmethod
def _load_filters(self):
module_names = [ name.lower() for name in __all__ if name... | import os
import glob
import inspect
curr_path = os.path.dirname(__file__)
__all__ = [ os.path.basename(f)[:-3] for f in glob.glob(curr_path + "/*.py")]
class Filter:
_filters = dict()
@classmethod
def _load_filters(self):
module_names = [ name.lower() for name in __all__ if name != '__init__' ]
... | Add support another classes for filters, not only Item and Items | Add support another classes for filters, not only Item and Items
| Python | mit | diNard/Saw | import os
import glob
import inspect
import saw.items
curr_path = os.path.dirname(__file__)
__all__ = [ os.path.basename(f)[:-3] for f in glob.glob(curr_path + "/*.py")]
class Filter:
_filters = dict()
@classmethod
def _load_filters(self):
module_names = [ name.lower() for name in __all__ if name... | import os
import glob
import inspect
curr_path = os.path.dirname(__file__)
__all__ = [ os.path.basename(f)[:-3] for f in glob.glob(curr_path + "/*.py")]
class Filter:
_filters = dict()
@classmethod
def _load_filters(self):
module_names = [ name.lower() for name in __all__ if name != '__init__' ]
... | <commit_before>import os
import glob
import inspect
import saw.items
curr_path = os.path.dirname(__file__)
__all__ = [ os.path.basename(f)[:-3] for f in glob.glob(curr_path + "/*.py")]
class Filter:
_filters = dict()
@classmethod
def _load_filters(self):
module_names = [ name.lower() for name in ... | import os
import glob
import inspect
curr_path = os.path.dirname(__file__)
__all__ = [ os.path.basename(f)[:-3] for f in glob.glob(curr_path + "/*.py")]
class Filter:
_filters = dict()
@classmethod
def _load_filters(self):
module_names = [ name.lower() for name in __all__ if name != '__init__' ]
... | import os
import glob
import inspect
import saw.items
curr_path = os.path.dirname(__file__)
__all__ = [ os.path.basename(f)[:-3] for f in glob.glob(curr_path + "/*.py")]
class Filter:
_filters = dict()
@classmethod
def _load_filters(self):
module_names = [ name.lower() for name in __all__ if name... | <commit_before>import os
import glob
import inspect
import saw.items
curr_path = os.path.dirname(__file__)
__all__ = [ os.path.basename(f)[:-3] for f in glob.glob(curr_path + "/*.py")]
class Filter:
_filters = dict()
@classmethod
def _load_filters(self):
module_names = [ name.lower() for name in ... |
2bde683bcfbdc7149a114abd609a3c91c19cac0f | tagcache/lock.py | tagcache/lock.py | # -*- encoding: utf-8 -*-
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, write=False, block=False):
try:
lock_flags = fcntl.LOCK_EX if write else fcntl.LOCK_SH
... | # -*- encoding: utf-8 -*-
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, ex=False, nb=True):
"""
Acquire a lock on the fd.
:param ex (optional): default False, acquire a... | Change parameter names in acquire. Add some doc. | Change parameter names in acquire.
Add some doc.
| Python | mit | huangjunwen/tagcache | # -*- encoding: utf-8 -*-
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, write=False, block=False):
try:
lock_flags = fcntl.LOCK_EX if write else fcntl.LOCK_SH
... | # -*- encoding: utf-8 -*-
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, ex=False, nb=True):
"""
Acquire a lock on the fd.
:param ex (optional): default False, acquire a... | <commit_before># -*- encoding: utf-8 -*-
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, write=False, block=False):
try:
lock_flags = fcntl.LOCK_EX if write else fcntl.LOCK_... | # -*- encoding: utf-8 -*-
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, ex=False, nb=True):
"""
Acquire a lock on the fd.
:param ex (optional): default False, acquire a... | # -*- encoding: utf-8 -*-
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, write=False, block=False):
try:
lock_flags = fcntl.LOCK_EX if write else fcntl.LOCK_SH
... | <commit_before># -*- encoding: utf-8 -*-
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, write=False, block=False):
try:
lock_flags = fcntl.LOCK_EX if write else fcntl.LOCK_... |
49e38383430f778aaa0952d542675e1cca290167 | product_supplier_pricelist/__openerp__.py | product_supplier_pricelist/__openerp__.py | # -*- coding: utf-8 -*-
{
'name': 'Product Supplier Pricelist',
'version': '1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
'description': """
Product Supplier Pricelist
==========================
Add sql constraint to restrict:
1. That you can only add one supplier to a product pe... | # -*- coding: utf-8 -*-
{
'name': 'Product Supplier Pricelist',
'version': '1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
'description': """
Product Supplier Pricelist
==========================
Add sql constraint to restrict:
1. That you can only add one supplier to a product pe... | FIX disable product supplier pricelist | FIX disable product supplier pricelist
| Python | agpl-3.0 | csrocha/account_check,csrocha/account_check | # -*- coding: utf-8 -*-
{
'name': 'Product Supplier Pricelist',
'version': '1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
'description': """
Product Supplier Pricelist
==========================
Add sql constraint to restrict:
1. That you can only add one supplier to a product pe... | # -*- coding: utf-8 -*-
{
'name': 'Product Supplier Pricelist',
'version': '1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
'description': """
Product Supplier Pricelist
==========================
Add sql constraint to restrict:
1. That you can only add one supplier to a product pe... | <commit_before># -*- coding: utf-8 -*-
{
'name': 'Product Supplier Pricelist',
'version': '1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
'description': """
Product Supplier Pricelist
==========================
Add sql constraint to restrict:
1. That you can only add one supplier ... | # -*- coding: utf-8 -*-
{
'name': 'Product Supplier Pricelist',
'version': '1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
'description': """
Product Supplier Pricelist
==========================
Add sql constraint to restrict:
1. That you can only add one supplier to a product pe... | # -*- coding: utf-8 -*-
{
'name': 'Product Supplier Pricelist',
'version': '1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
'description': """
Product Supplier Pricelist
==========================
Add sql constraint to restrict:
1. That you can only add one supplier to a product pe... | <commit_before># -*- coding: utf-8 -*-
{
'name': 'Product Supplier Pricelist',
'version': '1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
'description': """
Product Supplier Pricelist
==========================
Add sql constraint to restrict:
1. That you can only add one supplier ... |
ca5877d66698179a3c26d12938dfac10cd19d932 | paci/commands/search.py | paci/commands/search.py | """The search command."""
from paci.helpers import display_helper, cache_helper
from .base import Base
class Search(Base):
"""Searches for a package!"""
def run(self):
pkg_name = self.options["<package>"]
result = cache_helper.find_pkg(pkg_name, self.settings["paci"]["registry"], self.repo_c... | """The search command."""
from paci.helpers import display_helper, cache_helper, std_helper
from termcolor import colored
from .base import Base
class Search(Base):
"""Searches for a package!"""
def run(self):
pkg_name = self.options["<package>"]
result = cache_helper.find_pkg(pkg_name, self... | Add a description of what the output represents | Add a description of what the output represents
| Python | mit | tradebyte/paci,tradebyte/paci | """The search command."""
from paci.helpers import display_helper, cache_helper
from .base import Base
class Search(Base):
"""Searches for a package!"""
def run(self):
pkg_name = self.options["<package>"]
result = cache_helper.find_pkg(pkg_name, self.settings["paci"]["registry"], self.repo_c... | """The search command."""
from paci.helpers import display_helper, cache_helper, std_helper
from termcolor import colored
from .base import Base
class Search(Base):
"""Searches for a package!"""
def run(self):
pkg_name = self.options["<package>"]
result = cache_helper.find_pkg(pkg_name, self... | <commit_before>"""The search command."""
from paci.helpers import display_helper, cache_helper
from .base import Base
class Search(Base):
"""Searches for a package!"""
def run(self):
pkg_name = self.options["<package>"]
result = cache_helper.find_pkg(pkg_name, self.settings["paci"]["registry... | """The search command."""
from paci.helpers import display_helper, cache_helper, std_helper
from termcolor import colored
from .base import Base
class Search(Base):
"""Searches for a package!"""
def run(self):
pkg_name = self.options["<package>"]
result = cache_helper.find_pkg(pkg_name, self... | """The search command."""
from paci.helpers import display_helper, cache_helper
from .base import Base
class Search(Base):
"""Searches for a package!"""
def run(self):
pkg_name = self.options["<package>"]
result = cache_helper.find_pkg(pkg_name, self.settings["paci"]["registry"], self.repo_c... | <commit_before>"""The search command."""
from paci.helpers import display_helper, cache_helper
from .base import Base
class Search(Base):
"""Searches for a package!"""
def run(self):
pkg_name = self.options["<package>"]
result = cache_helper.find_pkg(pkg_name, self.settings["paci"]["registry... |
78c100ac31c00f4b1c90eb897df2fd5062bf4b0f | tenant/models.py | tenant/models.py | from django.db import models
from django.conf import settings
from tenant.utils import parse_connection_string
from tenant.utils import connect_tenant_provider, disconnect_tenant_provider
from tenant import settings as tenant_settings
class Tenant(models.Model):
name = models.CharField(max_length=256, unique=Tru... | from django.db import models
from django.conf import settings
from tenant.utils import parse_connection_string
from tenant.utils import connect_tenant_provider, disconnect_tenant_provider
from tenant import settings as tenant_settings
class Tenant(models.Model):
created = models.DateTimeField(auto_now_add=True)
... | Add created and is_active field to match appschema model | Add created and is_active field to match appschema model
| Python | bsd-3-clause | allanlei/django-multitenant | from django.db import models
from django.conf import settings
from tenant.utils import parse_connection_string
from tenant.utils import connect_tenant_provider, disconnect_tenant_provider
from tenant import settings as tenant_settings
class Tenant(models.Model):
name = models.CharField(max_length=256, unique=Tru... | from django.db import models
from django.conf import settings
from tenant.utils import parse_connection_string
from tenant.utils import connect_tenant_provider, disconnect_tenant_provider
from tenant import settings as tenant_settings
class Tenant(models.Model):
created = models.DateTimeField(auto_now_add=True)
... | <commit_before>from django.db import models
from django.conf import settings
from tenant.utils import parse_connection_string
from tenant.utils import connect_tenant_provider, disconnect_tenant_provider
from tenant import settings as tenant_settings
class Tenant(models.Model):
name = models.CharField(max_length=... | from django.db import models
from django.conf import settings
from tenant.utils import parse_connection_string
from tenant.utils import connect_tenant_provider, disconnect_tenant_provider
from tenant import settings as tenant_settings
class Tenant(models.Model):
created = models.DateTimeField(auto_now_add=True)
... | from django.db import models
from django.conf import settings
from tenant.utils import parse_connection_string
from tenant.utils import connect_tenant_provider, disconnect_tenant_provider
from tenant import settings as tenant_settings
class Tenant(models.Model):
name = models.CharField(max_length=256, unique=Tru... | <commit_before>from django.db import models
from django.conf import settings
from tenant.utils import parse_connection_string
from tenant.utils import connect_tenant_provider, disconnect_tenant_provider
from tenant import settings as tenant_settings
class Tenant(models.Model):
name = models.CharField(max_length=... |
402e9c8f5d25ac4f9011176d3714193e6fe92c77 | linkcheck/management/commands/unignore_links.py | linkcheck/management/commands/unignore_links.py | from django.core.management.base import BaseCommand
from linkcheck.utils import unignore
class Command(BaseCommand):
help = "Goes through all models registered with Linkcheck and records any links found"
def execute(self, *args, **options):
print("Unignoring all links")
unignore()
| from django.core.management.base import BaseCommand
from linkcheck.utils import unignore
class Command(BaseCommand):
help = "Updates the `ignore` status of all links to `False`"
def execute(self, *args, **options):
print("Unignoring all links")
unignore()
| Fix help text of unignore command | Fix help text of unignore command
| Python | bsd-3-clause | DjangoAdminHackers/django-linkcheck,DjangoAdminHackers/django-linkcheck | from django.core.management.base import BaseCommand
from linkcheck.utils import unignore
class Command(BaseCommand):
help = "Goes through all models registered with Linkcheck and records any links found"
def execute(self, *args, **options):
print("Unignoring all links")
unignore()
Fix help ... | from django.core.management.base import BaseCommand
from linkcheck.utils import unignore
class Command(BaseCommand):
help = "Updates the `ignore` status of all links to `False`"
def execute(self, *args, **options):
print("Unignoring all links")
unignore()
| <commit_before>from django.core.management.base import BaseCommand
from linkcheck.utils import unignore
class Command(BaseCommand):
help = "Goes through all models registered with Linkcheck and records any links found"
def execute(self, *args, **options):
print("Unignoring all links")
unign... | from django.core.management.base import BaseCommand
from linkcheck.utils import unignore
class Command(BaseCommand):
help = "Updates the `ignore` status of all links to `False`"
def execute(self, *args, **options):
print("Unignoring all links")
unignore()
| from django.core.management.base import BaseCommand
from linkcheck.utils import unignore
class Command(BaseCommand):
help = "Goes through all models registered with Linkcheck and records any links found"
def execute(self, *args, **options):
print("Unignoring all links")
unignore()
Fix help ... | <commit_before>from django.core.management.base import BaseCommand
from linkcheck.utils import unignore
class Command(BaseCommand):
help = "Goes through all models registered with Linkcheck and records any links found"
def execute(self, *args, **options):
print("Unignoring all links")
unign... |
b618912444a1f30423432347c1ae970f28799bea | astroquery/dace/tests/test_dace_remote.py | astroquery/dace/tests/test_dace_remote.py | import unittest
from astropy.tests.helper import remote_data
from astroquery.dace import Dace
HARPS_PUBLICATION = '2009A&A...493..639M'
@remote_data
class TestDaceClass(unittest.TestCase):
def test_should_get_radial_velocities(self):
radial_velocities_table = Dace.query_radial_velocities('HD40307')
... | import unittest
from astropy.tests.helper import remote_data
from astroquery.dace import Dace
HARPS_PUBLICATION = '2009A&A...493..639M'
@remote_data
class TestDaceClass(unittest.TestCase):
def test_should_get_radial_velocities(self):
radial_velocities_table = Dace.query_radial_velocities('HD40307')
... | Add comment to explain the test with HARPS instrument | Add comment to explain the test with HARPS instrument
| Python | bsd-3-clause | imbasimba/astroquery,ceb8/astroquery,imbasimba/astroquery,ceb8/astroquery | import unittest
from astropy.tests.helper import remote_data
from astroquery.dace import Dace
HARPS_PUBLICATION = '2009A&A...493..639M'
@remote_data
class TestDaceClass(unittest.TestCase):
def test_should_get_radial_velocities(self):
radial_velocities_table = Dace.query_radial_velocities('HD40307')
... | import unittest
from astropy.tests.helper import remote_data
from astroquery.dace import Dace
HARPS_PUBLICATION = '2009A&A...493..639M'
@remote_data
class TestDaceClass(unittest.TestCase):
def test_should_get_radial_velocities(self):
radial_velocities_table = Dace.query_radial_velocities('HD40307')
... | <commit_before>import unittest
from astropy.tests.helper import remote_data
from astroquery.dace import Dace
HARPS_PUBLICATION = '2009A&A...493..639M'
@remote_data
class TestDaceClass(unittest.TestCase):
def test_should_get_radial_velocities(self):
radial_velocities_table = Dace.query_radial_velocities(... | import unittest
from astropy.tests.helper import remote_data
from astroquery.dace import Dace
HARPS_PUBLICATION = '2009A&A...493..639M'
@remote_data
class TestDaceClass(unittest.TestCase):
def test_should_get_radial_velocities(self):
radial_velocities_table = Dace.query_radial_velocities('HD40307')
... | import unittest
from astropy.tests.helper import remote_data
from astroquery.dace import Dace
HARPS_PUBLICATION = '2009A&A...493..639M'
@remote_data
class TestDaceClass(unittest.TestCase):
def test_should_get_radial_velocities(self):
radial_velocities_table = Dace.query_radial_velocities('HD40307')
... | <commit_before>import unittest
from astropy.tests.helper import remote_data
from astroquery.dace import Dace
HARPS_PUBLICATION = '2009A&A...493..639M'
@remote_data
class TestDaceClass(unittest.TestCase):
def test_should_get_radial_velocities(self):
radial_velocities_table = Dace.query_radial_velocities(... |
99b6e39a333801dc1cfc73665dde24459d244ae4 | labtoolkit/Utils.py | labtoolkit/Utils.py | """."""
class AmplitudeLimiter(object):
"""."""
def __init__(self, f, *args, **kwargs):
"""If thereareno decorator args the function tobe decorated is passed to the constructor."""
# print(f)
# print(*args)
# print(**kwargs)
# print("Inside __init__()")
self.f ... | """."""
class AmplitudeLimiter(object):
"""."""
def __init__(self, f, *args, **kwargs):
"""If thereareno decorator args the function tobe decorated is passed to the constructor."""
# print(f)
# print(*args)
# print(**kwargs)
# print("Inside __init__()")
self.f ... | Fix AmplitudeLimiter > to >= for expected behavour | Fix AmplitudeLimiter > to >= for expected behavour | Python | mit | DavidLutton/EngineeringProject | """."""
class AmplitudeLimiter(object):
"""."""
def __init__(self, f, *args, **kwargs):
"""If thereareno decorator args the function tobe decorated is passed to the constructor."""
# print(f)
# print(*args)
# print(**kwargs)
# print("Inside __init__()")
self.f ... | """."""
class AmplitudeLimiter(object):
"""."""
def __init__(self, f, *args, **kwargs):
"""If thereareno decorator args the function tobe decorated is passed to the constructor."""
# print(f)
# print(*args)
# print(**kwargs)
# print("Inside __init__()")
self.f ... | <commit_before>"""."""
class AmplitudeLimiter(object):
"""."""
def __init__(self, f, *args, **kwargs):
"""If thereareno decorator args the function tobe decorated is passed to the constructor."""
# print(f)
# print(*args)
# print(**kwargs)
# print("Inside __init__()")
... | """."""
class AmplitudeLimiter(object):
"""."""
def __init__(self, f, *args, **kwargs):
"""If thereareno decorator args the function tobe decorated is passed to the constructor."""
# print(f)
# print(*args)
# print(**kwargs)
# print("Inside __init__()")
self.f ... | """."""
class AmplitudeLimiter(object):
"""."""
def __init__(self, f, *args, **kwargs):
"""If thereareno decorator args the function tobe decorated is passed to the constructor."""
# print(f)
# print(*args)
# print(**kwargs)
# print("Inside __init__()")
self.f ... | <commit_before>"""."""
class AmplitudeLimiter(object):
"""."""
def __init__(self, f, *args, **kwargs):
"""If thereareno decorator args the function tobe decorated is passed to the constructor."""
# print(f)
# print(*args)
# print(**kwargs)
# print("Inside __init__()")
... |
41eb6c371bb334acac25f5b89be1bb3312d77cc1 | examples/img_client.py | examples/img_client.py | #!/usr/bin/env python
"""
This example demonstrates a client fetching images from a server running img_server.py.
The first packet contains the number of chunks to expect, and then that number of chunks is read.
Lost packets are not handled in any way.
"""
from nuts import UDPAuthChannel
channel = UDPAu... | #!/usr/bin/env python
"""
This example demonstrates a client fetching images from a server running img_server.py.
The first packet contains the number of chunks to expect, and then that number of chunks is read.
Lost packets are not handled in any way.
"""
from nuts import UDPAuthChannel
channel = UDPAu... | Write .msg of chunk to file | Write .msg of chunk to file
| Python | mit | thusoy/nuts-auth,thusoy/nuts-auth | #!/usr/bin/env python
"""
This example demonstrates a client fetching images from a server running img_server.py.
The first packet contains the number of chunks to expect, and then that number of chunks is read.
Lost packets are not handled in any way.
"""
from nuts import UDPAuthChannel
channel = UDPAu... | #!/usr/bin/env python
"""
This example demonstrates a client fetching images from a server running img_server.py.
The first packet contains the number of chunks to expect, and then that number of chunks is read.
Lost packets are not handled in any way.
"""
from nuts import UDPAuthChannel
channel = UDPAu... | <commit_before>#!/usr/bin/env python
"""
This example demonstrates a client fetching images from a server running img_server.py.
The first packet contains the number of chunks to expect, and then that number of chunks is read.
Lost packets are not handled in any way.
"""
from nuts import UDPAuthChannel
... | #!/usr/bin/env python
"""
This example demonstrates a client fetching images from a server running img_server.py.
The first packet contains the number of chunks to expect, and then that number of chunks is read.
Lost packets are not handled in any way.
"""
from nuts import UDPAuthChannel
channel = UDPAu... | #!/usr/bin/env python
"""
This example demonstrates a client fetching images from a server running img_server.py.
The first packet contains the number of chunks to expect, and then that number of chunks is read.
Lost packets are not handled in any way.
"""
from nuts import UDPAuthChannel
channel = UDPAu... | <commit_before>#!/usr/bin/env python
"""
This example demonstrates a client fetching images from a server running img_server.py.
The first packet contains the number of chunks to expect, and then that number of chunks is read.
Lost packets are not handled in any way.
"""
from nuts import UDPAuthChannel
... |
3156cfcfb4bd642fe742bb36909e7b9b87e15963 | jesusmtnez/python/koans/koans/triangle.py | jesusmtnez/python/koans/koans/triangle.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | Complete 'About Triangle Project 2' koans | [Python] Complete 'About Triangle Project 2' koans
| Python | mit | JesusMtnez/devexperto-challenge,JesusMtnez/devexperto-challenge | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# 'scalene' ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Triangle Project Code.
# Triangle analyzes the lengths of the sides of a triangle
# (represented by a, b and c) and returns the type of triangle.
#
# It returns:
# 'equilateral' if all sides are equal
# 'isosceles' if exactly 2 sides are equal
# ... |
2261a15132a0b98821cb3e5614c044f1b41fbc73 | smsgateway/__init__.py | smsgateway/__init__.py | __version__ = '2.0.0'
def get_account(using=None):
from django.conf import settings
accounts = settings.SMSGATEWAY_ACCOUNTS
if using is not None:
return accounts[using]
else:
return accounts[accounts['__default__']]
def send(to, msg, signature, using=None, reliable=False):
"""
... | __version__ = '2.0.0'
def get_account(using=None):
from django.conf import settings
accounts = settings.SMSGATEWAY_ACCOUNTS
if using is not None:
return accounts[using]
else:
return accounts[accounts['__default__']]
def send(to, msg, signature, using=None, reliable=False):
"""
... | Add priority option to send_queued | Add priority option to send_queued
| Python | bsd-3-clause | peterayeni/django-smsgateway,mvpoland/django-smsgateway,peterayeni/django-smsgateway,mvpoland/django-smsgateway,peterayeni/django-smsgateway,peterayeni/django-smsgateway,mvpoland/django-smsgateway | __version__ = '2.0.0'
def get_account(using=None):
from django.conf import settings
accounts = settings.SMSGATEWAY_ACCOUNTS
if using is not None:
return accounts[using]
else:
return accounts[accounts['__default__']]
def send(to, msg, signature, using=None, reliable=False):
"""
... | __version__ = '2.0.0'
def get_account(using=None):
from django.conf import settings
accounts = settings.SMSGATEWAY_ACCOUNTS
if using is not None:
return accounts[using]
else:
return accounts[accounts['__default__']]
def send(to, msg, signature, using=None, reliable=False):
"""
... | <commit_before>__version__ = '2.0.0'
def get_account(using=None):
from django.conf import settings
accounts = settings.SMSGATEWAY_ACCOUNTS
if using is not None:
return accounts[using]
else:
return accounts[accounts['__default__']]
def send(to, msg, signature, using=None, reliable=False... | __version__ = '2.0.0'
def get_account(using=None):
from django.conf import settings
accounts = settings.SMSGATEWAY_ACCOUNTS
if using is not None:
return accounts[using]
else:
return accounts[accounts['__default__']]
def send(to, msg, signature, using=None, reliable=False):
"""
... | __version__ = '2.0.0'
def get_account(using=None):
from django.conf import settings
accounts = settings.SMSGATEWAY_ACCOUNTS
if using is not None:
return accounts[using]
else:
return accounts[accounts['__default__']]
def send(to, msg, signature, using=None, reliable=False):
"""
... | <commit_before>__version__ = '2.0.0'
def get_account(using=None):
from django.conf import settings
accounts = settings.SMSGATEWAY_ACCOUNTS
if using is not None:
return accounts[using]
else:
return accounts[accounts['__default__']]
def send(to, msg, signature, using=None, reliable=False... |
cf0033ee371925218237efdb613bcd312c0faefa | forms.py | forms.py | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField, HiddenField
from wtforms.validators import DataRequired, Length, URL, Optional
class LoginForm(FlaskForm):
username = StringField('Username', [Length(max=255)], render_kw={'inputmode': 'verbatim'})
password = Passwor... | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField, HiddenField
from wtforms.validators import DataRequired, Length, URL, Optional
class LoginForm(FlaskForm):
username = StringField('Username', [Length(max=255)], render_kw={'inputmode': 'verbatim'})
password = Passwor... | Add 'newusername' id to username on signup page | Add 'newusername' id to username on signup page
Needed for js frontend.
| Python | mit | tortxof/flask-password,tortxof/flask-password,tortxof/flask-password | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField, HiddenField
from wtforms.validators import DataRequired, Length, URL, Optional
class LoginForm(FlaskForm):
username = StringField('Username', [Length(max=255)], render_kw={'inputmode': 'verbatim'})
password = Passwor... | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField, HiddenField
from wtforms.validators import DataRequired, Length, URL, Optional
class LoginForm(FlaskForm):
username = StringField('Username', [Length(max=255)], render_kw={'inputmode': 'verbatim'})
password = Passwor... | <commit_before>from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField, HiddenField
from wtforms.validators import DataRequired, Length, URL, Optional
class LoginForm(FlaskForm):
username = StringField('Username', [Length(max=255)], render_kw={'inputmode': 'verbatim'})
pas... | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField, HiddenField
from wtforms.validators import DataRequired, Length, URL, Optional
class LoginForm(FlaskForm):
username = StringField('Username', [Length(max=255)], render_kw={'inputmode': 'verbatim'})
password = Passwor... | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField, HiddenField
from wtforms.validators import DataRequired, Length, URL, Optional
class LoginForm(FlaskForm):
username = StringField('Username', [Length(max=255)], render_kw={'inputmode': 'verbatim'})
password = Passwor... | <commit_before>from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, PasswordField, HiddenField
from wtforms.validators import DataRequired, Length, URL, Optional
class LoginForm(FlaskForm):
username = StringField('Username', [Length(max=255)], render_kw={'inputmode': 'verbatim'})
pas... |
a6fc4d88d628fc86498ae7188350c915d514c3a7 | froide/account/apps.py | froide/account/apps.py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from .menu import menu_registry, MenuItem
class AccountConfig(AppConfig):
name = 'froide.account'
verbose_name = _("Account")
def ready(self):
from froide.bounce.signals impor... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from .menu import menu_registry, MenuItem
class AccountConfig(AppConfig):
name = 'froide.account'
verbose_name = _("Account")
def ready(self):
from froide.bounce.signals impor... | Add public profile account menu link | Add public profile account menu link | Python | mit | fin/froide,fin/froide,fin/froide,fin/froide | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from .menu import menu_registry, MenuItem
class AccountConfig(AppConfig):
name = 'froide.account'
verbose_name = _("Account")
def ready(self):
from froide.bounce.signals impor... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from .menu import menu_registry, MenuItem
class AccountConfig(AppConfig):
name = 'froide.account'
verbose_name = _("Account")
def ready(self):
from froide.bounce.signals impor... | <commit_before>from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from .menu import menu_registry, MenuItem
class AccountConfig(AppConfig):
name = 'froide.account'
verbose_name = _("Account")
def ready(self):
from froide.bounc... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from .menu import menu_registry, MenuItem
class AccountConfig(AppConfig):
name = 'froide.account'
verbose_name = _("Account")
def ready(self):
from froide.bounce.signals impor... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from .menu import menu_registry, MenuItem
class AccountConfig(AppConfig):
name = 'froide.account'
verbose_name = _("Account")
def ready(self):
from froide.bounce.signals impor... | <commit_before>from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from .menu import menu_registry, MenuItem
class AccountConfig(AppConfig):
name = 'froide.account'
verbose_name = _("Account")
def ready(self):
from froide.bounc... |
fe5c50c36170ed642f1ff3403d53e684e836483e | Sense/src/main/python/service.py | Sense/src/main/python/service.py | from flask import Flask, Response
from sense_hat import SenseHat
sense = SenseHat()
sense.set_imu_config(True, True, True)
app = Flask(__name__)
@app.route('/')
def all_sensors():
return "Hello, world!"
@app.route('/humidity')
def humidity():
return "Hello, world!"
@app.route('/pressure')
def pressure()... | from flask import Flask, Response
from sense_hat import SenseHat
sense = SenseHat()
sense.set_imu_config(False, False, True)
app = Flask(__name__)
@app.route('/')
def all_sensors():
return "Hello, world!"
@app.route('/humidity')
def humidity():
return "Hello, world!"
@app.route('/pressure')
def pressure... | Use only accelerometer for orientation. | Use only accelerometer for orientation.
| Python | mit | misalcedo/RapBot,misalcedo/RapBot,misalcedo/RapBot,misalcedo/RapBot | from flask import Flask, Response
from sense_hat import SenseHat
sense = SenseHat()
sense.set_imu_config(True, True, True)
app = Flask(__name__)
@app.route('/')
def all_sensors():
return "Hello, world!"
@app.route('/humidity')
def humidity():
return "Hello, world!"
@app.route('/pressure')
def pressure()... | from flask import Flask, Response
from sense_hat import SenseHat
sense = SenseHat()
sense.set_imu_config(False, False, True)
app = Flask(__name__)
@app.route('/')
def all_sensors():
return "Hello, world!"
@app.route('/humidity')
def humidity():
return "Hello, world!"
@app.route('/pressure')
def pressure... | <commit_before>from flask import Flask, Response
from sense_hat import SenseHat
sense = SenseHat()
sense.set_imu_config(True, True, True)
app = Flask(__name__)
@app.route('/')
def all_sensors():
return "Hello, world!"
@app.route('/humidity')
def humidity():
return "Hello, world!"
@app.route('/pressure')... | from flask import Flask, Response
from sense_hat import SenseHat
sense = SenseHat()
sense.set_imu_config(False, False, True)
app = Flask(__name__)
@app.route('/')
def all_sensors():
return "Hello, world!"
@app.route('/humidity')
def humidity():
return "Hello, world!"
@app.route('/pressure')
def pressure... | from flask import Flask, Response
from sense_hat import SenseHat
sense = SenseHat()
sense.set_imu_config(True, True, True)
app = Flask(__name__)
@app.route('/')
def all_sensors():
return "Hello, world!"
@app.route('/humidity')
def humidity():
return "Hello, world!"
@app.route('/pressure')
def pressure()... | <commit_before>from flask import Flask, Response
from sense_hat import SenseHat
sense = SenseHat()
sense.set_imu_config(True, True, True)
app = Flask(__name__)
@app.route('/')
def all_sensors():
return "Hello, world!"
@app.route('/humidity')
def humidity():
return "Hello, world!"
@app.route('/pressure')... |
9a08ca765744f63e5711a5d745d82280eb48b8b5 | src/test/testcppcompiler.py | src/test/testcppcompiler.py |
from nose.tools import *
from libeeyore.cpp.cppcompiler import CppCompiler
class FakeProcess( object ):
def __init__( self, sys_op, retcode ):
self.sys_op = sys_op
self.returncode = retcode
def communicate( self, inp = None ):
if inp is None:
istr = ""
else:
... |
from nose.tools import *
from libeeyore.cpp.cppcompiler import CppCompiler
from libeeyore.cpp.cmdrunner import CmdRunner
class FakeProcess( object ):
def __init__( self, sys_op, retcode ):
self.sys_op = sys_op
self.returncode = retcode
def communicate( self, inp = None ):
if inp is ... | Add a test for CmdRunner. | Add a test for CmdRunner.
| Python | mit | andybalaam/pepper,andybalaam/pepper,andybalaam/pepper,andybalaam/pepper,andybalaam/pepper |
from nose.tools import *
from libeeyore.cpp.cppcompiler import CppCompiler
class FakeProcess( object ):
def __init__( self, sys_op, retcode ):
self.sys_op = sys_op
self.returncode = retcode
def communicate( self, inp = None ):
if inp is None:
istr = ""
else:
... |
from nose.tools import *
from libeeyore.cpp.cppcompiler import CppCompiler
from libeeyore.cpp.cmdrunner import CmdRunner
class FakeProcess( object ):
def __init__( self, sys_op, retcode ):
self.sys_op = sys_op
self.returncode = retcode
def communicate( self, inp = None ):
if inp is ... | <commit_before>
from nose.tools import *
from libeeyore.cpp.cppcompiler import CppCompiler
class FakeProcess( object ):
def __init__( self, sys_op, retcode ):
self.sys_op = sys_op
self.returncode = retcode
def communicate( self, inp = None ):
if inp is None:
istr = ""
... |
from nose.tools import *
from libeeyore.cpp.cppcompiler import CppCompiler
from libeeyore.cpp.cmdrunner import CmdRunner
class FakeProcess( object ):
def __init__( self, sys_op, retcode ):
self.sys_op = sys_op
self.returncode = retcode
def communicate( self, inp = None ):
if inp is ... |
from nose.tools import *
from libeeyore.cpp.cppcompiler import CppCompiler
class FakeProcess( object ):
def __init__( self, sys_op, retcode ):
self.sys_op = sys_op
self.returncode = retcode
def communicate( self, inp = None ):
if inp is None:
istr = ""
else:
... | <commit_before>
from nose.tools import *
from libeeyore.cpp.cppcompiler import CppCompiler
class FakeProcess( object ):
def __init__( self, sys_op, retcode ):
self.sys_op = sys_op
self.returncode = retcode
def communicate( self, inp = None ):
if inp is None:
istr = ""
... |
0613c115f0ffccda8c6de9021c44d11085d84a1b | simplesqlite/_logger.py | simplesqlite/_logger.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import logbook
logger = logbook.Logger("SimpleSQLie")
logger.disable()
def set_logger(is_enable):
if is_enable:
logger.enable()
else:
... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import dataproperty
import logbook
import pytablereader
logger = logbook.Logger("SimpleSQLie")
logger.disable()
def set_logger(is_enable):
if is_ena... | Modify to avoid excessive logger initialization | Modify to avoid excessive logger initialization
| Python | mit | thombashi/SimpleSQLite,thombashi/SimpleSQLite | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import logbook
logger = logbook.Logger("SimpleSQLie")
logger.disable()
def set_logger(is_enable):
if is_enable:
logger.enable()
else:
... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import dataproperty
import logbook
import pytablereader
logger = logbook.Logger("SimpleSQLie")
logger.disable()
def set_logger(is_enable):
if is_ena... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import logbook
logger = logbook.Logger("SimpleSQLie")
logger.disable()
def set_logger(is_enable):
if is_enable:
logger.enable... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import dataproperty
import logbook
import pytablereader
logger = logbook.Logger("SimpleSQLie")
logger.disable()
def set_logger(is_enable):
if is_ena... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import logbook
logger = logbook.Logger("SimpleSQLie")
logger.disable()
def set_logger(is_enable):
if is_enable:
logger.enable()
else:
... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import logbook
logger = logbook.Logger("SimpleSQLie")
logger.disable()
def set_logger(is_enable):
if is_enable:
logger.enable... |
7bc2d9f96a5e5bb677e8ea17bebe22516d78243c | index.py | index.py | from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def load_data(dir_doc):
docs = {}
for dirpath, dirnames, filenames in os.walk(dir_doc):
for name in filenames:
file = os.path.join(dirpath, name)
with io.open(file, 'r+') as f:
docs[name] = f.read()
retu... | from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def load_data(dir_doc):
docs = {}
for dirpath, dirnames, filenames in os.walk(dir_doc):
for name in filenames:
file = os.path.join(dirpath, name)
with io.open(file, 'r+') as f:
docs[name] = f.read()
retu... | Implement tokenization in preprocess function | Implement tokenization in preprocess function
| Python | mit | ikaruswill/vector-space-model,ikaruswill/boolean-retrieval | from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def load_data(dir_doc):
docs = {}
for dirpath, dirnames, filenames in os.walk(dir_doc):
for name in filenames:
file = os.path.join(dirpath, name)
with io.open(file, 'r+') as f:
docs[name] = f.read()
retu... | from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def load_data(dir_doc):
docs = {}
for dirpath, dirnames, filenames in os.walk(dir_doc):
for name in filenames:
file = os.path.join(dirpath, name)
with io.open(file, 'r+') as f:
docs[name] = f.read()
retu... | <commit_before>from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def load_data(dir_doc):
docs = {}
for dirpath, dirnames, filenames in os.walk(dir_doc):
for name in filenames:
file = os.path.join(dirpath, name)
with io.open(file, 'r+') as f:
docs[name] = ... | from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def load_data(dir_doc):
docs = {}
for dirpath, dirnames, filenames in os.walk(dir_doc):
for name in filenames:
file = os.path.join(dirpath, name)
with io.open(file, 'r+') as f:
docs[name] = f.read()
retu... | from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def load_data(dir_doc):
docs = {}
for dirpath, dirnames, filenames in os.walk(dir_doc):
for name in filenames:
file = os.path.join(dirpath, name)
with io.open(file, 'r+') as f:
docs[name] = f.read()
retu... | <commit_before>from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def load_data(dir_doc):
docs = {}
for dirpath, dirnames, filenames in os.walk(dir_doc):
for name in filenames:
file = os.path.join(dirpath, name)
with io.open(file, 'r+') as f:
docs[name] = ... |
6814bed9918640346e4a096c8f410a6fc2b5508e | corehq/tests/noseplugins/uniformresult.py | corehq/tests/noseplugins/uniformresult.py | """A plugin to format test names uniformly for easy comparison
Usage:
# collect django tests
COLLECT_ONLY=1 ./manage.py test -v2 --settings=settings 2> tests-django.txt
# collect nose tests
./manage.py test -v2 --collect-only 2> tests-nose.txt
# clean up django test output: s/skipped\ \'.*\'$/ok... | """A plugin to format test names uniformly for easy comparison
Usage:
# collect django tests
COLLECT_ONLY=1 ./manage.py test -v2 --settings=settings 2> tests-django.txt
# collect nose tests
./manage.py test -v2 --collect-only 2> tests-nose.txt
# clean up django test output: s/skipped\ \'.*\'$/ok... | Use a copypastable format for function tests | Use a copypastable format for function tests
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | """A plugin to format test names uniformly for easy comparison
Usage:
# collect django tests
COLLECT_ONLY=1 ./manage.py test -v2 --settings=settings 2> tests-django.txt
# collect nose tests
./manage.py test -v2 --collect-only 2> tests-nose.txt
# clean up django test output: s/skipped\ \'.*\'$/ok... | """A plugin to format test names uniformly for easy comparison
Usage:
# collect django tests
COLLECT_ONLY=1 ./manage.py test -v2 --settings=settings 2> tests-django.txt
# collect nose tests
./manage.py test -v2 --collect-only 2> tests-nose.txt
# clean up django test output: s/skipped\ \'.*\'$/ok... | <commit_before>"""A plugin to format test names uniformly for easy comparison
Usage:
# collect django tests
COLLECT_ONLY=1 ./manage.py test -v2 --settings=settings 2> tests-django.txt
# collect nose tests
./manage.py test -v2 --collect-only 2> tests-nose.txt
# clean up django test output: s/skip... | """A plugin to format test names uniformly for easy comparison
Usage:
# collect django tests
COLLECT_ONLY=1 ./manage.py test -v2 --settings=settings 2> tests-django.txt
# collect nose tests
./manage.py test -v2 --collect-only 2> tests-nose.txt
# clean up django test output: s/skipped\ \'.*\'$/ok... | """A plugin to format test names uniformly for easy comparison
Usage:
# collect django tests
COLLECT_ONLY=1 ./manage.py test -v2 --settings=settings 2> tests-django.txt
# collect nose tests
./manage.py test -v2 --collect-only 2> tests-nose.txt
# clean up django test output: s/skipped\ \'.*\'$/ok... | <commit_before>"""A plugin to format test names uniformly for easy comparison
Usage:
# collect django tests
COLLECT_ONLY=1 ./manage.py test -v2 --settings=settings 2> tests-django.txt
# collect nose tests
./manage.py test -v2 --collect-only 2> tests-nose.txt
# clean up django test output: s/skip... |
b89a6a10e2a1beafe893faa6eec6e2562ded7492 | local-celery.py | local-celery.py | import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.worker_main(argv=argv)
| import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.conf.CELERYD_CONCURRENCY = 2
app.worker_main(argv=argv)
| Set concurrency to 2 for local | Set concurrency to 2 for local
| Python | mit | totem/cluster-deployer,totem/cluster-deployer,totem/cluster-deployer | import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.worker_main(argv=argv)
Set concurrency to 2 for local | import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.conf.CELERYD_CONCURRENCY = 2
app.worker_main(argv=argv)
| <commit_before>import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.worker_main(argv=argv)
<commit_msg>Set concurrency to 2 for local<commit_after> | import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.conf.CELERYD_CONCURRENCY = 2
app.worker_main(argv=argv)
| import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.worker_main(argv=argv)
Set concurrency to 2 for localimport sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 ... | <commit_before>import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.worker_main(argv=argv)
<commit_msg>Set concurrency to 2 for local<commit_after>import sys
from deployer.celery import app
if __name__ == '__main__':
... |
6c02e42db82b0dfa808ac904c79ce00ed1a0f549 | load_discussions.py | load_discussions.py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from models import DiscussionMarker
import re
from datetime import datetime
from database import db_session
def main():
parser = argparse.ArgumentParser()
parser.add_argument('identifiers', type=str, nargs='+',
... | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from models import DiscussionMarker
import re
from database import db_session
import sys
def main():
parser = argparse.ArgumentParser()
parser.add_argument('identifiers', type=str, nargs='*',
help='Disqus iden... | Allow loading discussions from file | Allow loading discussions from file
| Python | bsd-3-clause | omerxx/anyway,njenia/anyway,njenia/anyway,esegal/anyway,esegal/anyway,hasadna/anyway,HamutalCohen3/anyway,njenia/anyway,OmerSchechter/anyway,esegal/anyway,hasadna/anyway,OmerSchechter/anyway,omerxx/anyway,boazin/anyway,HamutalCohen3/anyway,idogi/anyway,yosinv/anyway,idogi/anyway,boazin/anyway,idogi/anyway,yosinv/anyway... | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from models import DiscussionMarker
import re
from datetime import datetime
from database import db_session
def main():
parser = argparse.ArgumentParser()
parser.add_argument('identifiers', type=str, nargs='+',
... | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from models import DiscussionMarker
import re
from database import db_session
import sys
def main():
parser = argparse.ArgumentParser()
parser.add_argument('identifiers', type=str, nargs='*',
help='Disqus iden... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from models import DiscussionMarker
import re
from datetime import datetime
from database import db_session
def main():
parser = argparse.ArgumentParser()
parser.add_argument('identifiers', type=str, nargs='+',
... | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from models import DiscussionMarker
import re
from database import db_session
import sys
def main():
parser = argparse.ArgumentParser()
parser.add_argument('identifiers', type=str, nargs='*',
help='Disqus iden... | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from models import DiscussionMarker
import re
from datetime import datetime
from database import db_session
def main():
parser = argparse.ArgumentParser()
parser.add_argument('identifiers', type=str, nargs='+',
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from models import DiscussionMarker
import re
from datetime import datetime
from database import db_session
def main():
parser = argparse.ArgumentParser()
parser.add_argument('identifiers', type=str, nargs='+',
... |
a870433fab72fe184f12353397ad916aabe5cb61 | pegasus/gtfar/__init__.py | pegasus/gtfar/__init__.py | # Copyright 2007-2014 University Of Southern California
#
# 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... | # Copyright 2007-2014 University Of Southern California
#
# 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... | Add boilerplate code to configure the Flask app. | Add boilerplate code to configure the Flask app.
| Python | apache-2.0 | pegasus-isi/pegasus-gtfar,pegasus-isi/pegasus-gtfar,pegasus-isi/pegasus-gtfar,pegasus-isi/pegasus-gtfar | # Copyright 2007-2014 University Of Southern California
#
# 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... | # Copyright 2007-2014 University Of Southern California
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | <commit_before># Copyright 2007-2014 University Of Southern California
#
# 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 ap... | # Copyright 2007-2014 University Of Southern California
#
# 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... | # Copyright 2007-2014 University Of Southern California
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | <commit_before># Copyright 2007-2014 University Of Southern California
#
# 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 ap... |
9d02361c034591e44e1a6d745911ef72a3591950 | pingparsing/_interface.py | pingparsing/_interface.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import division
import abc
class PingParserInterface(object):
@abc.abstractproperty
def packet_transmit(self): # pragma: no cover
pass
@abc.abstrac... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import division
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class PingParserInterface(object):
@abc.abstractproperty
def packet_transmit(self): # pra... | Fix missing metaclass for an interface class | Fix missing metaclass for an interface class
| Python | mit | thombashi/pingparsing,thombashi/pingparsing | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import division
import abc
class PingParserInterface(object):
@abc.abstractproperty
def packet_transmit(self): # pragma: no cover
pass
@abc.abstrac... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import division
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class PingParserInterface(object):
@abc.abstractproperty
def packet_transmit(self): # pra... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import division
import abc
class PingParserInterface(object):
@abc.abstractproperty
def packet_transmit(self): # pragma: no cover
pass
... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import division
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class PingParserInterface(object):
@abc.abstractproperty
def packet_transmit(self): # pra... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import division
import abc
class PingParserInterface(object):
@abc.abstractproperty
def packet_transmit(self): # pragma: no cover
pass
@abc.abstrac... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import division
import abc
class PingParserInterface(object):
@abc.abstractproperty
def packet_transmit(self): # pragma: no cover
pass
... |
1ce26a0b0cbddb49047da0f8bac8214fb298c646 | pymatgen/__init__.py | pymatgen/__init__.py | __author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table import Element, ... | __author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table import Element, ... | Add an alias to file_open_zip_aware as openz. | Add an alias to file_open_zip_aware as openz.
| Python | mit | Dioptas/pymatgen,yanikou19/pymatgen,yanikou19/pymatgen,Bismarrck/pymatgen,migueldiascosta/pymatgen,rousseab/pymatgen,sonium0/pymatgen,migueldiascosta/pymatgen,Bismarrck/pymatgen,rousseab/pymatgen,Dioptas/pymatgen,rousseab/pymatgen,ctoher/pymatgen,ctoher/pymatgen,sonium0/pymatgen,Bismarrck/pymatgen,yanikou19/pymatgen,Bi... | __author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table import Element, ... | __author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table import Element, ... | <commit_before>__author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table i... | __author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table import Element, ... | __author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table import Element, ... | <commit_before>__author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table i... |
b36d2b6760b9905638ad2202d2b7e0461eb9d7fc | scanner/ToolbarProxy.py | scanner/ToolbarProxy.py | from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot,pyqtSignal, pyqtProperty
class ToolbarProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
self._state = 0
self._use_wizard = False
stateChanged = pyqtSignal()
wizardStateChanged = pyqtSignal()
... | from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot,pyqtSignal, pyqtProperty
class ToolbarProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
self._state = 1
self._use_wizard = False
stateChanged = pyqtSignal()
wizardStateChanged = pyqtSignal()
... | Set standard state of wizard to one (so first step automatically starts) | Set standard state of wizard to one (so first step automatically starts)
| Python | agpl-3.0 | onitake/Uranium,onitake/Uranium | from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot,pyqtSignal, pyqtProperty
class ToolbarProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
self._state = 0
self._use_wizard = False
stateChanged = pyqtSignal()
wizardStateChanged = pyqtSignal()
... | from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot,pyqtSignal, pyqtProperty
class ToolbarProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
self._state = 1
self._use_wizard = False
stateChanged = pyqtSignal()
wizardStateChanged = pyqtSignal()
... | <commit_before>from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot,pyqtSignal, pyqtProperty
class ToolbarProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
self._state = 0
self._use_wizard = False
stateChanged = pyqtSignal()
wizardStateChanged = pyqt... | from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot,pyqtSignal, pyqtProperty
class ToolbarProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
self._state = 1
self._use_wizard = False
stateChanged = pyqtSignal()
wizardStateChanged = pyqtSignal()
... | from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot,pyqtSignal, pyqtProperty
class ToolbarProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
self._state = 0
self._use_wizard = False
stateChanged = pyqtSignal()
wizardStateChanged = pyqtSignal()
... | <commit_before>from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot,pyqtSignal, pyqtProperty
class ToolbarProxy(QObject):
def __init__(self, parent = None):
super().__init__(parent)
self._state = 0
self._use_wizard = False
stateChanged = pyqtSignal()
wizardStateChanged = pyqt... |
b774bb5eb632743cc18961f31ea147799d8ba786 | lib/rapidsms/backends/backend.py | lib/rapidsms/backends/backend.py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
class Backend(object):
def log(self, level, message):
self.router.log(level, message)
def start(self):
raise NotImplementedError
def stop(self):
raise NotImplementedError
def send(self):
raise NotImpleme... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
class Backend(object):
def __init__ (self, router):
self.router = router
def log(self, level, message):
self.router.log(level, message)
def start(self):
raise NotImplementedError
def stop(self):
raise NotImple... | Add a constructor method for Backend | Add a constructor method for Backend
| Python | bsd-3-clause | rapidsms/rapidsms-legacy,rapidsms/rapidsms-legacy,rapidsms/rapidsms-legacy | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
class Backend(object):
def log(self, level, message):
self.router.log(level, message)
def start(self):
raise NotImplementedError
def stop(self):
raise NotImplementedError
def send(self):
raise NotImpleme... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
class Backend(object):
def __init__ (self, router):
self.router = router
def log(self, level, message):
self.router.log(level, message)
def start(self):
raise NotImplementedError
def stop(self):
raise NotImple... | <commit_before>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
class Backend(object):
def log(self, level, message):
self.router.log(level, message)
def start(self):
raise NotImplementedError
def stop(self):
raise NotImplementedError
def send(self):
r... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
class Backend(object):
def __init__ (self, router):
self.router = router
def log(self, level, message):
self.router.log(level, message)
def start(self):
raise NotImplementedError
def stop(self):
raise NotImple... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
class Backend(object):
def log(self, level, message):
self.router.log(level, message)
def start(self):
raise NotImplementedError
def stop(self):
raise NotImplementedError
def send(self):
raise NotImpleme... | <commit_before>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
class Backend(object):
def log(self, level, message):
self.router.log(level, message)
def start(self):
raise NotImplementedError
def stop(self):
raise NotImplementedError
def send(self):
r... |
6ea29a21a2bfd077891fbea1f60b97e92c33a32c | gpxpandas/gpxreader.py | gpxpandas/gpxreader.py | __author__ = 'max'
import gpxpy
import pandas as pd
def parse_gpx(gpx_file_name):
return gpxpy.parse(gpx_file_name)
def data_frame_for_track_segment(segment):
seg_dict = {}
for point in segment.points:
seg_dict[point.time] = [point.latitude, point.longitude,
poi... | __author__ = 'max'
import gpxpy
import pandas as pd
def parse_gpx(gpx_file_name):
return gpxpy.parse(gpx_file_name)
def data_frame_for_track_segment(segment):
seg_dict = {}
for point in segment.points:
seg_dict[point.time] = [point.latitude, point.longitude,
poi... | Return to list generator to enable pandas cmd output | Return to list generator to enable pandas cmd output
| Python | mit | komax/gpx-pandas | __author__ = 'max'
import gpxpy
import pandas as pd
def parse_gpx(gpx_file_name):
return gpxpy.parse(gpx_file_name)
def data_frame_for_track_segment(segment):
seg_dict = {}
for point in segment.points:
seg_dict[point.time] = [point.latitude, point.longitude,
poi... | __author__ = 'max'
import gpxpy
import pandas as pd
def parse_gpx(gpx_file_name):
return gpxpy.parse(gpx_file_name)
def data_frame_for_track_segment(segment):
seg_dict = {}
for point in segment.points:
seg_dict[point.time] = [point.latitude, point.longitude,
poi... | <commit_before>__author__ = 'max'
import gpxpy
import pandas as pd
def parse_gpx(gpx_file_name):
return gpxpy.parse(gpx_file_name)
def data_frame_for_track_segment(segment):
seg_dict = {}
for point in segment.points:
seg_dict[point.time] = [point.latitude, point.longitude,
... | __author__ = 'max'
import gpxpy
import pandas as pd
def parse_gpx(gpx_file_name):
return gpxpy.parse(gpx_file_name)
def data_frame_for_track_segment(segment):
seg_dict = {}
for point in segment.points:
seg_dict[point.time] = [point.latitude, point.longitude,
poi... | __author__ = 'max'
import gpxpy
import pandas as pd
def parse_gpx(gpx_file_name):
return gpxpy.parse(gpx_file_name)
def data_frame_for_track_segment(segment):
seg_dict = {}
for point in segment.points:
seg_dict[point.time] = [point.latitude, point.longitude,
poi... | <commit_before>__author__ = 'max'
import gpxpy
import pandas as pd
def parse_gpx(gpx_file_name):
return gpxpy.parse(gpx_file_name)
def data_frame_for_track_segment(segment):
seg_dict = {}
for point in segment.points:
seg_dict[point.time] = [point.latitude, point.longitude,
... |
5482bea32870b14fabc8a0c3b366371de5327873 | render_block/base.py | render_block/base.py | from django.template import loader
from django.template.backends.django import Template as DjangoTemplate
try:
from django.template.backends.jinja2 import Template as Jinja2Template
except ImportError:
# Most likely Jinja2 isn't installed, in that case just create a class since
# we always want it to be fal... | from django.template import loader
from django.template.backends.django import Template as DjangoTemplate
try:
from django.template.backends.jinja2 import Template as Jinja2Template
except ImportError:
# Most likely Jinja2 isn't installed, in that case just create a class since
# we always want it to be fal... | Remove some Python 2 syntax. | Remove some Python 2 syntax.
| Python | isc | clokep/django-render-block,clokep/django-render-block | from django.template import loader
from django.template.backends.django import Template as DjangoTemplate
try:
from django.template.backends.jinja2 import Template as Jinja2Template
except ImportError:
# Most likely Jinja2 isn't installed, in that case just create a class since
# we always want it to be fal... | from django.template import loader
from django.template.backends.django import Template as DjangoTemplate
try:
from django.template.backends.jinja2 import Template as Jinja2Template
except ImportError:
# Most likely Jinja2 isn't installed, in that case just create a class since
# we always want it to be fal... | <commit_before>from django.template import loader
from django.template.backends.django import Template as DjangoTemplate
try:
from django.template.backends.jinja2 import Template as Jinja2Template
except ImportError:
# Most likely Jinja2 isn't installed, in that case just create a class since
# we always wa... | from django.template import loader
from django.template.backends.django import Template as DjangoTemplate
try:
from django.template.backends.jinja2 import Template as Jinja2Template
except ImportError:
# Most likely Jinja2 isn't installed, in that case just create a class since
# we always want it to be fal... | from django.template import loader
from django.template.backends.django import Template as DjangoTemplate
try:
from django.template.backends.jinja2 import Template as Jinja2Template
except ImportError:
# Most likely Jinja2 isn't installed, in that case just create a class since
# we always want it to be fal... | <commit_before>from django.template import loader
from django.template.backends.django import Template as DjangoTemplate
try:
from django.template.backends.jinja2 import Template as Jinja2Template
except ImportError:
# Most likely Jinja2 isn't installed, in that case just create a class since
# we always wa... |
8af8f3ab918a033fb250c06c4769ee3351ec9d5f | saau/utils/header.py | saau/utils/header.py | from operator import itemgetter
import numpy as np
from lxml.etree import fromstring, XMLSyntaxError
def parse_lines(lines):
for line in lines:
try:
xml_line = fromstring(line.encode('utf-8'))
except XMLSyntaxError:
attrs = []
else:
attrs = [thing.tag f... | import numpy as np
from lxml.etree import fromstring, XMLSyntaxError
def parse_lines(lines):
for line in lines:
try:
xml_line = fromstring(line.encode('utf-8'))
except XMLSyntaxError:
attrs = []
else:
attrs = [thing.tag for thing in xml_line.getiterator(... | Create and modify lines in same loop | Create and modify lines in same loop
| Python | mit | Mause/statistical_atlas_of_au | from operator import itemgetter
import numpy as np
from lxml.etree import fromstring, XMLSyntaxError
def parse_lines(lines):
for line in lines:
try:
xml_line = fromstring(line.encode('utf-8'))
except XMLSyntaxError:
attrs = []
else:
attrs = [thing.tag f... | import numpy as np
from lxml.etree import fromstring, XMLSyntaxError
def parse_lines(lines):
for line in lines:
try:
xml_line = fromstring(line.encode('utf-8'))
except XMLSyntaxError:
attrs = []
else:
attrs = [thing.tag for thing in xml_line.getiterator(... | <commit_before>from operator import itemgetter
import numpy as np
from lxml.etree import fromstring, XMLSyntaxError
def parse_lines(lines):
for line in lines:
try:
xml_line = fromstring(line.encode('utf-8'))
except XMLSyntaxError:
attrs = []
else:
attrs... | import numpy as np
from lxml.etree import fromstring, XMLSyntaxError
def parse_lines(lines):
for line in lines:
try:
xml_line = fromstring(line.encode('utf-8'))
except XMLSyntaxError:
attrs = []
else:
attrs = [thing.tag for thing in xml_line.getiterator(... | from operator import itemgetter
import numpy as np
from lxml.etree import fromstring, XMLSyntaxError
def parse_lines(lines):
for line in lines:
try:
xml_line = fromstring(line.encode('utf-8'))
except XMLSyntaxError:
attrs = []
else:
attrs = [thing.tag f... | <commit_before>from operator import itemgetter
import numpy as np
from lxml.etree import fromstring, XMLSyntaxError
def parse_lines(lines):
for line in lines:
try:
xml_line = fromstring(line.encode('utf-8'))
except XMLSyntaxError:
attrs = []
else:
attrs... |
e296cefacae7154fd4060ec76abb9ddefb6cd763 | src/akllt/news/views.py | src/akllt/news/views.py | from django.shortcuts import render
from akllt.models import NewsStory
def news_items(request):
return render(request, 'akllt/news/news_items.html', {
'news_items': NewsStory.objects.all()[:20]
})
| from django.shortcuts import render, get_object_or_404
from akllt.models import NewsStory
def news_items(request):
return render(request, 'akllt/news/news_items.html', {
'news_items': NewsStory.objects.all()[:20]
})
def news_details(request, news_item_id):
news_item = get_object_or_404(NewsStor... | Add view for news details | Add view for news details
| Python | agpl-3.0 | python-dirbtuves/akl.lt,python-dirbtuves/akl.lt,python-dirbtuves/akl.lt,python-dirbtuves/akl.lt,python-dirbtuves/akl.lt | from django.shortcuts import render
from akllt.models import NewsStory
def news_items(request):
return render(request, 'akllt/news/news_items.html', {
'news_items': NewsStory.objects.all()[:20]
})
Add view for news details | from django.shortcuts import render, get_object_or_404
from akllt.models import NewsStory
def news_items(request):
return render(request, 'akllt/news/news_items.html', {
'news_items': NewsStory.objects.all()[:20]
})
def news_details(request, news_item_id):
news_item = get_object_or_404(NewsStor... | <commit_before>from django.shortcuts import render
from akllt.models import NewsStory
def news_items(request):
return render(request, 'akllt/news/news_items.html', {
'news_items': NewsStory.objects.all()[:20]
})
<commit_msg>Add view for news details<commit_after> | from django.shortcuts import render, get_object_or_404
from akllt.models import NewsStory
def news_items(request):
return render(request, 'akllt/news/news_items.html', {
'news_items': NewsStory.objects.all()[:20]
})
def news_details(request, news_item_id):
news_item = get_object_or_404(NewsStor... | from django.shortcuts import render
from akllt.models import NewsStory
def news_items(request):
return render(request, 'akllt/news/news_items.html', {
'news_items': NewsStory.objects.all()[:20]
})
Add view for news detailsfrom django.shortcuts import render, get_object_or_404
from akllt.models impor... | <commit_before>from django.shortcuts import render
from akllt.models import NewsStory
def news_items(request):
return render(request, 'akllt/news/news_items.html', {
'news_items': NewsStory.objects.all()[:20]
})
<commit_msg>Add view for news details<commit_after>from django.shortcuts import render, g... |
35e1ba57785734789357f03a738e4d65152bb775 | salt/cli/__init__.py | salt/cli/__init__.py | '''
The management of salt command line utilities are stored in here
'''
# Import python libs
import optparse
import os
import sys
# Import salt components
import salt.client
class SaltCMD(object):
'''
The execution of a salt command happens here
'''
def __init__(self):
'''
Cretae a Sa... | '''
The management of salt command line utilities are stored in here
'''
# Import python libs
import optparse
import os
import sys
# Import salt components
import salt.client
class SaltCMD(object):
'''
The execution of a salt command happens here
'''
def __init__(self):
'''
Cretae a Sa... | Add regex support call to the command line | Add regex support call to the command line
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | '''
The management of salt command line utilities are stored in here
'''
# Import python libs
import optparse
import os
import sys
# Import salt components
import salt.client
class SaltCMD(object):
'''
The execution of a salt command happens here
'''
def __init__(self):
'''
Cretae a Sa... | '''
The management of salt command line utilities are stored in here
'''
# Import python libs
import optparse
import os
import sys
# Import salt components
import salt.client
class SaltCMD(object):
'''
The execution of a salt command happens here
'''
def __init__(self):
'''
Cretae a Sa... | <commit_before>'''
The management of salt command line utilities are stored in here
'''
# Import python libs
import optparse
import os
import sys
# Import salt components
import salt.client
class SaltCMD(object):
'''
The execution of a salt command happens here
'''
def __init__(self):
'''
... | '''
The management of salt command line utilities are stored in here
'''
# Import python libs
import optparse
import os
import sys
# Import salt components
import salt.client
class SaltCMD(object):
'''
The execution of a salt command happens here
'''
def __init__(self):
'''
Cretae a Sa... | '''
The management of salt command line utilities are stored in here
'''
# Import python libs
import optparse
import os
import sys
# Import salt components
import salt.client
class SaltCMD(object):
'''
The execution of a salt command happens here
'''
def __init__(self):
'''
Cretae a Sa... | <commit_before>'''
The management of salt command line utilities are stored in here
'''
# Import python libs
import optparse
import os
import sys
# Import salt components
import salt.client
class SaltCMD(object):
'''
The execution of a salt command happens here
'''
def __init__(self):
'''
... |
f649913f8941837e5de5ca7b5134c04858f52e32 | utils/publish_message.py | utils/publish_message.py | import amqp
from contextlib import closing
def __get_channel(connection):
return connection.channel()
def __get_message(message_body):
return amqp.Message(message_body)
def __declare_exchange(channel, exchange, type):
channel.exchange_declare(exchange=exchange, type=type, durable=True, auto_delete=False... | import amqp
from contextlib import closing
def publish_message(message_body, exchange, type, routing_key):
""" Publish a message to an exchange with exchange type and routing key specified.
A message is sent to a specified exchange with the provided routing_key.
:param message_body: The body of the mess... | Revert "Revert "EAFP and removing redundant functions"" | Revert "Revert "EAFP and removing redundant functions""
This reverts commit b03c0898897bbd89f8701e1c4d6d84d263bbd039.
| Python | mit | jdgillespie91/trackerSpend,jdgillespie91/trackerSpend | import amqp
from contextlib import closing
def __get_channel(connection):
return connection.channel()
def __get_message(message_body):
return amqp.Message(message_body)
def __declare_exchange(channel, exchange, type):
channel.exchange_declare(exchange=exchange, type=type, durable=True, auto_delete=False... | import amqp
from contextlib import closing
def publish_message(message_body, exchange, type, routing_key):
""" Publish a message to an exchange with exchange type and routing key specified.
A message is sent to a specified exchange with the provided routing_key.
:param message_body: The body of the mess... | <commit_before>import amqp
from contextlib import closing
def __get_channel(connection):
return connection.channel()
def __get_message(message_body):
return amqp.Message(message_body)
def __declare_exchange(channel, exchange, type):
channel.exchange_declare(exchange=exchange, type=type, durable=True, au... | import amqp
from contextlib import closing
def publish_message(message_body, exchange, type, routing_key):
""" Publish a message to an exchange with exchange type and routing key specified.
A message is sent to a specified exchange with the provided routing_key.
:param message_body: The body of the mess... | import amqp
from contextlib import closing
def __get_channel(connection):
return connection.channel()
def __get_message(message_body):
return amqp.Message(message_body)
def __declare_exchange(channel, exchange, type):
channel.exchange_declare(exchange=exchange, type=type, durable=True, auto_delete=False... | <commit_before>import amqp
from contextlib import closing
def __get_channel(connection):
return connection.channel()
def __get_message(message_body):
return amqp.Message(message_body)
def __declare_exchange(channel, exchange, type):
channel.exchange_declare(exchange=exchange, type=type, durable=True, au... |
9b54d728a245855cba724a91d372a15a4f4abb6d | shop/checkout/models.py | shop/checkout/models.py | # -*- coding: utf-8 -*-
"""Checkout Models"""
import functools
from flask import redirect, url_for
from fulfil_client.model import ModelType, StringType
from shop.fulfilio import Model
from shop.globals import current_cart, current_channel
def not_empty_cart(function):
@functools.wraps(function)
def wrapper(... | # -*- coding: utf-8 -*-
"""Checkout Models"""
import functools
from flask import redirect, url_for
from fulfil_client.model import ModelType, StringType
from shop.fulfilio import Model
from shop.globals import current_cart, current_channel
def not_empty_cart(function):
@functools.wraps(function)
def wrapper(... | Add expiry fields on card model | Add expiry fields on card model
| Python | bsd-3-clause | joeirimpan/shop,joeirimpan/shop,joeirimpan/shop | # -*- coding: utf-8 -*-
"""Checkout Models"""
import functools
from flask import redirect, url_for
from fulfil_client.model import ModelType, StringType
from shop.fulfilio import Model
from shop.globals import current_cart, current_channel
def not_empty_cart(function):
@functools.wraps(function)
def wrapper(... | # -*- coding: utf-8 -*-
"""Checkout Models"""
import functools
from flask import redirect, url_for
from fulfil_client.model import ModelType, StringType
from shop.fulfilio import Model
from shop.globals import current_cart, current_channel
def not_empty_cart(function):
@functools.wraps(function)
def wrapper(... | <commit_before># -*- coding: utf-8 -*-
"""Checkout Models"""
import functools
from flask import redirect, url_for
from fulfil_client.model import ModelType, StringType
from shop.fulfilio import Model
from shop.globals import current_cart, current_channel
def not_empty_cart(function):
@functools.wraps(function)
... | # -*- coding: utf-8 -*-
"""Checkout Models"""
import functools
from flask import redirect, url_for
from fulfil_client.model import ModelType, StringType
from shop.fulfilio import Model
from shop.globals import current_cart, current_channel
def not_empty_cart(function):
@functools.wraps(function)
def wrapper(... | # -*- coding: utf-8 -*-
"""Checkout Models"""
import functools
from flask import redirect, url_for
from fulfil_client.model import ModelType, StringType
from shop.fulfilio import Model
from shop.globals import current_cart, current_channel
def not_empty_cart(function):
@functools.wraps(function)
def wrapper(... | <commit_before># -*- coding: utf-8 -*-
"""Checkout Models"""
import functools
from flask import redirect, url_for
from fulfil_client.model import ModelType, StringType
from shop.fulfilio import Model
from shop.globals import current_cart, current_channel
def not_empty_cart(function):
@functools.wraps(function)
... |
f0bf059cfa7b6edc366a0b3246eac1f3ab68e865 | solutions/comparison.py | solutions/comparison.py | '''
comparison.py - Comparison of analytic and calculated solutions
Created on 12 Aug 2010
@author: Ian Huston
'''
from __future__ import division
import numpy as np
import analyticsolution
import calcedsolution
import fixtures
def compare_one_step(m, srcclass, nix):
"""
Compare the analytic and calculated ... | '''
comparison.py - Comparison of analytic and calculated solutions
Created on 12 Aug 2010
@author: Ian Huston
'''
from __future__ import division
import numpy as np
import analyticsolution
import calcedsolution
import fixtures
def compare_one_step(m, srcclass, nix):
"""
Compare the analytic and calculated ... | Return k with other results. | Return k with other results.
| Python | bsd-3-clause | ihuston/pyflation,ihuston/pyflation | '''
comparison.py - Comparison of analytic and calculated solutions
Created on 12 Aug 2010
@author: Ian Huston
'''
from __future__ import division
import numpy as np
import analyticsolution
import calcedsolution
import fixtures
def compare_one_step(m, srcclass, nix):
"""
Compare the analytic and calculated ... | '''
comparison.py - Comparison of analytic and calculated solutions
Created on 12 Aug 2010
@author: Ian Huston
'''
from __future__ import division
import numpy as np
import analyticsolution
import calcedsolution
import fixtures
def compare_one_step(m, srcclass, nix):
"""
Compare the analytic and calculated ... | <commit_before>'''
comparison.py - Comparison of analytic and calculated solutions
Created on 12 Aug 2010
@author: Ian Huston
'''
from __future__ import division
import numpy as np
import analyticsolution
import calcedsolution
import fixtures
def compare_one_step(m, srcclass, nix):
"""
Compare the analytic ... | '''
comparison.py - Comparison of analytic and calculated solutions
Created on 12 Aug 2010
@author: Ian Huston
'''
from __future__ import division
import numpy as np
import analyticsolution
import calcedsolution
import fixtures
def compare_one_step(m, srcclass, nix):
"""
Compare the analytic and calculated ... | '''
comparison.py - Comparison of analytic and calculated solutions
Created on 12 Aug 2010
@author: Ian Huston
'''
from __future__ import division
import numpy as np
import analyticsolution
import calcedsolution
import fixtures
def compare_one_step(m, srcclass, nix):
"""
Compare the analytic and calculated ... | <commit_before>'''
comparison.py - Comparison of analytic and calculated solutions
Created on 12 Aug 2010
@author: Ian Huston
'''
from __future__ import division
import numpy as np
import analyticsolution
import calcedsolution
import fixtures
def compare_one_step(m, srcclass, nix):
"""
Compare the analytic ... |
b30d02bd077f1b7785c41e567aa4c4b44bba6a29 | backend/unimeet/mail/__init__.py | backend/unimeet/mail/__init__.py | __all__ = ['mail']
from .mail import send_mail, SUBJECTS
| __all__ = ['mail']
from .mail import send_mail, SUBJECTS, send_contact_form, send_contact_response
| Add send_contact_{form,response} functions to mail init | Add send_contact_{form,response} functions to mail init
| Python | mit | dimkarakostas/unimeet,dimkarakostas/unimeet,dimkarakostas/unimeet,dimkarakostas/unimeet | __all__ = ['mail']
from .mail import send_mail, SUBJECTS
Add send_contact_{form,response} functions to mail init | __all__ = ['mail']
from .mail import send_mail, SUBJECTS, send_contact_form, send_contact_response
| <commit_before>__all__ = ['mail']
from .mail import send_mail, SUBJECTS
<commit_msg>Add send_contact_{form,response} functions to mail init<commit_after> | __all__ = ['mail']
from .mail import send_mail, SUBJECTS, send_contact_form, send_contact_response
| __all__ = ['mail']
from .mail import send_mail, SUBJECTS
Add send_contact_{form,response} functions to mail init__all__ = ['mail']
from .mail import send_mail, SUBJECTS, send_contact_form, send_contact_response
| <commit_before>__all__ = ['mail']
from .mail import send_mail, SUBJECTS
<commit_msg>Add send_contact_{form,response} functions to mail init<commit_after>__all__ = ['mail']
from .mail import send_mail, SUBJECTS, send_contact_form, send_contact_response
|
42cb2842f38ab57daadb8f201815a028744db08c | utils/wavconverter.py | utils/wavconverter.py | from os import makedirs
import textwrap
with open('../resources/sounds/blip.wav', 'rb') as i:
data = i.read()
header = """\
#ifndef BLIP_H
#define BLIP_H
#include <cstdint>
#include <vector>
static std::vector<std::uint8_t> blip = {
%s
};
#endif /* BLIP_H */
""" % '\n\t'.join(
textwrap.wrap(
', '.join('0x... | from os import makedirs
import textwrap
with open('../resources/sounds/blip.wav', 'rb') as i:
data = i.read()
header = """\
#ifndef BLIP_H
#define BLIP_H
#include <cstdint>
#include <vector>
static std::vector<std::uint8_t> blip = {
%s
};
#endif /* BLIP_H */
""" % '\n\t'.join(
textwrap.wrap(
', '.join('0x... | Fix off-by-one in header line wrapping. | Fix off-by-one in header line wrapping.
| Python | mit | lejar/SC8E,lejar/SC8E,lejar/SC8E | from os import makedirs
import textwrap
with open('../resources/sounds/blip.wav', 'rb') as i:
data = i.read()
header = """\
#ifndef BLIP_H
#define BLIP_H
#include <cstdint>
#include <vector>
static std::vector<std::uint8_t> blip = {
%s
};
#endif /* BLIP_H */
""" % '\n\t'.join(
textwrap.wrap(
', '.join('0x... | from os import makedirs
import textwrap
with open('../resources/sounds/blip.wav', 'rb') as i:
data = i.read()
header = """\
#ifndef BLIP_H
#define BLIP_H
#include <cstdint>
#include <vector>
static std::vector<std::uint8_t> blip = {
%s
};
#endif /* BLIP_H */
""" % '\n\t'.join(
textwrap.wrap(
', '.join('0x... | <commit_before>from os import makedirs
import textwrap
with open('../resources/sounds/blip.wav', 'rb') as i:
data = i.read()
header = """\
#ifndef BLIP_H
#define BLIP_H
#include <cstdint>
#include <vector>
static std::vector<std::uint8_t> blip = {
%s
};
#endif /* BLIP_H */
""" % '\n\t'.join(
textwrap.wrap(
... | from os import makedirs
import textwrap
with open('../resources/sounds/blip.wav', 'rb') as i:
data = i.read()
header = """\
#ifndef BLIP_H
#define BLIP_H
#include <cstdint>
#include <vector>
static std::vector<std::uint8_t> blip = {
%s
};
#endif /* BLIP_H */
""" % '\n\t'.join(
textwrap.wrap(
', '.join('0x... | from os import makedirs
import textwrap
with open('../resources/sounds/blip.wav', 'rb') as i:
data = i.read()
header = """\
#ifndef BLIP_H
#define BLIP_H
#include <cstdint>
#include <vector>
static std::vector<std::uint8_t> blip = {
%s
};
#endif /* BLIP_H */
""" % '\n\t'.join(
textwrap.wrap(
', '.join('0x... | <commit_before>from os import makedirs
import textwrap
with open('../resources/sounds/blip.wav', 'rb') as i:
data = i.read()
header = """\
#ifndef BLIP_H
#define BLIP_H
#include <cstdint>
#include <vector>
static std::vector<std::uint8_t> blip = {
%s
};
#endif /* BLIP_H */
""" % '\n\t'.join(
textwrap.wrap(
... |
18cc17e3f2ac36c0087b1867fcd18d0e876c34b8 | tracker/src/main/scripts/launch-workflow.py | tracker/src/main/scripts/launch-workflow.py | import sys
import os
import uuid
from time import sleep
if len(sys.argv) != 3:
print "Wrong number of args"
exit(1)
workflow_name = sys.argv[1]
num_runs = int(sys.argv[2])
for this_run in range(num_runs):
run_uuid = str(uuid.uuid4())
launch_command = "airflow trigger_dag -r " + run_uuid... | import sys
import os
import uuid
from time import sleep
if len(sys.argv) != 3:
print "Wrong number of args"
exit(1)
workflow_name = sys.argv[1]
num_runs = int(sys.argv[2])
for this_run in range(num_runs):
run_uuid = str(uuid.uuid4())
launch_command = "airflow trigger_dag -r " + run_uuid... | Use longer sleep time for workflow launcher. | Use longer sleep time for workflow launcher.
| Python | mit | llevar/germline-regenotyper,llevar/germline-regenotyper | import sys
import os
import uuid
from time import sleep
if len(sys.argv) != 3:
print "Wrong number of args"
exit(1)
workflow_name = sys.argv[1]
num_runs = int(sys.argv[2])
for this_run in range(num_runs):
run_uuid = str(uuid.uuid4())
launch_command = "airflow trigger_dag -r " + run_uuid... | import sys
import os
import uuid
from time import sleep
if len(sys.argv) != 3:
print "Wrong number of args"
exit(1)
workflow_name = sys.argv[1]
num_runs = int(sys.argv[2])
for this_run in range(num_runs):
run_uuid = str(uuid.uuid4())
launch_command = "airflow trigger_dag -r " + run_uuid... | <commit_before>import sys
import os
import uuid
from time import sleep
if len(sys.argv) != 3:
print "Wrong number of args"
exit(1)
workflow_name = sys.argv[1]
num_runs = int(sys.argv[2])
for this_run in range(num_runs):
run_uuid = str(uuid.uuid4())
launch_command = "airflow trigger_dag ... | import sys
import os
import uuid
from time import sleep
if len(sys.argv) != 3:
print "Wrong number of args"
exit(1)
workflow_name = sys.argv[1]
num_runs = int(sys.argv[2])
for this_run in range(num_runs):
run_uuid = str(uuid.uuid4())
launch_command = "airflow trigger_dag -r " + run_uuid... | import sys
import os
import uuid
from time import sleep
if len(sys.argv) != 3:
print "Wrong number of args"
exit(1)
workflow_name = sys.argv[1]
num_runs = int(sys.argv[2])
for this_run in range(num_runs):
run_uuid = str(uuid.uuid4())
launch_command = "airflow trigger_dag -r " + run_uuid... | <commit_before>import sys
import os
import uuid
from time import sleep
if len(sys.argv) != 3:
print "Wrong number of args"
exit(1)
workflow_name = sys.argv[1]
num_runs = int(sys.argv[2])
for this_run in range(num_runs):
run_uuid = str(uuid.uuid4())
launch_command = "airflow trigger_dag ... |
a5f4636e5bea14770253e646b94970c226669e50 | telemetry/telemetry/core/platform/platform_backend_unittest.py | telemetry/telemetry/core/platform/platform_backend_unittest.py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
import unittest
from telemetry.core import platform as platform_module
class PlatformBackendTest(unittest.TestCase):
def test... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
import unittest
from telemetry import decorators
from telemetry.core import platform as platform_module
class PlatformBackendTe... | Disable power and smoke unit tests on Mac 10.9. | [telemetry] Disable power and smoke unit tests on Mac 10.9.
powermetrics is failing on the bots.
BUG=423688
TEST=trybots
R=tonyg
Review URL: https://codereview.chromium.org/746793002
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#305147}
| Python | bsd-3-clause | SummerLW/Perf-Insight-Report,benschmaus/catapult,catapult-project/catapult,SummerLW/Perf-Insight-Report,catapult-project/catapult,catapult-project/catapult-csm,catapult-project/catapult,sahiljain/catapult,benschmaus/catapult,catapult-project/catapult-csm,SummerLW/Perf-Insight-Report,benschmaus/catapult,sahiljain/catapu... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
import unittest
from telemetry.core import platform as platform_module
class PlatformBackendTest(unittest.TestCase):
def test... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
import unittest
from telemetry import decorators
from telemetry.core import platform as platform_module
class PlatformBackendTe... | <commit_before># Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
import unittest
from telemetry.core import platform as platform_module
class PlatformBackendTest(unittest.TestCa... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
import unittest
from telemetry import decorators
from telemetry.core import platform as platform_module
class PlatformBackendTe... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
import unittest
from telemetry.core import platform as platform_module
class PlatformBackendTest(unittest.TestCase):
def test... | <commit_before># Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import time
import unittest
from telemetry.core import platform as platform_module
class PlatformBackendTest(unittest.TestCa... |
8a9e2666e173078ea98e52522442e6e943cc9e6e | banks.py | banks.py | """ Banks' header configurations.
Stored in a dictionary where the keys are bank names in lowercase and
only alpha-characters. A bank's header should include "date" and
"amount", otherwise it cannot be parsed since YNAB requires these two
fields.
"""
from collections import namedtuple
Bank = namedtuple('Bank', ['name'... | """ Banks' header configurations.
Stored in a dictionary where the keys are bank names in lowercase and
only alpha-characters. A bank's header should include "date" and
"amount", otherwise it cannot be parsed since YNAB requires these two
fields.
"""
from collections import namedtuple
Bank = namedtuple('Bank', ['name'... | Prepare for new Nordea header | Prepare for new Nordea header
In June, Nordea will switch to a new web-interface.
This new interface also has a new csv-export format.
This commit adapts Nordea to the new format, while the previous
header is called "Nordea (gamal)".
I might remove the previous header come late June, after Nordea has
made the switch... | Python | mit | adnilsson/Bank2YNAB | """ Banks' header configurations.
Stored in a dictionary where the keys are bank names in lowercase and
only alpha-characters. A bank's header should include "date" and
"amount", otherwise it cannot be parsed since YNAB requires these two
fields.
"""
from collections import namedtuple
Bank = namedtuple('Bank', ['name'... | """ Banks' header configurations.
Stored in a dictionary where the keys are bank names in lowercase and
only alpha-characters. A bank's header should include "date" and
"amount", otherwise it cannot be parsed since YNAB requires these two
fields.
"""
from collections import namedtuple
Bank = namedtuple('Bank', ['name'... | <commit_before>""" Banks' header configurations.
Stored in a dictionary where the keys are bank names in lowercase and
only alpha-characters. A bank's header should include "date" and
"amount", otherwise it cannot be parsed since YNAB requires these two
fields.
"""
from collections import namedtuple
Bank = namedtuple(... | """ Banks' header configurations.
Stored in a dictionary where the keys are bank names in lowercase and
only alpha-characters. A bank's header should include "date" and
"amount", otherwise it cannot be parsed since YNAB requires these two
fields.
"""
from collections import namedtuple
Bank = namedtuple('Bank', ['name'... | """ Banks' header configurations.
Stored in a dictionary where the keys are bank names in lowercase and
only alpha-characters. A bank's header should include "date" and
"amount", otherwise it cannot be parsed since YNAB requires these two
fields.
"""
from collections import namedtuple
Bank = namedtuple('Bank', ['name'... | <commit_before>""" Banks' header configurations.
Stored in a dictionary where the keys are bank names in lowercase and
only alpha-characters. A bank's header should include "date" and
"amount", otherwise it cannot be parsed since YNAB requires these two
fields.
"""
from collections import namedtuple
Bank = namedtuple(... |
b1aac6a0b29a6ed46b77aab37ff52c765a280ec6 | ikalog/utils/matcher.py | ikalog/utils/matcher.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA
#
# 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:/... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA
#
# 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:/... | Switch to IkaMatcher2 (Numpy_8bit_fast); 10% faster in overall performance | utils: Switch to IkaMatcher2 (Numpy_8bit_fast); 10% faster in overall performance
Signed-off-by: Takeshi HASEGAWA <80595b5c49522665976d35e515d02ac963124d00@gmail.com>
| Python | apache-2.0 | deathmetalland/IkaLog,hasegaw/IkaLog,deathmetalland/IkaLog,hasegaw/IkaLog,hasegaw/IkaLog,deathmetalland/IkaLog | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA
#
# 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:/... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA
#
# 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:/... | <commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA
#
# 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
... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA
#
# 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:/... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA
#
# 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:/... | <commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA, Junki MIZUSHIMA
#
# 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
... |
a5fd2ece2f318030d7790014add66d1e5019ef0d | dodge.py | dodge.py | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_is_macintosh()
def select... | import platform
class OSXDodger(object):
allowed_version = "10.6.1"
allowed_system = "darwin"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_i... | Add allowed_system as a class variable | Add allowed_system as a class variable
| Python | mit | yoda-yoda/osx-dock-dodger,denisKaranja/osx-dock-dodger | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_is_macintosh()
def select... | import platform
class OSXDodger(object):
allowed_version = "10.6.1"
allowed_system = "darwin"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_i... | <commit_before>import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_is_macintosh()
... | import platform
class OSXDodger(object):
allowed_version = "10.6.1"
allowed_system = "darwin"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_i... | import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_is_macintosh()
def select... | <commit_before>import platform
class OSXDodger(object):
allowed_version = "10.12.1"
def __init__(self, applications_dir):
self.app_dir = applications_dir
def load_applications(self):
"""
Read all applications in the `/Applications/` dir
"""
self.pc_is_macintosh()
... |
6ebf55543e74771a80f4e871af5b3cfc8f845101 | indico/MaKaC/plugins/Collaboration/RecordingManager/__init__.py | indico/MaKaC/plugins/Collaboration/RecordingManager/__init__.py | # -*- coding: utf-8 -*-
##
## $Id: __init__.py,v 1.10 2009/04/09 13:13:18 dmartinc Exp $
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
##... | # -*- coding: utf-8 -*-
##
## $Id: __init__.py,v 1.10 2009/04/09 13:13:18 dmartinc Exp $
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
##... | Make RecordingManager work with new plugin system | [FIX] Make RecordingManager work with new plugin system
| Python | mit | OmeGak/indico,mvidalgarcia/indico,DirkHoffmann/indico,mic4ael/indico,mic4ael/indico,pferreir/indico,pferreir/indico,DirkHoffmann/indico,indico/indico,mic4ael/indico,DirkHoffmann/indico,pferreir/indico,OmeGak/indico,pferreir/indico,mic4ael/indico,indico/indico,mvidalgarcia/indico,ThiefMaster/indico,DirkHoffmann/indico,i... | # -*- coding: utf-8 -*-
##
## $Id: __init__.py,v 1.10 2009/04/09 13:13:18 dmartinc Exp $
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
##... | # -*- coding: utf-8 -*-
##
## $Id: __init__.py,v 1.10 2009/04/09 13:13:18 dmartinc Exp $
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
##... | <commit_before># -*- coding: utf-8 -*-
##
## $Id: __init__.py,v 1.10 2009/04/09 13:13:18 dmartinc Exp $
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Publi... | # -*- coding: utf-8 -*-
##
## $Id: __init__.py,v 1.10 2009/04/09 13:13:18 dmartinc Exp $
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
##... | # -*- coding: utf-8 -*-
##
## $Id: __init__.py,v 1.10 2009/04/09 13:13:18 dmartinc Exp $
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
##... | <commit_before># -*- coding: utf-8 -*-
##
## $Id: __init__.py,v 1.10 2009/04/09 13:13:18 dmartinc Exp $
##
## This file is part of CDS Indico.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
##
## CDS Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Publi... |
f532d81da92023e9db8994b129a37590e6df7fa2 | docs/test-deps.py | docs/test-deps.py | #!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
from packaging.version import Version
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
if Version(markdown.version) < Version("3.3.3"):
print("python3-markdown version 3.3.3 required for gi-docgen")
sys.exit(1... | #!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
from packaging.version import Version
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
if Version(markdown.__version__) < Version("3.3.3"):
print("python3-markdown version 3.3.3 required for gi-docgen")
sys.ex... | Use __version__ to fix new versions of python-markdown | trivial: Use __version__ to fix new versions of python-markdown
| Python | lgpl-2.1 | fwupd/fwupd,fwupd/fwupd,fwupd/fwupd,fwupd/fwupd | #!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
from packaging.version import Version
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
if Version(markdown.version) < Version("3.3.3"):
print("python3-markdown version 3.3.3 required for gi-docgen")
sys.exit(1... | #!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
from packaging.version import Version
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
if Version(markdown.__version__) < Version("3.3.3"):
print("python3-markdown version 3.3.3 required for gi-docgen")
sys.ex... | <commit_before>#!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
from packaging.version import Version
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
if Version(markdown.version) < Version("3.3.3"):
print("python3-markdown version 3.3.3 required for gi-docgen")... | #!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
from packaging.version import Version
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
if Version(markdown.__version__) < Version("3.3.3"):
print("python3-markdown version 3.3.3 required for gi-docgen")
sys.ex... | #!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
from packaging.version import Version
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
if Version(markdown.version) < Version("3.3.3"):
print("python3-markdown version 3.3.3 required for gi-docgen")
sys.exit(1... | <commit_before>#!/usr/bin/python3
# SPDX-License-Identifier: LGPL-2.1+
import sys
import markdown
from packaging.version import Version
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
if Version(markdown.version) < Version("3.3.3"):
print("python3-markdown version 3.3.3 required for gi-docgen")... |
a8d0e4545b634c33dfff20b2a75372dfc0dcd3d6 | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | Make it work with new tg Jinja quickstart | Make it work with new tg Jinja quickstart
| Python | mit | pedersen/tgtools.tgext-admin,pedersen/tgtools.tgext-admin | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(nam... | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(nam... |
329fc2bce695e8e750c82d9508fa4f31698e4303 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.0.0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for core functionali... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.1'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for core functionali... | Increase version 3.0.0 -> 3.1.1 | PRJ: Increase version 3.0.0 -> 3.1.1
| Python | mit | SiLab-Bonn/pixel_clusterizer | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.0.0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for core functionali... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.1'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for core functionali... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.0.0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for c... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.1'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for core functionali... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.0.0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for core functionali... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.0.0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for c... |
dfc12de614ba1cff12d2fb2654234af1a9a8e862 | setup.py | setup.py | import os
import codecs
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
setup(
name='backtrace',
version="0.2.0",
url='https://gith... | import os
import codecs
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
setup(
name='backtrace',
version="0.2.1",
url='https://gith... | Update classifiers with python3.6 version support and update version | Update classifiers with python3.6 version support and update version
| Python | apache-2.0 | nir0s/backtrace | import os
import codecs
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
setup(
name='backtrace',
version="0.2.0",
url='https://gith... | import os
import codecs
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
setup(
name='backtrace',
version="0.2.1",
url='https://gith... | <commit_before>import os
import codecs
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
setup(
name='backtrace',
version="0.2.0",
ur... | import os
import codecs
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
setup(
name='backtrace',
version="0.2.1",
url='https://gith... | import os
import codecs
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
setup(
name='backtrace',
version="0.2.0",
url='https://gith... | <commit_before>import os
import codecs
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
# intentionally *not* adding an encoding option to open
return codecs.open(os.path.join(here, *parts), 'r').read()
setup(
name='backtrace',
version="0.2.0",
ur... |
65691f0781253b68f67faa71b0e81d3ae1d0c363 | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup
setup(
name='sseclient',
version='0.0.7',
author='Brent Tubbs',
author_email='brent.tubbs@gmail.com',
py_modules=['sseclient'],
install_requires=['requests>=1.2.0', 'six'],
description=(
'Python client library for reading Server Sent Ev... | #!/usr/bin/python
import sys
from setuptools import setup
pytest_runner = ['pytest-runner'] if 'ptr' in sys.argv else []
setup(
name='sseclient',
version='0.0.7',
author='Brent Tubbs',
author_email='brent.tubbs@gmail.com',
py_modules=['sseclient'],
install_requires=['requests>=1.2.0', 'six'],
... | Allow tests to be run with pytest-runner. | Allow tests to be run with pytest-runner.
| Python | mit | btubbs/sseclient | #!/usr/bin/python
from setuptools import setup
setup(
name='sseclient',
version='0.0.7',
author='Brent Tubbs',
author_email='brent.tubbs@gmail.com',
py_modules=['sseclient'],
install_requires=['requests>=1.2.0', 'six'],
description=(
'Python client library for reading Server Sent Ev... | #!/usr/bin/python
import sys
from setuptools import setup
pytest_runner = ['pytest-runner'] if 'ptr' in sys.argv else []
setup(
name='sseclient',
version='0.0.7',
author='Brent Tubbs',
author_email='brent.tubbs@gmail.com',
py_modules=['sseclient'],
install_requires=['requests>=1.2.0', 'six'],
... | <commit_before>#!/usr/bin/python
from setuptools import setup
setup(
name='sseclient',
version='0.0.7',
author='Brent Tubbs',
author_email='brent.tubbs@gmail.com',
py_modules=['sseclient'],
install_requires=['requests>=1.2.0', 'six'],
description=(
'Python client library for reading... | #!/usr/bin/python
import sys
from setuptools import setup
pytest_runner = ['pytest-runner'] if 'ptr' in sys.argv else []
setup(
name='sseclient',
version='0.0.7',
author='Brent Tubbs',
author_email='brent.tubbs@gmail.com',
py_modules=['sseclient'],
install_requires=['requests>=1.2.0', 'six'],
... | #!/usr/bin/python
from setuptools import setup
setup(
name='sseclient',
version='0.0.7',
author='Brent Tubbs',
author_email='brent.tubbs@gmail.com',
py_modules=['sseclient'],
install_requires=['requests>=1.2.0', 'six'],
description=(
'Python client library for reading Server Sent Ev... | <commit_before>#!/usr/bin/python
from setuptools import setup
setup(
name='sseclient',
version='0.0.7',
author='Brent Tubbs',
author_email='brent.tubbs@gmail.com',
py_modules=['sseclient'],
install_requires=['requests>=1.2.0', 'six'],
description=(
'Python client library for reading... |
9cc91babcfafb22d21d9fa077e0933f49291d5f6 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='lcapy',
version='0.21.5',
description='Symbolic linear circuit analysis',
author='Michael Hayes',
requires=['sympy', 'numpy', 'scipy'],
author_email='michael.hayes@canterbury.ac.nz',
url='https://github.com/mph-/lca... | #!/usr/bin/env python
from distutils.core import setup
setup(name='lcapy',
version='0.21.6',
description='Symbolic linear circuit analysis',
author='Michael Hayes',
requires=['sympy', 'numpy', 'scipy'],
author_email='michael.hayes@canterbury.ac.nz',
url='https://github.com/mph-/lca... | Remove size keyword when generating netlist | Remove size keyword when generating netlist
| Python | lgpl-2.1 | mph-/lcapy | #!/usr/bin/env python
from distutils.core import setup
setup(name='lcapy',
version='0.21.5',
description='Symbolic linear circuit analysis',
author='Michael Hayes',
requires=['sympy', 'numpy', 'scipy'],
author_email='michael.hayes@canterbury.ac.nz',
url='https://github.com/mph-/lca... | #!/usr/bin/env python
from distutils.core import setup
setup(name='lcapy',
version='0.21.6',
description='Symbolic linear circuit analysis',
author='Michael Hayes',
requires=['sympy', 'numpy', 'scipy'],
author_email='michael.hayes@canterbury.ac.nz',
url='https://github.com/mph-/lca... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='lcapy',
version='0.21.5',
description='Symbolic linear circuit analysis',
author='Michael Hayes',
requires=['sympy', 'numpy', 'scipy'],
author_email='michael.hayes@canterbury.ac.nz',
url='https://gith... | #!/usr/bin/env python
from distutils.core import setup
setup(name='lcapy',
version='0.21.6',
description='Symbolic linear circuit analysis',
author='Michael Hayes',
requires=['sympy', 'numpy', 'scipy'],
author_email='michael.hayes@canterbury.ac.nz',
url='https://github.com/mph-/lca... | #!/usr/bin/env python
from distutils.core import setup
setup(name='lcapy',
version='0.21.5',
description='Symbolic linear circuit analysis',
author='Michael Hayes',
requires=['sympy', 'numpy', 'scipy'],
author_email='michael.hayes@canterbury.ac.nz',
url='https://github.com/mph-/lca... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='lcapy',
version='0.21.5',
description='Symbolic linear circuit analysis',
author='Michael Hayes',
requires=['sympy', 'numpy', 'scipy'],
author_email='michael.hayes@canterbury.ac.nz',
url='https://gith... |
1f64bb362beb1e14f358e4018b553356eaf99ce7 | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='AMFM_decompy',
version='1.0.4',
author='Bernardo J.B. Schmitt',
author_email='bernardo.jb.schmitt@gmail.com',
packages=['amfm_decompy'],
scripts=['bin/AMFM_test.py'],
package_data = {'amfm_decompy': ['*.wav']},
url='... | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='AMFM_decompy',
version='1.0.4.1',
author='Bernardo J.B. Schmitt',
author_email='bernardo.jb.schmitt@gmail.com',
packages=['amfm_decompy'],
scripts=['bin/AMFM_test.py'],
package_data = {'amfm_decompy': ['*.wav']},
url... | Change version name to 1.0.4.1 | Change version name to 1.0.4.1
| Python | mit | bjbschmitt/AMFM_decompy | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='AMFM_decompy',
version='1.0.4',
author='Bernardo J.B. Schmitt',
author_email='bernardo.jb.schmitt@gmail.com',
packages=['amfm_decompy'],
scripts=['bin/AMFM_test.py'],
package_data = {'amfm_decompy': ['*.wav']},
url='... | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='AMFM_decompy',
version='1.0.4.1',
author='Bernardo J.B. Schmitt',
author_email='bernardo.jb.schmitt@gmail.com',
packages=['amfm_decompy'],
scripts=['bin/AMFM_test.py'],
package_data = {'amfm_decompy': ['*.wav']},
url... | <commit_before># -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='AMFM_decompy',
version='1.0.4',
author='Bernardo J.B. Schmitt',
author_email='bernardo.jb.schmitt@gmail.com',
packages=['amfm_decompy'],
scripts=['bin/AMFM_test.py'],
package_data = {'amfm_decompy': ['*.wa... | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='AMFM_decompy',
version='1.0.4.1',
author='Bernardo J.B. Schmitt',
author_email='bernardo.jb.schmitt@gmail.com',
packages=['amfm_decompy'],
scripts=['bin/AMFM_test.py'],
package_data = {'amfm_decompy': ['*.wav']},
url... | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='AMFM_decompy',
version='1.0.4',
author='Bernardo J.B. Schmitt',
author_email='bernardo.jb.schmitt@gmail.com',
packages=['amfm_decompy'],
scripts=['bin/AMFM_test.py'],
package_data = {'amfm_decompy': ['*.wav']},
url='... | <commit_before># -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='AMFM_decompy',
version='1.0.4',
author='Bernardo J.B. Schmitt',
author_email='bernardo.jb.schmitt@gmail.com',
packages=['amfm_decompy'],
scripts=['bin/AMFM_test.py'],
package_data = {'amfm_decompy': ['*.wa... |
b2f5b4d731cbed5094233b94cadc3a10fe9fe0c4 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | Remove [] from around open()...split('\n') | Remove [] from around open()...split('\n')
`split()` already returns a list so you don't need to wrap it in another list. | Python | bsd-3-clause | intake/filesystem_spec,fsspec/filesystem_spec,fsspec/filesystem_spec | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdcla... | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | #!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdclass=versioneer.g... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
import versioneer
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="fsspec",
version=versioneer.get_version(),
cmdcla... |
db6b3342b77b3a490007761398873fbb0234ccd5 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leid... | from setuptools import setup, find_packages
setup(
name='django-robots-pbs',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@... | Rename distributable name to avoid conflicts with releases from the parent project | Rename distributable name to avoid conflicts with releases from the
parent project
Since this is a fork we need to diferentiate between our project and
parent project releases. If we rely only on the version we won't be able
to avoid conflicts with oficial releases on pypi.
| Python | bsd-3-clause | pbs/django-robots,pbs/django-robots,pbs/django-robots | from setuptools import setup, find_packages
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leid... | from setuptools import setup, find_packages
setup(
name='django-robots-pbs',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@... | <commit_before>from setuptools import setup, find_packages
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_ema... | from setuptools import setup, find_packages
setup(
name='django-robots-pbs',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@... | from setuptools import setup, find_packages
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leid... | <commit_before>from setuptools import setup, find_packages
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_ema... |
18b249b7d7c195a96e3449e5c9bdfd70f1cd16d1 | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.mako',
version='1.0a4.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.mako',
version='1.0a4.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyatt Baldwin',
... | Upgrade tangled 0.1a9 => 1.0a11 | Upgrade tangled 0.1a9 => 1.0a11
| Python | mit | TangledWeb/tangled.mako | from setuptools import setup
setup(
name='tangled.mako',
version='1.0a4.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.mako',
version='1.0a4.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyatt Baldwin',
... | <commit_before>from setuptools import setup
setup(
name='tangled.mako',
version='1.0a4.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyat... | from setuptools import setup
setup(
name='tangled.mako',
version='1.0a4.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.mako',
version='1.0a4.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyatt Baldwin',
... | <commit_before>from setuptools import setup
setup(
name='tangled.mako',
version='1.0a4.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyat... |
9e46b546dbaf5f56527f8f88b6fa3046c39a4f67 | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
version = '0.20'
setup(name='velruse',
version=version,
description="Simplifying third-party authentication for web applications.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=lis... | from setuptools import setup, find_packages
import sys, os
version = '0.20a1'
setup(name='velruse',
version=version,
description="Simplifying third-party authentication for web applications.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=l... | Add proper requirements on lettuce_webdriver, update for alpha release. | Add proper requirements on lettuce_webdriver, update for alpha release.
| Python | mit | ImaginationForPeople/velruse,bbangert/velruse,ImaginationForPeople/velruse,miedzinski/velruse,bbangert/velruse,miedzinski/velruse | from setuptools import setup, find_packages
import sys, os
version = '0.20'
setup(name='velruse',
version=version,
description="Simplifying third-party authentication for web applications.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=lis... | from setuptools import setup, find_packages
import sys, os
version = '0.20a1'
setup(name='velruse',
version=version,
description="Simplifying third-party authentication for web applications.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=l... | <commit_before>from setuptools import setup, find_packages
import sys, os
version = '0.20'
setup(name='velruse',
version=version,
description="Simplifying third-party authentication for web applications.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pyp... | from setuptools import setup, find_packages
import sys, os
version = '0.20a1'
setup(name='velruse',
version=version,
description="Simplifying third-party authentication for web applications.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=l... | from setuptools import setup, find_packages
import sys, os
version = '0.20'
setup(name='velruse',
version=version,
description="Simplifying third-party authentication for web applications.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=lis... | <commit_before>from setuptools import setup, find_packages
import sys, os
version = '0.20'
setup(name='velruse',
version=version,
description="Simplifying third-party authentication for web applications.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pyp... |
a5d7d05f83f0d7a5f3e6148f362b671434088e14 | setup.py | setup.py | from setuptools import setup, find_packages
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5
tests_require = [
"dill",
"coverage",
"coveralls",
"mock",
"nose",
]
setup(name="expiringdict",
version="1.2.0",
... | from setuptools import setup, find_packages
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5
tests_require = [
"dill",
"coverage",
"coveralls",
"mock",
"nose",
]
setup(name="expiringdict",
version="1.2.0",
... | Fix typing conflict on Python 3.7 | Fix typing conflict on Python 3.7
When using bazel on Python3.7, I got error message below
```
Traceback (most recent call last):
File "/private/var/tmp/_bazel_yujo/abf0a3d83a4b1d722a32424a453d5c05/sandbox/darwin-sandbox/39/execroot/__main__/bazel-out/darwin-fastbuild/bin/tests/unit/unit_tests.runfiles/__main__/t... | Python | apache-2.0 | mailgun/expiringdict | from setuptools import setup, find_packages
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5
tests_require = [
"dill",
"coverage",
"coveralls",
"mock",
"nose",
]
setup(name="expiringdict",
version="1.2.0",
... | from setuptools import setup, find_packages
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5
tests_require = [
"dill",
"coverage",
"coveralls",
"mock",
"nose",
]
setup(name="expiringdict",
version="1.2.0",
... | <commit_before>from setuptools import setup, find_packages
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5
tests_require = [
"dill",
"coverage",
"coveralls",
"mock",
"nose",
]
setup(name="expiringdict",
vers... | from setuptools import setup, find_packages
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5
tests_require = [
"dill",
"coverage",
"coveralls",
"mock",
"nose",
]
setup(name="expiringdict",
version="1.2.0",
... | from setuptools import setup, find_packages
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5
tests_require = [
"dill",
"coverage",
"coveralls",
"mock",
"nose",
]
setup(name="expiringdict",
version="1.2.0",
... | <commit_before>from setuptools import setup, find_packages
try:
import md5 # fix for "No module named _md5" error
except ImportError:
# python 3 moved md5
from hashlib import md5
tests_require = [
"dill",
"coverage",
"coveralls",
"mock",
"nose",
]
setup(name="expiringdict",
vers... |
ec7d1b675d4c86ec852350c1ca3923aaa7c17670 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README')) as f:
README = f.read()
requires = []
setup(name='python-bitcoinlib',
version='0.1.1',
description='This python library provides an easy i... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README')) as f:
README = f.read()
requires = []
setup(name='python-bitcoinlib',
version='0.2-SNAPSHOT',
description='This python library provides an... | Reset version for future development | Reset version for future development
| Python | mit | petertodd/dust-b-gone | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README')) as f:
README = f.read()
requires = []
setup(name='python-bitcoinlib',
version='0.1.1',
description='This python library provides an easy i... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README')) as f:
README = f.read()
requires = []
setup(name='python-bitcoinlib',
version='0.2-SNAPSHOT',
description='This python library provides an... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README')) as f:
README = f.read()
requires = []
setup(name='python-bitcoinlib',
version='0.1.1',
description='This python library pro... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README')) as f:
README = f.read()
requires = []
setup(name='python-bitcoinlib',
version='0.2-SNAPSHOT',
description='This python library provides an... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README')) as f:
README = f.read()
requires = []
setup(name='python-bitcoinlib',
version='0.1.1',
description='This python library provides an easy i... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README')) as f:
README = f.read()
requires = []
setup(name='python-bitcoinlib',
version='0.1.1',
description='This python library pro... |
6dc44607e11c250d78159f00264e3a19a3ea9c37 | setup.py | setup.py | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=str(kitchen.release.__version__),
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
lic... | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=str(kitchen.release.__version__),
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
lic... | Move development status from Alpha to Beta | Move development status from Alpha to Beta
| Python | lgpl-2.1 | fedora-infra/kitchen,fedora-infra/kitchen | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=str(kitchen.release.__version__),
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
lic... | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=str(kitchen.release.__version__),
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
lic... | <commit_before>#!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=str(kitchen.release.__version__),
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.E... | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=str(kitchen.release.__version__),
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
lic... | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=str(kitchen.release.__version__),
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
lic... | <commit_before>#!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=str(kitchen.release.__version__),
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.E... |
010627a11aae19bfd6b486b747c8390a0ecbbfde | setup.py | setup.py | from distutils.core import setup
from setuptools import find_packages
setup(
name='d4rl',
version='1.1',
install_requires=['gym',
'numpy',
'mujoco_py',
'h5py',
'termcolor', # adept_envs dependency
... | from distutils.core import setup
from setuptools import find_packages
setup(
name='d4rl',
version='1.1',
install_requires=['gym',
'numpy',
'mujoco_py',
'h5py',
'termcolor', # adept_envs dependency
... | Add assets for locomotion and DAPG to package data | Add assets for locomotion and DAPG to package data
| Python | apache-2.0 | rail-berkeley/d4rl,rail-berkeley/d4rl | from distutils.core import setup
from setuptools import find_packages
setup(
name='d4rl',
version='1.1',
install_requires=['gym',
'numpy',
'mujoco_py',
'h5py',
'termcolor', # adept_envs dependency
... | from distutils.core import setup
from setuptools import find_packages
setup(
name='d4rl',
version='1.1',
install_requires=['gym',
'numpy',
'mujoco_py',
'h5py',
'termcolor', # adept_envs dependency
... | <commit_before>from distutils.core import setup
from setuptools import find_packages
setup(
name='d4rl',
version='1.1',
install_requires=['gym',
'numpy',
'mujoco_py',
'h5py',
'termcolor', # adept_envs dependency
... | from distutils.core import setup
from setuptools import find_packages
setup(
name='d4rl',
version='1.1',
install_requires=['gym',
'numpy',
'mujoco_py',
'h5py',
'termcolor', # adept_envs dependency
... | from distutils.core import setup
from setuptools import find_packages
setup(
name='d4rl',
version='1.1',
install_requires=['gym',
'numpy',
'mujoco_py',
'h5py',
'termcolor', # adept_envs dependency
... | <commit_before>from distutils.core import setup
from setuptools import find_packages
setup(
name='d4rl',
version='1.1',
install_requires=['gym',
'numpy',
'mujoco_py',
'h5py',
'termcolor', # adept_envs dependency
... |
6652e642e2a7d6388b8a80f072b3161db6f66ee3 | setup.py | setup.py |
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
classifiers... |
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
classifiers... | Add lxml and beautifulsoup dependencies | Add lxml and beautifulsoup dependencies
| Python | apache-2.0 | socib/javasphinx,bronto/javasphinx,Zyzle/javasphinx |
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
classifiers... |
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
classifiers... | <commit_before>
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
... |
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
classifiers... |
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
classifiers... | <commit_before>
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
... |
03f2ec08fbf2133bcc78047bf5346939a5fe4315 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')
requirements = [
'Django<=1.9',
]
test_requirements = [
'nose>=1.3,<2',
'factory_boy>=2.4,<3.0',
'fake-factory... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')
requirements = [
'Django<1.10',
]
test_requirements = [
'nose>=1.3,<2',
'factory_boy>=2.4,<3.0',
'fake-factory... | Fix Django version in requirements | Fix Django version in requirements
Current version of requirements in setup.py doesn't work well with (pip-compile)[https://github.com/nvie/pip-tools/] (concrete problem is discussed (here) [https://github.com/nvie/pip-tools/issues/323]). This commit changes `<=1.9` to `<1.10`. | Python | mit | vijaykatam/django-cache-manager | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')
requirements = [
'Django<=1.9',
]
test_requirements = [
'nose>=1.3,<2',
'factory_boy>=2.4,<3.0',
'fake-factory... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')
requirements = [
'Django<1.10',
]
test_requirements = [
'nose>=1.3,<2',
'factory_boy>=2.4,<3.0',
'fake-factory... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')
requirements = [
'Django<=1.9',
]
test_requirements = [
'nose>=1.3,<2',
'factory_boy>=2.4,<3.0',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')
requirements = [
'Django<1.10',
]
test_requirements = [
'nose>=1.3,<2',
'factory_boy>=2.4,<3.0',
'fake-factory... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')
requirements = [
'Django<=1.9',
]
test_requirements = [
'nose>=1.3,<2',
'factory_boy>=2.4,<3.0',
'fake-factory... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
readme = open('README.md').read()
history = open('HISTORY.md').read().replace('.. :changelog:', '')
requirements = [
'Django<=1.9',
]
test_requirements = [
'nose>=1.3,<2',
'factory_boy>=2.4,<3.0',
... |
c4db7397e5b91d0efd30b0b7549adb8a266cb8d4 | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | Increment version (to fix dependencies) | Increment version (to fix dependencies) | Python | bsd-3-clause | consbio/gis-metadata-parser | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me... |
40b9fd2252156a4bf21e23b197df3c1cb83d0a6e | setup.py | setup.py | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | from setuptools import setup
with open("README.md", 'r') as f:
long_description = f.read()
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
long_description=long_description,
long_description_content_type="test/markdown",
author='Pe... | Add README as long_description to package | Add README as long_description to package
| Python | mit | ZedThree/fort_depend.py,ZedThree/fort_depend.py | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | from setuptools import setup
with open("README.md", 'r') as f:
long_description = f.read()
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
long_description=long_description,
long_description_content_type="test/markdown",
author='Pe... | <commit_before>from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://git... | from setuptools import setup
with open("README.md", 'r') as f:
long_description = f.read()
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
long_description=long_description,
long_description_content_type="test/markdown",
author='Pe... | from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://github.com/ZedThre... | <commit_before>from setuptools import setup
setup(name='fortdepend',
version='0.1.0',
description='Automatically generate Fortran dependencies',
author='Peter Hill',
author_email='peter@fusionplasma.co.uk',
url='https://github.com/ZedThree/fort_depend.py/',
download_url='https://git... |
78747b26f642af4d1404df5a3a6d08160f07d2f0 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='hawkular-client',
version='0.4.0',
description='Python client to communicate with Hawkular over HTTP(S)',
author='Michael Burman',
author_email='miburman@redhat.com',
url='http://github.com/hawkular/hawkular-client-python... | #!/usr/bin/env python
from distutils.core import setup
from os import path
from setuptools.command.install import install
import pypandoc
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
# Create rst here from Markdown
z = pypandoc.convert('RE... | Change version to 0.4.0, add classifiers and readme conversion from markdown to rSt | Change version to 0.4.0, add classifiers and readme conversion from markdown to rSt
| Python | apache-2.0 | hawkular/hawkular-client-python,burmanm/hawkular-client-python,burmanm/hawkular-client-python,hawkular/hawkular-client-python | #!/usr/bin/env python
from distutils.core import setup
setup(name='hawkular-client',
version='0.4.0',
description='Python client to communicate with Hawkular over HTTP(S)',
author='Michael Burman',
author_email='miburman@redhat.com',
url='http://github.com/hawkular/hawkular-client-python... | #!/usr/bin/env python
from distutils.core import setup
from os import path
from setuptools.command.install import install
import pypandoc
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
# Create rst here from Markdown
z = pypandoc.convert('RE... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='hawkular-client',
version='0.4.0',
description='Python client to communicate with Hawkular over HTTP(S)',
author='Michael Burman',
author_email='miburman@redhat.com',
url='http://github.com/hawkular/hawkula... | #!/usr/bin/env python
from distutils.core import setup
from os import path
from setuptools.command.install import install
import pypandoc
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
# Create rst here from Markdown
z = pypandoc.convert('RE... | #!/usr/bin/env python
from distutils.core import setup
setup(name='hawkular-client',
version='0.4.0',
description='Python client to communicate with Hawkular over HTTP(S)',
author='Michael Burman',
author_email='miburman@redhat.com',
url='http://github.com/hawkular/hawkular-client-python... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='hawkular-client',
version='0.4.0',
description='Python client to communicate with Hawkular over HTTP(S)',
author='Michael Burman',
author_email='miburman@redhat.com',
url='http://github.com/hawkular/hawkula... |
5f64cad0de80d6ecbbe4397161ae3b04620547ab | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.0.7',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
install_re... | #!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.0.7',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
install_re... | Add singer-tools as a dev dependency | Add singer-tools as a dev dependency
| Python | apache-2.0 | singer-io/singer-python | #!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.0.7',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
install_re... | #!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.0.7',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
install_re... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.0.7',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
... | #!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.0.7',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
install_re... | #!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.0.7',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
install_re... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import subprocess
setup(name="singer-python",
version='5.0.7',
description="Singer.io utility library",
author="Stitch",
classifiers=['Programming Language :: Python :: 3 :: Only'],
url="http://singer.io",
... |
72b41b512f4413c456cd0bfde7da349b5094aadd | setup.py | setup.py | """
PyLatex
-------
PyLatex is a Python library for creating LaTeX files. The point of this library
is being an easy, but extensible interface between Python and Latex.
"""
from distutils.core import setup
setup(name='PyLatex',
version='0.2.0',
author='Jelte Fennema',
author_email='pylatex@jeltef.n... | """
PyLatex
-------
PyLatex is a Python library for creating LaTeX files. The point of this library
is being an easy, but extensible interface between Python and Latex.
Features
~~~~~~~~
The library contains some basic features I have had the need for so far.
Currently those are:
- Document generation and compilat... | Update long description for PyPi | Update long description for PyPi
| Python | mit | sebastianhaas/PyLaTeX,JelteF/PyLaTeX,ovaskevich/PyLaTeX,ovaskevich/PyLaTeX,sebastianhaas/PyLaTeX,JelteF/PyLaTeX,bjodah/PyLaTeX,votti/PyLaTeX,jendas1/PyLaTeX,votti/PyLaTeX,bjodah/PyLaTeX,jendas1/PyLaTeX | """
PyLatex
-------
PyLatex is a Python library for creating LaTeX files. The point of this library
is being an easy, but extensible interface between Python and Latex.
"""
from distutils.core import setup
setup(name='PyLatex',
version='0.2.0',
author='Jelte Fennema',
author_email='pylatex@jeltef.n... | """
PyLatex
-------
PyLatex is a Python library for creating LaTeX files. The point of this library
is being an easy, but extensible interface between Python and Latex.
Features
~~~~~~~~
The library contains some basic features I have had the need for so far.
Currently those are:
- Document generation and compilat... | <commit_before>"""
PyLatex
-------
PyLatex is a Python library for creating LaTeX files. The point of this library
is being an easy, but extensible interface between Python and Latex.
"""
from distutils.core import setup
setup(name='PyLatex',
version='0.2.0',
author='Jelte Fennema',
author_email='p... | """
PyLatex
-------
PyLatex is a Python library for creating LaTeX files. The point of this library
is being an easy, but extensible interface between Python and Latex.
Features
~~~~~~~~
The library contains some basic features I have had the need for so far.
Currently those are:
- Document generation and compilat... | """
PyLatex
-------
PyLatex is a Python library for creating LaTeX files. The point of this library
is being an easy, but extensible interface between Python and Latex.
"""
from distutils.core import setup
setup(name='PyLatex',
version='0.2.0',
author='Jelte Fennema',
author_email='pylatex@jeltef.n... | <commit_before>"""
PyLatex
-------
PyLatex is a Python library for creating LaTeX files. The point of this library
is being an easy, but extensible interface between Python and Latex.
"""
from distutils.core import setup
setup(name='PyLatex',
version='0.2.0',
author='Jelte Fennema',
author_email='p... |
baf03e163753a3e1d1cecc20676722e22896170a | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-payfast',
version='0.3.dev',
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
packages=find_packages(exclude=['payfast_tests']),
url='http://bitbucket.org/kmike/django-payfast/',
download_url ... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-payfast',
version='0.3.dev',
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
maintainer='Piet Delport',
maintainer_email='pjdelport@gmail.com',
packages=find_packages(exclude=['payfast_tests']... | Add maintainer: Piet Delport <pjdelport@gmail.com> | Add maintainer: Piet Delport <pjdelport@gmail.com>
| Python | mit | reinbach/django-payfast | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-payfast',
version='0.3.dev',
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
packages=find_packages(exclude=['payfast_tests']),
url='http://bitbucket.org/kmike/django-payfast/',
download_url ... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-payfast',
version='0.3.dev',
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
maintainer='Piet Delport',
maintainer_email='pjdelport@gmail.com',
packages=find_packages(exclude=['payfast_tests']... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-payfast',
version='0.3.dev',
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
packages=find_packages(exclude=['payfast_tests']),
url='http://bitbucket.org/kmike/django-payfast/',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-payfast',
version='0.3.dev',
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
maintainer='Piet Delport',
maintainer_email='pjdelport@gmail.com',
packages=find_packages(exclude=['payfast_tests']... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-payfast',
version='0.3.dev',
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
packages=find_packages(exclude=['payfast_tests']),
url='http://bitbucket.org/kmike/django-payfast/',
download_url ... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-payfast',
version='0.3.dev',
author='Mikhail Korobov',
author_email='kmike84@gmail.com',
packages=find_packages(exclude=['payfast_tests']),
url='http://bitbucket.org/kmike/django-payfast/',
... |
8c0b5f03c53f8d38d6fb0c2fed8787ccb97d6207 | setup.py | setup.py | # /setup.py
#
# Installation and setup script for parse-shebang
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for parse-shebang."""
from setuptools import find_packages, setup
setup(name="parse-shebang",
version="0.0.20",
description="""Parse shebangs and return their comp... | # /setup.py
#
# Installation and setup script for parse-shebang
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for parse-shebang."""
from setuptools import find_packages, setup
setup(name="parse-shebang",
version="0.0.21",
description="""Parse shebangs and return their comp... | Bump version: 0.0.20 -> 0.0.21 | Bump version: 0.0.20 -> 0.0.21
[ci skip]
| Python | mit | polysquare/python-parse-shebang | # /setup.py
#
# Installation and setup script for parse-shebang
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for parse-shebang."""
from setuptools import find_packages, setup
setup(name="parse-shebang",
version="0.0.20",
description="""Parse shebangs and return their comp... | # /setup.py
#
# Installation and setup script for parse-shebang
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for parse-shebang."""
from setuptools import find_packages, setup
setup(name="parse-shebang",
version="0.0.21",
description="""Parse shebangs and return their comp... | <commit_before># /setup.py
#
# Installation and setup script for parse-shebang
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for parse-shebang."""
from setuptools import find_packages, setup
setup(name="parse-shebang",
version="0.0.20",
description="""Parse shebangs and re... | # /setup.py
#
# Installation and setup script for parse-shebang
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for parse-shebang."""
from setuptools import find_packages, setup
setup(name="parse-shebang",
version="0.0.21",
description="""Parse shebangs and return their comp... | # /setup.py
#
# Installation and setup script for parse-shebang
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for parse-shebang."""
from setuptools import find_packages, setup
setup(name="parse-shebang",
version="0.0.20",
description="""Parse shebangs and return their comp... | <commit_before># /setup.py
#
# Installation and setup script for parse-shebang
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for parse-shebang."""
from setuptools import find_packages, setup
setup(name="parse-shebang",
version="0.0.20",
description="""Parse shebangs and re... |
75252a9d0005cf5c42b037933c33b4270d754a66 | setup.py | setup.py | import os
from setuptools import setup, find_packages
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere==1.7.0",
"awacs==0.6.0",
"stacker==0.6.3",
]
tests_require = [
"nose>=1.0",
"mock==1.0.1",
]
def read(filename):
full_path = os.path.join(src_dir, filename)
with o... | import os
from setuptools import setup, find_packages
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere~=1.8.0",
"awacs~=0.6.0",
"stacker~=0.6.3",
]
tests_require = [
"nose~=1.0",
"mock~=2.0.0",
]
def read(filename):
full_path = os.path.join(src_dir, filename)
with o... | Use compatible release versions for all dependencies | Use compatible release versions for all dependencies
| Python | bsd-2-clause | remind101/stacker_blueprints,remind101/stacker_blueprints | import os
from setuptools import setup, find_packages
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere==1.7.0",
"awacs==0.6.0",
"stacker==0.6.3",
]
tests_require = [
"nose>=1.0",
"mock==1.0.1",
]
def read(filename):
full_path = os.path.join(src_dir, filename)
with o... | import os
from setuptools import setup, find_packages
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere~=1.8.0",
"awacs~=0.6.0",
"stacker~=0.6.3",
]
tests_require = [
"nose~=1.0",
"mock~=2.0.0",
]
def read(filename):
full_path = os.path.join(src_dir, filename)
with o... | <commit_before>import os
from setuptools import setup, find_packages
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere==1.7.0",
"awacs==0.6.0",
"stacker==0.6.3",
]
tests_require = [
"nose>=1.0",
"mock==1.0.1",
]
def read(filename):
full_path = os.path.join(src_dir, filen... | import os
from setuptools import setup, find_packages
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere~=1.8.0",
"awacs~=0.6.0",
"stacker~=0.6.3",
]
tests_require = [
"nose~=1.0",
"mock~=2.0.0",
]
def read(filename):
full_path = os.path.join(src_dir, filename)
with o... | import os
from setuptools import setup, find_packages
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere==1.7.0",
"awacs==0.6.0",
"stacker==0.6.3",
]
tests_require = [
"nose>=1.0",
"mock==1.0.1",
]
def read(filename):
full_path = os.path.join(src_dir, filename)
with o... | <commit_before>import os
from setuptools import setup, find_packages
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere==1.7.0",
"awacs==0.6.0",
"stacker==0.6.3",
]
tests_require = [
"nose>=1.0",
"mock==1.0.1",
]
def read(filename):
full_path = os.path.join(src_dir, filen... |
de613623c638b923a6bbfb6c33c373794d654000 | setup.py | setup.py | from distutils.core import setup
setup(
name='django_dust',
description='Distributed Upload STorage for Django. A file backend that mirrors all incoming media files to several servers',
packages=[
'django_dust',
'django_dust.management',
'django_dust.management.commands',
'... | from distutils.core import setup
import os.path
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f:
long_description = f.read().partition('\n\n\n')[0].partition('\n\n')[2]
setup(
name='django_dust',
version='0.1',
description='Distributed Upload STorage for Django, a file backend '
... | Add version, long description and classifiers. | Add version, long description and classifiers.
| Python | bsd-3-clause | aaugustin/django-resto | from distutils.core import setup
setup(
name='django_dust',
description='Distributed Upload STorage for Django. A file backend that mirrors all incoming media files to several servers',
packages=[
'django_dust',
'django_dust.management',
'django_dust.management.commands',
'... | from distutils.core import setup
import os.path
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f:
long_description = f.read().partition('\n\n\n')[0].partition('\n\n')[2]
setup(
name='django_dust',
version='0.1',
description='Distributed Upload STorage for Django, a file backend '
... | <commit_before>from distutils.core import setup
setup(
name='django_dust',
description='Distributed Upload STorage for Django. A file backend that mirrors all incoming media files to several servers',
packages=[
'django_dust',
'django_dust.management',
'django_dust.management.comma... | from distutils.core import setup
import os.path
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f:
long_description = f.read().partition('\n\n\n')[0].partition('\n\n')[2]
setup(
name='django_dust',
version='0.1',
description='Distributed Upload STorage for Django, a file backend '
... | from distutils.core import setup
setup(
name='django_dust',
description='Distributed Upload STorage for Django. A file backend that mirrors all incoming media files to several servers',
packages=[
'django_dust',
'django_dust.management',
'django_dust.management.commands',
'... | <commit_before>from distutils.core import setup
setup(
name='django_dust',
description='Distributed Upload STorage for Django. A file backend that mirrors all incoming media files to several servers',
packages=[
'django_dust',
'django_dust.management',
'django_dust.management.comma... |
1d5735c111f4f5a0623b693d1531c3e7a0845a08 | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '0.3.10'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin... | from setuptools import setup, find_packages
import os
version = '0.3.11'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin... | Increase to version 0.3.11 due to TG-dev requiring it for ming support | Increase to version 0.3.11 due to TG-dev requiring it for ming support
| Python | mit | TurboGears/tgext.admin,TurboGears/tgext.admin | from setuptools import setup, find_packages
import os
version = '0.3.10'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin... | from setuptools import setup, find_packages
import os
version = '0.3.11'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.3.10'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(na... | from setuptools import setup, find_packages
import os
version = '0.3.11'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin... | from setuptools import setup, find_packages
import os
version = '0.3.10'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.3.10'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(na... |
fa4c6ba6af2f7d936f6504473ab0a2ae50043db4 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Police API',
version='0.1',
description='Python client library for the Police.uk API',
author='Rock Kitchen Harris',
packages=find_packages(),
install_requires=[
'requests==2.0.0',
],
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='police_api',
version='0.1',
description='Python client library for the Police API',
author='Rock Kitchen Harris',
packages=find_packages(),
install_requires=[
'requests==2.0.0',
],
)
| Update package name and description | Update package name and description
| Python | mit | rkhleics/police-api-client-python | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Police API',
version='0.1',
description='Python client library for the Police.uk API',
author='Rock Kitchen Harris',
packages=find_packages(),
install_requires=[
'requests==2.0.0',
],
)
Update package na... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='police_api',
version='0.1',
description='Python client library for the Police API',
author='Rock Kitchen Harris',
packages=find_packages(),
install_requires=[
'requests==2.0.0',
],
)
| <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Police API',
version='0.1',
description='Python client library for the Police.uk API',
author='Rock Kitchen Harris',
packages=find_packages(),
install_requires=[
'requests==2.0.0',
],
)
<c... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='police_api',
version='0.1',
description='Python client library for the Police API',
author='Rock Kitchen Harris',
packages=find_packages(),
install_requires=[
'requests==2.0.0',
],
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Police API',
version='0.1',
description='Python client library for the Police.uk API',
author='Rock Kitchen Harris',
packages=find_packages(),
install_requires=[
'requests==2.0.0',
],
)
Update package na... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Police API',
version='0.1',
description='Python client library for the Police.uk API',
author='Rock Kitchen Harris',
packages=find_packages(),
install_requires=[
'requests==2.0.0',
],
)
<c... |
00900c6559c73bea982cd843ff49c7e0f5f296d3 | setup.py | setup.py | from setuptools import setup
setup(
name='qual',
version='0.1',
description='Calendar stuff',
url='http://github.com/jwg4/qual',
author='Jack Grahl',
author_email='jack.grahl@yahoo.co.uk',
license='Apache License 2.0',
packages=['qual'],
test_suite='nose.collector',
tests_requir... | from setuptools import setup
setup(
name='qual',
version='0.1',
description='Calendar stuff',
url='http://github.com/jwg4/qual',
author='Jack Grahl',
author_email='jack.grahl@yahoo.co.uk',
license='Apache License 2.0',
packages=['qual'],
test_suite='nose.collector',
tests_requir... | Remove this requirement as travis-ci doesnt understand it. | Remove this requirement as travis-ci doesnt understand it.
| Python | apache-2.0 | jwg4/qual,jwg4/calexicon | from setuptools import setup
setup(
name='qual',
version='0.1',
description='Calendar stuff',
url='http://github.com/jwg4/qual',
author='Jack Grahl',
author_email='jack.grahl@yahoo.co.uk',
license='Apache License 2.0',
packages=['qual'],
test_suite='nose.collector',
tests_requir... | from setuptools import setup
setup(
name='qual',
version='0.1',
description='Calendar stuff',
url='http://github.com/jwg4/qual',
author='Jack Grahl',
author_email='jack.grahl@yahoo.co.uk',
license='Apache License 2.0',
packages=['qual'],
test_suite='nose.collector',
tests_requir... | <commit_before>from setuptools import setup
setup(
name='qual',
version='0.1',
description='Calendar stuff',
url='http://github.com/jwg4/qual',
author='Jack Grahl',
author_email='jack.grahl@yahoo.co.uk',
license='Apache License 2.0',
packages=['qual'],
test_suite='nose.collector',
... | from setuptools import setup
setup(
name='qual',
version='0.1',
description='Calendar stuff',
url='http://github.com/jwg4/qual',
author='Jack Grahl',
author_email='jack.grahl@yahoo.co.uk',
license='Apache License 2.0',
packages=['qual'],
test_suite='nose.collector',
tests_requir... | from setuptools import setup
setup(
name='qual',
version='0.1',
description='Calendar stuff',
url='http://github.com/jwg4/qual',
author='Jack Grahl',
author_email='jack.grahl@yahoo.co.uk',
license='Apache License 2.0',
packages=['qual'],
test_suite='nose.collector',
tests_requir... | <commit_before>from setuptools import setup
setup(
name='qual',
version='0.1',
description='Calendar stuff',
url='http://github.com/jwg4/qual',
author='Jack Grahl',
author_email='jack.grahl@yahoo.co.uk',
license='Apache License 2.0',
packages=['qual'],
test_suite='nose.collector',
... |
b7cc6302904e7adbc21edf65a797ded421b35d9a | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='pyseeyou',
version='0.3.0',
description='A Python Parser for the ICU MessageFormat.',
author='Siame Rafiq',
author_email='mail@sia.me.uk',
packages=find_packages(exclude=['tests']),
install_requires=['parsimonious', 'toolz'],
test... | from setuptools import setup, find_packages
setup(
name='pyseeyou',
version='0.3.0',
description='A Python Parser for the ICU MessageFormat.',
author='Siame Rafiq',
author_email='mail@sia.me.uk',
packages=find_packages(exclude=['tests']),
install_requires=['parsimonious', 'toolz', 'future']... | Add future as required lib for pypi install | Add future as required lib for pypi install
| Python | mit | rolepoint/pyseeyou | from setuptools import setup, find_packages
setup(
name='pyseeyou',
version='0.3.0',
description='A Python Parser for the ICU MessageFormat.',
author='Siame Rafiq',
author_email='mail@sia.me.uk',
packages=find_packages(exclude=['tests']),
install_requires=['parsimonious', 'toolz'],
test... | from setuptools import setup, find_packages
setup(
name='pyseeyou',
version='0.3.0',
description='A Python Parser for the ICU MessageFormat.',
author='Siame Rafiq',
author_email='mail@sia.me.uk',
packages=find_packages(exclude=['tests']),
install_requires=['parsimonious', 'toolz', 'future']... | <commit_before>from setuptools import setup, find_packages
setup(
name='pyseeyou',
version='0.3.0',
description='A Python Parser for the ICU MessageFormat.',
author='Siame Rafiq',
author_email='mail@sia.me.uk',
packages=find_packages(exclude=['tests']),
install_requires=['parsimonious', 'to... | from setuptools import setup, find_packages
setup(
name='pyseeyou',
version='0.3.0',
description='A Python Parser for the ICU MessageFormat.',
author='Siame Rafiq',
author_email='mail@sia.me.uk',
packages=find_packages(exclude=['tests']),
install_requires=['parsimonious', 'toolz', 'future']... | from setuptools import setup, find_packages
setup(
name='pyseeyou',
version='0.3.0',
description='A Python Parser for the ICU MessageFormat.',
author='Siame Rafiq',
author_email='mail@sia.me.uk',
packages=find_packages(exclude=['tests']),
install_requires=['parsimonious', 'toolz'],
test... | <commit_before>from setuptools import setup, find_packages
setup(
name='pyseeyou',
version='0.3.0',
description='A Python Parser for the ICU MessageFormat.',
author='Siame Rafiq',
author_email='mail@sia.me.uk',
packages=find_packages(exclude=['tests']),
install_requires=['parsimonious', 'to... |
0b6db0b19e9389b1c5e62ddab5cdab4886364252 | setup.py | setup.py |
from distutils.core import setup
setup(name='slowboy',
version='0.0.1',
packages=['slowboy'],
url='https://github.com/zmarvel/slowboy/',
author='Zack Marvel',
author_email='zpmarvel at gmail dot com',
install_requires=[
"Pillow==4.1.1",
"PySDL2==0.9.5",
]... |
from distutils.core import setup
setup(name='slowboy',
version='0.0.1',
packages=['slowboy'],
url='https://github.com/zmarvel/slowboy/',
author='Zack Marvel',
author_email='zpmarvel at gmail dot com',
install_requires=[
"PySDL2",
],
extras_require={
... | Move Pillow to development deps; add pytest to development deps | Move Pillow to development deps; add pytest to development deps
| Python | mit | zmarvel/slowboy |
from distutils.core import setup
setup(name='slowboy',
version='0.0.1',
packages=['slowboy'],
url='https://github.com/zmarvel/slowboy/',
author='Zack Marvel',
author_email='zpmarvel at gmail dot com',
install_requires=[
"Pillow==4.1.1",
"PySDL2==0.9.5",
]... |
from distutils.core import setup
setup(name='slowboy',
version='0.0.1',
packages=['slowboy'],
url='https://github.com/zmarvel/slowboy/',
author='Zack Marvel',
author_email='zpmarvel at gmail dot com',
install_requires=[
"PySDL2",
],
extras_require={
... | <commit_before>
from distutils.core import setup
setup(name='slowboy',
version='0.0.1',
packages=['slowboy'],
url='https://github.com/zmarvel/slowboy/',
author='Zack Marvel',
author_email='zpmarvel at gmail dot com',
install_requires=[
"Pillow==4.1.1",
"PySDL2==... |
from distutils.core import setup
setup(name='slowboy',
version='0.0.1',
packages=['slowboy'],
url='https://github.com/zmarvel/slowboy/',
author='Zack Marvel',
author_email='zpmarvel at gmail dot com',
install_requires=[
"PySDL2",
],
extras_require={
... |
from distutils.core import setup
setup(name='slowboy',
version='0.0.1',
packages=['slowboy'],
url='https://github.com/zmarvel/slowboy/',
author='Zack Marvel',
author_email='zpmarvel at gmail dot com',
install_requires=[
"Pillow==4.1.1",
"PySDL2==0.9.5",
]... | <commit_before>
from distutils.core import setup
setup(name='slowboy',
version='0.0.1',
packages=['slowboy'],
url='https://github.com/zmarvel/slowboy/',
author='Zack Marvel',
author_email='zpmarvel at gmail dot com',
install_requires=[
"Pillow==4.1.1",
"PySDL2==... |
7df69e47b88988e9797d42e7329c8bfc61e2dbcc | reporter/test/logged_unittest.py | reporter/test/logged_unittest.py | # -*- coding: utf-8 -*-
"""
Provides a custom unit test base class which will log to sentry.
:copyright: (c) 2010 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import unittest
import logging
from reporter import setup_logger
setup_logger()
LOGGER = logging.getLogger('osm-reporter')
cl... | # -*- coding: utf-8 -*-
"""
Provides a custom unit test base class which will log to sentry.
:copyright: (c) 2010 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import unittest
import logging
from reporter import setup_logger
setup_logger()
LOGGER = logging.getLogger('osm-reporter')
cl... | Fix for calling super during exception logging | Fix for calling super during exception logging
| Python | bsd-3-clause | meomancer/field-campaigner,meomancer/field-campaigner,meomancer/field-campaigner | # -*- coding: utf-8 -*-
"""
Provides a custom unit test base class which will log to sentry.
:copyright: (c) 2010 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import unittest
import logging
from reporter import setup_logger
setup_logger()
LOGGER = logging.getLogger('osm-reporter')
cl... | # -*- coding: utf-8 -*-
"""
Provides a custom unit test base class which will log to sentry.
:copyright: (c) 2010 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import unittest
import logging
from reporter import setup_logger
setup_logger()
LOGGER = logging.getLogger('osm-reporter')
cl... | <commit_before># -*- coding: utf-8 -*-
"""
Provides a custom unit test base class which will log to sentry.
:copyright: (c) 2010 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import unittest
import logging
from reporter import setup_logger
setup_logger()
LOGGER = logging.getLogger('osm-... | # -*- coding: utf-8 -*-
"""
Provides a custom unit test base class which will log to sentry.
:copyright: (c) 2010 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import unittest
import logging
from reporter import setup_logger
setup_logger()
LOGGER = logging.getLogger('osm-reporter')
cl... | # -*- coding: utf-8 -*-
"""
Provides a custom unit test base class which will log to sentry.
:copyright: (c) 2010 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import unittest
import logging
from reporter import setup_logger
setup_logger()
LOGGER = logging.getLogger('osm-reporter')
cl... | <commit_before># -*- coding: utf-8 -*-
"""
Provides a custom unit test base class which will log to sentry.
:copyright: (c) 2010 by Tim Sutton
:license: GPLv3, see LICENSE for more details.
"""
import unittest
import logging
from reporter import setup_logger
setup_logger()
LOGGER = logging.getLogger('osm-... |
8e980445723f3f185eb88022adbd75f1a01aaef4 | fabfile/ubuntu.py | fabfile/ubuntu.py | from StringIO import StringIO
from fabric.api import local, task, run, env, sudo, get
from fabric.tasks import execute
from fabric.context_managers import lcd, hide
@task
def apt_update():
with hide('stdout'):
sudo('apt-get update')
sudo('apt-get -y upgrade') | from StringIO import StringIO
from fabric.api import local, task, run, env, sudo, get
from fabric.operations import reboot
from fabric.tasks import execute
from fabric.context_managers import lcd, hide
@task
def apt_update():
with hide('stdout'):
sudo('apt-get update')
sudo('DEBIAN_FRONTEND=nonint... | Add apt-get upgrade without grub-install | Add apt-get upgrade without grub-install
| Python | mit | maruina/kanedias,maruina/kanedias,maruina/kanedias,maruina/kanedias | from StringIO import StringIO
from fabric.api import local, task, run, env, sudo, get
from fabric.tasks import execute
from fabric.context_managers import lcd, hide
@task
def apt_update():
with hide('stdout'):
sudo('apt-get update')
sudo('apt-get -y upgrade')Add apt-get upgrade without grub-instal... | from StringIO import StringIO
from fabric.api import local, task, run, env, sudo, get
from fabric.operations import reboot
from fabric.tasks import execute
from fabric.context_managers import lcd, hide
@task
def apt_update():
with hide('stdout'):
sudo('apt-get update')
sudo('DEBIAN_FRONTEND=nonint... | <commit_before>from StringIO import StringIO
from fabric.api import local, task, run, env, sudo, get
from fabric.tasks import execute
from fabric.context_managers import lcd, hide
@task
def apt_update():
with hide('stdout'):
sudo('apt-get update')
sudo('apt-get -y upgrade')<commit_msg>Add apt-get ... | from StringIO import StringIO
from fabric.api import local, task, run, env, sudo, get
from fabric.operations import reboot
from fabric.tasks import execute
from fabric.context_managers import lcd, hide
@task
def apt_update():
with hide('stdout'):
sudo('apt-get update')
sudo('DEBIAN_FRONTEND=nonint... | from StringIO import StringIO
from fabric.api import local, task, run, env, sudo, get
from fabric.tasks import execute
from fabric.context_managers import lcd, hide
@task
def apt_update():
with hide('stdout'):
sudo('apt-get update')
sudo('apt-get -y upgrade')Add apt-get upgrade without grub-instal... | <commit_before>from StringIO import StringIO
from fabric.api import local, task, run, env, sudo, get
from fabric.tasks import execute
from fabric.context_managers import lcd, hide
@task
def apt_update():
with hide('stdout'):
sudo('apt-get update')
sudo('apt-get -y upgrade')<commit_msg>Add apt-get ... |
a7c9231829e676682d7719fb94f2792c812b9b99 | rest_api/tasks.py | rest_api/tasks.py | from celery.task import task
from celery.task.sets import subtask
from rest_api.models import Url
from rest_api.backend import Request
#TODO: read long_url from memcache
#TODO: ensure with retry that if we made a resquest we have to save the result
#TODO: should we ensure that user are logged and have permission her... | from celery.task import task
from celery.task.sets import subtask
from rest_api.models import Url
from rest_api.backend import Request
#TODO: read long_url from memcache
#TODO: ensure with retry that if we made a resquest we have to save the result
#TODO: should we ensure that user are logged and have permission her... | Use only on task to have control and it is finished | Use only on task to have control and it is finished
| Python | bsd-2-clause | victorpoluceno/shortener_worker | from celery.task import task
from celery.task.sets import subtask
from rest_api.models import Url
from rest_api.backend import Request
#TODO: read long_url from memcache
#TODO: ensure with retry that if we made a resquest we have to save the result
#TODO: should we ensure that user are logged and have permission her... | from celery.task import task
from celery.task.sets import subtask
from rest_api.models import Url
from rest_api.backend import Request
#TODO: read long_url from memcache
#TODO: ensure with retry that if we made a resquest we have to save the result
#TODO: should we ensure that user are logged and have permission her... | <commit_before>from celery.task import task
from celery.task.sets import subtask
from rest_api.models import Url
from rest_api.backend import Request
#TODO: read long_url from memcache
#TODO: ensure with retry that if we made a resquest we have to save the result
#TODO: should we ensure that user are logged and have... | from celery.task import task
from celery.task.sets import subtask
from rest_api.models import Url
from rest_api.backend import Request
#TODO: read long_url from memcache
#TODO: ensure with retry that if we made a resquest we have to save the result
#TODO: should we ensure that user are logged and have permission her... | from celery.task import task
from celery.task.sets import subtask
from rest_api.models import Url
from rest_api.backend import Request
#TODO: read long_url from memcache
#TODO: ensure with retry that if we made a resquest we have to save the result
#TODO: should we ensure that user are logged and have permission her... | <commit_before>from celery.task import task
from celery.task.sets import subtask
from rest_api.models import Url
from rest_api.backend import Request
#TODO: read long_url from memcache
#TODO: ensure with retry that if we made a resquest we have to save the result
#TODO: should we ensure that user are logged and have... |
fd98983e0880b6d2cf81a72da7d65082487359c1 | lib/rapidsms/contrib/messagelog/app.py | lib/rapidsms/contrib/messagelog/app.py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import datetime
from rapidsms.apps.base import AppBase
from .models import Message
class App(AppBase):
def _who(self, msg):
to_return = {}
if msg.contact: to_return["contact"] = msg.contact
if msg.connection: to_return["connection... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import datetime
from rapidsms.apps.base import AppBase
from .models import Message
try:
from django.utils.timezone import now as datetime_now
except ImportError:
datetime_now = datetime.datetime.now
class App(AppBase):
def _who(self, msg):
to_... | Use new timezone-aware datetime.now with Django versions that support it | Use new timezone-aware datetime.now with Django versions that support it
| Python | bsd-3-clause | lsgunth/rapidsms,peterayeni/rapidsms,caktus/rapidsms,caktus/rapidsms,lsgunth/rapidsms,lsgunth/rapidsms,catalpainternational/rapidsms,ehealthafrica-ci/rapidsms,caktus/rapidsms,peterayeni/rapidsms,catalpainternational/rapidsms,catalpainternational/rapidsms,eHealthAfrica/rapidsms,ehealthafrica-ci/rapidsms,ehealthafrica-ci... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import datetime
from rapidsms.apps.base import AppBase
from .models import Message
class App(AppBase):
def _who(self, msg):
to_return = {}
if msg.contact: to_return["contact"] = msg.contact
if msg.connection: to_return["connection... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import datetime
from rapidsms.apps.base import AppBase
from .models import Message
try:
from django.utils.timezone import now as datetime_now
except ImportError:
datetime_now = datetime.datetime.now
class App(AppBase):
def _who(self, msg):
to_... | <commit_before>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import datetime
from rapidsms.apps.base import AppBase
from .models import Message
class App(AppBase):
def _who(self, msg):
to_return = {}
if msg.contact: to_return["contact"] = msg.contact
if msg.connection: to_ret... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import datetime
from rapidsms.apps.base import AppBase
from .models import Message
try:
from django.utils.timezone import now as datetime_now
except ImportError:
datetime_now = datetime.datetime.now
class App(AppBase):
def _who(self, msg):
to_... | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import datetime
from rapidsms.apps.base import AppBase
from .models import Message
class App(AppBase):
def _who(self, msg):
to_return = {}
if msg.contact: to_return["contact"] = msg.contact
if msg.connection: to_return["connection... | <commit_before>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import datetime
from rapidsms.apps.base import AppBase
from .models import Message
class App(AppBase):
def _who(self, msg):
to_return = {}
if msg.contact: to_return["contact"] = msg.contact
if msg.connection: to_ret... |
04c82d00517428bc60e7c4204f01e55452c2c8f2 | oscar_mws/receivers.py | oscar_mws/receivers.py | import logging
from django.utils.translation import ugettext_lazy as _
from oscar_mws.fulfillment import gateway
logger = logging.getLogger('oscar_mws')
def submit_order_to_mws(order, user, **kwargs):
if kwargs.get('raw', False):
return
from oscar_mws.fulfillment.creator import FulfillmentOrderCre... | import logging
from django.utils.translation import ugettext_lazy as _
logger = logging.getLogger('oscar_mws')
def submit_order_to_mws(order, user, **kwargs):
if kwargs.get('raw', False):
return
# these modules have to be imported here because they rely on loading
# models from oscar_mws using ... | Fix issue with importing models in fulfillment gateway | Fix issue with importing models in fulfillment gateway
| Python | bsd-3-clause | django-oscar/django-oscar-mws,django-oscar/django-oscar-mws | import logging
from django.utils.translation import ugettext_lazy as _
from oscar_mws.fulfillment import gateway
logger = logging.getLogger('oscar_mws')
def submit_order_to_mws(order, user, **kwargs):
if kwargs.get('raw', False):
return
from oscar_mws.fulfillment.creator import FulfillmentOrderCre... | import logging
from django.utils.translation import ugettext_lazy as _
logger = logging.getLogger('oscar_mws')
def submit_order_to_mws(order, user, **kwargs):
if kwargs.get('raw', False):
return
# these modules have to be imported here because they rely on loading
# models from oscar_mws using ... | <commit_before>import logging
from django.utils.translation import ugettext_lazy as _
from oscar_mws.fulfillment import gateway
logger = logging.getLogger('oscar_mws')
def submit_order_to_mws(order, user, **kwargs):
if kwargs.get('raw', False):
return
from oscar_mws.fulfillment.creator import Fulf... | import logging
from django.utils.translation import ugettext_lazy as _
logger = logging.getLogger('oscar_mws')
def submit_order_to_mws(order, user, **kwargs):
if kwargs.get('raw', False):
return
# these modules have to be imported here because they rely on loading
# models from oscar_mws using ... | import logging
from django.utils.translation import ugettext_lazy as _
from oscar_mws.fulfillment import gateway
logger = logging.getLogger('oscar_mws')
def submit_order_to_mws(order, user, **kwargs):
if kwargs.get('raw', False):
return
from oscar_mws.fulfillment.creator import FulfillmentOrderCre... | <commit_before>import logging
from django.utils.translation import ugettext_lazy as _
from oscar_mws.fulfillment import gateway
logger = logging.getLogger('oscar_mws')
def submit_order_to_mws(order, user, **kwargs):
if kwargs.get('raw', False):
return
from oscar_mws.fulfillment.creator import Fulf... |
44766469827fb3a0966b1370022834da87d8b3e8 | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup, find_packages
setup(
name="sandsnake",
license='Apache License 2.0',
version="0.1.0",
description="Manage activity indexes for objects.",
long_description=open('README.rst', 'r').read(),
author="Numan Sachwani",
author_email="numan856@gmail.c... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(
name="sandsnake",
license='Apache License 2.0',
version="0.1.0",
description="Sorted indexes backed by redis.",
long_description=open('README.rst', 'r').read(),
author="Numan Sachwani",
author_email="numan856@gmail.com",
... | Update description to describe a more general case | Update description to describe a more general case
| Python | apache-2.0 | numan/sandsnake | #!/usr/bin/python
from setuptools import setup, find_packages
setup(
name="sandsnake",
license='Apache License 2.0',
version="0.1.0",
description="Manage activity indexes for objects.",
long_description=open('README.rst', 'r').read(),
author="Numan Sachwani",
author_email="numan856@gmail.c... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(
name="sandsnake",
license='Apache License 2.0',
version="0.1.0",
description="Sorted indexes backed by redis.",
long_description=open('README.rst', 'r').read(),
author="Numan Sachwani",
author_email="numan856@gmail.com",
... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
setup(
name="sandsnake",
license='Apache License 2.0',
version="0.1.0",
description="Manage activity indexes for objects.",
long_description=open('README.rst', 'r').read(),
author="Numan Sachwani",
author_email="n... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(
name="sandsnake",
license='Apache License 2.0',
version="0.1.0",
description="Sorted indexes backed by redis.",
long_description=open('README.rst', 'r').read(),
author="Numan Sachwani",
author_email="numan856@gmail.com",
... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(
name="sandsnake",
license='Apache License 2.0',
version="0.1.0",
description="Manage activity indexes for objects.",
long_description=open('README.rst', 'r').read(),
author="Numan Sachwani",
author_email="numan856@gmail.c... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
setup(
name="sandsnake",
license='Apache License 2.0',
version="0.1.0",
description="Manage activity indexes for objects.",
long_description=open('README.rst', 'r').read(),
author="Numan Sachwani",
author_email="n... |
be447d2f3f9cfd059ccd30f2319fe6b54403eb78 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-pedantic-http-methods',
description="Raises an exception when attempting to perform side effects "
"in GET and HEAD HTTP methods.",
version='1.0.2',
url='https://chris-lamb.co.uk/projects/django-pedantic-http... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-pedantic-http-methods',
description="Raises an exception when attempting to perform side effects "
"in GET and HEAD HTTP methods.",
version='1.0.2',
url='https://chris-lamb.co.uk/projects/django-pedantic-http... | Update Django requirement to latest LTS | Update Django requirement to latest LTS
| Python | bsd-3-clause | lamby/django-pedantic-http-methods | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-pedantic-http-methods',
description="Raises an exception when attempting to perform side effects "
"in GET and HEAD HTTP methods.",
version='1.0.2',
url='https://chris-lamb.co.uk/projects/django-pedantic-http... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-pedantic-http-methods',
description="Raises an exception when attempting to perform side effects "
"in GET and HEAD HTTP methods.",
version='1.0.2',
url='https://chris-lamb.co.uk/projects/django-pedantic-http... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-pedantic-http-methods',
description="Raises an exception when attempting to perform side effects "
"in GET and HEAD HTTP methods.",
version='1.0.2',
url='https://chris-lamb.co.uk/projects/djang... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-pedantic-http-methods',
description="Raises an exception when attempting to perform side effects "
"in GET and HEAD HTTP methods.",
version='1.0.2',
url='https://chris-lamb.co.uk/projects/django-pedantic-http... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-pedantic-http-methods',
description="Raises an exception when attempting to perform side effects "
"in GET and HEAD HTTP methods.",
version='1.0.2',
url='https://chris-lamb.co.uk/projects/django-pedantic-http... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-pedantic-http-methods',
description="Raises an exception when attempting to perform side effects "
"in GET and HEAD HTTP methods.",
version='1.0.2',
url='https://chris-lamb.co.uk/projects/djang... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.