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
e79420fc4f32ff9ef72c81646533363502cc2235
fabfile.py
fabfile.py
from fabric.api import local, run from fabric.colors import green from fabric.contrib import django from fabric.decorators import task @task def run_tests(test='src'): django.settings_module('texas_choropleth.settings.test') local('./src/manage.py test {0}'.format(test)) def build(): print(green("[ Inst...
from fabric.api import local, run from fabric.colors import green from fabric.contrib import django from fabric.decorators import task @task def run_tests(test='src'): django.settings_module('texas_choropleth.settings.test') local('./src/manage.py test {0}'.format(test)) def build(): print(green("[ Inst...
Delete commented out loaddata command.
Delete commented out loaddata command. git-svn-id: d73fdb991549f9d1a0affa567d55bb0fdbd453f3@8436 f04a3889-0f81-4131-97fb-bc517d1f583d
Python
bsd-3-clause
unt-libraries/texas-choropleth,damonkelley/texas-choropleth,unt-libraries/texas-choropleth,damonkelley/texas-choropleth,damonkelley/texas-choropleth,damonkelley/texas-choropleth,unt-libraries/texas-choropleth,unt-libraries/texas-choropleth
from fabric.api import local, run from fabric.colors import green from fabric.contrib import django from fabric.decorators import task @task def run_tests(test='src'): django.settings_module('texas_choropleth.settings.test') local('./src/manage.py test {0}'.format(test)) def build(): print(green("[ Inst...
from fabric.api import local, run from fabric.colors import green from fabric.contrib import django from fabric.decorators import task @task def run_tests(test='src'): django.settings_module('texas_choropleth.settings.test') local('./src/manage.py test {0}'.format(test)) def build(): print(green("[ Inst...
<commit_before>from fabric.api import local, run from fabric.colors import green from fabric.contrib import django from fabric.decorators import task @task def run_tests(test='src'): django.settings_module('texas_choropleth.settings.test') local('./src/manage.py test {0}'.format(test)) def build(): prin...
from fabric.api import local, run from fabric.colors import green from fabric.contrib import django from fabric.decorators import task @task def run_tests(test='src'): django.settings_module('texas_choropleth.settings.test') local('./src/manage.py test {0}'.format(test)) def build(): print(green("[ Inst...
from fabric.api import local, run from fabric.colors import green from fabric.contrib import django from fabric.decorators import task @task def run_tests(test='src'): django.settings_module('texas_choropleth.settings.test') local('./src/manage.py test {0}'.format(test)) def build(): print(green("[ Inst...
<commit_before>from fabric.api import local, run from fabric.colors import green from fabric.contrib import django from fabric.decorators import task @task def run_tests(test='src'): django.settings_module('texas_choropleth.settings.test') local('./src/manage.py test {0}'.format(test)) def build(): prin...
d99dfc16e7c14896a703da7868f26a710b3bc6f1
14B-088/HI/analysis/galaxy_params.py
14B-088/HI/analysis/galaxy_params.py
''' Use parameters from Diskfit in the Galaxy class ''' from astropy import units as u from galaxies import Galaxy from astropy.table import Table from paths import fourteenB_HI_data_path def update_galaxy_params(gal, param_table): ''' Use the fit values from fit rather than the hard-coded values in galaxi...
''' Use parameters from Diskfit in the Galaxy class ''' from galaxies import Galaxy from astropy.table import Table from cube_analysis.rotation_curves import update_galaxy_params from paths import fourteenB_HI_data_path, fourteenB_HI_data_wGBT_path # The models from the peak velocity aren't as biased, based on com...
Update galaxy params w/ new model choices
Update galaxy params w/ new model choices
Python
mit
e-koch/VLA_Lband,e-koch/VLA_Lband
''' Use parameters from Diskfit in the Galaxy class ''' from astropy import units as u from galaxies import Galaxy from astropy.table import Table from paths import fourteenB_HI_data_path def update_galaxy_params(gal, param_table): ''' Use the fit values from fit rather than the hard-coded values in galaxi...
''' Use parameters from Diskfit in the Galaxy class ''' from galaxies import Galaxy from astropy.table import Table from cube_analysis.rotation_curves import update_galaxy_params from paths import fourteenB_HI_data_path, fourteenB_HI_data_wGBT_path # The models from the peak velocity aren't as biased, based on com...
<commit_before> ''' Use parameters from Diskfit in the Galaxy class ''' from astropy import units as u from galaxies import Galaxy from astropy.table import Table from paths import fourteenB_HI_data_path def update_galaxy_params(gal, param_table): ''' Use the fit values from fit rather than the hard-coded v...
''' Use parameters from Diskfit in the Galaxy class ''' from galaxies import Galaxy from astropy.table import Table from cube_analysis.rotation_curves import update_galaxy_params from paths import fourteenB_HI_data_path, fourteenB_HI_data_wGBT_path # The models from the peak velocity aren't as biased, based on com...
''' Use parameters from Diskfit in the Galaxy class ''' from astropy import units as u from galaxies import Galaxy from astropy.table import Table from paths import fourteenB_HI_data_path def update_galaxy_params(gal, param_table): ''' Use the fit values from fit rather than the hard-coded values in galaxi...
<commit_before> ''' Use parameters from Diskfit in the Galaxy class ''' from astropy import units as u from galaxies import Galaxy from astropy.table import Table from paths import fourteenB_HI_data_path def update_galaxy_params(gal, param_table): ''' Use the fit values from fit rather than the hard-coded v...
dad86f0637ea94abf1cdbf6674b62696980d5589
dont_tread_on_memes/__main__.py
dont_tread_on_memes/__main__.py
import dont_tread_on_memes import click @click.command() @click.option("--message", prompt="Don't _____ me", help=("The word or phrase to substitute for 'tread' in 'don't " "tread on me'")) @click.option("--save", default=None, help="Where to save the image") def tread(message, save)...
import dont_tread_on_memes import click @click.command() @click.option("--message", prompt="Don't _____ me", help=("The word or phrase to substitute for 'tread' in 'don't " "tread on me'")) @click.option("--format/--no-format", default=True, help=("Use the provided mess...
Allow 'raw' captioning via the --no-format flag
Allow 'raw' captioning via the --no-format flag
Python
mit
controversial/dont-tread-on-memes
import dont_tread_on_memes import click @click.command() @click.option("--message", prompt="Don't _____ me", help=("The word or phrase to substitute for 'tread' in 'don't " "tread on me'")) @click.option("--save", default=None, help="Where to save the image") def tread(message, save)...
import dont_tread_on_memes import click @click.command() @click.option("--message", prompt="Don't _____ me", help=("The word or phrase to substitute for 'tread' in 'don't " "tread on me'")) @click.option("--format/--no-format", default=True, help=("Use the provided mess...
<commit_before>import dont_tread_on_memes import click @click.command() @click.option("--message", prompt="Don't _____ me", help=("The word or phrase to substitute for 'tread' in 'don't " "tread on me'")) @click.option("--save", default=None, help="Where to save the image") def tread...
import dont_tread_on_memes import click @click.command() @click.option("--message", prompt="Don't _____ me", help=("The word or phrase to substitute for 'tread' in 'don't " "tread on me'")) @click.option("--format/--no-format", default=True, help=("Use the provided mess...
import dont_tread_on_memes import click @click.command() @click.option("--message", prompt="Don't _____ me", help=("The word or phrase to substitute for 'tread' in 'don't " "tread on me'")) @click.option("--save", default=None, help="Where to save the image") def tread(message, save)...
<commit_before>import dont_tread_on_memes import click @click.command() @click.option("--message", prompt="Don't _____ me", help=("The word or phrase to substitute for 'tread' in 'don't " "tread on me'")) @click.option("--save", default=None, help="Where to save the image") def tread...
27abcf86612e186f00cb9b91e604a222c9666438
app/eve_proxy/tasks.py
app/eve_proxy/tasks.py
from django.conf import settings import logging from datetime import datetime, timedelta from celery.task import task from eve_proxy.models import CachedDocument, ApiAccessLog @task(ignore_result=True) def clear_stale_cache(cache_extension=0): log = clear_stale_cache.get_logger() time = datetime.utcnow() - ...
import logging from datetime import datetime, timedelta from django.conf import settings from django.utils.timezone import now from celery.task import task from eve_proxy.models import CachedDocument, ApiAccessLog @task(ignore_result=True) def clear_stale_cache(cache_extension=0): log = clear_stale_cache.get_l...
Update eve_proxy taks for Django 1.4
Update eve_proxy taks for Django 1.4
Python
bsd-3-clause
nikdoof/test-auth
from django.conf import settings import logging from datetime import datetime, timedelta from celery.task import task from eve_proxy.models import CachedDocument, ApiAccessLog @task(ignore_result=True) def clear_stale_cache(cache_extension=0): log = clear_stale_cache.get_logger() time = datetime.utcnow() - ...
import logging from datetime import datetime, timedelta from django.conf import settings from django.utils.timezone import now from celery.task import task from eve_proxy.models import CachedDocument, ApiAccessLog @task(ignore_result=True) def clear_stale_cache(cache_extension=0): log = clear_stale_cache.get_l...
<commit_before>from django.conf import settings import logging from datetime import datetime, timedelta from celery.task import task from eve_proxy.models import CachedDocument, ApiAccessLog @task(ignore_result=True) def clear_stale_cache(cache_extension=0): log = clear_stale_cache.get_logger() time = datet...
import logging from datetime import datetime, timedelta from django.conf import settings from django.utils.timezone import now from celery.task import task from eve_proxy.models import CachedDocument, ApiAccessLog @task(ignore_result=True) def clear_stale_cache(cache_extension=0): log = clear_stale_cache.get_l...
from django.conf import settings import logging from datetime import datetime, timedelta from celery.task import task from eve_proxy.models import CachedDocument, ApiAccessLog @task(ignore_result=True) def clear_stale_cache(cache_extension=0): log = clear_stale_cache.get_logger() time = datetime.utcnow() - ...
<commit_before>from django.conf import settings import logging from datetime import datetime, timedelta from celery.task import task from eve_proxy.models import CachedDocument, ApiAccessLog @task(ignore_result=True) def clear_stale_cache(cache_extension=0): log = clear_stale_cache.get_logger() time = datet...
1619c955c75f91b9d61c3195704f17fc88ef9e04
aybu/manager/utils/pshell.py
aybu/manager/utils/pshell.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010 Asidev s.r.l. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010 Asidev s.r.l. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
Initialize session and environment in shell
Initialize session and environment in shell
Python
apache-2.0
asidev/aybu-manager
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010 Asidev s.r.l. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010 Asidev s.r.l. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010 Asidev s.r.l. 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 ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010 Asidev s.r.l. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010 Asidev s.r.l. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010 Asidev s.r.l. 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 ...
38a3712a571ea8f3f76d1559938bc07d91c87cc6
baseflask/refresh_varsnap.py
baseflask/refresh_varsnap.py
""" This script refreshes production varsnap snaps """ import os from syspath import git_root # NOQA from app import serve os.environ['ENV'] = 'production' app = serve.app.test_client() app.get('/') app.get('/health') app.get('/humans.txt') app.get('/robots.txt') app.get('/.well-known/security.txt') app.get('/asd...
""" This script refreshes production varsnap snaps """ import os from dotenv import dotenv_values from syspath import git_root # NOQA from app import serve config = dotenv_values('.env.production') base_url = 'https://' + config.get('SERVER_NAME', '') os.environ['ENV'] = 'production' serve.app.config['SERVER_NAME...
Use production server name and https for generating production snaps
Use production server name and https for generating production snaps
Python
mit
albertyw/base-flask,albertyw/base-flask,albertyw/base-flask,albertyw/base-flask
""" This script refreshes production varsnap snaps """ import os from syspath import git_root # NOQA from app import serve os.environ['ENV'] = 'production' app = serve.app.test_client() app.get('/') app.get('/health') app.get('/humans.txt') app.get('/robots.txt') app.get('/.well-known/security.txt') app.get('/asd...
""" This script refreshes production varsnap snaps """ import os from dotenv import dotenv_values from syspath import git_root # NOQA from app import serve config = dotenv_values('.env.production') base_url = 'https://' + config.get('SERVER_NAME', '') os.environ['ENV'] = 'production' serve.app.config['SERVER_NAME...
<commit_before>""" This script refreshes production varsnap snaps """ import os from syspath import git_root # NOQA from app import serve os.environ['ENV'] = 'production' app = serve.app.test_client() app.get('/') app.get('/health') app.get('/humans.txt') app.get('/robots.txt') app.get('/.well-known/security.txt'...
""" This script refreshes production varsnap snaps """ import os from dotenv import dotenv_values from syspath import git_root # NOQA from app import serve config = dotenv_values('.env.production') base_url = 'https://' + config.get('SERVER_NAME', '') os.environ['ENV'] = 'production' serve.app.config['SERVER_NAME...
""" This script refreshes production varsnap snaps """ import os from syspath import git_root # NOQA from app import serve os.environ['ENV'] = 'production' app = serve.app.test_client() app.get('/') app.get('/health') app.get('/humans.txt') app.get('/robots.txt') app.get('/.well-known/security.txt') app.get('/asd...
<commit_before>""" This script refreshes production varsnap snaps """ import os from syspath import git_root # NOQA from app import serve os.environ['ENV'] = 'production' app = serve.app.test_client() app.get('/') app.get('/health') app.get('/humans.txt') app.get('/robots.txt') app.get('/.well-known/security.txt'...
4b89a9ab88ef197394103af7dda431e01e6d9298
app/__init__.py
app/__init__.py
import datetime from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy telomere = Flask(__name__) telomere.config.from_object('app.settings') db = SQLAlchemy(telomere) import app.database database.init_db() telomere.secret_key = telomere.config['SECRET_KEY'] @telomere.before_request def set_date():...
import datetime from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy import logging logging.basicConfig() telomere = Flask(__name__) telomere.config.from_object('app.settings') db = SQLAlchemy(telomere) import app.database database.init_db() telomere.secret_key = telomere.config['SECRET_KEY'] @t...
Stop DB creation scripts from silently failing
Stop DB creation scripts from silently failing
Python
mit
rabramley/telomere,rabramley/telomere,rabramley/telomere
import datetime from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy telomere = Flask(__name__) telomere.config.from_object('app.settings') db = SQLAlchemy(telomere) import app.database database.init_db() telomere.secret_key = telomere.config['SECRET_KEY'] @telomere.before_request def set_date():...
import datetime from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy import logging logging.basicConfig() telomere = Flask(__name__) telomere.config.from_object('app.settings') db = SQLAlchemy(telomere) import app.database database.init_db() telomere.secret_key = telomere.config['SECRET_KEY'] @t...
<commit_before>import datetime from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy telomere = Flask(__name__) telomere.config.from_object('app.settings') db = SQLAlchemy(telomere) import app.database database.init_db() telomere.secret_key = telomere.config['SECRET_KEY'] @telomere.before_request ...
import datetime from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy import logging logging.basicConfig() telomere = Flask(__name__) telomere.config.from_object('app.settings') db = SQLAlchemy(telomere) import app.database database.init_db() telomere.secret_key = telomere.config['SECRET_KEY'] @t...
import datetime from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy telomere = Flask(__name__) telomere.config.from_object('app.settings') db = SQLAlchemy(telomere) import app.database database.init_db() telomere.secret_key = telomere.config['SECRET_KEY'] @telomere.before_request def set_date():...
<commit_before>import datetime from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy telomere = Flask(__name__) telomere.config.from_object('app.settings') db = SQLAlchemy(telomere) import app.database database.init_db() telomere.secret_key = telomere.config['SECRET_KEY'] @telomere.before_request ...
17bc3130b8b93a3569906afc494484c9ed0db677
drogher/shippers/fedex.py
drogher/shippers/fedex.py
from .base import Shipper class FedEx(Shipper): barcode_pattern = r'^96\d{20}$' shipper = 'FedEx' @property def tracking_number(self): return self.barcode[7:] @property def valid_checksum(self): sequence, check_digit = self.tracking_number[:-1], self.tracking_number[-1] ...
from .base import Shipper class FedEx(Shipper): shipper = 'FedEx' class FedExExpress(FedEx): barcode_pattern = r'^\d{34}$' @property def tracking_number(self): return self.barcode[20:].lstrip('0') @property def valid_checksum(self): sequence, check_digit = self.tracking_num...
Add FedEx Express shipper class
Add FedEx Express shipper class
Python
bsd-3-clause
jbittel/drogher
from .base import Shipper class FedEx(Shipper): barcode_pattern = r'^96\d{20}$' shipper = 'FedEx' @property def tracking_number(self): return self.barcode[7:] @property def valid_checksum(self): sequence, check_digit = self.tracking_number[:-1], self.tracking_number[-1] ...
from .base import Shipper class FedEx(Shipper): shipper = 'FedEx' class FedExExpress(FedEx): barcode_pattern = r'^\d{34}$' @property def tracking_number(self): return self.barcode[20:].lstrip('0') @property def valid_checksum(self): sequence, check_digit = self.tracking_num...
<commit_before>from .base import Shipper class FedEx(Shipper): barcode_pattern = r'^96\d{20}$' shipper = 'FedEx' @property def tracking_number(self): return self.barcode[7:] @property def valid_checksum(self): sequence, check_digit = self.tracking_number[:-1], self.tracking_n...
from .base import Shipper class FedEx(Shipper): shipper = 'FedEx' class FedExExpress(FedEx): barcode_pattern = r'^\d{34}$' @property def tracking_number(self): return self.barcode[20:].lstrip('0') @property def valid_checksum(self): sequence, check_digit = self.tracking_num...
from .base import Shipper class FedEx(Shipper): barcode_pattern = r'^96\d{20}$' shipper = 'FedEx' @property def tracking_number(self): return self.barcode[7:] @property def valid_checksum(self): sequence, check_digit = self.tracking_number[:-1], self.tracking_number[-1] ...
<commit_before>from .base import Shipper class FedEx(Shipper): barcode_pattern = r'^96\d{20}$' shipper = 'FedEx' @property def tracking_number(self): return self.barcode[7:] @property def valid_checksum(self): sequence, check_digit = self.tracking_number[:-1], self.tracking_n...
dd5487398aee50e2625fbd7b6f42f51dfe2256e8
asd/__main__.py
asd/__main__.py
import sys import operator import dg import interactive from . import compiler class Interactive (interactive.Interactive): PARSER = dg.Parser() COMPILER = compiler.Compiler() GLOBALS = { # Runtime counterparts of some stuff in `Compiler.builtins`. '$': lambda f, x: f(x) , ':'...
import sys import operator import dg import interactive from . import compiler class Interactive (interactive.Interactive): PARSER = dg.Parser() COMPILER = compiler.Compiler() GLOBALS = { # Runtime counterparts of some stuff in `Compiler.builtins`. '$': lambda f, *xs: f(*xs) ,...
Allow runtime $ and : to accept variable amount of arguments.
Allow runtime $ and : to accept variable amount of arguments.
Python
mit
pyos/dg
import sys import operator import dg import interactive from . import compiler class Interactive (interactive.Interactive): PARSER = dg.Parser() COMPILER = compiler.Compiler() GLOBALS = { # Runtime counterparts of some stuff in `Compiler.builtins`. '$': lambda f, x: f(x) , ':'...
import sys import operator import dg import interactive from . import compiler class Interactive (interactive.Interactive): PARSER = dg.Parser() COMPILER = compiler.Compiler() GLOBALS = { # Runtime counterparts of some stuff in `Compiler.builtins`. '$': lambda f, *xs: f(*xs) ,...
<commit_before>import sys import operator import dg import interactive from . import compiler class Interactive (interactive.Interactive): PARSER = dg.Parser() COMPILER = compiler.Compiler() GLOBALS = { # Runtime counterparts of some stuff in `Compiler.builtins`. '$': lambda f, x: f...
import sys import operator import dg import interactive from . import compiler class Interactive (interactive.Interactive): PARSER = dg.Parser() COMPILER = compiler.Compiler() GLOBALS = { # Runtime counterparts of some stuff in `Compiler.builtins`. '$': lambda f, *xs: f(*xs) ,...
import sys import operator import dg import interactive from . import compiler class Interactive (interactive.Interactive): PARSER = dg.Parser() COMPILER = compiler.Compiler() GLOBALS = { # Runtime counterparts of some stuff in `Compiler.builtins`. '$': lambda f, x: f(x) , ':'...
<commit_before>import sys import operator import dg import interactive from . import compiler class Interactive (interactive.Interactive): PARSER = dg.Parser() COMPILER = compiler.Compiler() GLOBALS = { # Runtime counterparts of some stuff in `Compiler.builtins`. '$': lambda f, x: f...
36bb40d48f5942b18686af077d9a78661c8a5f8a
Python/Product/PythonTools/ptvsd/setup.py
Python/Product/PythonTools/ptvsd/setup.py
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
Update ptvsd version number for 2.1 RTM
Update ptvsd version number for 2.1 RTM
Python
apache-2.0
MetSystem/PTVS,crwilcox/PTVS,Microsoft/PTVS,dut3062796s/PTVS,int19h/PTVS,gomiero/PTVS,zooba/PTVS,alanch-ms/PTVS,DEVSENSE/PTVS,Microsoft/PTVS,fjxhkj/PTVS,jkorell/PTVS,bolabola/PTVS,bolabola/PTVS,juanyaw/PTVS,ChinaQuants/PTVS,xNUTs/PTVS,gilbertw/PTVS,dut3062796s/PTVS,jkorell/PTVS,Microsoft/PTVS,msunardi/PTVS,Habatchii/PT...
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
<commit_before>#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain...
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
<commit_before>#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain...
353c3f1e88c55bbb31146c32162b18e9e6ae7cfc
corehq/apps/hqwebapp/management/commands/list_waf_allow_patterns.py
corehq/apps/hqwebapp/management/commands/list_waf_allow_patterns.py
import re from django.core.management import BaseCommand from django.urls import get_resolver from corehq.apps.hqwebapp.decorators import waf_allow class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument( '--compact', action='store_true', def...
import re from django.core.management import BaseCommand from django.urls import get_resolver from corehq.apps.hqwebapp.decorators import waf_allow class Command(BaseCommand): def handle(self, *args, **options): resolver = get_resolver() for kind, views in waf_allow.views.items(): p...
Move WAF regex compaction from here to commcare-cloud
Move WAF regex compaction from here to commcare-cloud
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
import re from django.core.management import BaseCommand from django.urls import get_resolver from corehq.apps.hqwebapp.decorators import waf_allow class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument( '--compact', action='store_true', def...
import re from django.core.management import BaseCommand from django.urls import get_resolver from corehq.apps.hqwebapp.decorators import waf_allow class Command(BaseCommand): def handle(self, *args, **options): resolver = get_resolver() for kind, views in waf_allow.views.items(): p...
<commit_before>import re from django.core.management import BaseCommand from django.urls import get_resolver from corehq.apps.hqwebapp.decorators import waf_allow class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument( '--compact', action='store_true', ...
import re from django.core.management import BaseCommand from django.urls import get_resolver from corehq.apps.hqwebapp.decorators import waf_allow class Command(BaseCommand): def handle(self, *args, **options): resolver = get_resolver() for kind, views in waf_allow.views.items(): p...
import re from django.core.management import BaseCommand from django.urls import get_resolver from corehq.apps.hqwebapp.decorators import waf_allow class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument( '--compact', action='store_true', def...
<commit_before>import re from django.core.management import BaseCommand from django.urls import get_resolver from corehq.apps.hqwebapp.decorators import waf_allow class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument( '--compact', action='store_true', ...
ff5eccb59efd09cfdeb64150440de35215e1b77d
gevent_tasks/utils.py
gevent_tasks/utils.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # >> # gevent-tasks, 2017 # << import random import string ch_choices = string.ascii_letters + string.digits def gen_uuid(length=4): # type: (int) -> str """ Generate a random ID of a given length. """ return ''.join(map(lambda c: random.choice(ch_choic...
#! /usr/bin/env python # -*- coding: utf-8 -*- # >> # gevent-tasks, 2017 # << import random import string ch_choices = string.ascii_letters + string.digits def gen_uuid(length=4): """ Generate a random ID of a given length. Args: length (int): length of the returned string. Ret...
Fix `gen_uuid` logic and documentation
Fix `gen_uuid` logic and documentation
Python
mit
blakev/gevent-tasks
#! /usr/bin/env python # -*- coding: utf-8 -*- # >> # gevent-tasks, 2017 # << import random import string ch_choices = string.ascii_letters + string.digits def gen_uuid(length=4): # type: (int) -> str """ Generate a random ID of a given length. """ return ''.join(map(lambda c: random.choice(ch_choic...
#! /usr/bin/env python # -*- coding: utf-8 -*- # >> # gevent-tasks, 2017 # << import random import string ch_choices = string.ascii_letters + string.digits def gen_uuid(length=4): """ Generate a random ID of a given length. Args: length (int): length of the returned string. Ret...
<commit_before>#! /usr/bin/env python # -*- coding: utf-8 -*- # >> # gevent-tasks, 2017 # << import random import string ch_choices = string.ascii_letters + string.digits def gen_uuid(length=4): # type: (int) -> str """ Generate a random ID of a given length. """ return ''.join(map(lambda c: random....
#! /usr/bin/env python # -*- coding: utf-8 -*- # >> # gevent-tasks, 2017 # << import random import string ch_choices = string.ascii_letters + string.digits def gen_uuid(length=4): """ Generate a random ID of a given length. Args: length (int): length of the returned string. Ret...
#! /usr/bin/env python # -*- coding: utf-8 -*- # >> # gevent-tasks, 2017 # << import random import string ch_choices = string.ascii_letters + string.digits def gen_uuid(length=4): # type: (int) -> str """ Generate a random ID of a given length. """ return ''.join(map(lambda c: random.choice(ch_choic...
<commit_before>#! /usr/bin/env python # -*- coding: utf-8 -*- # >> # gevent-tasks, 2017 # << import random import string ch_choices = string.ascii_letters + string.digits def gen_uuid(length=4): # type: (int) -> str """ Generate a random ID of a given length. """ return ''.join(map(lambda c: random....
69cff805c92810a4ee1d4581be8597f1aa14f78e
lib/game_launchers/steam_game_launcher.py
lib/game_launchers/steam_game_launcher.py
from lib.game_launcher import GameLauncher, GameLauncherException import sys import shlex import subprocess class SteamGameLauncher(GameLauncher): def __init__(self, **kwargs): super().__init__(**kwargs) def launch(self, **kwargs): app_id = kwargs.get("app_id") if app_id is None: ...
from lib.game_launcher import GameLauncher, GameLauncherException import sys import shlex import subprocess import webbrowser class SteamGameLauncher(GameLauncher): def __init__(self, **kwargs): super().__init__(**kwargs) def launch(self, **kwargs): app_id = kwargs.get("app_id") if...
Add support for launching Steam games on windows through the Steam protocol
Add support for launching Steam games on windows through the Steam protocol
Python
mit
SerpentAI/SerpentAI
from lib.game_launcher import GameLauncher, GameLauncherException import sys import shlex import subprocess class SteamGameLauncher(GameLauncher): def __init__(self, **kwargs): super().__init__(**kwargs) def launch(self, **kwargs): app_id = kwargs.get("app_id") if app_id is None: ...
from lib.game_launcher import GameLauncher, GameLauncherException import sys import shlex import subprocess import webbrowser class SteamGameLauncher(GameLauncher): def __init__(self, **kwargs): super().__init__(**kwargs) def launch(self, **kwargs): app_id = kwargs.get("app_id") if...
<commit_before>from lib.game_launcher import GameLauncher, GameLauncherException import sys import shlex import subprocess class SteamGameLauncher(GameLauncher): def __init__(self, **kwargs): super().__init__(**kwargs) def launch(self, **kwargs): app_id = kwargs.get("app_id") if ap...
from lib.game_launcher import GameLauncher, GameLauncherException import sys import shlex import subprocess import webbrowser class SteamGameLauncher(GameLauncher): def __init__(self, **kwargs): super().__init__(**kwargs) def launch(self, **kwargs): app_id = kwargs.get("app_id") if...
from lib.game_launcher import GameLauncher, GameLauncherException import sys import shlex import subprocess class SteamGameLauncher(GameLauncher): def __init__(self, **kwargs): super().__init__(**kwargs) def launch(self, **kwargs): app_id = kwargs.get("app_id") if app_id is None: ...
<commit_before>from lib.game_launcher import GameLauncher, GameLauncherException import sys import shlex import subprocess class SteamGameLauncher(GameLauncher): def __init__(self, **kwargs): super().__init__(**kwargs) def launch(self, **kwargs): app_id = kwargs.get("app_id") if ap...
c633112d6336c37e15577eb6d035488cc42bfd59
indra/explanation/model_checker/__init__.py
indra/explanation/model_checker/__init__.py
from .model_checker import ModelChecker, PathResult, PathMetric from .pysb import PysbModelChecker from .signed_graph import SignedGraphModelChecker from .unsigned_graph import UnsignedGraphModelChecker from .pybel import PybelModelChecker
from .model_checker import ModelChecker, PathResult, PathMetric, get_path_iter from .pysb import PysbModelChecker from .signed_graph import SignedGraphModelChecker from .unsigned_graph import UnsignedGraphModelChecker from .pybel import PybelModelChecker
Add get_path_iter to model_checker importables
Add get_path_iter to model_checker importables
Python
bsd-2-clause
sorgerlab/belpy,johnbachman/indra,johnbachman/indra,bgyori/indra,sorgerlab/belpy,bgyori/indra,johnbachman/belpy,bgyori/indra,sorgerlab/indra,johnbachman/belpy,sorgerlab/indra,johnbachman/belpy,sorgerlab/indra,sorgerlab/belpy,johnbachman/indra
from .model_checker import ModelChecker, PathResult, PathMetric from .pysb import PysbModelChecker from .signed_graph import SignedGraphModelChecker from .unsigned_graph import UnsignedGraphModelChecker from .pybel import PybelModelChecker Add get_path_iter to model_checker importables
from .model_checker import ModelChecker, PathResult, PathMetric, get_path_iter from .pysb import PysbModelChecker from .signed_graph import SignedGraphModelChecker from .unsigned_graph import UnsignedGraphModelChecker from .pybel import PybelModelChecker
<commit_before>from .model_checker import ModelChecker, PathResult, PathMetric from .pysb import PysbModelChecker from .signed_graph import SignedGraphModelChecker from .unsigned_graph import UnsignedGraphModelChecker from .pybel import PybelModelChecker <commit_msg>Add get_path_iter to model_checker importables<commit...
from .model_checker import ModelChecker, PathResult, PathMetric, get_path_iter from .pysb import PysbModelChecker from .signed_graph import SignedGraphModelChecker from .unsigned_graph import UnsignedGraphModelChecker from .pybel import PybelModelChecker
from .model_checker import ModelChecker, PathResult, PathMetric from .pysb import PysbModelChecker from .signed_graph import SignedGraphModelChecker from .unsigned_graph import UnsignedGraphModelChecker from .pybel import PybelModelChecker Add get_path_iter to model_checker importablesfrom .model_checker import ModelCh...
<commit_before>from .model_checker import ModelChecker, PathResult, PathMetric from .pysb import PysbModelChecker from .signed_graph import SignedGraphModelChecker from .unsigned_graph import UnsignedGraphModelChecker from .pybel import PybelModelChecker <commit_msg>Add get_path_iter to model_checker importables<commit...
e8506331cfa5e14029e3de4ccb16c5e0267e85b3
manoseimas/votings/nodes.py
manoseimas/votings/nodes.py
from zope.component import adapts from zope.component import provideAdapter from sboard.nodes import CreateView from sboard.nodes import DetailsView from .forms import PolicyIssueForm from .interfaces import IVoting from .interfaces import IPolicyIssue class VotingView(DetailsView): adapts(IVoting) templat...
from zope.component import adapts from zope.component import provideAdapter from sboard.nodes import CreateView from sboard.nodes import DetailsView from sboard.nodes import TagListView from .forms import PolicyIssueForm from .interfaces import IVoting from .interfaces import IPolicyIssue class VotingView(DetailsVi...
Use TagListView for IPolicyIssue as default view.
Use TagListView for IPolicyIssue as default view.
Python
agpl-3.0
ManoSeimas/manoseimas.lt,ManoSeimas/manoseimas.lt,ManoSeimas/manoseimas.lt,ManoSeimas/manoseimas.lt
from zope.component import adapts from zope.component import provideAdapter from sboard.nodes import CreateView from sboard.nodes import DetailsView from .forms import PolicyIssueForm from .interfaces import IVoting from .interfaces import IPolicyIssue class VotingView(DetailsView): adapts(IVoting) templat...
from zope.component import adapts from zope.component import provideAdapter from sboard.nodes import CreateView from sboard.nodes import DetailsView from sboard.nodes import TagListView from .forms import PolicyIssueForm from .interfaces import IVoting from .interfaces import IPolicyIssue class VotingView(DetailsVi...
<commit_before>from zope.component import adapts from zope.component import provideAdapter from sboard.nodes import CreateView from sboard.nodes import DetailsView from .forms import PolicyIssueForm from .interfaces import IVoting from .interfaces import IPolicyIssue class VotingView(DetailsView): adapts(IVotin...
from zope.component import adapts from zope.component import provideAdapter from sboard.nodes import CreateView from sboard.nodes import DetailsView from sboard.nodes import TagListView from .forms import PolicyIssueForm from .interfaces import IVoting from .interfaces import IPolicyIssue class VotingView(DetailsVi...
from zope.component import adapts from zope.component import provideAdapter from sboard.nodes import CreateView from sboard.nodes import DetailsView from .forms import PolicyIssueForm from .interfaces import IVoting from .interfaces import IPolicyIssue class VotingView(DetailsView): adapts(IVoting) templat...
<commit_before>from zope.component import adapts from zope.component import provideAdapter from sboard.nodes import CreateView from sboard.nodes import DetailsView from .forms import PolicyIssueForm from .interfaces import IVoting from .interfaces import IPolicyIssue class VotingView(DetailsView): adapts(IVotin...
aa59466630fa3e39e8b0f5da40100b62e2194ab8
tests/parser/test_loop_parsing.py
tests/parser/test_loop_parsing.py
from tests.infrastructure.test_utils import parse_local, validate_types from thinglang.lexer.values.numeric import NumericValue from thinglang.lexer.values.identifier import Identifier from thinglang.parser.blocks.loop import Loop from thinglang.parser.values.binary_operation import BinaryOperation from thinglang.parse...
from tests.infrastructure.test_utils import parse_local, validate_types from thinglang.lexer.values.numeric import NumericValue from thinglang.lexer.values.identifier import Identifier from thinglang.parser.blocks.iteration_loop import IterationLoop from thinglang.parser.blocks.loop import Loop from thinglang.parser.va...
Add unit test for iteration loop parsing
Add unit test for iteration loop parsing
Python
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
from tests.infrastructure.test_utils import parse_local, validate_types from thinglang.lexer.values.numeric import NumericValue from thinglang.lexer.values.identifier import Identifier from thinglang.parser.blocks.loop import Loop from thinglang.parser.values.binary_operation import BinaryOperation from thinglang.parse...
from tests.infrastructure.test_utils import parse_local, validate_types from thinglang.lexer.values.numeric import NumericValue from thinglang.lexer.values.identifier import Identifier from thinglang.parser.blocks.iteration_loop import IterationLoop from thinglang.parser.blocks.loop import Loop from thinglang.parser.va...
<commit_before>from tests.infrastructure.test_utils import parse_local, validate_types from thinglang.lexer.values.numeric import NumericValue from thinglang.lexer.values.identifier import Identifier from thinglang.parser.blocks.loop import Loop from thinglang.parser.values.binary_operation import BinaryOperation from ...
from tests.infrastructure.test_utils import parse_local, validate_types from thinglang.lexer.values.numeric import NumericValue from thinglang.lexer.values.identifier import Identifier from thinglang.parser.blocks.iteration_loop import IterationLoop from thinglang.parser.blocks.loop import Loop from thinglang.parser.va...
from tests.infrastructure.test_utils import parse_local, validate_types from thinglang.lexer.values.numeric import NumericValue from thinglang.lexer.values.identifier import Identifier from thinglang.parser.blocks.loop import Loop from thinglang.parser.values.binary_operation import BinaryOperation from thinglang.parse...
<commit_before>from tests.infrastructure.test_utils import parse_local, validate_types from thinglang.lexer.values.numeric import NumericValue from thinglang.lexer.values.identifier import Identifier from thinglang.parser.blocks.loop import Loop from thinglang.parser.values.binary_operation import BinaryOperation from ...
46344032e016b51e9d34b2620b72e418533374e2
hyper/http20/frame.py
hyper/http20/frame.py
# -*- coding: utf-8 -*- """ hyper/http20/frame ~~~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2.0. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ class Frame(object): """ The base class for all HTTP/2.0 frames. """ # T...
# -*- coding: utf-8 -*- """ hyper/http20/frame ~~~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2.0. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ # A map of type byte to frame class. FRAMES = { 0x00: DataFrame } class Frame(obje...
Define a mapping between byte and class.
Define a mapping between byte and class.
Python
mit
Lukasa/hyper,fredthomsen/hyper,Lukasa/hyper,masaori335/hyper,lawnmowerlatte/hyper,jdecuyper/hyper,irvind/hyper,jdecuyper/hyper,lawnmowerlatte/hyper,irvind/hyper,masaori335/hyper,plucury/hyper,plucury/hyper,fredthomsen/hyper
# -*- coding: utf-8 -*- """ hyper/http20/frame ~~~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2.0. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ class Frame(object): """ The base class for all HTTP/2.0 frames. """ # T...
# -*- coding: utf-8 -*- """ hyper/http20/frame ~~~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2.0. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ # A map of type byte to frame class. FRAMES = { 0x00: DataFrame } class Frame(obje...
<commit_before># -*- coding: utf-8 -*- """ hyper/http20/frame ~~~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2.0. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ class Frame(object): """ The base class for all HTTP/2.0 frames. ...
# -*- coding: utf-8 -*- """ hyper/http20/frame ~~~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2.0. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ # A map of type byte to frame class. FRAMES = { 0x00: DataFrame } class Frame(obje...
# -*- coding: utf-8 -*- """ hyper/http20/frame ~~~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2.0. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ class Frame(object): """ The base class for all HTTP/2.0 frames. """ # T...
<commit_before># -*- coding: utf-8 -*- """ hyper/http20/frame ~~~~~~~~~~~~~~~~~~ Defines framing logic for HTTP/2.0. Provides both classes to represent framed data and logic for aiding the connection when it comes to reading from the socket. """ class Frame(object): """ The base class for all HTTP/2.0 frames. ...
9f4215c6ca5cf8e022b8a6d180f0c47170eee7df
setup.py
setup.py
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
Increment version and update keywords.
Increment version and update keywords.
Python
bsd-3-clause
consbio/gis-metadata-parser
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
<commit_before>import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me...
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
<commit_before>import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me...
98ce3150b6f01e9513fa9ce2da1d505e6350aea6
setup.py
setup.py
import sys from setuptools import setup if sys.version_info < (2, 7): sys.exit('Zipnish requires at least Python 2.7, please upgrade and try again.') setup_requires = [] install_requires = [ 'simplemysql', ] setup( name='zipnish', version='0.1.0', description='zipnish', long_description='Mi...
import sys from setuptools import setup, find_packages if sys.version_info < (2, 7): sys.exit('Zipnish requires at least Python 2.7, please upgrade and try again.') def read(filename): with open(filename) as f: return f.read() install_requires = [ 'simplemysql', 'flask', 'sqlalchemy', ] setup...
Read long description from READMe.rst
Read long description from READMe.rst
Python
bsd-2-clause
varnish/zipnish,varnish/zipnish,varnish/varnish-microservice-monitor,varnish/varnish-microservice-monitor,varnish/varnish-microservice-monitor,varnish/zipnish,varnish/zipnish,varnish/varnish-microservice-monitor,varnish/zipnish,varnish/varnish-microservice-monitor
import sys from setuptools import setup if sys.version_info < (2, 7): sys.exit('Zipnish requires at least Python 2.7, please upgrade and try again.') setup_requires = [] install_requires = [ 'simplemysql', ] setup( name='zipnish', version='0.1.0', description='zipnish', long_description='Mi...
import sys from setuptools import setup, find_packages if sys.version_info < (2, 7): sys.exit('Zipnish requires at least Python 2.7, please upgrade and try again.') def read(filename): with open(filename) as f: return f.read() install_requires = [ 'simplemysql', 'flask', 'sqlalchemy', ] setup...
<commit_before>import sys from setuptools import setup if sys.version_info < (2, 7): sys.exit('Zipnish requires at least Python 2.7, please upgrade and try again.') setup_requires = [] install_requires = [ 'simplemysql', ] setup( name='zipnish', version='0.1.0', description='zipnish', long_...
import sys from setuptools import setup, find_packages if sys.version_info < (2, 7): sys.exit('Zipnish requires at least Python 2.7, please upgrade and try again.') def read(filename): with open(filename) as f: return f.read() install_requires = [ 'simplemysql', 'flask', 'sqlalchemy', ] setup...
import sys from setuptools import setup if sys.version_info < (2, 7): sys.exit('Zipnish requires at least Python 2.7, please upgrade and try again.') setup_requires = [] install_requires = [ 'simplemysql', ] setup( name='zipnish', version='0.1.0', description='zipnish', long_description='Mi...
<commit_before>import sys from setuptools import setup if sys.version_info < (2, 7): sys.exit('Zipnish requires at least Python 2.7, please upgrade and try again.') setup_requires = [] install_requires = [ 'simplemysql', ] setup( name='zipnish', version='0.1.0', description='zipnish', long_...
ac84d8743b50a00c49a8ceb81ed69661841bce70
wagtail/core/middleware.py
wagtail/core/middleware.py
import warnings from django.utils.deprecation import MiddlewareMixin from wagtail.core.models import Site from wagtail.utils.deprecation import RemovedInWagtail28Warning class SiteMiddleware(MiddlewareMixin): def process_request(self, request): """ Set request.site to contain the Site object resp...
import warnings from django.utils.deprecation import MiddlewareMixin from wagtail.core.models import Site from wagtail.utils.deprecation import RemovedInWagtail211Warning class SiteMiddleware(MiddlewareMixin): def process_request(self, request): """ Set request.site to contain the Site object res...
Revert SiteMiddleware to setting request.site
Revert SiteMiddleware to setting request.site This way, SiteMiddleware continues to support existing user / third-party code that has not yet been migrated from request.site to Site.find_for_request
Python
bsd-3-clause
takeflight/wagtail,takeflight/wagtail,thenewguy/wagtail,thenewguy/wagtail,timorieber/wagtail,wagtail/wagtail,gasman/wagtail,takeflight/wagtail,kaedroho/wagtail,mixxorz/wagtail,wagtail/wagtail,timorieber/wagtail,kaedroho/wagtail,kaedroho/wagtail,rsalmaso/wagtail,rsalmaso/wagtail,FlipperPA/wagtail,thenewguy/wagtail,mixxo...
import warnings from django.utils.deprecation import MiddlewareMixin from wagtail.core.models import Site from wagtail.utils.deprecation import RemovedInWagtail28Warning class SiteMiddleware(MiddlewareMixin): def process_request(self, request): """ Set request.site to contain the Site object resp...
import warnings from django.utils.deprecation import MiddlewareMixin from wagtail.core.models import Site from wagtail.utils.deprecation import RemovedInWagtail211Warning class SiteMiddleware(MiddlewareMixin): def process_request(self, request): """ Set request.site to contain the Site object res...
<commit_before>import warnings from django.utils.deprecation import MiddlewareMixin from wagtail.core.models import Site from wagtail.utils.deprecation import RemovedInWagtail28Warning class SiteMiddleware(MiddlewareMixin): def process_request(self, request): """ Set request.site to contain the S...
import warnings from django.utils.deprecation import MiddlewareMixin from wagtail.core.models import Site from wagtail.utils.deprecation import RemovedInWagtail211Warning class SiteMiddleware(MiddlewareMixin): def process_request(self, request): """ Set request.site to contain the Site object res...
import warnings from django.utils.deprecation import MiddlewareMixin from wagtail.core.models import Site from wagtail.utils.deprecation import RemovedInWagtail28Warning class SiteMiddleware(MiddlewareMixin): def process_request(self, request): """ Set request.site to contain the Site object resp...
<commit_before>import warnings from django.utils.deprecation import MiddlewareMixin from wagtail.core.models import Site from wagtail.utils.deprecation import RemovedInWagtail28Warning class SiteMiddleware(MiddlewareMixin): def process_request(self, request): """ Set request.site to contain the S...
ca1fe65c5008ddba3467b962f2a51f6c034a5006
mopidy_subsonic/__init__.py
mopidy_subsonic/__init__.py
from __future__ import unicode_literals import os from mopidy import ext, config from mopidy.exceptions import ExtensionError __doc__ = """A extension for playing music from Subsonic. This extension handles URIs starting with ``subsonic:`` and enables you to play music using a Subsonic server. See https://github.co...
from __future__ import unicode_literals import os from mopidy import ext, config from mopidy.exceptions import ExtensionError __version__ = '0.2' class SubsonicExtension(ext.Extension): dist_name = 'Mopidy-Subsonic' ext_name = 'subsonic' version = __version__ def get_default_config(self): ...
Remove module docstring copied from an old Mopidy extension
Remove module docstring copied from an old Mopidy extension
Python
mit
rattboi/mopidy-subsonic
from __future__ import unicode_literals import os from mopidy import ext, config from mopidy.exceptions import ExtensionError __doc__ = """A extension for playing music from Subsonic. This extension handles URIs starting with ``subsonic:`` and enables you to play music using a Subsonic server. See https://github.co...
from __future__ import unicode_literals import os from mopidy import ext, config from mopidy.exceptions import ExtensionError __version__ = '0.2' class SubsonicExtension(ext.Extension): dist_name = 'Mopidy-Subsonic' ext_name = 'subsonic' version = __version__ def get_default_config(self): ...
<commit_before>from __future__ import unicode_literals import os from mopidy import ext, config from mopidy.exceptions import ExtensionError __doc__ = """A extension for playing music from Subsonic. This extension handles URIs starting with ``subsonic:`` and enables you to play music using a Subsonic server. See ht...
from __future__ import unicode_literals import os from mopidy import ext, config from mopidy.exceptions import ExtensionError __version__ = '0.2' class SubsonicExtension(ext.Extension): dist_name = 'Mopidy-Subsonic' ext_name = 'subsonic' version = __version__ def get_default_config(self): ...
from __future__ import unicode_literals import os from mopidy import ext, config from mopidy.exceptions import ExtensionError __doc__ = """A extension for playing music from Subsonic. This extension handles URIs starting with ``subsonic:`` and enables you to play music using a Subsonic server. See https://github.co...
<commit_before>from __future__ import unicode_literals import os from mopidy import ext, config from mopidy.exceptions import ExtensionError __doc__ = """A extension for playing music from Subsonic. This extension handles URIs starting with ``subsonic:`` and enables you to play music using a Subsonic server. See ht...
6d72a1d3b4bd2e1a11e2fb9744353e5d2d9c8863
setup.py
setup.py
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup(cmdclass = {'build_ext': build_ext}, ext_modules = [Extension("lulu_base", ["lulu_base.pyx"]), Extension("ccomp", ["ccomp.pyx"])])
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext import numpy def cext(name): return Extension(name, [name + ".pyx"], include_dirs=[numpy.get_include()]) setup(cmdclass = {'build_ext': build_ext}, ext_modules = [cext('lulu...
Add NumPy includes dir for Cython builds.
Add NumPy includes dir for Cython builds.
Python
bsd-3-clause
stefanv/lulu
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup(cmdclass = {'build_ext': build_ext}, ext_modules = [Extension("lulu_base", ["lulu_base.pyx"]), Extension("ccomp", ["ccomp.pyx"])]) Add NumPy includes dir for Cython builds.
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext import numpy def cext(name): return Extension(name, [name + ".pyx"], include_dirs=[numpy.get_include()]) setup(cmdclass = {'build_ext': build_ext}, ext_modules = [cext('lulu...
<commit_before>from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup(cmdclass = {'build_ext': build_ext}, ext_modules = [Extension("lulu_base", ["lulu_base.pyx"]), Extension("ccomp", ["ccomp.pyx"])]) <commit_msg>Add NumPy incl...
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext import numpy def cext(name): return Extension(name, [name + ".pyx"], include_dirs=[numpy.get_include()]) setup(cmdclass = {'build_ext': build_ext}, ext_modules = [cext('lulu...
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup(cmdclass = {'build_ext': build_ext}, ext_modules = [Extension("lulu_base", ["lulu_base.pyx"]), Extension("ccomp", ["ccomp.pyx"])]) Add NumPy includes dir for Cython builds....
<commit_before>from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup(cmdclass = {'build_ext': build_ext}, ext_modules = [Extension("lulu_base", ["lulu_base.pyx"]), Extension("ccomp", ["ccomp.pyx"])]) <commit_msg>Add NumPy incl...
11a377a03b5d0c7d26f1a49aefb8e9d634f75d95
lib/oeqa/runtime/sanity/comm_btcheck.py
lib/oeqa/runtime/sanity/comm_btcheck.py
from oeqa.oetest import oeRuntimeTest class CommBluetoothTest(oeRuntimeTest): log = "" def target_collect_info(self, cmd): (status, output) = self.target.run(cmd) self.log = self.log + "\n\n[Debug] Command output --- %s: \n" % cmd self.log = self.log + output '''Bluetooth device ch...
from oeqa.oetest import oeRuntimeTest class CommBluetoothTest(oeRuntimeTest): log = "" def target_collect_info(self, cmd): (status, output) = self.target.run(cmd) self.log = self.log + "\n\n[Debug] Command output --- %s: \n" % cmd self.log = self.log + output '''Bluetooth device ch...
Add workaround for edison platform. See IOTOS-1000, it needs 'connmanctl enable bluetooth' before rfkill. Then, the hciconfig could show hci0 device.
Add workaround for edison platform. See IOTOS-1000, it needs 'connmanctl enable bluetooth' before rfkill. Then, the hciconfig could show hci0 device. Signed-off-by: Zhang Jingke <0979c04a6d09a3b3c8dd699e3664fb112fdd2a5b@intel.com>
Python
mit
ostroproject/meta-iotqa,daweiwu/meta-iotqa-1,wanghongjuan/meta-iotqa-1,daweiwu/meta-iotqa-1,wanghongjuan/meta-iotqa-1,wanghongjuan/meta-iotqa-1,wanghongjuan/meta-iotqa-1,daweiwu/meta-iotqa-1,ostroproject/meta-iotqa,ostroproject/meta-iotqa,wanghongjuan/meta-iotqa-1,daweiwu/meta-iotqa-1,ostroproject/meta-iotqa,ostroproje...
from oeqa.oetest import oeRuntimeTest class CommBluetoothTest(oeRuntimeTest): log = "" def target_collect_info(self, cmd): (status, output) = self.target.run(cmd) self.log = self.log + "\n\n[Debug] Command output --- %s: \n" % cmd self.log = self.log + output '''Bluetooth device ch...
from oeqa.oetest import oeRuntimeTest class CommBluetoothTest(oeRuntimeTest): log = "" def target_collect_info(self, cmd): (status, output) = self.target.run(cmd) self.log = self.log + "\n\n[Debug] Command output --- %s: \n" % cmd self.log = self.log + output '''Bluetooth device ch...
<commit_before>from oeqa.oetest import oeRuntimeTest class CommBluetoothTest(oeRuntimeTest): log = "" def target_collect_info(self, cmd): (status, output) = self.target.run(cmd) self.log = self.log + "\n\n[Debug] Command output --- %s: \n" % cmd self.log = self.log + output '''Blue...
from oeqa.oetest import oeRuntimeTest class CommBluetoothTest(oeRuntimeTest): log = "" def target_collect_info(self, cmd): (status, output) = self.target.run(cmd) self.log = self.log + "\n\n[Debug] Command output --- %s: \n" % cmd self.log = self.log + output '''Bluetooth device ch...
from oeqa.oetest import oeRuntimeTest class CommBluetoothTest(oeRuntimeTest): log = "" def target_collect_info(self, cmd): (status, output) = self.target.run(cmd) self.log = self.log + "\n\n[Debug] Command output --- %s: \n" % cmd self.log = self.log + output '''Bluetooth device ch...
<commit_before>from oeqa.oetest import oeRuntimeTest class CommBluetoothTest(oeRuntimeTest): log = "" def target_collect_info(self, cmd): (status, output) = self.target.run(cmd) self.log = self.log + "\n\n[Debug] Command output --- %s: \n" % cmd self.log = self.log + output '''Blue...
bcda095b10a9db6ae1745ec4be45f3ee273c75aa
lms/djangoapps/philu_overrides/constants.py
lms/djangoapps/philu_overrides/constants.py
ACTIVATION_ERROR_MSG_FORMAT = '<span id="resend-activation-span"> Your account has not been activated. Please check your email to activate your account. <a id="resend-activation-link" href="{}"> Resend Activation Email </a></span>' ORG_DETAILS_UPDATE_ALERT = 'It has been more than a year since you updated these number...
ACTIVATION_ERROR_MSG_FORMAT = '<span id="resend-activation-span"> Your account has not been activated. Please check your email to activate your account. <a id="resend-activation-link" class="click-here-link" href="{}"> Resend Activation Email </a></span>' ORG_DETAILS_UPDATE_ALERT = 'It has been more than a year since ...
Add relevant css class to clickable link in banner
Add relevant css class to clickable link in banner
Python
agpl-3.0
philanthropy-u/edx-platform,philanthropy-u/edx-platform,philanthropy-u/edx-platform,philanthropy-u/edx-platform
ACTIVATION_ERROR_MSG_FORMAT = '<span id="resend-activation-span"> Your account has not been activated. Please check your email to activate your account. <a id="resend-activation-link" href="{}"> Resend Activation Email </a></span>' ORG_DETAILS_UPDATE_ALERT = 'It has been more than a year since you updated these number...
ACTIVATION_ERROR_MSG_FORMAT = '<span id="resend-activation-span"> Your account has not been activated. Please check your email to activate your account. <a id="resend-activation-link" class="click-here-link" href="{}"> Resend Activation Email </a></span>' ORG_DETAILS_UPDATE_ALERT = 'It has been more than a year since ...
<commit_before>ACTIVATION_ERROR_MSG_FORMAT = '<span id="resend-activation-span"> Your account has not been activated. Please check your email to activate your account. <a id="resend-activation-link" href="{}"> Resend Activation Email </a></span>' ORG_DETAILS_UPDATE_ALERT = 'It has been more than a year since you updat...
ACTIVATION_ERROR_MSG_FORMAT = '<span id="resend-activation-span"> Your account has not been activated. Please check your email to activate your account. <a id="resend-activation-link" class="click-here-link" href="{}"> Resend Activation Email </a></span>' ORG_DETAILS_UPDATE_ALERT = 'It has been more than a year since ...
ACTIVATION_ERROR_MSG_FORMAT = '<span id="resend-activation-span"> Your account has not been activated. Please check your email to activate your account. <a id="resend-activation-link" href="{}"> Resend Activation Email </a></span>' ORG_DETAILS_UPDATE_ALERT = 'It has been more than a year since you updated these number...
<commit_before>ACTIVATION_ERROR_MSG_FORMAT = '<span id="resend-activation-span"> Your account has not been activated. Please check your email to activate your account. <a id="resend-activation-link" href="{}"> Resend Activation Email </a></span>' ORG_DETAILS_UPDATE_ALERT = 'It has been more than a year since you updat...
6f4beaa772e9b8b9b1de6f6a92c0b7fd00bdd5af
mltsp/science_features/lomb_scargle_fast.py
mltsp/science_features/lomb_scargle_fast.py
import numpy as np import gatspy def lomb_scargle_fast_period(t, m, e): """Fits a simple sinuosidal model y(t) = A sin(2*pi*w*t + phi) + c and returns the estimated period 1/w. Much faster than fitting the full multi-frequency model used by `science_features.lomb_scargle`. """ opt_args =...
import numpy as np import gatspy def lomb_scargle_fast_period(t, m, e): """Fits a simple sinuosidal model y(t) = A sin(2*pi*w*t + phi) + c and returns the estimated period 1/w. Much faster than fitting the full multi-frequency model used by `science_features.lomb_scargle`. """ dt = t.max...
Use more sensible choice of period_range for `period_fast` feature
Use more sensible choice of period_range for `period_fast` feature Periods searched should depend only on the range of times, rather than the max time.
Python
bsd-3-clause
acrellin/mltsp,mltsp/mltsp,mltsp/mltsp,acrellin/mltsp,bnaul/mltsp,acrellin/mltsp,bnaul/mltsp,mltsp/mltsp,mltsp/mltsp,acrellin/mltsp,bnaul/mltsp,mltsp/mltsp,acrellin/mltsp,bnaul/mltsp,bnaul/mltsp,acrellin/mltsp,mltsp/mltsp,bnaul/mltsp
import numpy as np import gatspy def lomb_scargle_fast_period(t, m, e): """Fits a simple sinuosidal model y(t) = A sin(2*pi*w*t + phi) + c and returns the estimated period 1/w. Much faster than fitting the full multi-frequency model used by `science_features.lomb_scargle`. """ opt_args =...
import numpy as np import gatspy def lomb_scargle_fast_period(t, m, e): """Fits a simple sinuosidal model y(t) = A sin(2*pi*w*t + phi) + c and returns the estimated period 1/w. Much faster than fitting the full multi-frequency model used by `science_features.lomb_scargle`. """ dt = t.max...
<commit_before>import numpy as np import gatspy def lomb_scargle_fast_period(t, m, e): """Fits a simple sinuosidal model y(t) = A sin(2*pi*w*t + phi) + c and returns the estimated period 1/w. Much faster than fitting the full multi-frequency model used by `science_features.lomb_scargle`. """...
import numpy as np import gatspy def lomb_scargle_fast_period(t, m, e): """Fits a simple sinuosidal model y(t) = A sin(2*pi*w*t + phi) + c and returns the estimated period 1/w. Much faster than fitting the full multi-frequency model used by `science_features.lomb_scargle`. """ dt = t.max...
import numpy as np import gatspy def lomb_scargle_fast_period(t, m, e): """Fits a simple sinuosidal model y(t) = A sin(2*pi*w*t + phi) + c and returns the estimated period 1/w. Much faster than fitting the full multi-frequency model used by `science_features.lomb_scargle`. """ opt_args =...
<commit_before>import numpy as np import gatspy def lomb_scargle_fast_period(t, m, e): """Fits a simple sinuosidal model y(t) = A sin(2*pi*w*t + phi) + c and returns the estimated period 1/w. Much faster than fitting the full multi-frequency model used by `science_features.lomb_scargle`. """...
222cc6a9910f4fc44fd15a64da5db52a94d9a3c3
setup.py
setup.py
# coding=utf-8 from setuptools import setup, find_packages setup( name="git-up", version="1.3.0", packages=find_packages(exclude=["tests"]), scripts=['PyGitUp/gitup.py'], install_requires=['GitPython==1.0.0', 'colorama==0.3.3', 'termcolor==1.1.0', 'docopt==0.6.2', ...
# coding=utf-8 from setuptools import setup, find_packages setup( name="git-up", version="1.3.0", packages=find_packages(exclude=["tests"]), scripts=['PyGitUp/gitup.py'], install_requires=['GitPython==1.0.0', 'colorama==0.3.3', 'termcolor==1.1.0', 'docopt==0.6.2', ...
Use full module path for entry point
Use full module path for entry point
Python
mit
christer155/PyGitUp,christer155/PyGitUp,msiemens/PyGitUp
# coding=utf-8 from setuptools import setup, find_packages setup( name="git-up", version="1.3.0", packages=find_packages(exclude=["tests"]), scripts=['PyGitUp/gitup.py'], install_requires=['GitPython==1.0.0', 'colorama==0.3.3', 'termcolor==1.1.0', 'docopt==0.6.2', ...
# coding=utf-8 from setuptools import setup, find_packages setup( name="git-up", version="1.3.0", packages=find_packages(exclude=["tests"]), scripts=['PyGitUp/gitup.py'], install_requires=['GitPython==1.0.0', 'colorama==0.3.3', 'termcolor==1.1.0', 'docopt==0.6.2', ...
<commit_before># coding=utf-8 from setuptools import setup, find_packages setup( name="git-up", version="1.3.0", packages=find_packages(exclude=["tests"]), scripts=['PyGitUp/gitup.py'], install_requires=['GitPython==1.0.0', 'colorama==0.3.3', 'termcolor==1.1.0', 'doco...
# coding=utf-8 from setuptools import setup, find_packages setup( name="git-up", version="1.3.0", packages=find_packages(exclude=["tests"]), scripts=['PyGitUp/gitup.py'], install_requires=['GitPython==1.0.0', 'colorama==0.3.3', 'termcolor==1.1.0', 'docopt==0.6.2', ...
# coding=utf-8 from setuptools import setup, find_packages setup( name="git-up", version="1.3.0", packages=find_packages(exclude=["tests"]), scripts=['PyGitUp/gitup.py'], install_requires=['GitPython==1.0.0', 'colorama==0.3.3', 'termcolor==1.1.0', 'docopt==0.6.2', ...
<commit_before># coding=utf-8 from setuptools import setup, find_packages setup( name="git-up", version="1.3.0", packages=find_packages(exclude=["tests"]), scripts=['PyGitUp/gitup.py'], install_requires=['GitPython==1.0.0', 'colorama==0.3.3', 'termcolor==1.1.0', 'doco...
69b6652e3e804ccf1cef43a5ec157629bb0bfa5f
setup.py
setup.py
#!/usr/bin/env python import os.path # Version file managment scheme and graceful degredation for # setuptools borrowed and adapted from GitPython. try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, fi...
#!/usr/bin/env python import os.path # Version file managment scheme and graceful degredation for # setuptools borrowed and adapted from GitPython. try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, fi...
Make argparse dependency optional if running Python 2.7
Make argparse dependency optional if running Python 2.7 Signed-off-by: Daniel Farina <3d0f3b9ddcacec30c4008c5e030e6c13a478cb4f@heroku.com>
Python
bsd-3-clause
wal-e/wal-e,x86Labs/wal-e,equa/wal-e,DataDog/wal-e,fdr/heroku-wal-e,fdr/wal-e,heroku/wal-e,tenstartups/wal-e,alex/wal-e,intoximeters/wal-e,modulexcite/wal-e,RichardKnop/wal-e,nagual13/wal-e,ArtemZ/wal-e,ajmarks/wal-e
#!/usr/bin/env python import os.path # Version file managment scheme and graceful degredation for # setuptools borrowed and adapted from GitPython. try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, fi...
#!/usr/bin/env python import os.path # Version file managment scheme and graceful degredation for # setuptools borrowed and adapted from GitPython. try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, fi...
<commit_before>#!/usr/bin/env python import os.path # Version file managment scheme and graceful degredation for # setuptools borrowed and adapted from GitPython. try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools i...
#!/usr/bin/env python import os.path # Version file managment scheme and graceful degredation for # setuptools borrowed and adapted from GitPython. try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, fi...
#!/usr/bin/env python import os.path # Version file managment scheme and graceful degredation for # setuptools borrowed and adapted from GitPython. try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, fi...
<commit_before>#!/usr/bin/env python import os.path # Version file managment scheme and graceful degredation for # setuptools borrowed and adapted from GitPython. try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools i...
7b1a721f57133049c82a486df3393df677daea07
rex/exploit/exploit.py
rex/exploit/exploit.py
import angr from .shellcode_manager import ShellcodeManager from rex.exploit import CannotExploit import logging l = logging.getLogger("rex.exploit.Exploit") class Exploit(object): ''' Exploit object which can leak flags or set registers ''' def __init__(self, crash): ''' :param crash...
import angr from .shellcode_manager import ShellcodeManager from rex.exploit import CannotExploit import logging l = logging.getLogger("rex.exploit.Exploit") class Exploit(object): ''' Exploit object which can leak flags or set registers ''' def __init__(self, crash): ''' :param crash...
Complete a sentence in a comment
Complete a sentence in a comment
Python
bsd-2-clause
shellphish/rex,shellphish/rex
import angr from .shellcode_manager import ShellcodeManager from rex.exploit import CannotExploit import logging l = logging.getLogger("rex.exploit.Exploit") class Exploit(object): ''' Exploit object which can leak flags or set registers ''' def __init__(self, crash): ''' :param crash...
import angr from .shellcode_manager import ShellcodeManager from rex.exploit import CannotExploit import logging l = logging.getLogger("rex.exploit.Exploit") class Exploit(object): ''' Exploit object which can leak flags or set registers ''' def __init__(self, crash): ''' :param crash...
<commit_before>import angr from .shellcode_manager import ShellcodeManager from rex.exploit import CannotExploit import logging l = logging.getLogger("rex.exploit.Exploit") class Exploit(object): ''' Exploit object which can leak flags or set registers ''' def __init__(self, crash): ''' ...
import angr from .shellcode_manager import ShellcodeManager from rex.exploit import CannotExploit import logging l = logging.getLogger("rex.exploit.Exploit") class Exploit(object): ''' Exploit object which can leak flags or set registers ''' def __init__(self, crash): ''' :param crash...
import angr from .shellcode_manager import ShellcodeManager from rex.exploit import CannotExploit import logging l = logging.getLogger("rex.exploit.Exploit") class Exploit(object): ''' Exploit object which can leak flags or set registers ''' def __init__(self, crash): ''' :param crash...
<commit_before>import angr from .shellcode_manager import ShellcodeManager from rex.exploit import CannotExploit import logging l = logging.getLogger("rex.exploit.Exploit") class Exploit(object): ''' Exploit object which can leak flags or set registers ''' def __init__(self, crash): ''' ...
231291ca9190f802f2132874cd55c1fc63b13b56
setup.py
setup.py
# encoding: utf-8 from setuptools import setup, find_packages import simpy setup( name='SimPy', version=simpy.__version__, author='Ontje Lünsdorf, Stefan Scherfke', author_email='the_com at gmx.de; stefan at sofa-rockers.org', description='Event discrete, process based simulation for Python.', ...
# encoding: utf-8 from setuptools import setup, find_packages import simpy setup( name='simpy', version=simpy.__version__, author='Ontje Lünsdorf, Stefan Scherfke', author_email='the_com at gmx.de; stefan at sofa-rockers.org', description='Event discrete, process based simulation for Python.', ...
Change SimPy to simpy for the package name.
Change SimPy to simpy for the package name.
Python
mit
Uzere/uSim
# encoding: utf-8 from setuptools import setup, find_packages import simpy setup( name='SimPy', version=simpy.__version__, author='Ontje Lünsdorf, Stefan Scherfke', author_email='the_com at gmx.de; stefan at sofa-rockers.org', description='Event discrete, process based simulation for Python.', ...
# encoding: utf-8 from setuptools import setup, find_packages import simpy setup( name='simpy', version=simpy.__version__, author='Ontje Lünsdorf, Stefan Scherfke', author_email='the_com at gmx.de; stefan at sofa-rockers.org', description='Event discrete, process based simulation for Python.', ...
<commit_before># encoding: utf-8 from setuptools import setup, find_packages import simpy setup( name='SimPy', version=simpy.__version__, author='Ontje Lünsdorf, Stefan Scherfke', author_email='the_com at gmx.de; stefan at sofa-rockers.org', description='Event discrete, process based simulation f...
# encoding: utf-8 from setuptools import setup, find_packages import simpy setup( name='simpy', version=simpy.__version__, author='Ontje Lünsdorf, Stefan Scherfke', author_email='the_com at gmx.de; stefan at sofa-rockers.org', description='Event discrete, process based simulation for Python.', ...
# encoding: utf-8 from setuptools import setup, find_packages import simpy setup( name='SimPy', version=simpy.__version__, author='Ontje Lünsdorf, Stefan Scherfke', author_email='the_com at gmx.de; stefan at sofa-rockers.org', description='Event discrete, process based simulation for Python.', ...
<commit_before># encoding: utf-8 from setuptools import setup, find_packages import simpy setup( name='SimPy', version=simpy.__version__, author='Ontje Lünsdorf, Stefan Scherfke', author_email='the_com at gmx.de; stefan at sofa-rockers.org', description='Event discrete, process based simulation f...
d1e20c37db3e94b09bc03819ce561d5fef6d8189
setup.py
setup.py
from setuptools import setup, find_packages with open('README.md') as fhandle: long_description = fhandle.read() setup( name='buckets', version='1.0.0.dev', description='managing data by relevancy.', long_description=long_description, url="https://github.com/bdastur/spam", author="Behzad ...
from setuptools import setup, find_packages with open('README.md') as fhandle: long_description = fhandle.read() setup( name='buckets', version='1.0.0', description='managing data by relevancy.', long_description=long_description, url="https://github.com/bdastur/spam", author="Behzad Dast...
Remove the .dev from version.
Remove the .dev from version.
Python
apache-2.0
bdastur/buckets
from setuptools import setup, find_packages with open('README.md') as fhandle: long_description = fhandle.read() setup( name='buckets', version='1.0.0.dev', description='managing data by relevancy.', long_description=long_description, url="https://github.com/bdastur/spam", author="Behzad ...
from setuptools import setup, find_packages with open('README.md') as fhandle: long_description = fhandle.read() setup( name='buckets', version='1.0.0', description='managing data by relevancy.', long_description=long_description, url="https://github.com/bdastur/spam", author="Behzad Dast...
<commit_before>from setuptools import setup, find_packages with open('README.md') as fhandle: long_description = fhandle.read() setup( name='buckets', version='1.0.0.dev', description='managing data by relevancy.', long_description=long_description, url="https://github.com/bdastur/spam", ...
from setuptools import setup, find_packages with open('README.md') as fhandle: long_description = fhandle.read() setup( name='buckets', version='1.0.0', description='managing data by relevancy.', long_description=long_description, url="https://github.com/bdastur/spam", author="Behzad Dast...
from setuptools import setup, find_packages with open('README.md') as fhandle: long_description = fhandle.read() setup( name='buckets', version='1.0.0.dev', description='managing data by relevancy.', long_description=long_description, url="https://github.com/bdastur/spam", author="Behzad ...
<commit_before>from setuptools import setup, find_packages with open('README.md') as fhandle: long_description = fhandle.read() setup( name='buckets', version='1.0.0.dev', description='managing data by relevancy.', long_description=long_description, url="https://github.com/bdastur/spam", ...
1d4ea99dfae26491752ec95b5bfaf949fc592e75
setup.py
setup.py
# -*- coding: utf-8 -*- """Python packaging.""" import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'xal' DESCRIPTION = """Execution abstraction layer for high-level system scripts.""" README = open(os.path.join(here, 'README')).read() VERSION = open(os.path.join(here, 'VE...
# -*- coding: utf-8 -*- """Python packaging.""" import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'xal' DESCRIPTION = """Execution abstraction layer for high-level system scripts.""" README = open(os.path.join(here, 'README')).read() VERSION = open(os.path.join(here, 'VE...
Make supported Python versions clear: 2.6 and 2.7 for now.
Make supported Python versions clear: 2.6 and 2.7 for now.
Python
bsd-3-clause
benoitbryon/xal,benoitbryon/xal
# -*- coding: utf-8 -*- """Python packaging.""" import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'xal' DESCRIPTION = """Execution abstraction layer for high-level system scripts.""" README = open(os.path.join(here, 'README')).read() VERSION = open(os.path.join(here, 'VE...
# -*- coding: utf-8 -*- """Python packaging.""" import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'xal' DESCRIPTION = """Execution abstraction layer for high-level system scripts.""" README = open(os.path.join(here, 'README')).read() VERSION = open(os.path.join(here, 'VE...
<commit_before># -*- coding: utf-8 -*- """Python packaging.""" import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'xal' DESCRIPTION = """Execution abstraction layer for high-level system scripts.""" README = open(os.path.join(here, 'README')).read() VERSION = open(os.path...
# -*- coding: utf-8 -*- """Python packaging.""" import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'xal' DESCRIPTION = """Execution abstraction layer for high-level system scripts.""" README = open(os.path.join(here, 'README')).read() VERSION = open(os.path.join(here, 'VE...
# -*- coding: utf-8 -*- """Python packaging.""" import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'xal' DESCRIPTION = """Execution abstraction layer for high-level system scripts.""" README = open(os.path.join(here, 'README')).read() VERSION = open(os.path.join(here, 'VE...
<commit_before># -*- coding: utf-8 -*- """Python packaging.""" import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) NAME = 'xal' DESCRIPTION = """Execution abstraction layer for high-level system scripts.""" README = open(os.path.join(here, 'README')).read() VERSION = open(os.path...
060691f8187fca7975063e4da3b535c61aacc7dd
setup.py
setup.py
from setuptools import setup, find_packages setup( name='dataset', version='0.3.13', description="Toolkit for Python-based data processing.", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: ...
from setuptools import setup, find_packages setup( name='dataset', version='0.3.13', description="Toolkit for Python-based data processing.", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: ...
Include Python-slugify to begin using their slugging function
Include Python-slugify to begin using their slugging function
Python
mit
stefanw/dataset,reubano/dataset,saimn/dataset,pudo/dataset,askebos/dataset,twds/dataset,vguzmanp/dataset
from setuptools import setup, find_packages setup( name='dataset', version='0.3.13', description="Toolkit for Python-based data processing.", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: ...
from setuptools import setup, find_packages setup( name='dataset', version='0.3.13', description="Toolkit for Python-based data processing.", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: ...
<commit_before>from setuptools import setup, find_packages setup( name='dataset', version='0.3.13', description="Toolkit for Python-based data processing.", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: O...
from setuptools import setup, find_packages setup( name='dataset', version='0.3.13', description="Toolkit for Python-based data processing.", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: ...
from setuptools import setup, find_packages setup( name='dataset', version='0.3.13', description="Toolkit for Python-based data processing.", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: ...
<commit_before>from setuptools import setup, find_packages setup( name='dataset', version='0.3.13', description="Toolkit for Python-based data processing.", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: O...
374729efac2b79d1b4459c76932d7149988f5fe3
setup.py
setup.py
from distutils.core import setup setup( name='tspapi', version='0.1.0', url="http://boundary.github.io/pulse-api-python/", author='David Gwartney', author_email='david_gwartney@bmc.com', packages=['tspapi', ], # entry_points={ # 'console_scripts': [ # 'actionhandler = bound...
from distutils.core import setup setup( name='tspapi', version='0.1.1', url="https://github.com/boundary/pulse-api-python", author='David Gwartney', author_email='david_gwartney@bmc.com', packages=['tspapi', ], # entry_points={ # 'console_scripts': [ # 'actionhandler = boun...
Add correct URL ; increment version
Add correct URL ; increment version
Python
apache-2.0
jdgwartney/pulse-api-python
from distutils.core import setup setup( name='tspapi', version='0.1.0', url="http://boundary.github.io/pulse-api-python/", author='David Gwartney', author_email='david_gwartney@bmc.com', packages=['tspapi', ], # entry_points={ # 'console_scripts': [ # 'actionhandler = bound...
from distutils.core import setup setup( name='tspapi', version='0.1.1', url="https://github.com/boundary/pulse-api-python", author='David Gwartney', author_email='david_gwartney@bmc.com', packages=['tspapi', ], # entry_points={ # 'console_scripts': [ # 'actionhandler = boun...
<commit_before>from distutils.core import setup setup( name='tspapi', version='0.1.0', url="http://boundary.github.io/pulse-api-python/", author='David Gwartney', author_email='david_gwartney@bmc.com', packages=['tspapi', ], # entry_points={ # 'console_scripts': [ # 'action...
from distutils.core import setup setup( name='tspapi', version='0.1.1', url="https://github.com/boundary/pulse-api-python", author='David Gwartney', author_email='david_gwartney@bmc.com', packages=['tspapi', ], # entry_points={ # 'console_scripts': [ # 'actionhandler = boun...
from distutils.core import setup setup( name='tspapi', version='0.1.0', url="http://boundary.github.io/pulse-api-python/", author='David Gwartney', author_email='david_gwartney@bmc.com', packages=['tspapi', ], # entry_points={ # 'console_scripts': [ # 'actionhandler = bound...
<commit_before>from distutils.core import setup setup( name='tspapi', version='0.1.0', url="http://boundary.github.io/pulse-api-python/", author='David Gwartney', author_email='david_gwartney@bmc.com', packages=['tspapi', ], # entry_points={ # 'console_scripts': [ # 'action...
f5c93124a12331cadee8178009e8d22ce49883c5
setup.py
setup.py
# -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup README_rst = path.join(path.abspath(path.dirname(__file__)), "README.rst") with open(README_rst, "r") as f: long_description = f.read() setup( name="pyee", version="9.0.1", packages=find_packages(), include_...
# -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup README_rst = path.join(path.abspath(path.dirname(__file__)), "README.rst") with open(README_rst, "r") as f: long_description = f.read() setup( name="pyee", version="9.0.1", packages=find_packages(), include_...
Add tests_require field (might fix COPR build?)
Add tests_require field (might fix COPR build?)
Python
mit
jfhbrook/pyee
# -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup README_rst = path.join(path.abspath(path.dirname(__file__)), "README.rst") with open(README_rst, "r") as f: long_description = f.read() setup( name="pyee", version="9.0.1", packages=find_packages(), include_...
# -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup README_rst = path.join(path.abspath(path.dirname(__file__)), "README.rst") with open(README_rst, "r") as f: long_description = f.read() setup( name="pyee", version="9.0.1", packages=find_packages(), include_...
<commit_before># -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup README_rst = path.join(path.abspath(path.dirname(__file__)), "README.rst") with open(README_rst, "r") as f: long_description = f.read() setup( name="pyee", version="9.0.1", packages=find_packages(...
# -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup README_rst = path.join(path.abspath(path.dirname(__file__)), "README.rst") with open(README_rst, "r") as f: long_description = f.read() setup( name="pyee", version="9.0.1", packages=find_packages(), include_...
# -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup README_rst = path.join(path.abspath(path.dirname(__file__)), "README.rst") with open(README_rst, "r") as f: long_description = f.read() setup( name="pyee", version="9.0.1", packages=find_packages(), include_...
<commit_before># -*- coding: utf-8 -*- from os import path from setuptools import find_packages, setup README_rst = path.join(path.abspath(path.dirname(__file__)), "README.rst") with open(README_rst, "r") as f: long_description = f.read() setup( name="pyee", version="9.0.1", packages=find_packages(...
25da519492abb9c77968830adbe6504ebb3e3cee
setup.py
setup.py
#!/usr/bin/env python import sys from setuptools import setup VERSION = '0.2.0' install_requires = [] if sys.version_info < (2, 7): install_requires.append('argparse') try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc module not foun...
#!/usr/bin/env python import sys from setuptools import setup VERSION = '0.2.1' install_requires = [] if sys.version_info < (2, 7): install_requires.append('argparse') try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc module not foun...
Bump version in preparation for release. Beta status
Bump version in preparation for release. Beta status
Python
bsd-3-clause
adlibre/python-bureaucrat
#!/usr/bin/env python import sys from setuptools import setup VERSION = '0.2.0' install_requires = [] if sys.version_info < (2, 7): install_requires.append('argparse') try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc module not foun...
#!/usr/bin/env python import sys from setuptools import setup VERSION = '0.2.1' install_requires = [] if sys.version_info < (2, 7): install_requires.append('argparse') try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc module not foun...
<commit_before>#!/usr/bin/env python import sys from setuptools import setup VERSION = '0.2.0' install_requires = [] if sys.version_info < (2, 7): install_requires.append('argparse') try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc ...
#!/usr/bin/env python import sys from setuptools import setup VERSION = '0.2.1' install_requires = [] if sys.version_info < (2, 7): install_requires.append('argparse') try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc module not foun...
#!/usr/bin/env python import sys from setuptools import setup VERSION = '0.2.0' install_requires = [] if sys.version_info < (2, 7): install_requires.append('argparse') try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc module not foun...
<commit_before>#!/usr/bin/env python import sys from setuptools import setup VERSION = '0.2.0' install_requires = [] if sys.version_info < (2, 7): install_requires.append('argparse') try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc ...
ec9f75c1b53abd3cc91f7ff95816cf933917b1ba
setup.py
setup.py
import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='pytest-watch', version='3.1.0', description='Local continuous test runner with pytest and watchdog.', long_description...
import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='pytest-watch', version='3.1.0', description='Local continuous test runner with pytest and watchdog.', long_description...
Add pytest-watch to console scripts to match the name.
Add pytest-watch to console scripts to match the name.
Python
mit
blueyed/pytest-watch,rakjin/pytest-watch,ColtonProvias/pytest-watch,joeyespo/pytest-watch
import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='pytest-watch', version='3.1.0', description='Local continuous test runner with pytest and watchdog.', long_description...
import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='pytest-watch', version='3.1.0', description='Local continuous test runner with pytest and watchdog.', long_description...
<commit_before>import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='pytest-watch', version='3.1.0', description='Local continuous test runner with pytest and watchdog.', l...
import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='pytest-watch', version='3.1.0', description='Local continuous test runner with pytest and watchdog.', long_description...
import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='pytest-watch', version='3.1.0', description='Local continuous test runner with pytest and watchdog.', long_description...
<commit_before>import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='pytest-watch', version='3.1.0', description='Local continuous test runner with pytest and watchdog.', l...
cf2d13319a2e55aa74d72a93889ee27926172e67
setup.py
setup.py
import os from setuptools import find_packages from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='peewee', version=__import__('peewee').__version__, description='a little orm', long_description=readme, author='Charl...
import os from setuptools import find_packages from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='peewee', version=__import__('peewee').__version__, description='a little orm', long_description=readme, author='Charl...
Add berkeley_build to package data.
Add berkeley_build to package data.
Python
mit
coreos/peewee,ronyb29/peewee,mackjoner/peewee,d1hotpep/peewee,jnovinger/peewee,bopo/peewee,Dipsomaniac/peewee,coreos/peewee,jnovinger/peewee,jarrahwu/peewee,bopo/peewee,coleifer/peewee,coleifer/peewee,fuzeman/peewee,fuzeman/peewee,softside/peewee,wenxer/peewee,d1hotpep/peewee,jarrahwu/peewee,bopo/peewee,stas/peewee,lez...
import os from setuptools import find_packages from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='peewee', version=__import__('peewee').__version__, description='a little orm', long_description=readme, author='Charl...
import os from setuptools import find_packages from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='peewee', version=__import__('peewee').__version__, description='a little orm', long_description=readme, author='Charl...
<commit_before>import os from setuptools import find_packages from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='peewee', version=__import__('peewee').__version__, description='a little orm', long_description=readme, ...
import os from setuptools import find_packages from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='peewee', version=__import__('peewee').__version__, description='a little orm', long_description=readme, author='Charl...
import os from setuptools import find_packages from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='peewee', version=__import__('peewee').__version__, description='a little orm', long_description=readme, author='Charl...
<commit_before>import os from setuptools import find_packages from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='peewee', version=__import__('peewee').__version__, description='a little orm', long_description=readme, ...
9c2321585ef47634723b69bfa190719c17e3183f
roundware/rw/fields.py
roundware/rw/fields.py
from django.forms import forms from south.modelsinspector import add_introspection_rules from validatedfile.fields import ValidatedFileField import pyclamav class RWValidatedFileField(ValidatedFileField): """ Same as FileField, but you can specify: * content_types - list containing allowed content_typ...
from django.forms import forms from south.modelsinspector import add_introspection_rules from validatedfile.fields import ValidatedFileField class RWValidatedFileField(ValidatedFileField): """ Same as FileField, but you can specify: * content_types - list containing allowed content_types. Exa...
Move pyclamav import inside of clean method on RWValidatedFileField so that it doesn't get imported by streamscript or unless as needed for field validation
Move pyclamav import inside of clean method on RWValidatedFileField so that it doesn't get imported by streamscript or unless as needed for field validation
Python
agpl-3.0
IMAmuseum/roundware-server,yangjackascd/roundware-server,jslootbeek/roundware-server,probabble/roundware-server,jslootbeek/roundware-server,eosrei/roundware-server,probabble/roundware-server,yangjackascd/roundware-server,eosrei/roundware-server,eosrei/roundware-server,Karlamon/roundware-server,IMAmuseum/roundware-serve...
from django.forms import forms from south.modelsinspector import add_introspection_rules from validatedfile.fields import ValidatedFileField import pyclamav class RWValidatedFileField(ValidatedFileField): """ Same as FileField, but you can specify: * content_types - list containing allowed content_typ...
from django.forms import forms from south.modelsinspector import add_introspection_rules from validatedfile.fields import ValidatedFileField class RWValidatedFileField(ValidatedFileField): """ Same as FileField, but you can specify: * content_types - list containing allowed content_types. Exa...
<commit_before>from django.forms import forms from south.modelsinspector import add_introspection_rules from validatedfile.fields import ValidatedFileField import pyclamav class RWValidatedFileField(ValidatedFileField): """ Same as FileField, but you can specify: * content_types - list containing allo...
from django.forms import forms from south.modelsinspector import add_introspection_rules from validatedfile.fields import ValidatedFileField class RWValidatedFileField(ValidatedFileField): """ Same as FileField, but you can specify: * content_types - list containing allowed content_types. Exa...
from django.forms import forms from south.modelsinspector import add_introspection_rules from validatedfile.fields import ValidatedFileField import pyclamav class RWValidatedFileField(ValidatedFileField): """ Same as FileField, but you can specify: * content_types - list containing allowed content_typ...
<commit_before>from django.forms import forms from south.modelsinspector import add_introspection_rules from validatedfile.fields import ValidatedFileField import pyclamav class RWValidatedFileField(ValidatedFileField): """ Same as FileField, but you can specify: * content_types - list containing allo...
2c0116290c6017c8cad06eec1795be5aa61c7f57
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='pl-py2deb', version='0.5.1', description='A tool to convert python packages to debian packages.', author='Arjan Verwer', author_email='arjan.verwer@paylogic.eu', url='https://wiki.paylogic.eu/', packages=...
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='pl-py2deb', version='0.5.2', description='A tool to convert python packages to debian packages.', author='Arjan Verwer', author_email='arjan.verwer@paylogic.eu', url='https://wiki.paylogic.eu/', packages=...
Document missing dependency of python-debian
Document missing dependency of python-debian
Python
mit
paylogic/py2deb,paylogic/py2deb
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='pl-py2deb', version='0.5.1', description='A tool to convert python packages to debian packages.', author='Arjan Verwer', author_email='arjan.verwer@paylogic.eu', url='https://wiki.paylogic.eu/', packages=...
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='pl-py2deb', version='0.5.2', description='A tool to convert python packages to debian packages.', author='Arjan Verwer', author_email='arjan.verwer@paylogic.eu', url='https://wiki.paylogic.eu/', packages=...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup(name='pl-py2deb', version='0.5.1', description='A tool to convert python packages to debian packages.', author='Arjan Verwer', author_email='arjan.verwer@paylogic.eu', url='https://wiki.paylogic.eu/', ...
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='pl-py2deb', version='0.5.2', description='A tool to convert python packages to debian packages.', author='Arjan Verwer', author_email='arjan.verwer@paylogic.eu', url='https://wiki.paylogic.eu/', packages=...
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='pl-py2deb', version='0.5.1', description='A tool to convert python packages to debian packages.', author='Arjan Verwer', author_email='arjan.verwer@paylogic.eu', url='https://wiki.paylogic.eu/', packages=...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup(name='pl-py2deb', version='0.5.1', description='A tool to convert python packages to debian packages.', author='Arjan Verwer', author_email='arjan.verwer@paylogic.eu', url='https://wiki.paylogic.eu/', ...
0b56816dbb9ace028a003914f7ecbd0539ff812c
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 20 oct. 2013 @author: franck roudet ''' from setuptools import setup, find_packages current_version = '0.1' component_name = 'moves-event' setup(name=component_name, version='0.1', description='Generate Django Moves Signal', author='Franc...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 20 oct. 2013 @author: franck roudet ''' from setuptools import setup, find_packages current_version = '0.1.0' component_name = 'moves-event' setup(name=component_name, version=current_version, description='Generate Django Moves Signal', a...
Add decorator for token management
Add decorator for token management
Python
mit
francxk/moves-event,francxk/moves-event
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 20 oct. 2013 @author: franck roudet ''' from setuptools import setup, find_packages current_version = '0.1' component_name = 'moves-event' setup(name=component_name, version='0.1', description='Generate Django Moves Signal', author='Franc...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 20 oct. 2013 @author: franck roudet ''' from setuptools import setup, find_packages current_version = '0.1.0' component_name = 'moves-event' setup(name=component_name, version=current_version, description='Generate Django Moves Signal', a...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 20 oct. 2013 @author: franck roudet ''' from setuptools import setup, find_packages current_version = '0.1' component_name = 'moves-event' setup(name=component_name, version='0.1', description='Generate Django Moves Signal', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 20 oct. 2013 @author: franck roudet ''' from setuptools import setup, find_packages current_version = '0.1.0' component_name = 'moves-event' setup(name=component_name, version=current_version, description='Generate Django Moves Signal', a...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 20 oct. 2013 @author: franck roudet ''' from setuptools import setup, find_packages current_version = '0.1' component_name = 'moves-event' setup(name=component_name, version='0.1', description='Generate Django Moves Signal', author='Franc...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 20 oct. 2013 @author: franck roudet ''' from setuptools import setup, find_packages current_version = '0.1' component_name = 'moves-event' setup(name=component_name, version='0.1', description='Generate Django Moves Signal', ...
b4cb9768918fd6c6dd206d8ea081539e1f2285c9
setup.py
setup.py
#!/usr/bin/env python, from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), name='nsls2-auto-builder', description='toolset for analyzing automated conda package building at NSLS2', author='Eric Dill', author_...
#!/usr/bin/env python, from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), name='nsls2-auto-builder', description='toolset for analyzing automated conda package building at NSLS2', author='Eric Dill', author_...
Remove yaml from install_requires. It is not a valid package
Remove yaml from install_requires. It is not a valid package
Python
bsd-3-clause
NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes
#!/usr/bin/env python, from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), name='nsls2-auto-builder', description='toolset for analyzing automated conda package building at NSLS2', author='Eric Dill', author_...
#!/usr/bin/env python, from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), name='nsls2-auto-builder', description='toolset for analyzing automated conda package building at NSLS2', author='Eric Dill', author_...
<commit_before>#!/usr/bin/env python, from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), name='nsls2-auto-builder', description='toolset for analyzing automated conda package building at NSLS2', author='Eric Dil...
#!/usr/bin/env python, from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), name='nsls2-auto-builder', description='toolset for analyzing automated conda package building at NSLS2', author='Eric Dill', author_...
#!/usr/bin/env python, from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), name='nsls2-auto-builder', description='toolset for analyzing automated conda package building at NSLS2', author='Eric Dill', author_...
<commit_before>#!/usr/bin/env python, from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), name='nsls2-auto-builder', description='toolset for analyzing automated conda package building at NSLS2', author='Eric Dil...
09bd6564b172e6bad10315359e49aa03e1c7e6e1
setup.py
setup.py
""" Python JOLT Implementation """ from setuptools import setup import configparser config = configparser.ConfigParser() config.read('Pipfile') install_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['packages'].items())) tests_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['dev-packages'].i...
""" Python JOLT Implementation """ from setuptools import setup import configparser config = configparser.ConfigParser() config.read('Pipfile') install_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['packages'].items())) tests_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['dev-packages'].i...
Remove install_requires since it's empty
Remove install_requires since it's empty
Python
apache-2.0
rachekalmir/pyJolt
""" Python JOLT Implementation """ from setuptools import setup import configparser config = configparser.ConfigParser() config.read('Pipfile') install_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['packages'].items())) tests_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['dev-packages'].i...
""" Python JOLT Implementation """ from setuptools import setup import configparser config = configparser.ConfigParser() config.read('Pipfile') install_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['packages'].items())) tests_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['dev-packages'].i...
<commit_before>""" Python JOLT Implementation """ from setuptools import setup import configparser config = configparser.ConfigParser() config.read('Pipfile') install_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['packages'].items())) tests_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['d...
""" Python JOLT Implementation """ from setuptools import setup import configparser config = configparser.ConfigParser() config.read('Pipfile') install_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['packages'].items())) tests_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['dev-packages'].i...
""" Python JOLT Implementation """ from setuptools import setup import configparser config = configparser.ConfigParser() config.read('Pipfile') install_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['packages'].items())) tests_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['dev-packages'].i...
<commit_before>""" Python JOLT Implementation """ from setuptools import setup import configparser config = configparser.ConfigParser() config.read('Pipfile') install_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['packages'].items())) tests_requires = list(map(lambda v: v[0] + v[1].strip("'"), config['d...
685b5e6965bd45ed3240b3da9dfaaf27f25882a0
setup.py
setup.py
from setuptools import setup ### Add find_packages function, see # https://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery import os def is_package(path): return ( os.path.isdir(path) and os.path.isfile(os.path.join(path, '__init__.py')) ) def find_packages(path=".", base="",...
from setuptools import setup ### Add find_packages function, see # https://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery import os def is_package(path): return ( os.path.isdir(path) and os.path.isfile(os.path.join(path, '__init__.py')) ) def find_packages(path=".", base="",...
Bump version for UDF/blob support
Bump version for UDF/blob support
Python
bsd-3-clause
uwescience/raco,uwescience/raco,uwescience/raco,uwescience/raco,uwescience/raco
from setuptools import setup ### Add find_packages function, see # https://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery import os def is_package(path): return ( os.path.isdir(path) and os.path.isfile(os.path.join(path, '__init__.py')) ) def find_packages(path=".", base="",...
from setuptools import setup ### Add find_packages function, see # https://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery import os def is_package(path): return ( os.path.isdir(path) and os.path.isfile(os.path.join(path, '__init__.py')) ) def find_packages(path=".", base="",...
<commit_before>from setuptools import setup ### Add find_packages function, see # https://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery import os def is_package(path): return ( os.path.isdir(path) and os.path.isfile(os.path.join(path, '__init__.py')) ) def find_packages(pat...
from setuptools import setup ### Add find_packages function, see # https://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery import os def is_package(path): return ( os.path.isdir(path) and os.path.isfile(os.path.join(path, '__init__.py')) ) def find_packages(path=".", base="",...
from setuptools import setup ### Add find_packages function, see # https://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery import os def is_package(path): return ( os.path.isdir(path) and os.path.isfile(os.path.join(path, '__init__.py')) ) def find_packages(path=".", base="",...
<commit_before>from setuptools import setup ### Add find_packages function, see # https://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery import os def is_package(path): return ( os.path.isdir(path) and os.path.isfile(os.path.join(path, '__init__.py')) ) def find_packages(pat...
eefc359576b75fadd0293e46c45227f2e1cad4a9
setup.py
setup.py
from setuptools import setup, find_packages setup( name='prometheus-es-exporter', version='0.9.0.dev1', description='Elasticsearch query Prometheus exporter', url='https://github.com/braedon/prometheus-es-exporter', author='Braedon Vickers', author_email='braedon.vickers@gmail.com', license...
from setuptools import setup, find_packages from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='prometheus-es-exporter', version='0.9.0.dev1', description='Elastics...
Add README to python package metadata
Add README to python package metadata
Python
mit
Braedon/prometheus-es-exporter
from setuptools import setup, find_packages setup( name='prometheus-es-exporter', version='0.9.0.dev1', description='Elasticsearch query Prometheus exporter', url='https://github.com/braedon/prometheus-es-exporter', author='Braedon Vickers', author_email='braedon.vickers@gmail.com', license...
from setuptools import setup, find_packages from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='prometheus-es-exporter', version='0.9.0.dev1', description='Elastics...
<commit_before>from setuptools import setup, find_packages setup( name='prometheus-es-exporter', version='0.9.0.dev1', description='Elasticsearch query Prometheus exporter', url='https://github.com/braedon/prometheus-es-exporter', author='Braedon Vickers', author_email='braedon.vickers@gmail.co...
from setuptools import setup, find_packages from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='prometheus-es-exporter', version='0.9.0.dev1', description='Elastics...
from setuptools import setup, find_packages setup( name='prometheus-es-exporter', version='0.9.0.dev1', description='Elasticsearch query Prometheus exporter', url='https://github.com/braedon/prometheus-es-exporter', author='Braedon Vickers', author_email='braedon.vickers@gmail.com', license...
<commit_before>from setuptools import setup, find_packages setup( name='prometheus-es-exporter', version='0.9.0.dev1', description='Elasticsearch query Prometheus exporter', url='https://github.com/braedon/prometheus-es-exporter', author='Braedon Vickers', author_email='braedon.vickers@gmail.co...
7f817802445bcfea9730f29a82c87f4883fda71e
apps/package/templatetags/package_tags.py
apps/package/templatetags/package_tags.py
from datetime import timedelta from datetime import datetime from django import template from github2.client import Github from package.models import Package, Commit register = template.Library() github = Github() @register.filter def commits_over_52(package): current = datetime.now() weeks = [] comm...
from datetime import timedelta from datetime import datetime from django import template from github2.client import Github from package.models import Package, Commit register = template.Library() github = Github() @register.filter def commits_over_52(package): current = datetime.now() weeks = [] comm...
Update the commit_over_52 template tag to be more efficient.
Update the commit_over_52 template tag to be more efficient. Replaced several list comprehensions with in-database operations and map calls for significantly improved performance.
Python
mit
miketheman/opencomparison,miketheman/opencomparison,benracine/opencomparison,audreyr/opencomparison,nanuxbe/djangopackages,cartwheelweb/packaginator,pydanny/djangopackages,nanuxbe/djangopackages,QLGu/djangopackages,cartwheelweb/packaginator,pydanny/djangopackages,QLGu/djangopackages,audreyr/opencomparison,nanuxbe/djang...
from datetime import timedelta from datetime import datetime from django import template from github2.client import Github from package.models import Package, Commit register = template.Library() github = Github() @register.filter def commits_over_52(package): current = datetime.now() weeks = [] comm...
from datetime import timedelta from datetime import datetime from django import template from github2.client import Github from package.models import Package, Commit register = template.Library() github = Github() @register.filter def commits_over_52(package): current = datetime.now() weeks = [] comm...
<commit_before>from datetime import timedelta from datetime import datetime from django import template from github2.client import Github from package.models import Package, Commit register = template.Library() github = Github() @register.filter def commits_over_52(package): current = datetime.now() week...
from datetime import timedelta from datetime import datetime from django import template from github2.client import Github from package.models import Package, Commit register = template.Library() github = Github() @register.filter def commits_over_52(package): current = datetime.now() weeks = [] comm...
from datetime import timedelta from datetime import datetime from django import template from github2.client import Github from package.models import Package, Commit register = template.Library() github = Github() @register.filter def commits_over_52(package): current = datetime.now() weeks = [] comm...
<commit_before>from datetime import timedelta from datetime import datetime from django import template from github2.client import Github from package.models import Package, Commit register = template.Library() github = Github() @register.filter def commits_over_52(package): current = datetime.now() week...
dbe7bfdba6392cb2cc5c8d0e710682c2cb9c2bc5
cellom2tif/filetypes.py
cellom2tif/filetypes.py
def is_cellomics_image(fn): """Determine whether a file is a Cellomics image. Parameters ---------- fn : string The filename of the file in question. Returns ------- is_cellom : bool True if the filename points to a Cellomics image. """ is_cellom = fn.endswith('.C01...
import os def fn_has_ext(fn, ext, case_sensitive=False): """ Determine whether a file has a particular extension. Parameters ---------- fn : string The filename of the query file. ext : string The extension being checked. case_sensitive : bool Whether or not to tre...
Add DIB files to cellomics file filter
Add DIB files to cellomics file filter
Python
bsd-3-clause
jni/cellom2tif
def is_cellomics_image(fn): """Determine whether a file is a Cellomics image. Parameters ---------- fn : string The filename of the file in question. Returns ------- is_cellom : bool True if the filename points to a Cellomics image. """ is_cellom = fn.endswith('.C01...
import os def fn_has_ext(fn, ext, case_sensitive=False): """ Determine whether a file has a particular extension. Parameters ---------- fn : string The filename of the query file. ext : string The extension being checked. case_sensitive : bool Whether or not to tre...
<commit_before>def is_cellomics_image(fn): """Determine whether a file is a Cellomics image. Parameters ---------- fn : string The filename of the file in question. Returns ------- is_cellom : bool True if the filename points to a Cellomics image. """ is_cellom = fn...
import os def fn_has_ext(fn, ext, case_sensitive=False): """ Determine whether a file has a particular extension. Parameters ---------- fn : string The filename of the query file. ext : string The extension being checked. case_sensitive : bool Whether or not to tre...
def is_cellomics_image(fn): """Determine whether a file is a Cellomics image. Parameters ---------- fn : string The filename of the file in question. Returns ------- is_cellom : bool True if the filename points to a Cellomics image. """ is_cellom = fn.endswith('.C01...
<commit_before>def is_cellomics_image(fn): """Determine whether a file is a Cellomics image. Parameters ---------- fn : string The filename of the file in question. Returns ------- is_cellom : bool True if the filename points to a Cellomics image. """ is_cellom = fn...
3c93a0ee9fa2ed615fd2ee1fd0100c1d4d971306
client/python/setup.py
client/python/setup.py
from distutils.core import setup setup( name = 'UnrealCV', packages = ['unrealcv'], version = '0.2', description = 'UnrealCV client for python. see http://unrealcv.github.io for more detail.', author = 'Weichao Qiu', author_email = 'qiuwch@gmail.com', url = 'http://unrealcv.github.io', ...
from distutils.core import setup setup( name = 'UnrealCV', packages = ['unrealcv'], version = '0.3.10', description = 'UnrealCV client for python. see http://unrealcv.github.io for more detail.', author = 'Weichao Qiu', author_email = 'qiuwch@gmail.com', url = 'http://unrealcv.github.io', ...
Update python client version number.
Update python client version number.
Python
mit
unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv
from distutils.core import setup setup( name = 'UnrealCV', packages = ['unrealcv'], version = '0.2', description = 'UnrealCV client for python. see http://unrealcv.github.io for more detail.', author = 'Weichao Qiu', author_email = 'qiuwch@gmail.com', url = 'http://unrealcv.github.io', ...
from distutils.core import setup setup( name = 'UnrealCV', packages = ['unrealcv'], version = '0.3.10', description = 'UnrealCV client for python. see http://unrealcv.github.io for more detail.', author = 'Weichao Qiu', author_email = 'qiuwch@gmail.com', url = 'http://unrealcv.github.io', ...
<commit_before>from distutils.core import setup setup( name = 'UnrealCV', packages = ['unrealcv'], version = '0.2', description = 'UnrealCV client for python. see http://unrealcv.github.io for more detail.', author = 'Weichao Qiu', author_email = 'qiuwch@gmail.com', url = 'http://unrealcv.g...
from distutils.core import setup setup( name = 'UnrealCV', packages = ['unrealcv'], version = '0.3.10', description = 'UnrealCV client for python. see http://unrealcv.github.io for more detail.', author = 'Weichao Qiu', author_email = 'qiuwch@gmail.com', url = 'http://unrealcv.github.io', ...
from distutils.core import setup setup( name = 'UnrealCV', packages = ['unrealcv'], version = '0.2', description = 'UnrealCV client for python. see http://unrealcv.github.io for more detail.', author = 'Weichao Qiu', author_email = 'qiuwch@gmail.com', url = 'http://unrealcv.github.io', ...
<commit_before>from distutils.core import setup setup( name = 'UnrealCV', packages = ['unrealcv'], version = '0.2', description = 'UnrealCV client for python. see http://unrealcv.github.io for more detail.', author = 'Weichao Qiu', author_email = 'qiuwch@gmail.com', url = 'http://unrealcv.g...
7c4476fe79da06be5aa89f9a6580c36d11411384
setup.py
setup.py
from setuptools import setup setup( name="simple_slack_bot", packages=["simple_slack_bot"], # this must be the same as the name above version="1.3.2", description="Simple Slack Bot makes writing your next Slack bot incredibly easy", long_description="Simple Slack Bot makes writing your next Slack ...
from setuptools import setup from os import path # read the contents of your README file this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="simple_slack_bot", packages=["simple_slack_bot"]...
Modify pypi description to use README.md
Modify pypi description to use README.md
Python
mit
GregHilston/Simple-Slack-Bot
from setuptools import setup setup( name="simple_slack_bot", packages=["simple_slack_bot"], # this must be the same as the name above version="1.3.2", description="Simple Slack Bot makes writing your next Slack bot incredibly easy", long_description="Simple Slack Bot makes writing your next Slack ...
from setuptools import setup from os import path # read the contents of your README file this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="simple_slack_bot", packages=["simple_slack_bot"]...
<commit_before>from setuptools import setup setup( name="simple_slack_bot", packages=["simple_slack_bot"], # this must be the same as the name above version="1.3.2", description="Simple Slack Bot makes writing your next Slack bot incredibly easy", long_description="Simple Slack Bot makes writing y...
from setuptools import setup from os import path # read the contents of your README file this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="simple_slack_bot", packages=["simple_slack_bot"]...
from setuptools import setup setup( name="simple_slack_bot", packages=["simple_slack_bot"], # this must be the same as the name above version="1.3.2", description="Simple Slack Bot makes writing your next Slack bot incredibly easy", long_description="Simple Slack Bot makes writing your next Slack ...
<commit_before>from setuptools import setup setup( name="simple_slack_bot", packages=["simple_slack_bot"], # this must be the same as the name above version="1.3.2", description="Simple Slack Bot makes writing your next Slack bot incredibly easy", long_description="Simple Slack Bot makes writing y...
8ad0af715803fc263d33a1592b4cc20b16dd81c8
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import find_packages, setup setup( name='django-oscar-stores', version="2.0", url='https://github.com/django-oscar/django-oscar-stores', author="David Winterbottom", author_email="david.winterbottom@gmail.com", description="An extension for Oscar...
#!/usr/bin/env python import os from setuptools import find_packages, setup setup( name='django-oscar-stores', version="2.0", url='https://github.com/django-oscar/django-oscar-stores', author="David Winterbottom", author_email="david.winterbottom@gmail.com", description="An extension for Oscar...
Update sorl-thumbnail requirement from <12.5,>=12.4.1 to >=12.4.1,<12.7
Update sorl-thumbnail requirement from <12.5,>=12.4.1 to >=12.4.1,<12.7 Updates the requirements on [sorl-thumbnail](https://github.com/jazzband/sorl-thumbnail) to permit the latest version. - [Release notes](https://github.com/jazzband/sorl-thumbnail/releases) - [Changelog](https://github.com/jazzband/sorl-thumbnail/...
Python
bsd-3-clause
django-oscar/django-oscar-stores,django-oscar/django-oscar-stores,django-oscar/django-oscar-stores
#!/usr/bin/env python import os from setuptools import find_packages, setup setup( name='django-oscar-stores', version="2.0", url='https://github.com/django-oscar/django-oscar-stores', author="David Winterbottom", author_email="david.winterbottom@gmail.com", description="An extension for Oscar...
#!/usr/bin/env python import os from setuptools import find_packages, setup setup( name='django-oscar-stores', version="2.0", url='https://github.com/django-oscar/django-oscar-stores', author="David Winterbottom", author_email="david.winterbottom@gmail.com", description="An extension for Oscar...
<commit_before>#!/usr/bin/env python import os from setuptools import find_packages, setup setup( name='django-oscar-stores', version="2.0", url='https://github.com/django-oscar/django-oscar-stores', author="David Winterbottom", author_email="david.winterbottom@gmail.com", description="An exte...
#!/usr/bin/env python import os from setuptools import find_packages, setup setup( name='django-oscar-stores', version="2.0", url='https://github.com/django-oscar/django-oscar-stores', author="David Winterbottom", author_email="david.winterbottom@gmail.com", description="An extension for Oscar...
#!/usr/bin/env python import os from setuptools import find_packages, setup setup( name='django-oscar-stores', version="2.0", url='https://github.com/django-oscar/django-oscar-stores', author="David Winterbottom", author_email="david.winterbottom@gmail.com", description="An extension for Oscar...
<commit_before>#!/usr/bin/env python import os from setuptools import find_packages, setup setup( name='django-oscar-stores', version="2.0", url='https://github.com/django-oscar/django-oscar-stores', author="David Winterbottom", author_email="david.winterbottom@gmail.com", description="An exte...
936234e5de71267faec3b081e96d937098ff6d51
portfolio/tests/__init__.py
portfolio/tests/__init__.py
# from .admin import * from .models import *
# Must use absolute imports with ``*`` for Python 2.5. # from portfolio.tests.admin import * from portfolio.tests.models import *
Fix test broken in Python 2.5 by commit 414cdb8b274.
Fix test broken in Python 2.5 by commit 414cdb8b274.
Python
bsd-3-clause
benspaulding/django-portfolio,blturner/django-portfolio,blturner/django-portfolio
# from .admin import * from .models import * Fix test broken in Python 2.5 by commit 414cdb8b274.
# Must use absolute imports with ``*`` for Python 2.5. # from portfolio.tests.admin import * from portfolio.tests.models import *
<commit_before># from .admin import * from .models import * <commit_msg>Fix test broken in Python 2.5 by commit 414cdb8b274.<commit_after>
# Must use absolute imports with ``*`` for Python 2.5. # from portfolio.tests.admin import * from portfolio.tests.models import *
# from .admin import * from .models import * Fix test broken in Python 2.5 by commit 414cdb8b274.# Must use absolute imports with ``*`` for Python 2.5. # from portfolio.tests.admin import * from portfolio.tests.models import *
<commit_before># from .admin import * from .models import * <commit_msg>Fix test broken in Python 2.5 by commit 414cdb8b274.<commit_after># Must use absolute imports with ``*`` for Python 2.5. # from portfolio.tests.admin import * from portfolio.tests.models import *
7a85c0da0640c5dc669e1416e6ce76c58343f07a
normandy/recipes/storage.py
normandy/recipes/storage.py
import json from django.db import transaction from product_details.storage import PDDatabaseStorage class ProductDetailsRelationalStorage(PDDatabaseStorage): """ Extends the in-database storage for product_details to provide a database table of locales for other models to have foreign keys to. """ ...
import json from django.db import transaction from product_details.storage import PDDatabaseStorage class ProductDetailsRelationalStorage(PDDatabaseStorage): """ Extends the in-database storage for product_details to provide a database table of locales for other models to have foreign keys to. """ ...
Remove obsolete locales during product_details sync.
Remove obsolete locales during product_details sync.
Python
mpl-2.0
mozilla/normandy,Osmose/normandy,Osmose/normandy,mozilla/normandy,mozilla/normandy,Osmose/normandy,mozilla/normandy,Osmose/normandy
import json from django.db import transaction from product_details.storage import PDDatabaseStorage class ProductDetailsRelationalStorage(PDDatabaseStorage): """ Extends the in-database storage for product_details to provide a database table of locales for other models to have foreign keys to. """ ...
import json from django.db import transaction from product_details.storage import PDDatabaseStorage class ProductDetailsRelationalStorage(PDDatabaseStorage): """ Extends the in-database storage for product_details to provide a database table of locales for other models to have foreign keys to. """ ...
<commit_before>import json from django.db import transaction from product_details.storage import PDDatabaseStorage class ProductDetailsRelationalStorage(PDDatabaseStorage): """ Extends the in-database storage for product_details to provide a database table of locales for other models to have foreign key...
import json from django.db import transaction from product_details.storage import PDDatabaseStorage class ProductDetailsRelationalStorage(PDDatabaseStorage): """ Extends the in-database storage for product_details to provide a database table of locales for other models to have foreign keys to. """ ...
import json from django.db import transaction from product_details.storage import PDDatabaseStorage class ProductDetailsRelationalStorage(PDDatabaseStorage): """ Extends the in-database storage for product_details to provide a database table of locales for other models to have foreign keys to. """ ...
<commit_before>import json from django.db import transaction from product_details.storage import PDDatabaseStorage class ProductDetailsRelationalStorage(PDDatabaseStorage): """ Extends the in-database storage for product_details to provide a database table of locales for other models to have foreign key...
3e6b1fcd1b88aa1bbfa7ba7a1dd5e95affa371fc
mustachejs/templatetags/mustachejs.py
mustachejs/templatetags/mustachejs.py
from django import template from ..conf import conf from ..loading import find, MustacheJSTemplateNotFound register = template.Library() class MustacheJSNode(template.Node): def __init__(self, name): self.name = template.Variable(name) def render(self, context): name = self.name.resolve...
from django import template from ..conf import conf from ..loading import find, MustacheJSTemplateNotFound register = template.Library() class MustacheJSNode(template.Node): def __init__(self, name): self.name = template.Variable(name) def render(self, context): name = self.name.resolve...
Use the 'with' keyword for managing template file pointers
Use the 'with' keyword for managing template file pointers
Python
bsd-3-clause
mjumbewu/django-jstemplate,bopo/django-jstemplate,mjumbewu/django-jstemplate,bopo/django-jstemplate,mjumbewu/django-jstemplate,bopo/django-jstemplate
from django import template from ..conf import conf from ..loading import find, MustacheJSTemplateNotFound register = template.Library() class MustacheJSNode(template.Node): def __init__(self, name): self.name = template.Variable(name) def render(self, context): name = self.name.resolve...
from django import template from ..conf import conf from ..loading import find, MustacheJSTemplateNotFound register = template.Library() class MustacheJSNode(template.Node): def __init__(self, name): self.name = template.Variable(name) def render(self, context): name = self.name.resolve...
<commit_before>from django import template from ..conf import conf from ..loading import find, MustacheJSTemplateNotFound register = template.Library() class MustacheJSNode(template.Node): def __init__(self, name): self.name = template.Variable(name) def render(self, context): name = se...
from django import template from ..conf import conf from ..loading import find, MustacheJSTemplateNotFound register = template.Library() class MustacheJSNode(template.Node): def __init__(self, name): self.name = template.Variable(name) def render(self, context): name = self.name.resolve...
from django import template from ..conf import conf from ..loading import find, MustacheJSTemplateNotFound register = template.Library() class MustacheJSNode(template.Node): def __init__(self, name): self.name = template.Variable(name) def render(self, context): name = self.name.resolve...
<commit_before>from django import template from ..conf import conf from ..loading import find, MustacheJSTemplateNotFound register = template.Library() class MustacheJSNode(template.Node): def __init__(self, name): self.name = template.Variable(name) def render(self, context): name = se...
ffae486e85ce1949c274dd0053e225994fccd7f1
users.py
users.py
import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.api import users from django.utils import simplejson from model import get_current_youtify_user from model import YoutifyUser from model import get_youtify_user_by_nick from model import get_current...
import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.api import users from django.utils import simplejson from model import get_current_youtify_user from model import YoutifyUser from model import get_youtify_user_by_nick from model import get_current...
Use GET /me if you want the current user JSON
Use GET /me if you want the current user JSON
Python
mit
youtify/youtify,youtify/youtify,youtify/youtify
import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.api import users from django.utils import simplejson from model import get_current_youtify_user from model import YoutifyUser from model import get_youtify_user_by_nick from model import get_current...
import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.api import users from django.utils import simplejson from model import get_current_youtify_user from model import YoutifyUser from model import get_youtify_user_by_nick from model import get_current...
<commit_before>import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.api import users from django.utils import simplejson from model import get_current_youtify_user from model import YoutifyUser from model import get_youtify_user_by_nick from model imp...
import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.api import users from django.utils import simplejson from model import get_current_youtify_user from model import YoutifyUser from model import get_youtify_user_by_nick from model import get_current...
import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.api import users from django.utils import simplejson from model import get_current_youtify_user from model import YoutifyUser from model import get_youtify_user_by_nick from model import get_current...
<commit_before>import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.api import users from django.utils import simplejson from model import get_current_youtify_user from model import YoutifyUser from model import get_youtify_user_by_nick from model imp...
6a63f9ff253e335a8721d8ee0ac5db4a066032ed
contrib/packs/actions/pack_mgmt/delete.py
contrib/packs/actions/pack_mgmt/delete.py
import os import shutil from st2actions.runners.pythonrunner import Action BLOCKED_PACKS = frozenset(['core']) class UninstallPackAction(Action): def run(self, abs_repo_base=None, packs=None): intersection = BLOCKED_PACKS & frozenset(packs) if len(intersection) > 0: raise Exception(...
import os import pipes import shutil from st2actions.runners.pythonrunner import Action BLOCKED_PACKS = frozenset(['core']) # TODO: Use config base path + virtualenv suffix VIRTUALENVS_PATH = '/opt/stackstorm/virtualenvs/' class UninstallPackAction(Action): def run(self, abs_repo_base=None, packs=None): ...
Update "packs.uninstall" to also remove pack-specific virtual environment (if exists).
Update "packs.uninstall" to also remove pack-specific virtual environment (if exists).
Python
apache-2.0
alfasin/st2,pixelrebel/st2,emedvedev/st2,dennybaa/st2,Plexxi/st2,tonybaloney/st2,emedvedev/st2,lakshmi-kannan/st2,grengojbo/st2,nzlosh/st2,pinterb/st2,jtopjian/st2,nzlosh/st2,Itxaka/st2,jtopjian/st2,StackStorm/st2,punalpatel/st2,Itxaka/st2,grengojbo/st2,Itxaka/st2,lakshmi-kannan/st2,alfasin/st2,punalpatel/st2,peak6/st2...
import os import shutil from st2actions.runners.pythonrunner import Action BLOCKED_PACKS = frozenset(['core']) class UninstallPackAction(Action): def run(self, abs_repo_base=None, packs=None): intersection = BLOCKED_PACKS & frozenset(packs) if len(intersection) > 0: raise Exception(...
import os import pipes import shutil from st2actions.runners.pythonrunner import Action BLOCKED_PACKS = frozenset(['core']) # TODO: Use config base path + virtualenv suffix VIRTUALENVS_PATH = '/opt/stackstorm/virtualenvs/' class UninstallPackAction(Action): def run(self, abs_repo_base=None, packs=None): ...
<commit_before>import os import shutil from st2actions.runners.pythonrunner import Action BLOCKED_PACKS = frozenset(['core']) class UninstallPackAction(Action): def run(self, abs_repo_base=None, packs=None): intersection = BLOCKED_PACKS & frozenset(packs) if len(intersection) > 0: r...
import os import pipes import shutil from st2actions.runners.pythonrunner import Action BLOCKED_PACKS = frozenset(['core']) # TODO: Use config base path + virtualenv suffix VIRTUALENVS_PATH = '/opt/stackstorm/virtualenvs/' class UninstallPackAction(Action): def run(self, abs_repo_base=None, packs=None): ...
import os import shutil from st2actions.runners.pythonrunner import Action BLOCKED_PACKS = frozenset(['core']) class UninstallPackAction(Action): def run(self, abs_repo_base=None, packs=None): intersection = BLOCKED_PACKS & frozenset(packs) if len(intersection) > 0: raise Exception(...
<commit_before>import os import shutil from st2actions.runners.pythonrunner import Action BLOCKED_PACKS = frozenset(['core']) class UninstallPackAction(Action): def run(self, abs_repo_base=None, packs=None): intersection = BLOCKED_PACKS & frozenset(packs) if len(intersection) > 0: r...
60a44ce1fe2fda130ec1cf416accfffa270fcd2e
mycli/packages/special/utils.py
mycli/packages/special/utils.py
import os import subprocess def handle_cd_command(arg): """Handles a `cd` shell command by calling python's os.chdir.""" CD_CMD = 'cd' directory = '' error = False tokens = arg.split(CD_CMD + ' ') directory = tokens[-1] try: os.chdir(directory) output = subprocess.check_ou...
import os import subprocess def handle_cd_command(arg): """Handles a `cd` shell command by calling python's os.chdir.""" CD_CMD = 'cd' directory = '' error = False tokens = arg.split(CD_CMD + ' ') directory = tokens[-1] try: os.chdir(directory) subprocess.call(['pwd']) ...
Stop using 'check_output' method and start using 'call' method in handler_cd_command
Stop using 'check_output' method and start using 'call' method in handler_cd_command
Python
bsd-3-clause
mdsrosa/mycli,mdsrosa/mycli
import os import subprocess def handle_cd_command(arg): """Handles a `cd` shell command by calling python's os.chdir.""" CD_CMD = 'cd' directory = '' error = False tokens = arg.split(CD_CMD + ' ') directory = tokens[-1] try: os.chdir(directory) output = subprocess.check_ou...
import os import subprocess def handle_cd_command(arg): """Handles a `cd` shell command by calling python's os.chdir.""" CD_CMD = 'cd' directory = '' error = False tokens = arg.split(CD_CMD + ' ') directory = tokens[-1] try: os.chdir(directory) subprocess.call(['pwd']) ...
<commit_before>import os import subprocess def handle_cd_command(arg): """Handles a `cd` shell command by calling python's os.chdir.""" CD_CMD = 'cd' directory = '' error = False tokens = arg.split(CD_CMD + ' ') directory = tokens[-1] try: os.chdir(directory) output = subp...
import os import subprocess def handle_cd_command(arg): """Handles a `cd` shell command by calling python's os.chdir.""" CD_CMD = 'cd' directory = '' error = False tokens = arg.split(CD_CMD + ' ') directory = tokens[-1] try: os.chdir(directory) subprocess.call(['pwd']) ...
import os import subprocess def handle_cd_command(arg): """Handles a `cd` shell command by calling python's os.chdir.""" CD_CMD = 'cd' directory = '' error = False tokens = arg.split(CD_CMD + ' ') directory = tokens[-1] try: os.chdir(directory) output = subprocess.check_ou...
<commit_before>import os import subprocess def handle_cd_command(arg): """Handles a `cd` shell command by calling python's os.chdir.""" CD_CMD = 'cd' directory = '' error = False tokens = arg.split(CD_CMD + ' ') directory = tokens[-1] try: os.chdir(directory) output = subp...
34ac848cc19477f032a78a4ccbc782d2694d1969
bluebottle/votes/models.py
bluebottle/votes/models.py
from django.db import models from django.conf import settings from django.utils.translation import ugettext as _ from django_extensions.db.fields import CreationDateTimeField class Vote(models.Model): """ Mixin for generating an invoice reference. """ created = CreationDateTimeField(_('created')) ...
from django.db import models from django.conf import settings from django.utils.translation import ugettext as _ from django_extensions.db.fields import CreationDateTimeField class Vote(models.Model): """ Mixin for generating an invoice reference. """ created = CreationDateTimeField(_('created')) ...
Sort votes by created desc
Sort votes by created desc BB-4430 #resolve
Python
bsd-3-clause
onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,jfterpstra/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle
from django.db import models from django.conf import settings from django.utils.translation import ugettext as _ from django_extensions.db.fields import CreationDateTimeField class Vote(models.Model): """ Mixin for generating an invoice reference. """ created = CreationDateTimeField(_('created')) ...
from django.db import models from django.conf import settings from django.utils.translation import ugettext as _ from django_extensions.db.fields import CreationDateTimeField class Vote(models.Model): """ Mixin for generating an invoice reference. """ created = CreationDateTimeField(_('created')) ...
<commit_before>from django.db import models from django.conf import settings from django.utils.translation import ugettext as _ from django_extensions.db.fields import CreationDateTimeField class Vote(models.Model): """ Mixin for generating an invoice reference. """ created = CreationDateTimeField(_(...
from django.db import models from django.conf import settings from django.utils.translation import ugettext as _ from django_extensions.db.fields import CreationDateTimeField class Vote(models.Model): """ Mixin for generating an invoice reference. """ created = CreationDateTimeField(_('created')) ...
from django.db import models from django.conf import settings from django.utils.translation import ugettext as _ from django_extensions.db.fields import CreationDateTimeField class Vote(models.Model): """ Mixin for generating an invoice reference. """ created = CreationDateTimeField(_('created')) ...
<commit_before>from django.db import models from django.conf import settings from django.utils.translation import ugettext as _ from django_extensions.db.fields import CreationDateTimeField class Vote(models.Model): """ Mixin for generating an invoice reference. """ created = CreationDateTimeField(_(...
3f11a637f02b97bc9faaf18d26b6a6910f2302ca
Instanssi/admin_programme/forms.py
Instanssi/admin_programme/forms.py
# -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder from Instanssi.ext_programme.models import ProgrammeEvent class ProgrammeEventForm(forms.ModelForm): def __init__(self, *args, **kwargs): super...
# -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder from Instanssi.ext_programme.models import ProgrammeEvent class ProgrammeEventForm(forms.ModelForm): def __init__(self, *args, **kwargs): super...
Add google+ icon to admin form.
admin_programme: Add google+ icon to admin form.
Python
mit
Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org
# -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder from Instanssi.ext_programme.models import ProgrammeEvent class ProgrammeEventForm(forms.ModelForm): def __init__(self, *args, **kwargs): super...
# -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder from Instanssi.ext_programme.models import ProgrammeEvent class ProgrammeEventForm(forms.ModelForm): def __init__(self, *args, **kwargs): super...
<commit_before># -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder from Instanssi.ext_programme.models import ProgrammeEvent class ProgrammeEventForm(forms.ModelForm): def __init__(self, *args, **kwargs)...
# -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder from Instanssi.ext_programme.models import ProgrammeEvent class ProgrammeEventForm(forms.ModelForm): def __init__(self, *args, **kwargs): super...
# -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder from Instanssi.ext_programme.models import ProgrammeEvent class ProgrammeEventForm(forms.ModelForm): def __init__(self, *args, **kwargs): super...
<commit_before># -*- coding: utf-8 -*- from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder from Instanssi.ext_programme.models import ProgrammeEvent class ProgrammeEventForm(forms.ModelForm): def __init__(self, *args, **kwargs)...
9dd4da3d62312c5184150a967f7e4a3935c7b94e
moksha/tests/test_clientsockets.py
moksha/tests/test_clientsockets.py
import webtest import moksha.tests.utils as testutils from moksha.api.widgets.live import get_moksha_socket from moksha.middleware import make_moksha_middleware from tw2.core import make_middleware as make_tw2_middleware class TestClientSocketDumb: def _setUp(self): def kernel(config): def a...
import webtest import moksha.tests.utils as testutils from moksha.api.widgets.live import get_moksha_socket from moksha.middleware import make_moksha_middleware from tw2.core import make_middleware as make_tw2_middleware class TestClientSocketDumb: def _setUp(self): def kernel(config): def a...
Rename test. Fix copy/pasta forgetfulness.
Rename test. Fix copy/pasta forgetfulness.
Python
apache-2.0
pombredanne/moksha,mokshaproject/moksha,mokshaproject/moksha,pombredanne/moksha,pombredanne/moksha,mokshaproject/moksha,mokshaproject/moksha,pombredanne/moksha
import webtest import moksha.tests.utils as testutils from moksha.api.widgets.live import get_moksha_socket from moksha.middleware import make_moksha_middleware from tw2.core import make_middleware as make_tw2_middleware class TestClientSocketDumb: def _setUp(self): def kernel(config): def a...
import webtest import moksha.tests.utils as testutils from moksha.api.widgets.live import get_moksha_socket from moksha.middleware import make_moksha_middleware from tw2.core import make_middleware as make_tw2_middleware class TestClientSocketDumb: def _setUp(self): def kernel(config): def a...
<commit_before>import webtest import moksha.tests.utils as testutils from moksha.api.widgets.live import get_moksha_socket from moksha.middleware import make_moksha_middleware from tw2.core import make_middleware as make_tw2_middleware class TestClientSocketDumb: def _setUp(self): def kernel(config): ...
import webtest import moksha.tests.utils as testutils from moksha.api.widgets.live import get_moksha_socket from moksha.middleware import make_moksha_middleware from tw2.core import make_middleware as make_tw2_middleware class TestClientSocketDumb: def _setUp(self): def kernel(config): def a...
import webtest import moksha.tests.utils as testutils from moksha.api.widgets.live import get_moksha_socket from moksha.middleware import make_moksha_middleware from tw2.core import make_middleware as make_tw2_middleware class TestClientSocketDumb: def _setUp(self): def kernel(config): def a...
<commit_before>import webtest import moksha.tests.utils as testutils from moksha.api.widgets.live import get_moksha_socket from moksha.middleware import make_moksha_middleware from tw2.core import make_middleware as make_tw2_middleware class TestClientSocketDumb: def _setUp(self): def kernel(config): ...
43a2cb58df9dc3e4e91370d9b10c62c0d05b8798
papermill/tests/test_cli.py
papermill/tests/test_cli.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test the command line interface """ import pytest from ..cli import _is_int, _is_float, _resolve_type @pytest.mark.parametrize("test_input,expected", [ ("True", True), ("False", False), ("None", None), (13.3, 13.3), (10, 10), ("hello world"...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test the command line interface """ import pytest from ..cli import _is_int, _is_float, _resolve_type @pytest.mark.parametrize("test_input,expected", [ ("True", True), ("False", False), ("None", None), (13.3, 13.3), ("12.51", 12.51), (10, 1...
Add test to include strings to numbers
Add test to include strings to numbers
Python
bsd-3-clause
nteract/papermill,nteract/papermill
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test the command line interface """ import pytest from ..cli import _is_int, _is_float, _resolve_type @pytest.mark.parametrize("test_input,expected", [ ("True", True), ("False", False), ("None", None), (13.3, 13.3), (10, 10), ("hello world"...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test the command line interface """ import pytest from ..cli import _is_int, _is_float, _resolve_type @pytest.mark.parametrize("test_input,expected", [ ("True", True), ("False", False), ("None", None), (13.3, 13.3), ("12.51", 12.51), (10, 1...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test the command line interface """ import pytest from ..cli import _is_int, _is_float, _resolve_type @pytest.mark.parametrize("test_input,expected", [ ("True", True), ("False", False), ("None", None), (13.3, 13.3), (10, 10), ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test the command line interface """ import pytest from ..cli import _is_int, _is_float, _resolve_type @pytest.mark.parametrize("test_input,expected", [ ("True", True), ("False", False), ("None", None), (13.3, 13.3), ("12.51", 12.51), (10, 1...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test the command line interface """ import pytest from ..cli import _is_int, _is_float, _resolve_type @pytest.mark.parametrize("test_input,expected", [ ("True", True), ("False", False), ("None", None), (13.3, 13.3), (10, 10), ("hello world"...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test the command line interface """ import pytest from ..cli import _is_int, _is_float, _resolve_type @pytest.mark.parametrize("test_input,expected", [ ("True", True), ("False", False), ("None", None), (13.3, 13.3), (10, 10), ...
7a6fc91b8eafe0cc88d892443ad25b24a94a3ace
cross_service_tempest_plugin/tests/scenario/test_cross_service.py
cross_service_tempest_plugin/tests/scenario/test_cross_service.py
# Copyright 2017 Andrea Frittoli # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
# Copyright 2017 Andrea Frittoli # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
Fix the skip to match plugins
Fix the skip to match plugins
Python
apache-2.0
afrittoli/cross_service_tempest_plugins,afrittoli/cross_service_tempest_plugins
# Copyright 2017 Andrea Frittoli # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
# Copyright 2017 Andrea Frittoli # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
<commit_before># Copyright 2017 Andrea Frittoli # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
# Copyright 2017 Andrea Frittoli # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
# Copyright 2017 Andrea Frittoli # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
<commit_before># Copyright 2017 Andrea Frittoli # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
dd19012ed8bb6ec702d84abe400bc3dec47044f3
sortedm2m_tests/__init__.py
sortedm2m_tests/__init__.py
# Python import os # django-setuptest import setuptest TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support'] class TestSuite(setuptest.SetupTestSuite): def resolve_packages(self): packages = super(TestSuite, self).resolve_packages() for test_app in TEST_APPS: ...
# Python import os # django-setuptest import setuptest TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support'] class TestSuite(setuptest.SetupTestSuite): def __init__(self, *args, **kwargs): os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings' from south.managemen...
Fix to allow tests with South migrations to run.
Fix to allow tests with South migrations to run.
Python
bsd-3-clause
gregmuellegger/django-sortedm2m,fabrique/django-sortedm2m,gradel/django-sortedm2m,MathieuDuponchelle/django-sortedm2m,fabrique/django-sortedm2m,gradel/django-sortedm2m,fabrique/django-sortedm2m,gradel/django-sortedm2m,gregmuellegger/django-sortedm2m,MathieuDuponchelle/django-sortedm2m,gregmuellegger/django-sortedm2m
# Python import os # django-setuptest import setuptest TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support'] class TestSuite(setuptest.SetupTestSuite): def resolve_packages(self): packages = super(TestSuite, self).resolve_packages() for test_app in TEST_APPS: ...
# Python import os # django-setuptest import setuptest TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support'] class TestSuite(setuptest.SetupTestSuite): def __init__(self, *args, **kwargs): os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings' from south.managemen...
<commit_before># Python import os # django-setuptest import setuptest TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support'] class TestSuite(setuptest.SetupTestSuite): def resolve_packages(self): packages = super(TestSuite, self).resolve_packages() for test_app...
# Python import os # django-setuptest import setuptest TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support'] class TestSuite(setuptest.SetupTestSuite): def __init__(self, *args, **kwargs): os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings' from south.managemen...
# Python import os # django-setuptest import setuptest TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support'] class TestSuite(setuptest.SetupTestSuite): def resolve_packages(self): packages = super(TestSuite, self).resolve_packages() for test_app in TEST_APPS: ...
<commit_before># Python import os # django-setuptest import setuptest TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support'] class TestSuite(setuptest.SetupTestSuite): def resolve_packages(self): packages = super(TestSuite, self).resolve_packages() for test_app...
cc9cb88573fd5dc3825b253ac7ef44aec05d0aa9
app/soc/modules/gci/views/helper/url_patterns.py
app/soc/modules/gci/views/helper/url_patterns.py
#!/usr/bin/env python2.5 # # Copyright 2011 the Melange authors. # # 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...
#!/usr/bin/env python2.5 # # Copyright 2011 the Melange authors. # # 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...
Fix GCI Task URL Pattern.
Fix GCI Task URL Pattern.
Python
apache-2.0
rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son
#!/usr/bin/env python2.5 # # Copyright 2011 the Melange authors. # # 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...
#!/usr/bin/env python2.5 # # Copyright 2011 the Melange authors. # # 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>#!/usr/bin/env python2.5 # # Copyright 2011 the Melange authors. # # 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...
#!/usr/bin/env python2.5 # # Copyright 2011 the Melange authors. # # 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...
#!/usr/bin/env python2.5 # # Copyright 2011 the Melange authors. # # 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>#!/usr/bin/env python2.5 # # Copyright 2011 the Melange authors. # # 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...
44c609cb0cba6e1837a5605f3dd09f7a059d2f14
Sketches/JT/Jam/library/trunk/Kamaelia/Apps/Jam/Audio/Synth.py
Sketches/JT/Jam/library/trunk/Kamaelia/Apps/Jam/Audio/Synth.py
import Axon from Kamaelia.Apps.Jam.Audio.Polyphony import Polyphoniser from Kamaelia.Apps.Jam.Audio.Mixer import MonoMixer class Synth(Axon.Component.component): polyphony = 8 def __init__(self, voiceGenerator, **argd): super(Synth, self).__init__(**argd) polyphoniser = Polyphoniser(polyphony=...
import Axon from Kamaelia.Apps.Jam.Audio.Polyphony import Polyphoniser from Kamaelia.Apps.Jam.Audio.Mixer import MonoMixer class Synth(Axon.Component.component): polyphony = 8 polyphoniser = Polyphoniser def __init__(self, voiceGenerator, **argd): super(Synth, self).__init__(**argd) polyph...
Add option to change the polyphony component in the synth to allow different behaviours.
Add option to change the polyphony component in the synth to allow different behaviours.
Python
apache-2.0
sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia
import Axon from Kamaelia.Apps.Jam.Audio.Polyphony import Polyphoniser from Kamaelia.Apps.Jam.Audio.Mixer import MonoMixer class Synth(Axon.Component.component): polyphony = 8 def __init__(self, voiceGenerator, **argd): super(Synth, self).__init__(**argd) polyphoniser = Polyphoniser(polyphony=...
import Axon from Kamaelia.Apps.Jam.Audio.Polyphony import Polyphoniser from Kamaelia.Apps.Jam.Audio.Mixer import MonoMixer class Synth(Axon.Component.component): polyphony = 8 polyphoniser = Polyphoniser def __init__(self, voiceGenerator, **argd): super(Synth, self).__init__(**argd) polyph...
<commit_before>import Axon from Kamaelia.Apps.Jam.Audio.Polyphony import Polyphoniser from Kamaelia.Apps.Jam.Audio.Mixer import MonoMixer class Synth(Axon.Component.component): polyphony = 8 def __init__(self, voiceGenerator, **argd): super(Synth, self).__init__(**argd) polyphoniser = Polyphon...
import Axon from Kamaelia.Apps.Jam.Audio.Polyphony import Polyphoniser from Kamaelia.Apps.Jam.Audio.Mixer import MonoMixer class Synth(Axon.Component.component): polyphony = 8 polyphoniser = Polyphoniser def __init__(self, voiceGenerator, **argd): super(Synth, self).__init__(**argd) polyph...
import Axon from Kamaelia.Apps.Jam.Audio.Polyphony import Polyphoniser from Kamaelia.Apps.Jam.Audio.Mixer import MonoMixer class Synth(Axon.Component.component): polyphony = 8 def __init__(self, voiceGenerator, **argd): super(Synth, self).__init__(**argd) polyphoniser = Polyphoniser(polyphony=...
<commit_before>import Axon from Kamaelia.Apps.Jam.Audio.Polyphony import Polyphoniser from Kamaelia.Apps.Jam.Audio.Mixer import MonoMixer class Synth(Axon.Component.component): polyphony = 8 def __init__(self, voiceGenerator, **argd): super(Synth, self).__init__(**argd) polyphoniser = Polyphon...
82ed11aacc68c064b1f6c618dde12ea94c7592a5
migrations/versions/070_fix_folder_easfoldersyncstatus_unique_constraints.py
migrations/versions/070_fix_folder_easfoldersyncstatus_unique_constraints.py
"""Fix Folder, EASFolderSyncStatus unique constraints Revision ID: 2525c5245cc2 Revises: 479b3b84a73e Create Date: 2014-07-28 18:57:24.476123 """ # revision identifiers, used by Alembic. revision = '2525c5245cc2' down_revision = '479b3b84a73e' from alembic import op import sqlalchemy as sa from inbox.ignition impo...
"""Fix Folder, EASFolderSyncStatus unique constraints Revision ID: 2525c5245cc2 Revises: 479b3b84a73e Create Date: 2014-07-28 18:57:24.476123 """ # revision identifiers, used by Alembic. revision = '2525c5245cc2' down_revision = '479b3b84a73e' from alembic import op import sqlalchemy as sa from inbox.ignition impo...
Rename FK in migration 70 - For some reason, Gunks' db has it named differently than ours.
Rename FK in migration 70 - For some reason, Gunks' db has it named differently than ours.
Python
agpl-3.0
wakermahmud/sync-engine,closeio/nylas,Eagles2F/sync-engine,wakermahmud/sync-engine,EthanBlackburn/sync-engine,wakermahmud/sync-engine,ErinCall/sync-engine,EthanBlackburn/sync-engine,closeio/nylas,PriviPK/privipk-sync-engine,PriviPK/privipk-sync-engine,gale320/sync-engine,nylas/sync-engine,closeio/nylas,ErinCall/sync-en...
"""Fix Folder, EASFolderSyncStatus unique constraints Revision ID: 2525c5245cc2 Revises: 479b3b84a73e Create Date: 2014-07-28 18:57:24.476123 """ # revision identifiers, used by Alembic. revision = '2525c5245cc2' down_revision = '479b3b84a73e' from alembic import op import sqlalchemy as sa from inbox.ignition impo...
"""Fix Folder, EASFolderSyncStatus unique constraints Revision ID: 2525c5245cc2 Revises: 479b3b84a73e Create Date: 2014-07-28 18:57:24.476123 """ # revision identifiers, used by Alembic. revision = '2525c5245cc2' down_revision = '479b3b84a73e' from alembic import op import sqlalchemy as sa from inbox.ignition impo...
<commit_before>"""Fix Folder, EASFolderSyncStatus unique constraints Revision ID: 2525c5245cc2 Revises: 479b3b84a73e Create Date: 2014-07-28 18:57:24.476123 """ # revision identifiers, used by Alembic. revision = '2525c5245cc2' down_revision = '479b3b84a73e' from alembic import op import sqlalchemy as sa from inbo...
"""Fix Folder, EASFolderSyncStatus unique constraints Revision ID: 2525c5245cc2 Revises: 479b3b84a73e Create Date: 2014-07-28 18:57:24.476123 """ # revision identifiers, used by Alembic. revision = '2525c5245cc2' down_revision = '479b3b84a73e' from alembic import op import sqlalchemy as sa from inbox.ignition impo...
"""Fix Folder, EASFolderSyncStatus unique constraints Revision ID: 2525c5245cc2 Revises: 479b3b84a73e Create Date: 2014-07-28 18:57:24.476123 """ # revision identifiers, used by Alembic. revision = '2525c5245cc2' down_revision = '479b3b84a73e' from alembic import op import sqlalchemy as sa from inbox.ignition impo...
<commit_before>"""Fix Folder, EASFolderSyncStatus unique constraints Revision ID: 2525c5245cc2 Revises: 479b3b84a73e Create Date: 2014-07-28 18:57:24.476123 """ # revision identifiers, used by Alembic. revision = '2525c5245cc2' down_revision = '479b3b84a73e' from alembic import op import sqlalchemy as sa from inbo...
94fd112502da71e8c6c0c5989d124d12516907b7
opps/contrib/multisite/__init__.py
opps/contrib/multisite/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from appconf import AppConf trans_app_label = _('Multisite') class OppsMultiSiteConf(AppConf): ADMIN = False class Meta: prefix = 'opps_multisite'
Set default value on settings var OPPS_MULTISITE_ADMIN
Set default value on settings var OPPS_MULTISITE_ADMIN
Python
mit
YACOWS/opps,opps/opps,jeanmask/opps,opps/opps,jeanmask/opps,williamroot/opps,williamroot/opps,opps/opps,opps/opps,jeanmask/opps,YACOWS/opps,YACOWS/opps,YACOWS/opps,williamroot/opps,jeanmask/opps,williamroot/opps
Set default value on settings var OPPS_MULTISITE_ADMIN
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from appconf import AppConf trans_app_label = _('Multisite') class OppsMultiSiteConf(AppConf): ADMIN = False class Meta: prefix = 'opps_multisite'
<commit_before><commit_msg>Set default value on settings var OPPS_MULTISITE_ADMIN<commit_after>
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from appconf import AppConf trans_app_label = _('Multisite') class OppsMultiSiteConf(AppConf): ADMIN = False class Meta: prefix = 'opps_multisite'
Set default value on settings var OPPS_MULTISITE_ADMIN#!/usr/bin/env python # -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from appconf import AppConf trans_app_label = _('Multisite') class OppsMultiSiteConf(AppConf): ADMIN = False class Meta: prefix = 'opps_multis...
<commit_before><commit_msg>Set default value on settings var OPPS_MULTISITE_ADMIN<commit_after>#!/usr/bin/env python # -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from appconf import AppConf trans_app_label = _('Multisite') class OppsMultiSiteConf(AppConf): ADMIN = False ...
75c376aab034d2e21bc9eb5ab3cc6a9dee9d7ac3
oslo/messaging/notify/_impl_log.py
oslo/messaging/notify/_impl_log.py
# Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licens...
# Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licens...
Use lowercase priority in log notifier
Use lowercase priority in log notifier
Python
apache-2.0
JioCloud/oslo.messaging,dims/oslo.messaging,isyippee/oslo.messaging,dukhlov/oslo.messaging,eayunstack/oslo.messaging,stevei101/oslo.messaging,magic0704/oslo.messaging,hkumarmk/oslo.messaging,apporc/oslo.messaging,magic0704/oslo.messaging,dukhlov/oslo.messaging,markmc/oslo.messaging,stevei101/oslo.messaging,zhurongze/os...
# Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licens...
# Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licens...
<commit_before> # Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.ap...
# Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licens...
# Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licens...
<commit_before> # Copyright 2011 OpenStack Foundation. # All Rights Reserved. # Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.ap...
4261aad86b40d052906b8162263e00aa7b12b5e7
pritunl_node/call_buffer.py
pritunl_node/call_buffer.py
from constants import * import collections import uuid class CallBuffer(): def __init__(self): self.waiter = None self.queue = collections.deque(maxlen=CALL_QUEUE_MAX) self.call_waiters = {} def wait_for_calls(self, callback): if self.waiter: self.waiter([]) ...
from constants import * import collections import uuid class CallBuffer(): def __init__(self): self.waiter = None self.queue = collections.deque(maxlen=CALL_QUEUE_MAX) self.call_waiters = {} def wait_for_calls(self, callback): self.stop_waiter() calls = [] while...
Add stop waiter to call buffer
Add stop waiter to call buffer
Python
agpl-3.0
pritunl/pritunl-node,pritunl/pritunl-node
from constants import * import collections import uuid class CallBuffer(): def __init__(self): self.waiter = None self.queue = collections.deque(maxlen=CALL_QUEUE_MAX) self.call_waiters = {} def wait_for_calls(self, callback): if self.waiter: self.waiter([]) ...
from constants import * import collections import uuid class CallBuffer(): def __init__(self): self.waiter = None self.queue = collections.deque(maxlen=CALL_QUEUE_MAX) self.call_waiters = {} def wait_for_calls(self, callback): self.stop_waiter() calls = [] while...
<commit_before>from constants import * import collections import uuid class CallBuffer(): def __init__(self): self.waiter = None self.queue = collections.deque(maxlen=CALL_QUEUE_MAX) self.call_waiters = {} def wait_for_calls(self, callback): if self.waiter: self.wai...
from constants import * import collections import uuid class CallBuffer(): def __init__(self): self.waiter = None self.queue = collections.deque(maxlen=CALL_QUEUE_MAX) self.call_waiters = {} def wait_for_calls(self, callback): self.stop_waiter() calls = [] while...
from constants import * import collections import uuid class CallBuffer(): def __init__(self): self.waiter = None self.queue = collections.deque(maxlen=CALL_QUEUE_MAX) self.call_waiters = {} def wait_for_calls(self, callback): if self.waiter: self.waiter([]) ...
<commit_before>from constants import * import collections import uuid class CallBuffer(): def __init__(self): self.waiter = None self.queue = collections.deque(maxlen=CALL_QUEUE_MAX) self.call_waiters = {} def wait_for_calls(self, callback): if self.waiter: self.wai...
e5949d11bf2c8b37a4fa583d71a21e2719364f5c
changes/jobs/sync_build.py
changes/jobs/sync_build.py
from datetime import datetime from flask import current_app from changes.backends.jenkins.builder import JenkinsBuilder from changes.config import db, queue from changes.constants import Status, Result from changes.models import Build, RemoteEntity def sync_build(build_id): try: build = Build.query.get(b...
import logging from datetime import datetime from flask import current_app from changes.backends.jenkins.builder import JenkinsBuilder from changes.config import db, queue from changes.constants import Status, Result from changes.models import Build, RemoteEntity logger = logging.getLogger('jobs') def sync_build(b...
Write exceptions to jobs logger
Write exceptions to jobs logger
Python
apache-2.0
bowlofstew/changes,dropbox/changes,dropbox/changes,wfxiang08/changes,bowlofstew/changes,dropbox/changes,wfxiang08/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes,wfxiang08/changes,bowlofstew/changes
from datetime import datetime from flask import current_app from changes.backends.jenkins.builder import JenkinsBuilder from changes.config import db, queue from changes.constants import Status, Result from changes.models import Build, RemoteEntity def sync_build(build_id): try: build = Build.query.get(b...
import logging from datetime import datetime from flask import current_app from changes.backends.jenkins.builder import JenkinsBuilder from changes.config import db, queue from changes.constants import Status, Result from changes.models import Build, RemoteEntity logger = logging.getLogger('jobs') def sync_build(b...
<commit_before>from datetime import datetime from flask import current_app from changes.backends.jenkins.builder import JenkinsBuilder from changes.config import db, queue from changes.constants import Status, Result from changes.models import Build, RemoteEntity def sync_build(build_id): try: build = Bu...
import logging from datetime import datetime from flask import current_app from changes.backends.jenkins.builder import JenkinsBuilder from changes.config import db, queue from changes.constants import Status, Result from changes.models import Build, RemoteEntity logger = logging.getLogger('jobs') def sync_build(b...
from datetime import datetime from flask import current_app from changes.backends.jenkins.builder import JenkinsBuilder from changes.config import db, queue from changes.constants import Status, Result from changes.models import Build, RemoteEntity def sync_build(build_id): try: build = Build.query.get(b...
<commit_before>from datetime import datetime from flask import current_app from changes.backends.jenkins.builder import JenkinsBuilder from changes.config import db, queue from changes.constants import Status, Result from changes.models import Build, RemoteEntity def sync_build(build_id): try: build = Bu...
70e4c1fe5faefd87d19fa0067010cfdbeb7576c2
tests/models.py
tests/models.py
from django.db import models from enumfields import Enum, EnumField class MyModel(models.Model): class Color(Enum): RED = 'r' GREEN = 'g' BLUE = 'b' color = EnumField(Color, max_length=1)
from django.db import models from enum import Enum from enumfields import EnumField class MyModel(models.Model): class Color(Enum): RED = 'r' GREEN = 'g' BLUE = 'b' color = EnumField(Color, max_length=1)
Use regular Enums in tests
Use regular Enums in tests
Python
mit
jessamynsmith/django-enumfields,suutari-ai/django-enumfields,bxm156/django-enumfields,jackyyf/django-enumfields
from django.db import models from enumfields import Enum, EnumField class MyModel(models.Model): class Color(Enum): RED = 'r' GREEN = 'g' BLUE = 'b' color = EnumField(Color, max_length=1) Use regular Enums in tests
from django.db import models from enum import Enum from enumfields import EnumField class MyModel(models.Model): class Color(Enum): RED = 'r' GREEN = 'g' BLUE = 'b' color = EnumField(Color, max_length=1)
<commit_before>from django.db import models from enumfields import Enum, EnumField class MyModel(models.Model): class Color(Enum): RED = 'r' GREEN = 'g' BLUE = 'b' color = EnumField(Color, max_length=1) <commit_msg>Use regular Enums in tests<commit_after>
from django.db import models from enum import Enum from enumfields import EnumField class MyModel(models.Model): class Color(Enum): RED = 'r' GREEN = 'g' BLUE = 'b' color = EnumField(Color, max_length=1)
from django.db import models from enumfields import Enum, EnumField class MyModel(models.Model): class Color(Enum): RED = 'r' GREEN = 'g' BLUE = 'b' color = EnumField(Color, max_length=1) Use regular Enums in testsfrom django.db import models from enum import Enum from enumfields imp...
<commit_before>from django.db import models from enumfields import Enum, EnumField class MyModel(models.Model): class Color(Enum): RED = 'r' GREEN = 'g' BLUE = 'b' color = EnumField(Color, max_length=1) <commit_msg>Use regular Enums in tests<commit_after>from django.db import models ...
7635dd48e94cb1a128b95a5237dc289f1f65964c
django_digest/test/__init__.py
django_digest/test/__init__.py
from __future__ import absolute_import from __future__ import unicode_literals import django.test from django_digest.test.methods.basic import BasicAuth from django_digest.test.methods.detect import DetectAuth from django_digest.test.methods.digest import DigestAuth class Client(django.test.Client): AUTH_METHODS ...
from __future__ import absolute_import from __future__ import unicode_literals import django.test from django_digest.test.methods.basic import BasicAuth from django_digest.test.methods.detect import DetectAuth from django_digest.test.methods.digest import DigestAuth class Client(django.test.Client): AUTH_METHODS...
Reset input for second "request"
Reset input for second "request"
Python
bsd-3-clause
dimagi/django-digest
from __future__ import absolute_import from __future__ import unicode_literals import django.test from django_digest.test.methods.basic import BasicAuth from django_digest.test.methods.detect import DetectAuth from django_digest.test.methods.digest import DigestAuth class Client(django.test.Client): AUTH_METHODS ...
from __future__ import absolute_import from __future__ import unicode_literals import django.test from django_digest.test.methods.basic import BasicAuth from django_digest.test.methods.detect import DetectAuth from django_digest.test.methods.digest import DigestAuth class Client(django.test.Client): AUTH_METHODS...
<commit_before>from __future__ import absolute_import from __future__ import unicode_literals import django.test from django_digest.test.methods.basic import BasicAuth from django_digest.test.methods.detect import DetectAuth from django_digest.test.methods.digest import DigestAuth class Client(django.test.Client): ...
from __future__ import absolute_import from __future__ import unicode_literals import django.test from django_digest.test.methods.basic import BasicAuth from django_digest.test.methods.detect import DetectAuth from django_digest.test.methods.digest import DigestAuth class Client(django.test.Client): AUTH_METHODS...
from __future__ import absolute_import from __future__ import unicode_literals import django.test from django_digest.test.methods.basic import BasicAuth from django_digest.test.methods.detect import DetectAuth from django_digest.test.methods.digest import DigestAuth class Client(django.test.Client): AUTH_METHODS ...
<commit_before>from __future__ import absolute_import from __future__ import unicode_literals import django.test from django_digest.test.methods.basic import BasicAuth from django_digest.test.methods.detect import DetectAuth from django_digest.test.methods.digest import DigestAuth class Client(django.test.Client): ...
13dc2bc9af1791a6d72c90264baee3d05f937482
python/train_reservation.py
python/train_reservation.py
class TicketOffice(object): def __init__(self, trains=None): self.trains = trains or {} def add_train(self, train_id, train): self.trains[train_id] = train def make_reservation(self, reservation_request): # TODO: write this code! pass class ReservationRequest(object):...
class TicketOffice(object): def make_reservation(self, reservation_request): # TODO: write this code! pass class ReservationRequest(object): def __init__(self, train_id, seat_count): self.train_id = train_id self.seat_count = seat_count class Reservation(object): def __ini...
Make the starting code simpler
Make the starting code simpler
Python
mit
emilybache/KataTrainReservation,emilybache/KataTrainReservation,emilybache/KataTrainReservation,emilybache/KataTrainReservation
class TicketOffice(object): def __init__(self, trains=None): self.trains = trains or {} def add_train(self, train_id, train): self.trains[train_id] = train def make_reservation(self, reservation_request): # TODO: write this code! pass class ReservationRequest(object):...
class TicketOffice(object): def make_reservation(self, reservation_request): # TODO: write this code! pass class ReservationRequest(object): def __init__(self, train_id, seat_count): self.train_id = train_id self.seat_count = seat_count class Reservation(object): def __ini...
<commit_before> class TicketOffice(object): def __init__(self, trains=None): self.trains = trains or {} def add_train(self, train_id, train): self.trains[train_id] = train def make_reservation(self, reservation_request): # TODO: write this code! pass class ReservationR...
class TicketOffice(object): def make_reservation(self, reservation_request): # TODO: write this code! pass class ReservationRequest(object): def __init__(self, train_id, seat_count): self.train_id = train_id self.seat_count = seat_count class Reservation(object): def __ini...
class TicketOffice(object): def __init__(self, trains=None): self.trains = trains or {} def add_train(self, train_id, train): self.trains[train_id] = train def make_reservation(self, reservation_request): # TODO: write this code! pass class ReservationRequest(object):...
<commit_before> class TicketOffice(object): def __init__(self, trains=None): self.trains = trains or {} def add_train(self, train_id, train): self.trains[train_id] = train def make_reservation(self, reservation_request): # TODO: write this code! pass class ReservationR...
100a2ef97d499a87d3fae271f794de050f1c5686
opps/sitemaps/urls.py
opps/sitemaps/urls.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib.sitemaps import views as sitemap_views from opps.core.cache import cache_page from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct sitemaps = { 'articles': GenericSitemap(InfoDisct(), priority=0....
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib.sitemaps import views as sitemap_views from opps.core.cache import cache_page from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct sitemaps = { 'containers': GenericSitemap(InfoDisct(), priority=...
Add cache in sitemap section
Add cache in sitemap section
Python
mit
williamroot/opps,opps/opps,williamroot/opps,jeanmask/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,YACOWS/opps,YACOWS/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,jeanmask/opps,opps/opps,opps/opps,opps/opps
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib.sitemaps import views as sitemap_views from opps.core.cache import cache_page from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct sitemaps = { 'articles': GenericSitemap(InfoDisct(), priority=0....
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib.sitemaps import views as sitemap_views from opps.core.cache import cache_page from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct sitemaps = { 'containers': GenericSitemap(InfoDisct(), priority=...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib.sitemaps import views as sitemap_views from opps.core.cache import cache_page from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct sitemaps = { 'articles': GenericSitemap(InfoDisct...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib.sitemaps import views as sitemap_views from opps.core.cache import cache_page from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct sitemaps = { 'containers': GenericSitemap(InfoDisct(), priority=...
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib.sitemaps import views as sitemap_views from opps.core.cache import cache_page from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct sitemaps = { 'articles': GenericSitemap(InfoDisct(), priority=0....
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib.sitemaps import views as sitemap_views from opps.core.cache import cache_page from opps.sitemaps.sitemaps import GenericSitemap, InfoDisct sitemaps = { 'articles': GenericSitemap(InfoDisct...
d125a0ff41311be4d0da35a3ebdad51eeed0bc19
ctypeslib/test/test_dynmodule.py
ctypeslib/test/test_dynmodule.py
# Basic test of dynamic code generation import unittest import stdio from ctypes import POINTER, c_int class DynModTest(unittest.TestCase): def test_fopen(self): self.failUnlessEqual(stdio.fopen.restype, POINTER(stdio.FILE)) self.failUnlessEqual(stdio.fopen.argtypes, [stdio.STRING, stdio.STRING]) ...
# Basic test of dynamic code generation import unittest import os, glob import stdio from ctypes import POINTER, c_int class DynModTest(unittest.TestCase): def tearDown(self): for fnm in glob.glob(stdio._gen_basename + ".*"): try: os.remove(fnm) except IOError: ...
Clean up generated files in the tearDown method.
Clean up generated files in the tearDown method.
Python
mit
sugarmanz/ctypeslib
# Basic test of dynamic code generation import unittest import stdio from ctypes import POINTER, c_int class DynModTest(unittest.TestCase): def test_fopen(self): self.failUnlessEqual(stdio.fopen.restype, POINTER(stdio.FILE)) self.failUnlessEqual(stdio.fopen.argtypes, [stdio.STRING, stdio.STRING]) ...
# Basic test of dynamic code generation import unittest import os, glob import stdio from ctypes import POINTER, c_int class DynModTest(unittest.TestCase): def tearDown(self): for fnm in glob.glob(stdio._gen_basename + ".*"): try: os.remove(fnm) except IOError: ...
<commit_before># Basic test of dynamic code generation import unittest import stdio from ctypes import POINTER, c_int class DynModTest(unittest.TestCase): def test_fopen(self): self.failUnlessEqual(stdio.fopen.restype, POINTER(stdio.FILE)) self.failUnlessEqual(stdio.fopen.argtypes, [stdio.STRING, ...
# Basic test of dynamic code generation import unittest import os, glob import stdio from ctypes import POINTER, c_int class DynModTest(unittest.TestCase): def tearDown(self): for fnm in glob.glob(stdio._gen_basename + ".*"): try: os.remove(fnm) except IOError: ...
# Basic test of dynamic code generation import unittest import stdio from ctypes import POINTER, c_int class DynModTest(unittest.TestCase): def test_fopen(self): self.failUnlessEqual(stdio.fopen.restype, POINTER(stdio.FILE)) self.failUnlessEqual(stdio.fopen.argtypes, [stdio.STRING, stdio.STRING]) ...
<commit_before># Basic test of dynamic code generation import unittest import stdio from ctypes import POINTER, c_int class DynModTest(unittest.TestCase): def test_fopen(self): self.failUnlessEqual(stdio.fopen.restype, POINTER(stdio.FILE)) self.failUnlessEqual(stdio.fopen.argtypes, [stdio.STRING, ...
e64b8fcb9854edcc689bf4b8fec5b3c589e7226f
netdisco/discoverables/belkin_wemo.py
netdisco/discoverables/belkin_wemo.py
""" Discovers Belkin Wemo devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """ Adds support for discovering Belkin WeMo platform devices. """ def info_from_entry(self, entry): """ Returns most important info from a uPnP entry. """ device = entry.description['...
""" Discovers Belkin Wemo devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """ Adds support for discovering Belkin WeMo platform devices. """ def info_from_entry(self, entry): """ Returns most important info from a uPnP entry. """ device = entry.description['...
Add serialnumber to wemo discovery info tuple
Add serialnumber to wemo discovery info tuple
Python
mit
sfam/netdisco,brburns/netdisco,balloob/netdisco
""" Discovers Belkin Wemo devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """ Adds support for discovering Belkin WeMo platform devices. """ def info_from_entry(self, entry): """ Returns most important info from a uPnP entry. """ device = entry.description['...
""" Discovers Belkin Wemo devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """ Adds support for discovering Belkin WeMo platform devices. """ def info_from_entry(self, entry): """ Returns most important info from a uPnP entry. """ device = entry.description['...
<commit_before>""" Discovers Belkin Wemo devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """ Adds support for discovering Belkin WeMo platform devices. """ def info_from_entry(self, entry): """ Returns most important info from a uPnP entry. """ device = entr...
""" Discovers Belkin Wemo devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """ Adds support for discovering Belkin WeMo platform devices. """ def info_from_entry(self, entry): """ Returns most important info from a uPnP entry. """ device = entry.description['...
""" Discovers Belkin Wemo devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """ Adds support for discovering Belkin WeMo platform devices. """ def info_from_entry(self, entry): """ Returns most important info from a uPnP entry. """ device = entry.description['...
<commit_before>""" Discovers Belkin Wemo devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """ Adds support for discovering Belkin WeMo platform devices. """ def info_from_entry(self, entry): """ Returns most important info from a uPnP entry. """ device = entr...
f04177c853ccd686af30b5866c13c8016b462a6b
forecast/applications/core/commands/runserver.py
forecast/applications/core/commands/runserver.py
# coding: utf-8 import tornado.ioloop from forecast.manager import BaseCommand, Argument class RunserverCommand(BaseCommand): help_text = "Start a server" parameters = ( Argument("--port", "-p", action="store", default=8000, type=int), ) def run(self, project, args, unknown_args): ...
# coding: utf-8 import tornado.ioloop from forecast.manager import BaseCommand, Argument class RunserverCommand(BaseCommand): help_text = "Start a server" parameters = ( Argument("--port", "-p", action="store", default=8888, type=int), ) def run(self, project, args, unknown_args): ...
Change default server port from 8000 to 8888 (as suggested in tornado's documentation)
Change default server port from 8000 to 8888 (as suggested in tornado's documentation)
Python
mit
osantana/forecast
# coding: utf-8 import tornado.ioloop from forecast.manager import BaseCommand, Argument class RunserverCommand(BaseCommand): help_text = "Start a server" parameters = ( Argument("--port", "-p", action="store", default=8000, type=int), ) def run(self, project, args, unknown_args): ...
# coding: utf-8 import tornado.ioloop from forecast.manager import BaseCommand, Argument class RunserverCommand(BaseCommand): help_text = "Start a server" parameters = ( Argument("--port", "-p", action="store", default=8888, type=int), ) def run(self, project, args, unknown_args): ...
<commit_before># coding: utf-8 import tornado.ioloop from forecast.manager import BaseCommand, Argument class RunserverCommand(BaseCommand): help_text = "Start a server" parameters = ( Argument("--port", "-p", action="store", default=8000, type=int), ) def run(self, project, args, unknown_...
# coding: utf-8 import tornado.ioloop from forecast.manager import BaseCommand, Argument class RunserverCommand(BaseCommand): help_text = "Start a server" parameters = ( Argument("--port", "-p", action="store", default=8888, type=int), ) def run(self, project, args, unknown_args): ...
# coding: utf-8 import tornado.ioloop from forecast.manager import BaseCommand, Argument class RunserverCommand(BaseCommand): help_text = "Start a server" parameters = ( Argument("--port", "-p", action="store", default=8000, type=int), ) def run(self, project, args, unknown_args): ...
<commit_before># coding: utf-8 import tornado.ioloop from forecast.manager import BaseCommand, Argument class RunserverCommand(BaseCommand): help_text = "Start a server" parameters = ( Argument("--port", "-p", action="store", default=8000, type=int), ) def run(self, project, args, unknown_...
6729515de02ce0678793ffb8faf280e65a4376e2
run.py
run.py
import sys from core import KDPVGenerator def print_help(): print('Usage: python run.py [data.yml]') def generate(filename): generator = KDPVGenerator.from_yml(filename) generator.generate() def main(): if len(sys.argv) < 2: filename = 'data.yml' else: filename = sys.argv[1] ...
import argparse import os from core import KDPVGenerator def generate(filename): generator = KDPVGenerator.from_yml(filename) generator.generate() def main(): parser = argparse.ArgumentParser(description='KDPV Generator') parser.add_argument('filename', nargs='?', default='data.yml', help='data file...
Add argparse, handle data file missing
Add argparse, handle data file missing
Python
mit
spbpython/kdpv_generator
import sys from core import KDPVGenerator def print_help(): print('Usage: python run.py [data.yml]') def generate(filename): generator = KDPVGenerator.from_yml(filename) generator.generate() def main(): if len(sys.argv) < 2: filename = 'data.yml' else: filename = sys.argv[1] ...
import argparse import os from core import KDPVGenerator def generate(filename): generator = KDPVGenerator.from_yml(filename) generator.generate() def main(): parser = argparse.ArgumentParser(description='KDPV Generator') parser.add_argument('filename', nargs='?', default='data.yml', help='data file...
<commit_before>import sys from core import KDPVGenerator def print_help(): print('Usage: python run.py [data.yml]') def generate(filename): generator = KDPVGenerator.from_yml(filename) generator.generate() def main(): if len(sys.argv) < 2: filename = 'data.yml' else: filename...
import argparse import os from core import KDPVGenerator def generate(filename): generator = KDPVGenerator.from_yml(filename) generator.generate() def main(): parser = argparse.ArgumentParser(description='KDPV Generator') parser.add_argument('filename', nargs='?', default='data.yml', help='data file...
import sys from core import KDPVGenerator def print_help(): print('Usage: python run.py [data.yml]') def generate(filename): generator = KDPVGenerator.from_yml(filename) generator.generate() def main(): if len(sys.argv) < 2: filename = 'data.yml' else: filename = sys.argv[1] ...
<commit_before>import sys from core import KDPVGenerator def print_help(): print('Usage: python run.py [data.yml]') def generate(filename): generator = KDPVGenerator.from_yml(filename) generator.generate() def main(): if len(sys.argv) < 2: filename = 'data.yml' else: filename...
25e35b650d55e71b3af5b7725cdb8318a15137a2
run.py
run.py
#!/usr/bin/env python2 from titanembeds.app import app def init_debug(): import os from flask import jsonify, request os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_cookie(secret_key...
#!/usr/bin/env python2 from titanembeds.app import app def init_debug(): import os from flask import jsonify, request os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_cookie(secret_key, cookie...
Set development process to threaded
Set development process to threaded
Python
agpl-3.0
TitanEmbeds/Titan,TitanEmbeds/Titan,TitanEmbeds/Titan
#!/usr/bin/env python2 from titanembeds.app import app def init_debug(): import os from flask import jsonify, request os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_cookie(secret_key...
#!/usr/bin/env python2 from titanembeds.app import app def init_debug(): import os from flask import jsonify, request os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_cookie(secret_key, cookie...
<commit_before>#!/usr/bin/env python2 from titanembeds.app import app def init_debug(): import os from flask import jsonify, request os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_co...
#!/usr/bin/env python2 from titanembeds.app import app def init_debug(): import os from flask import jsonify, request os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_cookie(secret_key, cookie...
#!/usr/bin/env python2 from titanembeds.app import app def init_debug(): import os from flask import jsonify, request os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_cookie(secret_key...
<commit_before>#!/usr/bin/env python2 from titanembeds.app import app def init_debug(): import os from flask import jsonify, request os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_co...
546f4881974af4516cfaaf4e53c0940d90b6d502
configurations/__init__.py
configurations/__init__.py
# flake8: noqa from .base import Settings, Configuration from .decorators import pristinemethod __version__ = '0.8' __all__ = ['Configuration', 'pristinemethod', 'Settings'] def load_ipython_extension(ipython): # The `ipython` argument is the currently active `InteractiveShell` # instance, which can be used ...
# flake8: noqa from .base import Settings, Configuration from .decorators import pristinemethod __version__ = '0.8' __all__ = ['Configuration', 'pristinemethod', 'Settings'] def load_ipython_extension(ipython): # The `ipython` argument is the currently active `InteractiveShell` # instance, which can be used ...
Add `django.setup()` in `load_ipython_extension` function for django>=1.7 compatibility
Add `django.setup()` in `load_ipython_extension` function for django>=1.7 compatibility
Python
bsd-3-clause
cato-/django-configurations,blindroot/django-configurations,pombredanne/django-configurations,jezdez/django-configurations,seenureddy/django-configurations,incuna/django-configurations,jazzband/django-configurations,nangia/django-configurations,jazzband/django-configurations,NextHub/django-configurations,gatherhealth/d...
# flake8: noqa from .base import Settings, Configuration from .decorators import pristinemethod __version__ = '0.8' __all__ = ['Configuration', 'pristinemethod', 'Settings'] def load_ipython_extension(ipython): # The `ipython` argument is the currently active `InteractiveShell` # instance, which can be used ...
# flake8: noqa from .base import Settings, Configuration from .decorators import pristinemethod __version__ = '0.8' __all__ = ['Configuration', 'pristinemethod', 'Settings'] def load_ipython_extension(ipython): # The `ipython` argument is the currently active `InteractiveShell` # instance, which can be used ...
<commit_before># flake8: noqa from .base import Settings, Configuration from .decorators import pristinemethod __version__ = '0.8' __all__ = ['Configuration', 'pristinemethod', 'Settings'] def load_ipython_extension(ipython): # The `ipython` argument is the currently active `InteractiveShell` # instance, whi...
# flake8: noqa from .base import Settings, Configuration from .decorators import pristinemethod __version__ = '0.8' __all__ = ['Configuration', 'pristinemethod', 'Settings'] def load_ipython_extension(ipython): # The `ipython` argument is the currently active `InteractiveShell` # instance, which can be used ...
# flake8: noqa from .base import Settings, Configuration from .decorators import pristinemethod __version__ = '0.8' __all__ = ['Configuration', 'pristinemethod', 'Settings'] def load_ipython_extension(ipython): # The `ipython` argument is the currently active `InteractiveShell` # instance, which can be used ...
<commit_before># flake8: noqa from .base import Settings, Configuration from .decorators import pristinemethod __version__ = '0.8' __all__ = ['Configuration', 'pristinemethod', 'Settings'] def load_ipython_extension(ipython): # The `ipython` argument is the currently active `InteractiveShell` # instance, whi...
504c50bd5cf229b5686f398304ab26e707d0cad8
partner_firstname/exceptions.py
partner_firstname/exceptions.py
# -*- encoding: utf-8 -*- # Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
# -*- encoding: utf-8 -*- # Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
Remove subclassing of exception, since there is only one.
Remove subclassing of exception, since there is only one.
Python
agpl-3.0
microcom/partner-contact,brain-tec/partner-contact,brain-tec/partner-contact,microcom/partner-contact
# -*- encoding: utf-8 -*- # Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
# -*- encoding: utf-8 -*- # Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
<commit_before># -*- encoding: utf-8 -*- # Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
# -*- encoding: utf-8 -*- # Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
# -*- encoding: utf-8 -*- # Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
<commit_before># -*- encoding: utf-8 -*- # Odoo, Open Source Management Solution # Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
de6f0144f566bc3a8eedb3f7d8f323d2e26f0612
blender/SearchStrip.py
blender/SearchStrip.py
#=========== MODIFY PARAMETERS HERE ================= search_string="rea-mix-2016-05-13" #===================================================== import bpy seq=bpy.data.scenes[0].sequence_editor.sequences_all for i in seq: #print(i.type) if i.type == 'SOUND' or i.type == 'MOVIE': if i.filepath.find(...
#=========== MODIFY PARAMETERS HERE ================= search_string="2016-07-25-rea-mix" #===================================================== import bpy seq=bpy.data.scenes[0].sequence_editor.sequences_all for i in seq: #print(i.type) if i.type == 'SOUND': if i.sound.filepath.find(search_string)!...
Fix Search Strip script again (for sound files)
Fix Search Strip script again (for sound files)
Python
cc0-1.0
morevnaproject/scripts,morevnaproject/scripts
#=========== MODIFY PARAMETERS HERE ================= search_string="rea-mix-2016-05-13" #===================================================== import bpy seq=bpy.data.scenes[0].sequence_editor.sequences_all for i in seq: #print(i.type) if i.type == 'SOUND' or i.type == 'MOVIE': if i.filepath.find(...
#=========== MODIFY PARAMETERS HERE ================= search_string="2016-07-25-rea-mix" #===================================================== import bpy seq=bpy.data.scenes[0].sequence_editor.sequences_all for i in seq: #print(i.type) if i.type == 'SOUND': if i.sound.filepath.find(search_string)!...
<commit_before>#=========== MODIFY PARAMETERS HERE ================= search_string="rea-mix-2016-05-13" #===================================================== import bpy seq=bpy.data.scenes[0].sequence_editor.sequences_all for i in seq: #print(i.type) if i.type == 'SOUND' or i.type == 'MOVIE': if i...
#=========== MODIFY PARAMETERS HERE ================= search_string="2016-07-25-rea-mix" #===================================================== import bpy seq=bpy.data.scenes[0].sequence_editor.sequences_all for i in seq: #print(i.type) if i.type == 'SOUND': if i.sound.filepath.find(search_string)!...
#=========== MODIFY PARAMETERS HERE ================= search_string="rea-mix-2016-05-13" #===================================================== import bpy seq=bpy.data.scenes[0].sequence_editor.sequences_all for i in seq: #print(i.type) if i.type == 'SOUND' or i.type == 'MOVIE': if i.filepath.find(...
<commit_before>#=========== MODIFY PARAMETERS HERE ================= search_string="rea-mix-2016-05-13" #===================================================== import bpy seq=bpy.data.scenes[0].sequence_editor.sequences_all for i in seq: #print(i.type) if i.type == 'SOUND' or i.type == 'MOVIE': if i...
1b673b695cedbb5008db172309de6b4c23ec900f
appengine-experimental/src/models.py
appengine-experimental/src/models.py
from datetime import datetime, timedelta from google.appengine.ext import db class CHPIncident(db.Model): CenterID = db.StringProperty(required=True) DispatchID = db.StringProperty(required=True) LogID = db.StringProperty(required=True) LogTime = db.DateTimeProperty() LogType = db.StringProperty() LogTypeID = ...
from datetime import datetime, timedelta from google.appengine.ext import db class CHPIncident(db.Model): CenterID = db.StringProperty(required=True) DispatchID = db.StringProperty(required=True) LogID = db.StringProperty(required=True) LogTime = db.DateTimeProperty() LogType = db.StringProperty() LogTypeID = ...
Add a "modified" property that will only be updated when the entity is actually updated.
Add a "modified" property that will only be updated when the entity is actually updated.
Python
isc
lectroidmarc/SacTraffic,lectroidmarc/SacTraffic
from datetime import datetime, timedelta from google.appengine.ext import db class CHPIncident(db.Model): CenterID = db.StringProperty(required=True) DispatchID = db.StringProperty(required=True) LogID = db.StringProperty(required=True) LogTime = db.DateTimeProperty() LogType = db.StringProperty() LogTypeID = ...
from datetime import datetime, timedelta from google.appengine.ext import db class CHPIncident(db.Model): CenterID = db.StringProperty(required=True) DispatchID = db.StringProperty(required=True) LogID = db.StringProperty(required=True) LogTime = db.DateTimeProperty() LogType = db.StringProperty() LogTypeID = ...
<commit_before>from datetime import datetime, timedelta from google.appengine.ext import db class CHPIncident(db.Model): CenterID = db.StringProperty(required=True) DispatchID = db.StringProperty(required=True) LogID = db.StringProperty(required=True) LogTime = db.DateTimeProperty() LogType = db.StringProperty(...
from datetime import datetime, timedelta from google.appengine.ext import db class CHPIncident(db.Model): CenterID = db.StringProperty(required=True) DispatchID = db.StringProperty(required=True) LogID = db.StringProperty(required=True) LogTime = db.DateTimeProperty() LogType = db.StringProperty() LogTypeID = ...
from datetime import datetime, timedelta from google.appengine.ext import db class CHPIncident(db.Model): CenterID = db.StringProperty(required=True) DispatchID = db.StringProperty(required=True) LogID = db.StringProperty(required=True) LogTime = db.DateTimeProperty() LogType = db.StringProperty() LogTypeID = ...
<commit_before>from datetime import datetime, timedelta from google.appengine.ext import db class CHPIncident(db.Model): CenterID = db.StringProperty(required=True) DispatchID = db.StringProperty(required=True) LogID = db.StringProperty(required=True) LogTime = db.DateTimeProperty() LogType = db.StringProperty(...
d2b06462f560f7243dd3f29b67c50d6d6f76f569
util/generate.py
util/generate.py
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' for f in os.listdir(TYPESDIR): basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basename.split('_')]) fullpath = os.path.join(TYPESDIR, f) typepat...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
Allow generating one specific xml file instead of the whole directory.
Allow generating one specific xml file instead of the whole directory.
Python
apache-2.0
loganj/foursquared,loganj/foursquared
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' for f in os.listdir(TYPESDIR): basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basename.split('_')]) fullpath = os.path.join(TYPESDIR, f) typepat...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
<commit_before>#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' for f in os.listdir(TYPESDIR): basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basename.split('_')]) fullpath = os.path.join(TYPESDI...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' for f in os.listdir(TYPESDIR): basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basename.split('_')]) fullpath = os.path.join(TYPESDIR, f) typepat...
<commit_before>#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' for f in os.listdir(TYPESDIR): basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basename.split('_')]) fullpath = os.path.join(TYPESDI...
54b83d907b5edc5ab4abe81a270acff8cd44cef5
grader/grader/utils/files.py
grader/grader/utils/files.py
import os import tarfile import tempfile def make_tarball(source, tar_basename, extension=".tar.gz", compression="gz"): dest = tempfile.mkdtemp() tar_name = "{}{}".format(tar_basename, extension) tar_path = os.path.join(dest, tar_name) mode = "w:{}".format(compression or "") with tarfile.open(tar...
import os import tarfile import tempfile def make_tarball(source, tar_basename, extension=".tar.gz", compression="gz"): """Create a tarball from a source directory, and store it in a temporary directory. :param str source: The directory (or file... whatever) that we're compressing into a tarball....
Fix folder structure of created tarballs
Fix folder structure of created tarballs
Python
mit
redkyn/grader,redkyn/grader,grade-it/grader
import os import tarfile import tempfile def make_tarball(source, tar_basename, extension=".tar.gz", compression="gz"): dest = tempfile.mkdtemp() tar_name = "{}{}".format(tar_basename, extension) tar_path = os.path.join(dest, tar_name) mode = "w:{}".format(compression or "") with tarfile.open(tar...
import os import tarfile import tempfile def make_tarball(source, tar_basename, extension=".tar.gz", compression="gz"): """Create a tarball from a source directory, and store it in a temporary directory. :param str source: The directory (or file... whatever) that we're compressing into a tarball....
<commit_before>import os import tarfile import tempfile def make_tarball(source, tar_basename, extension=".tar.gz", compression="gz"): dest = tempfile.mkdtemp() tar_name = "{}{}".format(tar_basename, extension) tar_path = os.path.join(dest, tar_name) mode = "w:{}".format(compression or "") with t...
import os import tarfile import tempfile def make_tarball(source, tar_basename, extension=".tar.gz", compression="gz"): """Create a tarball from a source directory, and store it in a temporary directory. :param str source: The directory (or file... whatever) that we're compressing into a tarball....
import os import tarfile import tempfile def make_tarball(source, tar_basename, extension=".tar.gz", compression="gz"): dest = tempfile.mkdtemp() tar_name = "{}{}".format(tar_basename, extension) tar_path = os.path.join(dest, tar_name) mode = "w:{}".format(compression or "") with tarfile.open(tar...
<commit_before>import os import tarfile import tempfile def make_tarball(source, tar_basename, extension=".tar.gz", compression="gz"): dest = tempfile.mkdtemp() tar_name = "{}{}".format(tar_basename, extension) tar_path = os.path.join(dest, tar_name) mode = "w:{}".format(compression or "") with t...
36ceb8ef8da382b9fdafcbe20cc45012712fbf10
user_clipboard/migrations/0001_initial.py
user_clipboard/migrations/0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.utils.timezone import user_clipboard.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_M...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.utils.timezone import user_clipboard.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_M...
Fix migrations (filename default value)
Fix migrations (filename default value)
Python
mit
MagicSolutions/django-user-clipboard,IndustriaTech/django-user-clipboard,MagicSolutions/django-user-clipboard,IndustriaTech/django-user-clipboard
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.utils.timezone import user_clipboard.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_M...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.utils.timezone import user_clipboard.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_M...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.utils.timezone import user_clipboard.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(setti...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.utils.timezone import user_clipboard.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_M...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.utils.timezone import user_clipboard.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_M...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import django.utils.timezone import user_clipboard.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(setti...
d23aab91b69e1b71603afe6c3135cc11ce14a2fc
entity_networks/model_utils.py
entity_networks/model_utils.py
from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import tensorflow as tf def get_sequence_length(sequence, scope=None): """ This is a hacky way of determining the actual length of a sequence that has been padded with zeros. """...
from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import tensorflow as tf def get_sequence_length(sequence, scope=None): """ This is a hacky way of determining the actual length of a sequence that has been padded with zeros. """...
Remove get_sequence_mask in favor of simpler embedding mask
Remove get_sequence_mask in favor of simpler embedding mask
Python
mit
jimfleming/recurrent-entity-networks,mikalyoung/recurrent-entity-networks,mikalyoung/recurrent-entity-networks,jimfleming/recurrent-entity-networks
from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import tensorflow as tf def get_sequence_length(sequence, scope=None): """ This is a hacky way of determining the actual length of a sequence that has been padded with zeros. """...
from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import tensorflow as tf def get_sequence_length(sequence, scope=None): """ This is a hacky way of determining the actual length of a sequence that has been padded with zeros. """...
<commit_before>from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import tensorflow as tf def get_sequence_length(sequence, scope=None): """ This is a hacky way of determining the actual length of a sequence that has been padded with...
from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import tensorflow as tf def get_sequence_length(sequence, scope=None): """ This is a hacky way of determining the actual length of a sequence that has been padded with zeros. """...
from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import tensorflow as tf def get_sequence_length(sequence, scope=None): """ This is a hacky way of determining the actual length of a sequence that has been padded with zeros. """...
<commit_before>from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import tensorflow as tf def get_sequence_length(sequence, scope=None): """ This is a hacky way of determining the actual length of a sequence that has been padded with...
b0d18dcdeb125cdae39c220726520e9a28f08ee2
tweets/views.py
tweets/views.py
from django.http import Http404 from django.contrib.auth import get_user_model from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic import ListView, edit from .models import Message class MessageList(ListView): template_name = "message...
from django.http import Http404 from django.contrib.auth import get_user_model from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic import ListView, edit from .models import Message class MessageList(ListView): template_name = "message...
Fix for lazy loading of request.user
Fix for lazy loading of request.user
Python
mit
pennomi/openwest2015-twitter-clone,pennomi/openwest2015-twitter-clone,pennomi/openwest2015-twitter-clone
from django.http import Http404 from django.contrib.auth import get_user_model from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic import ListView, edit from .models import Message class MessageList(ListView): template_name = "message...
from django.http import Http404 from django.contrib.auth import get_user_model from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic import ListView, edit from .models import Message class MessageList(ListView): template_name = "message...
<commit_before>from django.http import Http404 from django.contrib.auth import get_user_model from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic import ListView, edit from .models import Message class MessageList(ListView): template_...
from django.http import Http404 from django.contrib.auth import get_user_model from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic import ListView, edit from .models import Message class MessageList(ListView): template_name = "message...
from django.http import Http404 from django.contrib.auth import get_user_model from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic import ListView, edit from .models import Message class MessageList(ListView): template_name = "message...
<commit_before>from django.http import Http404 from django.contrib.auth import get_user_model from django.shortcuts import render, get_object_or_404 from django.utils.translation import ugettext as _ from django.views.generic import ListView, edit from .models import Message class MessageList(ListView): template_...
1a2e892539cde260934ceffe58d399c5a3222d0c
actions/cloudbolt_plugins/multi_user_approval/two_user_approval.py
actions/cloudbolt_plugins/multi_user_approval/two_user_approval.py
""" Two User Approval Overrides CloudBolt's standard Order Approval workflow. This Orchestration Action requires two users to approve an order before it is becomes Active. """ from utilities.logger import ThreadLogger logger = ThreadLogger(__name__) def run(order, *args, **kwargs): # Return the order's status ...
""" Two User Approval Overrides CloudBolt's standard Order Approval workflow. This Orchestration Action requires two users to approve an order before it becomes Active. Requires CloudBolt 8.8 """ def run(order, *args, **kwargs): # Return the order's status to "PENDING" if fewer than two users have # approve...
Remove logger and fix typos
Remove logger and fix typos [DEV-12140]
Python
apache-2.0
CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge
""" Two User Approval Overrides CloudBolt's standard Order Approval workflow. This Orchestration Action requires two users to approve an order before it is becomes Active. """ from utilities.logger import ThreadLogger logger = ThreadLogger(__name__) def run(order, *args, **kwargs): # Return the order's status ...
""" Two User Approval Overrides CloudBolt's standard Order Approval workflow. This Orchestration Action requires two users to approve an order before it becomes Active. Requires CloudBolt 8.8 """ def run(order, *args, **kwargs): # Return the order's status to "PENDING" if fewer than two users have # approve...
<commit_before>""" Two User Approval Overrides CloudBolt's standard Order Approval workflow. This Orchestration Action requires two users to approve an order before it is becomes Active. """ from utilities.logger import ThreadLogger logger = ThreadLogger(__name__) def run(order, *args, **kwargs): # Return the ...
""" Two User Approval Overrides CloudBolt's standard Order Approval workflow. This Orchestration Action requires two users to approve an order before it becomes Active. Requires CloudBolt 8.8 """ def run(order, *args, **kwargs): # Return the order's status to "PENDING" if fewer than two users have # approve...
""" Two User Approval Overrides CloudBolt's standard Order Approval workflow. This Orchestration Action requires two users to approve an order before it is becomes Active. """ from utilities.logger import ThreadLogger logger = ThreadLogger(__name__) def run(order, *args, **kwargs): # Return the order's status ...
<commit_before>""" Two User Approval Overrides CloudBolt's standard Order Approval workflow. This Orchestration Action requires two users to approve an order before it is becomes Active. """ from utilities.logger import ThreadLogger logger = ThreadLogger(__name__) def run(order, *args, **kwargs): # Return the ...
2e92550dd52d8a084b01a6e4b8a429e50f11cf36
scripts/compact_seriesly.py
scripts/compact_seriesly.py
from logger import logger from seriesly import Seriesly from perfrunner.settings import StatsSettings def main(): s = Seriesly(StatsSettings.SERIESLY['host']) for db in s.list_dbs(): logger.info('Compacting {}'.format(db)) result = s[db].compact() logger.info('Compaction finished: {}'...
from logger import logger from seriesly import Seriesly from perfrunner.settings import StatsSettings def main(): s = Seriesly(StatsSettings.SERIESLY) for db in s.list_dbs(): logger.info('Compacting {}'.format(db)) result = s[db].compact() logger.info('Compaction finished: {}'.format(...
Update reference to Seriesly hostname
Update reference to Seriesly hostname Change-Id: I03eb6b3551e21d6987f15ec236c40546b312e663 Reviewed-on: http://review.couchbase.org/71447 Reviewed-by: Pavel Paulau <dd88eded64e90046a680e3a6c0828ceb8fe8a0e7@gmail.com> Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Python
apache-2.0
pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner
from logger import logger from seriesly import Seriesly from perfrunner.settings import StatsSettings def main(): s = Seriesly(StatsSettings.SERIESLY['host']) for db in s.list_dbs(): logger.info('Compacting {}'.format(db)) result = s[db].compact() logger.info('Compaction finished: {}'...
from logger import logger from seriesly import Seriesly from perfrunner.settings import StatsSettings def main(): s = Seriesly(StatsSettings.SERIESLY) for db in s.list_dbs(): logger.info('Compacting {}'.format(db)) result = s[db].compact() logger.info('Compaction finished: {}'.format(...
<commit_before>from logger import logger from seriesly import Seriesly from perfrunner.settings import StatsSettings def main(): s = Seriesly(StatsSettings.SERIESLY['host']) for db in s.list_dbs(): logger.info('Compacting {}'.format(db)) result = s[db].compact() logger.info('Compactio...
from logger import logger from seriesly import Seriesly from perfrunner.settings import StatsSettings def main(): s = Seriesly(StatsSettings.SERIESLY) for db in s.list_dbs(): logger.info('Compacting {}'.format(db)) result = s[db].compact() logger.info('Compaction finished: {}'.format(...
from logger import logger from seriesly import Seriesly from perfrunner.settings import StatsSettings def main(): s = Seriesly(StatsSettings.SERIESLY['host']) for db in s.list_dbs(): logger.info('Compacting {}'.format(db)) result = s[db].compact() logger.info('Compaction finished: {}'...
<commit_before>from logger import logger from seriesly import Seriesly from perfrunner.settings import StatsSettings def main(): s = Seriesly(StatsSettings.SERIESLY['host']) for db in s.list_dbs(): logger.info('Compacting {}'.format(db)) result = s[db].compact() logger.info('Compactio...
59ec54bbe49013826d2c15ce2162c2e0e335bd57
modules/module_urlsize.py
modules/module_urlsize.py
"""Warns about large files""" def handle_url(bot, user, channel, url, msg): if channel == "#wow": return # inform about large files (over 5MB) size = getUrl(url).getSize() contentType = getUrl(url).getHeaders()['content-type'] if not size: return size = size / 1024 if size > 5: ...
"""Warns about large files""" def handle_url(bot, user, channel, url, msg): if channel == "#wow": return # inform about large files (over 5MB) size = getUrl(url).getSize() headers = getUrl(url).getHeaders()['content-type'] if 'content-type' in headers: contentType = headers['content-type'...
Handle cases where the server doesn't return content-type
Handle cases where the server doesn't return content-type git-svn-id: 056f9092885898c4775d98c479d2d33d00273e45@120 dda364a1-ef19-0410-af65-756c83048fb2
Python
bsd-3-clause
rnyberg/pyfibot,lepinkainen/pyfibot,lepinkainen/pyfibot,rnyberg/pyfibot,EArmour/pyfibot,nigeljonez/newpyfibot,aapa/pyfibot,huqa/pyfibot,huqa/pyfibot,aapa/pyfibot,EArmour/pyfibot
"""Warns about large files""" def handle_url(bot, user, channel, url, msg): if channel == "#wow": return # inform about large files (over 5MB) size = getUrl(url).getSize() contentType = getUrl(url).getHeaders()['content-type'] if not size: return size = size / 1024 if size > 5: ...
"""Warns about large files""" def handle_url(bot, user, channel, url, msg): if channel == "#wow": return # inform about large files (over 5MB) size = getUrl(url).getSize() headers = getUrl(url).getHeaders()['content-type'] if 'content-type' in headers: contentType = headers['content-type'...
<commit_before>"""Warns about large files""" def handle_url(bot, user, channel, url, msg): if channel == "#wow": return # inform about large files (over 5MB) size = getUrl(url).getSize() contentType = getUrl(url).getHeaders()['content-type'] if not size: return size = size / 1024 ...
"""Warns about large files""" def handle_url(bot, user, channel, url, msg): if channel == "#wow": return # inform about large files (over 5MB) size = getUrl(url).getSize() headers = getUrl(url).getHeaders()['content-type'] if 'content-type' in headers: contentType = headers['content-type'...
"""Warns about large files""" def handle_url(bot, user, channel, url, msg): if channel == "#wow": return # inform about large files (over 5MB) size = getUrl(url).getSize() contentType = getUrl(url).getHeaders()['content-type'] if not size: return size = size / 1024 if size > 5: ...
<commit_before>"""Warns about large files""" def handle_url(bot, user, channel, url, msg): if channel == "#wow": return # inform about large files (over 5MB) size = getUrl(url).getSize() contentType = getUrl(url).getHeaders()['content-type'] if not size: return size = size / 1024 ...
1c9fc34d3c022d975b986f81d7947564bfc8462e
stock_ownership_availability_rules/model/stock_change_product_qty.py
stock_ownership_availability_rules/model/stock_change_product_qty.py
# -*- coding: utf-8 -*- # © 2016 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models class StockChangeProductQty(models.TransientModel): _inherit = "stock.change.product.qty" @api.model def _finalize...
# -*- coding: utf-8 -*- # © 2016 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models class StockChangeProductQty(models.TransientModel): _inherit = "stock.change.product.qty" @api.model def _prepare_...
Update PR regarding hook accepted by Odoo
Update PR regarding hook accepted by Odoo
Python
agpl-3.0
brain-tec/stock-logistics-workflow,brain-tec/stock-logistics-workflow,open-synergy/stock-logistics-workflow,akretion/stock-logistics-workflow,Eficent/stock-logistics-workflow,open-synergy/stock-logistics-workflow,gurneyalex/stock-logistics-workflow,acsone/stock-logistics-workflow,acsone/stock-logistics-workflow,Eficent...
# -*- coding: utf-8 -*- # © 2016 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models class StockChangeProductQty(models.TransientModel): _inherit = "stock.change.product.qty" @api.model def _finalize...
# -*- coding: utf-8 -*- # © 2016 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models class StockChangeProductQty(models.TransientModel): _inherit = "stock.change.product.qty" @api.model def _prepare_...
<commit_before># -*- coding: utf-8 -*- # © 2016 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models class StockChangeProductQty(models.TransientModel): _inherit = "stock.change.product.qty" @api.model ...
# -*- coding: utf-8 -*- # © 2016 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models class StockChangeProductQty(models.TransientModel): _inherit = "stock.change.product.qty" @api.model def _prepare_...
# -*- coding: utf-8 -*- # © 2016 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models class StockChangeProductQty(models.TransientModel): _inherit = "stock.change.product.qty" @api.model def _finalize...
<commit_before># -*- coding: utf-8 -*- # © 2016 Laetitia Gangloff, Acsone SA/NV (http://www.acsone.eu) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models class StockChangeProductQty(models.TransientModel): _inherit = "stock.change.product.qty" @api.model ...
118033befdee71e77913a736ddf0d349837fe5f4
tests/integration_tests/resources/plugins/target-aware-mock/setup.py
tests/integration_tests/resources/plugins/target-aware-mock/setup.py
from setuptools import setup setup( name='target-aware-mock', version='4.2', packages=['target_aware_mock'], )
from setuptools import setup setup( name='target-aware-mock', version='1.0', packages=['target_aware_mock'], )
Fix test_deploy_with_operation_executor_override by setting back the version of target_aware_mock plugin to 1.0
Fix test_deploy_with_operation_executor_override by setting back the version of target_aware_mock plugin to 1.0
Python
apache-2.0
cloudify-cosmo/cloudify-manager,cloudify-cosmo/cloudify-manager,cloudify-cosmo/cloudify-manager
from setuptools import setup setup( name='target-aware-mock', version='4.2', packages=['target_aware_mock'], ) Fix test_deploy_with_operation_executor_override by setting back the version of target_aware_mock plugin to 1.0
from setuptools import setup setup( name='target-aware-mock', version='1.0', packages=['target_aware_mock'], )
<commit_before>from setuptools import setup setup( name='target-aware-mock', version='4.2', packages=['target_aware_mock'], ) <commit_msg>Fix test_deploy_with_operation_executor_override by setting back the version of target_aware_mock plugin to 1.0<commit_after>
from setuptools import setup setup( name='target-aware-mock', version='1.0', packages=['target_aware_mock'], )
from setuptools import setup setup( name='target-aware-mock', version='4.2', packages=['target_aware_mock'], ) Fix test_deploy_with_operation_executor_override by setting back the version of target_aware_mock plugin to 1.0from setuptools import setup setup( name='target-aware-mock', version='1.0',...
<commit_before>from setuptools import setup setup( name='target-aware-mock', version='4.2', packages=['target_aware_mock'], ) <commit_msg>Fix test_deploy_with_operation_executor_override by setting back the version of target_aware_mock plugin to 1.0<commit_after>from setuptools import setup setup( nam...
85fa8d64ebbe8cdc0097f0dbdf5e3ab6d094e075
cast_convert/preferences.py
cast_convert/preferences.py
from multiprocessing import cpu_count ENCODING_OPTIONS = { 'mp3': '-c:a libmp3lame ' '-vbr 3 ', 'h264': '-c:v libx264 ' '-preset ultrafast ' '-crf 21 ', 'mp4': '-f mp4' } COPY_OPTIONS = { 'audio': '-c:a copy', 'video': '-c:v copy', 'container': '' } THREADS...
from multiprocessing import cpu_count ENCODING_OPTIONS = { 'mp3': '-c:a libmp3lame ' '-q:a 3 ', 'h264': '-c:v libx264 ' '-preset ultrafast ' '-crf 21 ', 'mp4': '-f mp4' } COPY_OPTIONS = { 'audio': '-c:a copy', 'video': '-c:v copy', 'container': '' } THREADS...
USe -q:a flag for mp3 encoder
USe -q:a flag for mp3 encoder
Python
agpl-3.0
thismachinechills/cast_convert
from multiprocessing import cpu_count ENCODING_OPTIONS = { 'mp3': '-c:a libmp3lame ' '-vbr 3 ', 'h264': '-c:v libx264 ' '-preset ultrafast ' '-crf 21 ', 'mp4': '-f mp4' } COPY_OPTIONS = { 'audio': '-c:a copy', 'video': '-c:v copy', 'container': '' } THREADS...
from multiprocessing import cpu_count ENCODING_OPTIONS = { 'mp3': '-c:a libmp3lame ' '-q:a 3 ', 'h264': '-c:v libx264 ' '-preset ultrafast ' '-crf 21 ', 'mp4': '-f mp4' } COPY_OPTIONS = { 'audio': '-c:a copy', 'video': '-c:v copy', 'container': '' } THREADS...
<commit_before>from multiprocessing import cpu_count ENCODING_OPTIONS = { 'mp3': '-c:a libmp3lame ' '-vbr 3 ', 'h264': '-c:v libx264 ' '-preset ultrafast ' '-crf 21 ', 'mp4': '-f mp4' } COPY_OPTIONS = { 'audio': '-c:a copy', 'video': '-c:v copy', 'container'...
from multiprocessing import cpu_count ENCODING_OPTIONS = { 'mp3': '-c:a libmp3lame ' '-q:a 3 ', 'h264': '-c:v libx264 ' '-preset ultrafast ' '-crf 21 ', 'mp4': '-f mp4' } COPY_OPTIONS = { 'audio': '-c:a copy', 'video': '-c:v copy', 'container': '' } THREADS...
from multiprocessing import cpu_count ENCODING_OPTIONS = { 'mp3': '-c:a libmp3lame ' '-vbr 3 ', 'h264': '-c:v libx264 ' '-preset ultrafast ' '-crf 21 ', 'mp4': '-f mp4' } COPY_OPTIONS = { 'audio': '-c:a copy', 'video': '-c:v copy', 'container': '' } THREADS...
<commit_before>from multiprocessing import cpu_count ENCODING_OPTIONS = { 'mp3': '-c:a libmp3lame ' '-vbr 3 ', 'h264': '-c:v libx264 ' '-preset ultrafast ' '-crf 21 ', 'mp4': '-f mp4' } COPY_OPTIONS = { 'audio': '-c:a copy', 'video': '-c:v copy', 'container'...
1cb0cb3167a9d641c45d034000a9b0f5202c0dde
preferences/models.py
preferences/models.py
from django.db import models # Create your models here.
from django.db import models from opencivicdata.models.people_orgs import Person class Preferences(models.Model): representitive = models.ForeignKey(Person, related_name='rep_preferences') senator = models.ForeignKey(Person, related_name='sen_preferences') street_line1 = models.CharField(max_length = 10...
Add preferences model with address rep and sen
Add preferences model with address rep and sen
Python
mit
jamesturk/tot,jamesturk/tot,jamesturk/tot,jamesturk/tot,jamesturk/tot
from django.db import models # Create your models here. Add preferences model with address rep and sen
from django.db import models from opencivicdata.models.people_orgs import Person class Preferences(models.Model): representitive = models.ForeignKey(Person, related_name='rep_preferences') senator = models.ForeignKey(Person, related_name='sen_preferences') street_line1 = models.CharField(max_length = 10...
<commit_before>from django.db import models # Create your models here. <commit_msg>Add preferences model with address rep and sen<commit_after>
from django.db import models from opencivicdata.models.people_orgs import Person class Preferences(models.Model): representitive = models.ForeignKey(Person, related_name='rep_preferences') senator = models.ForeignKey(Person, related_name='sen_preferences') street_line1 = models.CharField(max_length = 10...
from django.db import models # Create your models here. Add preferences model with address rep and senfrom django.db import models from opencivicdata.models.people_orgs import Person class Preferences(models.Model): representitive = models.ForeignKey(Person, related_name='rep_preferences') senator = models....
<commit_before>from django.db import models # Create your models here. <commit_msg>Add preferences model with address rep and sen<commit_after>from django.db import models from opencivicdata.models.people_orgs import Person class Preferences(models.Model): representitive = models.ForeignKey(Person, related_name...
2a34baee8a33c01fcb253cb336144a570c32d5fa
digits/utils/lmdbreader.py
digits/utils/lmdbreader.py
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import lmdb class DbReader(object): """ Reads a database """ def __init__(self, location): """ Arguments: location -- where is the database """ self._db = lm...
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import lmdb class DbReader(object): """ Reads a database """ def __init__(self, location): """ Arguments: location -- where is the database """ self._db = lm...
Add API to LmdbReader (used by gan_features.py)
Add API to LmdbReader (used by gan_features.py)
Python
bsd-3-clause
ethantang95/DIGITS-GAN,gheinrich/DIGITS-GAN,ethantang95/DIGITS-GAN,gheinrich/DIGITS-GAN,gheinrich/DIGITS-GAN,gheinrich/DIGITS-GAN,ethantang95/DIGITS-GAN,ethantang95/DIGITS-GAN
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import lmdb class DbReader(object): """ Reads a database """ def __init__(self, location): """ Arguments: location -- where is the database """ self._db = lm...
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import lmdb class DbReader(object): """ Reads a database """ def __init__(self, location): """ Arguments: location -- where is the database """ self._db = lm...
<commit_before># Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import lmdb class DbReader(object): """ Reads a database """ def __init__(self, location): """ Arguments: location -- where is the database """ ...
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import lmdb class DbReader(object): """ Reads a database """ def __init__(self, location): """ Arguments: location -- where is the database """ self._db = lm...
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import lmdb class DbReader(object): """ Reads a database """ def __init__(self, location): """ Arguments: location -- where is the database """ self._db = lm...
<commit_before># Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import lmdb class DbReader(object): """ Reads a database """ def __init__(self, location): """ Arguments: location -- where is the database """ ...
24194cc6d7b4248e3eb10535be43f5bb01f41fe7
eratosthenes_lambda.py
eratosthenes_lambda.py
from __future__ import print_function from timeit import default_timer as timer import json import datetime print('Loading function') def eratosthenes(n): sieve = [ True for i in range(n+1) ] def markOff(pv): for i in range(pv+pv, n+1, pv): sieve[i] = False markOff(2) f...
from __future__ import print_function from timeit import default_timer as timer import json import datetime print('Loading function') def eratosthenes(n): sieve = [ True for i in range(n+1) ] def markOff(pv): for i in range(pv+pv, n+1, pv): sieve[i] = False markOff(2) f...
Reformat for easier copy and pasting (needed for usability with AWS Console).
Reformat for easier copy and pasting (needed for usability with AWS Console).
Python
mit
jconning/lambda-cpu-cost,jconning/lambda-cpu-cost
from __future__ import print_function from timeit import default_timer as timer import json import datetime print('Loading function') def eratosthenes(n): sieve = [ True for i in range(n+1) ] def markOff(pv): for i in range(pv+pv, n+1, pv): sieve[i] = False markOff(2) f...
from __future__ import print_function from timeit import default_timer as timer import json import datetime print('Loading function') def eratosthenes(n): sieve = [ True for i in range(n+1) ] def markOff(pv): for i in range(pv+pv, n+1, pv): sieve[i] = False markOff(2) f...
<commit_before>from __future__ import print_function from timeit import default_timer as timer import json import datetime print('Loading function') def eratosthenes(n): sieve = [ True for i in range(n+1) ] def markOff(pv): for i in range(pv+pv, n+1, pv): sieve[i] = False m...
from __future__ import print_function from timeit import default_timer as timer import json import datetime print('Loading function') def eratosthenes(n): sieve = [ True for i in range(n+1) ] def markOff(pv): for i in range(pv+pv, n+1, pv): sieve[i] = False markOff(2) f...
from __future__ import print_function from timeit import default_timer as timer import json import datetime print('Loading function') def eratosthenes(n): sieve = [ True for i in range(n+1) ] def markOff(pv): for i in range(pv+pv, n+1, pv): sieve[i] = False markOff(2) f...
<commit_before>from __future__ import print_function from timeit import default_timer as timer import json import datetime print('Loading function') def eratosthenes(n): sieve = [ True for i in range(n+1) ] def markOff(pv): for i in range(pv+pv, n+1, pv): sieve[i] = False m...
318781bca1973f34d3a6b00b5b9253cef5190f58
skimage/io/tests/test_io.py
skimage/io/tests/test_io.py
import os from numpy.testing import assert_array_equal, raises, run_module_suite import numpy as np import skimage.io as io from skimage import data_dir def test_stack_basic(): x = np.arange(12).reshape(3, 4) io.push(x) assert_array_equal(io.pop(), x) @raises(ValueError) def test_stack_non_array(): ...
import os from numpy.testing import assert_array_equal, raises, run_module_suite import numpy as np import skimage.io as io from skimage.io._plugins.plugin import plugin_store from skimage import data_dir def test_stack_basic(): x = np.arange(12).reshape(3, 4) io.push(x) assert_array_equal(io.pop(), x)...
Add test that error gets raised when no plugin available
Add test that error gets raised when no plugin available
Python
bsd-3-clause
bsipocz/scikit-image,emon10005/scikit-image,SamHames/scikit-image,GaZ3ll3/scikit-image,chintak/scikit-image,robintw/scikit-image,warmspringwinds/scikit-image,bennlich/scikit-image,ajaybhat/scikit-image,pratapvardhan/scikit-image,blink1073/scikit-image,michaelpacer/scikit-image,chintak/scikit-image,vighneshbirodkar/scik...
import os from numpy.testing import assert_array_equal, raises, run_module_suite import numpy as np import skimage.io as io from skimage import data_dir def test_stack_basic(): x = np.arange(12).reshape(3, 4) io.push(x) assert_array_equal(io.pop(), x) @raises(ValueError) def test_stack_non_array(): ...
import os from numpy.testing import assert_array_equal, raises, run_module_suite import numpy as np import skimage.io as io from skimage.io._plugins.plugin import plugin_store from skimage import data_dir def test_stack_basic(): x = np.arange(12).reshape(3, 4) io.push(x) assert_array_equal(io.pop(), x)...
<commit_before>import os from numpy.testing import assert_array_equal, raises, run_module_suite import numpy as np import skimage.io as io from skimage import data_dir def test_stack_basic(): x = np.arange(12).reshape(3, 4) io.push(x) assert_array_equal(io.pop(), x) @raises(ValueError) def test_stack...
import os from numpy.testing import assert_array_equal, raises, run_module_suite import numpy as np import skimage.io as io from skimage.io._plugins.plugin import plugin_store from skimage import data_dir def test_stack_basic(): x = np.arange(12).reshape(3, 4) io.push(x) assert_array_equal(io.pop(), x)...
import os from numpy.testing import assert_array_equal, raises, run_module_suite import numpy as np import skimage.io as io from skimage import data_dir def test_stack_basic(): x = np.arange(12).reshape(3, 4) io.push(x) assert_array_equal(io.pop(), x) @raises(ValueError) def test_stack_non_array(): ...
<commit_before>import os from numpy.testing import assert_array_equal, raises, run_module_suite import numpy as np import skimage.io as io from skimage import data_dir def test_stack_basic(): x = np.arange(12).reshape(3, 4) io.push(x) assert_array_equal(io.pop(), x) @raises(ValueError) def test_stack...
1ba12783fca76247447d84013d91f5c3073386a4
web_scraper/core/html_fetchers.py
web_scraper/core/html_fetchers.py
import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import requests def fetch_html_document(url): """Fetch html from url and return html :param str url: an address to a resource on the Internet :return no except hit: status code and html of page (if exist...
import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import requests def fetch_html_document(url, user_agent='python_requests.cli-ws'): """Fetch html from url and return html :param str url: an address to a resource on the Internet :opt param str user_agen...
Add user-agent field to html_fetcher
Add user-agent field to html_fetcher
Python
mit
Samuel-L/cli-ws,Samuel-L/cli-ws
import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import requests def fetch_html_document(url): """Fetch html from url and return html :param str url: an address to a resource on the Internet :return no except hit: status code and html of page (if exist...
import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import requests def fetch_html_document(url, user_agent='python_requests.cli-ws'): """Fetch html from url and return html :param str url: an address to a resource on the Internet :opt param str user_agen...
<commit_before>import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import requests def fetch_html_document(url): """Fetch html from url and return html :param str url: an address to a resource on the Internet :return no except hit: status code and html of...
import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import requests def fetch_html_document(url, user_agent='python_requests.cli-ws'): """Fetch html from url and return html :param str url: an address to a resource on the Internet :opt param str user_agen...
import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import requests def fetch_html_document(url): """Fetch html from url and return html :param str url: an address to a resource on the Internet :return no except hit: status code and html of page (if exist...
<commit_before>import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import requests def fetch_html_document(url): """Fetch html from url and return html :param str url: an address to a resource on the Internet :return no except hit: status code and html of...
a8f4f7a3d3ecc88a8517221437f1e7b14b3f0a1d
seimas/prototype/helpers.py
seimas/prototype/helpers.py
import yaml import os.path from django.http import Http404 from django.conf.urls import url from django.conf import settings def get_page(path): url = ('/%s/' % path) if path else '/' with (settings.PROJECT_DIR / 'prototype.yml').open() as f: data = yaml.load(f) try: page = data['urls'][u...
import yaml import os.path from django.http import Http404 from django.conf.urls import url from django.conf import settings def get_page(path): url = ('/%s/' % path) if path else '/' with (settings.PROJECT_DIR / 'prototype.yml').open(encoding='utf-8') as f: data = yaml.load(f) try: page ...
Fix prototype template loading error
Fix prototype template loading error
Python
agpl-3.0
sirex/manopozicija.lt,sirex/nuomones,sirex/manopozicija.lt,sirex/nuomones,sirex/manopozicija.lt
import yaml import os.path from django.http import Http404 from django.conf.urls import url from django.conf import settings def get_page(path): url = ('/%s/' % path) if path else '/' with (settings.PROJECT_DIR / 'prototype.yml').open() as f: data = yaml.load(f) try: page = data['urls'][u...
import yaml import os.path from django.http import Http404 from django.conf.urls import url from django.conf import settings def get_page(path): url = ('/%s/' % path) if path else '/' with (settings.PROJECT_DIR / 'prototype.yml').open(encoding='utf-8') as f: data = yaml.load(f) try: page ...
<commit_before>import yaml import os.path from django.http import Http404 from django.conf.urls import url from django.conf import settings def get_page(path): url = ('/%s/' % path) if path else '/' with (settings.PROJECT_DIR / 'prototype.yml').open() as f: data = yaml.load(f) try: page =...
import yaml import os.path from django.http import Http404 from django.conf.urls import url from django.conf import settings def get_page(path): url = ('/%s/' % path) if path else '/' with (settings.PROJECT_DIR / 'prototype.yml').open(encoding='utf-8') as f: data = yaml.load(f) try: page ...
import yaml import os.path from django.http import Http404 from django.conf.urls import url from django.conf import settings def get_page(path): url = ('/%s/' % path) if path else '/' with (settings.PROJECT_DIR / 'prototype.yml').open() as f: data = yaml.load(f) try: page = data['urls'][u...
<commit_before>import yaml import os.path from django.http import Http404 from django.conf.urls import url from django.conf import settings def get_page(path): url = ('/%s/' % path) if path else '/' with (settings.PROJECT_DIR / 'prototype.yml').open() as f: data = yaml.load(f) try: page =...
71105218d25c8a415d23afa24808f46364eef88d
run_api.py
run_api.py
import annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() app.run(debug=True, host='0.0.0.0', port=4242) print("Running app on port {}".format(4242))
import annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() app.run(debug=False, host='0.0.0.0', port=4243) print("Running app on port {}".format(4243))
Change port to enable export
Change port to enable export
Python
mit
meerkat-cv/annotator-supreme,meerkat-cv/annotator-supreme,meerkat-cv/annotator-supreme,meerkat-cv/annotator-supreme,meerkat-cv/annotator-supreme
import annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() app.run(debug=True, host='0.0.0.0', port=4242) print("Running app on port {}".format(4242)) Change port to enable export
import annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() app.run(debug=False, host='0.0.0.0', port=4243) print("Running app on port {}".format(4243))
<commit_before>import annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() app.run(debug=True, host='0.0.0.0', port=4242) print("Running app on port {}".format(4242)) <commit_msg>Change port to enable export<commit_after>
import annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() app.run(debug=False, host='0.0.0.0', port=4243) print("Running app on port {}".format(4243))
import annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() app.run(debug=True, host='0.0.0.0', port=4242) print("Running app on port {}".format(4242)) Change port to enable exportimport annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() ap...
<commit_before>import annotator_supreme if __name__ == "__main__": app = annotator_supreme.build_app() app.run(debug=True, host='0.0.0.0', port=4242) print("Running app on port {}".format(4242)) <commit_msg>Change port to enable export<commit_after>import annotator_supreme if __name__ == "__main__": a...
2979986e68d2b8c2b3fb4090e258a941d6a56d9e
tests/test_website_flow.py
tests/test_website_flow.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals def test_website_can_respond(harness): harness.fs.www.mk(('index.html.spt', 'Greetings, program!')) assert harness.client.GET().body == 'Greetings, program!'
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals def test_website_can_respond(harness): harness.fs.www.mk(('index.html.spt', 'Greetings, program!')) assert harness.client.GET().body == 'Greetings, program!' d...
Add failing test for exception handling regression
Add failing test for exception handling regression Code coming out of custom error message needs to be the code expected.
Python
mit
gratipay/aspen.py,gratipay/aspen.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals def test_website_can_respond(harness): harness.fs.www.mk(('index.html.spt', 'Greetings, program!')) assert harness.client.GET().body == 'Greetings, program!' Add...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals def test_website_can_respond(harness): harness.fs.www.mk(('index.html.spt', 'Greetings, program!')) assert harness.client.GET().body == 'Greetings, program!' d...
<commit_before>from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals def test_website_can_respond(harness): harness.fs.www.mk(('index.html.spt', 'Greetings, program!')) assert harness.client.GET().body == 'Greetings...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals def test_website_can_respond(harness): harness.fs.www.mk(('index.html.spt', 'Greetings, program!')) assert harness.client.GET().body == 'Greetings, program!' d...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals def test_website_can_respond(harness): harness.fs.www.mk(('index.html.spt', 'Greetings, program!')) assert harness.client.GET().body == 'Greetings, program!' Add...
<commit_before>from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals def test_website_can_respond(harness): harness.fs.www.mk(('index.html.spt', 'Greetings, program!')) assert harness.client.GET().body == 'Greetings...