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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64a653b6bd6c9aae2492f3ee838bda1fafe639d6 | upnpy/utils.py | upnpy/utils.py | # -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Defines utility functions used by UPnPy.
"""
def camelcase_to_underscore(text):
"""
Convert a camelCasedString to one separated_by_underscores. Treats
neighbouring capitals as acronyms and doesn't separated them, e.g. URL does
not become u_r_l. That would... | # -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Defines utility functions used by UPnPy.
"""
def camelcase_to_underscore(text):
"""
Convert a camelCasedString to one separated_by_underscores. Treats
neighbouring capitals as acronyms and doesn't separated them, e.g. URL does
not become u_r_l. That would... | Correct an AttributeError and a potential IndexErr | Correct an AttributeError and a potential IndexErr
| Python | mit | WenhaoYu/upnpy,Lukasa/upnpy | # -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Defines utility functions used by UPnPy.
"""
def camelcase_to_underscore(text):
"""
Convert a camelCasedString to one separated_by_underscores. Treats
neighbouring capitals as acronyms and doesn't separated them, e.g. URL does
not become u_r_l. That would... | # -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Defines utility functions used by UPnPy.
"""
def camelcase_to_underscore(text):
"""
Convert a camelCasedString to one separated_by_underscores. Treats
neighbouring capitals as acronyms and doesn't separated them, e.g. URL does
not become u_r_l. That would... | <commit_before># -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Defines utility functions used by UPnPy.
"""
def camelcase_to_underscore(text):
"""
Convert a camelCasedString to one separated_by_underscores. Treats
neighbouring capitals as acronyms and doesn't separated them, e.g. URL does
not become u_... | # -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Defines utility functions used by UPnPy.
"""
def camelcase_to_underscore(text):
"""
Convert a camelCasedString to one separated_by_underscores. Treats
neighbouring capitals as acronyms and doesn't separated them, e.g. URL does
not become u_r_l. That would... | # -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Defines utility functions used by UPnPy.
"""
def camelcase_to_underscore(text):
"""
Convert a camelCasedString to one separated_by_underscores. Treats
neighbouring capitals as acronyms and doesn't separated them, e.g. URL does
not become u_r_l. That would... | <commit_before># -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~
Defines utility functions used by UPnPy.
"""
def camelcase_to_underscore(text):
"""
Convert a camelCasedString to one separated_by_underscores. Treats
neighbouring capitals as acronyms and doesn't separated them, e.g. URL does
not become u_... |
705aab2107793d1067d571b71bc140c320d69aae | bot/api/api.py | bot/api/api.py | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | Change yield from to return to be compatible with python 3.2 | Change yield from to return to be compatible with python 3.2
| Python | agpl-3.0 | alvarogzp/telegram-bot,alvarogzp/telegram-bot | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | <commit_before>from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_mes... | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | <commit_before>from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_mes... |
41c49a44c5f1bc9747b22b6d1f1088f1354a2cd5 | nes/cpu/decoder.py | nes/cpu/decoder.py | from sqlite3 import Connection, Row
class Decoder:
def __init__(self):
self.conn = Connection('nes.sqlite')
self.conn.row_factory = Row
def __del__(self):
self.conn.close()
def decode(self, opcode):
c = self.conn.cursor()
c.execute('select * from instruction where... | from sqlite3 import Connection, Row
class Decoder:
def __init__(self):
self.conn = Connection('nes.sqlite')
self.conn.row_factory = Row
def __del__(self):
self.conn.close()
def decode(self, opcode):
c = self.conn.cursor()
c.execute('select * from instruction where... | Raise an exception when it's an undocumented opcode. | Raise an exception when it's an undocumented opcode.
| Python | mit | Hexadorsimal/pynes | from sqlite3 import Connection, Row
class Decoder:
def __init__(self):
self.conn = Connection('nes.sqlite')
self.conn.row_factory = Row
def __del__(self):
self.conn.close()
def decode(self, opcode):
c = self.conn.cursor()
c.execute('select * from instruction where... | from sqlite3 import Connection, Row
class Decoder:
def __init__(self):
self.conn = Connection('nes.sqlite')
self.conn.row_factory = Row
def __del__(self):
self.conn.close()
def decode(self, opcode):
c = self.conn.cursor()
c.execute('select * from instruction where... | <commit_before>from sqlite3 import Connection, Row
class Decoder:
def __init__(self):
self.conn = Connection('nes.sqlite')
self.conn.row_factory = Row
def __del__(self):
self.conn.close()
def decode(self, opcode):
c = self.conn.cursor()
c.execute('select * from in... | from sqlite3 import Connection, Row
class Decoder:
def __init__(self):
self.conn = Connection('nes.sqlite')
self.conn.row_factory = Row
def __del__(self):
self.conn.close()
def decode(self, opcode):
c = self.conn.cursor()
c.execute('select * from instruction where... | from sqlite3 import Connection, Row
class Decoder:
def __init__(self):
self.conn = Connection('nes.sqlite')
self.conn.row_factory = Row
def __del__(self):
self.conn.close()
def decode(self, opcode):
c = self.conn.cursor()
c.execute('select * from instruction where... | <commit_before>from sqlite3 import Connection, Row
class Decoder:
def __init__(self):
self.conn = Connection('nes.sqlite')
self.conn.row_factory = Row
def __del__(self):
self.conn.close()
def decode(self, opcode):
c = self.conn.cursor()
c.execute('select * from in... |
6829e9b4cf87b8d8d8b6e5a1c3aaf881f66393cf | healthcheck/contrib/django/status_endpoint/views.py | healthcheck/contrib/django/status_endpoint/views.py | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | Remove duplicated JSON encoding for error messages | Remove duplicated JSON encoding for error messages
| Python | mit | yola/healthcheck | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | <commit_before>import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | <commit_before>import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(... |
df6f82dc8d6f429ec57dffb60e336253a062769b | angus/client/version.py | angus/client/version.py | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | Prepare a second release candidate for 0.0.15 | Prepare a second release candidate for 0.0.15
| Python | apache-2.0 | angus-ai/angus-sdk-python | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | <commit_before># -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Vers... | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | <commit_before># -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Vers... |
089e8c74106f3a19b229d085d73c932df6fe4e7d | application.py | application.py | from canis import siriusxm, spotify, oauth
def main():
try:
current = siriusxm.get_currently_playing('siriusxmu')
spotify_id = spotify.id_for_song(current)
print(current, spotify_id)
except Exception, e:
print "Error {}".format(e)
if __name__ == "__main__":
oauth.app.run(de... | from canis import siriusxm, spotify, oauth
def main():
try:
current = siriusxm.get_currently_playing('siriusxmu')
spotify_id = spotify.id_for_song(current)
print(current, spotify_id)
except Exception, e:
print "Error {}".format(e)
if __name__ == "__main__":
oauth.app.run()
... | Remove debug mode on flask | Remove debug mode on flask
| Python | mit | maxgoedjen/canis | from canis import siriusxm, spotify, oauth
def main():
try:
current = siriusxm.get_currently_playing('siriusxmu')
spotify_id = spotify.id_for_song(current)
print(current, spotify_id)
except Exception, e:
print "Error {}".format(e)
if __name__ == "__main__":
oauth.app.run(de... | from canis import siriusxm, spotify, oauth
def main():
try:
current = siriusxm.get_currently_playing('siriusxmu')
spotify_id = spotify.id_for_song(current)
print(current, spotify_id)
except Exception, e:
print "Error {}".format(e)
if __name__ == "__main__":
oauth.app.run()
... | <commit_before>from canis import siriusxm, spotify, oauth
def main():
try:
current = siriusxm.get_currently_playing('siriusxmu')
spotify_id = spotify.id_for_song(current)
print(current, spotify_id)
except Exception, e:
print "Error {}".format(e)
if __name__ == "__main__":
o... | from canis import siriusxm, spotify, oauth
def main():
try:
current = siriusxm.get_currently_playing('siriusxmu')
spotify_id = spotify.id_for_song(current)
print(current, spotify_id)
except Exception, e:
print "Error {}".format(e)
if __name__ == "__main__":
oauth.app.run()
... | from canis import siriusxm, spotify, oauth
def main():
try:
current = siriusxm.get_currently_playing('siriusxmu')
spotify_id = spotify.id_for_song(current)
print(current, spotify_id)
except Exception, e:
print "Error {}".format(e)
if __name__ == "__main__":
oauth.app.run(de... | <commit_before>from canis import siriusxm, spotify, oauth
def main():
try:
current = siriusxm.get_currently_playing('siriusxmu')
spotify_id = spotify.id_for_song(current)
print(current, spotify_id)
except Exception, e:
print "Error {}".format(e)
if __name__ == "__main__":
o... |
697833caade1323ddb9a0b4e51031f1d494262cd | 201705/migonzalvar/biggest_set.py | 201705/migonzalvar/biggest_set.py | #!/usr/bin/env python3
from contextlib import contextmanager
import time
from main import has_subset_sum_zero
class Duration:
def __init__(self, elapsed=None):
self.elapsed = elapsed
@contextmanager
def less_than(secs):
duration = Duration()
tic = time.time()
yield duration
elapsed = ti... | #!/usr/bin/env python3
from contextlib import contextmanager
import time
from main import has_subset_sum_zero
class Duration:
def __init__(self, elapsed=None):
self.elapsed = elapsed
@contextmanager
def less_than(secs):
duration = Duration()
tic = time.time()
yield duration
elapsed = ti... | Use several strategies for performance | Use several strategies for performance
| Python | bsd-3-clause | VigoTech/reto,VigoTech/reto,VigoTech/reto,VigoTech/reto,VigoTech/reto,VigoTech/reto,VigoTech/reto,vigojug/reto,vigojug/reto,vigojug/reto,vigojug/reto,VigoTech/reto,vigojug/reto,vigojug/reto,vigojug/reto,vigojug/reto,VigoTech/reto,VigoTech/reto,vigojug/reto,vigojug/reto | #!/usr/bin/env python3
from contextlib import contextmanager
import time
from main import has_subset_sum_zero
class Duration:
def __init__(self, elapsed=None):
self.elapsed = elapsed
@contextmanager
def less_than(secs):
duration = Duration()
tic = time.time()
yield duration
elapsed = ti... | #!/usr/bin/env python3
from contextlib import contextmanager
import time
from main import has_subset_sum_zero
class Duration:
def __init__(self, elapsed=None):
self.elapsed = elapsed
@contextmanager
def less_than(secs):
duration = Duration()
tic = time.time()
yield duration
elapsed = ti... | <commit_before>#!/usr/bin/env python3
from contextlib import contextmanager
import time
from main import has_subset_sum_zero
class Duration:
def __init__(self, elapsed=None):
self.elapsed = elapsed
@contextmanager
def less_than(secs):
duration = Duration()
tic = time.time()
yield duration
... | #!/usr/bin/env python3
from contextlib import contextmanager
import time
from main import has_subset_sum_zero
class Duration:
def __init__(self, elapsed=None):
self.elapsed = elapsed
@contextmanager
def less_than(secs):
duration = Duration()
tic = time.time()
yield duration
elapsed = ti... | #!/usr/bin/env python3
from contextlib import contextmanager
import time
from main import has_subset_sum_zero
class Duration:
def __init__(self, elapsed=None):
self.elapsed = elapsed
@contextmanager
def less_than(secs):
duration = Duration()
tic = time.time()
yield duration
elapsed = ti... | <commit_before>#!/usr/bin/env python3
from contextlib import contextmanager
import time
from main import has_subset_sum_zero
class Duration:
def __init__(self, elapsed=None):
self.elapsed = elapsed
@contextmanager
def less_than(secs):
duration = Duration()
tic = time.time()
yield duration
... |
0c785e349c2000bbf3b22671071a66eaca4d82d0 | astropy/io/votable/__init__.py | astropy/io/votable/__init__.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This package reads and writes data formats used by the Virtual
Observatory (VO) initiative, particularly the VOTable XML format.
"""
from .table import (
parse, parse_single_table, validate, from_table, is_votable)
from .exceptions import (
VO... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This package reads and writes data formats used by the Virtual
Observatory (VO) initiative, particularly the VOTable XML format.
"""
from .table import (
parse, parse_single_table, validate, from_table, is_votable, writeto)
from .exceptions import... | Put astropy.io.votable.writeto in the top-level namespace | Put astropy.io.votable.writeto in the top-level namespace
| Python | bsd-3-clause | DougBurke/astropy,AustereCuriosity/astropy,funbaker/astropy,joergdietrich/astropy,StuartLittlefair/astropy,larrybradley/astropy,tbabej/astropy,mhvk/astropy,pllim/astropy,stargaser/astropy,lpsinger/astropy,joergdietrich/astropy,lpsinger/astropy,AustereCuriosity/astropy,kelle/astropy,saimn/astropy,DougBurke/astropy,bsipo... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This package reads and writes data formats used by the Virtual
Observatory (VO) initiative, particularly the VOTable XML format.
"""
from .table import (
parse, parse_single_table, validate, from_table, is_votable)
from .exceptions import (
VO... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This package reads and writes data formats used by the Virtual
Observatory (VO) initiative, particularly the VOTable XML format.
"""
from .table import (
parse, parse_single_table, validate, from_table, is_votable, writeto)
from .exceptions import... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This package reads and writes data formats used by the Virtual
Observatory (VO) initiative, particularly the VOTable XML format.
"""
from .table import (
parse, parse_single_table, validate, from_table, is_votable)
from .exceptions ... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This package reads and writes data formats used by the Virtual
Observatory (VO) initiative, particularly the VOTable XML format.
"""
from .table import (
parse, parse_single_table, validate, from_table, is_votable, writeto)
from .exceptions import... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This package reads and writes data formats used by the Virtual
Observatory (VO) initiative, particularly the VOTable XML format.
"""
from .table import (
parse, parse_single_table, validate, from_table, is_votable)
from .exceptions import (
VO... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This package reads and writes data formats used by the Virtual
Observatory (VO) initiative, particularly the VOTable XML format.
"""
from .table import (
parse, parse_single_table, validate, from_table, is_votable)
from .exceptions ... |
fb1f03c7d46d9274f144a767830cf9c81078e8c8 | kovfig.py | kovfig.py | #! /usr/bin/env python
# coding:utf-8
from os import path
# the number of loop for train IBM Model 2
loop_count = 10
phrase_model_file = path.join(
path.abspath(path.dirname(__file__)),
"phrase.model"
)
bigram_model_file = path.join(
path.abspath(path.dirname(__file__)),
"bigram.model"
)
if __name__... | #! /usr/bin/env python
# coding:utf-8
from os import path
# the number of loop for train IBM Model 2
LOOP_COUNT = 10
PHRASE_MODEL_FILE = path.join(
path.abspath(path.dirname(__file__)),
"phrase.model"
)
BIGRAM_MODEL_FILE = path.join(
path.abspath(path.dirname(__file__)),
"bigram.model"
)
if __name__... | Use upper case variable for global vars | Use upper case variable for global vars
| Python | mit | kenkov/kovlive | #! /usr/bin/env python
# coding:utf-8
from os import path
# the number of loop for train IBM Model 2
loop_count = 10
phrase_model_file = path.join(
path.abspath(path.dirname(__file__)),
"phrase.model"
)
bigram_model_file = path.join(
path.abspath(path.dirname(__file__)),
"bigram.model"
)
if __name__... | #! /usr/bin/env python
# coding:utf-8
from os import path
# the number of loop for train IBM Model 2
LOOP_COUNT = 10
PHRASE_MODEL_FILE = path.join(
path.abspath(path.dirname(__file__)),
"phrase.model"
)
BIGRAM_MODEL_FILE = path.join(
path.abspath(path.dirname(__file__)),
"bigram.model"
)
if __name__... | <commit_before>#! /usr/bin/env python
# coding:utf-8
from os import path
# the number of loop for train IBM Model 2
loop_count = 10
phrase_model_file = path.join(
path.abspath(path.dirname(__file__)),
"phrase.model"
)
bigram_model_file = path.join(
path.abspath(path.dirname(__file__)),
"bigram.model"... | #! /usr/bin/env python
# coding:utf-8
from os import path
# the number of loop for train IBM Model 2
LOOP_COUNT = 10
PHRASE_MODEL_FILE = path.join(
path.abspath(path.dirname(__file__)),
"phrase.model"
)
BIGRAM_MODEL_FILE = path.join(
path.abspath(path.dirname(__file__)),
"bigram.model"
)
if __name__... | #! /usr/bin/env python
# coding:utf-8
from os import path
# the number of loop for train IBM Model 2
loop_count = 10
phrase_model_file = path.join(
path.abspath(path.dirname(__file__)),
"phrase.model"
)
bigram_model_file = path.join(
path.abspath(path.dirname(__file__)),
"bigram.model"
)
if __name__... | <commit_before>#! /usr/bin/env python
# coding:utf-8
from os import path
# the number of loop for train IBM Model 2
loop_count = 10
phrase_model_file = path.join(
path.abspath(path.dirname(__file__)),
"phrase.model"
)
bigram_model_file = path.join(
path.abspath(path.dirname(__file__)),
"bigram.model"... |
b9b9382a62b00aa00255fbc9271ef5ec2db8c295 | fabfile.py | fabfile.py | from fabric.api import (
cd,
env,
put,
run,
sudo,
task
)
PRODUCTION_IP = '54.154.235.243'
PROJECT_DIRECTORY = '/home/ubuntu/ztm/'
COMPOSE_FILE = 'compose-production.yml'
@task
def production():
env.run = sudo
env.hosts = [
'ubuntu@' + PRODUCTION_IP + ':22',
]
def create... | from datetime import datetime
from fabric.api import (
cd,
env,
put,
run,
sudo,
task
)
PRODUCTION_IP = '54.154.235.243'
PROJECT_DIRECTORY = '/home/ubuntu/ztm/'
BACKUP_DIRECTORY = '/home/ubuntu/backup/'
COMPOSE_FILE = 'compose-production.yml'
@task
def production():
env.run = sudo
en... | Add S3 command for performing backup data | Add S3 command for performing backup data
| Python | mit | prontotools/zendesk-tickets-machine,prontotools/zendesk-tickets-machine,prontotools/zendesk-tickets-machine,prontotools/zendesk-tickets-machine | from fabric.api import (
cd,
env,
put,
run,
sudo,
task
)
PRODUCTION_IP = '54.154.235.243'
PROJECT_DIRECTORY = '/home/ubuntu/ztm/'
COMPOSE_FILE = 'compose-production.yml'
@task
def production():
env.run = sudo
env.hosts = [
'ubuntu@' + PRODUCTION_IP + ':22',
]
def create... | from datetime import datetime
from fabric.api import (
cd,
env,
put,
run,
sudo,
task
)
PRODUCTION_IP = '54.154.235.243'
PROJECT_DIRECTORY = '/home/ubuntu/ztm/'
BACKUP_DIRECTORY = '/home/ubuntu/backup/'
COMPOSE_FILE = 'compose-production.yml'
@task
def production():
env.run = sudo
en... | <commit_before>from fabric.api import (
cd,
env,
put,
run,
sudo,
task
)
PRODUCTION_IP = '54.154.235.243'
PROJECT_DIRECTORY = '/home/ubuntu/ztm/'
COMPOSE_FILE = 'compose-production.yml'
@task
def production():
env.run = sudo
env.hosts = [
'ubuntu@' + PRODUCTION_IP + ':22',
... | from datetime import datetime
from fabric.api import (
cd,
env,
put,
run,
sudo,
task
)
PRODUCTION_IP = '54.154.235.243'
PROJECT_DIRECTORY = '/home/ubuntu/ztm/'
BACKUP_DIRECTORY = '/home/ubuntu/backup/'
COMPOSE_FILE = 'compose-production.yml'
@task
def production():
env.run = sudo
en... | from fabric.api import (
cd,
env,
put,
run,
sudo,
task
)
PRODUCTION_IP = '54.154.235.243'
PROJECT_DIRECTORY = '/home/ubuntu/ztm/'
COMPOSE_FILE = 'compose-production.yml'
@task
def production():
env.run = sudo
env.hosts = [
'ubuntu@' + PRODUCTION_IP + ':22',
]
def create... | <commit_before>from fabric.api import (
cd,
env,
put,
run,
sudo,
task
)
PRODUCTION_IP = '54.154.235.243'
PROJECT_DIRECTORY = '/home/ubuntu/ztm/'
COMPOSE_FILE = 'compose-production.yml'
@task
def production():
env.run = sudo
env.hosts = [
'ubuntu@' + PRODUCTION_IP + ':22',
... |
873b82225d287dcca9b9bc0e0c3746233d15d947 | utilities.py | utilities.py | """
Various utilities
"""
import pprint
def load_state(path):
"""
Load an n-puzzle state from a file into an array and return it.
"""
result = []
with open(path) as f:
for line in f:
result.append(line.split())
return result
def print_state(state):
"""
Prittily re... | """
Various utilities
"""
import pprint
def load_state(path):
"""
Load an n-puzzle state from a file into an array and return it.
"""
result = []
with open(path) as f:
for line in f:
result.append([])
for square in line.split():
try:
... | Add function to check for goal state. | Add function to check for goal state.
| Python | mit | bandrebandrebandre/npuzz | """
Various utilities
"""
import pprint
def load_state(path):
"""
Load an n-puzzle state from a file into an array and return it.
"""
result = []
with open(path) as f:
for line in f:
result.append(line.split())
return result
def print_state(state):
"""
Prittily re... | """
Various utilities
"""
import pprint
def load_state(path):
"""
Load an n-puzzle state from a file into an array and return it.
"""
result = []
with open(path) as f:
for line in f:
result.append([])
for square in line.split():
try:
... | <commit_before>"""
Various utilities
"""
import pprint
def load_state(path):
"""
Load an n-puzzle state from a file into an array and return it.
"""
result = []
with open(path) as f:
for line in f:
result.append(line.split())
return result
def print_state(state):
"""
... | """
Various utilities
"""
import pprint
def load_state(path):
"""
Load an n-puzzle state from a file into an array and return it.
"""
result = []
with open(path) as f:
for line in f:
result.append([])
for square in line.split():
try:
... | """
Various utilities
"""
import pprint
def load_state(path):
"""
Load an n-puzzle state from a file into an array and return it.
"""
result = []
with open(path) as f:
for line in f:
result.append(line.split())
return result
def print_state(state):
"""
Prittily re... | <commit_before>"""
Various utilities
"""
import pprint
def load_state(path):
"""
Load an n-puzzle state from a file into an array and return it.
"""
result = []
with open(path) as f:
for line in f:
result.append(line.split())
return result
def print_state(state):
"""
... |
422bb9ebfcff9826cf58d17a20df61cea21fdd77 | app/supplier_constants.py | app/supplier_constants.py | # Here we define a set of hardcoded keys that we use when denormalizing data from Supplier/ContactInformation tables
# into the SupplierFramework.declaration field. These are used only by the API and by the
# `digitalmarketplace-scripts/scripts/generate-framework-agreement-*-pages`, which generates framework agreement
... | # Here we define a set of hardcoded keys that we use when denormalizing data from Supplier/ContactInformation tables
# into the SupplierFramework.declaration field. These are used only by the API and by the
# `digitalmarketplace-scripts/scripts/generate-framework-agreement-*-pages`, which generates framework agreement
... | Remove VAT number from supplier constants | Remove VAT number from supplier constants
| Python | mit | alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api | # Here we define a set of hardcoded keys that we use when denormalizing data from Supplier/ContactInformation tables
# into the SupplierFramework.declaration field. These are used only by the API and by the
# `digitalmarketplace-scripts/scripts/generate-framework-agreement-*-pages`, which generates framework agreement
... | # Here we define a set of hardcoded keys that we use when denormalizing data from Supplier/ContactInformation tables
# into the SupplierFramework.declaration field. These are used only by the API and by the
# `digitalmarketplace-scripts/scripts/generate-framework-agreement-*-pages`, which generates framework agreement
... | <commit_before># Here we define a set of hardcoded keys that we use when denormalizing data from Supplier/ContactInformation tables
# into the SupplierFramework.declaration field. These are used only by the API and by the
# `digitalmarketplace-scripts/scripts/generate-framework-agreement-*-pages`, which generates frame... | # Here we define a set of hardcoded keys that we use when denormalizing data from Supplier/ContactInformation tables
# into the SupplierFramework.declaration field. These are used only by the API and by the
# `digitalmarketplace-scripts/scripts/generate-framework-agreement-*-pages`, which generates framework agreement
... | # Here we define a set of hardcoded keys that we use when denormalizing data from Supplier/ContactInformation tables
# into the SupplierFramework.declaration field. These are used only by the API and by the
# `digitalmarketplace-scripts/scripts/generate-framework-agreement-*-pages`, which generates framework agreement
... | <commit_before># Here we define a set of hardcoded keys that we use when denormalizing data from Supplier/ContactInformation tables
# into the SupplierFramework.declaration field. These are used only by the API and by the
# `digitalmarketplace-scripts/scripts/generate-framework-agreement-*-pages`, which generates frame... |
99909048bc702e21e980bb1167caf9217aa31196 | steel/fields/strings.py | steel/fields/strings.py | import codecs
from steel.fields import Field
from steel.fields.mixin import Fixed
__all__ = ['Bytes', 'String', 'FixedBytes', 'FixedString']
class Bytes(Field):
"A stream of bytes that should be left unconverted"
def encode(self, value):
# Nothing to do here
return value
d... | import codecs
from steel.fields import Field
from steel.fields.mixin import Fixed
__all__ = ['Bytes', 'String', 'FixedBytes', 'FixedString']
class Bytes(Field):
"A stream of bytes that should be left unconverted"
def encode(self, value):
# Nothing to do here
return value
d... | Fix the docstring for FixedString | Fix the docstring for FixedString
| Python | bsd-3-clause | gulopine/steel-experiment | import codecs
from steel.fields import Field
from steel.fields.mixin import Fixed
__all__ = ['Bytes', 'String', 'FixedBytes', 'FixedString']
class Bytes(Field):
"A stream of bytes that should be left unconverted"
def encode(self, value):
# Nothing to do here
return value
d... | import codecs
from steel.fields import Field
from steel.fields.mixin import Fixed
__all__ = ['Bytes', 'String', 'FixedBytes', 'FixedString']
class Bytes(Field):
"A stream of bytes that should be left unconverted"
def encode(self, value):
# Nothing to do here
return value
d... | <commit_before>import codecs
from steel.fields import Field
from steel.fields.mixin import Fixed
__all__ = ['Bytes', 'String', 'FixedBytes', 'FixedString']
class Bytes(Field):
"A stream of bytes that should be left unconverted"
def encode(self, value):
# Nothing to do here
return... | import codecs
from steel.fields import Field
from steel.fields.mixin import Fixed
__all__ = ['Bytes', 'String', 'FixedBytes', 'FixedString']
class Bytes(Field):
"A stream of bytes that should be left unconverted"
def encode(self, value):
# Nothing to do here
return value
d... | import codecs
from steel.fields import Field
from steel.fields.mixin import Fixed
__all__ = ['Bytes', 'String', 'FixedBytes', 'FixedString']
class Bytes(Field):
"A stream of bytes that should be left unconverted"
def encode(self, value):
# Nothing to do here
return value
d... | <commit_before>import codecs
from steel.fields import Field
from steel.fields.mixin import Fixed
__all__ = ['Bytes', 'String', 'FixedBytes', 'FixedString']
class Bytes(Field):
"A stream of bytes that should be left unconverted"
def encode(self, value):
# Nothing to do here
return... |
258a9dc694fc5ad308c6fbadfe01b0a375a2a34e | talks/core/renderers.py | talks/core/renderers.py | from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ical'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodid', 'talks.ox.ac.uk')
... | from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ics'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodid', 'talks.ox.ac.uk')
c... | Change default format to ics instead of ical | Change default format to ics instead of ical
| Python | apache-2.0 | ox-it/talks.ox,ox-it/talks.ox,ox-it/talks.ox | from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ical'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodid', 'talks.ox.ac.uk')
... | from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ics'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodid', 'talks.ox.ac.uk')
c... | <commit_before>from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ical'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodid', 'talks.ox.a... | from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ics'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodid', 'talks.ox.ac.uk')
c... | from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ical'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodid', 'talks.ox.ac.uk')
... | <commit_before>from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ical'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodid', 'talks.ox.a... |
be00af0a0e87af5b4c82107d2f1356f378b65cb4 | obj_sys/management/commands/tag_the_file.py | obj_sys/management/commands/tag_the_file.py | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
make_option('--tag... | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
make_option('--tag... | Fix the issue that get_or_create returns a tuple instead of one object. | Fix the issue that get_or_create returns a tuple instead of one object.
| Python | bsd-3-clause | weijia/obj_sys,weijia/obj_sys | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
make_option('--tag... | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
make_option('--tag... | <commit_before>import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
mak... | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
make_option('--tag... | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
make_option('--tag... | <commit_before>import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
mak... |
fffb98874066d5762b815987d7e6768a2e9cb03c | tests/daemon_uid_gid.py | tests/daemon_uid_gid.py | #!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from sys import argv
from time import sleep
from daemonize import Daemonize
pid = argv[1]
log = argv[2]
def main():
uids = getuid(), geteuid()
gids = getgid(), getegid()
with open(log, "w") as f:
f.write(" ".join(map(str, uid... | #!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from sys import argv
from time import sleep
from daemonize import Daemonize
pid = argv[1]
log = argv[2]
def main():
uids = getuid(), geteuid()
gids = getgid(), getegid()
with open(log, "w") as f:
f.write(" ".join(map(str, uid... | Support debian based distributives in tests | Support debian based distributives in tests | Python | mit | thesharp/daemonize | #!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from sys import argv
from time import sleep
from daemonize import Daemonize
pid = argv[1]
log = argv[2]
def main():
uids = getuid(), geteuid()
gids = getgid(), getegid()
with open(log, "w") as f:
f.write(" ".join(map(str, uid... | #!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from sys import argv
from time import sleep
from daemonize import Daemonize
pid = argv[1]
log = argv[2]
def main():
uids = getuid(), geteuid()
gids = getgid(), getegid()
with open(log, "w") as f:
f.write(" ".join(map(str, uid... | <commit_before>#!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from sys import argv
from time import sleep
from daemonize import Daemonize
pid = argv[1]
log = argv[2]
def main():
uids = getuid(), geteuid()
gids = getgid(), getegid()
with open(log, "w") as f:
f.write(" ".jo... | #!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from sys import argv
from time import sleep
from daemonize import Daemonize
pid = argv[1]
log = argv[2]
def main():
uids = getuid(), geteuid()
gids = getgid(), getegid()
with open(log, "w") as f:
f.write(" ".join(map(str, uid... | #!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from sys import argv
from time import sleep
from daemonize import Daemonize
pid = argv[1]
log = argv[2]
def main():
uids = getuid(), geteuid()
gids = getgid(), getegid()
with open(log, "w") as f:
f.write(" ".join(map(str, uid... | <commit_before>#!/usr/bin/env python
from os import getuid, geteuid, getgid, getegid
from sys import argv
from time import sleep
from daemonize import Daemonize
pid = argv[1]
log = argv[2]
def main():
uids = getuid(), geteuid()
gids = getgid(), getegid()
with open(log, "w") as f:
f.write(" ".jo... |
329f4cd5123440baf537db30340fd3d33d7bbbf1 | games/management/commands/makelove.py | games/management/commands/makelove.py | from django.core.management.base import BaseCommand
from games import models, bundle
def package_love(stdout, game, release):
if release.get_asset('love') is not None:
stdout.write(u"SKIPPING {}".format(release))
return
upload = release.get_asset('uploaded')
if upload is None:
s... | import zipfile
from django.core.management.base import BaseCommand
from games import models, bundle
def package_love(stdout, game, release):
if release.get_asset('love') is not None:
stdout.write(u"SKIPPING {}".format(release))
return
upload = release.get_asset('uploaded')
if upload is... | Make sure that uploaded files are zipfiles | Make sure that uploaded files are zipfiles
| Python | mit | stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb | from django.core.management.base import BaseCommand
from games import models, bundle
def package_love(stdout, game, release):
if release.get_asset('love') is not None:
stdout.write(u"SKIPPING {}".format(release))
return
upload = release.get_asset('uploaded')
if upload is None:
s... | import zipfile
from django.core.management.base import BaseCommand
from games import models, bundle
def package_love(stdout, game, release):
if release.get_asset('love') is not None:
stdout.write(u"SKIPPING {}".format(release))
return
upload = release.get_asset('uploaded')
if upload is... | <commit_before>from django.core.management.base import BaseCommand
from games import models, bundle
def package_love(stdout, game, release):
if release.get_asset('love') is not None:
stdout.write(u"SKIPPING {}".format(release))
return
upload = release.get_asset('uploaded')
if upload is ... | import zipfile
from django.core.management.base import BaseCommand
from games import models, bundle
def package_love(stdout, game, release):
if release.get_asset('love') is not None:
stdout.write(u"SKIPPING {}".format(release))
return
upload = release.get_asset('uploaded')
if upload is... | from django.core.management.base import BaseCommand
from games import models, bundle
def package_love(stdout, game, release):
if release.get_asset('love') is not None:
stdout.write(u"SKIPPING {}".format(release))
return
upload = release.get_asset('uploaded')
if upload is None:
s... | <commit_before>from django.core.management.base import BaseCommand
from games import models, bundle
def package_love(stdout, game, release):
if release.get_asset('love') is not None:
stdout.write(u"SKIPPING {}".format(release))
return
upload = release.get_asset('uploaded')
if upload is ... |
52430087413e24c94a532e67a2c77248ecc0598c | saleor/core/extensions/checks.py | saleor/core/extensions/checks.py | import importlib
from typing import List
from django.conf import settings
from django.core.checks import Error, register
@register()
def check_extensions(app_configs, **kwargs):
"""Confirm a correct import of plugins and manager."""
errors = []
check_manager(errors)
plugins = settings.PLUGINS or []
... | from typing import List
from django.conf import settings
from django.core.checks import Error, register
from django.utils.module_loading import import_string
@register()
def check_extensions(app_configs, **kwargs):
"""Confirm a correct import of plugins and manager."""
errors = []
check_manager(errors)
... | Use django helper to validate manager and plugins paths | Use django helper to validate manager and plugins paths
| Python | bsd-3-clause | mociepka/saleor,mociepka/saleor,mociepka/saleor,maferelo/saleor,maferelo/saleor,maferelo/saleor | import importlib
from typing import List
from django.conf import settings
from django.core.checks import Error, register
@register()
def check_extensions(app_configs, **kwargs):
"""Confirm a correct import of plugins and manager."""
errors = []
check_manager(errors)
plugins = settings.PLUGINS or []
... | from typing import List
from django.conf import settings
from django.core.checks import Error, register
from django.utils.module_loading import import_string
@register()
def check_extensions(app_configs, **kwargs):
"""Confirm a correct import of plugins and manager."""
errors = []
check_manager(errors)
... | <commit_before>import importlib
from typing import List
from django.conf import settings
from django.core.checks import Error, register
@register()
def check_extensions(app_configs, **kwargs):
"""Confirm a correct import of plugins and manager."""
errors = []
check_manager(errors)
plugins = settings... | from typing import List
from django.conf import settings
from django.core.checks import Error, register
from django.utils.module_loading import import_string
@register()
def check_extensions(app_configs, **kwargs):
"""Confirm a correct import of plugins and manager."""
errors = []
check_manager(errors)
... | import importlib
from typing import List
from django.conf import settings
from django.core.checks import Error, register
@register()
def check_extensions(app_configs, **kwargs):
"""Confirm a correct import of plugins and manager."""
errors = []
check_manager(errors)
plugins = settings.PLUGINS or []
... | <commit_before>import importlib
from typing import List
from django.conf import settings
from django.core.checks import Error, register
@register()
def check_extensions(app_configs, **kwargs):
"""Confirm a correct import of plugins and manager."""
errors = []
check_manager(errors)
plugins = settings... |
886d4d526d1766d154604f7a71182e48b3438a17 | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by roadhump
# Copyright (c) 2014 roadhump
#
# License: MIT
#
"""This module exports the ESLint plugin class."""
from SublimeLinter.lint import Linter
class ESLint(Linter):
"""Provides an interface to the eslint ... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by roadhump
# Copyright (c) 2014 roadhump
#
# License: MIT
#
"""This module exports the ESLint plugin class."""
from SublimeLinter.lint import Linter
class ESLint(Linter):
"""Provides an interface to the eslint ... | Make fall back to ~/.eslintrc | Make fall back to ~/.eslintrc
| Python | mit | joeybaker/SublimeLinter-textlint,roadhump/SublimeLinter-eslint,AndBicScadMedia/SublimeLinter-eslint | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by roadhump
# Copyright (c) 2014 roadhump
#
# License: MIT
#
"""This module exports the ESLint plugin class."""
from SublimeLinter.lint import Linter
class ESLint(Linter):
"""Provides an interface to the eslint ... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by roadhump
# Copyright (c) 2014 roadhump
#
# License: MIT
#
"""This module exports the ESLint plugin class."""
from SublimeLinter.lint import Linter
class ESLint(Linter):
"""Provides an interface to the eslint ... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by roadhump
# Copyright (c) 2014 roadhump
#
# License: MIT
#
"""This module exports the ESLint plugin class."""
from SublimeLinter.lint import Linter
class ESLint(Linter):
"""Provides an interface... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by roadhump
# Copyright (c) 2014 roadhump
#
# License: MIT
#
"""This module exports the ESLint plugin class."""
from SublimeLinter.lint import Linter
class ESLint(Linter):
"""Provides an interface to the eslint ... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by roadhump
# Copyright (c) 2014 roadhump
#
# License: MIT
#
"""This module exports the ESLint plugin class."""
from SublimeLinter.lint import Linter
class ESLint(Linter):
"""Provides an interface to the eslint ... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by roadhump
# Copyright (c) 2014 roadhump
#
# License: MIT
#
"""This module exports the ESLint plugin class."""
from SublimeLinter.lint import Linter
class ESLint(Linter):
"""Provides an interface... |
6f8a19c46a1d8b6b31039f212e733cd660551de7 | mws/apis/__init__.py | mws/apis/__init__.py | from .feeds import Feeds
from .finances import Finances
from .inbound_shipments import InboundShipments
from .inventory import Inventory
from .merchant_fulfillment import MerchantFulfillment
from .offamazonpayments import OffAmazonPayments
from .orders import Orders
from .products import Products
from .recommendations ... | from .feeds import Feeds
from .finances import Finances
from .inbound_shipments import InboundShipments
from .inventory import Inventory
from .merchant_fulfillment import MerchantFulfillment
from .offamazonpayments import OffAmazonPayments
from .orders import Orders
from .outbound_shipments import OutboundShipments
fro... | Include the new Subscriptions stub | Include the new Subscriptions stub | Python | unlicense | Bobspadger/python-amazon-mws,GriceTurrble/python-amazon-mws | from .feeds import Feeds
from .finances import Finances
from .inbound_shipments import InboundShipments
from .inventory import Inventory
from .merchant_fulfillment import MerchantFulfillment
from .offamazonpayments import OffAmazonPayments
from .orders import Orders
from .products import Products
from .recommendations ... | from .feeds import Feeds
from .finances import Finances
from .inbound_shipments import InboundShipments
from .inventory import Inventory
from .merchant_fulfillment import MerchantFulfillment
from .offamazonpayments import OffAmazonPayments
from .orders import Orders
from .outbound_shipments import OutboundShipments
fro... | <commit_before>from .feeds import Feeds
from .finances import Finances
from .inbound_shipments import InboundShipments
from .inventory import Inventory
from .merchant_fulfillment import MerchantFulfillment
from .offamazonpayments import OffAmazonPayments
from .orders import Orders
from .products import Products
from .r... | from .feeds import Feeds
from .finances import Finances
from .inbound_shipments import InboundShipments
from .inventory import Inventory
from .merchant_fulfillment import MerchantFulfillment
from .offamazonpayments import OffAmazonPayments
from .orders import Orders
from .outbound_shipments import OutboundShipments
fro... | from .feeds import Feeds
from .finances import Finances
from .inbound_shipments import InboundShipments
from .inventory import Inventory
from .merchant_fulfillment import MerchantFulfillment
from .offamazonpayments import OffAmazonPayments
from .orders import Orders
from .products import Products
from .recommendations ... | <commit_before>from .feeds import Feeds
from .finances import Finances
from .inbound_shipments import InboundShipments
from .inventory import Inventory
from .merchant_fulfillment import MerchantFulfillment
from .offamazonpayments import OffAmazonPayments
from .orders import Orders
from .products import Products
from .r... |
22935ee89217ac1f8b8d3c921571381336069584 | lctools/lc.py | lctools/lc.py | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security
from config import get_config
def get_lc(profile, resource=None):
if resource is None:
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driv... | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security
from config import get_config
def get_lc(profile, resource=None):
if resource is None:
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driv... | Add a hack to overcome driver name inconsistency in libcloud. | Add a hack to overcome driver name inconsistency in libcloud.
| Python | apache-2.0 | novel/lc-tools,novel/lc-tools | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security
from config import get_config
def get_lc(profile, resource=None):
if resource is None:
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driv... | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security
from config import get_config
def get_lc(profile, resource=None):
if resource is None:
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driv... | <commit_before>from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security
from config import get_config
def get_lc(profile, resource=None):
if resource is None:
from libcloud.compute.types import Provider
from libcloud.compute.providers ... | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security
from config import get_config
def get_lc(profile, resource=None):
if resource is None:
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driv... | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security
from config import get_config
def get_lc(profile, resource=None):
if resource is None:
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driv... | <commit_before>from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security
from config import get_config
def get_lc(profile, resource=None):
if resource is None:
from libcloud.compute.types import Provider
from libcloud.compute.providers ... |
c541e85f8b1dccaabd047027e89791d807550ee5 | fade/config.py | fade/config.py | #!/usr/bin/env python
"""
See LICENSE.txt file for copyright and license details.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
WTF_CSRF_ENABLED = True
SECRET_KEY = '3124534675689780'
# TODO: switch this to postgresql
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
... | #!/usr/bin/env python
"""
See LICENSE.txt file for copyright and license details.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
WTF_CSRF_ENABLED = True
SECRET_KEY = '3124534675689780'
dbuser = 'rockwolf'
dbpass = ''
dbhost = 'testdb'
dbname = 'finance'
SQLALCHEMY_DATABASE_URI = 'postgresql:... | Switch database connection string to pg | Switch database connection string to pg | Python | bsd-3-clause | rockwolf/python,rockwolf/python,rockwolf/python,rockwolf/python,rockwolf/python,rockwolf/python | #!/usr/bin/env python
"""
See LICENSE.txt file for copyright and license details.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
WTF_CSRF_ENABLED = True
SECRET_KEY = '3124534675689780'
# TODO: switch this to postgresql
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
... | #!/usr/bin/env python
"""
See LICENSE.txt file for copyright and license details.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
WTF_CSRF_ENABLED = True
SECRET_KEY = '3124534675689780'
dbuser = 'rockwolf'
dbpass = ''
dbhost = 'testdb'
dbname = 'finance'
SQLALCHEMY_DATABASE_URI = 'postgresql:... | <commit_before>#!/usr/bin/env python
"""
See LICENSE.txt file for copyright and license details.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
WTF_CSRF_ENABLED = True
SECRET_KEY = '3124534675689780'
# TODO: switch this to postgresql
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(base... | #!/usr/bin/env python
"""
See LICENSE.txt file for copyright and license details.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
WTF_CSRF_ENABLED = True
SECRET_KEY = '3124534675689780'
dbuser = 'rockwolf'
dbpass = ''
dbhost = 'testdb'
dbname = 'finance'
SQLALCHEMY_DATABASE_URI = 'postgresql:... | #!/usr/bin/env python
"""
See LICENSE.txt file for copyright and license details.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
WTF_CSRF_ENABLED = True
SECRET_KEY = '3124534675689780'
# TODO: switch this to postgresql
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
... | <commit_before>#!/usr/bin/env python
"""
See LICENSE.txt file for copyright and license details.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
WTF_CSRF_ENABLED = True
SECRET_KEY = '3124534675689780'
# TODO: switch this to postgresql
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(base... |
6c8feca973703cf87a82cfa954fa3c7a3f152c72 | manage.py | manage.py | from project import app, db
from project import models
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
| from project import app, db
from project import models
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def create_db():
"""Creates the db tables."""
db.crea... | Create create_db, drop_db and create_admin functions | Create create_db, drop_db and create_admin functions
| Python | mit | dylanshine/streamschool,dylanshine/streamschool | from project import app, db
from project import models
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
Create create_db, drop_db and crea... | from project import app, db
from project import models
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def create_db():
"""Creates the db tables."""
db.crea... | <commit_before>from project import app, db
from project import models
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
<commit_msg>Create ... | from project import app, db
from project import models
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def create_db():
"""Creates the db tables."""
db.crea... | from project import app, db
from project import models
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
Create create_db, drop_db and crea... | <commit_before>from project import app, db
from project import models
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
<commit_msg>Create ... |
e6f3bd9c61be29560e09f5d5d9c7e355ec14c2e3 | manage.py | manage.py | #!/usr/bin/env python
import sys
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| #!/usr/bin/env python
import sys
import os
if __name__ == "__main__":
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| Set a default settings module | Set a default settings module
| Python | bsd-3-clause | wagnerand/olympia,andymckay/addons-server,kumar303/addons-server,andymckay/olympia,aviarypl/mozilla-l10n-addons-server,aviarypl/mozilla-l10n-addons-server,wagnerand/addons-server,lavish205/olympia,Prashant-Surya/addons-server,harry-7/addons-server,harikishen/addons-server,mstriemer/olympia,mozilla/addons-server,andymck... | #!/usr/bin/env python
import sys
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Set a default settings module | #!/usr/bin/env python
import sys
import os
if __name__ == "__main__":
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| <commit_before>#!/usr/bin/env python
import sys
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
<commit_msg>Set a default settings module<commit_after> | #!/usr/bin/env python
import sys
import os
if __name__ == "__main__":
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| #!/usr/bin/env python
import sys
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Set a default settings module#!/usr/bin/env python
import sys
import os
if __name__ == "__main__":
os.environ.setdefault('DJANGO_SETTINGS_MODULE', ... | <commit_before>#!/usr/bin/env python
import sys
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
<commit_msg>Set a default settings module<commit_after>#!/usr/bin/env python
import sys
import os
if __name__ == "__main__":
os.envi... |
34f0e697ba4d6a787f0f4fc294163a09a52c185f | tests/test_arrayfire.py | tests/test_arrayfire.py | import arrayfire
# We're going to test several arrayfire behaviours that we rely on
from asserts import *
import afnumpy as af
import numpy as np
def test_cast():
a = afnumpy.random.rand(2,3)
# Check that device_ptr does not cause a copy
assert a.d_array.device_ptr() == a.d_array.device_ptr()
# Chec... | import arrayfire
# We're going to test several arrayfire behaviours that we rely on
from asserts import *
import afnumpy as af
import numpy as np
def test_af_cast():
a = afnumpy.arrayfire.randu(2,3)
# Check that device_ptr does not cause a copy
assert a.device_ptr() == a.device_ptr()
# Check that ca... | Add a pure arrayfire cast test to check for seg faults | Add a pure arrayfire cast test to check for seg faults
| Python | bsd-2-clause | FilipeMaia/afnumpy,daurer/afnumpy | import arrayfire
# We're going to test several arrayfire behaviours that we rely on
from asserts import *
import afnumpy as af
import numpy as np
def test_cast():
a = afnumpy.random.rand(2,3)
# Check that device_ptr does not cause a copy
assert a.d_array.device_ptr() == a.d_array.device_ptr()
# Chec... | import arrayfire
# We're going to test several arrayfire behaviours that we rely on
from asserts import *
import afnumpy as af
import numpy as np
def test_af_cast():
a = afnumpy.arrayfire.randu(2,3)
# Check that device_ptr does not cause a copy
assert a.device_ptr() == a.device_ptr()
# Check that ca... | <commit_before>import arrayfire
# We're going to test several arrayfire behaviours that we rely on
from asserts import *
import afnumpy as af
import numpy as np
def test_cast():
a = afnumpy.random.rand(2,3)
# Check that device_ptr does not cause a copy
assert a.d_array.device_ptr() == a.d_array.device_p... | import arrayfire
# We're going to test several arrayfire behaviours that we rely on
from asserts import *
import afnumpy as af
import numpy as np
def test_af_cast():
a = afnumpy.arrayfire.randu(2,3)
# Check that device_ptr does not cause a copy
assert a.device_ptr() == a.device_ptr()
# Check that ca... | import arrayfire
# We're going to test several arrayfire behaviours that we rely on
from asserts import *
import afnumpy as af
import numpy as np
def test_cast():
a = afnumpy.random.rand(2,3)
# Check that device_ptr does not cause a copy
assert a.d_array.device_ptr() == a.d_array.device_ptr()
# Chec... | <commit_before>import arrayfire
# We're going to test several arrayfire behaviours that we rely on
from asserts import *
import afnumpy as af
import numpy as np
def test_cast():
a = afnumpy.random.rand(2,3)
# Check that device_ptr does not cause a copy
assert a.d_array.device_ptr() == a.d_array.device_p... |
aac31b69da5ec3a3622ca7752e8273886b344683 | sublist/sublist.py | sublist/sublist.py | SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"
def check_lists(a, b):
if a == b:
return EQUAL
elif is_sublist(a, b):
return SUBLIST
elif is_sublist(b, a):
return SUPERLIST
else:
return UNEQUAL
def is_sublist(a, b):
return a in [b[i... | SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"
VERY_UNLIKELY_STRING = "ꗲꅯḪꍙ"
def check_lists(a, b):
if a == b:
return EQUAL
_a = VERY_UNLIKELY_STRING.join(map(str, a))
_b = VERY_UNLIKELY_STRING.join(map(str, b))
if _a in _b:
return SUBLIST
elif _b... | Switch back to the substring method - it's faster | Switch back to the substring method - it's faster
| Python | agpl-3.0 | CubicComet/exercism-python-solutions | SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"
def check_lists(a, b):
if a == b:
return EQUAL
elif is_sublist(a, b):
return SUBLIST
elif is_sublist(b, a):
return SUPERLIST
else:
return UNEQUAL
def is_sublist(a, b):
return a in [b[i... | SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"
VERY_UNLIKELY_STRING = "ꗲꅯḪꍙ"
def check_lists(a, b):
if a == b:
return EQUAL
_a = VERY_UNLIKELY_STRING.join(map(str, a))
_b = VERY_UNLIKELY_STRING.join(map(str, b))
if _a in _b:
return SUBLIST
elif _b... | <commit_before>SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"
def check_lists(a, b):
if a == b:
return EQUAL
elif is_sublist(a, b):
return SUBLIST
elif is_sublist(b, a):
return SUPERLIST
else:
return UNEQUAL
def is_sublist(a, b):
r... | SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"
VERY_UNLIKELY_STRING = "ꗲꅯḪꍙ"
def check_lists(a, b):
if a == b:
return EQUAL
_a = VERY_UNLIKELY_STRING.join(map(str, a))
_b = VERY_UNLIKELY_STRING.join(map(str, b))
if _a in _b:
return SUBLIST
elif _b... | SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"
def check_lists(a, b):
if a == b:
return EQUAL
elif is_sublist(a, b):
return SUBLIST
elif is_sublist(b, a):
return SUPERLIST
else:
return UNEQUAL
def is_sublist(a, b):
return a in [b[i... | <commit_before>SUPERLIST = "superlist"
SUBLIST = "sublist"
EQUAL = "equal"
UNEQUAL = "unequal"
def check_lists(a, b):
if a == b:
return EQUAL
elif is_sublist(a, b):
return SUBLIST
elif is_sublist(b, a):
return SUPERLIST
else:
return UNEQUAL
def is_sublist(a, b):
r... |
6eae274fc200df9319e82abf99d0f2314a17a2af | formlibrary/migrations/0005_auto_20171204_0203.py | formlibrary/migrations/0005_auto_20171204_0203.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-04 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('workflow', '0007_auto_20171204_0203'),
... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-04 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('workflow', '0007_auto_20171204_0203'),
('formlibrar... | Split migration script of customform | Split migration script of customform
| Python | apache-2.0 | toladata/TolaActivity,toladata/TolaActivity,toladata/TolaActivity,toladata/TolaActivity | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-04 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('workflow', '0007_auto_20171204_0203'),
... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-04 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('workflow', '0007_auto_20171204_0203'),
('formlibrar... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-04 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('workflow', '0007_auto_20171204_0... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-04 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('workflow', '0007_auto_20171204_0203'),
('formlibrar... | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-04 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('workflow', '0007_auto_20171204_0203'),
... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-12-04 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('workflow', '0007_auto_20171204_0... |
265edc24561bdacfae2412680048c203f7f78c14 | calendarapp.py | calendarapp.py | from kivy.app import App
class CalendarApp(App):
"""Basic App to hold the calendar widget."""
def build(self):
return self.root
| import kivy
kivy.require('1.8.0')
from kivy.config import Config
Config.set('graphics', 'width', '360')
Config.set('graphics', 'height', '640')
from kivy.app import App
class CalendarApp(App):
"""Basic App to hold the calendar widget."""
def build(self):
return self.root
| Set the window size to emulate a mobile device | Set the window size to emulate a mobile device
| Python | mit | hackebrot/garden.calendar | from kivy.app import App
class CalendarApp(App):
"""Basic App to hold the calendar widget."""
def build(self):
return self.root
Set the window size to emulate a mobile device | import kivy
kivy.require('1.8.0')
from kivy.config import Config
Config.set('graphics', 'width', '360')
Config.set('graphics', 'height', '640')
from kivy.app import App
class CalendarApp(App):
"""Basic App to hold the calendar widget."""
def build(self):
return self.root
| <commit_before>from kivy.app import App
class CalendarApp(App):
"""Basic App to hold the calendar widget."""
def build(self):
return self.root
<commit_msg>Set the window size to emulate a mobile device<commit_after> | import kivy
kivy.require('1.8.0')
from kivy.config import Config
Config.set('graphics', 'width', '360')
Config.set('graphics', 'height', '640')
from kivy.app import App
class CalendarApp(App):
"""Basic App to hold the calendar widget."""
def build(self):
return self.root
| from kivy.app import App
class CalendarApp(App):
"""Basic App to hold the calendar widget."""
def build(self):
return self.root
Set the window size to emulate a mobile deviceimport kivy
kivy.require('1.8.0')
from kivy.config import Config
Config.set('graphics', 'width', '360')
Config.set('graphics',... | <commit_before>from kivy.app import App
class CalendarApp(App):
"""Basic App to hold the calendar widget."""
def build(self):
return self.root
<commit_msg>Set the window size to emulate a mobile device<commit_after>import kivy
kivy.require('1.8.0')
from kivy.config import Config
Config.set('graphics... |
dde622c7296ef1ebb7ee369c029ed1c8c861cf50 | client/capability-token-incoming/capability-token.6.x.py | client/capability-token-incoming/capability-token.6.x.py | from flask import Flask, Response
from twilio.jwt.client import ClientCapabilityToken
app = Flask(__name__)
@app.route('/token', methods=['GET'])
def get_capability_token():
"""Respond to incoming requests."""
# Find these values at twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
... | from flask import Flask, Response
from twilio.jwt.client import ClientCapabilityToken
app = Flask(__name__)
@app.route('/token', methods=['GET'])
def get_capability_token():
"""Respond to incoming requests."""
# Find these values at twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
... | Update capability token creation method | Update capability token creation method
Old method was `generate()`, it's not `to_jwt()` | Python | mit | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets | from flask import Flask, Response
from twilio.jwt.client import ClientCapabilityToken
app = Flask(__name__)
@app.route('/token', methods=['GET'])
def get_capability_token():
"""Respond to incoming requests."""
# Find these values at twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
... | from flask import Flask, Response
from twilio.jwt.client import ClientCapabilityToken
app = Flask(__name__)
@app.route('/token', methods=['GET'])
def get_capability_token():
"""Respond to incoming requests."""
# Find these values at twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
... | <commit_before>from flask import Flask, Response
from twilio.jwt.client import ClientCapabilityToken
app = Flask(__name__)
@app.route('/token', methods=['GET'])
def get_capability_token():
"""Respond to incoming requests."""
# Find these values at twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXX... | from flask import Flask, Response
from twilio.jwt.client import ClientCapabilityToken
app = Flask(__name__)
@app.route('/token', methods=['GET'])
def get_capability_token():
"""Respond to incoming requests."""
# Find these values at twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
... | from flask import Flask, Response
from twilio.jwt.client import ClientCapabilityToken
app = Flask(__name__)
@app.route('/token', methods=['GET'])
def get_capability_token():
"""Respond to incoming requests."""
# Find these values at twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
... | <commit_before>from flask import Flask, Response
from twilio.jwt.client import ClientCapabilityToken
app = Flask(__name__)
@app.route('/token', methods=['GET'])
def get_capability_token():
"""Respond to incoming requests."""
# Find these values at twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXX... |
86382d372fc8fd7ee42c264019989d3f119508a2 | integration-test/1106-merge-ocean-earth.py | integration-test/1106-merge-ocean-earth.py | # There should be a single, merged feature in each of these tiles
# Natural Earth
assert_less_than_n_features(5, 11, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
assert_le... | # There should be a single, merged feature in each of these tiles
# Natural Earth
assert_less_than_n_features(5, 12, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
assert_le... | Fix test by looking further east into the ocean | Fix test by looking further east into the ocean
| Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | # There should be a single, merged feature in each of these tiles
# Natural Earth
assert_less_than_n_features(5, 11, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
assert_le... | # There should be a single, merged feature in each of these tiles
# Natural Earth
assert_less_than_n_features(5, 12, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
assert_le... | <commit_before># There should be a single, merged feature in each of these tiles
# Natural Earth
assert_less_than_n_features(5, 11, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'... | # There should be a single, merged feature in each of these tiles
# Natural Earth
assert_less_than_n_features(5, 12, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
assert_le... | # There should be a single, merged feature in each of these tiles
# Natural Earth
assert_less_than_n_features(5, 11, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
assert_le... | <commit_before># There should be a single, merged feature in each of these tiles
# Natural Earth
assert_less_than_n_features(5, 11, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'... |
401aafee6979cc95692555548b1fc10dea44a44e | product/api/views.py | product/api/views.py | from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from .serializers import ProductSerializer
from ..models import Product
from django.http import Http404
from rest_framework.views import APIView
class ProductDetail(APIView):
permission_classes = (IsAuthenticated,)... | from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from .serializers import ProductSerializer
from ..models import Product
from django.http import Http404
from rest_framework.views import APIView
class ProductDetail(APIView):
permission_classes = (IsAuthenticated,)... | Use remote fallback for API request | Use remote fallback for API request
| Python | bsd-3-clause | KlubJagiellonski/pola-backend,KlubJagiellonski/pola-backend,KlubJagiellonski/pola-backend,KlubJagiellonski/pola-backend | from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from .serializers import ProductSerializer
from ..models import Product
from django.http import Http404
from rest_framework.views import APIView
class ProductDetail(APIView):
permission_classes = (IsAuthenticated,)... | from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from .serializers import ProductSerializer
from ..models import Product
from django.http import Http404
from rest_framework.views import APIView
class ProductDetail(APIView):
permission_classes = (IsAuthenticated,)... | <commit_before>from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from .serializers import ProductSerializer
from ..models import Product
from django.http import Http404
from rest_framework.views import APIView
class ProductDetail(APIView):
permission_classes = (Is... | from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from .serializers import ProductSerializer
from ..models import Product
from django.http import Http404
from rest_framework.views import APIView
class ProductDetail(APIView):
permission_classes = (IsAuthenticated,)... | from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from .serializers import ProductSerializer
from ..models import Product
from django.http import Http404
from rest_framework.views import APIView
class ProductDetail(APIView):
permission_classes = (IsAuthenticated,)... | <commit_before>from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from .serializers import ProductSerializer
from ..models import Product
from django.http import Http404
from rest_framework.views import APIView
class ProductDetail(APIView):
permission_classes = (Is... |
15db7def176572a667299cc30102c076b589620d | pyQuantuccia/tests/test_get_holiday_date.py | pyQuantuccia/tests/test_get_holiday_date.py | from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the moment the only thing this function
can do is return NULL.
"""
assert(quantuccia.get_holiday_date() is None)
| from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the moment the only thing this function
can do is return NULL.
"""
assert(quantuccia.get_holiday_date() is None)
| Correct spacing in the test file. | Correct spacing in the test file.
| Python | bsd-3-clause | jwg4/pyQuantuccia,jwg4/pyQuantuccia | from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the moment the only thing this function
can do is return NULL.
"""
assert(quantuccia.get_holiday_date() is None)
Correct spacing in the test file. | from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the moment the only thing this function
can do is return NULL.
"""
assert(quantuccia.get_holiday_date() is None)
| <commit_before>from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the moment the only thing this function
can do is return NULL.
"""
assert(quantuccia.get_holiday_date() is None)
<commit_msg>Correct spacing in the test file.<commit_after> | from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the moment the only thing this function
can do is return NULL.
"""
assert(quantuccia.get_holiday_date() is None)
| from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the moment the only thing this function
can do is return NULL.
"""
assert(quantuccia.get_holiday_date() is None)
Correct spacing in the test file.from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the... | <commit_before>from pyQuantuccia import quantuccia
def test_get_holiday_date():
""" At the moment the only thing this function
can do is return NULL.
"""
assert(quantuccia.get_holiday_date() is None)
<commit_msg>Correct spacing in the test file.<commit_after>from pyQuantuccia import quantuccia
de... |
17bd35d7a2b442faebdb39aad07294612d8e7038 | nflh/games.py | nflh/games.py | from datetime import datetime
GAME_VIDEO_BASE_URL = "http://www.nfl.com/feeds-rs/videos/byGameCenter/{0}.json"
LIVE_UPDATE_BASE_URL = "http://www.nfl.com/liveupdate/game-center/{0}/{0}_gtd.json"
class Game(object):
def __init__(self, id_, h, v):
self.id_ = id_
self.date = self.id_[:-2]
s... | from datetime import datetime
GAME_VIDEO_BASE_URL = "http://www.nfl.com/feeds-rs/videos/byGameCenter/{0}.json"
LIVE_UPDATE_BASE_URL = "http://www.nfl.com/liveupdate/game-center/{0}/{0}_gtd.json"
class Game(object):
def __init__(self, id_, h, v):
self.id_ = id_
self.date = self.id_[:-2]
s... | Add videos dict to Games. | Add videos dict to Games.
| Python | apache-2.0 | twbarber/nfl-highlight-bot | from datetime import datetime
GAME_VIDEO_BASE_URL = "http://www.nfl.com/feeds-rs/videos/byGameCenter/{0}.json"
LIVE_UPDATE_BASE_URL = "http://www.nfl.com/liveupdate/game-center/{0}/{0}_gtd.json"
class Game(object):
def __init__(self, id_, h, v):
self.id_ = id_
self.date = self.id_[:-2]
s... | from datetime import datetime
GAME_VIDEO_BASE_URL = "http://www.nfl.com/feeds-rs/videos/byGameCenter/{0}.json"
LIVE_UPDATE_BASE_URL = "http://www.nfl.com/liveupdate/game-center/{0}/{0}_gtd.json"
class Game(object):
def __init__(self, id_, h, v):
self.id_ = id_
self.date = self.id_[:-2]
s... | <commit_before>from datetime import datetime
GAME_VIDEO_BASE_URL = "http://www.nfl.com/feeds-rs/videos/byGameCenter/{0}.json"
LIVE_UPDATE_BASE_URL = "http://www.nfl.com/liveupdate/game-center/{0}/{0}_gtd.json"
class Game(object):
def __init__(self, id_, h, v):
self.id_ = id_
self.date = self.id_... | from datetime import datetime
GAME_VIDEO_BASE_URL = "http://www.nfl.com/feeds-rs/videos/byGameCenter/{0}.json"
LIVE_UPDATE_BASE_URL = "http://www.nfl.com/liveupdate/game-center/{0}/{0}_gtd.json"
class Game(object):
def __init__(self, id_, h, v):
self.id_ = id_
self.date = self.id_[:-2]
s... | from datetime import datetime
GAME_VIDEO_BASE_URL = "http://www.nfl.com/feeds-rs/videos/byGameCenter/{0}.json"
LIVE_UPDATE_BASE_URL = "http://www.nfl.com/liveupdate/game-center/{0}/{0}_gtd.json"
class Game(object):
def __init__(self, id_, h, v):
self.id_ = id_
self.date = self.id_[:-2]
s... | <commit_before>from datetime import datetime
GAME_VIDEO_BASE_URL = "http://www.nfl.com/feeds-rs/videos/byGameCenter/{0}.json"
LIVE_UPDATE_BASE_URL = "http://www.nfl.com/liveupdate/game-center/{0}/{0}_gtd.json"
class Game(object):
def __init__(self, id_, h, v):
self.id_ = id_
self.date = self.id_... |
c36b0639190de6517260d6b6e8e5991976336760 | shared/btr3baseball/DatasourceRepository.py | shared/btr3baseball/DatasourceRepository.py | import json
resource_package = __name__
resource_path_format = 'datasource/{}.json'
class DatasourceRepository:
def __init__(self):
self.availableSources = json.loads(pkg_resources.resource_string(resource_package, resource_path_format.format('all')))['available']
self.data = {}
for source... | import pkg_resources
import json
resource_package = __name__
resource_path_format = 'datasource/{}.json'
class DatasourceRepository:
def __init__(self):
self.availableSources = json.loads(pkg_resources.resource_string(resource_package, resource_path_format.format('all')))['available']
self.data = ... | Add pkg_resources back, working forward | Add pkg_resources back, working forward
| Python | apache-2.0 | bryantrobbins/baseball,bryantrobbins/baseball,bryantrobbins/baseball,bryantrobbins/baseball,bryantrobbins/baseball | import json
resource_package = __name__
resource_path_format = 'datasource/{}.json'
class DatasourceRepository:
def __init__(self):
self.availableSources = json.loads(pkg_resources.resource_string(resource_package, resource_path_format.format('all')))['available']
self.data = {}
for source... | import pkg_resources
import json
resource_package = __name__
resource_path_format = 'datasource/{}.json'
class DatasourceRepository:
def __init__(self):
self.availableSources = json.loads(pkg_resources.resource_string(resource_package, resource_path_format.format('all')))['available']
self.data = ... | <commit_before>import json
resource_package = __name__
resource_path_format = 'datasource/{}.json'
class DatasourceRepository:
def __init__(self):
self.availableSources = json.loads(pkg_resources.resource_string(resource_package, resource_path_format.format('all')))['available']
self.data = {}
... | import pkg_resources
import json
resource_package = __name__
resource_path_format = 'datasource/{}.json'
class DatasourceRepository:
def __init__(self):
self.availableSources = json.loads(pkg_resources.resource_string(resource_package, resource_path_format.format('all')))['available']
self.data = ... | import json
resource_package = __name__
resource_path_format = 'datasource/{}.json'
class DatasourceRepository:
def __init__(self):
self.availableSources = json.loads(pkg_resources.resource_string(resource_package, resource_path_format.format('all')))['available']
self.data = {}
for source... | <commit_before>import json
resource_package = __name__
resource_path_format = 'datasource/{}.json'
class DatasourceRepository:
def __init__(self):
self.availableSources = json.loads(pkg_resources.resource_string(resource_package, resource_path_format.format('all')))['available']
self.data = {}
... |
e9949cdf609aeb99cfe97c37638c6cb80c947198 | longclaw/longclawshipping/wagtail_hooks.py | longclaw/longclawshipping/wagtail_hooks.py | from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register
)
from longclaw.longclawshipping.models import ShippingCountry
class ShippingCountryModelAdmin(ModelAdmin):
model = ShippingCountry
menu_order = 200
menu_icon = 'site'
add_to_settings_menu = False
exclude_from_exp... | from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register
)
from longclaw.longclawshipping.models import ShippingCountry
class ShippingCountryModelAdmin(ModelAdmin):
model = ShippingCountry
menu_label = 'Shipping'
menu_order = 200
menu_icon = 'site'
add_to_settings_menu ... | Rename shipping label in model admin | Rename shipping label in model admin
| Python | mit | JamesRamm/longclaw,JamesRamm/longclaw,JamesRamm/longclaw,JamesRamm/longclaw | from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register
)
from longclaw.longclawshipping.models import ShippingCountry
class ShippingCountryModelAdmin(ModelAdmin):
model = ShippingCountry
menu_order = 200
menu_icon = 'site'
add_to_settings_menu = False
exclude_from_exp... | from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register
)
from longclaw.longclawshipping.models import ShippingCountry
class ShippingCountryModelAdmin(ModelAdmin):
model = ShippingCountry
menu_label = 'Shipping'
menu_order = 200
menu_icon = 'site'
add_to_settings_menu ... | <commit_before>from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register
)
from longclaw.longclawshipping.models import ShippingCountry
class ShippingCountryModelAdmin(ModelAdmin):
model = ShippingCountry
menu_order = 200
menu_icon = 'site'
add_to_settings_menu = False
e... | from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register
)
from longclaw.longclawshipping.models import ShippingCountry
class ShippingCountryModelAdmin(ModelAdmin):
model = ShippingCountry
menu_label = 'Shipping'
menu_order = 200
menu_icon = 'site'
add_to_settings_menu ... | from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register
)
from longclaw.longclawshipping.models import ShippingCountry
class ShippingCountryModelAdmin(ModelAdmin):
model = ShippingCountry
menu_order = 200
menu_icon = 'site'
add_to_settings_menu = False
exclude_from_exp... | <commit_before>from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register
)
from longclaw.longclawshipping.models import ShippingCountry
class ShippingCountryModelAdmin(ModelAdmin):
model = ShippingCountry
menu_order = 200
menu_icon = 'site'
add_to_settings_menu = False
e... |
8eddab84f27d5c068f5da477e05736c222cac4e2 | mass/utils.py | mass/utils.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper functions.
"""
# built-in modules
import json
# 3rd-party modules
from botocore.client import Config
# local modules
from mass.exception import UnsupportedScheduler
from mass.input_handler import InputHandler
def submit(job, protocol=None, priority=1, sched... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper functions.
"""
# built-in modules
import json
# 3rd-party modules
from botocore.client import Config
# local modules
from mass.exception import UnsupportedScheduler
from mass.input_handler import InputHandler
def submit(job, protocol=None, priority=1, sched... | Use [job.title] as genealogy of input_handler.save while submit job. | Use [job.title] as genealogy of input_handler.save while submit job.
| Python | apache-2.0 | badboy99tw/mass,KKBOX/mass,KKBOX/mass,badboy99tw/mass,KKBOX/mass,badboy99tw/mass | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper functions.
"""
# built-in modules
import json
# 3rd-party modules
from botocore.client import Config
# local modules
from mass.exception import UnsupportedScheduler
from mass.input_handler import InputHandler
def submit(job, protocol=None, priority=1, sched... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper functions.
"""
# built-in modules
import json
# 3rd-party modules
from botocore.client import Config
# local modules
from mass.exception import UnsupportedScheduler
from mass.input_handler import InputHandler
def submit(job, protocol=None, priority=1, sched... | <commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper functions.
"""
# built-in modules
import json
# 3rd-party modules
from botocore.client import Config
# local modules
from mass.exception import UnsupportedScheduler
from mass.input_handler import InputHandler
def submit(job, protocol=None, pr... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper functions.
"""
# built-in modules
import json
# 3rd-party modules
from botocore.client import Config
# local modules
from mass.exception import UnsupportedScheduler
from mass.input_handler import InputHandler
def submit(job, protocol=None, priority=1, sched... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper functions.
"""
# built-in modules
import json
# 3rd-party modules
from botocore.client import Config
# local modules
from mass.exception import UnsupportedScheduler
from mass.input_handler import InputHandler
def submit(job, protocol=None, priority=1, sched... | <commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Helper functions.
"""
# built-in modules
import json
# 3rd-party modules
from botocore.client import Config
# local modules
from mass.exception import UnsupportedScheduler
from mass.input_handler import InputHandler
def submit(job, protocol=None, pr... |
fad484694174e17ef8de9af99db3dda5cd866fac | md2pdf/core.py | md2pdf/core.py | # -*- coding: utf-8 -*-
from markdown2 import markdown, markdown_path
from weasyprint import HTML, CSS
from .exceptions import ValidationError
__title__ = 'md2pdf'
__version__ = '0.2.1'
__author__ = 'Julien Maupetit'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Julien Maupetit'
def md2pdf(pdf_file_path, md_... | # -*- coding: utf-8 -*-
from markdown2 import markdown, markdown_path
from weasyprint import HTML, CSS
from .exceptions import ValidationError
__title__ = 'md2pdf'
__version__ = '0.2.1'
__author__ = 'Julien Maupetit'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Julien Maupetit'
def md2pdf(pdf_file_path, md_... | Fix raw md content rendering | Fix raw md content rendering
| Python | mit | jmaupetit/md2pdf | # -*- coding: utf-8 -*-
from markdown2 import markdown, markdown_path
from weasyprint import HTML, CSS
from .exceptions import ValidationError
__title__ = 'md2pdf'
__version__ = '0.2.1'
__author__ = 'Julien Maupetit'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Julien Maupetit'
def md2pdf(pdf_file_path, md_... | # -*- coding: utf-8 -*-
from markdown2 import markdown, markdown_path
from weasyprint import HTML, CSS
from .exceptions import ValidationError
__title__ = 'md2pdf'
__version__ = '0.2.1'
__author__ = 'Julien Maupetit'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Julien Maupetit'
def md2pdf(pdf_file_path, md_... | <commit_before># -*- coding: utf-8 -*-
from markdown2 import markdown, markdown_path
from weasyprint import HTML, CSS
from .exceptions import ValidationError
__title__ = 'md2pdf'
__version__ = '0.2.1'
__author__ = 'Julien Maupetit'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Julien Maupetit'
def md2pdf(pdf... | # -*- coding: utf-8 -*-
from markdown2 import markdown, markdown_path
from weasyprint import HTML, CSS
from .exceptions import ValidationError
__title__ = 'md2pdf'
__version__ = '0.2.1'
__author__ = 'Julien Maupetit'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Julien Maupetit'
def md2pdf(pdf_file_path, md_... | # -*- coding: utf-8 -*-
from markdown2 import markdown, markdown_path
from weasyprint import HTML, CSS
from .exceptions import ValidationError
__title__ = 'md2pdf'
__version__ = '0.2.1'
__author__ = 'Julien Maupetit'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Julien Maupetit'
def md2pdf(pdf_file_path, md_... | <commit_before># -*- coding: utf-8 -*-
from markdown2 import markdown, markdown_path
from weasyprint import HTML, CSS
from .exceptions import ValidationError
__title__ = 'md2pdf'
__version__ = '0.2.1'
__author__ = 'Julien Maupetit'
__license__ = 'MIT'
__copyright__ = 'Copyright 2013 Julien Maupetit'
def md2pdf(pdf... |
facaa380b9b0fbb8f5d6d4d7c6c24257235cbb65 | plugin.py | plugin.py | # -*- coding: utf-8 -*-
"""Load and Unload all GitGutter modules.
This module exports __all__ modules, which Sublime Text needs to know about.
The list of __all__ exported symbols is defined in modules/__init__.py.
"""
try:
from .modules import *
except ValueError:
from modules import *
def plugin_loaded():... | # -*- coding: utf-8 -*-
"""Load and Unload all GitGutter modules.
This module exports __all__ modules, which Sublime Text needs to know about.
The list of __all__ exported symbols is defined in modules/__init__.py.
"""
try:
from .modules import *
except ValueError:
from modules import *
except ImportError:
... | Handle module reload exceptions gracefully | Enhancement: Handle module reload exceptions gracefully
In some rare cases if the internal module structure has changed the 'reload' module can't recover all modules and will fail with ImportError. This is the situation we need to advice a restart of Sublime Text.
| Python | mit | jisaacks/GitGutter | # -*- coding: utf-8 -*-
"""Load and Unload all GitGutter modules.
This module exports __all__ modules, which Sublime Text needs to know about.
The list of __all__ exported symbols is defined in modules/__init__.py.
"""
try:
from .modules import *
except ValueError:
from modules import *
def plugin_loaded():... | # -*- coding: utf-8 -*-
"""Load and Unload all GitGutter modules.
This module exports __all__ modules, which Sublime Text needs to know about.
The list of __all__ exported symbols is defined in modules/__init__.py.
"""
try:
from .modules import *
except ValueError:
from modules import *
except ImportError:
... | <commit_before># -*- coding: utf-8 -*-
"""Load and Unload all GitGutter modules.
This module exports __all__ modules, which Sublime Text needs to know about.
The list of __all__ exported symbols is defined in modules/__init__.py.
"""
try:
from .modules import *
except ValueError:
from modules import *
def p... | # -*- coding: utf-8 -*-
"""Load and Unload all GitGutter modules.
This module exports __all__ modules, which Sublime Text needs to know about.
The list of __all__ exported symbols is defined in modules/__init__.py.
"""
try:
from .modules import *
except ValueError:
from modules import *
except ImportError:
... | # -*- coding: utf-8 -*-
"""Load and Unload all GitGutter modules.
This module exports __all__ modules, which Sublime Text needs to know about.
The list of __all__ exported symbols is defined in modules/__init__.py.
"""
try:
from .modules import *
except ValueError:
from modules import *
def plugin_loaded():... | <commit_before># -*- coding: utf-8 -*-
"""Load and Unload all GitGutter modules.
This module exports __all__ modules, which Sublime Text needs to know about.
The list of __all__ exported symbols is defined in modules/__init__.py.
"""
try:
from .modules import *
except ValueError:
from modules import *
def p... |
a07ac44d433981b7476ab3b57339797edddb368c | lenet_slim.py | lenet_slim.py | import tensorflow as tf
slim = tf.contrib.slim
def le_net(images, num_classes=10, scope='LeNet'):
with tf.variable_scope(scope, 'LeNet', [images, num_classes]):
net = slim.conv2d(images, 32, [5, 5], scope='conv1')
net = slim.max_pool2d(net, [2, 2], 2, scope='pool1')
net = slim.conv2d(net,... | import tensorflow as tf
slim = tf.contrib.slim
def le_net(images, num_classes=10, scope='LeNet'):
with tf.variable_scope(scope, 'LeNet', [images, num_classes]):
net = slim.conv2d(images, 32, [5, 5], scope='conv1')
net = slim.max_pool2d(net, [2, 2], 2, scope='pool1')
net = slim.conv2d(net,... | Fix the shape of gap_w | Fix the shape of gap_w | Python | mit | philipperemy/tensorflow-class-activation-mapping | import tensorflow as tf
slim = tf.contrib.slim
def le_net(images, num_classes=10, scope='LeNet'):
with tf.variable_scope(scope, 'LeNet', [images, num_classes]):
net = slim.conv2d(images, 32, [5, 5], scope='conv1')
net = slim.max_pool2d(net, [2, 2], 2, scope='pool1')
net = slim.conv2d(net,... | import tensorflow as tf
slim = tf.contrib.slim
def le_net(images, num_classes=10, scope='LeNet'):
with tf.variable_scope(scope, 'LeNet', [images, num_classes]):
net = slim.conv2d(images, 32, [5, 5], scope='conv1')
net = slim.max_pool2d(net, [2, 2], 2, scope='pool1')
net = slim.conv2d(net,... | <commit_before>import tensorflow as tf
slim = tf.contrib.slim
def le_net(images, num_classes=10, scope='LeNet'):
with tf.variable_scope(scope, 'LeNet', [images, num_classes]):
net = slim.conv2d(images, 32, [5, 5], scope='conv1')
net = slim.max_pool2d(net, [2, 2], 2, scope='pool1')
net = s... | import tensorflow as tf
slim = tf.contrib.slim
def le_net(images, num_classes=10, scope='LeNet'):
with tf.variable_scope(scope, 'LeNet', [images, num_classes]):
net = slim.conv2d(images, 32, [5, 5], scope='conv1')
net = slim.max_pool2d(net, [2, 2], 2, scope='pool1')
net = slim.conv2d(net,... | import tensorflow as tf
slim = tf.contrib.slim
def le_net(images, num_classes=10, scope='LeNet'):
with tf.variable_scope(scope, 'LeNet', [images, num_classes]):
net = slim.conv2d(images, 32, [5, 5], scope='conv1')
net = slim.max_pool2d(net, [2, 2], 2, scope='pool1')
net = slim.conv2d(net,... | <commit_before>import tensorflow as tf
slim = tf.contrib.slim
def le_net(images, num_classes=10, scope='LeNet'):
with tf.variable_scope(scope, 'LeNet', [images, num_classes]):
net = slim.conv2d(images, 32, [5, 5], scope='conv1')
net = slim.max_pool2d(net, [2, 2], 2, scope='pool1')
net = s... |
7f48dde064acbf1c192ab0bf303ac8e80e56e947 | wafer/kv/models.py | wafer/kv/models.py | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | from django.contrib.auth.models import Group
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from jsonfield import JSONField
@python_2_unicode_compatible
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(... | Use @python_2_unicode_compatible rather than repeating methods | Use @python_2_unicode_compatible rather than repeating methods
| Python | isc | CTPUG/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | from django.contrib.auth.models import Group
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from jsonfield import JSONField
@python_2_unicode_compatible
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(... | <commit_before>from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(s... | from django.contrib.auth.models import Group
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from jsonfield import JSONField
@python_2_unicode_compatible
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(... | from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(self):
r... | <commit_before>from django.contrib.auth.models import Group
from django.db import models
from jsonfield import JSONField
class KeyValue(models.Model):
group = models.ForeignKey(Group, on_delete=models.CASCADE)
key = models.CharField(max_length=64, db_index=True)
value = JSONField()
def __unicode__(s... |
9be09ccf5749fae1d7a72663d592de5a88a755eb | archive/archive_api/src/responses.py | archive/archive_api/src/responses.py | # -*- encoding: utf-8
import json
from flask import Response, jsonify
class ContextResponse(Response):
"""
This class adds the "@context" parameter to JSON responses before
they're sent to the user.
For an explanation of how this works/is used, read
https://blog.miguelgrinberg.com/post/customiz... | # -*- encoding: utf-8
import json
from flask import Response, jsonify
from werkzeug.wsgi import ClosingIterator
class ContextResponse(Response):
"""
This class adds the "@context" parameter to JSON responses before
they're sent to the user.
For an explanation of how this works/is used, read
htt... | Handle a Werkzeug ClosingIterator (as exposed by the tests) | Handle a Werkzeug ClosingIterator (as exposed by the tests)
| Python | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api | # -*- encoding: utf-8
import json
from flask import Response, jsonify
class ContextResponse(Response):
"""
This class adds the "@context" parameter to JSON responses before
they're sent to the user.
For an explanation of how this works/is used, read
https://blog.miguelgrinberg.com/post/customiz... | # -*- encoding: utf-8
import json
from flask import Response, jsonify
from werkzeug.wsgi import ClosingIterator
class ContextResponse(Response):
"""
This class adds the "@context" parameter to JSON responses before
they're sent to the user.
For an explanation of how this works/is used, read
htt... | <commit_before># -*- encoding: utf-8
import json
from flask import Response, jsonify
class ContextResponse(Response):
"""
This class adds the "@context" parameter to JSON responses before
they're sent to the user.
For an explanation of how this works/is used, read
https://blog.miguelgrinberg.co... | # -*- encoding: utf-8
import json
from flask import Response, jsonify
from werkzeug.wsgi import ClosingIterator
class ContextResponse(Response):
"""
This class adds the "@context" parameter to JSON responses before
they're sent to the user.
For an explanation of how this works/is used, read
htt... | # -*- encoding: utf-8
import json
from flask import Response, jsonify
class ContextResponse(Response):
"""
This class adds the "@context" parameter to JSON responses before
they're sent to the user.
For an explanation of how this works/is used, read
https://blog.miguelgrinberg.com/post/customiz... | <commit_before># -*- encoding: utf-8
import json
from flask import Response, jsonify
class ContextResponse(Response):
"""
This class adds the "@context" parameter to JSON responses before
they're sent to the user.
For an explanation of how this works/is used, read
https://blog.miguelgrinberg.co... |
939e5721300013b2977375f28897a6a573509112 | xml4h/exceptions.py | xml4h/exceptions.py | """
Custom *xml4h* exceptions.
"""
class BaseXml4hException(Exception):
"""
Base exception class for all non-standard exceptions raised by *xml4h*.
"""
pass
class FeatureUnavailableException(BaseXml4hException):
"""
User has attempted to use a feature that is available in some *xml4h*
im... | """
Custom *xml4h* exceptions.
"""
class Xml4hException(Exception):
"""
Base exception class for all non-standard exceptions raised by *xml4h*.
"""
pass
class FeatureUnavailableException(Xml4hException):
"""
User has attempted to use a feature that is available in some *xml4h*
implementa... | Rename base exception class; less ugly | Rename base exception class; less ugly
| Python | mit | jmurty/xml4h,pipermerriam/xml4h,czardoz/xml4h | """
Custom *xml4h* exceptions.
"""
class BaseXml4hException(Exception):
"""
Base exception class for all non-standard exceptions raised by *xml4h*.
"""
pass
class FeatureUnavailableException(BaseXml4hException):
"""
User has attempted to use a feature that is available in some *xml4h*
im... | """
Custom *xml4h* exceptions.
"""
class Xml4hException(Exception):
"""
Base exception class for all non-standard exceptions raised by *xml4h*.
"""
pass
class FeatureUnavailableException(Xml4hException):
"""
User has attempted to use a feature that is available in some *xml4h*
implementa... | <commit_before>"""
Custom *xml4h* exceptions.
"""
class BaseXml4hException(Exception):
"""
Base exception class for all non-standard exceptions raised by *xml4h*.
"""
pass
class FeatureUnavailableException(BaseXml4hException):
"""
User has attempted to use a feature that is available in some... | """
Custom *xml4h* exceptions.
"""
class Xml4hException(Exception):
"""
Base exception class for all non-standard exceptions raised by *xml4h*.
"""
pass
class FeatureUnavailableException(Xml4hException):
"""
User has attempted to use a feature that is available in some *xml4h*
implementa... | """
Custom *xml4h* exceptions.
"""
class BaseXml4hException(Exception):
"""
Base exception class for all non-standard exceptions raised by *xml4h*.
"""
pass
class FeatureUnavailableException(BaseXml4hException):
"""
User has attempted to use a feature that is available in some *xml4h*
im... | <commit_before>"""
Custom *xml4h* exceptions.
"""
class BaseXml4hException(Exception):
"""
Base exception class for all non-standard exceptions raised by *xml4h*.
"""
pass
class FeatureUnavailableException(BaseXml4hException):
"""
User has attempted to use a feature that is available in some... |
a23e211ebdee849543cd7c729a8dafc145ea6b5c | TorGTK/var.py | TorGTK/var.py | from gi.repository import Gtk
import tempfile
import os.path
version = "0.2.2"
# Define default port numbers
default_socks_port = 19050
default_control_port = 19051
# Tor process descriptor placeholder
tor_process = None
# Tor logfile location placeholder
tor_logfile_dir = tempfile.mkdtemp()
tor_logfile_location = ... | from gi.repository import Gtk
import tempfile
import os.path
import platform
version = "0.2.2"
# Define default port numbers
default_socks_port = 19050
default_control_port = 19051
# Tor process descriptor placeholder
tor_process = None
# Tor logfile location placeholder
tor_logfile_dir = tempfile.mkdtemp()
tor_log... | Add OS detection (mainly Windows vs Unix) to preferences directory selection | Add OS detection (mainly Windows vs Unix) to preferences directory selection
| Python | bsd-2-clause | neelchauhan/TorGTK,neelchauhan/TorNova | from gi.repository import Gtk
import tempfile
import os.path
version = "0.2.2"
# Define default port numbers
default_socks_port = 19050
default_control_port = 19051
# Tor process descriptor placeholder
tor_process = None
# Tor logfile location placeholder
tor_logfile_dir = tempfile.mkdtemp()
tor_logfile_location = ... | from gi.repository import Gtk
import tempfile
import os.path
import platform
version = "0.2.2"
# Define default port numbers
default_socks_port = 19050
default_control_port = 19051
# Tor process descriptor placeholder
tor_process = None
# Tor logfile location placeholder
tor_logfile_dir = tempfile.mkdtemp()
tor_log... | <commit_before>from gi.repository import Gtk
import tempfile
import os.path
version = "0.2.2"
# Define default port numbers
default_socks_port = 19050
default_control_port = 19051
# Tor process descriptor placeholder
tor_process = None
# Tor logfile location placeholder
tor_logfile_dir = tempfile.mkdtemp()
tor_logf... | from gi.repository import Gtk
import tempfile
import os.path
import platform
version = "0.2.2"
# Define default port numbers
default_socks_port = 19050
default_control_port = 19051
# Tor process descriptor placeholder
tor_process = None
# Tor logfile location placeholder
tor_logfile_dir = tempfile.mkdtemp()
tor_log... | from gi.repository import Gtk
import tempfile
import os.path
version = "0.2.2"
# Define default port numbers
default_socks_port = 19050
default_control_port = 19051
# Tor process descriptor placeholder
tor_process = None
# Tor logfile location placeholder
tor_logfile_dir = tempfile.mkdtemp()
tor_logfile_location = ... | <commit_before>from gi.repository import Gtk
import tempfile
import os.path
version = "0.2.2"
# Define default port numbers
default_socks_port = 19050
default_control_port = 19051
# Tor process descriptor placeholder
tor_process = None
# Tor logfile location placeholder
tor_logfile_dir = tempfile.mkdtemp()
tor_logf... |
3e54119f07b0fdcbbe556e86de3c161a3eb20ddf | mwikiircbot.py | mwikiircbot.py | import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD)
self.... | import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD)
self.... | Fix bot not joining any channels | Fix bot not joining any channels
Also removed unnecessary usage comment.
| Python | mit | fenhl/mwikiircbot | import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD)
self.... | import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD)
self.... | <commit_before>import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD... | import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD)
self.... | import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD)
self.... | <commit_before>import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD... |
e91a923efd7cff36368059f47ffbd52248362305 | me_api/middleware/me.py | me_api/middleware/me.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Blueprint, jsonify
from me_api.configs import Config
me = Blueprint('me', __name__)
@me.route('/')
def index():
routers = []
for module in Config.modules['modules'].values():
routers.append(modu... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Blueprint, jsonify
from me_api.configs import Config
me = Blueprint('me', __name__)
@me.route('/')
def index():
routers = [module_config['path'] for module_config in
Config.modules['modules']... | Improve the way that get all the routers | Improve the way that get all the routers
| Python | mit | lord63/me-api | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Blueprint, jsonify
from me_api.configs import Config
me = Blueprint('me', __name__)
@me.route('/')
def index():
routers = []
for module in Config.modules['modules'].values():
routers.append(modu... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Blueprint, jsonify
from me_api.configs import Config
me = Blueprint('me', __name__)
@me.route('/')
def index():
routers = [module_config['path'] for module_config in
Config.modules['modules']... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Blueprint, jsonify
from me_api.configs import Config
me = Blueprint('me', __name__)
@me.route('/')
def index():
routers = []
for module in Config.modules['modules'].values():
rout... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Blueprint, jsonify
from me_api.configs import Config
me = Blueprint('me', __name__)
@me.route('/')
def index():
routers = [module_config['path'] for module_config in
Config.modules['modules']... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Blueprint, jsonify
from me_api.configs import Config
me = Blueprint('me', __name__)
@me.route('/')
def index():
routers = []
for module in Config.modules['modules'].values():
routers.append(modu... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Blueprint, jsonify
from me_api.configs import Config
me = Blueprint('me', __name__)
@me.route('/')
def index():
routers = []
for module in Config.modules['modules'].values():
rout... |
850fba4b07e4c444aa8640c6f4c3816f8a3259ea | website_medical_patient_species/controllers/main.py | website_medical_patient_species/controllers/main.py | # -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import http
from openerp.http import request
from openerp.addons.website_medical.controllers.main import (
WebsiteMedical
)
class WebsiteMedical(WebsiteMedical):
def _inje... | # -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.http import request
from openerp.addons.website_medical.controllers.main import (
WebsiteMedical
)
class WebsiteMedical(WebsiteMedical):
def _inject_medical_detail_vals(se... | Fix lint * Remove stray import to fix lint | [FIX] website_medical_patient_species: Fix lint
* Remove stray import to fix lint
| Python | agpl-3.0 | laslabs/vertical-medical,laslabs/vertical-medical | # -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import http
from openerp.http import request
from openerp.addons.website_medical.controllers.main import (
WebsiteMedical
)
class WebsiteMedical(WebsiteMedical):
def _inje... | # -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.http import request
from openerp.addons.website_medical.controllers.main import (
WebsiteMedical
)
class WebsiteMedical(WebsiteMedical):
def _inject_medical_detail_vals(se... | <commit_before># -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import http
from openerp.http import request
from openerp.addons.website_medical.controllers.main import (
WebsiteMedical
)
class WebsiteMedical(WebsiteMedical):... | # -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.http import request
from openerp.addons.website_medical.controllers.main import (
WebsiteMedical
)
class WebsiteMedical(WebsiteMedical):
def _inject_medical_detail_vals(se... | # -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import http
from openerp.http import request
from openerp.addons.website_medical.controllers.main import (
WebsiteMedical
)
class WebsiteMedical(WebsiteMedical):
def _inje... | <commit_before># -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import http
from openerp.http import request
from openerp.addons.website_medical.controllers.main import (
WebsiteMedical
)
class WebsiteMedical(WebsiteMedical):... |
b94697fe7b4299f66336f56fb98f1c902278caed | polling_stations/apps/data_collection/management/commands/import_havant.py | polling_stations/apps/data_collection/management/commands/import_havant.py | from data_collection.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = 'E07000090'
addresses_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-03-20.TSV'
stations_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-... | from data_collection.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = 'E07000090'
addresses_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-03-20.TSV'
stations_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-... | Remove Havant election id (update expected) | Remove Havant election id (update expected)
| Python | bsd-3-clause | DemocracyClub/UK-Polling-Stations,chris48s/UK-Polling-Stations,chris48s/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,chris48s/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations | from data_collection.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = 'E07000090'
addresses_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-03-20.TSV'
stations_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-... | from data_collection.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = 'E07000090'
addresses_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-03-20.TSV'
stations_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-... | <commit_before>from data_collection.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = 'E07000090'
addresses_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-03-20.TSV'
stations_name = 'HavantPropertyPostCodePollingStation... | from data_collection.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = 'E07000090'
addresses_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-03-20.TSV'
stations_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-... | from data_collection.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = 'E07000090'
addresses_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-03-20.TSV'
stations_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-... | <commit_before>from data_collection.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = 'E07000090'
addresses_name = 'HavantPropertyPostCodePollingStationWebLookup-2017-03-20.TSV'
stations_name = 'HavantPropertyPostCodePollingStation... |
bd1df334d68c82b0fc57b4c20da7844155382f83 | numpy-array-of-tuple.py | numpy-array-of-tuple.py | # Numpy converts a list of tuples *not* into an array of tuples, but into a 2D
# array instead.
list_of_tuples = [(1, 2), (3, 4)]
import numpy as np
print('list of tuples:', list_of_tuples, 'type:', type(list_of_tuples))
A = np.array(list_of_tuples)
print('numpy array of tuples:', A, 'type:', type(A))
# It makes comp... | # Numpy converts a list of tuples *not* into an array of tuples, but into a 2D
# array instead.
import numpy as np # 1.11.1
list_of_tuples = [(1, 2), (3, 4)]
print('list of tuples:', list_of_tuples, 'type:', type(list_of_tuples))
A = np.array(list_of_tuples)
print('numpy array of tuples:', A, 'type:', type(A))
# I... | Update numpy array of tuples with np version | Update numpy array of tuples with np version
| Python | mit | cmey/surprising-snippets,cmey/surprising-snippets | # Numpy converts a list of tuples *not* into an array of tuples, but into a 2D
# array instead.
list_of_tuples = [(1, 2), (3, 4)]
import numpy as np
print('list of tuples:', list_of_tuples, 'type:', type(list_of_tuples))
A = np.array(list_of_tuples)
print('numpy array of tuples:', A, 'type:', type(A))
# It makes comp... | # Numpy converts a list of tuples *not* into an array of tuples, but into a 2D
# array instead.
import numpy as np # 1.11.1
list_of_tuples = [(1, 2), (3, 4)]
print('list of tuples:', list_of_tuples, 'type:', type(list_of_tuples))
A = np.array(list_of_tuples)
print('numpy array of tuples:', A, 'type:', type(A))
# I... | <commit_before># Numpy converts a list of tuples *not* into an array of tuples, but into a 2D
# array instead.
list_of_tuples = [(1, 2), (3, 4)]
import numpy as np
print('list of tuples:', list_of_tuples, 'type:', type(list_of_tuples))
A = np.array(list_of_tuples)
print('numpy array of tuples:', A, 'type:', type(A))
... | # Numpy converts a list of tuples *not* into an array of tuples, but into a 2D
# array instead.
import numpy as np # 1.11.1
list_of_tuples = [(1, 2), (3, 4)]
print('list of tuples:', list_of_tuples, 'type:', type(list_of_tuples))
A = np.array(list_of_tuples)
print('numpy array of tuples:', A, 'type:', type(A))
# I... | # Numpy converts a list of tuples *not* into an array of tuples, but into a 2D
# array instead.
list_of_tuples = [(1, 2), (3, 4)]
import numpy as np
print('list of tuples:', list_of_tuples, 'type:', type(list_of_tuples))
A = np.array(list_of_tuples)
print('numpy array of tuples:', A, 'type:', type(A))
# It makes comp... | <commit_before># Numpy converts a list of tuples *not* into an array of tuples, but into a 2D
# array instead.
list_of_tuples = [(1, 2), (3, 4)]
import numpy as np
print('list of tuples:', list_of_tuples, 'type:', type(list_of_tuples))
A = np.array(list_of_tuples)
print('numpy array of tuples:', A, 'type:', type(A))
... |
717339f2cb2aed818729a407009a30de53b62a2c | oocgcm/test/test_eos.py | oocgcm/test/test_eos.py | import os
import numpy as np
import xarray as xr
from . import TestCase, assert_equal,assert_allclose,requires_numba
from oocgcm.oceanfuncs.eos import misc
@requires_numba
def test_numpy_spice():
assert_allclose(misc._spice(15,33),0.54458641375)
| import os
import numpy as np
import xarray as xr
from . import TestCase, assert_equal,assert_allclose,requires_numba,has_numba
if has_numba:
from oocgcm.oceanfuncs.eos import misc
@requires_numba
def test_numpy_spice():
assert_allclose(misc._spice(15,33),0.54458641375)
| Fix has_numba for travis build | Fix has_numba for travis build
| Python | apache-2.0 | lesommer/oocgcm | import os
import numpy as np
import xarray as xr
from . import TestCase, assert_equal,assert_allclose,requires_numba
from oocgcm.oceanfuncs.eos import misc
@requires_numba
def test_numpy_spice():
assert_allclose(misc._spice(15,33),0.54458641375)
Fix has_numba for travis build | import os
import numpy as np
import xarray as xr
from . import TestCase, assert_equal,assert_allclose,requires_numba,has_numba
if has_numba:
from oocgcm.oceanfuncs.eos import misc
@requires_numba
def test_numpy_spice():
assert_allclose(misc._spice(15,33),0.54458641375)
| <commit_before>import os
import numpy as np
import xarray as xr
from . import TestCase, assert_equal,assert_allclose,requires_numba
from oocgcm.oceanfuncs.eos import misc
@requires_numba
def test_numpy_spice():
assert_allclose(misc._spice(15,33),0.54458641375)
<commit_msg>Fix has_numba for travis build<commit_a... | import os
import numpy as np
import xarray as xr
from . import TestCase, assert_equal,assert_allclose,requires_numba,has_numba
if has_numba:
from oocgcm.oceanfuncs.eos import misc
@requires_numba
def test_numpy_spice():
assert_allclose(misc._spice(15,33),0.54458641375)
| import os
import numpy as np
import xarray as xr
from . import TestCase, assert_equal,assert_allclose,requires_numba
from oocgcm.oceanfuncs.eos import misc
@requires_numba
def test_numpy_spice():
assert_allclose(misc._spice(15,33),0.54458641375)
Fix has_numba for travis buildimport os
import numpy as np
import... | <commit_before>import os
import numpy as np
import xarray as xr
from . import TestCase, assert_equal,assert_allclose,requires_numba
from oocgcm.oceanfuncs.eos import misc
@requires_numba
def test_numpy_spice():
assert_allclose(misc._spice(15,33),0.54458641375)
<commit_msg>Fix has_numba for travis build<commit_a... |
d60ce9b23bcf2f8c60b2a8ce75eeba8779345b8b | Orange/tests/__init__.py | Orange/tests/__init__.py | import os
import unittest
from Orange.widgets.tests import test_setting_provider, \
test_settings_handler, test_context_handler, \
test_class_values_context_handler, test_domain_context_handler
from Orange.widgets.data.tests import test_owselectcolumns
try:
from Orange.widgets.tests import test_widget
... | import os
import unittest
from Orange.widgets.tests import test_setting_provider, \
test_settings_handler, test_context_handler, \
test_class_values_context_handler, test_domain_context_handler
from Orange.widgets.data.tests import test_owselectcolumns
try:
from Orange.widgets.tests import test_widget
... | Disable widget test. (does not run on travis) | Disable widget test. (does not run on travis)
| Python | bsd-2-clause | marinkaz/orange3,cheral/orange3,qPCR4vir/orange3,kwikadi/orange3,kwikadi/orange3,kwikadi/orange3,cheral/orange3,qusp/orange3,marinkaz/orange3,cheral/orange3,qPCR4vir/orange3,qusp/orange3,qPCR4vir/orange3,marinkaz/orange3,marinkaz/orange3,kwikadi/orange3,cheral/orange3,kwikadi/orange3,qPCR4vir/orange3,qPCR4vir/orange3,q... | import os
import unittest
from Orange.widgets.tests import test_setting_provider, \
test_settings_handler, test_context_handler, \
test_class_values_context_handler, test_domain_context_handler
from Orange.widgets.data.tests import test_owselectcolumns
try:
from Orange.widgets.tests import test_widget
... | import os
import unittest
from Orange.widgets.tests import test_setting_provider, \
test_settings_handler, test_context_handler, \
test_class_values_context_handler, test_domain_context_handler
from Orange.widgets.data.tests import test_owselectcolumns
try:
from Orange.widgets.tests import test_widget
... | <commit_before>import os
import unittest
from Orange.widgets.tests import test_setting_provider, \
test_settings_handler, test_context_handler, \
test_class_values_context_handler, test_domain_context_handler
from Orange.widgets.data.tests import test_owselectcolumns
try:
from Orange.widgets.tests import ... | import os
import unittest
from Orange.widgets.tests import test_setting_provider, \
test_settings_handler, test_context_handler, \
test_class_values_context_handler, test_domain_context_handler
from Orange.widgets.data.tests import test_owselectcolumns
try:
from Orange.widgets.tests import test_widget
... | import os
import unittest
from Orange.widgets.tests import test_setting_provider, \
test_settings_handler, test_context_handler, \
test_class_values_context_handler, test_domain_context_handler
from Orange.widgets.data.tests import test_owselectcolumns
try:
from Orange.widgets.tests import test_widget
... | <commit_before>import os
import unittest
from Orange.widgets.tests import test_setting_provider, \
test_settings_handler, test_context_handler, \
test_class_values_context_handler, test_domain_context_handler
from Orange.widgets.data.tests import test_owselectcolumns
try:
from Orange.widgets.tests import ... |
083a4066ed82065aa1b00cb714a7829dc2571327 | crypto_enigma/_version.py | crypto_enigma/_version.py | #!/usr/bin/env python
# encoding: utf8
"""
Description
.. note::
Any additional note.
"""
from __future__ import (absolute_import, print_function, division, unicode_literals)
# See - http://www.python.org/dev/peps/pep-0440/
# See - http://semver.org
__author__ = 'Roy Levien'
__copyright__ = '(c) 2014-2015 Roy ... | #!/usr/bin/env python
# encoding: utf8
"""
Description
.. note::
Any additional note.
"""
from __future__ import (absolute_import, print_function, division, unicode_literals)
# See - http://www.python.org/dev/peps/pep-0440/
# See - http://semver.org
__author__ = 'Roy Levien'
__copyright__ = '(c) 2014-2015 Roy ... | Update test version following release | Update test version following release
| Python | bsd-3-clause | orome/crypto-enigma-py | #!/usr/bin/env python
# encoding: utf8
"""
Description
.. note::
Any additional note.
"""
from __future__ import (absolute_import, print_function, division, unicode_literals)
# See - http://www.python.org/dev/peps/pep-0440/
# See - http://semver.org
__author__ = 'Roy Levien'
__copyright__ = '(c) 2014-2015 Roy ... | #!/usr/bin/env python
# encoding: utf8
"""
Description
.. note::
Any additional note.
"""
from __future__ import (absolute_import, print_function, division, unicode_literals)
# See - http://www.python.org/dev/peps/pep-0440/
# See - http://semver.org
__author__ = 'Roy Levien'
__copyright__ = '(c) 2014-2015 Roy ... | <commit_before>#!/usr/bin/env python
# encoding: utf8
"""
Description
.. note::
Any additional note.
"""
from __future__ import (absolute_import, print_function, division, unicode_literals)
# See - http://www.python.org/dev/peps/pep-0440/
# See - http://semver.org
__author__ = 'Roy Levien'
__copyright__ = '(c)... | #!/usr/bin/env python
# encoding: utf8
"""
Description
.. note::
Any additional note.
"""
from __future__ import (absolute_import, print_function, division, unicode_literals)
# See - http://www.python.org/dev/peps/pep-0440/
# See - http://semver.org
__author__ = 'Roy Levien'
__copyright__ = '(c) 2014-2015 Roy ... | #!/usr/bin/env python
# encoding: utf8
"""
Description
.. note::
Any additional note.
"""
from __future__ import (absolute_import, print_function, division, unicode_literals)
# See - http://www.python.org/dev/peps/pep-0440/
# See - http://semver.org
__author__ = 'Roy Levien'
__copyright__ = '(c) 2014-2015 Roy ... | <commit_before>#!/usr/bin/env python
# encoding: utf8
"""
Description
.. note::
Any additional note.
"""
from __future__ import (absolute_import, print_function, division, unicode_literals)
# See - http://www.python.org/dev/peps/pep-0440/
# See - http://semver.org
__author__ = 'Roy Levien'
__copyright__ = '(c)... |
ed1a14ef8f2038950b7e56c7ae5c21daa1d6618a | ordered_model/models.py | ordered_model/models.py | from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
class OrderedModel(models.Model):
"""
An abstract model that allows objects to be ordered relative to each other.
Provides an ``order`` field.
"""
order = models.Po... | from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models import Max
class OrderedModel(models.Model):
"""
An abstract model that allows objects to be ordered relative to each other.
Provides an ``order`` fiel... | Use aggregate Max to fetch new order value. | Use aggregate Max to fetch new order value.
| Python | bsd-3-clause | foozmeat/django-ordered-model,foozmeat/django-ordered-model,pombredanne/django-ordered-model,pombredanne/django-ordered-model,pombredanne/django-ordered-model,foozmeat/django-ordered-model | from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
class OrderedModel(models.Model):
"""
An abstract model that allows objects to be ordered relative to each other.
Provides an ``order`` field.
"""
order = models.Po... | from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models import Max
class OrderedModel(models.Model):
"""
An abstract model that allows objects to be ordered relative to each other.
Provides an ``order`` fiel... | <commit_before>from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
class OrderedModel(models.Model):
"""
An abstract model that allows objects to be ordered relative to each other.
Provides an ``order`` field.
"""
or... | from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models import Max
class OrderedModel(models.Model):
"""
An abstract model that allows objects to be ordered relative to each other.
Provides an ``order`` fiel... | from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
class OrderedModel(models.Model):
"""
An abstract model that allows objects to be ordered relative to each other.
Provides an ``order`` field.
"""
order = models.Po... | <commit_before>from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
class OrderedModel(models.Model):
"""
An abstract model that allows objects to be ordered relative to each other.
Provides an ``order`` field.
"""
or... |
6443a0fed1b915745c591f425027d07216d28e12 | podium/urls.py | podium/urls.py | """podium URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | """podium URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | Use include, not a view, for the root URL. | Use include, not a view, for the root URL.
| Python | mit | pyatl/podium-django,pyatl/podium-django,pyatl/podium-django | """podium URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | """podium URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | <commit_before>"""podium URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='h... | """podium URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | """podium URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | <commit_before>"""podium URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='h... |
04c32537f7925aaeb54d8d7aa6da34ce85479c2c | mistraldashboard/test/helpers.py | mistraldashboard/test/helpers.py | # Copyright 2015 Huawei Technologies Co., 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 applic... | # Copyright 2015 Huawei Technologies Co., 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 applic... | Drop mox, no longer needed | Drop mox, no longer needed
The porting of mistral-dashboard is complete.
This fullfills the community goal "Remove Use of mox/mox3 for Testing"
set for Rocky: https://governance.openstack.org/tc/goals/rocky/mox_removal.html
Remove use_mox and remove dead code.
Change-Id: I59839fecd85caaf8b81129b7f890c4ed50d39db8
Sig... | Python | apache-2.0 | openstack/mistral-dashboard,openstack/mistral-dashboard,openstack/mistral-dashboard | # Copyright 2015 Huawei Technologies Co., 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 applic... | # Copyright 2015 Huawei Technologies Co., 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 applic... | <commit_before># Copyright 2015 Huawei Technologies Co., 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 req... | # Copyright 2015 Huawei Technologies Co., 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 applic... | # Copyright 2015 Huawei Technologies Co., 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 applic... | <commit_before># Copyright 2015 Huawei Technologies Co., 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 req... |
087a706fb8cadf98e3bd515427665997ca2001ba | tests/pytests/functional/states/test_npm.py | tests/pytests/functional/states/test_npm.py | import pytest
from salt.exceptions import CommandExecutionError
@pytest.fixture(scope="module", autouse=True)
def install_npm(sminion):
try:
sminion.functions.pkg.install("npm")
# Just name the thing we're looking for
sminion.functions.npm # pylint: disable=pointless-statement
except ... | import pytest
from salt.exceptions import CommandExecutionError
@pytest.fixture(scope="module", autouse=True)
def install_npm(sminion):
try:
sminion.functions.state.single("pkg.installed", name="npm")
# Just name the thing we're looking for
sminion.functions.npm # pylint: disable=pointles... | Use state.single to not upgrade npm | Use state.single to not upgrade npm
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | import pytest
from salt.exceptions import CommandExecutionError
@pytest.fixture(scope="module", autouse=True)
def install_npm(sminion):
try:
sminion.functions.pkg.install("npm")
# Just name the thing we're looking for
sminion.functions.npm # pylint: disable=pointless-statement
except ... | import pytest
from salt.exceptions import CommandExecutionError
@pytest.fixture(scope="module", autouse=True)
def install_npm(sminion):
try:
sminion.functions.state.single("pkg.installed", name="npm")
# Just name the thing we're looking for
sminion.functions.npm # pylint: disable=pointles... | <commit_before>import pytest
from salt.exceptions import CommandExecutionError
@pytest.fixture(scope="module", autouse=True)
def install_npm(sminion):
try:
sminion.functions.pkg.install("npm")
# Just name the thing we're looking for
sminion.functions.npm # pylint: disable=pointless-statem... | import pytest
from salt.exceptions import CommandExecutionError
@pytest.fixture(scope="module", autouse=True)
def install_npm(sminion):
try:
sminion.functions.state.single("pkg.installed", name="npm")
# Just name the thing we're looking for
sminion.functions.npm # pylint: disable=pointles... | import pytest
from salt.exceptions import CommandExecutionError
@pytest.fixture(scope="module", autouse=True)
def install_npm(sminion):
try:
sminion.functions.pkg.install("npm")
# Just name the thing we're looking for
sminion.functions.npm # pylint: disable=pointless-statement
except ... | <commit_before>import pytest
from salt.exceptions import CommandExecutionError
@pytest.fixture(scope="module", autouse=True)
def install_npm(sminion):
try:
sminion.functions.pkg.install("npm")
# Just name the thing we're looking for
sminion.functions.npm # pylint: disable=pointless-statem... |
3071684f73e736950023be9f47c93dd31c50be1c | send2trash/compat.py | send2trash/compat.py | # Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY3:
text_typ... | # Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY3:
text_typ... | Fix newly-introduced crash under Windows | Fix newly-introduced crash under Windows
ref #14
| Python | bsd-3-clause | hsoft/send2trash | # Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY3:
text_typ... | # Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY3:
text_typ... | <commit_before># Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY... | # Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY3:
text_typ... | # Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY3:
text_typ... | <commit_before># Copyright 2017 Virgil Dupras
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import sys
import os
PY3 = sys.version_info[0] >= 3
if PY... |
6fcc041c45dc426d570aa4c44e48c3fc9d8fd5c0 | settings/settings.py | settings/settings.py | # This file contains the project wide settings. It is not
# part of version control and it should be adapted to
# suit each deployment.
from os import environ
# Use the absolute path to the directory that stores the data.
# This can differ per deployment
DATA_DIRECTORY = "/cheshire3/clic/dbs/dickens/data/"
#TODO: ... | # This file contains the project wide settings. It is not
# part of version control and it should be adapted to
# suit each deployment.
from os import environ
# Use the absolute path to the directory that stores the data.
# This can differ per deployment
DATA_DIRECTORY = "/home/vagrant/code/clic-project/clic/dbs/di... | Update the setting DATA_DIRECTORY to match the vagrant setup | Update the setting DATA_DIRECTORY to match the vagrant setup
| Python | mit | CentreForCorpusResearch/clic,CentreForCorpusResearch/clic,CentreForResearchInAppliedLinguistics/clic,CentreForResearchInAppliedLinguistics/clic,CentreForResearchInAppliedLinguistics/clic,CentreForCorpusResearch/clic | # This file contains the project wide settings. It is not
# part of version control and it should be adapted to
# suit each deployment.
from os import environ
# Use the absolute path to the directory that stores the data.
# This can differ per deployment
DATA_DIRECTORY = "/cheshire3/clic/dbs/dickens/data/"
#TODO: ... | # This file contains the project wide settings. It is not
# part of version control and it should be adapted to
# suit each deployment.
from os import environ
# Use the absolute path to the directory that stores the data.
# This can differ per deployment
DATA_DIRECTORY = "/home/vagrant/code/clic-project/clic/dbs/di... | <commit_before># This file contains the project wide settings. It is not
# part of version control and it should be adapted to
# suit each deployment.
from os import environ
# Use the absolute path to the directory that stores the data.
# This can differ per deployment
DATA_DIRECTORY = "/cheshire3/clic/dbs/dickens/... | # This file contains the project wide settings. It is not
# part of version control and it should be adapted to
# suit each deployment.
from os import environ
# Use the absolute path to the directory that stores the data.
# This can differ per deployment
DATA_DIRECTORY = "/home/vagrant/code/clic-project/clic/dbs/di... | # This file contains the project wide settings. It is not
# part of version control and it should be adapted to
# suit each deployment.
from os import environ
# Use the absolute path to the directory that stores the data.
# This can differ per deployment
DATA_DIRECTORY = "/cheshire3/clic/dbs/dickens/data/"
#TODO: ... | <commit_before># This file contains the project wide settings. It is not
# part of version control and it should be adapted to
# suit each deployment.
from os import environ
# Use the absolute path to the directory that stores the data.
# This can differ per deployment
DATA_DIRECTORY = "/cheshire3/clic/dbs/dickens/... |
11b70d10b07c38c1d84b58f5e8563a43c44d8f91 | pyop/tests.py | pyop/tests.py | '''
These are tests to assist with creating :class:`.LinearOperator`.
'''
import numpy as np
from numpy.testing import assert_allclose
def adjointTest(O, significant = 7):
''' Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward and adjoint funct... | '''
These are tests to assist with creating :class:`.LinearOperator`.
'''
import numpy as np
from numpy.testing import assert_allclose
def adjointTest(O, significant = 7):
''' Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward and adjoint funct... | Fix wrong rtol in adjointTest | Fix wrong rtol in adjointTest | Python | bsd-3-clause | ryanorendorff/pyop | '''
These are tests to assist with creating :class:`.LinearOperator`.
'''
import numpy as np
from numpy.testing import assert_allclose
def adjointTest(O, significant = 7):
''' Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward and adjoint funct... | '''
These are tests to assist with creating :class:`.LinearOperator`.
'''
import numpy as np
from numpy.testing import assert_allclose
def adjointTest(O, significant = 7):
''' Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward and adjoint funct... | <commit_before>'''
These are tests to assist with creating :class:`.LinearOperator`.
'''
import numpy as np
from numpy.testing import assert_allclose
def adjointTest(O, significant = 7):
''' Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward an... | '''
These are tests to assist with creating :class:`.LinearOperator`.
'''
import numpy as np
from numpy.testing import assert_allclose
def adjointTest(O, significant = 7):
''' Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward and adjoint funct... | '''
These are tests to assist with creating :class:`.LinearOperator`.
'''
import numpy as np
from numpy.testing import assert_allclose
def adjointTest(O, significant = 7):
''' Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward and adjoint funct... | <commit_before>'''
These are tests to assist with creating :class:`.LinearOperator`.
'''
import numpy as np
from numpy.testing import assert_allclose
def adjointTest(O, significant = 7):
''' Test for verifying forward and adjoint functions in LinearOperator.
adjointTest verifies correctness for the forward an... |
1b6217eea2284814583447901661823f3a3d0240 | service/scheduler/schedule.py | service/scheduler/schedule.py | import os
import sys
import time
from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler
sys.path.append('/usr/local/d1lod')
from d1lod import jobs
conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)
sched = BlockingScheduler()
@sched.sc... | import os
import sys
import time
from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler
sys.path.append('/usr/local/d1lod')
from d1lod import jobs
conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)
sched = BlockingScheduler()
@sched.sc... | Add export job and print_job jobs | Add export job and print_job jobs
| Python | apache-2.0 | ec-geolink/d1lod,ec-geolink/d1lod,ec-geolink/d1lod,ec-geolink/d1lod | import os
import sys
import time
from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler
sys.path.append('/usr/local/d1lod')
from d1lod import jobs
conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)
sched = BlockingScheduler()
@sched.sc... | import os
import sys
import time
from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler
sys.path.append('/usr/local/d1lod')
from d1lod import jobs
conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)
sched = BlockingScheduler()
@sched.sc... | <commit_before>import os
import sys
import time
from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler
sys.path.append('/usr/local/d1lod')
from d1lod import jobs
conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)
sched = BlockingSchedul... | import os
import sys
import time
from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler
sys.path.append('/usr/local/d1lod')
from d1lod import jobs
conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)
sched = BlockingScheduler()
@sched.sc... | import os
import sys
import time
from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler
sys.path.append('/usr/local/d1lod')
from d1lod import jobs
conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)
sched = BlockingScheduler()
@sched.sc... | <commit_before>import os
import sys
import time
from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler
sys.path.append('/usr/local/d1lod')
from d1lod import jobs
conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)
sched = BlockingSchedul... |
17ac79bd57c1d89767bffccfec755df159205e2c | test/conditional_break/conditional_break.py | test/conditional_break/conditional_break.py | import sys
import lldb
import lldbutil
def stop_if_called_from_a():
# lldb.debugger_unique_id stores the id of the debugger associated with us.
dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
# Perform synchronous interaction with the debugger.
dbg.SetAsync(False)
# Get the comm... | import sys
import lldb
import lldbutil
def stop_if_called_from_a():
# lldb.debugger_unique_id stores the id of the debugger associated with us.
dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
# Perform synchronous interaction with the debugger.
dbg.SetAsync(False)
# Retrieve the... | Simplify the breakpoint command function. Instead of fetching the command interpreter and run the "process continue" command, use the SBProcess.Continue() API. | Simplify the breakpoint command function. Instead of fetching the command interpreter
and run the "process continue" command, use the SBProcess.Continue() API.
git-svn-id: b33bab8abb5b18c12ee100cd7761ab452d00b2b0@122434 91177308-0d34-0410-b5e6-96231b3b80d8
| Python | apache-2.0 | apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb | import sys
import lldb
import lldbutil
def stop_if_called_from_a():
# lldb.debugger_unique_id stores the id of the debugger associated with us.
dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
# Perform synchronous interaction with the debugger.
dbg.SetAsync(False)
# Get the comm... | import sys
import lldb
import lldbutil
def stop_if_called_from_a():
# lldb.debugger_unique_id stores the id of the debugger associated with us.
dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
# Perform synchronous interaction with the debugger.
dbg.SetAsync(False)
# Retrieve the... | <commit_before>import sys
import lldb
import lldbutil
def stop_if_called_from_a():
# lldb.debugger_unique_id stores the id of the debugger associated with us.
dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
# Perform synchronous interaction with the debugger.
dbg.SetAsync(False)
... | import sys
import lldb
import lldbutil
def stop_if_called_from_a():
# lldb.debugger_unique_id stores the id of the debugger associated with us.
dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
# Perform synchronous interaction with the debugger.
dbg.SetAsync(False)
# Retrieve the... | import sys
import lldb
import lldbutil
def stop_if_called_from_a():
# lldb.debugger_unique_id stores the id of the debugger associated with us.
dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
# Perform synchronous interaction with the debugger.
dbg.SetAsync(False)
# Get the comm... | <commit_before>import sys
import lldb
import lldbutil
def stop_if_called_from_a():
# lldb.debugger_unique_id stores the id of the debugger associated with us.
dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
# Perform synchronous interaction with the debugger.
dbg.SetAsync(False)
... |
8a6002015cf873d3054bd20d8d287a3fe7be6b84 | server.py | server.py | from tornado import ioloop, web, websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print("WebSocket opened")
def on_message(self, message):
self.write_message("You said: " + message)
def on_close(self):
print("WebSocket closed")
class Main... | from tornado import ioloop, web, websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print("WebSocket opened")
def on_message(self, message):
self.write_message("You said: " + message)
def on_close(self):
print("WebSocket closed")
SCRIPT = '... | Load file or path now. | Load file or path now.
| Python | bsd-3-clause | GrAndSE/livehtml,GrAndSE/livehtml | from tornado import ioloop, web, websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print("WebSocket opened")
def on_message(self, message):
self.write_message("You said: " + message)
def on_close(self):
print("WebSocket closed")
class Main... | from tornado import ioloop, web, websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print("WebSocket opened")
def on_message(self, message):
self.write_message("You said: " + message)
def on_close(self):
print("WebSocket closed")
SCRIPT = '... | <commit_before>from tornado import ioloop, web, websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print("WebSocket opened")
def on_message(self, message):
self.write_message("You said: " + message)
def on_close(self):
print("WebSocket closed")
... | from tornado import ioloop, web, websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print("WebSocket opened")
def on_message(self, message):
self.write_message("You said: " + message)
def on_close(self):
print("WebSocket closed")
SCRIPT = '... | from tornado import ioloop, web, websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print("WebSocket opened")
def on_message(self, message):
self.write_message("You said: " + message)
def on_close(self):
print("WebSocket closed")
class Main... | <commit_before>from tornado import ioloop, web, websocket
class EchoWebSocket(websocket.WebSocketHandler):
def open(self):
print("WebSocket opened")
def on_message(self, message):
self.write_message("You said: " + message)
def on_close(self):
print("WebSocket closed")
... |
d00e84e1e41b43f5b680bb310b68444cd9bbcba5 | fireplace/cards/tgt/shaman.py | fireplace/cards/tgt/shaman.py | from ..utils import *
##
# Hero Powers
# Lightning Jolt
class AT_050t:
play = Hit(TARGET, 2)
##
# Minions
# Tuskarr Totemic
class AT_046:
play = Summon(CONTROLLER, RandomTotem())
# Draenei Totemcarver
class AT_047:
play = Buff(SELF, "AT_047e") * Count(FRIENDLY_MINIONS + TOTEM)
# Thunder Bluff Valiant
class... | from ..utils import *
##
# Hero Powers
# Lightning Jolt
class AT_050t:
play = Hit(TARGET, 2)
##
# Minions
# Tuskarr Totemic
class AT_046:
play = Summon(CONTROLLER, RandomTotem())
# Draenei Totemcarver
class AT_047:
play = Buff(SELF, "AT_047e") * Count(FRIENDLY_MINIONS + TOTEM)
# Thunder Bluff Valiant
class... | Implement more TGT Shaman cards | Implement more TGT Shaman cards
| Python | agpl-3.0 | oftc-ftw/fireplace,amw2104/fireplace,amw2104/fireplace,smallnamespace/fireplace,jleclanche/fireplace,liujimj/fireplace,Ragowit/fireplace,Meerkov/fireplace,liujimj/fireplace,smallnamespace/fireplace,Meerkov/fireplace,beheh/fireplace,oftc-ftw/fireplace,Ragowit/fireplace,NightKev/fireplace | from ..utils import *
##
# Hero Powers
# Lightning Jolt
class AT_050t:
play = Hit(TARGET, 2)
##
# Minions
# Tuskarr Totemic
class AT_046:
play = Summon(CONTROLLER, RandomTotem())
# Draenei Totemcarver
class AT_047:
play = Buff(SELF, "AT_047e") * Count(FRIENDLY_MINIONS + TOTEM)
# Thunder Bluff Valiant
class... | from ..utils import *
##
# Hero Powers
# Lightning Jolt
class AT_050t:
play = Hit(TARGET, 2)
##
# Minions
# Tuskarr Totemic
class AT_046:
play = Summon(CONTROLLER, RandomTotem())
# Draenei Totemcarver
class AT_047:
play = Buff(SELF, "AT_047e") * Count(FRIENDLY_MINIONS + TOTEM)
# Thunder Bluff Valiant
class... | <commit_before>from ..utils import *
##
# Hero Powers
# Lightning Jolt
class AT_050t:
play = Hit(TARGET, 2)
##
# Minions
# Tuskarr Totemic
class AT_046:
play = Summon(CONTROLLER, RandomTotem())
# Draenei Totemcarver
class AT_047:
play = Buff(SELF, "AT_047e") * Count(FRIENDLY_MINIONS + TOTEM)
# Thunder Bluf... | from ..utils import *
##
# Hero Powers
# Lightning Jolt
class AT_050t:
play = Hit(TARGET, 2)
##
# Minions
# Tuskarr Totemic
class AT_046:
play = Summon(CONTROLLER, RandomTotem())
# Draenei Totemcarver
class AT_047:
play = Buff(SELF, "AT_047e") * Count(FRIENDLY_MINIONS + TOTEM)
# Thunder Bluff Valiant
class... | from ..utils import *
##
# Hero Powers
# Lightning Jolt
class AT_050t:
play = Hit(TARGET, 2)
##
# Minions
# Tuskarr Totemic
class AT_046:
play = Summon(CONTROLLER, RandomTotem())
# Draenei Totemcarver
class AT_047:
play = Buff(SELF, "AT_047e") * Count(FRIENDLY_MINIONS + TOTEM)
# Thunder Bluff Valiant
class... | <commit_before>from ..utils import *
##
# Hero Powers
# Lightning Jolt
class AT_050t:
play = Hit(TARGET, 2)
##
# Minions
# Tuskarr Totemic
class AT_046:
play = Summon(CONTROLLER, RandomTotem())
# Draenei Totemcarver
class AT_047:
play = Buff(SELF, "AT_047e") * Count(FRIENDLY_MINIONS + TOTEM)
# Thunder Bluf... |
4021d27a7bd15a396b637beb57c10fc95936cb3f | snippet_parser/fr.py | snippet_parser/fr.py | #-*- encoding: utf-8 -*-
import base
class SnippetParser(base.SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('unité'):
return ' '.join(map(unicode, template.params[:2]))
elif self.is_citation_needed(template):
repl = [b... | #-*- encoding: utf-8 -*-
import base
def handle_date(template):
year = None
if len(template.params) >= 3:
try:
year = int(unicode(template.params[2]))
except ValueError:
pass
if isinstance(year, int):
# assume {{date|d|m|y|...}}
return ' '.join(map(u... | Implement a couple of other French templates. | Implement a couple of other French templates.
Still need to add tests for these.
| Python | mit | Stryn/citationhunt,jhsoby/citationhunt,Stryn/citationhunt,Stryn/citationhunt,jhsoby/citationhunt,jhsoby/citationhunt,jhsoby/citationhunt,Stryn/citationhunt | #-*- encoding: utf-8 -*-
import base
class SnippetParser(base.SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('unité'):
return ' '.join(map(unicode, template.params[:2]))
elif self.is_citation_needed(template):
repl = [b... | #-*- encoding: utf-8 -*-
import base
def handle_date(template):
year = None
if len(template.params) >= 3:
try:
year = int(unicode(template.params[2]))
except ValueError:
pass
if isinstance(year, int):
# assume {{date|d|m|y|...}}
return ' '.join(map(u... | <commit_before>#-*- encoding: utf-8 -*-
import base
class SnippetParser(base.SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('unité'):
return ' '.join(map(unicode, template.params[:2]))
elif self.is_citation_needed(template):
... | #-*- encoding: utf-8 -*-
import base
def handle_date(template):
year = None
if len(template.params) >= 3:
try:
year = int(unicode(template.params[2]))
except ValueError:
pass
if isinstance(year, int):
# assume {{date|d|m|y|...}}
return ' '.join(map(u... | #-*- encoding: utf-8 -*-
import base
class SnippetParser(base.SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('unité'):
return ' '.join(map(unicode, template.params[:2]))
elif self.is_citation_needed(template):
repl = [b... | <commit_before>#-*- encoding: utf-8 -*-
import base
class SnippetParser(base.SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('unité'):
return ' '.join(map(unicode, template.params[:2]))
elif self.is_citation_needed(template):
... |
77c114925fb45fa56c1da358ed47d8222775f99f | tailor/listeners/mainlistener.py | tailor/listeners/mainlistener.py | from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase
class MainListener(SwiftListener):
def enterClassName(self, ctx):
className = ctx.getText()
if not isUpperCamelCase(className):
print('Line', str(ctx.start.line) + ':', 'Class name... | from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase
class MainListener(SwiftListener):
def enterClassName(self, ctx):
className = ctx.getText()
if not isUpperCamelCase(className):
print('Line', str(ctx.start.line) + ':', 'Class nam... | Add overrides for UpperCamelCase construct names | Add overrides for UpperCamelCase construct names
| Python | mit | sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor | from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase
class MainListener(SwiftListener):
def enterClassName(self, ctx):
className = ctx.getText()
if not isUpperCamelCase(className):
print('Line', str(ctx.start.line) + ':', 'Class name... | from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase
class MainListener(SwiftListener):
def enterClassName(self, ctx):
className = ctx.getText()
if not isUpperCamelCase(className):
print('Line', str(ctx.start.line) + ':', 'Class nam... | <commit_before>from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase
class MainListener(SwiftListener):
def enterClassName(self, ctx):
className = ctx.getText()
if not isUpperCamelCase(className):
print('Line', str(ctx.start.line) + '... | from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase
class MainListener(SwiftListener):
def enterClassName(self, ctx):
className = ctx.getText()
if not isUpperCamelCase(className):
print('Line', str(ctx.start.line) + ':', 'Class nam... | from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase
class MainListener(SwiftListener):
def enterClassName(self, ctx):
className = ctx.getText()
if not isUpperCamelCase(className):
print('Line', str(ctx.start.line) + ':', 'Class name... | <commit_before>from tailor.swift.swiftlistener import SwiftListener
from tailor.utils.charformat import isUpperCamelCase
class MainListener(SwiftListener):
def enterClassName(self, ctx):
className = ctx.getText()
if not isUpperCamelCase(className):
print('Line', str(ctx.start.line) + '... |
f5e6ba58fa29bd89722c1e4bf4ec743eb1125f75 | python/helpers/pycharm/django_manage_shell.py | python/helpers/pycharm/django_manage_shell.py | #!/usr/bin/env python
from fix_getpass import fixGetpass
import os
from django.core import management
import sys
try:
from runpy import run_module
except ImportError:
from runpy_compat import run_module
def run(working_dir):
sys.path.insert(0, working_dir)
manage_file = os.getenv('PYCHARM_DJANGO_MANAGE_MODUL... | #!/usr/bin/env python
from fix_getpass import fixGetpass
import os
from django.core import management
import sys
try:
from runpy import run_module
except ImportError:
from runpy_compat import run_module
def run(working_dir):
sys.path.insert(0, working_dir)
manage_file = os.getenv('PYCHARM_DJANGO_MANAGE_MODUL... | Fix circular import problem in Django console (PY-9030). | Fix circular import problem in Django console (PY-9030).
| Python | apache-2.0 | retomerz/intellij-community,adedayo/intellij-community,muntasirsyed/intellij-community,samthor/intellij-community,michaelgallacher/intellij-community,SerCeMan/intellij-community,apixandru/intellij-community,lucafavatella/intellij-community,wreckJ/intellij-community,caot/intellij-community,signed/intellij-community,hurr... | #!/usr/bin/env python
from fix_getpass import fixGetpass
import os
from django.core import management
import sys
try:
from runpy import run_module
except ImportError:
from runpy_compat import run_module
def run(working_dir):
sys.path.insert(0, working_dir)
manage_file = os.getenv('PYCHARM_DJANGO_MANAGE_MODUL... | #!/usr/bin/env python
from fix_getpass import fixGetpass
import os
from django.core import management
import sys
try:
from runpy import run_module
except ImportError:
from runpy_compat import run_module
def run(working_dir):
sys.path.insert(0, working_dir)
manage_file = os.getenv('PYCHARM_DJANGO_MANAGE_MODUL... | <commit_before>#!/usr/bin/env python
from fix_getpass import fixGetpass
import os
from django.core import management
import sys
try:
from runpy import run_module
except ImportError:
from runpy_compat import run_module
def run(working_dir):
sys.path.insert(0, working_dir)
manage_file = os.getenv('PYCHARM_DJAN... | #!/usr/bin/env python
from fix_getpass import fixGetpass
import os
from django.core import management
import sys
try:
from runpy import run_module
except ImportError:
from runpy_compat import run_module
def run(working_dir):
sys.path.insert(0, working_dir)
manage_file = os.getenv('PYCHARM_DJANGO_MANAGE_MODUL... | #!/usr/bin/env python
from fix_getpass import fixGetpass
import os
from django.core import management
import sys
try:
from runpy import run_module
except ImportError:
from runpy_compat import run_module
def run(working_dir):
sys.path.insert(0, working_dir)
manage_file = os.getenv('PYCHARM_DJANGO_MANAGE_MODUL... | <commit_before>#!/usr/bin/env python
from fix_getpass import fixGetpass
import os
from django.core import management
import sys
try:
from runpy import run_module
except ImportError:
from runpy_compat import run_module
def run(working_dir):
sys.path.insert(0, working_dir)
manage_file = os.getenv('PYCHARM_DJAN... |
1cba9aec784e54efc647db227a665fa9f88cab27 | dthm4kaiako/config/__init__.py | dthm4kaiako/config/__init__.py | """Configuration for Django system."""
__version__ = "0.9.0"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
| """Configuration for Django system."""
__version__ = "0.9.1"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
| Increment version number to 0.9.1 | Increment version number to 0.9.1
| Python | mit | uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers | """Configuration for Django system."""
__version__ = "0.9.0"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
Increment version number to 0.9.1 | """Configuration for Django system."""
__version__ = "0.9.1"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
| <commit_before>"""Configuration for Django system."""
__version__ = "0.9.0"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
<commit_msg>Increment version number to 0.9.1<commit_after> | """Configuration for Django system."""
__version__ = "0.9.1"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
| """Configuration for Django system."""
__version__ = "0.9.0"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
Increment version number to 0.9.1"""Configuration for Django system."""
__version__ = "0.9.1"
__version_info__ ... | <commit_before>"""Configuration for Django system."""
__version__ = "0.9.0"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
<commit_msg>Increment version number to 0.9.1<commit_after>"""Configuration for Django system."""... |
0c0b163d6454134595fb8ba794281afe56bc0100 | gae-firebase-listener-python/main.py | gae-firebase-listener-python/main.py | import os
import webapp2
IS_DEV = os.environ["SERVER_SOFTWARE"][:3] == "Dev"
allowed_users = set()
if IS_DEV:
allowed_users.add("dev-instance")
class LoggingHandler(webapp2.RequestHandler):
def post(self):
user = self.request.headers.get('X-Appengine-Inbound-Appid', None)
if user and user in allo... | import os
import webapp2
IS_DEV = os.environ["SERVER_SOFTWARE"][:3] == "Dev"
allowed_users = set()
if IS_DEV:
allowed_users.add("dev-instance")
else:
# Add your Java App Engine proxy App Id here
allowed_users.add("your-java-appengine-proxy-app-id")
class LoggingHandler(webapp2.RequestHandler):
def po... | Add proxy app id to listener | Add proxy app id to listener
| Python | mit | misterwilliam/gae-firebase-event-proxy,misterwilliam/gae-firebase-event-proxy | import os
import webapp2
IS_DEV = os.environ["SERVER_SOFTWARE"][:3] == "Dev"
allowed_users = set()
if IS_DEV:
allowed_users.add("dev-instance")
class LoggingHandler(webapp2.RequestHandler):
def post(self):
user = self.request.headers.get('X-Appengine-Inbound-Appid', None)
if user and user in allo... | import os
import webapp2
IS_DEV = os.environ["SERVER_SOFTWARE"][:3] == "Dev"
allowed_users = set()
if IS_DEV:
allowed_users.add("dev-instance")
else:
# Add your Java App Engine proxy App Id here
allowed_users.add("your-java-appengine-proxy-app-id")
class LoggingHandler(webapp2.RequestHandler):
def po... | <commit_before>import os
import webapp2
IS_DEV = os.environ["SERVER_SOFTWARE"][:3] == "Dev"
allowed_users = set()
if IS_DEV:
allowed_users.add("dev-instance")
class LoggingHandler(webapp2.RequestHandler):
def post(self):
user = self.request.headers.get('X-Appengine-Inbound-Appid', None)
if user a... | import os
import webapp2
IS_DEV = os.environ["SERVER_SOFTWARE"][:3] == "Dev"
allowed_users = set()
if IS_DEV:
allowed_users.add("dev-instance")
else:
# Add your Java App Engine proxy App Id here
allowed_users.add("your-java-appengine-proxy-app-id")
class LoggingHandler(webapp2.RequestHandler):
def po... | import os
import webapp2
IS_DEV = os.environ["SERVER_SOFTWARE"][:3] == "Dev"
allowed_users = set()
if IS_DEV:
allowed_users.add("dev-instance")
class LoggingHandler(webapp2.RequestHandler):
def post(self):
user = self.request.headers.get('X-Appengine-Inbound-Appid', None)
if user and user in allo... | <commit_before>import os
import webapp2
IS_DEV = os.environ["SERVER_SOFTWARE"][:3] == "Dev"
allowed_users = set()
if IS_DEV:
allowed_users.add("dev-instance")
class LoggingHandler(webapp2.RequestHandler):
def post(self):
user = self.request.headers.get('X-Appengine-Inbound-Appid', None)
if user a... |
0e6253bb0f06ebd4bf81c9e06037398899e37328 | main/bfkdf.py | main/bfkdf.py | import brainfuck
import scrypt
import prng
def hash(password, salt):
k0 = scrypt.hash(password, salt, 512, 4, 8, 96)
code_key = k0[ 0:32]
data_key = k0[32:64]
code_iv = k0[64:80]
data_iv = k0[80:96]
code_rng = prng.AESCTR(code_key, code_iv)
data_rng = prng.AESCTR(data_key, data_iv)
co... | import brainfuck
import scrypt
import prng
def hash(password, salt):
"""The hash function you want to call."""
k0 = scrypt.hash(password, salt, 512, 4, 8, 48)
debug("k0", k0)
rng = prng.AESCTR(k0[:32], k0[32:])
b = run_brainfuck(rng)
k1 = scrypt.hash(b, salt, 512, 4, 8, 32)
debug("k1", k1)... | Make some attempt to preserve randomness. Use only 1 AES CTR step. | Make some attempt to preserve randomness. Use only 1 AES CTR step.
| Python | unlicense | stribika/bfkdf | import brainfuck
import scrypt
import prng
def hash(password, salt):
k0 = scrypt.hash(password, salt, 512, 4, 8, 96)
code_key = k0[ 0:32]
data_key = k0[32:64]
code_iv = k0[64:80]
data_iv = k0[80:96]
code_rng = prng.AESCTR(code_key, code_iv)
data_rng = prng.AESCTR(data_key, data_iv)
co... | import brainfuck
import scrypt
import prng
def hash(password, salt):
"""The hash function you want to call."""
k0 = scrypt.hash(password, salt, 512, 4, 8, 48)
debug("k0", k0)
rng = prng.AESCTR(k0[:32], k0[32:])
b = run_brainfuck(rng)
k1 = scrypt.hash(b, salt, 512, 4, 8, 32)
debug("k1", k1)... | <commit_before>import brainfuck
import scrypt
import prng
def hash(password, salt):
k0 = scrypt.hash(password, salt, 512, 4, 8, 96)
code_key = k0[ 0:32]
data_key = k0[32:64]
code_iv = k0[64:80]
data_iv = k0[80:96]
code_rng = prng.AESCTR(code_key, code_iv)
data_rng = prng.AESCTR(data_key, ... | import brainfuck
import scrypt
import prng
def hash(password, salt):
"""The hash function you want to call."""
k0 = scrypt.hash(password, salt, 512, 4, 8, 48)
debug("k0", k0)
rng = prng.AESCTR(k0[:32], k0[32:])
b = run_brainfuck(rng)
k1 = scrypt.hash(b, salt, 512, 4, 8, 32)
debug("k1", k1)... | import brainfuck
import scrypt
import prng
def hash(password, salt):
k0 = scrypt.hash(password, salt, 512, 4, 8, 96)
code_key = k0[ 0:32]
data_key = k0[32:64]
code_iv = k0[64:80]
data_iv = k0[80:96]
code_rng = prng.AESCTR(code_key, code_iv)
data_rng = prng.AESCTR(data_key, data_iv)
co... | <commit_before>import brainfuck
import scrypt
import prng
def hash(password, salt):
k0 = scrypt.hash(password, salt, 512, 4, 8, 96)
code_key = k0[ 0:32]
data_key = k0[32:64]
code_iv = k0[64:80]
data_iv = k0[80:96]
code_rng = prng.AESCTR(code_key, code_iv)
data_rng = prng.AESCTR(data_key, ... |
db4b8b2abbb1726a3d2db3496b82e0ad6c0572e9 | gateway_mac.py | gateway_mac.py | import socket, struct
import scapy.all as scapy
def get_default_gateway_linux():
"""Read the default gateway directly from /proc."""
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3], 16) & 2:
... | import socket, struct
import scapy.all as scapy
def get_default_gateway_linux():
"""Read the default gateway directly from /proc."""
routes = []
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3],... | Update to support multiple default gateways | Update to support multiple default gateways | Python | mit | nulledbyte/scripts | import socket, struct
import scapy.all as scapy
def get_default_gateway_linux():
"""Read the default gateway directly from /proc."""
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3], 16) & 2:
... | import socket, struct
import scapy.all as scapy
def get_default_gateway_linux():
"""Read the default gateway directly from /proc."""
routes = []
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3],... | <commit_before>import socket, struct
import scapy.all as scapy
def get_default_gateway_linux():
"""Read the default gateway directly from /proc."""
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3], ... | import socket, struct
import scapy.all as scapy
def get_default_gateway_linux():
"""Read the default gateway directly from /proc."""
routes = []
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3],... | import socket, struct
import scapy.all as scapy
def get_default_gateway_linux():
"""Read the default gateway directly from /proc."""
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3], 16) & 2:
... | <commit_before>import socket, struct
import scapy.all as scapy
def get_default_gateway_linux():
"""Read the default gateway directly from /proc."""
with open("/proc/net/route") as fh:
for line in fh:
fields = line.strip().split()
if fields[1] != '00000000' or not int(fields[3], ... |
b256f2733d32b55e6a3a7ebfa1300b1a13555bab | tools/pdtools/setup.py | tools/pdtools/setup.py | from setuptools import setup, find_packages
setup(
name="pdtools",
version='0.8.0',
author="ParaDrop Labs",
description="ParaDrop development tools",
install_requires=[
'click>=6.7',
'future>=0.16.0',
'PyYAML>=3.12',
'requests>=2.18.1',
'six>=1.10.0'
],
... | from setuptools import setup, find_packages
setup(
name="pdtools",
version='0.8.0',
author="ParaDrop Labs",
description="ParaDrop development tools",
install_requires=[
'click>=6.7',
'future>=0.16.0',
'GitPython>=2.1.5',
'PyYAML>=3.12',
'requests>=2.18.1',
... | Add GitPython dependency for pdtools. | Add GitPython dependency for pdtools.
| Python | apache-2.0 | ParadropLabs/Paradrop,ParadropLabs/Paradrop,ParadropLabs/Paradrop | from setuptools import setup, find_packages
setup(
name="pdtools",
version='0.8.0',
author="ParaDrop Labs",
description="ParaDrop development tools",
install_requires=[
'click>=6.7',
'future>=0.16.0',
'PyYAML>=3.12',
'requests>=2.18.1',
'six>=1.10.0'
],
... | from setuptools import setup, find_packages
setup(
name="pdtools",
version='0.8.0',
author="ParaDrop Labs",
description="ParaDrop development tools",
install_requires=[
'click>=6.7',
'future>=0.16.0',
'GitPython>=2.1.5',
'PyYAML>=3.12',
'requests>=2.18.1',
... | <commit_before>from setuptools import setup, find_packages
setup(
name="pdtools",
version='0.8.0',
author="ParaDrop Labs",
description="ParaDrop development tools",
install_requires=[
'click>=6.7',
'future>=0.16.0',
'PyYAML>=3.12',
'requests>=2.18.1',
'six>=1... | from setuptools import setup, find_packages
setup(
name="pdtools",
version='0.8.0',
author="ParaDrop Labs",
description="ParaDrop development tools",
install_requires=[
'click>=6.7',
'future>=0.16.0',
'GitPython>=2.1.5',
'PyYAML>=3.12',
'requests>=2.18.1',
... | from setuptools import setup, find_packages
setup(
name="pdtools",
version='0.8.0',
author="ParaDrop Labs",
description="ParaDrop development tools",
install_requires=[
'click>=6.7',
'future>=0.16.0',
'PyYAML>=3.12',
'requests>=2.18.1',
'six>=1.10.0'
],
... | <commit_before>from setuptools import setup, find_packages
setup(
name="pdtools",
version='0.8.0',
author="ParaDrop Labs",
description="ParaDrop development tools",
install_requires=[
'click>=6.7',
'future>=0.16.0',
'PyYAML>=3.12',
'requests>=2.18.1',
'six>=1... |
4db52d5c8a10460fb9ea4a701e953f790a720f83 | admin/common_auth/forms.py | admin/common_auth/forms.py | from __future__ import absolute_import
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth.models import Group
from osf.models.user import OSFUser
from admin.common_auth.models import AdminProfile
cl... | from __future__ import absolute_import
from django import forms
from django.db.models import Q
from django.contrib.auth.models import Group
from admin.common_auth.models import AdminProfile
class LoginForm(forms.Form):
email = forms.CharField(label=u'Email', required=True)
password = forms.CharField(
... | Update UserRegistrationForm to be connected to an existing OSF user. | Update UserRegistrationForm to be connected to an existing OSF user.
| Python | apache-2.0 | aaxelb/osf.io,Nesiehr/osf.io,erinspace/osf.io,brianjgeiger/osf.io,TomBaxter/osf.io,adlius/osf.io,pattisdr/osf.io,CenterForOpenScience/osf.io,baylee-d/osf.io,crcresearch/osf.io,brianjgeiger/osf.io,binoculars/osf.io,adlius/osf.io,laurenrevere/osf.io,mfraezz/osf.io,cslzchen/osf.io,caneruguz/osf.io,chrisseto/osf.io,felliot... | from __future__ import absolute_import
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth.models import Group
from osf.models.user import OSFUser
from admin.common_auth.models import AdminProfile
cl... | from __future__ import absolute_import
from django import forms
from django.db.models import Q
from django.contrib.auth.models import Group
from admin.common_auth.models import AdminProfile
class LoginForm(forms.Form):
email = forms.CharField(label=u'Email', required=True)
password = forms.CharField(
... | <commit_before>from __future__ import absolute_import
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth.models import Group
from osf.models.user import OSFUser
from admin.common_auth.models import Ad... | from __future__ import absolute_import
from django import forms
from django.db.models import Q
from django.contrib.auth.models import Group
from admin.common_auth.models import AdminProfile
class LoginForm(forms.Form):
email = forms.CharField(label=u'Email', required=True)
password = forms.CharField(
... | from __future__ import absolute_import
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth.models import Group
from osf.models.user import OSFUser
from admin.common_auth.models import AdminProfile
cl... | <commit_before>from __future__ import absolute_import
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth.models import Group
from osf.models.user import OSFUser
from admin.common_auth.models import Ad... |
32c971233fa4c83a163036da0090d35463d43c75 | bananas/management/commands/syncpermissions.py | bananas/management/commands/syncpermissions.py | from django.contrib.auth.models import Permission
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Create admin permissions"
def handle(self, *args, **options):
if args: # pragma: no cover
raise CommandError("Command doesn't accept an... | from django.contrib.auth.models import Permission
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Create admin permissions"
def handle(self, *args, **options):
if args: # pragma: no cover
raise CommandError("Command doesn't accept an... | Update permission names when syncing | Update permission names when syncing
| Python | mit | 5monkeys/django-bananas,5monkeys/django-bananas,5monkeys/django-bananas | from django.contrib.auth.models import Permission
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Create admin permissions"
def handle(self, *args, **options):
if args: # pragma: no cover
raise CommandError("Command doesn't accept an... | from django.contrib.auth.models import Permission
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Create admin permissions"
def handle(self, *args, **options):
if args: # pragma: no cover
raise CommandError("Command doesn't accept an... | <commit_before>from django.contrib.auth.models import Permission
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Create admin permissions"
def handle(self, *args, **options):
if args: # pragma: no cover
raise CommandError("Command do... | from django.contrib.auth.models import Permission
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Create admin permissions"
def handle(self, *args, **options):
if args: # pragma: no cover
raise CommandError("Command doesn't accept an... | from django.contrib.auth.models import Permission
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Create admin permissions"
def handle(self, *args, **options):
if args: # pragma: no cover
raise CommandError("Command doesn't accept an... | <commit_before>from django.contrib.auth.models import Permission
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Create admin permissions"
def handle(self, *args, **options):
if args: # pragma: no cover
raise CommandError("Command do... |
66cfb6f42cf681d848f944af5bbb7d472280d895 | src/pyuniprot/cli.py | src/pyuniprot/cli.py | import click
from .manager import database
from .webserver.web import get_app
@click.group()
def main():
pass
@main.command()
def update():
"""Update PyUniProt data"""
database.update()
@main.command()
def web():
get_app().run()
| import click
from .manager import database
from .webserver.web import get_app
@click.group()
def main():
pass
@main.command()
def update():
"""Update PyUniProt data"""
database.update()
@main.command()
@click.option('--host', default='0.0.0.0', help='Flask host. Defaults to localhost')
@click.option('--... | Add host and port options to web runner | Add host and port options to web runner
| Python | apache-2.0 | cebel/pyuniprot,cebel/pyuniprot | import click
from .manager import database
from .webserver.web import get_app
@click.group()
def main():
pass
@main.command()
def update():
"""Update PyUniProt data"""
database.update()
@main.command()
def web():
get_app().run()
Add host and port options to web runner | import click
from .manager import database
from .webserver.web import get_app
@click.group()
def main():
pass
@main.command()
def update():
"""Update PyUniProt data"""
database.update()
@main.command()
@click.option('--host', default='0.0.0.0', help='Flask host. Defaults to localhost')
@click.option('--... | <commit_before>import click
from .manager import database
from .webserver.web import get_app
@click.group()
def main():
pass
@main.command()
def update():
"""Update PyUniProt data"""
database.update()
@main.command()
def web():
get_app().run()
<commit_msg>Add host and port options to web runner<com... | import click
from .manager import database
from .webserver.web import get_app
@click.group()
def main():
pass
@main.command()
def update():
"""Update PyUniProt data"""
database.update()
@main.command()
@click.option('--host', default='0.0.0.0', help='Flask host. Defaults to localhost')
@click.option('--... | import click
from .manager import database
from .webserver.web import get_app
@click.group()
def main():
pass
@main.command()
def update():
"""Update PyUniProt data"""
database.update()
@main.command()
def web():
get_app().run()
Add host and port options to web runnerimport click
from .manager impo... | <commit_before>import click
from .manager import database
from .webserver.web import get_app
@click.group()
def main():
pass
@main.command()
def update():
"""Update PyUniProt data"""
database.update()
@main.command()
def web():
get_app().run()
<commit_msg>Add host and port options to web runner<com... |
44f0207fe58b6798e612c16c06f3a0ee5b94cc9e | tests/scoring_engine/web/test_admin.py | tests/scoring_engine/web/test_admin.py | from web_test import WebTest
from scoring_engine.models.team import Team
from scoring_engine.models.user import User
class TestAdmin(WebTest):
def setup(self):
super(TestAdmin, self).setup()
team1 = Team(name="Team 1", color="White")
self.db.save(team1)
user1 = User(username='testus... | from web_test import WebTest
from scoring_engine.models.team import Team
from scoring_engine.models.user import User
class TestAdmin(WebTest):
def setup(self):
super(TestAdmin, self).setup()
team1 = Team(name="Team 1", color="White")
self.db.save(team1)
user1 = User(username='testu... | Add extra line for class in test admin | Add extra line for class in test admin
Signed-off-by: Brandon Myers <[email protected]>
| Python | mit | pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine | from web_test import WebTest
from scoring_engine.models.team import Team
from scoring_engine.models.user import User
class TestAdmin(WebTest):
def setup(self):
super(TestAdmin, self).setup()
team1 = Team(name="Team 1", color="White")
self.db.save(team1)
user1 = User(username='testus... | from web_test import WebTest
from scoring_engine.models.team import Team
from scoring_engine.models.user import User
class TestAdmin(WebTest):
def setup(self):
super(TestAdmin, self).setup()
team1 = Team(name="Team 1", color="White")
self.db.save(team1)
user1 = User(username='testu... | <commit_before>from web_test import WebTest
from scoring_engine.models.team import Team
from scoring_engine.models.user import User
class TestAdmin(WebTest):
def setup(self):
super(TestAdmin, self).setup()
team1 = Team(name="Team 1", color="White")
self.db.save(team1)
user1 = User(u... | from web_test import WebTest
from scoring_engine.models.team import Team
from scoring_engine.models.user import User
class TestAdmin(WebTest):
def setup(self):
super(TestAdmin, self).setup()
team1 = Team(name="Team 1", color="White")
self.db.save(team1)
user1 = User(username='testu... | from web_test import WebTest
from scoring_engine.models.team import Team
from scoring_engine.models.user import User
class TestAdmin(WebTest):
def setup(self):
super(TestAdmin, self).setup()
team1 = Team(name="Team 1", color="White")
self.db.save(team1)
user1 = User(username='testus... | <commit_before>from web_test import WebTest
from scoring_engine.models.team import Team
from scoring_engine.models.user import User
class TestAdmin(WebTest):
def setup(self):
super(TestAdmin, self).setup()
team1 = Team(name="Team 1", color="White")
self.db.save(team1)
user1 = User(u... |
6556604fb98c2153412384d6f0f705db2da1aa60 | tinycss2/css-parsing-tests/make_color3_hsl.py | tinycss2/css-parsing-tests/make_color3_hsl.py | import colorsys # It turns out Python already does HSL -> RGB!
def trim(s):
return s if not s.endswith('.0') else s[:-2]
print('[')
print(',\n'.join(
'"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
('a' if a is not None else '', h,
trim(str(s / 10.)), trim(str(l / 10.)),
', %s' ... | import colorsys # It turns out Python already does HSL -> RGB!
def trim(s):
return s if not s.endswith('.0') else s[:-2]
print('[')
print(',\n'.join(
'"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
('a' if alpha is not None else '', hue,
trim(str(saturation / 10.)), trim(str(light / 10.)... | Fix failing tests with recent versions of pytest-flake8 | Fix failing tests with recent versions of pytest-flake8
| Python | bsd-3-clause | SimonSapin/tinycss2 | import colorsys # It turns out Python already does HSL -> RGB!
def trim(s):
return s if not s.endswith('.0') else s[:-2]
print('[')
print(',\n'.join(
'"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
('a' if a is not None else '', h,
trim(str(s / 10.)), trim(str(l / 10.)),
', %s' ... | import colorsys # It turns out Python already does HSL -> RGB!
def trim(s):
return s if not s.endswith('.0') else s[:-2]
print('[')
print(',\n'.join(
'"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
('a' if alpha is not None else '', hue,
trim(str(saturation / 10.)), trim(str(light / 10.)... | <commit_before>import colorsys # It turns out Python already does HSL -> RGB!
def trim(s):
return s if not s.endswith('.0') else s[:-2]
print('[')
print(',\n'.join(
'"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
('a' if a is not None else '', h,
trim(str(s / 10.)), trim(str(l / 10.)),
... | import colorsys # It turns out Python already does HSL -> RGB!
def trim(s):
return s if not s.endswith('.0') else s[:-2]
print('[')
print(',\n'.join(
'"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
('a' if alpha is not None else '', hue,
trim(str(saturation / 10.)), trim(str(light / 10.)... | import colorsys # It turns out Python already does HSL -> RGB!
def trim(s):
return s if not s.endswith('.0') else s[:-2]
print('[')
print(',\n'.join(
'"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
('a' if a is not None else '', h,
trim(str(s / 10.)), trim(str(l / 10.)),
', %s' ... | <commit_before>import colorsys # It turns out Python already does HSL -> RGB!
def trim(s):
return s if not s.endswith('.0') else s[:-2]
print('[')
print(',\n'.join(
'"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
('a' if a is not None else '', h,
trim(str(s / 10.)), trim(str(l / 10.)),
... |
13a39f4e025160f584beef8442e82ec3c3526a95 | raco/myrial/cli_test.py | raco/myrial/cli_test.py | """Basic test of the command-line interface to Myrial."""
import subprocess
import unittest
class CliTest(unittest.TestCase):
def test_cli(self):
out = subprocess.check_output(['python', 'scripts/myrial',
'examples/reachable.myl'])
self.assertIn('DO', out)
... | """Basic test of the command-line interface to Myrial."""
import subprocess
import unittest
class CliTest(unittest.TestCase):
def test_cli(self):
out = subprocess.check_output(['python', 'scripts/myrial',
'examples/reachable.myl'])
self.assertIn('DO', out)
... | Test of standalone myrial mode | Test of standalone myrial mode
| Python | bsd-3-clause | uwescience/raco,uwescience/raco,uwescience/raco,uwescience/raco,uwescience/raco | """Basic test of the command-line interface to Myrial."""
import subprocess
import unittest
class CliTest(unittest.TestCase):
def test_cli(self):
out = subprocess.check_output(['python', 'scripts/myrial',
'examples/reachable.myl'])
self.assertIn('DO', out)
... | """Basic test of the command-line interface to Myrial."""
import subprocess
import unittest
class CliTest(unittest.TestCase):
def test_cli(self):
out = subprocess.check_output(['python', 'scripts/myrial',
'examples/reachable.myl'])
self.assertIn('DO', out)
... | <commit_before>"""Basic test of the command-line interface to Myrial."""
import subprocess
import unittest
class CliTest(unittest.TestCase):
def test_cli(self):
out = subprocess.check_output(['python', 'scripts/myrial',
'examples/reachable.myl'])
self.asser... | """Basic test of the command-line interface to Myrial."""
import subprocess
import unittest
class CliTest(unittest.TestCase):
def test_cli(self):
out = subprocess.check_output(['python', 'scripts/myrial',
'examples/reachable.myl'])
self.assertIn('DO', out)
... | """Basic test of the command-line interface to Myrial."""
import subprocess
import unittest
class CliTest(unittest.TestCase):
def test_cli(self):
out = subprocess.check_output(['python', 'scripts/myrial',
'examples/reachable.myl'])
self.assertIn('DO', out)
... | <commit_before>"""Basic test of the command-line interface to Myrial."""
import subprocess
import unittest
class CliTest(unittest.TestCase):
def test_cli(self):
out = subprocess.check_output(['python', 'scripts/myrial',
'examples/reachable.myl'])
self.asser... |
0940612c13094f1950c70b4abc66ddcd76b20544 | setup.py | setup.py | from setuptools import setup
setup(
name='Fulfil-Shop',
version='0.1dev',
packages=['shop'],
license='BSD',
include_package_data=True,
zip_safe=False,
long_description=open('README.rst').read(),
install_requires=[
'Flask',
'Flask-WTF',
'Flask-Assets',
'Fl... | from setuptools import setup
setup(
name='Fulfil-Shop',
version='0.1dev',
packages=['shop'],
license='BSD',
include_package_data=True,
zip_safe=False,
long_description=open('README.rst').read(),
install_requires=[
'Flask',
'Flask-WTF',
'Flask-Assets',
'cs... | Add cssmin and jsmin to requires | Add cssmin and jsmin to requires
| Python | bsd-3-clause | joeirimpan/shop,joeirimpan/shop,joeirimpan/shop | from setuptools import setup
setup(
name='Fulfil-Shop',
version='0.1dev',
packages=['shop'],
license='BSD',
include_package_data=True,
zip_safe=False,
long_description=open('README.rst').read(),
install_requires=[
'Flask',
'Flask-WTF',
'Flask-Assets',
'Fl... | from setuptools import setup
setup(
name='Fulfil-Shop',
version='0.1dev',
packages=['shop'],
license='BSD',
include_package_data=True,
zip_safe=False,
long_description=open('README.rst').read(),
install_requires=[
'Flask',
'Flask-WTF',
'Flask-Assets',
'cs... | <commit_before>from setuptools import setup
setup(
name='Fulfil-Shop',
version='0.1dev',
packages=['shop'],
license='BSD',
include_package_data=True,
zip_safe=False,
long_description=open('README.rst').read(),
install_requires=[
'Flask',
'Flask-WTF',
'Flask-Asset... | from setuptools import setup
setup(
name='Fulfil-Shop',
version='0.1dev',
packages=['shop'],
license='BSD',
include_package_data=True,
zip_safe=False,
long_description=open('README.rst').read(),
install_requires=[
'Flask',
'Flask-WTF',
'Flask-Assets',
'cs... | from setuptools import setup
setup(
name='Fulfil-Shop',
version='0.1dev',
packages=['shop'],
license='BSD',
include_package_data=True,
zip_safe=False,
long_description=open('README.rst').read(),
install_requires=[
'Flask',
'Flask-WTF',
'Flask-Assets',
'Fl... | <commit_before>from setuptools import setup
setup(
name='Fulfil-Shop',
version='0.1dev',
packages=['shop'],
license='BSD',
include_package_data=True,
zip_safe=False,
long_description=open('README.rst').read(),
install_requires=[
'Flask',
'Flask-WTF',
'Flask-Asset... |
f495656a3a9a19a3bdb7cbb02b188e2c54740626 | setup.py | setup.py | from setuptools import setup
setup(
name='django-kewl',
version=".".join(map(str, __import__('short_url').__version__)),
packages=['django_kewl'],
url='https://github.com/Alir3z4/django-kewl',
license='BSD',
author='Alireza Savand',
author_email='[email protected]',
description='... | from setuptools import setup
setup(
name='django-kewl',
version=".".join(map(str, __import__('short_url').__version__)),
packages=['django_kewl'],
url='https://github.com/Alir3z4/django-kewl',
license='BSD',
author='Alireza Savand',
author_email='[email protected]',
description='... | Add BSD license as well | Add BSD license as well
| Python | bsd-3-clause | Alir3z4/django-kewl | from setuptools import setup
setup(
name='django-kewl',
version=".".join(map(str, __import__('short_url').__version__)),
packages=['django_kewl'],
url='https://github.com/Alir3z4/django-kewl',
license='BSD',
author='Alireza Savand',
author_email='[email protected]',
description='... | from setuptools import setup
setup(
name='django-kewl',
version=".".join(map(str, __import__('short_url').__version__)),
packages=['django_kewl'],
url='https://github.com/Alir3z4/django-kewl',
license='BSD',
author='Alireza Savand',
author_email='[email protected]',
description='... | <commit_before>from setuptools import setup
setup(
name='django-kewl',
version=".".join(map(str, __import__('short_url').__version__)),
packages=['django_kewl'],
url='https://github.com/Alir3z4/django-kewl',
license='BSD',
author='Alireza Savand',
author_email='[email protected]',
... | from setuptools import setup
setup(
name='django-kewl',
version=".".join(map(str, __import__('short_url').__version__)),
packages=['django_kewl'],
url='https://github.com/Alir3z4/django-kewl',
license='BSD',
author='Alireza Savand',
author_email='[email protected]',
description='... | from setuptools import setup
setup(
name='django-kewl',
version=".".join(map(str, __import__('short_url').__version__)),
packages=['django_kewl'],
url='https://github.com/Alir3z4/django-kewl',
license='BSD',
author='Alireza Savand',
author_email='[email protected]',
description='... | <commit_before>from setuptools import setup
setup(
name='django-kewl',
version=".".join(map(str, __import__('short_url').__version__)),
packages=['django_kewl'],
url='https://github.com/Alir3z4/django-kewl',
license='BSD',
author='Alireza Savand',
author_email='[email protected]',
... |
922a0a321ee82ad2f23205f8c1ee55bf2c5a35ab | setup.py | setup.py | import setuptools
from flatdict import __version__
setuptools.setup(
name='flatdict',
version=__version__,
description=('Python module for interacting with nested dicts as a '
'single level dict with delimited keys.'),
long_description=open('README.rst').read(),
author='Gavin M. R... | import setuptools
from flatdict import __version__
setuptools.setup(
name='flatdict',
version=__version__,
description=('Python module for interacting with nested dicts as a '
'single level dict with delimited keys.'),
long_description=open('README.rst').read(),
author='Gavin M. R... | Add 3.7 to the trove classifiers | Add 3.7 to the trove classifiers
| Python | bsd-3-clause | gmr/flatdict,gmr/flatdict | import setuptools
from flatdict import __version__
setuptools.setup(
name='flatdict',
version=__version__,
description=('Python module for interacting with nested dicts as a '
'single level dict with delimited keys.'),
long_description=open('README.rst').read(),
author='Gavin M. R... | import setuptools
from flatdict import __version__
setuptools.setup(
name='flatdict',
version=__version__,
description=('Python module for interacting with nested dicts as a '
'single level dict with delimited keys.'),
long_description=open('README.rst').read(),
author='Gavin M. R... | <commit_before>import setuptools
from flatdict import __version__
setuptools.setup(
name='flatdict',
version=__version__,
description=('Python module for interacting with nested dicts as a '
'single level dict with delimited keys.'),
long_description=open('README.rst').read(),
aut... | import setuptools
from flatdict import __version__
setuptools.setup(
name='flatdict',
version=__version__,
description=('Python module for interacting with nested dicts as a '
'single level dict with delimited keys.'),
long_description=open('README.rst').read(),
author='Gavin M. R... | import setuptools
from flatdict import __version__
setuptools.setup(
name='flatdict',
version=__version__,
description=('Python module for interacting with nested dicts as a '
'single level dict with delimited keys.'),
long_description=open('README.rst').read(),
author='Gavin M. R... | <commit_before>import setuptools
from flatdict import __version__
setuptools.setup(
name='flatdict',
version=__version__,
description=('Python module for interacting with nested dicts as a '
'single level dict with delimited keys.'),
long_description=open('README.rst').read(),
aut... |
274d882fbfb97d6d4cbf013fcdf9d8644e22099e | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='tw2.wysihtml5',
version='0.2',
description='WYSIHTML5 widget for ToscaWidgets2',
author='Moritz Schlarb',
author_email='[email protected]',
url='https://github.com/toscawidgets/tw2.wysihtml5',
install_requires=[
"tw2.core... | from setuptools import setup, find_packages
setup(
name='tw2.wysihtml5',
version='0.3',
description='WYSIHTML5 widget for ToscaWidgets2',
author='Moritz Schlarb',
author_email='[email protected]',
url='https://github.com/toscawidgets/tw2.wysihtml5',
install_requires=[
"tw2.core... | Increase version so that my tests can run... :-] | Increase version so that my tests can run... :-]
| Python | bsd-2-clause | toscawidgets/tw2.wysihtml5,toscawidgets/tw2.wysihtml5 | from setuptools import setup, find_packages
setup(
name='tw2.wysihtml5',
version='0.2',
description='WYSIHTML5 widget for ToscaWidgets2',
author='Moritz Schlarb',
author_email='[email protected]',
url='https://github.com/toscawidgets/tw2.wysihtml5',
install_requires=[
"tw2.core... | from setuptools import setup, find_packages
setup(
name='tw2.wysihtml5',
version='0.3',
description='WYSIHTML5 widget for ToscaWidgets2',
author='Moritz Schlarb',
author_email='[email protected]',
url='https://github.com/toscawidgets/tw2.wysihtml5',
install_requires=[
"tw2.core... | <commit_before>from setuptools import setup, find_packages
setup(
name='tw2.wysihtml5',
version='0.2',
description='WYSIHTML5 widget for ToscaWidgets2',
author='Moritz Schlarb',
author_email='[email protected]',
url='https://github.com/toscawidgets/tw2.wysihtml5',
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='tw2.wysihtml5',
version='0.3',
description='WYSIHTML5 widget for ToscaWidgets2',
author='Moritz Schlarb',
author_email='[email protected]',
url='https://github.com/toscawidgets/tw2.wysihtml5',
install_requires=[
"tw2.core... | from setuptools import setup, find_packages
setup(
name='tw2.wysihtml5',
version='0.2',
description='WYSIHTML5 widget for ToscaWidgets2',
author='Moritz Schlarb',
author_email='[email protected]',
url='https://github.com/toscawidgets/tw2.wysihtml5',
install_requires=[
"tw2.core... | <commit_before>from setuptools import setup, find_packages
setup(
name='tw2.wysihtml5',
version='0.2',
description='WYSIHTML5 widget for ToscaWidgets2',
author='Moritz Schlarb',
author_email='[email protected]',
url='https://github.com/toscawidgets/tw2.wysihtml5',
install_requires=[
... |
a021b077834a932b5c8da6be49bb98e7862392d4 | setup.py | setup.py | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-mingus',
version='0.9.7',
description='A django blog engine.',
long_description=read('README.textile'),
author='Kevin Fricovsky',
author_email=... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-mingus',
version='0.9.7',
description='A django blog engine.',
long_description=read('README.textile'),
author='Kevin Fricovsky',
author_email=... | Install templates when using pip to install package. | Install templates when using pip to install package.
| Python | apache-2.0 | emorozov/django-mingus,emorozov/django-mingus,emorozov/django-mingus,emorozov/django-mingus | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-mingus',
version='0.9.7',
description='A django blog engine.',
long_description=read('README.textile'),
author='Kevin Fricovsky',
author_email=... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-mingus',
version='0.9.7',
description='A django blog engine.',
long_description=read('README.textile'),
author='Kevin Fricovsky',
author_email=... | <commit_before>import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-mingus',
version='0.9.7',
description='A django blog engine.',
long_description=read('README.textile'),
author='Kevin Fricovsky',
... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-mingus',
version='0.9.7',
description='A django blog engine.',
long_description=read('README.textile'),
author='Kevin Fricovsky',
author_email=... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-mingus',
version='0.9.7',
description='A django blog engine.',
long_description=read('README.textile'),
author='Kevin Fricovsky',
author_email=... | <commit_before>import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-mingus',
version='0.9.7',
description='A django blog engine.',
long_description=read('README.textile'),
author='Kevin Fricovsky',
... |
32f7b04861c53cf6367ffcb40b4955334742dbad | setup.py | setup.py | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
... | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
... | Mark the module as not zip safe. | Mark the module as not zip safe.
The template finder code in Flask doesn't handle zipped eggs well,
and thus won't find index.template.html. This makes the module
crash when attempting to load the UI.
| Python | mit | sveint/flask-swagger-ui,sveint/flask-swagger-ui,sveint/flask-swagger-ui | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
... | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
... | <commit_before>from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-s... | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
... | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
... | <commit_before>from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-s... |
e0388a4be8b15964ce87dafcf69805619f273805 | setup.py | setup.py | from setuptools import setup
setup(name='pygraphc',
version='0.0.1',
description='Event log clustering in Python',
long_description='This package contains event log clustering method including non-graph and '
'graph-based approaches.',
classifiers=[
'Developme... | from setuptools import setup
setup(name='pygraphc',
version='0.0.1',
description='Event log clustering in Python',
long_description='This package contains event log clustering method including non-graph and '
'graph-based approaches.',
classifiers=[
'Developme... | Add entry_points to run executable pygraphc | Add entry_points to run executable pygraphc
| Python | mit | studiawan/pygraphc | from setuptools import setup
setup(name='pygraphc',
version='0.0.1',
description='Event log clustering in Python',
long_description='This package contains event log clustering method including non-graph and '
'graph-based approaches.',
classifiers=[
'Developme... | from setuptools import setup
setup(name='pygraphc',
version='0.0.1',
description='Event log clustering in Python',
long_description='This package contains event log clustering method including non-graph and '
'graph-based approaches.',
classifiers=[
'Developme... | <commit_before>from setuptools import setup
setup(name='pygraphc',
version='0.0.1',
description='Event log clustering in Python',
long_description='This package contains event log clustering method including non-graph and '
'graph-based approaches.',
classifiers=[
... | from setuptools import setup
setup(name='pygraphc',
version='0.0.1',
description='Event log clustering in Python',
long_description='This package contains event log clustering method including non-graph and '
'graph-based approaches.',
classifiers=[
'Developme... | from setuptools import setup
setup(name='pygraphc',
version='0.0.1',
description='Event log clustering in Python',
long_description='This package contains event log clustering method including non-graph and '
'graph-based approaches.',
classifiers=[
'Developme... | <commit_before>from setuptools import setup
setup(name='pygraphc',
version='0.0.1',
description='Event log clustering in Python',
long_description='This package contains event log clustering method including non-graph and '
'graph-based approaches.',
classifiers=[
... |
3dac61f518a0913faa5bb3350d0161f09b63f0e0 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import os
setup(
name = "django-powerdns",
version = "0.1",
url = 'http://bitbucket.org/... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import os
setup(
name = "django-powerdns",
version = "0.1",
url = 'http://bitbucket.org/... | Add Django as a dependency | Add Django as a dependency
| Python | bsd-2-clause | zefciu/django-powerdns-dnssec,dominikkowalski/django-powerdns-dnssec,allegro/django-powerdns-dnssec,dominikkowalski/django-powerdns-dnssec,dominikkowalski/django-powerdns-dnssec,zefciu/django-powerdns-dnssec,dominikkowalski/django-powerdns-dnssec,zefciu/django-powerdns-dnssec,allegro/django-powerdns-dnssec,dominikkowal... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import os
setup(
name = "django-powerdns",
version = "0.1",
url = 'http://bitbucket.org/... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import os
setup(
name = "django-powerdns",
version = "0.1",
url = 'http://bitbucket.org/... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import os
setup(
name = "django-powerdns",
version = "0.1",
url = 'http:/... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import os
setup(
name = "django-powerdns",
version = "0.1",
url = 'http://bitbucket.org/... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import os
setup(
name = "django-powerdns",
version = "0.1",
url = 'http://bitbucket.org/... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import os
setup(
name = "django-powerdns",
version = "0.1",
url = 'http:/... |
8f2c6cb5da0c456cefe958db305292a0abda8607 | setup.py | setup.py | # -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
],
package... | # -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
],
package... | Fix license trove classifier, bump to 1.0.1 | Fix license trove classifier, bump to 1.0.1
| Python | mit | Crossway/antimarkdown,Crossway/antimarkdown | # -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
],
package... | # -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
],
package... | <commit_before># -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
... | # -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
],
package... | # -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
],
package... | <commit_before># -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
... |
e1200dfc7a882340037448ff64241786e828c8c3 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
author='F-Secure Corporation',
au... | from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read() + '\n' + open('CHANGELOG.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
... | Include changelog on pypi page | Dev: Include changelog on pypi page
| Python | apache-2.0 | F-Secure/mittn,F-Secure/mittn | from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
author='F-Secure Corporation',
au... | from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read() + '\n' + open('CHANGELOG.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
... | <commit_before>from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
author='F-Secure Corpo... | from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read() + '\n' + open('CHANGELOG.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
... | from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
author='F-Secure Corporation',
au... | <commit_before>from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
author='F-Secure Corpo... |
15437c33fd25a1f10c3203037be3bfef17716fbb | setup.py | setup.py | import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
"""
setup(
n... | import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
"""
setup(
n... | Add trove classifiers for Python versions | Add trove classifiers for Python versions
These are set to the versions tested by Travis.
This fixes #39. | Python | apache-2.0 | korfuri/django-prometheus,obytes/django-prometheus,obytes/django-prometheus,korfuri/django-prometheus | import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
"""
setup(
n... | import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
"""
setup(
n... | <commit_before>import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
""... | import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
"""
setup(
n... | import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
"""
setup(
n... | <commit_before>import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
""... |
0f97e1427cf86cab4d53f613eb440c1cf4426e6d | setup.py | setup.py | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.5',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = '[email protected]... | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.6',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = '[email protected]... | Change download url for release 0.3.6 | Change download url for release 0.3.6
| Python | mit | hspandher/django-test-addons | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.5',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = '[email protected]... | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.6',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = '[email protected]... | <commit_before>from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.5',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = 'hspa... | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.6',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = '[email protected]... | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.5',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = '[email protected]... | <commit_before>from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.5',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = 'hspa... |
40afc357e0850c71153f8779583fc03f643b2271 | setup.py | setup.py | from setuptools import find_packages, setup
setup(name='satnogsclient',
packages=find_packages(),
version='0.2.5',
author='SatNOGS team',
author_email='[email protected]',
url='https://github.com/satnogs/satnogs-client/',
description='SatNOGS Client',
include_package_dat... | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='[email protected]',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APSchedule... | Reorder and group metadata and options together | Reorder and group metadata and options together
| Python | agpl-3.0 | adamkalis/satnogs-client,adamkalis/satnogs-client | from setuptools import find_packages, setup
setup(name='satnogsclient',
packages=find_packages(),
version='0.2.5',
author='SatNOGS team',
author_email='[email protected]',
url='https://github.com/satnogs/satnogs-client/',
description='SatNOGS Client',
include_package_dat... | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='[email protected]',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APSchedule... | <commit_before>from setuptools import find_packages, setup
setup(name='satnogsclient',
packages=find_packages(),
version='0.2.5',
author='SatNOGS team',
author_email='[email protected]',
url='https://github.com/satnogs/satnogs-client/',
description='SatNOGS Client',
incl... | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='[email protected]',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APSchedule... | from setuptools import find_packages, setup
setup(name='satnogsclient',
packages=find_packages(),
version='0.2.5',
author='SatNOGS team',
author_email='[email protected]',
url='https://github.com/satnogs/satnogs-client/',
description='SatNOGS Client',
include_package_dat... | <commit_before>from setuptools import find_packages, setup
setup(name='satnogsclient',
packages=find_packages(),
version='0.2.5',
author='SatNOGS team',
author_email='[email protected]',
url='https://github.com/satnogs/satnogs-client/',
description='SatNOGS Client',
incl... |
b65b0ed8d09d4a22164f16ed60f7c5b71d6f54db | setup.py | setup.py | import setuptools
from gitvendor.version import Version
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Topic :: Software Development'
]
setuptools.setup(name='git-vendor',
ver... | import setuptools
from gitvendor.version import Version
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Topic :: Software Development'
]
setuptools.setup(name='git-vendor',
ver... | Move download_url and bump version | Move download_url and bump version
| Python | mit | chuckbutler/git-vendor | import setuptools
from gitvendor.version import Version
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Topic :: Software Development'
]
setuptools.setup(name='git-vendor',
ver... | import setuptools
from gitvendor.version import Version
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Topic :: Software Development'
]
setuptools.setup(name='git-vendor',
ver... | <commit_before>import setuptools
from gitvendor.version import Version
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Topic :: Software Development'
]
setuptools.setup(name='git-vendor',
... | import setuptools
from gitvendor.version import Version
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Topic :: Software Development'
]
setuptools.setup(name='git-vendor',
ver... | import setuptools
from gitvendor.version import Version
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Topic :: Software Development'
]
setuptools.setup(name='git-vendor',
ver... | <commit_before>import setuptools
from gitvendor.version import Version
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Topic :: Software Development'
]
setuptools.setup(name='git-vendor',
... |
c1d111ab00cdc916412cc2985ef4bbc184166f20 | setup.py | setup.py | """
``onecodex``
------------
``onecodex`` provides a command line client for interaction with the
One Codex API.
Links
`````
* `One Codex: <https://www.onecodex.com/>`
* `API Docs: <http://docs.onecodex.com/>`
"""
from setuptools import setup
setup(
name='onecodex',
version='0.0.1',
url='https://www... | """
``onecodex``
------------
``onecodex`` provides a command line client for interaction with the
One Codex API.
Links
`````
* `One Codex: <https://www.onecodex.com/>`
* `API Docs: <http://docs.onecodex.com/>`
"""
from setuptools import setup
setup(
name='onecodex',
version='0.0.1',
url='https://www... | Change contact field and author field for PyPI. | Change contact field and author field for PyPI.
| Python | mit | onecodex/onecodex,refgenomics/onecodex,refgenomics/onecodex,onecodex/onecodex | """
``onecodex``
------------
``onecodex`` provides a command line client for interaction with the
One Codex API.
Links
`````
* `One Codex: <https://www.onecodex.com/>`
* `API Docs: <http://docs.onecodex.com/>`
"""
from setuptools import setup
setup(
name='onecodex',
version='0.0.1',
url='https://www... | """
``onecodex``
------------
``onecodex`` provides a command line client for interaction with the
One Codex API.
Links
`````
* `One Codex: <https://www.onecodex.com/>`
* `API Docs: <http://docs.onecodex.com/>`
"""
from setuptools import setup
setup(
name='onecodex',
version='0.0.1',
url='https://www... | <commit_before>"""
``onecodex``
------------
``onecodex`` provides a command line client for interaction with the
One Codex API.
Links
`````
* `One Codex: <https://www.onecodex.com/>`
* `API Docs: <http://docs.onecodex.com/>`
"""
from setuptools import setup
setup(
name='onecodex',
version='0.0.1',
u... | """
``onecodex``
------------
``onecodex`` provides a command line client for interaction with the
One Codex API.
Links
`````
* `One Codex: <https://www.onecodex.com/>`
* `API Docs: <http://docs.onecodex.com/>`
"""
from setuptools import setup
setup(
name='onecodex',
version='0.0.1',
url='https://www... | """
``onecodex``
------------
``onecodex`` provides a command line client for interaction with the
One Codex API.
Links
`````
* `One Codex: <https://www.onecodex.com/>`
* `API Docs: <http://docs.onecodex.com/>`
"""
from setuptools import setup
setup(
name='onecodex',
version='0.0.1',
url='https://www... | <commit_before>"""
``onecodex``
------------
``onecodex`` provides a command line client for interaction with the
One Codex API.
Links
`````
* `One Codex: <https://www.onecodex.com/>`
* `API Docs: <http://docs.onecodex.com/>`
"""
from setuptools import setup
setup(
name='onecodex',
version='0.0.1',
u... |
a30ed634f641c3c62dc0d4501ed4cb852c9930d0 | setup.py | setup.py | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "[email protected], [email protected]",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "[email protected], [email protected]",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | Update TreeTime dep link now that the py3 branch is merged | Update TreeTime dep link now that the py3 branch is merged
| Python | agpl-3.0 | nextstrain/augur,blab/nextstrain-augur,nextstrain/augur,nextstrain/augur | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "[email protected], [email protected]",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "[email protected], [email protected]",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | <commit_before>import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "[email protected], [email protected]",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT"... | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "[email protected], [email protected]",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "[email protected], [email protected]",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT",
keywo... | <commit_before>import os
from setuptools import setup
setup(
name = "augur",
version = "0.1.0",
author = "nextstrain developers",
author_email = "[email protected], [email protected]",
description = ("Pipelines for real-time phylogenetic analysis"),
license = "MIT"... |
0f18b3ff63bf6183247e7bce25160547f8cfc21d | setup.py | setup.py | import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
README_TEXT ... | import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
README_TEXT ... | Change PyPI trove classifier for license terms. | Change PyPI trove classifier for license terms.
| Python | apache-2.0 | devinmcgloin/advent,devinmcgloin/advent | import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
README_TEXT ... | import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
README_TEXT ... | <commit_before>import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
... | import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
README_TEXT ... | import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
README_TEXT ... | <commit_before>import os
import sys
from distutils.core import setup
if sys.version_info < (3,):
print('\nSorry, but Adventure can only be installed under Python 3.\n')
sys.exit(1)
README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
with open(README_PATH, encoding="utf-8") as f:
... |
1641243682f080257b7f79b35503985d3d72aa44 | setup.py | setup.py | from setuptools import setup
setup(name='osm_hall_monitor',
version='0.2',
description='Passive changeset monitoring for OpenStreetMap.',
url='http://github.com/ethan-nelson/osm_hall_monitor',
author='Ethan Nelson',
author_email='[email protected]',
install_requi... | from setuptools import setup
setup(name='osm_hall_monitor',
version='0.2',
description='Passive changeset monitoring for OpenStreetMap.',
url='http://github.com/ethan-nelson/osm_hall_monitor',
author='Ethan Nelson',
author_email='[email protected]',
install_requi... | Fix requirement for diff tool | Fix requirement for diff tool
| Python | mit | ethan-nelson/osm_hall_monitor | from setuptools import setup
setup(name='osm_hall_monitor',
version='0.2',
description='Passive changeset monitoring for OpenStreetMap.',
url='http://github.com/ethan-nelson/osm_hall_monitor',
author='Ethan Nelson',
author_email='[email protected]',
install_requi... | from setuptools import setup
setup(name='osm_hall_monitor',
version='0.2',
description='Passive changeset monitoring for OpenStreetMap.',
url='http://github.com/ethan-nelson/osm_hall_monitor',
author='Ethan Nelson',
author_email='[email protected]',
install_requi... | <commit_before>from setuptools import setup
setup(name='osm_hall_monitor',
version='0.2',
description='Passive changeset monitoring for OpenStreetMap.',
url='http://github.com/ethan-nelson/osm_hall_monitor',
author='Ethan Nelson',
author_email='[email protected]',
... | from setuptools import setup
setup(name='osm_hall_monitor',
version='0.2',
description='Passive changeset monitoring for OpenStreetMap.',
url='http://github.com/ethan-nelson/osm_hall_monitor',
author='Ethan Nelson',
author_email='[email protected]',
install_requi... | from setuptools import setup
setup(name='osm_hall_monitor',
version='0.2',
description='Passive changeset monitoring for OpenStreetMap.',
url='http://github.com/ethan-nelson/osm_hall_monitor',
author='Ethan Nelson',
author_email='[email protected]',
install_requi... | <commit_before>from setuptools import setup
setup(name='osm_hall_monitor',
version='0.2',
description='Passive changeset monitoring for OpenStreetMap.',
url='http://github.com/ethan-nelson/osm_hall_monitor',
author='Ethan Nelson',
author_email='[email protected]',
... |
024878fc913097364123d28a99ab7cb5501b0af5 | setup.py | setup.py | #!/usr/bin/env python
import subprocess
from distutils.core import setup
requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
description = 'Download videos from Udemy for personal offline use'
try:
subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst", "-o", "README... | #!/usr/bin/env python
import os
import subprocess
from distutils.core import setup
requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
description = 'Download videos from Udemy for personal offline use'
try:
subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst", "-o... | Set permission mask to allow read/exec for all users | Set permission mask to allow read/exec for all users
| Python | unlicense | rinodung/udemy-dl | #!/usr/bin/env python
import subprocess
from distutils.core import setup
requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
description = 'Download videos from Udemy for personal offline use'
try:
subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst", "-o", "README... | #!/usr/bin/env python
import os
import subprocess
from distutils.core import setup
requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
description = 'Download videos from Udemy for personal offline use'
try:
subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst", "-o... | <commit_before>#!/usr/bin/env python
import subprocess
from distutils.core import setup
requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
description = 'Download videos from Udemy for personal offline use'
try:
subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst"... | #!/usr/bin/env python
import os
import subprocess
from distutils.core import setup
requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
description = 'Download videos from Udemy for personal offline use'
try:
subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst", "-o... | #!/usr/bin/env python
import subprocess
from distutils.core import setup
requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
description = 'Download videos from Udemy for personal offline use'
try:
subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst", "-o", "README... | <commit_before>#!/usr/bin/env python
import subprocess
from distutils.core import setup
requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
description = 'Download videos from Udemy for personal offline use'
try:
subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst"... |
f27e08b0dcace5b9f49c5b2a211347a2f50f8254 | stats.py | stats.py | from bs4 import BeautifulSoup
import requests
def statsRoyale(tag):
link = 'http://statsroyale.com/profile/' + tag
response = (requests.get(link)).text
soup = BeautifulSoup(response, 'html.parser')
stats = {}
content = soup.find_all('div', {'class':'content'})
stats['clan'] = content[0].get_text()
if stats['cl... | from bs4 import BeautifulSoup
import requests
def statsRoyale(tag):
if not tag.find('/') == -1:
tag = tag[::-1]
pos = tag.find('/')
tag = tag[:pos]
tag = tag[::-1]
link = 'http://statsroyale.com/profile/' + tag
response = (requests.get(link)).text
soup = BeautifulSoup(response, 'html.parser')
descriptio... | Use tags or direct url | Use tags or direct url | Python | mit | atulya2109/Stats-Royale-Python | from bs4 import BeautifulSoup
import requests
def statsRoyale(tag):
link = 'http://statsroyale.com/profile/' + tag
response = (requests.get(link)).text
soup = BeautifulSoup(response, 'html.parser')
stats = {}
content = soup.find_all('div', {'class':'content'})
stats['clan'] = content[0].get_text()
if stats['cl... | from bs4 import BeautifulSoup
import requests
def statsRoyale(tag):
if not tag.find('/') == -1:
tag = tag[::-1]
pos = tag.find('/')
tag = tag[:pos]
tag = tag[::-1]
link = 'http://statsroyale.com/profile/' + tag
response = (requests.get(link)).text
soup = BeautifulSoup(response, 'html.parser')
descriptio... | <commit_before>from bs4 import BeautifulSoup
import requests
def statsRoyale(tag):
link = 'http://statsroyale.com/profile/' + tag
response = (requests.get(link)).text
soup = BeautifulSoup(response, 'html.parser')
stats = {}
content = soup.find_all('div', {'class':'content'})
stats['clan'] = content[0].get_text(... | from bs4 import BeautifulSoup
import requests
def statsRoyale(tag):
if not tag.find('/') == -1:
tag = tag[::-1]
pos = tag.find('/')
tag = tag[:pos]
tag = tag[::-1]
link = 'http://statsroyale.com/profile/' + tag
response = (requests.get(link)).text
soup = BeautifulSoup(response, 'html.parser')
descriptio... | from bs4 import BeautifulSoup
import requests
def statsRoyale(tag):
link = 'http://statsroyale.com/profile/' + tag
response = (requests.get(link)).text
soup = BeautifulSoup(response, 'html.parser')
stats = {}
content = soup.find_all('div', {'class':'content'})
stats['clan'] = content[0].get_text()
if stats['cl... | <commit_before>from bs4 import BeautifulSoup
import requests
def statsRoyale(tag):
link = 'http://statsroyale.com/profile/' + tag
response = (requests.get(link)).text
soup = BeautifulSoup(response, 'html.parser')
stats = {}
content = soup.find_all('div', {'class':'content'})
stats['clan'] = content[0].get_text(... |
30d108b3a206d938ef67c112bc6c953a12c606af | tasks.py | tasks.py | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | Allow specifying custom host and port when starting app | Allow specifying custom host and port when starting app
| Python | mit | rlucioni/typesetter,rlucioni/typesetter,rlucioni/typesetter | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | <commit_before>"""Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
... | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | """Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
]
cmd = ' &... | <commit_before>"""Task functions for use with Invoke."""
from invoke import task
@task
def clean(context):
cmd = '$(npm bin)/gulp clean'
context.run(cmd)
@task
def requirements(context):
steps = [
'pip install -r requirements.txt',
'npm install',
'$(npm bin)/bower install',
... |
c05b06577785bdf34f1fcd051ecf6d4398d2f77e | tasks.py | tasks.py | from os.path import join
from invoke import Collection, ctask as task
from invocations import docs as _docs
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '... | from os.path import join
from shutil import rmtree, move
from invoke import Collection, ctask as task
from invocations import docs as _docs
from invocations.packaging import publish
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
docs_path = join(d, 'docs')
docs_build = join(docs_path, '_build')
d... | Add new release task w/ API doc prebuilding | Add new release task w/ API doc prebuilding
| Python | lgpl-2.1 | thusoy/paramiko,CptLemming/paramiko,rcorrieri/paramiko,redixin/paramiko,Automatic/paramiko,jaraco/paramiko,esc/paramiko,ameily/paramiko,zarr12steven/paramiko,dorianpula/paramiko,mirrorcoder/paramiko,jorik041/paramiko,thisch/paramiko,dlitz/paramiko,paramiko/paramiko,digitalquacks/paramiko,fvicente/paramiko,SebastianDeis... | from os.path import join
from invoke import Collection, ctask as task
from invocations import docs as _docs
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '... | from os.path import join
from shutil import rmtree, move
from invoke import Collection, ctask as task
from invocations import docs as _docs
from invocations.packaging import publish
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
docs_path = join(d, 'docs')
docs_build = join(docs_path, '_build')
d... | <commit_before>from os.path import join
from invoke import Collection, ctask as task
from invocations import docs as _docs
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target... | from os.path import join
from shutil import rmtree, move
from invoke import Collection, ctask as task
from invocations import docs as _docs
from invocations.packaging import publish
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
docs_path = join(d, 'docs')
docs_build = join(docs_path, '_build')
d... | from os.path import join
from invoke import Collection, ctask as task
from invocations import docs as _docs
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '... | <commit_before>from os.path import join
from invoke import Collection, ctask as task
from invocations import docs as _docs
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target... |
f4ba2cba93222b4dd494caf487cdd6be4309e41a | studygroups/forms.py | studygroups/forms.py | from django import forms
from studygroups.models import StudyGroupSignup, Application
from localflavor.us.forms import USPhoneNumberField
class ApplicationForm(forms.ModelForm):
mobile = USPhoneNumberField(required=False)
class Meta:
model = Application
labels = {
'name': 'Please t... | from django import forms
from studygroups.models import StudyGroupSignup, Application
from localflavor.us.forms import USPhoneNumberField
class ApplicationForm(forms.ModelForm):
mobile = USPhoneNumberField(required=False)
class Meta:
model = Application
labels = {
'name': 'Please t... | Update labels for application form | Update labels for application form
| Python | mit | p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles | from django import forms
from studygroups.models import StudyGroupSignup, Application
from localflavor.us.forms import USPhoneNumberField
class ApplicationForm(forms.ModelForm):
mobile = USPhoneNumberField(required=False)
class Meta:
model = Application
labels = {
'name': 'Please t... | from django import forms
from studygroups.models import StudyGroupSignup, Application
from localflavor.us.forms import USPhoneNumberField
class ApplicationForm(forms.ModelForm):
mobile = USPhoneNumberField(required=False)
class Meta:
model = Application
labels = {
'name': 'Please t... | <commit_before>from django import forms
from studygroups.models import StudyGroupSignup, Application
from localflavor.us.forms import USPhoneNumberField
class ApplicationForm(forms.ModelForm):
mobile = USPhoneNumberField(required=False)
class Meta:
model = Application
labels = {
'n... | from django import forms
from studygroups.models import StudyGroupSignup, Application
from localflavor.us.forms import USPhoneNumberField
class ApplicationForm(forms.ModelForm):
mobile = USPhoneNumberField(required=False)
class Meta:
model = Application
labels = {
'name': 'Please t... | from django import forms
from studygroups.models import StudyGroupSignup, Application
from localflavor.us.forms import USPhoneNumberField
class ApplicationForm(forms.ModelForm):
mobile = USPhoneNumberField(required=False)
class Meta:
model = Application
labels = {
'name': 'Please t... | <commit_before>from django import forms
from studygroups.models import StudyGroupSignup, Application
from localflavor.us.forms import USPhoneNumberField
class ApplicationForm(forms.ModelForm):
mobile = USPhoneNumberField(required=False)
class Meta:
model = Application
labels = {
'n... |
6755255332039ab3c0ea60346f61420b52e2f474 | tests/functional/test_l10n.py | tests/functional/test_l10n.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
import pytest
from ..pages.home import HomePage
@pytest.mark.nondestructive
def test_change_language(b... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
import pytest
from ..pages.home import HomePage
@pytest.mark.nondestructive
def test_change_language(b... | Fix intermittent failure in l10n language selector test | Fix intermittent failure in l10n language selector test
| Python | mpl-2.0 | sgarrity/bedrock,TheoChevalier/bedrock,craigcook/bedrock,mkmelin/bedrock,TheoChevalier/bedrock,Sancus/bedrock,hoosteeno/bedrock,sylvestre/bedrock,schalkneethling/bedrock,Sancus/bedrock,analytics-pros/mozilla-bedrock,sylvestre/bedrock,glogiotatidis/bedrock,jgmize/bedrock,kyoshino/bedrock,mkmelin/bedrock,gerv/bedrock,dav... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
import pytest
from ..pages.home import HomePage
@pytest.mark.nondestructive
def test_change_language(b... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
import pytest
from ..pages.home import HomePage
@pytest.mark.nondestructive
def test_change_language(b... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
import pytest
from ..pages.home import HomePage
@pytest.mark.nondestructive
def test_ch... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
import pytest
from ..pages.home import HomePage
@pytest.mark.nondestructive
def test_change_language(b... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
import pytest
from ..pages.home import HomePage
@pytest.mark.nondestructive
def test_change_language(b... | <commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import random
import pytest
from ..pages.home import HomePage
@pytest.mark.nondestructive
def test_ch... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.